@playpilot/tpi 5.16.0 → 5.16.2
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.
- package/dist/link-injections.js +2 -2
- package/package.json +1 -1
- package/release.js +3 -1
- package/src/lib/types/title.d.ts +1 -1
- package/src/routes/+page.svelte +0 -1
- package/src/routes/components/Description.svelte +1 -0
- package/src/routes/components/Title.svelte +1 -1
- package/src/tests/routes/components/Title.test.js +6 -0
package/dist/link-injections.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@keyframes svelte-1dmp8j9-delay-render{0%{opacity:0}to{opacity:1}}.popover.svelte-1dmp8j9{--offset: 8px;display:flex;flex-direction:column-reverse;gap:8px;position:absolute;top:calc((var(--offset) - 1px) * -1);left:0;width:calc(100vw - 32px);max-width:320px;padding:var(--offset) 0;transform:translateY(calc(-100% + var(--offset)));opacity:0;animation:svelte-1dmp8j9-delay-render 0ms 1ms forwards;z-index:2147483647}.popover.flip.svelte-1dmp8j9{flex-direction:column;top:auto;bottom:calc(var(--offset) + 1px);transform:translateY(calc(100% + var(--offset)))}.popover.flip.inline.svelte-1dmp8j9{flex-direction:column-reverse}.popover.inline.svelte-1dmp8j9{gap:0}.dialog.svelte-1dmp8j9{cursor:default;position:relative;border-radius:var(--playpilot-popover-border-radius, 16px);background:var(--playpilot-popover-background, var(--playpilot-light));box-shadow:var(--playpilot-popover-shadow, var(--playpilot-shadow-large));max-height:min(var(--max-height, 100vh),576px);scrollbar-width:thin;overflow-y:overlay;overflow-x:hidden;view-transition-name:playpilot-title-content}.has-bubble.svelte-1dmp8j9 .dialog:where(.svelte-1dmp8j9){border-top-left-radius:0;border-top-right-radius:0}.scroll-indicator.svelte-1dmp8j9{z-index:1;position:sticky;bottom:0;pointer-events:none}.scroll-indicator.svelte-1dmp8j9:after{content:"";display:block;position:absolute;bottom:0;left:0;height:32px;width:100%;background:linear-gradient(to bottom,transparent,black);opacity:var(--playpilot-popover-scroll-indicator-opacity, .5)}.scroll-indicator-icon.svelte-1dmp8j9{z-index:1;position:absolute;display:flex;bottom:4px;left:50%;transform:translate(-50%);opacity:.75}.scroll-indicator-icon.svelte-1dmp8j9 svg{fill:var(--playpilot-popover-scroll-indicator-fill, var(--playpilot-detail-text-color, var(--playpilot-text-color)))!important}.genre.svelte-uh53st{display:inline-flex;flex-wrap:wrap;background:var(--playpilot-genre-background, var(--playpilot-content));border:0;border-radius:var(--playpilot-genre-border-radius, 16px);padding:4px 8px;font-family:var(--playpilot-genre-font-family, inherit);font-weight:var(--playpilot-genre-font-weight, inherit);text-transform:var(--playpilot-genre-text-transform, none);color:var(--playpilot-genre-text-color, var(--playpilot-text-color-alt));line-height:1;font-size:inherit}.genre.svelte-uh53st:is(button:where(.svelte-uh53st)):hover{cursor:pointer;filter:var(--playpilot-genre-hover-filter, brightness(1.1));background:var(--playpilot-genre-hover-background, var(--playpilot-genre-background, var(--playpilot-content)))}.disclaimer.svelte-1gjw7ie{display:flex;align-items:center;justify-content:center;border:var(--playpilot-disclaimer-border, 2px solid rgba(255, 255, 255, .5));padding:4px;height:20px;width:20px;border-radius:99px;color:var(--playpilot-disclaimer-text-color, rgba(255, 255, 255, .75));font-weight:700;line-height:1}.disclaimer.svelte-1gjw7ie:hover{border-color:var(--playpilot-disclaimer-hover-border-color, white);color:var(--playpilot-disclaimer-hover-text-color, white)}.disclaimer.small.svelte-1gjw7ie{height:16px;width:16px}.tooltip.svelte-1gjw7ie{z-index:2;position:absolute;right:0;bottom:0;padding:4px;background:transparent;border:0;color:var(--playpilot-disclaimer-tooltip-text-color, var(--playpilot-detail-text-color, white));cursor:pointer}.tooltip-content.svelte-1gjw7ie{display:block;z-index:20;position:absolute;right:100%;bottom:4px;width:calc(var(--width, 15rem) * .8);padding:8px;border-radius:8px;background:var(--playpilot-disclaimer-tooltip-background, var(--playpilot-detail-background, var(--playpilot-content)));box-shadow:var(--playpilot-shadow);font-size:12px;line-height:1.1;text-align:right;white-space:normal}@keyframes svelte-49sxfd-sheen{0%,20%,60%,80.01%,to{background-position:-100% 0}80%{background-position:100% 0}}img.svelte-49sxfd{height:36px;width:36px;border-radius:8px;background:#00000040}.playlink.svelte-49sxfd{display:block;position:relative;background:var(--playpilot-playlink-background, var(--playpilot-lighter));box-shadow:var(--playpilot-playlink-shadow, var(--playpilot-shadow));border-radius:var(--playpilot-playlink-border-radius, 8px);color:var(--playpilot-playlink-text-color, var(--playpilot-text-color))!important;font-weight:var(--playpilot-playlink-font-weight, inherit);font-style:var(--playpilot-playlink-font-style, normal)!important;text-decoration:none!important;white-space:nowrap;font-size:var(--playpilot-playlinks-font-size, 12px);line-height:1}.playlink.svelte-49sxfd:not(span):hover,.playlink.svelte-49sxfd:not(span):active{filter:var(--playpilot-playlink-hover-filter, brightness(1.1));background:var(--playpilot-playlink-hover-background, var(--playpilot-playlink-background, var(--playpilot-lighter)))!important;text-decoration:none!important}.playlink.highlighted.svelte-49sxfd{grid-column:span 2}.playlink.highlighted.svelte-49sxfd:before{content:"";z-index:1;display:block;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;background:linear-gradient(to left,currentColor 20%,transparent 50%,currentColor 80%);background-size:200% 100%;background-position:-100% 0;opacity:.35;pointer-events:none}@media (prefers-reduced-motion: no-preference){.playlink.highlighted.svelte-49sxfd:before{animation:svelte-49sxfd-sheen 4s ease-in-out infinite}}.playlink.highlighted.svelte-49sxfd:after{content:"";z-index:2;display:block;position:absolute;top:2px;right:2px;bottom:2px;left:2px;border-radius:inherit;background:var(--playpilot-playlink-background, var(--playpilot-lighter))}.playlink.svelte-49sxfd img:where(.svelte-49sxfd){grid-area:image;margin:0}.playlink-content.svelte-49sxfd{position:relative;z-index:5;display:grid;grid-template-areas:"image name action" "image category action";grid-template-columns:36px auto 96px;align-items:center;gap:0 12px;padding:12px}.highlighted.svelte-49sxfd .playlink-content:where(.svelte-49sxfd){grid-template-areas:"image name action" "image category action" "image cta action";gap:4px 12px}.no-category.svelte-49sxfd .playlink-content:where(.svelte-49sxfd){grid-template-areas:"image name action" "image cta action"}.name.svelte-49sxfd{grid-area:name;width:100%;overflow:hidden;font-weight:var(--playpilot-playlink-font-weight, 500);font-family:var(--playpilot-playlink-font-family, inherit);text-overflow:ellipsis;white-space:nowrap}.category.svelte-49sxfd{grid-area:category;width:100%;font-size:var(--playpilot-playlinks-category-font-size, 10px);color:var(--playpilot-playlink-category-text-color, var(--playpilot-text-color-alt));font-weight:var(--playpilot-playlink-category-font-weight, inherit);font-family:var(--playpilot-playlink-category-font-family, inherit)}.cta.svelte-49sxfd{grid-area:cta;width:100%;font-size:var(--playpilot-playlinks-cta-font-size, var(--playpilot-playlinks-category-font-size, 10px));color:var(--playpilot-playlink-cta-text-color, var(--playpilot-playlink-category-text-color, var(--playpilot-text-color)));font-weight:var(--playpilot-playlink-cta-font-weight, var(--playpilot-playlink-category-font-weight, inherit));font-family:var(--playpilot-playlink-cta-font-family, var(--playpilot-playlink-category-font-family, inherit));white-space:normal;line-height:1.2}.action.svelte-49sxfd{grid-area:action;margin-left:auto;padding:8px;border:var(--playpilot-playlinks-action-border, 1px solid currentColor);border-radius:var(--playpilot-playlinks-action-border-radius, 32px);font-weight:var(--playpilot-playlinks-action-font-weight, 500);color:var(--playpilot-playlinks-action-text-color, var(--playpilot-text-color))}.highlighted.svelte-49sxfd .action:where(.svelte-49sxfd){border:0;background:var(--playpilot-playlinks-action-background-color, white);color:var(--playpilot-playlinks-action-text-color, black)}.heading.svelte-kurv7{margin:0;color:var(--playpilot-playlinks-title-color, var(--playpilot-text-color-alt));font-family:var(--playpilot-playlinks-title-font-family, inherit);font-weight:var(--playpilot-playlinks-title-font-weight, lighter);font-size:var(--playpilot-playlinks-title-font-size, 14px);line-height:normal}.playlinks.svelte-kurv7{box-sizing:border-box;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px;width:calc(100% + 32px);padding:8px 16px;margin:0 -16px}.playlinks.list.svelte-kurv7{grid-template-columns:1fr}.playlinks.list.svelte-kurv7 .playlink.highlighted{grid-column:span 1}.disclaimer.svelte-kurv7{margin-top:var(--playpilot-playlinks-disclaimer-margin-top, 8px);opacity:var(--playpilot-playlinks-disclaimer-opacity, .65);color:var(--playpilot-playlinks-disclaimer-text-color, var(--playpilot-text-color-alt));font-size:var(--playpilot-playlinks-disclaimer-font-size, 10px);font-style:var(--playpilot-playlinks-disclaimer-font-style, normal)}.disclaimer.svelte-kurv7 a:where(.svelte-kurv7){color:inherit;font-size:inherit;font-style:inherit}.disclaimer.svelte-kurv7 a:where(.svelte-kurv7):hover{color:var(--playpilot-playlinks-disclaimer-text-color-hover, var(--playpilot-text-color))}.empty.svelte-kurv7{grid-column:span 2;padding:12px;background:var(--playpilot-playlink-background, var(--playpilot-lighter));box-shadow:var(--playpilot-playlink-shadow, var(--playpilot-shadow));border-radius:var(--playpilot-playlink-border-radius, 8px);white-space:initial;line-height:1.35}.list.svelte-kurv7 .empty:where(.svelte-kurv7){grid-column:1}.paragraph.svelte-1u3je71{display:block;margin:16px 0 0}.show-more.svelte-1u3je71{display:inline;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;background:transparent;border:0;color:var(--playpilot-read-more-text-color, var(--playpilot-text-color-alt));font-weight:var(--playpilot-read-more-font-weight, inherit);font-family:inherit;font-size:inherit}.show-more.svelte-1u3je71:hover{text-decoration:underline;text-decoration-thickness:2px;cursor:pointer}.right.svelte-jna4l3{margin-left:2px}.left.svelte-jna4l3{margin-right:2px;transform:rotate(180deg)}.button.svelte-1qqv88o{display:flex;align-items:center;justify-content:center;flex:0 0 var(--size);width:var(--size);height:var(--size);border-radius:50%;border:0;padding:var(--playpilot-button-padding, 0);background:var(--playpilot-button-background, var(--playpilot-content));box-shadow:var(--playpilot-button-shadow, var(--playpilot-shadow));color:var(--playpilot-button-text-color, var(--playpilot-text-color-alt));cursor:pointer;transition:transform 50ms}.button.svelte-1qqv88o:hover{filter:brightness(1.2);transform:scale(1.05)}.handle.svelte-1dkwtal{position:relative;width:100%;height:var(--playpilot-drag-handle-height, 48px)}.handle.svelte-1dkwtal:before{content:"";display:block;position:absolute;top:calc(50% - var(--playpilot-drag-handle-bar-height, 4px) / 2);width:100%;height:var(--playpilot-drag-handle-bar-height, 4px);border-radius:16px;background:var(--playpilot-drag-handle-color, currentColor);opacity:.65;transition:opacity .1s,scale .1s}.handle.dragged.svelte-1dkwtal{transition:transform .2s}.handle.dragging.svelte-1dkwtal{transition:none}.handle.dragging.svelte-1dkwtal:before{scale:1.5 1;opacity:1}.modal.svelte-j420io{--playpilot-detail-background-border-radius: var(--playpilot-detail-border-radius, 16px 16px 0 0);z-index:2147483647;box-sizing:border-box;position:fixed;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;overflow:auto;top:0;right:0;bottom:0;left:0;background:var(--playpilot-detail-backdrop, rgba(0, 0, 0, .65))}@media (min-width: 600px){.modal.svelte-j420io{padding:32px 0}}.modal.has-bubble.svelte-j420io{--playpilot-detail-background-border-radius: 0}.dialog.svelte-j420io{z-index:1;position:relative;width:100%;max-width:600px;max-height:80vh;margin-top:auto;padding-bottom:env(safe-area-inset-bottom);overflow:auto;border-radius:var(--playpilot-detail-border-radius, 16px 16px 0 0);background:var(--playpilot-detail-background, var(--playpilot-light));transition:transform .2s}@supports (height: 1dvh){.dialog.svelte-j420io{max-height:80dvh}}@media (min-width: 600px){.dialog.svelte-j420io{max-height:unset;margin-top:0;padding-bottom:0;overflow:visible;border-radius:var(--playpilot-detail-border-radius, 16px)}}@media (max-width: 599px){.dialog.tall.svelte-j420io{max-height:90vh}@supports (height: 1dvh){.dialog.tall.svelte-j420io{max-height:90dvh}}}.has-prepend.svelte-j420io .dialog:where(.svelte-j420io){margin-top:0}.has-bubble.svelte-j420io .dialog:where(.svelte-j420io){border-top-left-radius:0;border-top-right-radius:0;margin-top:0}.backdrop.svelte-j420io{z-index:0;position:absolute;top:0;right:0;bottom:0;left:0}.swipe-handle.svelte-j420io{z-index:5;position:absolute;top:var(--dialog-offset);left:50%;transform:translateY(-8px) translate(-50%);width:112px;color:var(--playpilot-text-color)}.close.svelte-j420io{--playpilot-button-background: var(--playpilot-modal-close-button-background, var(--playpilot-content));--playpilot-button-shadow: var(--playpilot-modal-close-button-shadow, var(--playpilot-shadow));--playpilot-button-padding: var(--playpilot-modal-close-button-padding, .5rem);--playpilot-button-text-color: var(--playpilot-modal-close-button-text-color, var(--playpilot-text-color-alt));z-index:5;position:fixed;top:calc(var(--dialog-offset) + 16px);right:16px}@media (min-width: 600px){.close.svelte-j420io{position:absolute;top:16px}}.close.svelte-j420io:hover{filter:brightness(1.1)}.close.flat.svelte-j420io{--playpilot-button-background: transparent;--playpilot-button-shadow: none}.close.back.svelte-j420io{right:auto;left:16px}.close.back.flat.svelte-j420io{left:8px}.close.back.flat.svelte-j420io svg{margin:0}.prepend.svelte-j420io{z-index:1;position:relative;width:calc(100% - 16px);max-width:600px;padding-top:48px;margin:auto auto 8px}@media (min-width: 600px){.prepend.svelte-j420io{padding-top:0;margin-top:0}}.bubble.svelte-j420io{z-index:1;position:relative;width:calc(100% - 16px);max-width:600px;margin:8px}@media (min-width: 600px){.bubble.svelte-j420io{width:100%;margin:0 0 8px}}.bubble.inline.svelte-j420io{width:100%;margin:auto 0 0}@media (min-width: 600px){.bubble.inline.svelte-j420io{margin-top:0}}.prepend.svelte-j420io+.bubble:where(.svelte-j420io):not(.inline){margin-top:0}.top-scroll.svelte-1sg9fqf{position:relative;display:block;width:100%;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-popover-border-radius, 16px));background:#000;color:var(--playpilot-top-scroll-text-color, white);font-family:var(--playpilot-top-scroll-font-family, var(--playpilot-detail-font-family, var(--playpilot-font-family)));font-size:var(--playpilot-top-scroll-font-size, var(--playpilot-detail-font-size, 14px));text-decoration:none;line-height:1.35}.top-scroll.inline.svelte-1sg9fqf{border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-popover-border-radius, 16px)) var(--playpilot-top-scroll-border-radius, var(--playpilot-popover-border-radius, 16px)) 0 0}.content.svelte-1sg9fqf{display:flex;z-index:1;position:relative;align-items:center;height:100%;min-height:72px;padding:4px 8px;gap:8px;color:var(--playpilot-top-scroll-text-color, white)}.simple.svelte-1sg9fqf .content:where(.svelte-1sg9fqf){justify-content:center;min-height:0;padding:0}.logo.svelte-1sg9fqf{border-radius:var(--playpilot-top-scroll-logo-border-radius, 8px);background:#000}.tagline.svelte-1sg9fqf{margin:0;text-shadow:var(--playpilot-shadow)}.button.svelte-1sg9fqf{margin-left:auto;margin-right:16px;padding:4px 8px;background:var(--playpilot-top-scroll-button-background, white);border:0;border-radius:var(--playpilot-top-scroll-button-border-radius, 4px);box-shadow:var(--playpilot-shadow);color:var(--playpilot-top-scroll-button-text-color, black);font-family:inherit;font-size:inherit;line-height:inherit}.button.svelte-1sg9fqf:hover{outline:4px solid var(--playpilot-top-scroll-button-background, rgba(255, 255, 255, .35));background:var(--playpilot-top-scroll-button-background, white)}.button.svelte-1sg9fqf:active{background:var(--playpilot-top-scroll-button-background, white)}.background.svelte-1sg9fqf{z-index:0;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-popover-border-radius, 16px));background-image:var(--background);background-position:center;background-size:cover;opacity:.4}.top-scroll.svelte-1sg9fqf:hover .background:where(.svelte-1sg9fqf){filter:brightness(1.15)}.inline.svelte-1sg9fqf .background:where(.svelte-1sg9fqf){border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-popover-border-radius, 16px)) var(--playpilot-top-scroll-border-radius, var(--playpilot-popover-border-radius, 16px)) 0 0}.content-image.svelte-1sg9fqf{display:block;max-width:100%;height:auto;background:#000;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-popover-border-radius, 16px))}.top-scroll.svelte-1sg9fqf:hover .content-image:where(.svelte-1sg9fqf){filter:brightness(1.15)}.inline.svelte-1sg9fqf .content-image:where(.svelte-1sg9fqf){border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-popover-border-radius, 16px)) var(--playpilot-top-scroll-border-radius, var(--playpilot-popover-border-radius, 16px)) 0 0}.tooltip.svelte-17rkbgm{position:relative}.content.svelte-17rkbgm{position:absolute;bottom:0;left:0;transform:translateY(100%);padding:4px;background:var(--playpilot-tooltip-background, var(--playpilot-detail-background, var(--playpilot-light)));border-radius:var(--playpilot-tooltip-border-radius, 4px);box-shadow:var(--playpilot-tooltip-shadow, var(--playpilot-shadow));color:var(--playpilot-tooltip-text-color, var(--playpilot-detail-text-color, var(--playpilot-text-color)));white-space:nowrap}.display.svelte-ltvyn2{display:block;position:relative;border-radius:var(--playpilot-display-ad-border-radius, 8px);overflow:hidden;background:#000;aspect-ratio:16/9;color:#fff!important;text-shadow:1px 1px 2px rgba(0,0,0,.35);font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));line-height:1.2;font-style:normal!important}.info.svelte-ltvyn2{position:absolute;top:0;left:0;padding:8px;font-size:12px;text-decoration:underline}@media (min-width: 600px){.info.svelte-ltvyn2{padding:16px}.compact.svelte-ltvyn2 .info:where(.svelte-ltvyn2){padding:12px}}.cta.svelte-ltvyn2{z-index:1;display:flex;align-items:center;gap:8px;position:absolute;right:0;bottom:0;left:0;padding:8px;background:linear-gradient(to right,#6e6e6e,#5555554d);font-size:14px;text-decoration:none}@media (min-width: 600px){.cta.svelte-ltvyn2{padding:16px}.compact.svelte-ltvyn2 .cta:where(.svelte-ltvyn2){padding:12px}}.logo.svelte-ltvyn2{border-radius:var(--playpilot-display-ad-border-radius, 8px)}.name.svelte-ltvyn2{font-weight:500}.subheader.svelte-ltvyn2{font-size:12px}.action.svelte-ltvyn2{margin-left:auto;padding:8px 12px;background:var(--playpilot-display-ad-action-background, white);border-radius:var(--playpilot-display-action-border-radius, 32px);transition:transform 50ms;text-shadow:none;font-weight:var(--playpilot-display-action-font-weight, 500);color:var(--playpilot-display-action-text-color, black);white-space:nowrap}.action.svelte-ltvyn2:hover{transform:scale(1.05)}.background.svelte-ltvyn2{display:block;width:100%;height:auto}.disclaimer.svelte-ltvyn2{position:absolute;bottom:calc(var(--offset) + 4px);right:4px}.playlink.svelte-1ficv10{display:inline-block;background:var(--playpilot-playlink-background, var(--playpilot-light));border-radius:var(--playpilot-playlink-border-radius, 8px);overflow:hidden}.playlink.svelte-1ficv10:hover,.playlink.svelte-1ficv10:active{filter:var(--playpilot-playlink-hover-filter, brightness(1.1));background:var(--playpilot-playlink-hover-background, var(--playpilot-playlink-background, var(--playpilot-lighter)))!important;text-decoration:none!important;outline:2px solid var(--playpilot-detail-text-color, var(--playpilot-text-color))}.playlink.svelte-1ficv10 img:where(.svelte-1ficv10){display:block;margin:0}.playlink.svelte-17p1eg8{display:inline-block;background:var(--playpilot-playlink-label-background, var(--playpilot-light));border-radius:var(--playpilot-playlink-label-border-radius, 4px);padding:4px 8px;font-size:var(--playpilot-playlink-label-font-size, 12px);color:var(--playpilot-playlink-label-text-color, var(--playpilot-text-color-alt))!important;text-decoration:none;font-style:normal!important;overflow:hidden}.playlink.svelte-17p1eg8:hover,.playlink.svelte-17p1eg8:active{background:var(--playpilot-playlink-label-hover-background, var(--playpilot-content-light))}img.svelte-ht3b44{display:block;width:100%;height:auto}.title.svelte-wdqhqr{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;width:100%;background:var(--playpilot-list-item-background, var(--playpilot-lighter));padding:8px;border:0;border-radius:var(--playpilot-list-item-border-radius, 8px);text-decoration:none;font-style:normal!important}.title.svelte-wdqhqr:hover{background:var(--playpilot-list-item-hover-background, var(--playpilot-content))}.title.svelte-wdqhqr:last-child{border-bottom:0}.poster.svelte-wdqhqr{flex:0 0 auto;height:auto;align-self:start;width:66px;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, 8px);background:var(--playpilot-detail-image-background, var(--playpilot-content));overflow:hidden}.content.svelte-wdqhqr{padding-left:16px;font-family:inherit;text-align:left;color:var(--playpilot-list-item-text-color, var(--playpilot-text-color));font-size:var(--playpilot-detail-font-size, 14px);line-height:normal}@media (min-width: 600px){.content.svelte-wdqhqr{padding-right:16px}}.heading.svelte-wdqhqr{color:var(--playpilot-list-item-title-text-color, var(--playpilot-detail-title-text-color, var(--playpilot-text-color)));font-weight:var(--playpilot-list-item-title-font-weight, var(--playpilot-detail-title-font-weight, 500))}.meta.svelte-wdqhqr{display:flex;flex-wrap:wrap;gap:0 8px;margin:2px 0;font-size:var(--playpilot-detail-font-size-small, 12px);font-weight:var(--playpilot-list-item-meta-font-weight, var(--playpilot-detail-title-font-weight, 500));color:var(--playpilot-list-item-meta-text-color, var(--playpilot-text-color-alt))}.meta.svelte-wdqhqr>div:where(.svelte-wdqhqr){text-transform:capitalize}.imdb.svelte-wdqhqr{display:flex;align-items:center;gap:4px}.description.svelte-wdqhqr{margin-bottom:6px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;line-clamp:1;-webkit-line-clamp:1;-webkit-box-orient:vertical;font-size:var(--playpilot-detail-font-size-small, 12px);color:var(--playpilot-list-item-description-text-color, var(--playpilot-text-color))}.playlinks.svelte-wdqhqr{display:flex;flex-wrap:wrap;gap:4px;margin-top:auto}.more.svelte-wdqhqr{display:flex;align-items:center;padding:0 4px;color:var(--playpilot-list-item-more-text-color, var(--playpilot-text-color-alt));font-size:var(--playpilot-detail-font-size-small, 12px)}.empty.svelte-wdqhqr{margin-top:8px;opacity:.65;font-style:italic;font-size:.85em;white-space:initial}.action.svelte-wdqhqr{display:flex;margin:0 8px 0 auto;padding-left:8px;align-self:center;color:var(--playpilot-list-item-action-color, var(--playpilot-detail-text-color, var(--playpilot-text-color-alt)))}.action.svelte-wdqhqr:hover,.action.svelte-wdqhqr:active{color:var(--playpilot-list-item-action-hover-color, var(--playpilot-detail-text-color, var(--playpilot-text-color)))}.header.svelte-uqs0wk{padding:64px 16px 32px;background:linear-gradient(to bottom,var(--playpilot-detail-background-light, var(--playpilot-lighter)),transparent);border-radius:var(--playpilot-detail-border-radius, 16px 16px 0 0);font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-font-weight, normal);font-size:var(--playpilot-detail-font-size, 14px);line-height:var(--playpilot-participant-description-line-height, normal);color:var(--playpilot-detail-text-color, var(--playpilot-text-color))}.heading.svelte-uqs0wk{margin:0;font-family:var(--playpilot-detail-title-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-title-font-weight, lighter);font-size:var(--playpilot-detail-title-font-size, 24px);line-height:normal;font-style:var(--playpilot-detail-title-font-style, normal)}.heading.small.svelte-uqs0wk{margin:0 0 8px;font-size:var(--playpilot-detail-title-small-font-size, 20px)}.dates.svelte-uqs0wk{margin:8px 0 0}.content.svelte-uqs0wk{padding:0 16px 16px;color:var(--playpilot-detail-text-color, var(--playpilot-text-color));font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-font-weight, normal);font-size:var(--playpilot-detail-font-size, 14px);line-height:normal;font-style:normal}.list.svelte-uqs0wk{display:flex;flex-direction:column;gap:8px}.slider.svelte-zli3gi{overflow-x:hidden;touch-action:pan-y}@media (pointer: fine){.slider.passed-threshold.svelte-zli3gi{pointer-events:none}}.slider-content.svelte-zli3gi{display:flex;align-items:flex-start;width:fit-content;gap:var(--gap, 0);-webkit-user-select:none;user-select:none;transition:transform}@media (prefers-reduced-motion){.slider-content.svelte-zli3gi{transition:none}}.heading.svelte-s55tpd{margin:16px 0 8px;font-size:var(--playpilot-rail-title-font-size, 18px);line-height:normal;font-weight:inherit;color:var(--playpilot-rail-title-text-color, var(--playpilot-text-color))}.rail.svelte-s55tpd{--gap: 8px;position:relative;width:calc(100% + 32px);margin:0 -16px}.rail.svelte-s55tpd .slider{padding:0 16px}.rail.svelte-s55tpd .slider-content>:last-child{margin-right:32px}.arrow.svelte-s55tpd{display:none;align-items:center;justify-content:center;position:absolute;left:32px;top:50%;width:32px;height:32px;padding:0;margin:0;border:0;border-radius:50%;transform:translate(-50%) translateY(-50%);background:var(--playpilot-rails-arrow-background, var(--playpilot-content-light));z-index:2;cursor:pointer;color:var(--playpilot-rails-arrow-color, var(--playpilot-detail-text-color, white))}@media (hover: hover){.arrow.svelte-s55tpd{display:flex}}.arrow.svelte-s55tpd:hover{filter:brightness(1.2)}.arrow.right.svelte-s55tpd{left:auto;right:0}.participant.svelte-1rm28bi{display:block;flex:0 0 10rem;width:10rem;padding:8px;border:0;border-radius:var(--playpilot-cast-border-radius, var(--playpilot-playlink-border-radius, 8px));background:var(--playpilot-cast-background, var(--playpilot-playlink-background, var(--playpilot-lighter)));cursor:pointer;font-family:inherit;text-align:left;color:inherit;font-size:var(--playpilot-cast-font-size, var(--playpilot-playlinks-font-size, 12px));white-space:nowrap}.participant.svelte-1rm28bi:hover,.participant.svelte-1rm28bi:active{filter:var(--playpilot-cast-hover-filter, var(--playpilot-playlink-hover-filter, brightness(1.1)));text-decoration:none!important}.character.svelte-1rm28bi{color:var(--playpilot-cast-character-text-color, var(--playpilot-text-color-alt));font-style:italic}.truncate.svelte-1rm28bi{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title.svelte-z28rvt{width:96px}.title.svelte-z28rvt:hover,.title.svelte-z28rvt:active{filter:brightness(1.1)}.poster.svelte-z28rvt{display:block;border-radius:var(--playpilot-rail-border-radius, var(--playpilot-playlink-border-radius, 8px));overflow:hidden;width:100%;aspect-ratio:2/3;background:var(--playpilot-detail-background-light, var(--playpilot-lighter))}.heading.svelte-z28rvt{display:-webkit-box;padding-top:8px;overflow:hidden;text-decoration:none;color:var(--playpilot-detail-text-color, var(--playpilot-text-color-alt))!important;font-size:var(--playpilot-rail-font-size, var(--playpilot-detail-font-size-small, 12px));font-style:normal!important;line-height:1.2;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis}.skeleton.svelte-z28rvt{display:block;height:1em;width:100%;background:var(--playpilot-detail-background-light, var(--playpilot-lighter));border-radius:32px}.skeleton.svelte-z28rvt:last-child{margin-top:4.8px;width:50%}.heading.svelte-g2rhk0{margin:8px 0;color:var(--playpilot-detail-title-text-color, #fff);font-family:var(--playpilot-detail-title-font-family, inherit);font-weight:var(--playpilot-detail-title-font-weight, lighter);font-size:var(--playpilot-detail-title-font-size, 24px);line-height:normal;font-style:var(--playpilot-detail-title-font-style, normal)}.small.svelte-g2rhk0 .heading:where(.svelte-g2rhk0){font-size:var(--playpilot-detail-title-font-size-small, 18px)}.content.svelte-g2rhk0{z-index:1;position:relative;padding:16px;color:var(--playpilot-detail-text-color, var(--playpilot-text-color));font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-font-weight, normal);font-size:var(--playpilot-detail-font-size, 14px);line-height:normal;font-style:normal}.content.svelte-g2rhk0 ::view-transition-old(content),.content.svelte-g2rhk0 ::view-transition-new(content){height:100%}.content.small.svelte-g2rhk0{font-size:var(--playpilot-detail-font-size-small, 12px);line-height:1.45;padding-bottom:16px}.header.svelte-g2rhk0{padding:48px 0 16px;background:transparent}.small.svelte-g2rhk0 .header:where(.svelte-g2rhk0){padding-top:16px}.poster.svelte-g2rhk0{display:block;width:72px;margin:0;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, 8px);background:var(--playpilot-detail-image-background, var(--playpilot-content));box-shadow:var(--playpilot-detail-image-shadow, var(--playpilot-shadow));overflow:hidden;opacity:0}.poster.loaded.svelte-g2rhk0{opacity:1}.info.svelte-g2rhk0{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}.small.svelte-g2rhk0 .info:where(.svelte-g2rhk0){gap:8px 12px}.imdb.svelte-g2rhk0{display:flex;align-items:center;gap:4px}.imdb.svelte-g2rhk0 svg{margin-top:-2px}.small.svelte-g2rhk0 .imdb:where(.svelte-g2rhk0) svg{margin-top:0;width:12px;height:12px}.background.svelte-g2rhk0{position:absolute;top:0;left:0;width:100%;height:192px;border-radius:var(--playpilot-detail-background-border-radius);overflow:hidden;background:var(--playpilot-detail-background, var(--playpilot-lighter));z-index:0}.background.svelte-g2rhk0:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(to top,var(--playpilot-detail-background, var(--playpilot-light)),transparent 40%);z-index:1}.background.svelte-g2rhk0 img:where(.svelte-g2rhk0){width:100%;height:100%;object-fit:cover;object-position:center;margin:0;opacity:0;z-index:0}.background.svelte-g2rhk0 img.loaded:where(.svelte-g2rhk0){opacity:1}.background.svelte-g2rhk0 img.blur:where(.svelte-g2rhk0){opacity:.5;transform:scale(1.1);filter:blur(.75rem)}.capitalize.svelte-g2rhk0{text-transform:capitalize}.truncate.svelte-g2rhk0{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title-popover.svelte-d86q0q{position:absolute}p.svelte-pfvkex{font-weight:var(--playpilot-after-article-text-font-weight, normal)}span.svelte-pfvkex{display:block}button.svelte-pfvkex{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:var(--playpilot-after-article-button-padding, 4px 12px);margin:var(--playpilot-after-article-button-margin, 4px 0 0);background:var(--playpilot-after-article-button-background, transparent);border:var(--playpilot-after-article-button-border, 2px solid currentColor);border-radius:var(--playpilot-after-article-button-border-radius, 16px);color:var(--playpilot-after-article-button-text-color, inherit);font-weight:var(--playpilot-after-article-button-font-weight, bold);font-size:var(--playpilot-after-article-button-font-size, 16px);cursor:pointer;transition:all 50ms}button.svelte-pfvkex:hover{background:var(--playpilot-after-article-button-background-hover, transparent);border:var(--playpilot-after-article-button-border-hover, 2px solid currentColor);color:var(--playpilot-after-article-button-text-color-hover, inherit);transform:var(--playpilot-after-article-button-transform-hover, scale(1.02))}svg.svelte-by11ix{transition:transform .1s}.expanded.svelte-by11ix{transform:rotate(180deg)}.switch.svelte-91s87b{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;border:0;padding:0;background:transparent;cursor:pointer}.fullwidth.svelte-91s87b{width:100%;justify-content:space-between}.label.svelte-91s87b{display:flex;align-items:center;gap:8px;margin-right:8px;font-family:var(--playpilot-font-family);color:var(--playpilot-text-color-alt);font-size:12px}.switch.svelte-91s87b:hover .label:where(.svelte-91s87b){color:var(--playpilot-text-color)}.track.svelte-91s87b{position:relative;width:32px;height:20px;border-radius:16px;background:var(--playpilot-content);transition:background-color .1s}.active.svelte-91s87b .track:where(.svelte-91s87b){background:var(--playpilot-green)}.knob.svelte-91s87b{position:absolute;top:2px;left:2px;height:16px;width:16px;border-radius:50%;background:#fff;transition:left .1s}.active.svelte-91s87b .knob:where(.svelte-91s87b){left:14px}input.svelte-1vrer3i{width:100%;padding:8px 16px;border:0;border-radius:32px;background:var(--playpilot-light);color:var(--playpilot-text-color-alt);font-size:12px;font-family:var(--playpilot-font-family)}input.svelte-1vrer3i:focus{background:var(--playpilot-lighter);outline:1px solid white}input.svelte-1vrer3i::placeholder{color:var(--playpilot-text-color-alt);opacity:.75}.alert.svelte-df5n87{padding:8px;border-radius:8px;border:1px solid var(--playpilot-error);background:var(--playpilot-error-dark);font-size:12px;font-family:var(--playpilot-font-family)}.alert.warning.svelte-df5n87{border-color:var(--playpilot-warning);background:var(--playpilot-warning-dark)}.alert.fixed.svelte-df5n87{position:fixed;bottom:1rem;right:1rem;width:80%;max-width:25rem}.alert.svelte-df5n87 a{color:currentColor}.switches.svelte-1shw34x{display:flex;flex-direction:column;gap:12px}button.svelte-1shw34x{z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:32px;padding:8px;background:transparent;font-family:var(--playpilot-font-family);font-size:10.4px;color:var(--playpilot-text-color-alt);cursor:pointer}button.svelte-1shw34x:hover,button.active.svelte-1shw34x{color:var(--playpilot-text-color)}.group.svelte-1shw34x{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;padding:4px;border:0;border-radius:32px;background:var(--playpilot-light);color:var(--playpilot-text-color-alt);font-size:12px;font-family:var(--playpilot-font-family)}.active-marker.svelte-1shw34x{z-index:0;position:absolute;width:calc(50% - 8px);height:calc(100% - 8px);left:4px;top:4px;border-radius:32px;background:var(--playpilot-content);transition:left .1s}.right.svelte-1shw34x{left:calc(50% + 4px)}.label.svelte-1shw34x{margin:10.8px 0 4px;opacity:.75;font-size:10.8px;color:var(--playpilot-text-color-alt)}.alert.svelte-1shw34x{margin-top:8px}button.svelte-zpsd2z{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-radius:4px;background:transparent;color:var(--playpilot-text-color-alt)}button.svelte-zpsd2z:hover{cursor:pointer;color:#fff}.context-menu.svelte-zpsd2z{position:relative}.content.svelte-zpsd2z{z-index:1;position:absolute;top:100%;right:0;max-width:240px;border-radius:8px;background:var(--playpilot-lighter)}select.svelte-o5qkco{background:var(--playpilot-content);padding:8px 16px;width:100%;border:0;border-radius:8px;color:var(--playpilot-text-color);font-family:inherit;font-size:13.6px}option.svelte-o5qkco:hover,option.svelte-o5qkco:active,option.svelte-o5qkco:checked{background-color:var(--playpilot-content-light);font-weight:700}.form.svelte-o5qkco{padding:32px;font-family:var(--playpilot-font-family);color:var(--playpilot-text-color)}.heading.svelte-o5qkco{font-size:20px}.info.svelte-o5qkco{margin:16px 0;font-size:13.6px;color:var(--playpilot-text-color-alt)}.info.svelte-o5qkco strong:where(.svelte-o5qkco){color:var(--playpilot-text-color)}.submit.svelte-o5qkco{margin-top:16px;padding:8px 16px;border:0;border-radius:32px;background:var(--playpilot-green);box-shadow:var(--playpilot-shadow);font-family:inherit;color:var(--playpilot-text-color);font-size:13.6px;cursor:pointer}.submit[disabled].svelte-o5qkco{background:var(--playpilot-content);color:var(--playpilot-text-color-alt);box-shadow:none;opacity:.5;cursor:default}.sent.svelte-o5qkco{margin-top:16px;padding:8px 0;color:var(--playpilot-green);font-size:13.6px}.item.svelte-lo6h85{padding:16px 8px;border-bottom:1px solid var(--playpilot-lighter);transition:outline-offset .1s}.item.svelte-lo6h85:hover,.item.highlighted.svelte-lo6h85{border-radius:8px;border-color:transparent;outline:2px solid var(--playpilot-content);outline-offset:1px}.item.highlighted.svelte-lo6h85{outline:2px solid var(--playpilot-primary)}.header.svelte-lo6h85{display:flex;gap:16px;width:100%}.poster.svelte-lo6h85{display:block;width:32px;height:48px;border-radius:4px;background:var(--playpilot-content)}.inactive.svelte-lo6h85 .poster:where(.svelte-lo6h85){opacity:.35}.title.svelte-lo6h85{font-size:14px;word-break:break-word}.sentence.svelte-lo6h85{font-size:.7em;line-height:150%;margin-right:-8px;color:var(--playpilot-text-color-alt);opacity:.75}.sentence.svelte-lo6h85 em{color:var(--playpilot-text-color);font-weight:700}.expand-sentence.svelte-lo6h85{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;padding:0;margin:0;background:transparent;font-family:inherit;color:inherit;font-size:inherit;line-height:inherit;font-style:italic;text-decoration:underline}.expand-sentence.svelte-lo6h85:hover{color:var(--playpilot-text-color)}.content.svelte-lo6h85{padding-top:8px}.inactive.svelte-lo6h85 .info:where(.svelte-lo6h85){opacity:.35}.context-menu.svelte-lo6h85{margin:0 -4px 0 auto}.context-menu-action.svelte-lo6h85{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;padding:8px 16px;width:100%;text-align:left;font-family:inherit;white-space:nowrap;color:var(--playpilot-text-color-alt);cursor:pointer}.context-menu-action.svelte-lo6h85:hover{color:var(--playpilot-text-color);background-color:var(--playpilot-content-light)}.context-menu-action.svelte-lo6h85:first-child{margin-top:8px}.context-menu-action.svelte-lo6h85:last-child{margin-bottom:8px}.actions.svelte-lo6h85{display:flex;align-items:center;justify-content:space-between;width:100%}.expand.svelte-lo6h85{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:0;border-radius:50%;background:var(--playpilot-content);color:var(--playpilot-text-color);box-shadow:var(--playpilot-shadow);cursor:pointer}.expand.svelte-lo6h85:hover{filter:brightness(1.2)}.expanded.svelte-lo6h85{padding-top:16px}.type-select.svelte-lo6h85{margin-top:8px}.label.svelte-lo6h85{margin-bottom:4px;opacity:.75;font-size:10.8px;color:var(--playpilot-text-color-alt)}.offset.svelte-lo6h85{margin-top:12px}.warning.svelte-lo6h85{margin:0 auto 0 8px}.warning.svelte-lo6h85 svg{display:block}.drag-handle.svelte-19mcc5g{z-index:10;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;top:8px;left:30%;width:40%;height:16px;background:transparent;border:0;cursor:grab}.drag-handle.svelte-19mcc5g:hover:before{opacity:.65;transform:scale(1.05)}.drag-handle.svelte-19mcc5g:active:before{opacity:.9;transform:scale(.95)}.drag-handle.svelte-19mcc5g:active{cursor:grabbing}.drag-handle.svelte-19mcc5g:before{display:block;content:"";position:absolute;top:20%;right:0;bottom:60%;left:0;border-radius:16px;background:var(--playpilot-text-color);opacity:.15;transition:opacity .1s,transform 50ms}.resize-handle.svelte-sxkuxk{z-index:10;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;top:0;left:0;width:100%;height:8px;background:transparent;border:0;cursor:ns-resize}.resize-handle.svelte-sxkuxk:hover:before{opacity:.65;transform:scale(1.05)}.resize-handle.svelte-sxkuxk:active:before{opacity:.9;transform:scale(.95)}.resize-handle.svelte-sxkuxk:active{cursor:grabbing}.resize-handle.svelte-sxkuxk:before{display:block;content:"";position:absolute;top:0;right:20%;left:20%;bottom:80%;border-radius:0 0 16px 16px;background:var(--playpilot-text-color);opacity:.15;transition:opacity .1s,transform 50ms}.item.svelte-rjq94e{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:flex-start;gap:16px;width:100%;background:transparent;border:0;padding:8px;border-bottom:1px solid var(--playpilot-content);color:var(--playpilot-text-color-alt);font-family:inherit;text-align:left;font-size:13.6px}.item.hoverable.svelte-rjq94e{cursor:pointer}.item.hoverable.svelte-rjq94e:hover{background:var(--playpilot-lighter)}.item.svelte-rjq94e:last-child{border-bottom:0}.poster.svelte-rjq94e{flex:0 0 auto;height:auto;width:28px;aspect-ratio:28/42;border-radius:4px;background:var(--playpilot-content)}.name.svelte-rjq94e{color:var(--playpilot-text-color)}.meta.svelte-rjq94e{display:flex;flex-wrap:wrap;gap:0 8px;font-size:12px}.imdb.svelte-rjq94e{display:flex;align-items:center;gap:4px}.open-in-new-tab.svelte-rjq94e{margin-left:auto;color:var(--playpilot-text-color-alt)}.open-in-new-tab.svelte-rjq94e:hover{color:vaR(--playpilot-text-color)}.search.svelte-1olb8n0{position:relative}.results.svelte-1olb8n0{z-index:1;position:absolute;top:calc(100% + 8px);left:0;right:0;height:30vh;max-height:160px;border-radius:8px;background:var(--playpilot-light);scrollbar-width:thin;overflow:auto}.empty.svelte-1olb8n0{padding:8px;font-size:12px;color:var(--playpilot-text-color-alt)}.selected.svelte-1olb8n0{margin:8px 0;border-radius:.5rem;border:2px solid var(--playpilot-green)}p.svelte-1i8p6op,label.svelte-1i8p6op{font-size:12px;max-width:240px;color:var(--playpilot-text-color-alt)}label.svelte-1i8p6op{display:block;margin-top:16px}.layout.svelte-1i8p6op{height:100%;display:flex;flex-direction:column;margin:0}.header.svelte-1i8p6op{display:flex;align-items:center;gap:8px;margin-bottom:16px}.heading.svelte-1i8p6op{margin:0;color:var(--playpilot-text-color);font-size:16px;line-height:normal;font-weight:400}.error.svelte-1i8p6op{margin-top:8px}.save.svelte-1i8p6op{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;margin-top:auto;padding:8px;border:0;border-radius:32px;background:var(--playpilot-green);transition:opacity .1s;font-family:inherit;color:var(--playpilot-text-color)}.save.svelte-1i8p6op:not([disabled]):hover{outline:2px solid currentColor}.save[disabled].svelte-1i8p6op{cursor:default;background:var(--playpilot-light);opacity:.5;color:var(--playpilot-text-color-alt)}p.svelte-2m2urs{margin:0 0 8px}.alert.svelte-2m2urs{margin:0 8px}.button.svelte-2m2urs{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;padding:4px;border:0;border-radius:4px;background:var(--playpilot-warning);transition:opacity .1s;font-family:inherit;color:var(--playpilot-dark);font-size:.85rem;cursor:pointer}.button.svelte-2m2urs:hover{background:#fff}a.svelte-1kpafo0{color:currentColor}p.svelte-1kpafo0{margin:0}.ai-indicator.svelte-1kpafo0{position:relative;margin:0 8px}.content.svelte-1kpafo0{position:relative;display:flex;gap:8px;background:var(--playpilot-light);padding:8px;margin:2px;border-radius:.5rem;font-size:12px;line-height:1.5;z-index:1;color:var(--playpilot-text-color-alt);overflow:hidden}.message.svelte-1kpafo0{display:flex;margin-top:4px;font-style:italic}.icon.svelte-1kpafo0{color:var(--playpilot-green)}.border.svelte-1kpafo0{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:.5rem;background:var(--playpilot-green);overflow:hidden;transition:background-color .5s}.running.svelte-1kpafo0 .border:where(.svelte-1kpafo0){background:var(--playpilot-light)}@keyframes svelte-1kpafo0-rotate{to{rotate:360deg}}.animator.svelte-1kpafo0{position:absolute;left:50%;top:50%;transform:translateY(-50%);width:100%;height:20rem;background:var(--playpilot-green);transform-origin:left 50%;animation:svelte-1kpafo0-rotate 2s infinite linear;filter:blur(5rem)}.loading-bar.svelte-1kpafo0{display:grid;grid-template-columns:auto 3em;align-items:center}.loading-bar-progress.svelte-1kpafo0{height:.5em;border-radius:.25rem;background:var(--playpilot-dark)}.loading-bar-fill.svelte-1kpafo0{height:100%;border-radius:.25rem;background:var(--playpilot-green);transition:width .2s}.loading-bar-label.svelte-1kpafo0{text-align:right}@keyframes svelte-1kpafo0-fade{0%,to{opacity:0}25%,75%{opacity:1}}.ellipses.svelte-1kpafo0 span:where(.svelte-1kpafo0){animation:svelte-1kpafo0-fade 2s infinite}.ellipses.svelte-1kpafo0 span:where(.svelte-1kpafo0):nth-child(1){animation-delay:.2s}.ellipses.svelte-1kpafo0 span:where(.svelte-1kpafo0):nth-child(2){animation-delay:.4s}.ellipses.svelte-1kpafo0 span:where(.svelte-1kpafo0):nth-child(3){animation-delay:.6s}.dismiss.svelte-1kpafo0{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-top:4px;padding:4px;border:2px solid var(--playpilot-content-light);border-radius:4px;background:var(--playpilot-light);font-family:inherit;color:var(--playpilot-text-color-alt);font-size:12px;line-height:1;cursor:pointer}.dismiss.svelte-1kpafo0:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.editor.svelte-11aj6xq{z-index:2147483646;display:flex;flex-direction:column;position:fixed;bottom:16px;right:16px;width:100%;max-width:352px;height:min(70vh,640px);min-height:min(25rem,80vh);margin:0;padding:16px;border-radius:24px;background:var(--playpilot-dark);box-shadow:var(--playpilot-shadow-large);color:var(--playpilot-text-color);font-family:var(--playpilot-font-family);transition:border-radius .1s;overflow-y:auto;overflow-x:hidden;line-height:normal}.panel-open.svelte-11aj6xq{overflow:hidden}.loading.svelte-11aj6xq{height:auto;min-height:0;border-radius:32px;margin-left:auto;padding-right:8px;color:var(--playpilot-text-color-alt);font-size:13.6px}.handles.svelte-11aj6xq,.header.svelte-11aj6xq{z-index:20;position:sticky;top:-16px;margin:-16px -16px 0}.handle.svelte-11aj6xq{opacity:0;transition:opacity .15s}.editor.svelte-11aj6xq:hover .handle:where(.svelte-11aj6xq){opacity:1}.header.svelte-11aj6xq{z-index:5;display:flex;align-items:center;padding:16px 16px 16px 24px;margin:0 -16px;border:0;background:var(--playpilot-dark)}.loading.svelte-11aj6xq .header:where(.svelte-11aj6xq){margin:-16px}.heading.svelte-11aj6xq{margin:0 12px 0 0;color:var(--playpilot-text-color);font-size:20px;font-weight:400;line-height:normal}.bubble.svelte-11aj6xq{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:24px;height:24px;border:0;padding:0;margin-right:auto;border-radius:50%;background:var(--playpilot-green);line-height:24px;text-align:center;font-size:13.6px}.items.svelte-11aj6xq{padding-top:8px;margin-bottom:auto}.empty.svelte-11aj6xq{padding:8px;font-size:13.6px;font-style:italic;color:var(--playpilot-text-color-alt)}.save.svelte-11aj6xq{z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:sticky;bottom:0;left:0;width:100%;margin-top:16px;padding:8px;border:0;border-radius:32px;background:var(--playpilot-content);box-shadow:0 0 16px 16px var(--playpilot-dark);transition:opacity .1s;font-family:inherit;color:var(--playpilot-text-color-alt);font-size:13.6px;cursor:pointer}.save.svelte-11aj6xq:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.save[disabled].svelte-11aj6xq{opacity:.75;background:var(--playpilot-light);color:var(--playpilot-content-light)}.error.svelte-11aj6xq{margin-top:8px}.alert.svelte-11aj6xq{margin:8px 8px 0}.panel.svelte-11aj6xq{z-index:10;position:absolute;top:0;left:0;width:100%;height:100%;padding:24px;background:var(--playpilot-dark);overflow-y:auto}.trigger.svelte-qee95d{position:fixed;bottom:16px;right:16px}.button.svelte-qee95d{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:48px;height:48px;border:0;padding:12px;border-radius:50%;background:var(--playpilot-light);box-shadow:var(--playpilot-shadow-large);transition:transform 50ms;line-height:24px;text-align:center;font-size:13.6px}.button.svelte-qee95d:hover{filter:brightness(1.1);transform:scale(1.05)}.button.svelte-qee95d svg{width:100%}.close.svelte-qee95d{display:flex;text-align:center;justify-content:center;position:absolute;top:-8px;right:-8px;width:24px;height:24px;padding:4px;background:var(--playpilot-content);color:#fff}.close.svelte-qee95d svg{width:12px}img.svelte-j7f9xl{position:absolute;width:1px;height:1px;border:0;opacity:0}summary.svelte-788n6f{color:var(--playpilot-primary);font-weight:700}hr.svelte-788n6f{border-color:var(--playpilot-primary)}button.svelte-788n6f{cursor:pointer;padding:8px;border:1px solid var(--playpilot-primary);background:transparent;color:var(--playpilot-primary);font-family:inherit;font-weight:700}.debugger.svelte-788n6f{z-index:2147483647;position:fixed;top:0;left:0;max-width:70dvw;max-height:50dvh;padding:16px;border:1px solid var(--playpilot-primary);background:#000;overflow:auto;color:#fff;font-family:Consolas,monospace}.item.svelte-788n6f{white-space:nowrap;overflow-x:auto;scrollbar-width:thin}.data.svelte-788n6f{color:gray}:root{--playpilot-primary: #fa548a;--playpilot-dark: #101426;--playpilot-light: #1b2743;--playpilot-lighter: #233257;--playpilot-content: #354367;--playpilot-content-light: #4b5b82;--playpilot-green: #53bca0;--playpilot-font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;--playpilot-text-color: #fff;--playpilot-text-color-alt: #c8d4de;--playpilot-shadow: 3.2px 2.4px 2.4px rgba(0, 0, 0, .2);--playpilot-shadow-large: 2.4px 2.4px 3.2px rgba(0, 0, 0, .05), 3.2px 5.6px 5.6px rgba(0, 0, 0, .1), 1.6px 1.6px 12px rgba(0, 0, 0, .25);--playpilot-error: #ea5a5a;--playpilot-error-dark: #442533;--playpilot-warning: #f7c74e;--playpilot-warning-dark: #413c23}[data-playpilot-injection-key]{position:relative}.playpilot-injection-highlight{outline:4px solid var(--playpilot-primary)!important;outline-offset:8px!important;border-radius:.8px;scroll-margin:80px}.playpilot-styled-scrollbar{scrollbar-color:var(--playpilot-content-light) var(--playpilot-lighter);scrollbar-width:thin}.playpilot-styled-scrollbed::-webkit-scrollbar{width:12px}.playpilot-styled-scrollbed::-webkit-scrollbar-track{background:var(--playpilot-light)}.playpilot-styled-scrollbed::-webkit-scrollbar-thumb{border:2px solid var(--playpilot-light);border-radius:16px;background:var(--playpilot-lighter)}.playpilot-styled-scrollbed::-webkit-scrollbar-thumb:hover{background:var(--playpilot-content-light)}.playpilot-styled-scrollbed::-webkit-scrollbar-thumb:active{background:var(--playpilot-text-color-alt)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight]{font-weight:var(--playpilot-injection-font-weight)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-text-color]{color:var(--playpilot-injection-text-color)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-text-color-hover]:hover{color:var(--playpilot-injection-text-color-hover)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-text-decoration]{text-decoration:var(--playpilot-injection-text-decoration)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-text-decoration-hover]:hover{text-decoration:var(--playpilot-injection-text-decoration-hover)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-background-color]{background-color:var(--playpilot-injection-background-color)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-background-color-hover]:hover{background-color:var(--playpilot-injection-background-color-hover)}h1 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]),h2 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]),h3 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]),h4 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]),h5 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]){font-weight:inherit}h1 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings],h2 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings],h3 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings],h4 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings],h5 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings]{font-weight:var(--playpilot-injection-font-weight-headings)}::view-transition-old(playpilot-title-content),::view-transition-new(playpilot-title-content){height:100%}.playpilot-link-injections.svelte-13rmd3g *{box-sizing:border-box}.playpilot-link-injections.svelte-13rmd3g svg{fill:none}.playpilot-link-injections.svelte-13rmd3g a,.playpilot-link-injections.svelte-13rmd3g button,.playpilot-link-injections.svelte-13rmd3g input{transition:outline-offset .1s}.playpilot-link-injections.svelte-13rmd3g a:focus-visible,.playpilot-link-injections.svelte-13rmd3g button:focus-visible,.playpilot-link-injections.svelte-13rmd3g input:focus-visible{outline:2px solid white;outline-offset:2px}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
3
|
-
var Ya=Object.defineProperty;var Zi=e=>{throw TypeError(e)};var Za=(e,t,n)=>t in e?Ya(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Gi=(e,t,n)=>Za(e,typeof t!="symbol"?t+"":t,n),Zn=(e,t,n)=>t.has(e)||Zi("Cannot "+n);var Ye=(e,t,n)=>(Zn(e,t,"read from private field"),n?n.call(e):t.get(e)),pt=(e,t,n)=>t.has(e)?Zi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Zt=(e,t,n,i)=>(Zn(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Ji=(e,t,n)=>(Zn(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();const $n=!1;var vi=Array.isArray,Ga=Array.prototype.indexOf,fi=Array.from,Ja=Object.defineProperty,dt=Object.getOwnPropertyDescriptor,br=Object.getOwnPropertyDescriptors,Xa=Object.prototype,Qa=Array.prototype,_i=Object.getPrototypeOf;function Mt(e){return typeof e=="function"}const yt=()=>{};function $a(e){for(var t=0;t<e.length;t++)e[t]()}function In(e,t,n=!1){return e===void 0?n?t():t:e}const Ze=2,xr=4,fn=8,On=16,Je=32,_n=64,Pn=128,At=256,An=512,De=1024,ft=2048,Rn=4096,Xe=8192,Vt=16384,Sr=32768,Ct=65536,eo=1<<17,Tr=1<<19,Er=1<<20,Qe=Symbol("$state"),Ir=Symbol("legacy props"),to=Symbol("");function Pr(e){return e===this.v}function hi(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function no(e,t){return e!==t}function gi(e){return!hi(e,this.v)}function io(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ro(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ao(e){throw new Error("https://svelte.dev/e/effect_orphan")}function oo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function lo(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function so(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function co(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function uo(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function vo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Ut=!1,fo=!1;function _o(){Ut=!0}const mi=1,pi=2,Ar=4,ho=8,go=16,mo=1,po=2,yo=4,ko=8,wo=16,bo=1,xo=2,So=4,To=1,Eo=2,Pe=Symbol(),yi="http://www.w3.org/2000/svg";function je(e,t){var n={f:0,v:e,reactions:null,equals:Pr,rv:0,wv:0};return n}function W(e){return Io(je(e))}function Cr(e,t=!1){var i;const n=je(e);return t||(n.equals=gi),Ut&&se!==null&&se.l!==null&&((i=se.l).s??(i.s=[])).push(n),n}function Io(e){return ce!==null&&ce.f&Ze&&($e===null?Fo([e]):$e.push(e)),e}function j(e,t){return ce!==null&&hn()&&ce.f&(Ze|On)&&($e===null||!$e.includes(e))&&vo(),ei(e,t)}function ei(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=Yr(),jr(e,ft),hn()&&ie!==null&&ie.f&De&&!(ie.f&Je)&&(Ee!==null&&Ee.includes(e)?(et(ie,ft),Vn(ie)):vt===null?Bo([e]):vt.push(e))),t}function jr(e,t){var n=e.reactions;if(n!==null)for(var i=hn(),r=n.length,a=0;a<r;a++){var l=n[a],s=l.f;s&ft||!i&&l===ie||(et(l,t),s&(De|At)&&(s&Ze?jr(l,Rn):Vn(l)))}}let ki=!1;function $(e,t=null,n){if(typeof e!="object"||e===null||Qe in e)return e;const i=_i(e);if(i!==Xa&&i!==Qa)return e;var r=new Map,a=vi(e),l=je(0);a&&r.set("length",je(e.length));var s;return new Proxy(e,{defineProperty(u,c,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&so();var f=r.get(c);return f===void 0?(f=je(d.value),r.set(c,f)):j(f,$(d.value,s)),!0},deleteProperty(u,c){var d=r.get(c);if(d===void 0)c in u&&r.set(c,je(Pe));else{if(a&&typeof c=="string"){var f=r.get("length"),_=Number(c);Number.isInteger(_)&&_<f.v&&j(f,_)}j(d,Pe),Xi(l)}return!0},get(u,c,d){var g;if(c===Qe)return e;var f=r.get(c),_=c in u;if(f===void 0&&(!_||(g=dt(u,c))!=null&&g.writable)&&(f=je($(_?u[c]:Pe,s)),r.set(c,f)),f!==void 0){var h=o(f);return h===Pe?void 0:h}return Reflect.get(u,c,d)},getOwnPropertyDescriptor(u,c){var d=Reflect.getOwnPropertyDescriptor(u,c);if(d&&"value"in d){var f=r.get(c);f&&(d.value=o(f))}else if(d===void 0){var _=r.get(c),h=_==null?void 0:_.v;if(_!==void 0&&h!==Pe)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return d},has(u,c){var h;if(c===Qe)return!0;var d=r.get(c),f=d!==void 0&&d.v!==Pe||Reflect.has(u,c);if(d!==void 0||ie!==null&&(!f||(h=dt(u,c))!=null&&h.writable)){d===void 0&&(d=je(f?$(u[c],s):Pe),r.set(c,d));var _=o(d);if(_===Pe)return!1}return f},set(u,c,d,f){var A;var _=r.get(c),h=c in u;if(a&&c==="length")for(var g=d;g<_.v;g+=1){var v=r.get(g+"");v!==void 0?j(v,Pe):g in u&&(v=je(Pe),r.set(g+"",v))}_===void 0?(!h||(A=dt(u,c))!=null&&A.writable)&&(_=je(void 0),j(_,$(d,s)),r.set(c,_)):(h=_.v!==Pe,j(_,$(d,s)));var k=Reflect.getOwnPropertyDescriptor(u,c);if(k!=null&&k.set&&k.set.call(f,d),!h){if(a&&typeof c=="string"){var y=r.get("length"),b=Number(c);Number.isInteger(b)&&b>=y.v&&j(y,b+1)}Xi(l)}return!0},ownKeys(u){o(l);var c=Reflect.ownKeys(u).filter(_=>{var h=r.get(_);return h===void 0||h.v!==Pe});for(var[d,f]of r)f.v!==Pe&&!(d in u)&&c.push(d);return c},setPrototypeOf(){co()}})}function Xi(e,t=1){j(e,e.v+t)}function Qi(e){return e!==null&&typeof e=="object"&&Qe in e?e[Qe]:e}function Po(e,t){return Object.is(Qi(e),Qi(t))}var ke,Lr,Mr;function Ao(){if(ke===void 0){ke=window;var e=Element.prototype,t=Node.prototype;Lr=dt(t,"firstChild").get,Mr=dt(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function Wt(e=""){return document.createTextNode(e)}function xt(e){return Lr.call(e)}function Hn(e){return Mr.call(e)}function w(e,t){return xt(e)}function Q(e,t){{var n=xt(e);return n instanceof Comment&&n.data===""?Hn(n):n}}function x(e,t=1,n=!1){let i=e;for(;t--;)i=Hn(i);return i}function Co(e){e.textContent=""}function R(e){var t=Ze|ft;ie===null?t|=At:ie.f|=Er;var n=ce!==null&&ce.f&Ze?ce:null;const i={children:null,ctx:se,deps:null,equals:Pr,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:n??ie};return n!==null&&(n.children??(n.children=[])).push(i),i}function jo(e){const t=R(e);return t.equals=gi,t}function qr(e){var t=e.children;if(t!==null){e.children=null;for(var n=0;n<t.length;n+=1){var i=t[n];i.f&Ze?wi(i):We(i)}}}function Lo(e){for(var t=e.parent;t!==null;){if(!(t.f&Ze))return t;t=t.parent}return null}function Nr(e){var t,n=ie;Le(Lo(e));try{qr(e),t=Zr(e)}finally{Le(n)}return t}function Dr(e){var t=Nr(e),n=(ut||e.f&At)&&e.deps!==null?Rn:De;et(e,n),e.equals(t)||(e.v=t,e.wv=Yr())}function wi(e){qr(e),an(e,0),et(e,Vt),e.v=e.children=e.deps=e.ctx=e.reactions=null}function Mo(e){ie===null&&ce===null&&ao(),ce!==null&&ce.f&At&&ro(),Si&&io()}function qo(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function zt(e,t,n,i=!0){var r=(e&_n)!==0,a=ie,l={ctx:se,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:e|ft,first:null,fn:t,last:null,next:null,parent:r?null:a,prev:null,teardown:null,transitions:null,wv:0};if(n){var s=qt;try{$i(!0),Bn(l),l.f|=Sr}catch(d){throw We(l),d}finally{$i(s)}}else t!==null&&Vn(l);var u=n&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&Er)===0;if(!u&&!r&&i&&(a!==null&&qo(l,a),ce!==null&&ce.f&Ze)){var c=ce;(c.children??(c.children=[])).push(l)}return l}function No(){return ce===null?!1:!ut}function Or(e){const t=zt(fn,null,!1);return et(t,De),t.teardown=e,t}function St(e){Mo();var t=ie!==null&&(ie.f&Je)!==0&&se!==null&&!se.m;if(t){var n=se;(n.e??(n.e=[])).push({fn:e,effect:ie,reaction:ce})}else{var i=at(e);return i}}function Do(e){const t=zt(_n,e,!0);return(n={})=>new Promise(i=>{n.outro?Tt(t,()=>{We(t),i(void 0)}):(We(t),i(void 0))})}function at(e){return zt(xr,e,!1)}function Fn(e){return zt(fn,e,!0)}function q(e){return ot(e)}function ot(e,t=0){return zt(fn|On|t,e,!0)}function Ve(e,t=!0){return zt(fn|Je,e,!0,t)}function Rr(e){var t=e.teardown;if(t!==null){const n=Si,i=ce;er(!0),ze(null);try{t.call(null)}finally{er(n),ze(i)}}}function Hr(e){var t=e.deriveds;if(t!==null){e.deriveds=null;for(var n=0;n<t.length;n+=1)wi(t[n])}}function Fr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){var i=n.next;We(n,t),n=i}}function Oo(e){for(var t=e.first;t!==null;){var n=t.next;t.f&Je||We(t),t=n}}function We(e,t=!0){var n=!1;if((t||e.f&Tr)&&e.nodes_start!==null){for(var i=e.nodes_start,r=e.nodes_end;i!==null;){var a=i===r?null:Hn(i);i.remove(),i=a}n=!0}Fr(e,t&&!n),Hr(e),an(e,0),et(e,Vt);var l=e.transitions;if(l!==null)for(const u of l)u.stop();Rr(e);var s=e.parent;s!==null&&s.first!==null&&Br(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Br(e){var t=e.parent,n=e.prev,i=e.next;n!==null&&(n.next=i),i!==null&&(i.prev=n),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=n))}function Tt(e,t){var n=[];bi(e,n,!0),Vr(n,()=>{We(e),t&&t()})}function Vr(e,t){var n=e.length;if(n>0){var i=()=>--n||t();for(var r of e)r.out(i)}else t()}function bi(e,t,n){if(!(e.f&Xe)){if(e.f^=Xe,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var r=i.next,a=(i.f&Ct)!==0||(i.f&Je)!==0;bi(i,t,a?n:!1),i=r}}}function tn(e){Ur(e,!0)}function Ur(e,t){if(e.f&Xe){gn(e)&&Bn(e),e.f^=Xe;for(var n=e.first;n!==null;){var i=n.next,r=(n.f&Ct)!==0||(n.f&Je)!==0;Ur(n,r?t:!1),n=i}if(e.transitions!==null)for(const a of e.transitions)(a.is_global||t)&&a.in()}}let Cn=!1,ti=[];function Wr(){Cn=!1;const e=ti.slice();ti=[],$a(e)}function Kt(e){Cn||(Cn=!0,queueMicrotask(Wr)),ti.push(e)}function Ro(){Cn&&Wr()}function xi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}const zr=0,Ho=1;let Jt=!1,En=zr,nn=!1,rn=null,qt=!1,Si=!1;function $i(e){qt=e}function er(e){Si=e}let kt=[],Nt=0;let ce=null;function ze(e){ce=e}let ie=null;function Le(e){ie=e}let $e=null;function Fo(e){$e=e}let Ee=null,Ne=0,vt=null;function Bo(e){vt=e}let Kr=1,ni=0,ut=!1,se=null;function tr(e){se=e}function Yr(){return++Kr}function hn(){return!Ut||se!==null&&se.l===null}function gn(e){var c;var t=e.f;if(t&ft)return!0;if(t&Rn){var n=e.deps,i=(t&At)!==0;if(n!==null){var r,a,l=(t&An)!==0,s=i&&ie!==null&&!ut,u=n.length;if(l||s){for(r=0;r<u;r++)a=n[r],(l||!((c=a==null?void 0:a.reactions)!=null&&c.includes(e)))&&(a.reactions??(a.reactions=[])).push(e);l&&(e.f^=An)}for(r=0;r<u;r++)if(a=n[r],gn(a)&&Dr(a),a.wv>e.wv)return!0}(!i||ie!==null&&!ut)&&et(e,De)}return!1}function Vo(e,t){for(var n=t;n!==null;){if(n.f&Pn)try{n.fn(e);return}catch{n.f^=Pn}n=n.parent}throw Jt=!1,e}function Uo(e){return(e.f&Vt)===0&&(e.parent===null||(e.parent.f&Pn)===0)}function Gn(){Jt=!1}function mn(e,t,n,i){if(Jt){if(n===null&&(Jt=!1),Uo(t))throw e;return}n!==null&&(Jt=!0);{Vo(e,t);return}}function Zr(e){var _;var t=Ee,n=Ne,i=vt,r=ce,a=ut,l=$e,s=se,u=e.f;Ee=null,Ne=0,vt=null,ce=u&(Je|_n)?null:e,ut=!qt&&(u&At)!==0,$e=null,se=e.ctx,ni++;try{var c=(0,e.fn)(),d=e.deps;if(Ee!==null){var f;if(an(e,Ne),d!==null&&Ne>0)for(d.length=Ne+Ee.length,f=0;f<Ee.length;f++)d[Ne+f]=Ee[f];else e.deps=d=Ee;if(!ut)for(f=Ne;f<d.length;f++)((_=d[f]).reactions??(_.reactions=[])).push(e)}else d!==null&&Ne<d.length&&(an(e,Ne),d.length=Ne);return c}finally{Ee=t,Ne=n,vt=i,ce=r,ut=a,$e=l,se=s}}function Wo(e,t){let n=t.reactions;if(n!==null){var i=Ga.call(n,e);if(i!==-1){var r=n.length-1;r===0?n=t.reactions=null:(n[i]=n[r],n.pop())}}n===null&&t.f&Ze&&(Ee===null||!Ee.includes(t))&&(et(t,Rn),t.f&(At|An)||(t.f^=An),an(t,0))}function an(e,t){var n=e.deps;if(n!==null)for(var i=t;i<n.length;i++)Wo(e,n[i])}function Bn(e){var t=e.f;if(!(t&Vt)){et(e,De);var n=ie,i=se;ie=e;try{t&On?Oo(e):Fr(e),Hr(e),Rr(e);var r=Zr(e);e.teardown=typeof r=="function"?r:null,e.wv=Kr;var a=e.deps,l;$n&&fo&&e.f&ft}catch(s){mn(s,e,n,i||e.ctx)}finally{ie=n}}}function Gr(){if(Nt>1e3){Nt=0;try{oo()}catch(e){if(rn!==null)mn(e,rn,null);else throw e}}Nt++}function Jr(e){var t=e.length;if(t!==0){Gr();var n=qt;qt=!0;try{for(var i=0;i<t;i++){var r=e[i];r.f&De||(r.f^=De);var a=[];Xr(r,a),zo(a)}}finally{qt=n}}}function zo(e){var t=e.length;if(t!==0)for(var n=0;n<t;n++){var i=e[n];if(!(i.f&(Vt|Xe)))try{gn(i)&&(Bn(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?Br(i):i.fn=null))}catch(r){mn(r,i,null,i.ctx)}}}function Ko(){if(nn=!1,Nt>1001)return;const e=kt;kt=[],Jr(e),nn||(Nt=0,rn=null)}function Vn(e){En===zr&&(nn||(nn=!0,queueMicrotask(Ko))),rn=e;for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(n&(_n|Je)){if(!(n&De))return;t.f^=De}}kt.push(t)}function Xr(e,t){var n=e.first,i=[];e:for(;n!==null;){var r=n.f,a=(r&Je)!==0,l=a&&(r&De)!==0,s=n.next;if(!l&&!(r&Xe))if(r&fn){if(a)n.f^=De;else try{gn(n)&&Bn(n)}catch(f){mn(f,n,null,n.ctx)}var u=n.first;if(u!==null){n=u;continue}}else r&xr&&i.push(n);if(s===null){let f=n.parent;for(;f!==null;){if(e===f)break e;var c=f.next;if(c!==null){n=c;continue e}f=f.parent}}n=s}for(var d=0;d<i.length;d++)u=i[d],t.push(u),Xr(u,t)}function Qr(e){var t=En,n=kt;try{Gr();const r=[];En=Ho,kt=r,nn=!1,Jr(n);var i=e==null?void 0:e();return Ro(),(kt.length>0||r.length>0)&&Qr(),Nt=0,rn=null,i}finally{En=t,kt=n}}async function ii(){await Promise.resolve(),Qr()}function o(e){var d;var t=e.f,n=(t&Ze)!==0;if(n&&t&Vt){var i=Nr(e);return wi(e),i}if(ce!==null){$e!==null&&$e.includes(e)&&uo();var r=ce.deps;e.rv<ni&&(e.rv=ni,Ee===null&&r!==null&&r[Ne]===e?Ne++:Ee===null?Ee=[e]:Ee.push(e),vt!==null&&ie!==null&&ie.f&De&&!(ie.f&Je)&&vt.includes(e)&&(et(ie,ft),Vn(ie)))}else if(n&&e.deps===null)for(var a=e,l=a.parent,s=a;l!==null;)if(l.f&Ze){var u=l;s=u,l=u.parent}else{var c=l;(d=c.deriveds)!=null&&d.includes(s)||(c.deriveds??(c.deriveds=[])).push(s);break}return n&&(a=e,gn(a)&&Dr(a)),e.v}function Ke(e){const t=ce;try{return ce=null,e()}finally{ce=t}}const Yo=-7169;function et(e,t){e.f=e.f&Yo|t}function Zo(e){return ea().get(e)}function $r(e,t){return ea().set(e,t),t}function ea(e){return se===null&&xi(),se.c??(se.c=new Map(Go(se)||void 0))}function Go(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}function re(e,t=!1,n){se={p:se,c:null,e:null,m:!1,s:e,x:null,l:null},Ut&&!t&&(se.l={s:null,u:null,r1:[],r2:je(!1)})}function ae(e){const t=se;if(t!==null){e!==void 0&&(t.x=e);const l=t.e;if(l!==null){var n=ie,i=ce;t.e=null;try{for(var r=0;r<l.length;r++){var a=l[r];Le(a.effect),ze(a.reaction),at(a.fn)}}finally{Le(n),ze(i)}}se=t.p,t.m=!0}return e||{}}function Jo(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Qe in e)ri(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Qe in n&&ri(n)}}}function ri(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let i in e)try{ri(e[i],t)}catch{}const n=_i(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const i=br(n);for(let r in i){const a=i[r].get;if(a)try{a.call(e)}catch{}}}}}function Xo(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const Qo=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function $o(e){return Qo.includes(e)}const el={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function tl(e){return e=e.toLowerCase(),el[e]??e}const nl=["touchstart","touchmove"];function il(e){return nl.includes(e)}function rl(e,t){if(t){const n=document.body;e.autofocus=!0,Kt(()=>{document.activeElement===n&&e.focus()})}}let nr=!1;function al(){nr||(nr=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function ol(e,t,n,i=!0){i&&n();for(var r of t)e.addEventListener(r,n);Or(()=>{for(var a of t)e.removeEventListener(a,n)})}function Ti(e){var t=ce,n=ie;ze(null),Le(null);try{return e()}finally{ze(t),Le(n)}}function ta(e,t,n,i=n){e.addEventListener(t,()=>Ti(n));const r=e.__on_r;r?e.__on_r=()=>{r(),i(!0)}:e.__on_r=()=>i(!0),al()}const na=new Set,ai=new Set;function Ei(e,t,n,i){function r(a){if(i.capture||Gt.call(t,a),!a.cancelBubble)return Ti(()=>n.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Kt(()=>{t.addEventListener(e,r,i)}):t.addEventListener(e,r,i),r}function ll(e,t,n,i={}){var r=Ei(t,e,n,i);return()=>{e.removeEventListener(t,r,i)}}function ve(e,t,n,i,r){var a={capture:i,passive:r},l=Ei(e,t,n,a);(t===document.body||t===window||t===document)&&Or(()=>{t.removeEventListener(e,l,a)})}function ue(e){for(var t=0;t<e.length;t++)na.add(e[t]);for(var n of ai)n(e)}function Gt(e){var b;var t=this,n=t.ownerDocument,i=e.type,r=((b=e.composedPath)==null?void 0:b.call(e))||[],a=r[0]||e.target,l=0,s=e.__root;if(s){var u=r.indexOf(s);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var c=r.indexOf(t);if(c===-1)return;u<=c&&(l=u)}if(a=r[l]||e.target,a!==t){Ja(e,"currentTarget",{configurable:!0,get(){return a||n}});var d=ce,f=ie;ze(null),Le(null);try{for(var _,h=[];a!==null;){var g=a.assignedSlot||a.parentNode||a.host||null;try{var v=a["__"+i];if(v!==void 0&&!a.disabled)if(vi(v)){var[k,...y]=v;k.apply(a,[e,...y])}else v.call(a,e)}catch(A){_?h.push(A):_=A}if(e.cancelBubble||g===t||g===null)break;a=g}if(_){for(let A of h)queueMicrotask(()=>{throw A});throw _}}finally{e.__root=t,delete e.currentTarget,ze(d),Le(f)}}}function sl(e){var t;t=document.head.appendChild(Wt());try{ot(()=>e(t),Tr)}finally{}}function Ii(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Et(e,t){var n=ie;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function I(e,t){var n=(t&To)!==0,i=(t&Eo)!==0,r,a=!e.startsWith("<!>");return()=>{r===void 0&&(r=Ii(a?e:"<!>"+e),n||(r=xt(r)));var l=i?document.importNode(r,!0):r.cloneNode(!0);if(n){var s=xt(l),u=l.lastChild;Et(s,u)}else Et(l,l);return l}}function Me(e,t,n="svg"){var i=!e.startsWith("<!>"),r=`<${n}>${i?e:"<!>"+e}</${n}>`,a;return()=>{if(!a){var l=Ii(r),s=xt(l);a=xt(s)}var u=a.cloneNode(!0);return Et(u,u),u}}function Ae(e=""){{var t=Wt(e+"");return Et(t,t),t}}function ge(){var e=document.createDocumentFragment(),t=document.createComment(""),n=Wt();return e.append(t,n),Et(t,n),e}function p(e,t){e!==null&&e.before(t)}let jn=!0;function ir(e){jn=e}function K(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n==null?"":n+"")}function Ft(e,t){return cl(e,t)}const Lt=new Map;function cl(e,{target:t,anchor:n,props:i={},events:r,context:a,intro:l=!0}){Ao();var s=new Set,u=f=>{for(var _=0;_<f.length;_++){var h=f[_];if(!s.has(h)){s.add(h);var g=il(h);t.addEventListener(h,Gt,{passive:g});var v=Lt.get(h);v===void 0?(document.addEventListener(h,Gt,{passive:g}),Lt.set(h,1)):Lt.set(h,v+1)}}};u(fi(na)),ai.add(u);var c=void 0,d=Do(()=>{var f=n??t.appendChild(Wt());return Ve(()=>{if(a){re({});var _=se;_.c=a}r&&(i.$$events=r),jn=l,c=e(f,i)||{},jn=!0,a&&ae()}),()=>{var g;for(var _ of s){t.removeEventListener(_,Gt);var h=Lt.get(_);--h===0?(document.removeEventListener(_,Gt),Lt.delete(_)):Lt.set(_,h)}ai.delete(u),f!==n&&((g=f.parentNode)==null||g.removeChild(f))}});return oi.set(c,d),c}let oi=new WeakMap;function Un(e,t){const n=oi.get(e);return n?(oi.delete(e),n(t)):Promise.resolve()}function D(e,t,n=!1){var i=e,r=null,a=null,l=Pe,s=n?Ct:0,u=!1;const c=(f,_=!0)=>{u=!0,d(_,f)},d=(f,_)=>{l!==(l=f)&&(l?(r?tn(r):_&&(r=Ve(()=>_(i))),a&&Tt(a,()=>{a=null})):(a?tn(a):_&&(a=Ve(()=>_(i))),r&&Tt(r,()=>{r=null})))};ot(()=>{u=!1,t(c),u||d(null,null)},s)}function ia(e,t,n){var i=e,r=Pe,a,l=hn()?no:hi;ot(()=>{l(r,r=t())&&(a&&Tt(a),a=Ve(()=>n(i)))})}function Ge(e,t){return t}function ul(e,t,n,i){for(var r=[],a=t.length,l=0;l<a;l++)bi(t[l].e,r,!0);var s=a>0&&r.length===0&&n!==null;if(s){var u=n.parentNode;Co(u),u.append(n),i.clear(),st(e,t[0].prev,t[a-1].next)}Vr(r,()=>{for(var c=0;c<a;c++){var d=t[c];s||(i.delete(d.k),st(e,d.prev,d.next)),We(d.e,!s)}})}function Oe(e,t,n,i,r,a=null){var l=e,s={flags:t,items:new Map,first:null},u=(t&Ar)!==0;if(u){var c=e;l=c.appendChild(Wt())}var d=null,f=!1;ot(()=>{var _=n(),h=vi(_)?_:_==null?[]:fi(_),g=h.length;if(!(f&&g===0)){f=g===0;{var v=ce;dl(h,s,l,r,t,(v.f&Xe)!==0,i)}a!==null&&(g===0?d?tn(d):d=Ve(()=>a(l)):d!==null&&Tt(d,()=>{d=null})),n()}})}function dl(e,t,n,i,r,a,l,s){var V,U,C,Y;var u=(r&ho)!==0,c=(r&(mi|pi))!==0,d=e.length,f=t.items,_=t.first,h=_,g,v=null,k,y=[],b=[],A,M,S,E;if(u)for(E=0;E<d;E+=1)A=e[E],M=l(A,E),S=f.get(M),S!==void 0&&((V=S.a)==null||V.measure(),(k??(k=new Set)).add(S));for(E=0;E<d;E+=1){if(A=e[E],M=l(A,E),S=f.get(M),S===void 0){var z=h?h.e.nodes_start:n;v=fl(z,t,v,v===null?t.first:v.next,A,M,E,i,r),f.set(M,v),y=[],b=[],h=v.next;continue}if(c&&vl(S,A,E,r),S.e.f&Xe&&(tn(S.e),u&&((U=S.a)==null||U.unfix(),(k??(k=new Set)).delete(S))),S!==h){if(g!==void 0&&g.has(S)){if(y.length<b.length){var L=b[0],T;v=L.prev;var O=y[0],H=y[y.length-1];for(T=0;T<y.length;T+=1)rr(y[T],L,n);for(T=0;T<b.length;T+=1)g.delete(b[T]);st(t,O.prev,H.next),st(t,v,O),st(t,H,L),h=L,v=H,E-=1,y=[],b=[]}else g.delete(S),rr(S,h,n),st(t,S.prev,S.next),st(t,S,v===null?t.first:v.next),st(t,v,S),v=S;continue}for(y=[],b=[];h!==null&&h.k!==M;)(a||!(h.e.f&Xe))&&(g??(g=new Set)).add(h),b.push(h),h=h.next;if(h===null)continue;S=h}y.push(S),v=S,h=S.next}if(h!==null||g!==void 0){for(var F=g===void 0?[]:fi(g);h!==null;)(a||!(h.e.f&Xe))&&F.push(h),h=h.next;var P=F.length;if(P>0){var N=r&Ar&&d===0?n:null;if(u){for(E=0;E<P;E+=1)(C=F[E].a)==null||C.measure();for(E=0;E<P;E+=1)(Y=F[E].a)==null||Y.fix()}ul(t,F,N,f)}}u&&Kt(()=>{var Z;if(k!==void 0)for(S of k)(Z=S.a)==null||Z.apply()}),ie.first=t.first&&t.first.e,ie.last=v&&v.e}function vl(e,t,n,i){i&mi&&ei(e.v,t),i&pi?ei(e.i,n):e.i=n}function fl(e,t,n,i,r,a,l,s,u,c){var d=(u&mi)!==0,f=(u&go)===0,_=d?f?Cr(r):je(r):r,h=u&pi?je(l):l,g={i:h,v:_,k:a,a:null,e:null,prev:n,next:i};try{return g.e=Ve(()=>s(e,_,h),ki),g.e.prev=n&&n.e,g.e.next=i&&i.e,n===null?t.first=g:(n.next=g,n.e.next=g.e),i!==null&&(i.prev=g,i.e.prev=g.e),g}finally{}}function rr(e,t,n){for(var i=e.next?e.next.e.nodes_start:n,r=t?t.e.nodes_start:n,a=e.e.nodes_start;a!==i;){var l=Hn(a);r.before(a),a=l}}function st(e,t,n){t===null?e.first=n:(t.next=n,t.e.next=n&&n.e),n!==null&&(n.prev=t,n.e.prev=t&&t.e)}function _l(e,t,n,i,r){var a=e,l="",s;ot(()=>{l!==(l=t()??"")&&(s!==void 0&&(We(s),s=void 0),l!==""&&(s=Ve(()=>{var u=l+"",c=Ii(u);Et(xt(c),c.lastChild),a.before(c)})))})}function Ue(e,t,...n){var i=e,r=yt,a;ot(()=>{r!==(r=t())&&(a&&(We(a),a=null),a=Ve(()=>r(i,...n)))},Ct)}function ra(e,t,n,i,r,a){var l,s,u=null,c=e,d;ot(()=>{const f=t()||null;var _=f==="svg"?yi:null;f!==l&&(d&&(f===null?Tt(d,()=>{d=null,s=null}):f===s?tn(d):(We(d),ir(!1))),f&&f!==s&&(d=Ve(()=>{if(u=_?document.createElementNS(_,f):document.createElement(f),Et(u,u),i){var h=u.appendChild(Wt());i(u,h)}ie.nodes_end=u,c.before(u)})),l=f,l&&(s=l),ir(!0))},Ct)}function rt(e,t,n){at(()=>{var i=Ke(()=>t(e,n==null?void 0:n())||{});if(n&&(i!=null&&i.update)){var r=!1,a={};Fn(()=>{var l=n();Jo(l),r&&hi(a,l)&&(a=l,i.update(l))}),r=!0}if(i!=null&&i.destroy)return()=>i.destroy()})}function aa(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=aa(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function hl(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=aa(e))&&(i&&(i+=" "),i+=t);return i}function gl(e){return typeof e=="object"?hl(e):e??""}function ml(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function ee(e,t,n,i){var r=e.__attributes??(e.__attributes={});r[t]!==(r[t]=n)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[to]=n),n==null?e.removeAttribute(t):typeof n!="string"&&la(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function oa(e,t,n,i,r=!1,a=!1,l=!1){var s=t||{},u=e.tagName==="OPTION";for(var c in t)c in n||(n[c]=null);n.class&&(n.class=gl(n.class)),i!==void 0&&(n.class=n.class?n.class+" "+i:i);var d=la(e),f=e.__attributes??(e.__attributes={});for(const b in n){let A=n[b];if(u&&b==="value"&&A==null){e.value=e.__value="",s[b]=A;continue}var _=s[b];if(A!==_){s[b]=A;var h=b[0]+b[1];if(h!=="$$"){if(h==="on"){const M={},S="$$"+b;let E=b.slice(2);var g=$o(E);if(Xo(E)&&(E=E.slice(0,-7),M.capture=!0),!g&&_){if(A!=null)continue;e.removeEventListener(E,s[S],M),s[S]=null}if(A!=null)if(g)e[`__${E}`]=A,ue([E]);else{let z=function(L){s[b].call(this,L)};var y=z;s[S]=Ei(E,e,z,M)}else g&&(e[`__${E}`]=void 0)}else if(b==="style"&&A!=null)e.style.cssText=A+"";else if(b==="autofocus")rl(e,!!A);else if(b==="__value"||b==="value"&&A!=null)e.value=e[b]=e.__value=A;else if(b==="selected"&&u)ml(e,A);else{var v=b;r||(v=tl(v));var k=v==="defaultValue"||v==="defaultChecked";if(A==null&&!a&&!k)if(f[b]=null,v==="value"||v==="checked"){let M=e;if(v==="value"){let S=M.defaultValue;M.removeAttribute(v),M.defaultValue=S}else{let S=M.defaultChecked;M.removeAttribute(v),M.defaultChecked=S}}else e.removeAttribute(b);else k||d.includes(v)&&(a||typeof A!="string")?e[v]=A:typeof A!="function"&&ee(e,v,A)}b==="style"&&"__styles"in e&&(e.__styles={})}}}return s}var ar=new Map;function la(e){var t=ar.get(e.nodeName);if(t)return t;ar.set(e.nodeName,t=[]);for(var n,i=e,r=Element.prototype;r!==i;){n=br(i);for(var a in n)n[a].set&&t.push(a);i=_i(i)}return t}function pl(e,t,n){var i=e.__className,r=sa(t);(i!==r||ki)&&(r===""?e.removeAttribute("class"):e.setAttribute("class",r),e.__className=r)}function li(e,t,n){var i=e.__className,r=sa(t);(i!==r||ki)&&(t==null?e.removeAttribute("class"):e.className=r,e.__className=r)}function sa(e,t){return(e??"")+""}function le(e,t,n){if(n){if(e.classList.contains(t))return;e.classList.add(t)}else{if(!e.classList.contains(t))return;e.classList.remove(t)}}function _t(e,t,n,i){var r=e.__styles??(e.__styles={});r[t]!==n&&(r[t]=n,n==null?e.style.removeProperty(t):e.style.setProperty(t,n,""))}const yl=()=>performance.now(),it={tick:e=>requestAnimationFrame(e),now:()=>yl(),tasks:new Set};function ca(){const e=it.now();it.tasks.forEach(t=>{t.c(e)||(it.tasks.delete(t),t.f())}),it.tasks.size!==0&&it.tick(ca)}function kl(e){let t;return it.tasks.size===0&&it.tick(ca),{promise:new Promise(n=>{it.tasks.add(t={c:e,f:n})}),abort(){it.tasks.delete(t)}}}function Sn(e,t){e.dispatchEvent(new CustomEvent(t))}function wl(e){if(e==="float")return"cssFloat";if(e==="offset")return"cssOffset";if(e.startsWith("--"))return e;const t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("")}function or(e){const t={},n=e.split(";");for(const i of n){const[r,a]=i.split(":");if(!r||a===void 0)break;const l=wl(r.trim());t[l]=a.trim()}return t}const bl=e=>e;function pe(e,t,n,i){var r=(e&bo)!==0,a=(e&xo)!==0,l=r&&a,s=(e&So)!==0,u=l?"both":r?"in":"out",c,d=t.inert,f,_;function h(){var b=ce,A=ie;ze(null),Le(null);try{return c??(c=n()(t,(i==null?void 0:i())??{},{direction:u}))}finally{ze(b),Le(A)}}var g={is_global:s,in(){var b;if(t.inert=d,!r){_==null||_.abort(),(b=_==null?void 0:_.reset)==null||b.call(_);return}a||f==null||f.abort(),Sn(t,"introstart"),f=si(t,h(),_,1,()=>{Sn(t,"introend"),f==null||f.abort(),f=c=void 0})},out(b){if(!a){b==null||b(),c=void 0;return}t.inert=!0,Sn(t,"outrostart"),_=si(t,h(),f,0,()=>{Sn(t,"outroend"),b==null||b()})},stop:()=>{f==null||f.abort(),_==null||_.abort()}},v=ie;if((v.transitions??(v.transitions=[])).push(g),r&&jn){var k=s;if(!k){for(var y=v.parent;y&&y.f&Ct;)for(;(y=y.parent)&&!(y.f&On););k=!y||(y.f&Sr)!==0}k&&at(()=>{Ke(()=>g.in())})}}function si(e,t,n,i,r){var a=i===1;if(Mt(t)){var l,s=!1;return Kt(()=>{if(!s){var k=t({direction:a?"in":"out"});l=si(e,k,n,i,r)}}),{abort:()=>{s=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(n==null||n.deactivate(),!(t!=null&&t.duration))return r(),{abort:yt,deactivate:yt,reset:yt,t:()=>i};const{delay:u=0,css:c,tick:d,easing:f=bl}=t;var _=[];if(a&&n===void 0&&(d&&d(0,1),c)){var h=or(c(0,1));_.push(h,h)}var g=()=>1-i,v=e.animate(_,{duration:u});return v.onfinish=()=>{var k=(n==null?void 0:n.t())??1-i;n==null||n.abort();var y=i-k,b=t.duration*Math.abs(y),A=[];if(b>0){if(c)for(var M=Math.ceil(b/16.666666666666668),S=0;S<=M;S+=1){var E=k+y*f(S/M),z=c(E,1-E);A.push(or(z))}g=()=>{var L=v.currentTime;return k+y*f(L/b)},d&&kl(()=>{if(v.playState!=="running")return!1;var L=g();return d(L,1-L),!0})}v=e.animate(A,{duration:b,fill:"forwards"}),v.onfinish=()=>{g=()=>i,d==null||d(i,1-i),r()}},{abort:()=>{v&&(v.cancel(),v.effect=null,v.onfinish=yt)},deactivate:()=>{r=yt},reset:()=>{i===0&&(d==null||d(1,0))},t:()=>g()}}function xl(e,t,n=t){var i=hn();ta(e,"input",r=>{var a=r?e.defaultValue:e.value;if(a=Jn(e)?Xn(a):a,n(a),i&&a!==(a=t())){var l=e.selectionStart,s=e.selectionEnd;e.value=a??"",s!==null&&(e.selectionStart=l,e.selectionEnd=Math.min(s,e.value.length))}}),Ke(t)==null&&e.value&&n(Jn(e)?Xn(e.value):e.value),Fn(()=>{var r=t();Jn(e)&&r===Xn(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function Jn(e){var t=e.type;return t==="number"||t==="range"}function Xn(e){return e===""?null:+e}function ua(e,t,n){if(e.multiple)return El(e,t);for(var i of e.options){var r=Xt(i);if(Po(r,t)){i.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function Sl(e,t){at(()=>{var n=new MutationObserver(()=>{var i=e.__value;ua(e,i)});return n.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),()=>{n.disconnect()}})}function Tl(e,t,n=t){var i=!0;ta(e,"change",r=>{var a=r?"[selected]":":checked",l;if(e.multiple)l=[].map.call(e.querySelectorAll(a),Xt);else{var s=e.querySelector(a)??e.querySelector("option:not([disabled])");l=s&&Xt(s)}n(l)}),at(()=>{var r=t();if(ua(e,r,i),i&&r===void 0){var a=e.querySelector(":checked");a!==null&&(r=Xt(a),n(r))}e.__value=r,i=!1}),Sl(e)}function El(e,t){for(var n of e.options)n.selected=~t.indexOf(Xt(n))}function Xt(e){return"__value"in e?e.__value:e.value}var ct,Ht,un,Nn,da;const Dn=class Dn{constructor(t){pt(this,Nn);pt(this,ct,new WeakMap);pt(this,Ht);pt(this,un);Zt(this,un,t)}observe(t,n){var i=Ye(this,ct).get(t)||new Set;return i.add(n),Ye(this,ct).set(t,i),Ji(this,Nn,da).call(this).observe(t,Ye(this,un)),()=>{var r=Ye(this,ct).get(t);r.delete(n),r.size===0&&(Ye(this,ct).delete(t),Ye(this,Ht).unobserve(t))}}};ct=new WeakMap,Ht=new WeakMap,un=new WeakMap,Nn=new WeakSet,da=function(){return Ye(this,Ht)??Zt(this,Ht,new ResizeObserver(t=>{for(var n of t){Dn.entries.set(n.target,n);for(var i of Ye(this,ct).get(n.target)||[])i(n)}}))},Gi(Dn,"entries",new WeakMap);let ci=Dn;var Il=new ci({box:"border-box"});function on(e,t,n){var i=Il.observe(e,()=>n(e[t]));at(()=>(Ke(()=>n(e[t])),i))}function lr(e,t){return e===t||(e==null?void 0:e[Qe])===t}function ht(e={},t,n,i){return at(()=>{var r,a;return Fn(()=>{r=a,a=[],Ke(()=>{e!==n(...a)&&(t(e,...a),r&&lr(n(...r),e)&&t(null,...r))})}),()=>{Kt(()=>{a&&lr(n(...a),e)&&t(null,...a)})}}),e}function va(e,t){ol(window,["resize"],()=>Ti(()=>t(window[e])))}let Tn=!1;function Pl(e){var t=Tn;try{return Tn=!1,[e(),Tn]}finally{Tn=t}}const Al={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Cl(e,t,n){return new Proxy({props:e,exclude:t},Al)}const jl={get(e,t){let n=e.props.length;for(;n--;){let i=e.props[n];if(Mt(i)&&(i=i()),typeof i=="object"&&i!==null&&t in i)return i[t]}},set(e,t,n){let i=e.props.length;for(;i--;){let r=e.props[i];Mt(r)&&(r=r());const a=dt(r,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let i=e.props[n];if(Mt(i)&&(i=i()),typeof i=="object"&&i!==null&&t in i){const r=dt(i,t);return r&&!r.configurable&&(r.configurable=!0),r}}},has(e,t){if(t===Qe||t===Ir)return!1;for(let n of e.props)if(Mt(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){const t=[];for(let n of e.props){Mt(n)&&(n=n());for(const i in n)t.includes(i)||t.push(i)}return t}};function Ll(...e){return new Proxy({props:e},jl)}function sr(e){for(var t=ie,n=ie;t!==null&&!(t.f&(Je|_n));)t=t.parent;try{return Le(t),e()}finally{Le(n)}}function B(e,t,n,i){var z;var r=(n&mo)!==0,a=!Ut||(n&po)!==0,l=(n&ko)!==0,s=(n&wo)!==0,u=!1,c;l?[c,u]=Pl(()=>e[t]):c=e[t];var d=Qe in e||Ir in e,f=l&&(((z=dt(e,t))==null?void 0:z.set)??(d&&t in e&&(L=>e[t]=L)))||void 0,_=i,h=!0,g=!1,v=()=>(g=!0,h&&(h=!1,s?_=Ke(i):_=i),_);c===void 0&&i!==void 0&&(f&&a&&lo(),c=v(),f&&f(c));var k;if(a)k=()=>{var L=e[t];return L===void 0?v():(h=!0,g=!1,L)};else{var y=sr(()=>(r?R:jo)(()=>e[t]));y.f|=eo,k=()=>{var L=o(y);return L!==void 0&&(_=void 0),L===void 0?_:L}}if(!(n&yo))return k;if(f){var b=e.$$legacy;return function(L,T){return arguments.length>0?((!a||!T||b||u)&&f(T?k():L),L):k()}}var A=!1,M=!1,S=Cr(c),E=sr(()=>R(()=>{var L=k(),T=o(S);return A?(A=!1,M=!0,T):(M=!1,S.v=L)}));return r||(E.equals=gi),function(L,T){if(arguments.length>0){const O=T?o(E):a&&l?$(L):L;return E.equals(O)||(A=!0,j(S,O),g&&_!==void 0&&(_=O),Ke(()=>o(E))),L}return o(E)}}function cr(e,t){var n=ie,i=ce,r=se;Le(e),ze(e),tr(e.ctx);try{t()}finally{Le(n),ze(i),tr(r)}}function Ml(e,t,n){var i=e,r;ot(()=>{var a=ie,l=!1;a.fn=s=>{var u=t.onerror;let c=t.failed;if(!u&&!c||l)throw s;var d=()=>{Tt(r),cr(a,()=>{l=!1,r=Ve(()=>n(i)),Gn()})};u==null||u(s,d),r&&We(r),Kt(()=>{cr(a,()=>{l=!0;try{r=Ve(()=>{c(i,()=>s,()=>d)})}catch(f){mn(f,a,null,a.ctx)}Gn(),l=!1})})},r=Ve(()=>n(i)),Gn()},Ct|Pn)}function tt(e){se===null&&xi(),Ut&&se.l!==null?ql(se).m.push(e):St(()=>{const t=Ke(e);if(typeof t=="function")return t})}function fa(e){se===null&&xi(),tt(()=>()=>Ke(e))}function ql(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}const Nl="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Nl);const Pi="https://www.playpilot.com",pn="https://partner-api.playpilot.tech/1.0.0",Dl="https://img-external.playpilot.tech",Ai="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",ln=600,_e=Object.freeze({ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",InjectionVisible:"ali_injection_visible",TitleModalView:"ali_title_modal_view",TitleModalClose:"ali_title_modal_close",TitleModalScroll:"ali_title_modal_scroll",TitleModalPlaylinkClick:"ali_title_modal_playlink_click",TitleModalSaveClick:"ali_title_modal_save_click",TitlePopoverView:"ali_title_popover_view",TitlePopoverClose:"ali_title_popover_close",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action"});function _a(e){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=e)}function jt(e){var t;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((t=window.PlayPilotLinkInjections.consents)!=null&&t[e])}function Ci(){const e=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+e}const Ol="https://insights.playpilot.net";async function he(e,t=null,n={}){var r,a,l,s;if(!jt("tracking"))return;const i=new Headers({"Content-Type":"application/json"});t&&(n={original_title:t.original_title,title_sid:t.sid,title_type:t.type,providers:[...new Set(((r=t.providers)==null?void 0:r.map(u=>u.name))||[])],...n}),n.version="5.15.0",n.url=Ci(),n.organization_sid=(a=window.PlayPilotLinkInjections)==null?void 0:a.organization_sid,n.domain_sid=(l=window.PlayPilotLinkInjections)==null?void 0:l.domain_sid,n.device={type:window.innerWidth>ln?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((s=screen.orientation)==null?void 0:s.type)||"undefined"},fetch(Ol,{headers:i,method:"POST",body:JSON.stringify({event:e,payload:n,source:"ali"})}),Rl({event:e,payload:n})}function Rl(e){var t;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(t=window.PlayPilotLinkInjections.tracked_events)==null||t.push(e)}function Hl({organizationSid:e=null,domainSid:t=null}){window.PlayPilotLinkInjections.organization_sid=e||null,window.PlayPilotLinkInjections.domain_sid=t||null}const ji="EncryptedToken",ha="articleReplacementEditToken",ga="playpilot-editorial-mode";async function ma(e=window.location.href){const t=new Headers({"Content-Type":"application/json"});try{const n=kn();if(!n)throw new Error("No token was provided");const i=Li(e);if(!i)throw new Error("Could not be authenticated");const r=await fetch(pn+`/external-pages/edit-authorization?api-token=${n}`,{headers:t,method:"POST",body:JSON.stringify({private_token:i})});if(!r.ok)throw r;return Fl(i),!0}catch(n){console.error(n),he(_e.AuthFailed)}finally{Ul()}return!1}function Li(e=""){var i,r;const t=(i=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:i.editorial_token;if(t)return t;if(e){const a=new URL(e).searchParams.get(ha);if(a)return decodeURI(a)}return((r=("; "+document.cookie).split(`; ${ji}=`).pop())==null?void 0:r.split(";")[0])||""}function Fl(e){const t=new Date;t.setTime(t.getTime()+30*24*60*60*1e3);const i="expires="+t.toUTCString();document.cookie=ji+"="+e+";"+i+";path=/"}function Bl(){document.cookie=ji+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function Mi(){var t;const e=(t=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:t.editorial_token;return new URLSearchParams(window.location.search).get(ga)==="true"||!!e}function Vl(){const e=new URL(window.location.href);e.searchParams.set(ga,"true"),window.history.replaceState({},"",e)}function Ul(){const e=new URL(window.location.href);e.searchParams.delete(ha),window.history.replaceState({},"",e)}function Wl(e){let t=0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=t*31+i>>>0}return t.toString(16)}function pa(){return(Math.random()+1).toString(36).substring(7)}const m=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"}),zl={"Where To Stream Online":{[m.English]:"Where to stream online",[m.Swedish]:"Var kan man streama online",[m.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[m.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[m.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[m.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"An Error Occurred":{[m.English]:"An error occurred",[m.Swedish]:"Ett fel inträffade",[m.Danish]:"Der opstod en fejl"},"Title Unavailable":{[m.English]:"This title is not currently available to stream.",[m.Swedish]:"Den här titeln går inte att streama just nu.",[m.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[m.English]:"is not currently available to stream.",[m.Swedish]:"går inte att streama just nu.",[m.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[m.English]:"is available to stream on",[m.Swedish]:"finns att streama på",[m.Danish]:"kan streames på"},"Is Available To Stream":{[m.English]:"is available to stream.",[m.Swedish]:"finns att streama.",[m.Danish]:"kan streames."},"View Streaming Options":{[m.English]:"View streaming options",[m.Swedish]:"Se streamingalternativ",[m.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[m.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[m.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[m.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[m.English]:"and",[m.Swedish]:"och",[m.Danish]:"og"},Minutes:{[m.English]:"minutes",[m.Swedish]:"minuter",[m.Danish]:"minutter"},"Type: movie":{[m.English]:"Movie",[m.Swedish]:"Film",[m.Danish]:"Film"},"Type: series":{[m.English]:"Series",[m.Swedish]:"Serie",[m.Danish]:"Serie"},Stream:{[m.English]:"Stream",[m.Swedish]:"Streama",[m.Danish]:"Stream"},Buy:{[m.English]:"Buy",[m.Swedish]:"Köp",[m.Danish]:"Køb"},Rent:{[m.English]:"Rent",[m.Swedish]:"Hyra",[m.Danish]:"Lej"},"Rent Or Buy":{[m.English]:"Rent or Buy",[m.Swedish]:"Hyra",[m.Danish]:"Lej eller køb"},Watch:{[m.English]:"Watch",[m.Swedish]:"Se",[m.Danish]:"Se"},All:{[m.English]:"All",[m.Swedish]:"Alla",[m.Danish]:"Alle"},Unscripted:{[m.English]:"Unscripted",[m.Swedish]:"Oscripterat",[m.Danish]:"Umanuskriptet"},Independent:{[m.English]:"Independent",[m.Swedish]:"Indie",[m.Danish]:"Indie"},"Game Show":{[m.English]:"Game Show",[m.Swedish]:"Gameshow",[m.Danish]:"Quizshow"},"Film Noir":{[m.English]:"Film Noir",[m.Swedish]:"Film noir",[m.Danish]:"Film noir"},Entertainment:{[m.English]:"Entertainment",[m.Swedish]:"Underhållning",[m.Danish]:"Underholdning"},News:{[m.English]:"News",[m.Swedish]:"Nyheter",[m.Danish]:"Nyheder"},Short:{[m.English]:"Short",[m.Swedish]:"Kortfilm",[m.Danish]:"Kortfilm"},Bollywood:{[m.English]:"Bollywood",[m.Swedish]:"Bollywood",[m.Danish]:"Bollywood"},Concert:{[m.English]:"Concert",[m.Swedish]:"Konsert",[m.Danish]:"Koncert"},Arthouse:{[m.English]:"Arthouse",[m.Swedish]:"Arthouse",[m.Danish]:"Arthouse"},"Alternate Version":{[m.English]:"Alternate Version",[m.Swedish]:"Alternativ version",[m.Danish]:"Alternativ version"},"Reality TV":{[m.English]:"Reality TV",[m.Swedish]:"Reality-TV",[m.Danish]:"Reality-TV"},Culture:{[m.English]:"Culture",[m.Swedish]:"Kultur",[m.Danish]:"Kultur"},Drama:{[m.English]:"Drama",[m.Swedish]:"Drama",[m.Danish]:"Drama"},Crime:{[m.English]:"Crime",[m.Swedish]:"Kriminal",[m.Danish]:"Krimi"},Western:{[m.English]:"Western",[m.Swedish]:"Western",[m.Danish]:"Western"},Thriller:{[m.English]:"Thriller",[m.Swedish]:"Thriller",[m.Danish]:"Thriller"},Animation:{[m.English]:"Animation",[m.Swedish]:"Animerat",[m.Danish]:"Animation"},Mystery:{[m.English]:"Mystery",[m.Swedish]:"Mysterium",[m.Danish]:"Mysterium"},Science:{[m.English]:"Science",[m.Swedish]:"Vetenskap",[m.Danish]:"Videnskab"},Nature:{[m.English]:"Nature",[m.Swedish]:"Natur",[m.Danish]:"Natur"},War:{[m.English]:"War",[m.Swedish]:"Krig",[m.Danish]:"Krig"},"Sci-Fi":{[m.English]:"Sci-Fi",[m.Swedish]:"Sci-fi",[m.Danish]:"Sci-fi"},Documentary:{[m.English]:"Documentary",[m.Swedish]:"Dokumentär",[m.Danish]:"Dokumentar"},"Stand-up":{[m.English]:"Stand-up",[m.Swedish]:"Standup",[m.Danish]:"Stand-up"},"Talk Show":{[m.English]:"Talk Show",[m.Swedish]:"Talkshow",[m.Danish]:"Talkshow"},Fantasy:{[m.English]:"Fantasy",[m.Swedish]:"Fantasy",[m.Danish]:"Fantasy"},History:{[m.English]:"History",[m.Swedish]:"Historia",[m.Danish]:"Historie"},Adventure:{[m.English]:"Adventure",[m.Swedish]:"Äventyr",[m.Danish]:"Eventyr"},Action:{[m.English]:"Action",[m.Swedish]:"Action",[m.Danish]:"Action"},Horror:{[m.English]:"Horror",[m.Swedish]:"Skräck",[m.Danish]:"Gyser"},Comedy:{[m.English]:"Comedy",[m.Swedish]:"Komedi",[m.Danish]:"Komedie"},Biography:{[m.English]:"Biography",[m.Swedish]:"Biografi",[m.Danish]:"Biografi"},Music:{[m.English]:"Music",[m.Swedish]:"Musik",[m.Danish]:"Musik"},Sport:{[m.English]:"Sport",[m.Swedish]:"Sport",[m.Danish]:"Sport"},Romance:{[m.English]:"Romance",[m.Swedish]:"Romantik",[m.Danish]:"Romantik"},Kids:{[m.English]:"Kids",[m.Swedish]:"Barn",[m.Danish]:"Børn"},Lifestyle:{[m.English]:"Lifestyle",[m.Swedish]:"Livsstil",[m.Danish]:"Livsstil"},Musical:{[m.English]:"Musical",[m.Swedish]:"Musikal",[m.Danish]:"Musical"},Anime:{[m.English]:"Anime",[m.Swedish]:"Anime",[m.Danish]:"Anime"},Family:{[m.English]:"Family",[m.Swedish]:"Familj",[m.Danish]:"Familie"}};function xe(e,t=ya()){var n;return((n=zl[e])==null?void 0:n[t])||e}function ya(){var i,r;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.language,t=Object.values(m);if(e){if(t.includes(e))return e;console.warn(`PlayPilot Link Injections: ${e} is not an accepted language`)}const n=(r=document.querySelector("html"))==null?void 0:r.getAttribute("lang");if(n){if(t.includes(n))return n;const a=t.find(l=>l.toLowerCase().startsWith(n+"-"));if(a)return a}return m.English}async function Kl(){if(!jt("ads"))return;const e=new Headers({"Content-Type":"application/json"}),t=kn();if(!t)throw new Error("No token was provided");const n=await fetch(pn+`/ads/browse/?region=nl&api-token=${t}`,{headers:e});if(!n.ok)throw he(_e.AdsFetchFailed,null,{status:n.status}),n;return await n.json()}function sn(e){var t;return jt("ads")&&(((t=window.PlayPilotLinkInjections)==null?void 0:t.ads)||[]).find(n=>n.campaign_format===e)||null}function Yl(e){return{sid:"",name:e.content.header||"",url:e.cta.url||"",logo_url:e.cta.image||"",highlighted:!0,cta_text:e.content.subheader,action_text:e.cta.header,extra_info:{category:"SVOD"}}}_o();var Zl=Me('<svg viewBox="0 -960 960 960" width="24px" height="24px" fill="currentColor"><path d="m480-320 160-160-56-56-64 64v-168h-80v168l-64-64-56 56 160 160Zm0 240q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"></path></svg>');function Gl(e){var t=Zl();p(e,t)}const It={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]},ParticipantPlaylinkFormat:{key:"participant_playlink_format",numberOfVariants:2}};function Jl({key:e}){var i,r,a;if(!jt("tracking"))return 0;const t=(r=(i=window.PlayPilotLinkInjections)==null?void 0:i.split_test_identifiers)==null?void 0:r[e];if(t)return t;(a=window.PlayPilotLinkInjections)!=null&&a.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});const n=Math.random();return window.PlayPilotLinkInjections.split_test_identifiers[e]=n,n}function ka(e){const t=Jl(e);return Math.floor(t*e.numberOfVariants)}function wa(e){var n;const t=ka(e);return((n=e.variantNames)==null?void 0:n[t])||t.toString()}function Wn(e,t=1){return jt("tracking")?ka(e)===t:!1}function ba(e){const t=wa(e);he(_e.SplitTestView,null,{key:e.key,variant:t})}function Xl(e,t){const n=wa(e);he(_e.SplitTestAction,null,{key:e.key,variant:n,action:t})}function Ql(e){j(e,e.v+1)}function $l(e){let t=0,n=je(0),i;return()=>{No()&&(o(n),Fn(()=>(t===0&&(i=Ke(()=>e(()=>Ql(n)))),t+=1,()=>{ii().then(()=>{t-=1,t===0&&(i==null||i(),i=void 0)})})))}}var dn,vn;class es{constructor(t,n){pt(this,dn);pt(this,vn);Zt(this,dn,t),Zt(this,vn,$l(n))}get current(){return Ye(this,vn).call(this),Ye(this,dn).call(this)}}dn=new WeakMap,vn=new WeakMap;const ts=/\(.+\)/;class ns extends es{constructor(t,n){let i=ts.test(t)?t:`(${t})`;const r=window.matchMedia(i);super(()=>r.matches,a=>ll(r,"change",a))}}const qi=new ns("(prefers-reduced-motion: reduce)"),is=e=>e;function Ni(e){const t=e-1;return t*t*t+1}function ur(e){const t=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}function gt(e,{delay:t=0,duration:n=400,easing:i=is}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:i,css:a=>`opacity: ${a*r}`}}function Dt(e,{delay:t=0,duration:n=400,easing:i=Ni,x:r=0,y:a=0,opacity:l=0}={}){const s=getComputedStyle(e),u=+s.opacity,c=s.transform==="none"?"":s.transform,d=u*(1-l),[f,_]=ur(r),[h,g]=ur(a);return{delay:t,duration:n,easing:i,css:(v,k)=>`
|
|
3
|
+
var Ya=Object.defineProperty;var Zi=e=>{throw TypeError(e)};var Za=(e,t,n)=>t in e?Ya(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Gi=(e,t,n)=>Za(e,typeof t!="symbol"?t+"":t,n),Zn=(e,t,n)=>t.has(e)||Zi("Cannot "+n);var Ye=(e,t,n)=>(Zn(e,t,"read from private field"),n?n.call(e):t.get(e)),pt=(e,t,n)=>t.has(e)?Zi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Zt=(e,t,n,i)=>(Zn(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Ji=(e,t,n)=>(Zn(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();const $n=!1;var vi=Array.isArray,Ga=Array.prototype.indexOf,fi=Array.from,Ja=Object.defineProperty,dt=Object.getOwnPropertyDescriptor,br=Object.getOwnPropertyDescriptors,Xa=Object.prototype,Qa=Array.prototype,_i=Object.getPrototypeOf;function Mt(e){return typeof e=="function"}const yt=()=>{};function $a(e){for(var t=0;t<e.length;t++)e[t]()}function In(e,t,n=!1){return e===void 0?n?t():t:e}const Ze=2,xr=4,fn=8,On=16,Je=32,_n=64,Pn=128,At=256,An=512,De=1024,ft=2048,Rn=4096,Xe=8192,Vt=16384,Sr=32768,Ct=65536,eo=1<<17,Tr=1<<19,Er=1<<20,Qe=Symbol("$state"),Ir=Symbol("legacy props"),to=Symbol("");function Pr(e){return e===this.v}function hi(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function no(e,t){return e!==t}function gi(e){return!hi(e,this.v)}function io(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ro(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ao(e){throw new Error("https://svelte.dev/e/effect_orphan")}function oo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function lo(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function so(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function co(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function uo(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function vo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Ut=!1,fo=!1;function _o(){Ut=!0}const mi=1,pi=2,Ar=4,ho=8,go=16,mo=1,po=2,yo=4,ko=8,wo=16,bo=1,xo=2,So=4,To=1,Eo=2,Pe=Symbol(),yi="http://www.w3.org/2000/svg";function je(e,t){var n={f:0,v:e,reactions:null,equals:Pr,rv:0,wv:0};return n}function W(e){return Io(je(e))}function Cr(e,t=!1){var i;const n=je(e);return t||(n.equals=gi),Ut&&se!==null&&se.l!==null&&((i=se.l).s??(i.s=[])).push(n),n}function Io(e){return ce!==null&&ce.f&Ze&&($e===null?Fo([e]):$e.push(e)),e}function j(e,t){return ce!==null&&hn()&&ce.f&(Ze|On)&&($e===null||!$e.includes(e))&&vo(),ei(e,t)}function ei(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=Yr(),jr(e,ft),hn()&&ie!==null&&ie.f&De&&!(ie.f&Je)&&(Ee!==null&&Ee.includes(e)?(et(ie,ft),Vn(ie)):vt===null?Bo([e]):vt.push(e))),t}function jr(e,t){var n=e.reactions;if(n!==null)for(var i=hn(),r=n.length,a=0;a<r;a++){var l=n[a],s=l.f;s&ft||!i&&l===ie||(et(l,t),s&(De|At)&&(s&Ze?jr(l,Rn):Vn(l)))}}let ki=!1;function $(e,t=null,n){if(typeof e!="object"||e===null||Qe in e)return e;const i=_i(e);if(i!==Xa&&i!==Qa)return e;var r=new Map,a=vi(e),l=je(0);a&&r.set("length",je(e.length));var s;return new Proxy(e,{defineProperty(u,c,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&so();var f=r.get(c);return f===void 0?(f=je(d.value),r.set(c,f)):j(f,$(d.value,s)),!0},deleteProperty(u,c){var d=r.get(c);if(d===void 0)c in u&&r.set(c,je(Pe));else{if(a&&typeof c=="string"){var f=r.get("length"),_=Number(c);Number.isInteger(_)&&_<f.v&&j(f,_)}j(d,Pe),Xi(l)}return!0},get(u,c,d){var g;if(c===Qe)return e;var f=r.get(c),_=c in u;if(f===void 0&&(!_||(g=dt(u,c))!=null&&g.writable)&&(f=je($(_?u[c]:Pe,s)),r.set(c,f)),f!==void 0){var h=o(f);return h===Pe?void 0:h}return Reflect.get(u,c,d)},getOwnPropertyDescriptor(u,c){var d=Reflect.getOwnPropertyDescriptor(u,c);if(d&&"value"in d){var f=r.get(c);f&&(d.value=o(f))}else if(d===void 0){var _=r.get(c),h=_==null?void 0:_.v;if(_!==void 0&&h!==Pe)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return d},has(u,c){var h;if(c===Qe)return!0;var d=r.get(c),f=d!==void 0&&d.v!==Pe||Reflect.has(u,c);if(d!==void 0||ie!==null&&(!f||(h=dt(u,c))!=null&&h.writable)){d===void 0&&(d=je(f?$(u[c],s):Pe),r.set(c,d));var _=o(d);if(_===Pe)return!1}return f},set(u,c,d,f){var A;var _=r.get(c),h=c in u;if(a&&c==="length")for(var g=d;g<_.v;g+=1){var v=r.get(g+"");v!==void 0?j(v,Pe):g in u&&(v=je(Pe),r.set(g+"",v))}_===void 0?(!h||(A=dt(u,c))!=null&&A.writable)&&(_=je(void 0),j(_,$(d,s)),r.set(c,_)):(h=_.v!==Pe,j(_,$(d,s)));var k=Reflect.getOwnPropertyDescriptor(u,c);if(k!=null&&k.set&&k.set.call(f,d),!h){if(a&&typeof c=="string"){var y=r.get("length"),b=Number(c);Number.isInteger(b)&&b>=y.v&&j(y,b+1)}Xi(l)}return!0},ownKeys(u){o(l);var c=Reflect.ownKeys(u).filter(_=>{var h=r.get(_);return h===void 0||h.v!==Pe});for(var[d,f]of r)f.v!==Pe&&!(d in u)&&c.push(d);return c},setPrototypeOf(){co()}})}function Xi(e,t=1){j(e,e.v+t)}function Qi(e){return e!==null&&typeof e=="object"&&Qe in e?e[Qe]:e}function Po(e,t){return Object.is(Qi(e),Qi(t))}var ke,Lr,Mr;function Ao(){if(ke===void 0){ke=window;var e=Element.prototype,t=Node.prototype;Lr=dt(t,"firstChild").get,Mr=dt(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function Wt(e=""){return document.createTextNode(e)}function xt(e){return Lr.call(e)}function Hn(e){return Mr.call(e)}function w(e,t){return xt(e)}function Q(e,t){{var n=xt(e);return n instanceof Comment&&n.data===""?Hn(n):n}}function x(e,t=1,n=!1){let i=e;for(;t--;)i=Hn(i);return i}function Co(e){e.textContent=""}function R(e){var t=Ze|ft;ie===null?t|=At:ie.f|=Er;var n=ce!==null&&ce.f&Ze?ce:null;const i={children:null,ctx:se,deps:null,equals:Pr,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:n??ie};return n!==null&&(n.children??(n.children=[])).push(i),i}function jo(e){const t=R(e);return t.equals=gi,t}function qr(e){var t=e.children;if(t!==null){e.children=null;for(var n=0;n<t.length;n+=1){var i=t[n];i.f&Ze?wi(i):We(i)}}}function Lo(e){for(var t=e.parent;t!==null;){if(!(t.f&Ze))return t;t=t.parent}return null}function Nr(e){var t,n=ie;Le(Lo(e));try{qr(e),t=Zr(e)}finally{Le(n)}return t}function Dr(e){var t=Nr(e),n=(ut||e.f&At)&&e.deps!==null?Rn:De;et(e,n),e.equals(t)||(e.v=t,e.wv=Yr())}function wi(e){qr(e),an(e,0),et(e,Vt),e.v=e.children=e.deps=e.ctx=e.reactions=null}function Mo(e){ie===null&&ce===null&&ao(),ce!==null&&ce.f&At&&ro(),Si&&io()}function qo(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function zt(e,t,n,i=!0){var r=(e&_n)!==0,a=ie,l={ctx:se,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:e|ft,first:null,fn:t,last:null,next:null,parent:r?null:a,prev:null,teardown:null,transitions:null,wv:0};if(n){var s=qt;try{$i(!0),Bn(l),l.f|=Sr}catch(d){throw We(l),d}finally{$i(s)}}else t!==null&&Vn(l);var u=n&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&Er)===0;if(!u&&!r&&i&&(a!==null&&qo(l,a),ce!==null&&ce.f&Ze)){var c=ce;(c.children??(c.children=[])).push(l)}return l}function No(){return ce===null?!1:!ut}function Or(e){const t=zt(fn,null,!1);return et(t,De),t.teardown=e,t}function St(e){Mo();var t=ie!==null&&(ie.f&Je)!==0&&se!==null&&!se.m;if(t){var n=se;(n.e??(n.e=[])).push({fn:e,effect:ie,reaction:ce})}else{var i=at(e);return i}}function Do(e){const t=zt(_n,e,!0);return(n={})=>new Promise(i=>{n.outro?Tt(t,()=>{We(t),i(void 0)}):(We(t),i(void 0))})}function at(e){return zt(xr,e,!1)}function Fn(e){return zt(fn,e,!0)}function q(e){return ot(e)}function ot(e,t=0){return zt(fn|On|t,e,!0)}function Ve(e,t=!0){return zt(fn|Je,e,!0,t)}function Rr(e){var t=e.teardown;if(t!==null){const n=Si,i=ce;er(!0),ze(null);try{t.call(null)}finally{er(n),ze(i)}}}function Hr(e){var t=e.deriveds;if(t!==null){e.deriveds=null;for(var n=0;n<t.length;n+=1)wi(t[n])}}function Fr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){var i=n.next;We(n,t),n=i}}function Oo(e){for(var t=e.first;t!==null;){var n=t.next;t.f&Je||We(t),t=n}}function We(e,t=!0){var n=!1;if((t||e.f&Tr)&&e.nodes_start!==null){for(var i=e.nodes_start,r=e.nodes_end;i!==null;){var a=i===r?null:Hn(i);i.remove(),i=a}n=!0}Fr(e,t&&!n),Hr(e),an(e,0),et(e,Vt);var l=e.transitions;if(l!==null)for(const u of l)u.stop();Rr(e);var s=e.parent;s!==null&&s.first!==null&&Br(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Br(e){var t=e.parent,n=e.prev,i=e.next;n!==null&&(n.next=i),i!==null&&(i.prev=n),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=n))}function Tt(e,t){var n=[];bi(e,n,!0),Vr(n,()=>{We(e),t&&t()})}function Vr(e,t){var n=e.length;if(n>0){var i=()=>--n||t();for(var r of e)r.out(i)}else t()}function bi(e,t,n){if(!(e.f&Xe)){if(e.f^=Xe,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var r=i.next,a=(i.f&Ct)!==0||(i.f&Je)!==0;bi(i,t,a?n:!1),i=r}}}function tn(e){Ur(e,!0)}function Ur(e,t){if(e.f&Xe){gn(e)&&Bn(e),e.f^=Xe;for(var n=e.first;n!==null;){var i=n.next,r=(n.f&Ct)!==0||(n.f&Je)!==0;Ur(n,r?t:!1),n=i}if(e.transitions!==null)for(const a of e.transitions)(a.is_global||t)&&a.in()}}let Cn=!1,ti=[];function Wr(){Cn=!1;const e=ti.slice();ti=[],$a(e)}function Kt(e){Cn||(Cn=!0,queueMicrotask(Wr)),ti.push(e)}function Ro(){Cn&&Wr()}function xi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}const zr=0,Ho=1;let Jt=!1,En=zr,nn=!1,rn=null,qt=!1,Si=!1;function $i(e){qt=e}function er(e){Si=e}let kt=[],Nt=0;let ce=null;function ze(e){ce=e}let ie=null;function Le(e){ie=e}let $e=null;function Fo(e){$e=e}let Ee=null,Ne=0,vt=null;function Bo(e){vt=e}let Kr=1,ni=0,ut=!1,se=null;function tr(e){se=e}function Yr(){return++Kr}function hn(){return!Ut||se!==null&&se.l===null}function gn(e){var c;var t=e.f;if(t&ft)return!0;if(t&Rn){var n=e.deps,i=(t&At)!==0;if(n!==null){var r,a,l=(t&An)!==0,s=i&&ie!==null&&!ut,u=n.length;if(l||s){for(r=0;r<u;r++)a=n[r],(l||!((c=a==null?void 0:a.reactions)!=null&&c.includes(e)))&&(a.reactions??(a.reactions=[])).push(e);l&&(e.f^=An)}for(r=0;r<u;r++)if(a=n[r],gn(a)&&Dr(a),a.wv>e.wv)return!0}(!i||ie!==null&&!ut)&&et(e,De)}return!1}function Vo(e,t){for(var n=t;n!==null;){if(n.f&Pn)try{n.fn(e);return}catch{n.f^=Pn}n=n.parent}throw Jt=!1,e}function Uo(e){return(e.f&Vt)===0&&(e.parent===null||(e.parent.f&Pn)===0)}function Gn(){Jt=!1}function mn(e,t,n,i){if(Jt){if(n===null&&(Jt=!1),Uo(t))throw e;return}n!==null&&(Jt=!0);{Vo(e,t);return}}function Zr(e){var _;var t=Ee,n=Ne,i=vt,r=ce,a=ut,l=$e,s=se,u=e.f;Ee=null,Ne=0,vt=null,ce=u&(Je|_n)?null:e,ut=!qt&&(u&At)!==0,$e=null,se=e.ctx,ni++;try{var c=(0,e.fn)(),d=e.deps;if(Ee!==null){var f;if(an(e,Ne),d!==null&&Ne>0)for(d.length=Ne+Ee.length,f=0;f<Ee.length;f++)d[Ne+f]=Ee[f];else e.deps=d=Ee;if(!ut)for(f=Ne;f<d.length;f++)((_=d[f]).reactions??(_.reactions=[])).push(e)}else d!==null&&Ne<d.length&&(an(e,Ne),d.length=Ne);return c}finally{Ee=t,Ne=n,vt=i,ce=r,ut=a,$e=l,se=s}}function Wo(e,t){let n=t.reactions;if(n!==null){var i=Ga.call(n,e);if(i!==-1){var r=n.length-1;r===0?n=t.reactions=null:(n[i]=n[r],n.pop())}}n===null&&t.f&Ze&&(Ee===null||!Ee.includes(t))&&(et(t,Rn),t.f&(At|An)||(t.f^=An),an(t,0))}function an(e,t){var n=e.deps;if(n!==null)for(var i=t;i<n.length;i++)Wo(e,n[i])}function Bn(e){var t=e.f;if(!(t&Vt)){et(e,De);var n=ie,i=se;ie=e;try{t&On?Oo(e):Fr(e),Hr(e),Rr(e);var r=Zr(e);e.teardown=typeof r=="function"?r:null,e.wv=Kr;var a=e.deps,l;$n&&fo&&e.f&ft}catch(s){mn(s,e,n,i||e.ctx)}finally{ie=n}}}function Gr(){if(Nt>1e3){Nt=0;try{oo()}catch(e){if(rn!==null)mn(e,rn,null);else throw e}}Nt++}function Jr(e){var t=e.length;if(t!==0){Gr();var n=qt;qt=!0;try{for(var i=0;i<t;i++){var r=e[i];r.f&De||(r.f^=De);var a=[];Xr(r,a),zo(a)}}finally{qt=n}}}function zo(e){var t=e.length;if(t!==0)for(var n=0;n<t;n++){var i=e[n];if(!(i.f&(Vt|Xe)))try{gn(i)&&(Bn(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?Br(i):i.fn=null))}catch(r){mn(r,i,null,i.ctx)}}}function Ko(){if(nn=!1,Nt>1001)return;const e=kt;kt=[],Jr(e),nn||(Nt=0,rn=null)}function Vn(e){En===zr&&(nn||(nn=!0,queueMicrotask(Ko))),rn=e;for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(n&(_n|Je)){if(!(n&De))return;t.f^=De}}kt.push(t)}function Xr(e,t){var n=e.first,i=[];e:for(;n!==null;){var r=n.f,a=(r&Je)!==0,l=a&&(r&De)!==0,s=n.next;if(!l&&!(r&Xe))if(r&fn){if(a)n.f^=De;else try{gn(n)&&Bn(n)}catch(f){mn(f,n,null,n.ctx)}var u=n.first;if(u!==null){n=u;continue}}else r&xr&&i.push(n);if(s===null){let f=n.parent;for(;f!==null;){if(e===f)break e;var c=f.next;if(c!==null){n=c;continue e}f=f.parent}}n=s}for(var d=0;d<i.length;d++)u=i[d],t.push(u),Xr(u,t)}function Qr(e){var t=En,n=kt;try{Gr();const r=[];En=Ho,kt=r,nn=!1,Jr(n);var i=e==null?void 0:e();return Ro(),(kt.length>0||r.length>0)&&Qr(),Nt=0,rn=null,i}finally{En=t,kt=n}}async function ii(){await Promise.resolve(),Qr()}function o(e){var d;var t=e.f,n=(t&Ze)!==0;if(n&&t&Vt){var i=Nr(e);return wi(e),i}if(ce!==null){$e!==null&&$e.includes(e)&&uo();var r=ce.deps;e.rv<ni&&(e.rv=ni,Ee===null&&r!==null&&r[Ne]===e?Ne++:Ee===null?Ee=[e]:Ee.push(e),vt!==null&&ie!==null&&ie.f&De&&!(ie.f&Je)&&vt.includes(e)&&(et(ie,ft),Vn(ie)))}else if(n&&e.deps===null)for(var a=e,l=a.parent,s=a;l!==null;)if(l.f&Ze){var u=l;s=u,l=u.parent}else{var c=l;(d=c.deriveds)!=null&&d.includes(s)||(c.deriveds??(c.deriveds=[])).push(s);break}return n&&(a=e,gn(a)&&Dr(a)),e.v}function Ke(e){const t=ce;try{return ce=null,e()}finally{ce=t}}const Yo=-7169;function et(e,t){e.f=e.f&Yo|t}function Zo(e){return ea().get(e)}function $r(e,t){return ea().set(e,t),t}function ea(e){return se===null&&xi(),se.c??(se.c=new Map(Go(se)||void 0))}function Go(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}function re(e,t=!1,n){se={p:se,c:null,e:null,m:!1,s:e,x:null,l:null},Ut&&!t&&(se.l={s:null,u:null,r1:[],r2:je(!1)})}function ae(e){const t=se;if(t!==null){e!==void 0&&(t.x=e);const l=t.e;if(l!==null){var n=ie,i=ce;t.e=null;try{for(var r=0;r<l.length;r++){var a=l[r];Le(a.effect),ze(a.reaction),at(a.fn)}}finally{Le(n),ze(i)}}se=t.p,t.m=!0}return e||{}}function Jo(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Qe in e)ri(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Qe in n&&ri(n)}}}function ri(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let i in e)try{ri(e[i],t)}catch{}const n=_i(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const i=br(n);for(let r in i){const a=i[r].get;if(a)try{a.call(e)}catch{}}}}}function Xo(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const Qo=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function $o(e){return Qo.includes(e)}const el={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function tl(e){return e=e.toLowerCase(),el[e]??e}const nl=["touchstart","touchmove"];function il(e){return nl.includes(e)}function rl(e,t){if(t){const n=document.body;e.autofocus=!0,Kt(()=>{document.activeElement===n&&e.focus()})}}let nr=!1;function al(){nr||(nr=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function ol(e,t,n,i=!0){i&&n();for(var r of t)e.addEventListener(r,n);Or(()=>{for(var a of t)e.removeEventListener(a,n)})}function Ti(e){var t=ce,n=ie;ze(null),Le(null);try{return e()}finally{ze(t),Le(n)}}function ta(e,t,n,i=n){e.addEventListener(t,()=>Ti(n));const r=e.__on_r;r?e.__on_r=()=>{r(),i(!0)}:e.__on_r=()=>i(!0),al()}const na=new Set,ai=new Set;function Ei(e,t,n,i){function r(a){if(i.capture||Gt.call(t,a),!a.cancelBubble)return Ti(()=>n.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Kt(()=>{t.addEventListener(e,r,i)}):t.addEventListener(e,r,i),r}function ll(e,t,n,i={}){var r=Ei(t,e,n,i);return()=>{e.removeEventListener(t,r,i)}}function ve(e,t,n,i,r){var a={capture:i,passive:r},l=Ei(e,t,n,a);(t===document.body||t===window||t===document)&&Or(()=>{t.removeEventListener(e,l,a)})}function ue(e){for(var t=0;t<e.length;t++)na.add(e[t]);for(var n of ai)n(e)}function Gt(e){var b;var t=this,n=t.ownerDocument,i=e.type,r=((b=e.composedPath)==null?void 0:b.call(e))||[],a=r[0]||e.target,l=0,s=e.__root;if(s){var u=r.indexOf(s);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var c=r.indexOf(t);if(c===-1)return;u<=c&&(l=u)}if(a=r[l]||e.target,a!==t){Ja(e,"currentTarget",{configurable:!0,get(){return a||n}});var d=ce,f=ie;ze(null),Le(null);try{for(var _,h=[];a!==null;){var g=a.assignedSlot||a.parentNode||a.host||null;try{var v=a["__"+i];if(v!==void 0&&!a.disabled)if(vi(v)){var[k,...y]=v;k.apply(a,[e,...y])}else v.call(a,e)}catch(A){_?h.push(A):_=A}if(e.cancelBubble||g===t||g===null)break;a=g}if(_){for(let A of h)queueMicrotask(()=>{throw A});throw _}}finally{e.__root=t,delete e.currentTarget,ze(d),Le(f)}}}function sl(e){var t;t=document.head.appendChild(Wt());try{ot(()=>e(t),Tr)}finally{}}function Ii(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Et(e,t){var n=ie;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function I(e,t){var n=(t&To)!==0,i=(t&Eo)!==0,r,a=!e.startsWith("<!>");return()=>{r===void 0&&(r=Ii(a?e:"<!>"+e),n||(r=xt(r)));var l=i?document.importNode(r,!0):r.cloneNode(!0);if(n){var s=xt(l),u=l.lastChild;Et(s,u)}else Et(l,l);return l}}function Me(e,t,n="svg"){var i=!e.startsWith("<!>"),r=`<${n}>${i?e:"<!>"+e}</${n}>`,a;return()=>{if(!a){var l=Ii(r),s=xt(l);a=xt(s)}var u=a.cloneNode(!0);return Et(u,u),u}}function Ae(e=""){{var t=Wt(e+"");return Et(t,t),t}}function ge(){var e=document.createDocumentFragment(),t=document.createComment(""),n=Wt();return e.append(t,n),Et(t,n),e}function p(e,t){e!==null&&e.before(t)}let jn=!0;function ir(e){jn=e}function K(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n==null?"":n+"")}function Ft(e,t){return cl(e,t)}const Lt=new Map;function cl(e,{target:t,anchor:n,props:i={},events:r,context:a,intro:l=!0}){Ao();var s=new Set,u=f=>{for(var _=0;_<f.length;_++){var h=f[_];if(!s.has(h)){s.add(h);var g=il(h);t.addEventListener(h,Gt,{passive:g});var v=Lt.get(h);v===void 0?(document.addEventListener(h,Gt,{passive:g}),Lt.set(h,1)):Lt.set(h,v+1)}}};u(fi(na)),ai.add(u);var c=void 0,d=Do(()=>{var f=n??t.appendChild(Wt());return Ve(()=>{if(a){re({});var _=se;_.c=a}r&&(i.$$events=r),jn=l,c=e(f,i)||{},jn=!0,a&&ae()}),()=>{var g;for(var _ of s){t.removeEventListener(_,Gt);var h=Lt.get(_);--h===0?(document.removeEventListener(_,Gt),Lt.delete(_)):Lt.set(_,h)}ai.delete(u),f!==n&&((g=f.parentNode)==null||g.removeChild(f))}});return oi.set(c,d),c}let oi=new WeakMap;function Un(e,t){const n=oi.get(e);return n?(oi.delete(e),n(t)):Promise.resolve()}function D(e,t,n=!1){var i=e,r=null,a=null,l=Pe,s=n?Ct:0,u=!1;const c=(f,_=!0)=>{u=!0,d(_,f)},d=(f,_)=>{l!==(l=f)&&(l?(r?tn(r):_&&(r=Ve(()=>_(i))),a&&Tt(a,()=>{a=null})):(a?tn(a):_&&(a=Ve(()=>_(i))),r&&Tt(r,()=>{r=null})))};ot(()=>{u=!1,t(c),u||d(null,null)},s)}function ia(e,t,n){var i=e,r=Pe,a,l=hn()?no:hi;ot(()=>{l(r,r=t())&&(a&&Tt(a),a=Ve(()=>n(i)))})}function Ge(e,t){return t}function ul(e,t,n,i){for(var r=[],a=t.length,l=0;l<a;l++)bi(t[l].e,r,!0);var s=a>0&&r.length===0&&n!==null;if(s){var u=n.parentNode;Co(u),u.append(n),i.clear(),st(e,t[0].prev,t[a-1].next)}Vr(r,()=>{for(var c=0;c<a;c++){var d=t[c];s||(i.delete(d.k),st(e,d.prev,d.next)),We(d.e,!s)}})}function Oe(e,t,n,i,r,a=null){var l=e,s={flags:t,items:new Map,first:null},u=(t&Ar)!==0;if(u){var c=e;l=c.appendChild(Wt())}var d=null,f=!1;ot(()=>{var _=n(),h=vi(_)?_:_==null?[]:fi(_),g=h.length;if(!(f&&g===0)){f=g===0;{var v=ce;dl(h,s,l,r,t,(v.f&Xe)!==0,i)}a!==null&&(g===0?d?tn(d):d=Ve(()=>a(l)):d!==null&&Tt(d,()=>{d=null})),n()}})}function dl(e,t,n,i,r,a,l,s){var V,U,C,Y;var u=(r&ho)!==0,c=(r&(mi|pi))!==0,d=e.length,f=t.items,_=t.first,h=_,g,v=null,k,y=[],b=[],A,M,S,E;if(u)for(E=0;E<d;E+=1)A=e[E],M=l(A,E),S=f.get(M),S!==void 0&&((V=S.a)==null||V.measure(),(k??(k=new Set)).add(S));for(E=0;E<d;E+=1){if(A=e[E],M=l(A,E),S=f.get(M),S===void 0){var z=h?h.e.nodes_start:n;v=fl(z,t,v,v===null?t.first:v.next,A,M,E,i,r),f.set(M,v),y=[],b=[],h=v.next;continue}if(c&&vl(S,A,E,r),S.e.f&Xe&&(tn(S.e),u&&((U=S.a)==null||U.unfix(),(k??(k=new Set)).delete(S))),S!==h){if(g!==void 0&&g.has(S)){if(y.length<b.length){var L=b[0],T;v=L.prev;var O=y[0],H=y[y.length-1];for(T=0;T<y.length;T+=1)rr(y[T],L,n);for(T=0;T<b.length;T+=1)g.delete(b[T]);st(t,O.prev,H.next),st(t,v,O),st(t,H,L),h=L,v=H,E-=1,y=[],b=[]}else g.delete(S),rr(S,h,n),st(t,S.prev,S.next),st(t,S,v===null?t.first:v.next),st(t,v,S),v=S;continue}for(y=[],b=[];h!==null&&h.k!==M;)(a||!(h.e.f&Xe))&&(g??(g=new Set)).add(h),b.push(h),h=h.next;if(h===null)continue;S=h}y.push(S),v=S,h=S.next}if(h!==null||g!==void 0){for(var F=g===void 0?[]:fi(g);h!==null;)(a||!(h.e.f&Xe))&&F.push(h),h=h.next;var P=F.length;if(P>0){var N=r&Ar&&d===0?n:null;if(u){for(E=0;E<P;E+=1)(C=F[E].a)==null||C.measure();for(E=0;E<P;E+=1)(Y=F[E].a)==null||Y.fix()}ul(t,F,N,f)}}u&&Kt(()=>{var Z;if(k!==void 0)for(S of k)(Z=S.a)==null||Z.apply()}),ie.first=t.first&&t.first.e,ie.last=v&&v.e}function vl(e,t,n,i){i&mi&&ei(e.v,t),i&pi?ei(e.i,n):e.i=n}function fl(e,t,n,i,r,a,l,s,u,c){var d=(u&mi)!==0,f=(u&go)===0,_=d?f?Cr(r):je(r):r,h=u&pi?je(l):l,g={i:h,v:_,k:a,a:null,e:null,prev:n,next:i};try{return g.e=Ve(()=>s(e,_,h),ki),g.e.prev=n&&n.e,g.e.next=i&&i.e,n===null?t.first=g:(n.next=g,n.e.next=g.e),i!==null&&(i.prev=g,i.e.prev=g.e),g}finally{}}function rr(e,t,n){for(var i=e.next?e.next.e.nodes_start:n,r=t?t.e.nodes_start:n,a=e.e.nodes_start;a!==i;){var l=Hn(a);r.before(a),a=l}}function st(e,t,n){t===null?e.first=n:(t.next=n,t.e.next=n&&n.e),n!==null&&(n.prev=t,n.e.prev=t&&t.e)}function _l(e,t,n,i,r){var a=e,l="",s;ot(()=>{l!==(l=t()??"")&&(s!==void 0&&(We(s),s=void 0),l!==""&&(s=Ve(()=>{var u=l+"",c=Ii(u);Et(xt(c),c.lastChild),a.before(c)})))})}function Ue(e,t,...n){var i=e,r=yt,a;ot(()=>{r!==(r=t())&&(a&&(We(a),a=null),a=Ve(()=>r(i,...n)))},Ct)}function ra(e,t,n,i,r,a){var l,s,u=null,c=e,d;ot(()=>{const f=t()||null;var _=f==="svg"?yi:null;f!==l&&(d&&(f===null?Tt(d,()=>{d=null,s=null}):f===s?tn(d):(We(d),ir(!1))),f&&f!==s&&(d=Ve(()=>{if(u=_?document.createElementNS(_,f):document.createElement(f),Et(u,u),i){var h=u.appendChild(Wt());i(u,h)}ie.nodes_end=u,c.before(u)})),l=f,l&&(s=l),ir(!0))},Ct)}function rt(e,t,n){at(()=>{var i=Ke(()=>t(e,n==null?void 0:n())||{});if(n&&(i!=null&&i.update)){var r=!1,a={};Fn(()=>{var l=n();Jo(l),r&&hi(a,l)&&(a=l,i.update(l))}),r=!0}if(i!=null&&i.destroy)return()=>i.destroy()})}function aa(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=aa(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function hl(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=aa(e))&&(i&&(i+=" "),i+=t);return i}function gl(e){return typeof e=="object"?hl(e):e??""}function ml(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function ee(e,t,n,i){var r=e.__attributes??(e.__attributes={});r[t]!==(r[t]=n)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[to]=n),n==null?e.removeAttribute(t):typeof n!="string"&&la(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function oa(e,t,n,i,r=!1,a=!1,l=!1){var s=t||{},u=e.tagName==="OPTION";for(var c in t)c in n||(n[c]=null);n.class&&(n.class=gl(n.class)),i!==void 0&&(n.class=n.class?n.class+" "+i:i);var d=la(e),f=e.__attributes??(e.__attributes={});for(const b in n){let A=n[b];if(u&&b==="value"&&A==null){e.value=e.__value="",s[b]=A;continue}var _=s[b];if(A!==_){s[b]=A;var h=b[0]+b[1];if(h!=="$$"){if(h==="on"){const M={},S="$$"+b;let E=b.slice(2);var g=$o(E);if(Xo(E)&&(E=E.slice(0,-7),M.capture=!0),!g&&_){if(A!=null)continue;e.removeEventListener(E,s[S],M),s[S]=null}if(A!=null)if(g)e[`__${E}`]=A,ue([E]);else{let z=function(L){s[b].call(this,L)};var y=z;s[S]=Ei(E,e,z,M)}else g&&(e[`__${E}`]=void 0)}else if(b==="style"&&A!=null)e.style.cssText=A+"";else if(b==="autofocus")rl(e,!!A);else if(b==="__value"||b==="value"&&A!=null)e.value=e[b]=e.__value=A;else if(b==="selected"&&u)ml(e,A);else{var v=b;r||(v=tl(v));var k=v==="defaultValue"||v==="defaultChecked";if(A==null&&!a&&!k)if(f[b]=null,v==="value"||v==="checked"){let M=e;if(v==="value"){let S=M.defaultValue;M.removeAttribute(v),M.defaultValue=S}else{let S=M.defaultChecked;M.removeAttribute(v),M.defaultChecked=S}}else e.removeAttribute(b);else k||d.includes(v)&&(a||typeof A!="string")?e[v]=A:typeof A!="function"&&ee(e,v,A)}b==="style"&&"__styles"in e&&(e.__styles={})}}}return s}var ar=new Map;function la(e){var t=ar.get(e.nodeName);if(t)return t;ar.set(e.nodeName,t=[]);for(var n,i=e,r=Element.prototype;r!==i;){n=br(i);for(var a in n)n[a].set&&t.push(a);i=_i(i)}return t}function pl(e,t,n){var i=e.__className,r=sa(t);(i!==r||ki)&&(r===""?e.removeAttribute("class"):e.setAttribute("class",r),e.__className=r)}function li(e,t,n){var i=e.__className,r=sa(t);(i!==r||ki)&&(t==null?e.removeAttribute("class"):e.className=r,e.__className=r)}function sa(e,t){return(e??"")+""}function le(e,t,n){if(n){if(e.classList.contains(t))return;e.classList.add(t)}else{if(!e.classList.contains(t))return;e.classList.remove(t)}}function _t(e,t,n,i){var r=e.__styles??(e.__styles={});r[t]!==n&&(r[t]=n,n==null?e.style.removeProperty(t):e.style.setProperty(t,n,""))}const yl=()=>performance.now(),it={tick:e=>requestAnimationFrame(e),now:()=>yl(),tasks:new Set};function ca(){const e=it.now();it.tasks.forEach(t=>{t.c(e)||(it.tasks.delete(t),t.f())}),it.tasks.size!==0&&it.tick(ca)}function kl(e){let t;return it.tasks.size===0&&it.tick(ca),{promise:new Promise(n=>{it.tasks.add(t={c:e,f:n})}),abort(){it.tasks.delete(t)}}}function Sn(e,t){e.dispatchEvent(new CustomEvent(t))}function wl(e){if(e==="float")return"cssFloat";if(e==="offset")return"cssOffset";if(e.startsWith("--"))return e;const t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("")}function or(e){const t={},n=e.split(";");for(const i of n){const[r,a]=i.split(":");if(!r||a===void 0)break;const l=wl(r.trim());t[l]=a.trim()}return t}const bl=e=>e;function pe(e,t,n,i){var r=(e&bo)!==0,a=(e&xo)!==0,l=r&&a,s=(e&So)!==0,u=l?"both":r?"in":"out",c,d=t.inert,f,_;function h(){var b=ce,A=ie;ze(null),Le(null);try{return c??(c=n()(t,(i==null?void 0:i())??{},{direction:u}))}finally{ze(b),Le(A)}}var g={is_global:s,in(){var b;if(t.inert=d,!r){_==null||_.abort(),(b=_==null?void 0:_.reset)==null||b.call(_);return}a||f==null||f.abort(),Sn(t,"introstart"),f=si(t,h(),_,1,()=>{Sn(t,"introend"),f==null||f.abort(),f=c=void 0})},out(b){if(!a){b==null||b(),c=void 0;return}t.inert=!0,Sn(t,"outrostart"),_=si(t,h(),f,0,()=>{Sn(t,"outroend"),b==null||b()})},stop:()=>{f==null||f.abort(),_==null||_.abort()}},v=ie;if((v.transitions??(v.transitions=[])).push(g),r&&jn){var k=s;if(!k){for(var y=v.parent;y&&y.f&Ct;)for(;(y=y.parent)&&!(y.f&On););k=!y||(y.f&Sr)!==0}k&&at(()=>{Ke(()=>g.in())})}}function si(e,t,n,i,r){var a=i===1;if(Mt(t)){var l,s=!1;return Kt(()=>{if(!s){var k=t({direction:a?"in":"out"});l=si(e,k,n,i,r)}}),{abort:()=>{s=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(n==null||n.deactivate(),!(t!=null&&t.duration))return r(),{abort:yt,deactivate:yt,reset:yt,t:()=>i};const{delay:u=0,css:c,tick:d,easing:f=bl}=t;var _=[];if(a&&n===void 0&&(d&&d(0,1),c)){var h=or(c(0,1));_.push(h,h)}var g=()=>1-i,v=e.animate(_,{duration:u});return v.onfinish=()=>{var k=(n==null?void 0:n.t())??1-i;n==null||n.abort();var y=i-k,b=t.duration*Math.abs(y),A=[];if(b>0){if(c)for(var M=Math.ceil(b/16.666666666666668),S=0;S<=M;S+=1){var E=k+y*f(S/M),z=c(E,1-E);A.push(or(z))}g=()=>{var L=v.currentTime;return k+y*f(L/b)},d&&kl(()=>{if(v.playState!=="running")return!1;var L=g();return d(L,1-L),!0})}v=e.animate(A,{duration:b,fill:"forwards"}),v.onfinish=()=>{g=()=>i,d==null||d(i,1-i),r()}},{abort:()=>{v&&(v.cancel(),v.effect=null,v.onfinish=yt)},deactivate:()=>{r=yt},reset:()=>{i===0&&(d==null||d(1,0))},t:()=>g()}}function xl(e,t,n=t){var i=hn();ta(e,"input",r=>{var a=r?e.defaultValue:e.value;if(a=Jn(e)?Xn(a):a,n(a),i&&a!==(a=t())){var l=e.selectionStart,s=e.selectionEnd;e.value=a??"",s!==null&&(e.selectionStart=l,e.selectionEnd=Math.min(s,e.value.length))}}),Ke(t)==null&&e.value&&n(Jn(e)?Xn(e.value):e.value),Fn(()=>{var r=t();Jn(e)&&r===Xn(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function Jn(e){var t=e.type;return t==="number"||t==="range"}function Xn(e){return e===""?null:+e}function ua(e,t,n){if(e.multiple)return El(e,t);for(var i of e.options){var r=Xt(i);if(Po(r,t)){i.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function Sl(e,t){at(()=>{var n=new MutationObserver(()=>{var i=e.__value;ua(e,i)});return n.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),()=>{n.disconnect()}})}function Tl(e,t,n=t){var i=!0;ta(e,"change",r=>{var a=r?"[selected]":":checked",l;if(e.multiple)l=[].map.call(e.querySelectorAll(a),Xt);else{var s=e.querySelector(a)??e.querySelector("option:not([disabled])");l=s&&Xt(s)}n(l)}),at(()=>{var r=t();if(ua(e,r,i),i&&r===void 0){var a=e.querySelector(":checked");a!==null&&(r=Xt(a),n(r))}e.__value=r,i=!1}),Sl(e)}function El(e,t){for(var n of e.options)n.selected=~t.indexOf(Xt(n))}function Xt(e){return"__value"in e?e.__value:e.value}var ct,Ht,un,Nn,da;const Dn=class Dn{constructor(t){pt(this,Nn);pt(this,ct,new WeakMap);pt(this,Ht);pt(this,un);Zt(this,un,t)}observe(t,n){var i=Ye(this,ct).get(t)||new Set;return i.add(n),Ye(this,ct).set(t,i),Ji(this,Nn,da).call(this).observe(t,Ye(this,un)),()=>{var r=Ye(this,ct).get(t);r.delete(n),r.size===0&&(Ye(this,ct).delete(t),Ye(this,Ht).unobserve(t))}}};ct=new WeakMap,Ht=new WeakMap,un=new WeakMap,Nn=new WeakSet,da=function(){return Ye(this,Ht)??Zt(this,Ht,new ResizeObserver(t=>{for(var n of t){Dn.entries.set(n.target,n);for(var i of Ye(this,ct).get(n.target)||[])i(n)}}))},Gi(Dn,"entries",new WeakMap);let ci=Dn;var Il=new ci({box:"border-box"});function on(e,t,n){var i=Il.observe(e,()=>n(e[t]));at(()=>(Ke(()=>n(e[t])),i))}function lr(e,t){return e===t||(e==null?void 0:e[Qe])===t}function ht(e={},t,n,i){return at(()=>{var r,a;return Fn(()=>{r=a,a=[],Ke(()=>{e!==n(...a)&&(t(e,...a),r&&lr(n(...r),e)&&t(null,...r))})}),()=>{Kt(()=>{a&&lr(n(...a),e)&&t(null,...a)})}}),e}function va(e,t){ol(window,["resize"],()=>Ti(()=>t(window[e])))}let Tn=!1;function Pl(e){var t=Tn;try{return Tn=!1,[e(),Tn]}finally{Tn=t}}const Al={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Cl(e,t,n){return new Proxy({props:e,exclude:t},Al)}const jl={get(e,t){let n=e.props.length;for(;n--;){let i=e.props[n];if(Mt(i)&&(i=i()),typeof i=="object"&&i!==null&&t in i)return i[t]}},set(e,t,n){let i=e.props.length;for(;i--;){let r=e.props[i];Mt(r)&&(r=r());const a=dt(r,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let i=e.props[n];if(Mt(i)&&(i=i()),typeof i=="object"&&i!==null&&t in i){const r=dt(i,t);return r&&!r.configurable&&(r.configurable=!0),r}}},has(e,t){if(t===Qe||t===Ir)return!1;for(let n of e.props)if(Mt(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){const t=[];for(let n of e.props){Mt(n)&&(n=n());for(const i in n)t.includes(i)||t.push(i)}return t}};function Ll(...e){return new Proxy({props:e},jl)}function sr(e){for(var t=ie,n=ie;t!==null&&!(t.f&(Je|_n));)t=t.parent;try{return Le(t),e()}finally{Le(n)}}function B(e,t,n,i){var z;var r=(n&mo)!==0,a=!Ut||(n&po)!==0,l=(n&ko)!==0,s=(n&wo)!==0,u=!1,c;l?[c,u]=Pl(()=>e[t]):c=e[t];var d=Qe in e||Ir in e,f=l&&(((z=dt(e,t))==null?void 0:z.set)??(d&&t in e&&(L=>e[t]=L)))||void 0,_=i,h=!0,g=!1,v=()=>(g=!0,h&&(h=!1,s?_=Ke(i):_=i),_);c===void 0&&i!==void 0&&(f&&a&&lo(),c=v(),f&&f(c));var k;if(a)k=()=>{var L=e[t];return L===void 0?v():(h=!0,g=!1,L)};else{var y=sr(()=>(r?R:jo)(()=>e[t]));y.f|=eo,k=()=>{var L=o(y);return L!==void 0&&(_=void 0),L===void 0?_:L}}if(!(n&yo))return k;if(f){var b=e.$$legacy;return function(L,T){return arguments.length>0?((!a||!T||b||u)&&f(T?k():L),L):k()}}var A=!1,M=!1,S=Cr(c),E=sr(()=>R(()=>{var L=k(),T=o(S);return A?(A=!1,M=!0,T):(M=!1,S.v=L)}));return r||(E.equals=gi),function(L,T){if(arguments.length>0){const O=T?o(E):a&&l?$(L):L;return E.equals(O)||(A=!0,j(S,O),g&&_!==void 0&&(_=O),Ke(()=>o(E))),L}return o(E)}}function cr(e,t){var n=ie,i=ce,r=se;Le(e),ze(e),tr(e.ctx);try{t()}finally{Le(n),ze(i),tr(r)}}function Ml(e,t,n){var i=e,r;ot(()=>{var a=ie,l=!1;a.fn=s=>{var u=t.onerror;let c=t.failed;if(!u&&!c||l)throw s;var d=()=>{Tt(r),cr(a,()=>{l=!1,r=Ve(()=>n(i)),Gn()})};u==null||u(s,d),r&&We(r),Kt(()=>{cr(a,()=>{l=!0;try{r=Ve(()=>{c(i,()=>s,()=>d)})}catch(f){mn(f,a,null,a.ctx)}Gn(),l=!1})})},r=Ve(()=>n(i)),Gn()},Ct|Pn)}function tt(e){se===null&&xi(),Ut&&se.l!==null?ql(se).m.push(e):St(()=>{const t=Ke(e);if(typeof t=="function")return t})}function fa(e){se===null&&xi(),tt(()=>()=>Ke(e))}function ql(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}const Nl="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Nl);const Pi="https://www.playpilot.com",pn="https://partner-api.playpilot.tech/1.0.0",Dl="https://img-external.playpilot.tech",Ai="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",ln=600,_e=Object.freeze({ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",InjectionVisible:"ali_injection_visible",TitleModalView:"ali_title_modal_view",TitleModalClose:"ali_title_modal_close",TitleModalScroll:"ali_title_modal_scroll",TitleModalPlaylinkClick:"ali_title_modal_playlink_click",TitleModalSaveClick:"ali_title_modal_save_click",TitlePopoverView:"ali_title_popover_view",TitlePopoverClose:"ali_title_popover_close",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action"});function _a(e){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=e)}function jt(e){var t;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((t=window.PlayPilotLinkInjections.consents)!=null&&t[e])}function Ci(){const e=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+e}const Ol="https://insights.playpilot.net";async function he(e,t=null,n={}){var r,a,l,s;if(!jt("tracking"))return;const i=new Headers({"Content-Type":"application/json"});t&&(n={original_title:t.original_title,title_sid:t.sid,title_type:t.type,providers:[...new Set(((r=t.providers)==null?void 0:r.map(u=>u.name))||[])],...n}),n.version="5.16.1",n.url=Ci(),n.organization_sid=(a=window.PlayPilotLinkInjections)==null?void 0:a.organization_sid,n.domain_sid=(l=window.PlayPilotLinkInjections)==null?void 0:l.domain_sid,n.device={type:window.innerWidth>ln?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((s=screen.orientation)==null?void 0:s.type)||"undefined"},fetch(Ol,{headers:i,method:"POST",body:JSON.stringify({event:e,payload:n,source:"ali"})}),Rl({event:e,payload:n})}function Rl(e){var t;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(t=window.PlayPilotLinkInjections.tracked_events)==null||t.push(e)}function Hl({organizationSid:e=null,domainSid:t=null}){window.PlayPilotLinkInjections.organization_sid=e||null,window.PlayPilotLinkInjections.domain_sid=t||null}const ji="EncryptedToken",ha="articleReplacementEditToken",ga="playpilot-editorial-mode";async function ma(e=window.location.href){const t=new Headers({"Content-Type":"application/json"});try{const n=kn();if(!n)throw new Error("No token was provided");const i=Li(e);if(!i)throw new Error("Could not be authenticated");const r=await fetch(pn+`/external-pages/edit-authorization?api-token=${n}`,{headers:t,method:"POST",body:JSON.stringify({private_token:i})});if(!r.ok)throw r;return Fl(i),!0}catch(n){console.error(n),he(_e.AuthFailed)}finally{Ul()}return!1}function Li(e=""){var i,r;const t=(i=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:i.editorial_token;if(t)return t;if(e){const a=new URL(e).searchParams.get(ha);if(a)return decodeURI(a)}return((r=("; "+document.cookie).split(`; ${ji}=`).pop())==null?void 0:r.split(";")[0])||""}function Fl(e){const t=new Date;t.setTime(t.getTime()+30*24*60*60*1e3);const i="expires="+t.toUTCString();document.cookie=ji+"="+e+";"+i+";path=/"}function Bl(){document.cookie=ji+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function Mi(){var t;const e=(t=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:t.editorial_token;return new URLSearchParams(window.location.search).get(ga)==="true"||!!e}function Vl(){const e=new URL(window.location.href);e.searchParams.set(ga,"true"),window.history.replaceState({},"",e)}function Ul(){const e=new URL(window.location.href);e.searchParams.delete(ha),window.history.replaceState({},"",e)}function Wl(e){let t=0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=t*31+i>>>0}return t.toString(16)}function pa(){return(Math.random()+1).toString(36).substring(7)}const m=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"}),zl={"Where To Stream Online":{[m.English]:"Where to stream online",[m.Swedish]:"Var kan man streama online",[m.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[m.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[m.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[m.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"An Error Occurred":{[m.English]:"An error occurred",[m.Swedish]:"Ett fel inträffade",[m.Danish]:"Der opstod en fejl"},"Title Unavailable":{[m.English]:"This title is not currently available to stream.",[m.Swedish]:"Den här titeln går inte att streama just nu.",[m.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[m.English]:"is not currently available to stream.",[m.Swedish]:"går inte att streama just nu.",[m.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[m.English]:"is available to stream on",[m.Swedish]:"finns att streama på",[m.Danish]:"kan streames på"},"Is Available To Stream":{[m.English]:"is available to stream.",[m.Swedish]:"finns att streama.",[m.Danish]:"kan streames."},"View Streaming Options":{[m.English]:"View streaming options",[m.Swedish]:"Se streamingalternativ",[m.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[m.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[m.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[m.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[m.English]:"and",[m.Swedish]:"och",[m.Danish]:"og"},Minutes:{[m.English]:"minutes",[m.Swedish]:"minuter",[m.Danish]:"minutter"},"Type: movie":{[m.English]:"Movie",[m.Swedish]:"Film",[m.Danish]:"Film"},"Type: series":{[m.English]:"Series",[m.Swedish]:"Serie",[m.Danish]:"Serie"},Stream:{[m.English]:"Stream",[m.Swedish]:"Streama",[m.Danish]:"Stream"},Buy:{[m.English]:"Buy",[m.Swedish]:"Köp",[m.Danish]:"Køb"},Rent:{[m.English]:"Rent",[m.Swedish]:"Hyra",[m.Danish]:"Lej"},"Rent Or Buy":{[m.English]:"Rent or Buy",[m.Swedish]:"Hyra",[m.Danish]:"Lej eller køb"},Watch:{[m.English]:"Watch",[m.Swedish]:"Se",[m.Danish]:"Se"},All:{[m.English]:"All",[m.Swedish]:"Alla",[m.Danish]:"Alle"},Unscripted:{[m.English]:"Unscripted",[m.Swedish]:"Oscripterat",[m.Danish]:"Umanuskriptet"},Independent:{[m.English]:"Independent",[m.Swedish]:"Indie",[m.Danish]:"Indie"},"Game Show":{[m.English]:"Game Show",[m.Swedish]:"Gameshow",[m.Danish]:"Quizshow"},"Film Noir":{[m.English]:"Film Noir",[m.Swedish]:"Film noir",[m.Danish]:"Film noir"},Entertainment:{[m.English]:"Entertainment",[m.Swedish]:"Underhållning",[m.Danish]:"Underholdning"},News:{[m.English]:"News",[m.Swedish]:"Nyheter",[m.Danish]:"Nyheder"},Short:{[m.English]:"Short",[m.Swedish]:"Kortfilm",[m.Danish]:"Kortfilm"},Bollywood:{[m.English]:"Bollywood",[m.Swedish]:"Bollywood",[m.Danish]:"Bollywood"},Concert:{[m.English]:"Concert",[m.Swedish]:"Konsert",[m.Danish]:"Koncert"},Arthouse:{[m.English]:"Arthouse",[m.Swedish]:"Arthouse",[m.Danish]:"Arthouse"},"Alternate Version":{[m.English]:"Alternate Version",[m.Swedish]:"Alternativ version",[m.Danish]:"Alternativ version"},"Reality TV":{[m.English]:"Reality TV",[m.Swedish]:"Reality-TV",[m.Danish]:"Reality-TV"},Culture:{[m.English]:"Culture",[m.Swedish]:"Kultur",[m.Danish]:"Kultur"},Drama:{[m.English]:"Drama",[m.Swedish]:"Drama",[m.Danish]:"Drama"},Crime:{[m.English]:"Crime",[m.Swedish]:"Kriminal",[m.Danish]:"Krimi"},Western:{[m.English]:"Western",[m.Swedish]:"Western",[m.Danish]:"Western"},Thriller:{[m.English]:"Thriller",[m.Swedish]:"Thriller",[m.Danish]:"Thriller"},Animation:{[m.English]:"Animation",[m.Swedish]:"Animerat",[m.Danish]:"Animation"},Mystery:{[m.English]:"Mystery",[m.Swedish]:"Mysterium",[m.Danish]:"Mysterium"},Science:{[m.English]:"Science",[m.Swedish]:"Vetenskap",[m.Danish]:"Videnskab"},Nature:{[m.English]:"Nature",[m.Swedish]:"Natur",[m.Danish]:"Natur"},War:{[m.English]:"War",[m.Swedish]:"Krig",[m.Danish]:"Krig"},"Sci-Fi":{[m.English]:"Sci-Fi",[m.Swedish]:"Sci-fi",[m.Danish]:"Sci-fi"},Documentary:{[m.English]:"Documentary",[m.Swedish]:"Dokumentär",[m.Danish]:"Dokumentar"},"Stand-up":{[m.English]:"Stand-up",[m.Swedish]:"Standup",[m.Danish]:"Stand-up"},"Talk Show":{[m.English]:"Talk Show",[m.Swedish]:"Talkshow",[m.Danish]:"Talkshow"},Fantasy:{[m.English]:"Fantasy",[m.Swedish]:"Fantasy",[m.Danish]:"Fantasy"},History:{[m.English]:"History",[m.Swedish]:"Historia",[m.Danish]:"Historie"},Adventure:{[m.English]:"Adventure",[m.Swedish]:"Äventyr",[m.Danish]:"Eventyr"},Action:{[m.English]:"Action",[m.Swedish]:"Action",[m.Danish]:"Action"},Horror:{[m.English]:"Horror",[m.Swedish]:"Skräck",[m.Danish]:"Gyser"},Comedy:{[m.English]:"Comedy",[m.Swedish]:"Komedi",[m.Danish]:"Komedie"},Biography:{[m.English]:"Biography",[m.Swedish]:"Biografi",[m.Danish]:"Biografi"},Music:{[m.English]:"Music",[m.Swedish]:"Musik",[m.Danish]:"Musik"},Sport:{[m.English]:"Sport",[m.Swedish]:"Sport",[m.Danish]:"Sport"},Romance:{[m.English]:"Romance",[m.Swedish]:"Romantik",[m.Danish]:"Romantik"},Kids:{[m.English]:"Kids",[m.Swedish]:"Barn",[m.Danish]:"Børn"},Lifestyle:{[m.English]:"Lifestyle",[m.Swedish]:"Livsstil",[m.Danish]:"Livsstil"},Musical:{[m.English]:"Musical",[m.Swedish]:"Musikal",[m.Danish]:"Musical"},Anime:{[m.English]:"Anime",[m.Swedish]:"Anime",[m.Danish]:"Anime"},Family:{[m.English]:"Family",[m.Swedish]:"Familj",[m.Danish]:"Familie"}};function xe(e,t=ya()){var n;return((n=zl[e])==null?void 0:n[t])||e}function ya(){var i,r;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.language,t=Object.values(m);if(e){if(t.includes(e))return e;console.warn(`PlayPilot Link Injections: ${e} is not an accepted language`)}const n=(r=document.querySelector("html"))==null?void 0:r.getAttribute("lang");if(n){if(t.includes(n))return n;const a=t.find(l=>l.toLowerCase().startsWith(n+"-"));if(a)return a}return m.English}async function Kl(){if(!jt("ads"))return;const e=new Headers({"Content-Type":"application/json"}),t=kn();if(!t)throw new Error("No token was provided");const n=await fetch(pn+`/ads/browse/?region=nl&api-token=${t}`,{headers:e});if(!n.ok)throw he(_e.AdsFetchFailed,null,{status:n.status}),n;return await n.json()}function sn(e){var t;return jt("ads")&&(((t=window.PlayPilotLinkInjections)==null?void 0:t.ads)||[]).find(n=>n.campaign_format===e)||null}function Yl(e){return{sid:"",name:e.content.header||"",url:e.cta.url||"",logo_url:e.cta.image||"",highlighted:!0,cta_text:e.content.subheader,action_text:e.cta.header,extra_info:{category:"SVOD"}}}_o();var Zl=Me('<svg viewBox="0 -960 960 960" width="24px" height="24px" fill="currentColor"><path d="m480-320 160-160-56-56-64 64v-168h-80v168l-64-64-56 56 160 160Zm0 240q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"></path></svg>');function Gl(e){var t=Zl();p(e,t)}const It={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]},ParticipantPlaylinkFormat:{key:"participant_playlink_format",numberOfVariants:2}};function Jl({key:e}){var i,r,a;if(!jt("tracking"))return 0;const t=(r=(i=window.PlayPilotLinkInjections)==null?void 0:i.split_test_identifiers)==null?void 0:r[e];if(t)return t;(a=window.PlayPilotLinkInjections)!=null&&a.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});const n=Math.random();return window.PlayPilotLinkInjections.split_test_identifiers[e]=n,n}function ka(e){const t=Jl(e);return Math.floor(t*e.numberOfVariants)}function wa(e){var n;const t=ka(e);return((n=e.variantNames)==null?void 0:n[t])||t.toString()}function Wn(e,t=1){return jt("tracking")?ka(e)===t:!1}function ba(e){const t=wa(e);he(_e.SplitTestView,null,{key:e.key,variant:t})}function Xl(e,t){const n=wa(e);he(_e.SplitTestAction,null,{key:e.key,variant:n,action:t})}function Ql(e){j(e,e.v+1)}function $l(e){let t=0,n=je(0),i;return()=>{No()&&(o(n),Fn(()=>(t===0&&(i=Ke(()=>e(()=>Ql(n)))),t+=1,()=>{ii().then(()=>{t-=1,t===0&&(i==null||i(),i=void 0)})})))}}var dn,vn;class es{constructor(t,n){pt(this,dn);pt(this,vn);Zt(this,dn,t),Zt(this,vn,$l(n))}get current(){return Ye(this,vn).call(this),Ye(this,dn).call(this)}}dn=new WeakMap,vn=new WeakMap;const ts=/\(.+\)/;class ns extends es{constructor(t,n){let i=ts.test(t)?t:`(${t})`;const r=window.matchMedia(i);super(()=>r.matches,a=>ll(r,"change",a))}}const qi=new ns("(prefers-reduced-motion: reduce)"),is=e=>e;function Ni(e){const t=e-1;return t*t*t+1}function ur(e){const t=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}function gt(e,{delay:t=0,duration:n=400,easing:i=is}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:i,css:a=>`opacity: ${a*r}`}}function Dt(e,{delay:t=0,duration:n=400,easing:i=Ni,x:r=0,y:a=0,opacity:l=0}={}){const s=getComputedStyle(e),u=+s.opacity,c=s.transform==="none"?"":s.transform,d=u*(1-l),[f,_]=ur(r),[h,g]=ur(a);return{delay:t,duration:n,easing:i,css:(v,k)=>`
|
|
4
4
|
transform: ${c} translate(${(1-v)*f}${_}, ${(1-v)*h}${g});
|
|
5
5
|
opacity: ${u-d*k}`}}function cn(e,{delay:t=0,duration:n=400,easing:i=Ni,axis:r="y"}={}){const a=getComputedStyle(e),l=+a.opacity,s=r==="y"?"height":"width",u=parseFloat(a[s]),c=r==="y"?["top","bottom"]:["left","right"],d=c.map(y=>`${y[0].toUpperCase()}${y.slice(1)}`),f=parseFloat(a[`padding${d[0]}`]),_=parseFloat(a[`padding${d[1]}`]),h=parseFloat(a[`margin${d[0]}`]),g=parseFloat(a[`margin${d[1]}`]),v=parseFloat(a[`border${d[0]}Width`]),k=parseFloat(a[`border${d[1]}Width`]);return{delay:t,duration:n,easing:i,css:y=>`overflow: hidden;opacity: ${Math.min(y*20,1)*l};${s}: ${y*u}px;padding-${c[0]}: ${y*f}px;padding-${c[1]}: ${y*_}px;margin-${c[0]}: ${y*h}px;margin-${c[1]}: ${y*g}px;border-${c[0]}-width: ${y*v}px;border-${c[1]}-width: ${y*k}px;min-${s}: 0`}}function rs(e,{delay:t=0,duration:n=400,easing:i=Ni,start:r=0,opacity:a=0}={}){const l=getComputedStyle(e),s=+l.opacity,u=l.transform==="none"?"":l.transform,c=1-r,d=s*(1-a);return{delay:t,duration:n,easing:i,css:(f,_)=>`
|
|
6
6
|
transform: ${u} scale(${1-c*_});
|
|
7
7
|
opacity: ${s-d*_}
|
|
8
8
|
`}}var as=I('<div class="scroll-indicator svelte-1dmp8j9"><div class="scroll-indicator-icon svelte-1dmp8j9"><!></div></div>'),os=I("<div><!></div>"),ls=I('<div class="append"><!></div>'),ss=I('<div class="popover svelte-1dmp8j9" tabindex="-1" aria-hidden="true"><div class="dialog svelte-1dmp8j9" data-view-transition-old=""><!> <!></div> <!> <!></div>');function cs(e,t){re(t,!0),$r("scope","popover");const n=t.bubble&&Wn(It.TopScrollFormat,1),i=R(()=>({duration:qi.current?0:100,y:10}));let r=W(null),a=W(!1),l=W(!0),s=W(!1),u=W(0),c=W(0),d=W(0);tt(async()=>{await ii(),f(),await h(),t.append&&requestAnimationFrame(()=>{_(),h()}),await ii(),v()});function f(){if(!o(r))return;const{top:T,right:O,bottom:H,height:F}=o(r).getBoundingClientRect(),P=g();j(a,$(T-P<0&&window.innerHeight-H>T+F));const N=window.innerWidth-O-P;O+P>window.innerWidth&&(o(r).style.left=`${N}px`)}function _(){j(l,o(u)>450)}async function h(){if(j(d,0),await new Promise(V=>requestAnimationFrame(V)),!o(r))return;const{top:T,height:O}=o(r).getBoundingClientRect(),H=g(),F=t.append?parseInt(window.getComputedStyle(o(r)).gap):0,P=o(l)?o(c)+F:0,N=o(a)?window.innerHeight-T-H-P:T+O-P-H;j(d,$(Math.min(N,window.innerHeight*.8)))}function g(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function v(){var P;if(!((P=o(r))!=null&&P.firstChild))return;const T=o(r).firstChild,{offsetHeight:O,scrollHeight:H,scrollTop:F}=T;H<=O?j(s,!1):j(s,F+O<H)}var k=ss();le(k,"inline",n);var y=w(k),b=w(y);Ue(b,()=>t.children);var A=x(b,2);{var M=T=>{var O=as(),H=w(O),F=w(H);Gl(F),pe(3,O,()=>gt,()=>({duration:100})),p(T,O)};D(A,T=>{o(s)&&T(M)})}var S=x(y,2);{var E=T=>{var O=os(),H=w(O);Ue(H,()=>t.bubble),pe(7,O,()=>Dt,()=>o(i)),p(T,O)};D(S,T=>{t.bubble&&T(E)})}var z=x(S,2);{var L=T=>{var O=ls(),H=w(O);Ue(H,()=>t.append),pe(7,O,()=>Dt,()=>o(i)),on(O,"clientHeight",F=>j(c,F)),p(T,O)};D(z,T=>{t.append&&o(l)&&T(L)})}ht(k,T=>j(r,T),()=>o(r)),q(()=>{le(k,"flip",o(a)),le(k,"has-bubble",!!t.bubble&&n),_t(k,"--max-height",o(d)?o(d)+"px":null)}),ve("scroll",y,v),pe(7,y,()=>Dt,()=>o(i)),on(k,"clientHeight",T=>j(u,T)),p(e,k),ae()}const us=[{slug:"100",name:"All",categories:{movie:100,series:100,documentary:100,kids:100,cinema:100,podcasts:100}},{slug:"999",name:"Unscripted",categories:{},media_format:"video"},{slug:"900",name:"Independent",categories:{},media_format:"video"},{slug:"113",name:"Game Show",categories:{series:36,kids:28},media_format:"video"},{slug:"112",name:"Film Noir",categories:{movie:37},media_format:"video"},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42},media_format:"video"},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38},media_format:"video"},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36},media_format:"video"},{slug:"902",name:"Bollywood",categories:{},media_format:"video"},{slug:"240",name:"Concert",categories:{movie:45},media_format:"video"},{slug:"901",name:"Arthouse",categories:{},media_format:"video"},{slug:"903",name:"Alternate Version",categories:{},media_format:"video"},{slug:"121",name:"Reality TV",categories:{series:24},media_format:"video"},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44},media_format:"video"},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44},media_format:"video"},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84},media_format:"video"},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24},media_format:"video"},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70},media_format:"video"},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50},media_format:"video"},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76},media_format:"video"},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74},media_format:"video"},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28},media_format:"video"},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66},media_format:"video"},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32},media_format:"video"},{slug:"106",name:"Documentary",categories:{kids:50},media_format:"video"},{slug:"232",name:"Stand-up",categories:{movie:18,series:18},media_format:"video"},{slug:"126",name:"Talk Show",categories:{kids:34,series:16},media_format:"video"},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38},media_format:"video"},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90},media_format:"video"},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88},media_format:"video"},{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90},media_format:"video"},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80},media_format:"video"},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86},media_format:"video"},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46},media_format:"video"},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32},media_format:"video"},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20},media_format:"video"},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74},media_format:"video"},{slug:"103",name:"Kids",categories:{kids:76},media_format:"video"},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34},media_format:"video"},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30},media_format:"video"},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48},media_format:"video"},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40},media_format:"video"}];var ds=I('<div class="genre svelte-uh53st"> </div>'),vs=(e,t)=>j(t,!0),fs=I('<button class="genre expand svelte-uh53st"> </button>'),_s=I("<!> <!>",1);function hs(e,t){re(t,!0);let n=W(!1);const i=R(()=>o(n)?t.genres:[t.genres[0]]);var r=_s(),a=Q(r);Oe(a,17,()=>o(i),Ge,(u,c)=>{var d=ge();const f=R(()=>{var g;return(g=us.find(v=>v.slug===o(c)))==null?void 0:g.name});var _=Q(d);{var h=g=>{var v=ds(),k=w(v);q(()=>K(k,xe(o(f)))),p(g,v)};D(_,g=>{o(f)&&g(h)})}p(u,d)});var l=x(a,2);{var s=u=>{var c=fs();c.__click=[vs,n];var d=w(c);q(()=>K(d,`+${t.genres.length-1}`)),p(u,c)};D(l,u=>{!o(n)&&t.genres.length>1&&u(s)})}p(e,r),ae()}ue(["click"]);function xa(e){const t=e.filter(i=>!!i.logo_url);let n=[];for(const i of t){let r=i;const a=n.find(u=>u.name===r.name),l=a==null?void 0:a.extra_info.category,s=r.extra_info.category;(l==="RENT"&&s==="BUY"||l==="BUY"&&s==="RENT")&&(n=n.filter(u=>u.name!==r.name),r={...r,extra_info:{...r.extra_info,category:"TVOD"}}),n.push(r)}return n}function me(e,t=1){e.role="heading",e.ariaLevel=t.toString()}function gs(e,t){e.preventDefault(),e.stopPropagation(),j(t,!o(t))}var ms=I('<div class="tooltip-content svelte-1gjw7ie" role="paragraph"> </div>'),ps=I('<button class="tooltip svelte-1gjw7ie" data-testid="disclaimer"><div class="disclaimer svelte-1gjw7ie" aria-label="Disclaimer">i</div> <!></button>');function Di(e,t){const n=B(t,"small",3,!1);let i=W(!1);var r=ps();r.__click=[gs,i];var a=w(r),l=x(a,2);{var s=u=>{var c=ms(),d=w(c);q(()=>K(d,t.disclaimer)),pe(3,c,()=>gt,()=>({duration:50})),p(u,c)};D(l,u=>{o(i)&&u(s)})}q(()=>le(a,"small",n())),p(e,r)}ue(["click"]);function Yt(e){return e?e.replace("/src/img",""):null}function dr(e,t=null){return e!=null&&e.length?`${Dl}/${e}?${t?`class=${t}&`:""}optimizer=image`:""}var ys=I('<span class="category svelte-49sxfd" data-testid="category"> </span>'),ks=I('<span class="cta svelte-49sxfd"> </span>'),ws=I('<div class="playlink-content svelte-49sxfd"><img alt="" height="36" width="36" class="svelte-49sxfd"> <span class="name svelte-49sxfd"> </span> <!> <!> <div class="action svelte-49sxfd"> </div> <!></div>');function vr(e,t){re(t,!0);const n=B(t,"disclaimer",3,""),i=B(t,"hideCategory",3,!1),r=B(t,"onclick",3,()=>null),a=R(()=>t.playlink.name),l=R(()=>t.playlink.url),s=R(()=>t.playlink.logo_url),u=R(()=>t.playlink.highlighted),c=R(()=>t.playlink.cta_text),d=R(()=>t.playlink.action_text),f=R(()=>t.playlink.extra_info.category),_={SVOD:xe("Stream"),BUY:xe("Buy"),RENT:xe("Rent"),TVOD:xe("Rent Or Buy")};var h=ge(),g=Q(h);ra(g,()=>jt("affiliate")?"a":"span",!1,(v,k)=>{let y;q(()=>{y=oa(v,y,{onclick:r(),href:o(l),target:"_blank",class:"playlink","data-playlink":o(a),rel:"sponsored"},"svelte-49sxfd",v.namespaceURI===yi,v.nodeName.includes("-")),le(v,"highlighted",o(u)&&o(c)),le(v,"no-category",i())});var b=ws(),A=w(b);q(()=>ee(A,"src",Yt(o(s))));var M=x(A,2),S=w(M),E=x(M,2);{var z=N=>{var V=ys(),U=w(V);q(()=>K(U,_[o(f)]||xe("Stream"))),p(N,V)};D(E,N=>{i()||N(z)})}var L=x(E,2);{var T=N=>{var V=ks(),U=w(V);q(()=>K(U,o(c))),p(N,V)};D(L,N=>{o(c)&&N(T)})}var O=x(L,2),H=w(O);q(()=>K(H,o(d)||xe("Watch")));var F=x(O,2);{var P=N=>{Di(N,{get disclaimer(){return n()},small:!0})};D(F,N=>{n()&&N(P)})}q(()=>K(S,o(a))),p(k,b)}),p(e,h),ae()}var bs=I('<div class="disclaimer svelte-kurv7" data-testid="commission-disclaimer"> <a href="https://playpilot.com/" target="_blank" rel="sponsored" class="svelte-kurv7">PlayPilot.com</a></div>'),xs=I("<!> <!>",1),Ss=I('<div class="empty svelte-kurv7" data-testid="playlinks-empty"> </div>'),Ts=I('<div class="heading svelte-kurv7"> </div> <!> <div class="playlinks svelte-kurv7"><!> <!></div>',1);function Es(e,t){re(t,!0);const n=Zo("scope")==="modal",i=sn("card");let r=W(0);const a=R(()=>o(r)<500||!!i),l=R(()=>xa(t.playlinks));function s(y){he(n?_e.TitleModalPlaylinkClick:_e.TitlePopoverPlaylinkClick,t.title,{playlink:y})}var u=Ts(),c=Q(u),d=w(c);q(()=>K(d,xe("Where To Stream Online"))),rt(c,(y,b)=>me==null?void 0:me(y,b),()=>3);var f=x(c,2);{var _=y=>{var b=bs(),A=w(b);q(()=>K(A,`${xe("Commission Disclaimer")??""} `)),p(y,b)};D(f,y=>{t.playlinks.length&&y(_)})}var h=x(f,2),g=w(h);Oe(g,17,()=>o(l),Ge,(y,b,A)=>{var M=xs(),S=Q(M);vr(S,{get playlink(){return o(b)},onclick:()=>s(o(b).name)});var E=x(S,2);{var z=L=>{var T=R(()=>Yl(i)),O=R(()=>i.disclaimer||"");vr(L,{get playlink(){return o(T)},onclick:()=>he(_e.DisplayedAdPlaylickClick,t.title,{campaign_name:i.campaign_name}),hideCategory:!0,get disclaimer(){return o(O)}})};D(E,L=>{i&&A===0&&L(z)})}p(y,M)});var v=x(g,2);{var k=y=>{var b=Ss(),A=w(b);q(()=>K(A,xe("Title Unavailable"))),p(y,b)};D(v,y=>{o(l).length||y(k)})}q(()=>le(h,"list",o(a))),on(h,"clientWidth",y=>j(r,y)),p(e,u),ae()}var Is=(e,t)=>j(t,!0),Ps=I('<button class="show-more svelte-1u3je71">Show more</button>'),As=I('<div class="paragraph svelte-1u3je71" role="paragraph"> </div>'),Cs=I('<div><span class="paragraph svelte-1u3je71" role="paragraph"> <!> <!></span> <!></div>');function js(e,t){re(t,!0);const n=B(t,"blurb",3,""),i=B(t,"limit",3,200);let r=W(!1);const a=R(()=>t.text.slice(0,i()));var l=Cs(),s=w(l),u=w(s),c=x(u);{var d=v=>{var k=Ae("...");p(v,k)};D(c,v=>{!o(r)&&t.text.length>i()&&v(d)})}var f=x(c,2);{var _=v=>{var k=Ps();k.__click=[Is,r],p(v,k)};D(f,v=>{!o(r)&&(t.text.length>i()||n())&&v(_)})}var h=x(s,2);{var g=v=>{var k=As(),y=w(k);q(()=>K(y,n())),p(v,k)};D(h,v=>{o(r)&&v(g)})}q(()=>K(u,o(r)?t.text:o(a))),p(e,l),ae()}ue(["click"]);var Ls=Me('<svg viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 0.351929L9.163 4.72803L14 5.43408L10.5 8.8385L11.326 13.648L7 11.3761L2.674 13.648L3.5 8.8385L0 5.43408L4.837 4.72803L7 0.351929Z" fill="#F6C045"></path></svg>');function Oi(e,t){const n=B(t,"size",3,14);var i=Ls();q(()=>{ee(i,"width",n()),ee(i,"height",n())}),p(e,i)}function Sa(e){return e.ctrlKey||e.metaKey||e.button!==0}var Ms=Me('<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M14 2L2 14M2 2L14 14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Ta(e){var t=Ms();p(e,t)}var qs=Me('<svg height="16px" viewBox="0 -960 960 960" width="16px"><path d="m288-96-68-68 316-316-316-316 68-68 384 384L288-96Z" fill="currentColor"></path></svg>');function Ea(e,t){const n=B(t,"direction",3,"right");var i=qs();q(()=>pl(i,`${n()??""} svelte-jna4l3`)),p(e,i)}function Ln(e,t){re(t,!0);const n=B(t,"size",3,"32px"),i=B(t,"onclick",3,()=>null),r=Cl(t,["$$slots","$$events","$$legacy","children","size","onclick"]);var a=ge(),l=Q(a);ra(l,()=>t.href?"a":"button",!1,(s,u)=>{let c;q(()=>{c=oa(s,c,{role:t.href?"link":"button",onclick:i(),class:"button",...r},"svelte-1qqv88o",s.namespaceURI===yi,s.nodeName.includes("-")),_t(s,"--size",n())});var d=ge(),f=Q(d);Ue(f,()=>t.children??yt),p(u,d)}),p(e,a),ae()}var Ns=I('<div class="handle svelte-1dkwtal"></div>');function Ds(e,t){re(t,!0);let n=B(t,"target",7),i=B(t,"threshold",3,100),r=B(t,"isDragging",15,!1),a=B(t,"passedThreshold",15,!1),l=B(t,"onpassed",3,()=>null),s=W(0),u=W(0),c=W(null),d=W(!1);const f=R(()=>Math.max(o(u)-o(s),0));St(()=>{a(o(f)>i())});function _(k){k&&n()&&(r(!0),j(d,!0),j(s,$(k.touches[0].pageY)),n().style.transitionDuration="0ms")}function h(k){k&&n()&&r()&&(j(u,$(k.touches[0].pageY)),n().style.transform=`translateY(${o(f)}px)`,o(c).style.transform=`translateY(${o(f)}px)`)}function g(){n()&&r()&&(r(!1),a()?l()():(n().removeAttribute("style"),o(c).removeAttribute("style")),j(s,0),j(u,0))}var v=Ns();return ve("touchmove",ke,h,void 0,!0),ve("touchend",ke,g),v.__touchstart=_,ht(v,k=>j(c,k),()=>o(c)),q(()=>{le(v,"dragging",r()),le(v,"dragged",o(d))}),p(e,v),ae({start:_,move:h,end:g})}ue(["touchstart"]);var Os=I('<div class="prepend svelte-j420io"><!></div>'),Rs=I('<div class="bubble svelte-j420io"><!></div>'),Hs=I('<div class="swipe-handle svelte-j420io"><!></div>'),Fs=I("<div><!></div>"),Bs=()=>Qt(),Vs=I('<div class="modal svelte-j420io"><!> <!> <!> <div class="dialog svelte-j420io" role="dialog" aria-labelledby="title" data-view-transition-new=""><!> <div><!></div> <!></div> <div class="backdrop svelte-j420io"></div></div>');function Ri(e,t){re(t,!0);const n=B(t,"tall",3,!1),i=B(t,"closeButtonStyle",3,"shadow"),r=B(t,"initialScrollPosition",3,0),a=B(t,"onscroll",3,()=>null),l=Wn(It.TopScrollFormat,1);let s=W(0),u=W(null),c=W(null),d=W(0),f=W(!1);const _=R(()=>o(s)<ln);St(()=>{var P;o(s)&&j(d,$(((P=o(c))==null?void 0:P.offsetTop)||0))}),St(()=>{setTimeout(()=>{var P;return j(d,$(((P=o(c))==null?void 0:P.offsetTop)||0))})}),$r("scope","modal"),tt(()=>{const P=document.body.style.overflowY;return document.body.style.overflowY="hidden",j(f,!!Ic()),requestAnimationFrame(h),()=>document.body.style.overflowY=P||""});function h(){const P=window.innerWidth>ln?o(u):o(c);P==null||P.scrollTo(0,r())}function g(P,N={y:0}){return qi.current?gt(P,{duration:0}):o(_)?Dt(P,{duration:250,...N}):rs(P,{duration:150,start:.85})}var v=Vs();ve("keydown",ke,({key:P})=>{P==="Escape"&&Qt()});var k=w(v);{var y=P=>{var N=Os(),V=w(N);Ue(V,()=>t.prepend),pe(7,N,()=>g,()=>({y:-10})),p(P,N)};D(k,P=>{t.prepend&&P(y)})}var b=x(k,2);{var A=P=>{var N=Rs();le(N,"inline",l);var V=w(N);Ue(V,()=>t.bubble),pe(7,N,()=>g,()=>({y:l?window.innerHeight:-10})),p(P,N)};D(b,P=>{t.bubble&&P(A)})}var M=x(b,2);{var S=P=>{var N=Hs(),V=w(N);Ds(V,{get target(){return o(c)},onpassed:()=>Qt()}),pe(7,N,()=>g),p(P,N)};D(M,P=>{o(_)&&P(S)})}var E=x(M,2),z=w(E);{var L=P=>{var N=Fs(),V=w(N);Ln(V,{onclick:()=>Pc(),"aria-label":"Back",children:(U,C)=>{Ea(U,{direction:"left"})},$$slots:{default:!0}}),q(()=>li(N,`close back ${i()??""} svelte-j420io`)),p(P,N)};D(z,P=>{o(f)&&P(L)})}var T=x(z,2),O=w(T);Ln(O,{onclick:()=>Qt(),"aria-label":"Close",children:(P,N)=>{Ta(P)},$$slots:{default:!0}});var H=x(T,2);Ue(H,()=>t.children),ht(E,P=>j(c,P),()=>o(c));var F=x(E,2);F.__click=[Bs],ht(v,P=>j(u,P),()=>o(u)),q(()=>{le(v,"has-bubble",!!t.bubble&&l),le(v,"has-prepend",!!t.prepend),_t(v,"--dialog-offset",`${o(d)??""}px`),le(E,"tall",n()),li(T,`close ${i()??""} svelte-j420io`)}),va("innerWidth",P=>j(s,$(P))),ve("scroll",E,function(...P){var N;(N=a())==null||N.apply(this,P)}),pe(7,E,()=>g,()=>({y:window.innerHeight})),pe(7,v,()=>gt,()=>({duration:150})),p(e,v),ae()}ue(["click"]);function Ot(e,t){let{onclick:n}=t;function i(r){return r.button!==1?null:(n(r),r)}return e.addEventListener("mouseup",i),{destroy(){e.removeEventListener("mouseup",i)}}}const fr={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"};var Us=I('<img class="content-image svelte-1sg9fqf" width="728" height="90">'),Ws=I('<img class="logo svelte-1sg9fqf" alt="" width="50" height="50">'),zs=I('<button class="button svelte-1sg9fqf"> </button>'),Ks=I('<!> <p class="tagline svelte-1sg9fqf"> </p> <!>',1),Ys=I('<div class="background svelte-1sg9fqf"></div>'),Zs=I("<!> <!>",1),Gs=I('<a target="_blank" class="top-scroll svelte-1sg9fqf" tabindex="-1" rel="sponsored"><div class="content svelte-1sg9fqf"><!></div> <!></a>');function Ia(e,t){re(t,!0),he(_e.TopScrollView,null,{campaign_name:t.campaign.campaign_name}),ba(It.TopScrollFormat);const n=R(()=>t.campaign.disclaimer),i=R(()=>t.campaign.content),r=R(()=>t.campaign.cta),a=R(()=>o(i).format),l=R(()=>o(i).header),s=R(()=>o(i).header_logo),u=R(()=>o(i).image_uuid),c=R(()=>o(r).header),d=R(()=>o(r).url),f=Wn(It.TopScrollFormat,1),_=R(()=>o(a)==="large"),h=R(()=>dr(o(u),fr.TopScrollBackground)),g=R(()=>dr(o(u),fr.TopScrollContent));let v=W(0);function k(){he(_e.TopScrollClick,null,{campaign_name:t.campaign.campaign_name})}var y=Gs();y.__click=k;var b=w(y),A=w(b);{var M=L=>{var T=Us();q(()=>{ee(T,"src",o(g)),ee(T,"alt",o(l))}),p(L,T)},S=L=>{var T=Ks(),O=Q(T);{var H=U=>{var C=Ws();q(()=>ee(C,"src",o(s))),p(U,C)};D(O,U=>{o(s)&&U(H)})}var F=x(O,2),P=w(F),N=x(F,2);{var V=U=>{var C=zs(),Y=w(C);q(()=>K(Y,o(c))),p(U,C)};D(N,U=>{o(c)&&U(V)})}q(()=>K(P,o(l))),p(L,T)};D(A,L=>{o(_)?L(M):L(S,!1)})}var E=x(b,2);{var z=L=>{var T=Zs(),O=Q(T);{var H=N=>{var V=Ys();q(()=>_t(V,"--background",`url('${o(h)??""}')`)),p(N,V)};D(O,N=>{o(u)&&N(H)})}var F=x(O,2);{var P=N=>{Di(N,{get disclaimer(){return o(n)}})};D(F,N=>{o(n)&&N(P)})}p(L,T)};D(E,L=>{o(_)||L(z)})}rt(y,(L,T)=>Ot==null?void 0:Ot(L,T),()=>({onclick:k})),at(()=>on(y,"clientWidth",L=>j(v,L))),q(()=>{ee(y,"href",o(d)),le(y,"simple",o(_)),le(y,"inline",f),_t(y,"--width",`${o(v)??""}px`)}),p(e,y),ae()}ue(["click"]);var Js=(e,t)=>j(t,!o(t)),Xs=I('<div class="content svelte-17rkbgm"><!></div>'),Qs=I('<div class="tooltip svelte-17rkbgm" data-testid="tooltip"><!> <!></div>');function $s(e,t){re(t,!0);let n=W(!1);var i=Qs();i.__touchstart=[Js,n];var r=w(i);Ue(r,()=>t.children);var a=x(r,2);{var l=s=>{var u=Xs(),c=w(u);Ue(c,()=>t.content),pe(1,u,()=>gt,()=>({duration:100})),p(s,u)};D(a,s=>{o(n)&&s(l)})}ve("mouseenter",i,()=>j(n,!0)),ve("mouseleave",i,()=>j(n,!1)),p(e,i),ae()}ue(["touchstart"]);var ec=I('<div class="info svelte-ltvyn2"><!></div>'),tc=I('<img class="logo svelte-ltvyn2" alt="" height="40" width="40">'),nc=I('<span class="name svelte-ltvyn2"> </span>'),ic=I('<div class="subheader svelte-ltvyn2"> </div>'),rc=I('<div class="action svelte-ltvyn2"> </div>'),ac=I('<div class="cta svelte-ltvyn2"><!> <div><!> <!></div> <!></div>'),oc=I('<img class="background svelte-ltvyn2" alt="">'),lc=I('<video class="background svelte-ltvyn2" autoplay playsinline="" loop><source type="video/mp4"> <track kind="captions"></video>',2),sc=I('<div class="disclaimer svelte-ltvyn2"><!></div>'),cc=I('<a target="_blank" class="display svelte-ltvyn2" rel="sponsored"><!> <!> <!> <!></a>');function Pa(e,t){re(t,!0);const n=B(t,"compact",3,!1),i=R(()=>t.campaign.disclaimer),r=R(()=>t.campaign.content),a=R(()=>t.campaign.cta),l=R(()=>t.campaign.campaign_type),s=R(()=>o(r).header),u=R(()=>o(r).subheader),c=R(()=>o(r).header_logo),d=R(()=>o(r).image),f=R(()=>o(r).video),_=R(()=>o(a).header),h=R(()=>o(a).url),g=R(()=>o(a).subheader);let v=W(0);he(_e.DisplayAdView,null,{campaign_name:t.campaign.campaign_name});function k(){he(_e.DisplayAdClick,null,{campaign_name:t.campaign.campaign_name})}var y=cc();y.__click=k;var b=w(y);{var A=H=>{var F=ec(),P=w(F);{var N=U=>{$s(U,{content:Y=>{var Z=Ae();q(()=>K(Z,o(g))),p(Y,Z)},children:(Y,Z)=>{var te=Ae("Ad");p(Y,te)},$$slots:{content:!0,default:!0}})},V=U=>{var C=Ae();q(()=>K(C,o(g))),p(U,C)};D(P,U=>{n()?U(N):U(V,!1)})}p(H,F)};D(b,H=>{o(g)&&H(A)})}var M=x(b,2);{var S=H=>{var F=ac(),P=w(F);{var N=oe=>{var G=tc();q(()=>ee(G,"src",o(c))),p(oe,G)};D(P,oe=>{o(c)&&oe(N)})}var V=x(P,2),U=w(V);{var C=oe=>{var G=nc(),J=w(G);q(()=>K(J,o(s))),p(oe,G)};D(U,oe=>{o(s)&&oe(C)})}var Y=x(U,2);{var Z=oe=>{var G=ic(),J=w(G);q(()=>K(J,o(u))),p(oe,G)};D(Y,oe=>{o(u)&&oe(Z)})}var te=x(V,2);{var de=oe=>{var G=rc(),J=w(G);q(()=>K(J,o(_))),p(oe,G)};D(te,oe=>{o(_)&&oe(de)})}on(F,"clientHeight",oe=>j(v,oe)),p(H,F)};D(M,H=>{(o(c)||o(s)||o(u)||o(_))&&H(S)})}var E=x(M,2);{var z=H=>{var F=oc();q(()=>ee(F,"src",o(d))),p(H,F)},L=H=>{var F=ge(),P=Q(F);{var N=V=>{var U=lc();U.muted=!0;var C=w(U);q(()=>ee(C,"src",o(f))),p(V,U)};D(P,V=>{o(l)==="video"&&o(f)&&V(N)},!0)}p(H,F)};D(E,H=>{o(l)==="image"&&o(d)?H(z):H(L,!1)})}var T=x(E,2);{var O=H=>{var F=sc(),P=w(F);Di(P,{get disclaimer(){return o(i)}}),q(()=>_t(F,"--offset",`${o(v)??""}px`)),p(H,F)};D(T,H=>{o(i)&&H(O)})}rt(y,(H,F)=>Ot==null?void 0:Ot(H,F),()=>({onclick:k})),q(()=>{ee(y,"href",o(h)),le(y,"compact",n())}),p(e,y),ae()}ue(["click"]);function uc(e,t){re(t,!0);const n=c=>{var d=ge(),f=Q(d);{var _=h=>{Ia(h,{campaign:a})};D(f,h=>{a&&h(_)})}p(c,d)},i=c=>{var d=ge(),f=Q(d);{var _=h=>{Pa(h,{campaign:l})};D(f,h=>{l&&h(_)})}p(c,d)},r=B(t,"initialScrollPosition",3,0),a=sn("top_scroll"),l=sn("card");he(_e.TitleModalView,t.title);let s=!1;tt(()=>{const c=Date.now();return()=>he(_e.TitleModalClose,t.title,{time_spent:Date.now()-c})});function u(){s||(he(_e.TitleModalScroll,t.title),s=!0)}Ri(e,{onscroll:u,get initialScrollPosition(){return r()},prepend:l?i:null,bubble:a?n:null,tall:!0,children:(c,d)=>{Ca(c,{get title(){return t.title}})},$$slots:{default:!0}}),ae()}var dc=I('<a target="_blank" class="playlink svelte-1ficv10" rel="sponsored"><img class="svelte-1ficv10"></a>');function vc(e,t){re(t,!0);const n=B(t,"size",3,30),i=B(t,"onclick",3,()=>null),r=R(()=>t.playlink.name),a=R(()=>t.playlink.url),l=R(()=>t.playlink.logo_url);var s=dc();s.__click=function(...c){var d;(d=i())==null||d.apply(this,c)};var u=w(s);q(()=>ee(u,"src",Yt(o(l)))),q(()=>{ee(s,"href",o(a)),ee(s,"data-playlink",o(r)),ee(u,"alt",o(r)),ee(u,"height",n()),ee(u,"width",n())}),p(e,s),ae()}ue(["click"]);var fc=I('<a target="_blank" class="playlink svelte-17p1eg8" rel="sponsored"> </a>');function _c(e,t){const n=B(t,"onclick",3,()=>null),i=R(()=>t.playlink.name),r=R(()=>t.playlink.url);var a=fc();a.__click=function(...s){var u;(u=n())==null||u.apply(this,s)};var l=w(a);q(()=>{ee(a,"href",o(r)),ee(a,"data-playlink",o(i)),K(l,o(i))}),p(e,a)}ue(["click"]);var hc=I('<img class="svelte-ht3b44">');function Aa(e,t){re(t,!0);const n=B(t,"width",3,96),i=B(t,"height",3,144),r=B(t,"onload",3,()=>null);var a=hc();q(()=>ee(a,"src",Yt(t.title.standing_poster))),q(()=>{ee(a,"alt",`Movie poster for '${t.title.title??""}'`),ee(a,"width",n()),ee(a,"height",i())}),ve("error",a,({target:l})=>l.src=Ai),ve("load",a,function(...l){var s;(s=r())==null||s.apply(this,l)}),p(e,a),ae()}var gc=I('<div class="svelte-wdqhqr"> </div>'),mc=I('<span class="more svelte-wdqhqr"> </span>'),pc=I('<div class="empty svelte-wdqhqr" data-testid="playlinks-empty"> </div>'),yc=I('<a class="title svelte-wdqhqr"><div class="poster svelte-wdqhqr"><!></div> <div class="content svelte-wdqhqr"><div class="heading svelte-wdqhqr"> </div> <div class="meta svelte-wdqhqr"><div class="imdb svelte-wdqhqr"><!> </div> <div class="svelte-wdqhqr"> </div> <div class="svelte-wdqhqr"> </div> <!></div> <div class="description svelte-wdqhqr"> </div> <div class="playlinks svelte-wdqhqr"><!> <!> <!></div></div> <div class="action svelte-wdqhqr"><!></div></a>');function kc(e,t){re(t,!0);const n=B(t,"onclick",3,()=>null),i=R(()=>xa(t.title.providers)),r=R(()=>o(i).slice(0,3)),a=Wn(It.ParticipantPlaylinkFormat,1);function l(C){C.stopPropagation(),Xl(It.ParticipantPlaylinkFormat,"click")}var s=yc();s.__click=function(...C){var Y;(Y=n())==null||Y.apply(this,C)};var u=w(s),c=w(u);Aa(c,{get title(){return t.title},width:30,height:43});var d=x(u,2),f=w(d),_=w(f),h=x(f,2),g=w(h),v=w(g);Oi(v,{size:11});var k=x(v),y=x(g,2),b=w(y),A=x(y,2),M=w(A),S=x(A,2);{var E=C=>{var Y=gc(),Z=w(Y);q(()=>K(Z,`${t.title.length??""} min`)),p(C,Y)};D(S,C=>{t.title.length&&C(E)})}var z=x(h,2),L=w(z),T=x(z,2),O=w(T);Oe(O,17,()=>o(r),Ge,(C,Y)=>{var Z=ge(),te=Q(Z);{var de=G=>{_c(G,{get playlink(){return o(Y)},onclick:l})},oe=G=>{vc(G,{get playlink(){return o(Y)},onclick:l})};D(te,G=>{a?G(de):G(oe,!1)})}p(C,Z)});var H=x(O,2);{var F=C=>{var Y=mc(),Z=w(Y);q(()=>K(Z,`+${o(i).length-o(r).length}`)),p(C,Y)};D(H,C=>{o(i).length>o(r).length&&C(F)})}var P=x(H,2);{var N=C=>{var Y=pc(),Z=w(Y);q(()=>K(Z,xe("Title Unavailable"))),p(C,Y)};D(P,C=>{o(i).length||C(N)})}var V=x(d,2),U=w(V);Ea(U,{}),q(()=>{ee(s,"href",`${Pi}/${t.title.type??""}/${t.title.slug??""}`),K(_,t.title.title),K(k,` ${t.title.imdb_score??""}`),K(b,t.title.year),K(M,t.title.type),K(L,t.title.description)}),p(e,s),ae()}ue(["click"]);var wc=I(", died on <strong> </strong>",1),bc=I('<p class="dates svelte-uqs0wk">Born on <strong> </strong><!></p>'),xc=I('<div class="header svelte-uqs0wk"><div class="heading svelte-uqs0wk" id="name"> </div> <!></div> <div class="content svelte-uqs0wk"><div class="heading small svelte-uqs0wk" id="credits">Credits</div> <div class="list svelte-uqs0wk"></div></div>',1);function Sc(e,t){re(t,!0);const n=R(()=>t.participant.name),i=R(()=>t.participant.birth_date),r=R(()=>t.participant.death_date);ba(It.ParticipantPlaylinkFormat);function a(v){return new Date(v).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}var l=xc(),s=Q(l),u=w(s),c=w(u);rt(u,(v,k)=>me==null?void 0:me(v,k),()=>2);var d=x(u,2);{var f=v=>{var k=bc(),y=x(w(k)),b=w(y);q(()=>K(b,a(o(i))));var A=x(y);{var M=S=>{var E=wc(),z=x(Q(E)),L=w(z);q(()=>K(L,a(o(r)))),p(S,E)};D(A,S=>{o(r)&&S(M)})}p(v,k)};D(d,v=>{o(i)&&v(f)})}var _=x(s,2),h=w(_);rt(h,(v,k)=>me==null?void 0:me(v,k),()=>3);var g=x(h,2);Oe(g,20,()=>{var v,k;return((k=(v=window.PlayPilotLinkInjections)==null?void 0:v.evaluated_link_injections)==null?void 0:k.map(y=>y.title_details))||[]},Ge,(v,k)=>{var y=ge(),b=Q(y);{var A=M=>{kc(M,{get title(){return k},onclick:S=>zn({event:S,data:k})})};D(b,M=>{k&&M(A)})}p(v,y)}),q(()=>K(c,o(n))),p(e,l),ae()}function Tc(e,t){const n=B(t,"participant",19,()=>({sid:"pr5C5W",name:"James Franco",birth_date:"1978-04-19",death_date:null,jobs:["actor"],image:"https://hips.hearstapps.com/hmg-prod/images/gettyimages-161098947-square.jpg",image_uuid:"08ed2fac357011eb87470aff12c0f5c9",gender:"Male",bio:`Aenean feugiat nec odio at venenatis. Integer porta neque metus, a sollicitudin dolor dapibus et. In sollicitudin nulla eget ultricies porttitor. Nulla facilisi. Sed turpis orci, facilisis efficitur neque in, ultrices ultricies purus. Mauris nec augue a nisi imperdiet semper ut nec tellus. Donec at tristique odio. Etiam luctus eget metus non mattis. Integer imperdiet in elit eu varius. Donec ornare, nibh vitae accumsan consequat, lacus nulla elementum sapien, a scelerisque tellus augue ac erat. Aenean finibus fringilla magna, ac laoreet nisl convallis vel. Proin laoreet ex ac augue maximus, nec gravida tortor pharetra.
|
|
9
|
-
Curabitur maximus dui sed risus placerat pharetra vitae ut orci. Proin sodales enim a elit euismod, a varius sem suscipit. Vivamus eu magna cursus, fringilla est in, mollis nunc. Mauris fringilla eleifend nibh, eget auctor lectus bibendum non. Praesent sed elit ipsum. Donec nunc dolor, sagittis hendrerit gravida et, lacinia sed metus. Morbi tempus mi massa. In hac habitasse platea dictumst. Suspendisse aliquet tincidunt lectus ut elementum.`})),i=B(t,"initialScrollPosition",3,0);let r=W(0);Ri(e,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",children:(a,l)=>{Sc(a,{get participant(){return n()}})},$$slots:{default:!0}}),va("innerWidth",a=>j(r,$(a)))}const Ie=[];function zn({type:e="title",event:t=null,injection:n=null,data:i=null,scrollPosition:r=0}={}){if(t&&Sa(t))return;t==null||t.preventDefault(),Ie!=null&&Ie.length&&Hi();const a=Oa(),l={initialScrollPosition:r},s=e==="title"?Ft(uc,{target:a,props:{title:i,...l}}):Ft(Tc,{target:a,props:{participant:i,...l}});Ie.push({type:e,injection:n,data:i,scrollPosition:r,component:s})}function Hi(e=!0){Ie.length&&(Ac(),Un(Ie[Ie.length-1].component,{outro:e}))}function Ec(e=!0){Hi(e),Ie.pop()}function Qt(e=!0){for(Hi(e);Ie.length>0;)Ie.pop()}function Ic(){return Ie[Ie.length-2]||null}function Pc(){if(Ie.length<2)return;Ec();const e=Ie.pop();e&&zn({...e})}function Ac(){const e=`[data-playpilot-link-injections] ${window.innerWidth>ln?".modal":".dialog"}`,t=document.querySelector(e);t!=null&&t.scrollTop&&(Ie[Ie.length-1].scrollPosition=t.scrollTop)}ue(["click"]);ue(["click"]);ue(["click"]);var Cc=I("<div> </div>"),jc=I('<img alt="" class="svelte-g2rhk0">'),Lc=I('<div class="content svelte-g2rhk0" data-playpilot-link-injections-title=""><div class="header svelte-g2rhk0"><div class="poster svelte-g2rhk0"><!></div> <div class="heading svelte-g2rhk0" id="title"> </div> <div class="info svelte-g2rhk0"><div class="imdb svelte-g2rhk0"><!> </div> <!> <div> </div> <div class="capitalize svelte-g2rhk0"> </div> <!></div></div> <div class="main"><!> <!> <!></div></div> <div class="background svelte-g2rhk0"><!></div>',1);function Ca(e,t){re(t,!0);const n=B(t,"small",3,!1);let i=W(!1),r=W(!1),a=W(!1);var l=Lc(),s=Q(l),u=w(s),c=w(u),d=w(c);Aa(d,{get title(){return t.title},onload:()=>j(i,!0)});var f=x(c,2),_=w(f);rt(f,(V,U)=>me==null?void 0:me(V,U),()=>2);var h=x(f,2),g=w(h),v=w(g);Oi(v,{});var k=x(v),y=x(g,2);hs(y,{get genres(){return t.title.genres}});var b=x(y,2),A=w(b),M=x(b,2),S=w(M);q(()=>K(S,xe(`Type: ${t.title.type}`)));var E=x(M,2);{var z=V=>{var U=Cc(),C=w(U);q(()=>K(C,`${t.title.length??""} ${xe("Minutes")??""}`)),p(V,U)};D(E,V=>{!n()&&t.title.length&&V(z)})}var L=x(u,2),T=w(L);Es(T,{get playlinks(){return t.title.providers},get title(){return t.title}});var O=x(T,2);{var H=V=>{js(V,{get text(){return t.title.description},get blurb(){return t.title.blurb}})};D(O,V=>{n()||V(H)})}var F=x(O,2);D(F,V=>{});var P=x(s,2),N=w(P);ia(N,()=>o(a),V=>{var U=jc();q(()=>ee(U,"src",Yt(o(a)?t.title.standing_poster:t.title.medium_poster))),q(()=>{le(U,"loaded",o(r)),le(U,"blur",o(a))}),ve("load",U,()=>j(r,!0)),ve("error",U,()=>j(a,!0)),p(V,U)}),q(()=>{le(s,"small",n()),le(c,"loaded",o(i)),le(f,"truncate",n()),K(_,t.title.title),K(k,` ${t.title.imdb_score??""}`),K(A,t.title.year)}),p(e,l),ae()}var Mc=I('<div class="title-popover svelte-d86q0q" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function qc(e,t){re(t,!0);const n=d=>{var f=ge(),_=Q(f);{var h=g=>{Ia(g,{campaign:r})};D(_,g=>{r&&g(h)})}p(d,f)},i=d=>{var f=ge(),_=Q(f);{var h=g=>{Pa(g,{campaign:a,compact:!0})};D(_,g=>{a&&g(h)})}p(d,f)},r=sn("top_scroll"),a=sn("card");let l=W(null);he(_e.TitlePopoverView,t.title),tt(()=>{s();const d=Date.now();return()=>he(_e.TitlePopoverClose,t.title,{time_spent:Date.now()-d})});function s(){const d=t.event.target;if(!(d!=null&&d.getClientRects))return;const f=Array.from(d.getClientRects()),h=f.map(v=>v.x).map(v=>Math.abs(v-t.event.clientX)),g=f[h.indexOf(Math.min(...h))];o(l).style.top=g.top+window.scrollY+"px",o(l).style.left=g.left+window.scrollX+"px",o(l).style.height=g.height+"px"}var u=Mc(),c=w(u);cs(c,{append:a?i:null,bubble:r?n:null,children:(d,f)=>{Ca(d,{get title(){return t.title},small:!0})},$$slots:{default:!0}}),ht(u,d=>j(l,d),()=>o(l)),p(e,u),ae()}var Nc=e=>e.stopPropagation(),Dc=(e,t,n,i)=>t(e,o(n).title_details,o(i)),Oc=I(' <span class="svelte-pfvkex"><button class="svelte-pfvkex"> </button></span>',1),Rc=(e,t,n,i)=>t(o(n).title_details,i()),Hc=I('<!> <a target="_blank"> </a>',1),Fc=I(" <!>.",1),Bc=I("<!> <br>",1),Vc=I(" <br>",1),Uc=I('<span class="svelte-pfvkex"><!></span>'),Wc=I('<p class="svelte-pfvkex"></p>');function zc(e,t){re(t,!0);const n=B(t,"onclickmodal",3,()=>null);function i(u,c){he(_e.AfterArticlePlaylinkClick,u,{playlink:c})}function r(u,c,d){he(_e.AfterArticleModalButtonClick,c),n()(u,d)}var a=ge(),l=Q(a);{var s=u=>{var c=Wc();Oe(c,21,()=>t.linkInjections,Ge,(d,f)=>{var _=Uc();const h=R(()=>{const{key:b,title:A,title_details:M,after_article_style:S}=o(f);return{key:b,title:A,title_details:M,after_article_style:S}}),g=R(()=>{var b;return((b=o(h).title_details)==null?void 0:b.providers)||[]});var v=w(_);{var k=b=>{var A=Bc(),M=Q(A);{var S=z=>{var L=Oc(),T=Q(L);q(()=>K(T,`"${o(h).title??""}" ${xe("Is Available To Stream")??""} `));var O=x(T);O.__click=[Nc];var H=w(O);H.__click=[Dc,r,h,f];var F=w(H);q(()=>K(F,xe("View Streaming Options"))),p(z,L)},E=z=>{var L=Fc(),T=Q(L);q(()=>K(T,`"${o(h).title??""}" ${xe("Is Available To Stream On")??""} `));var O=x(T);Oe(O,17,()=>o(g),Ge,(H,F,P)=>{let N=()=>o(F).name,V=()=>o(F).url;var U=Hc(),C=Q(U);{var Y=de=>{var oe=Ae();q(()=>K(oe,P===o(g).length-1?`, ${xe("And")}`:",")),p(de,oe)};D(C,de=>{P&&de(Y)})}var Z=x(C,2);Z.__click=[Rc,i,h,N];var te=w(Z);q(()=>{ee(Z,"href",V()),K(te,N())}),p(H,U)}),p(z,L)};D(M,z=>{o(h).after_article_style==="modal_button"?z(S):z(E,!1)})}p(b,A)},y=b=>{var A=Vc(),M=Q(A);q(()=>K(M,`"${o(h).title??""}" ${xe("Title Unavailable Suffix")??""} `)),p(b,A)};D(v,b=>{o(g).length?b(k):b(y,!1)})}q(()=>ee(_,"data-playpilot-injection-key",o(h).key)),p(d,_)}),p(u,c)};D(l,u=>{t.linkInjections.length&&u(s)})}p(e,a),ae()}ue(["click"]);function Kc(e,t,n){return e.filter(i=>n.every(r=>i[r]===t[r])).length}function Yc(e,t){return t.some(n=>e>=n.start&&e<n.end)}function Zc(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}function Fi(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||""}function _r(e,t,n=[]){var a,l;const i=document.createTreeWalker(t);let r;for(;(r=i.nextNode())&&!((a=r.nodeValue)!=null&&a.includes(e)&&!n.includes(((l=r.parentNode)==null?void 0:l.nodeName)||"")););return r}function hr(e){const t=e.parentNode;return t?t.nodeName==="A"||!!t.closest("a"):!1}function Gc(e,t,n,i){const r=Zc(t),a=Fi(t),l=e.slice(0,i),s=e.slice(i),u=/[-/\\^$*+?.()|[\]{}]/g,c=new RegExp(`${a.replace(u,"\\$&")}|${r.replace(u,"\\$&")}`),d=s.replace(c,n);return l+d}function Jc(e,t,n,i){return e.substring(0,n)+t+e.substring(i)}function Be(e){return Fi(e).toLowerCase().replace(/\s+/g,"")}function ja(e,t,n){const r=e.indexOf(t),a=Math.floor((n-t.length)/2);let l=Math.max(0,r-a),s=l+n;s>e.length&&(s=e.length,l=Math.max(0,s-n));let u=e.slice(l,s).trim();return l>0&&(u="…"+u),s<e.length&&(u+="…"),u}function Xc(e,t,n){const i=e.nodeType===Node.TEXT_NODE&&e.parentNode?e.parentElement:e;if(!i||!e.textContent)return{before:"",after:""};const r=i.innerText.indexOf(e.textContent),a=gr(i.innerText.slice(0,t+r)),l=i.innerText.slice(n+r),s=gr(mr(a,2)),u=mr(l,2);return{before:s,after:u}}function gr(e){return e.split("").reverse().join("")}function mr(e,t=1){const n=e.match(/[^\s]+/g);return n?n.slice(0,t).join(" ").replace(/[.,!?;:]+$/u,""):""}function Qc(e,t){let n=0,i=0;for(;(i=e.indexOf(t,i))!==-1;)n++,i+=t.length;return n}function $c(e,t,n){const i=[];let r=0;for(;r<=e.length;){const a=t?e.indexOf(t,r):r;if(a===-1&&t)break;const l=t?a+t.length:a,s=n?e.indexOf(n,l):e.length;if(n&&s===-1)break;const u=e.slice(l,s);i.push({match:u,index:l}),r=n?s+n.length:e.length+1}return i}function eu(e,t,n,i){const a=$c(e,n,i).filter(({match:s})=>Fi(s).includes(t));return a.length?a.reduce((s,u)=>!s||u.match.length<s.match.length?u:s):null}function tu(e){var t,n;return{leadingSpaces:((t=e.match(/^\s*/))==null?void 0:t[0].length)||0,trailingSpaces:((n=e.match(/\s*$/))==null?void 0:n[0].length)||0}}function nu(e,t,n=0){const i=t.innerHTML,r=[],a=iu(t);let l=i.indexOf(e);for(;l!==-1;)Yc(l,a)&&r.push(l),l=i.indexOf(e,l+e.length);return r[n]??-1}function iu(e){const t=[],n=e.innerHTML;let i=!1,r=!1,a=!1,l=0;for(let s=0;s<n.length;s++){const u=n[s];if(!r&&!i&&u==="<"){i=!0,a&&(t.push({start:l,end:s}),a=!1);continue}if(i&&u==='"'&&(r=!r),i&&!r&&u===">"){i=!1;continue}!i&&!r&&!a&&(l=s,a=!0)}return!t.length&&e.textContent.length&&t.push({start:l,end:e.innerHTML.length}),t}function ru(e,t){if(!document.startViewTransition||!t){e();return}document.startViewTransition(()=>{const n=document.querySelector("[data-view-transition-old]");if(!n)return;const i=window.getComputedStyle(n).getPropertyValue("view-transition-name");n.style.viewTransitionName="none",e();const r=document.querySelector("[data-view-transition-new]");r&&(r.style.viewTransitionName=i)})}const wt="data-playpilot-injection-key",Rt=`[${wt}]`,$t=typeof window<"u"?new IntersectionObserver(uu):null;let Mn=null,bt=null,en=null;function Bi(e,t=""){const n=[],i=[e];for(;i.length>0;){const r=i.pop();if(n.includes(r)||t&&r.matches(t)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|H1)$/.test(r.tagName)||r.offsetWidth<=1)continue;const a=Array.from(r.childNodes).some(u=>{var c;return u.nodeType===Node.TEXT_NODE&&((c=u.nodeValue)==null?void 0:c.trim())!==""});if(a&&r.tagName==="LI"){const u=r.closest("ul, ol");u&&!n.includes(u)&&n.push(u);continue}const l=r.tagName==="P"&&!!r.textContent;if(a||l){n.push(r);continue}const s=Array.from(r.children);for(let u=s.length-1;u>=0;u--)i.push(s[u])}return n}function Bt(){var t;const e=(t=window.PlayPilotLinkInjections)==null?void 0:t.selector;if(e){const n=e.replace(/(:)/g,"\\$1"),i=document.querySelector(n);if(i)return i}return document.querySelector("article")||document.querySelector("main")||document.body}function La(e){return e.map(t=>t.innerText).join(`
|
|
9
|
+
Curabitur maximus dui sed risus placerat pharetra vitae ut orci. Proin sodales enim a elit euismod, a varius sem suscipit. Vivamus eu magna cursus, fringilla est in, mollis nunc. Mauris fringilla eleifend nibh, eget auctor lectus bibendum non. Praesent sed elit ipsum. Donec nunc dolor, sagittis hendrerit gravida et, lacinia sed metus. Morbi tempus mi massa. In hac habitasse platea dictumst. Suspendisse aliquet tincidunt lectus ut elementum.`})),i=B(t,"initialScrollPosition",3,0);let r=W(0);Ri(e,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",children:(a,l)=>{Sc(a,{get participant(){return n()}})},$$slots:{default:!0}}),va("innerWidth",a=>j(r,$(a)))}const Ie=[];function zn({type:e="title",event:t=null,injection:n=null,data:i=null,scrollPosition:r=0}={}){if(t&&Sa(t))return;t==null||t.preventDefault(),Ie!=null&&Ie.length&&Hi();const a=Oa(),l={initialScrollPosition:r},s=e==="title"?Ft(uc,{target:a,props:{title:i,...l}}):Ft(Tc,{target:a,props:{participant:i,...l}});Ie.push({type:e,injection:n,data:i,scrollPosition:r,component:s})}function Hi(e=!0){Ie.length&&(Ac(),Un(Ie[Ie.length-1].component,{outro:e}))}function Ec(e=!0){Hi(e),Ie.pop()}function Qt(e=!0){for(Hi(e);Ie.length>0;)Ie.pop()}function Ic(){return Ie[Ie.length-2]||null}function Pc(){if(Ie.length<2)return;Ec();const e=Ie.pop();e&&zn({...e})}function Ac(){const e=`[data-playpilot-link-injections] ${window.innerWidth>ln?".modal":".dialog"}`,t=document.querySelector(e);t!=null&&t.scrollTop&&(Ie[Ie.length-1].scrollPosition=t.scrollTop)}ue(["click"]);ue(["click"]);ue(["click"]);var Cc=I("<div> </div>"),jc=I('<img alt="" class="svelte-g2rhk0">'),Lc=I('<div class="content svelte-g2rhk0" data-playpilot-link-injections-title=""><div class="header svelte-g2rhk0"><div class="poster svelte-g2rhk0"><!></div> <div class="heading svelte-g2rhk0" id="title"> </div> <div class="info svelte-g2rhk0"><div class="imdb svelte-g2rhk0"><!> </div> <!> <div> </div> <div class="capitalize svelte-g2rhk0"> </div> <!></div></div> <div class="main"><!> <!> <!></div></div> <div class="background svelte-g2rhk0"><!></div>',1);function Ca(e,t){re(t,!0);const n=B(t,"small",3,!1);let i=W(!1),r=W(!1),a=W(!1);var l=Lc(),s=Q(l),u=w(s),c=w(u),d=w(c);Aa(d,{get title(){return t.title},onload:()=>j(i,!0)});var f=x(c,2),_=w(f);rt(f,(V,U)=>me==null?void 0:me(V,U),()=>2);var h=x(f,2),g=w(h),v=w(g);Oi(v,{});var k=x(v),y=x(g,2);hs(y,{get genres(){return t.title.genres}});var b=x(y,2),A=w(b),M=x(b,2),S=w(M);q(()=>K(S,xe(`Type: ${t.title.type}`)));var E=x(M,2);{var z=V=>{var U=Cc(),C=w(U);q(()=>K(C,`${t.title.length??""} ${xe("Minutes")??""}`)),p(V,U)};D(E,V=>{!n()&&t.title.length&&V(z)})}var L=x(u,2),T=w(L);Es(T,{get playlinks(){return t.title.providers},get title(){return t.title}});var O=x(T,2);{var H=V=>{js(V,{get text(){return t.title.description},get blurb(){return t.title.blurb}})};D(O,V=>{!n()&&t.title.description&&V(H)})}var F=x(O,2);D(F,V=>{});var P=x(s,2),N=w(P);ia(N,()=>o(a),V=>{var U=jc();q(()=>ee(U,"src",Yt(o(a)?t.title.standing_poster:t.title.medium_poster))),q(()=>{le(U,"loaded",o(r)),le(U,"blur",o(a))}),ve("load",U,()=>j(r,!0)),ve("error",U,()=>j(a,!0)),p(V,U)}),q(()=>{le(s,"small",n()),le(c,"loaded",o(i)),le(f,"truncate",n()),K(_,t.title.title),K(k,` ${t.title.imdb_score??""}`),K(A,t.title.year)}),p(e,l),ae()}var Mc=I('<div class="title-popover svelte-d86q0q" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function qc(e,t){re(t,!0);const n=d=>{var f=ge(),_=Q(f);{var h=g=>{Ia(g,{campaign:r})};D(_,g=>{r&&g(h)})}p(d,f)},i=d=>{var f=ge(),_=Q(f);{var h=g=>{Pa(g,{campaign:a,compact:!0})};D(_,g=>{a&&g(h)})}p(d,f)},r=sn("top_scroll"),a=sn("card");let l=W(null);he(_e.TitlePopoverView,t.title),tt(()=>{s();const d=Date.now();return()=>he(_e.TitlePopoverClose,t.title,{time_spent:Date.now()-d})});function s(){const d=t.event.target;if(!(d!=null&&d.getClientRects))return;const f=Array.from(d.getClientRects()),h=f.map(v=>v.x).map(v=>Math.abs(v-t.event.clientX)),g=f[h.indexOf(Math.min(...h))];o(l).style.top=g.top+window.scrollY+"px",o(l).style.left=g.left+window.scrollX+"px",o(l).style.height=g.height+"px"}var u=Mc(),c=w(u);cs(c,{append:a?i:null,bubble:r?n:null,children:(d,f)=>{Ca(d,{get title(){return t.title},small:!0})},$$slots:{default:!0}}),ht(u,d=>j(l,d),()=>o(l)),p(e,u),ae()}var Nc=e=>e.stopPropagation(),Dc=(e,t,n,i)=>t(e,o(n).title_details,o(i)),Oc=I(' <span class="svelte-pfvkex"><button class="svelte-pfvkex"> </button></span>',1),Rc=(e,t,n,i)=>t(o(n).title_details,i()),Hc=I('<!> <a target="_blank"> </a>',1),Fc=I(" <!>.",1),Bc=I("<!> <br>",1),Vc=I(" <br>",1),Uc=I('<span class="svelte-pfvkex"><!></span>'),Wc=I('<p class="svelte-pfvkex"></p>');function zc(e,t){re(t,!0);const n=B(t,"onclickmodal",3,()=>null);function i(u,c){he(_e.AfterArticlePlaylinkClick,u,{playlink:c})}function r(u,c,d){he(_e.AfterArticleModalButtonClick,c),n()(u,d)}var a=ge(),l=Q(a);{var s=u=>{var c=Wc();Oe(c,21,()=>t.linkInjections,Ge,(d,f)=>{var _=Uc();const h=R(()=>{const{key:b,title:A,title_details:M,after_article_style:S}=o(f);return{key:b,title:A,title_details:M,after_article_style:S}}),g=R(()=>{var b;return((b=o(h).title_details)==null?void 0:b.providers)||[]});var v=w(_);{var k=b=>{var A=Bc(),M=Q(A);{var S=z=>{var L=Oc(),T=Q(L);q(()=>K(T,`"${o(h).title??""}" ${xe("Is Available To Stream")??""} `));var O=x(T);O.__click=[Nc];var H=w(O);H.__click=[Dc,r,h,f];var F=w(H);q(()=>K(F,xe("View Streaming Options"))),p(z,L)},E=z=>{var L=Fc(),T=Q(L);q(()=>K(T,`"${o(h).title??""}" ${xe("Is Available To Stream On")??""} `));var O=x(T);Oe(O,17,()=>o(g),Ge,(H,F,P)=>{let N=()=>o(F).name,V=()=>o(F).url;var U=Hc(),C=Q(U);{var Y=de=>{var oe=Ae();q(()=>K(oe,P===o(g).length-1?`, ${xe("And")}`:",")),p(de,oe)};D(C,de=>{P&&de(Y)})}var Z=x(C,2);Z.__click=[Rc,i,h,N];var te=w(Z);q(()=>{ee(Z,"href",V()),K(te,N())}),p(H,U)}),p(z,L)};D(M,z=>{o(h).after_article_style==="modal_button"?z(S):z(E,!1)})}p(b,A)},y=b=>{var A=Vc(),M=Q(A);q(()=>K(M,`"${o(h).title??""}" ${xe("Title Unavailable Suffix")??""} `)),p(b,A)};D(v,b=>{o(g).length?b(k):b(y,!1)})}q(()=>ee(_,"data-playpilot-injection-key",o(h).key)),p(d,_)}),p(u,c)};D(l,u=>{t.linkInjections.length&&u(s)})}p(e,a),ae()}ue(["click"]);function Kc(e,t,n){return e.filter(i=>n.every(r=>i[r]===t[r])).length}function Yc(e,t){return t.some(n=>e>=n.start&&e<n.end)}function Zc(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}function Fi(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||""}function _r(e,t,n=[]){var a,l;const i=document.createTreeWalker(t);let r;for(;(r=i.nextNode())&&!((a=r.nodeValue)!=null&&a.includes(e)&&!n.includes(((l=r.parentNode)==null?void 0:l.nodeName)||"")););return r}function hr(e){const t=e.parentNode;return t?t.nodeName==="A"||!!t.closest("a"):!1}function Gc(e,t,n,i){const r=Zc(t),a=Fi(t),l=e.slice(0,i),s=e.slice(i),u=/[-/\\^$*+?.()|[\]{}]/g,c=new RegExp(`${a.replace(u,"\\$&")}|${r.replace(u,"\\$&")}`),d=s.replace(c,n);return l+d}function Jc(e,t,n,i){return e.substring(0,n)+t+e.substring(i)}function Be(e){return Fi(e).toLowerCase().replace(/\s+/g,"")}function ja(e,t,n){const r=e.indexOf(t),a=Math.floor((n-t.length)/2);let l=Math.max(0,r-a),s=l+n;s>e.length&&(s=e.length,l=Math.max(0,s-n));let u=e.slice(l,s).trim();return l>0&&(u="…"+u),s<e.length&&(u+="…"),u}function Xc(e,t,n){const i=e.nodeType===Node.TEXT_NODE&&e.parentNode?e.parentElement:e;if(!i||!e.textContent)return{before:"",after:""};const r=i.innerText.indexOf(e.textContent),a=gr(i.innerText.slice(0,t+r)),l=i.innerText.slice(n+r),s=gr(mr(a,2)),u=mr(l,2);return{before:s,after:u}}function gr(e){return e.split("").reverse().join("")}function mr(e,t=1){const n=e.match(/[^\s]+/g);return n?n.slice(0,t).join(" ").replace(/[.,!?;:]+$/u,""):""}function Qc(e,t){let n=0,i=0;for(;(i=e.indexOf(t,i))!==-1;)n++,i+=t.length;return n}function $c(e,t,n){const i=[];let r=0;for(;r<=e.length;){const a=t?e.indexOf(t,r):r;if(a===-1&&t)break;const l=t?a+t.length:a,s=n?e.indexOf(n,l):e.length;if(n&&s===-1)break;const u=e.slice(l,s);i.push({match:u,index:l}),r=n?s+n.length:e.length+1}return i}function eu(e,t,n,i){const a=$c(e,n,i).filter(({match:s})=>Fi(s).includes(t));return a.length?a.reduce((s,u)=>!s||u.match.length<s.match.length?u:s):null}function tu(e){var t,n;return{leadingSpaces:((t=e.match(/^\s*/))==null?void 0:t[0].length)||0,trailingSpaces:((n=e.match(/\s*$/))==null?void 0:n[0].length)||0}}function nu(e,t,n=0){const i=t.innerHTML,r=[],a=iu(t);let l=i.indexOf(e);for(;l!==-1;)Yc(l,a)&&r.push(l),l=i.indexOf(e,l+e.length);return r[n]??-1}function iu(e){const t=[],n=e.innerHTML;let i=!1,r=!1,a=!1,l=0;for(let s=0;s<n.length;s++){const u=n[s];if(!r&&!i&&u==="<"){i=!0,a&&(t.push({start:l,end:s}),a=!1);continue}if(i&&u==='"'&&(r=!r),i&&!r&&u===">"){i=!1;continue}!i&&!r&&!a&&(l=s,a=!0)}return!t.length&&e.textContent.length&&t.push({start:l,end:e.innerHTML.length}),t}function ru(e,t){if(!document.startViewTransition||!t){e();return}document.startViewTransition(()=>{const n=document.querySelector("[data-view-transition-old]");if(!n)return;const i=window.getComputedStyle(n).getPropertyValue("view-transition-name");n.style.viewTransitionName="none",e();const r=document.querySelector("[data-view-transition-new]");r&&(r.style.viewTransitionName=i)})}const wt="data-playpilot-injection-key",Rt=`[${wt}]`,$t=typeof window<"u"?new IntersectionObserver(uu):null;let Mn=null,bt=null,en=null;function Bi(e,t=""){const n=[],i=[e];for(;i.length>0;){const r=i.pop();if(n.includes(r)||t&&r.matches(t)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|H1)$/.test(r.tagName)||r.offsetWidth<=1)continue;const a=Array.from(r.childNodes).some(u=>{var c;return u.nodeType===Node.TEXT_NODE&&((c=u.nodeValue)==null?void 0:c.trim())!==""});if(a&&r.tagName==="LI"){const u=r.closest("ul, ol");u&&!n.includes(u)&&n.push(u);continue}const l=r.tagName==="P"&&!!r.textContent;if(a||l){n.push(r);continue}const s=Array.from(r.children);for(let u=s.length-1;u>=0;u--)i.push(s[u])}return n}function Bt(){var t;const e=(t=window.PlayPilotLinkInjections)==null?void 0:t.selector;if(e){const n=e.replace(/(:)/g,"\\$1"),i=document.querySelector(n);if(i)return i}return document.querySelector("article")||document.querySelector("main")||document.body}function La(e){return e.map(t=>t.innerText).join(`
|
|
10
10
|
|
|
11
11
|
`)}function au(e,t={aiInjections:[],manualInjections:[]}){Vi(),hu();const n=gu(t);if(!n)return[];const i=Be(e.map(c=>c.innerText).join(" ")),r=mu(n),a=r.filter(c=>i.includes(Be(c.sentence))),l={};let s=-1;for(const c of a){s++;const d=e.findIndex(M=>Be(M.innerText).includes(Be(c.sentence))),f=e[d];if(!f)continue;const _=_r(c.title,f,["A"]);if(!(_!=null&&_.nodeValue)||hr(_)){const M=_r(c.title,f);if(M&&hr(M)){l[c.key]="Given text is already inside of a link.";continue}}const{injectionElement:h,linkElement:g}=ou(c),{phrase_before:v,phrase_after:k}=c;let y=-1,b=!1;if(Qc(f.innerHTML,c.title)===1&&(y=f.innerHTML.indexOf(c.title)),y===-1&&(v||k)){const M=[v,c.title,k].filter(Boolean).join(" ");if(y=f.innerHTML.indexOf(M),y===-1){const S=eu(f.innerHTML,c.title,v||"",k||"");if(S){const{leadingSpaces:E,trailingSpaces:z}=tu(S.match);g.innerHTML=S.match.trim();const L=S.index+E,T=S.index+S.match.length-z;f.innerHTML=Jc(f.innerHTML,h.outerHTML,L,T),y=S.index,b=!0}}}if(y===-1&&(_!=null&&_.nodeValue)){const M=f.innerHTML.indexOf(_.nodeValue),S=f.innerHTML.indexOf(c.sentence),E=Kc(a.slice(0,s+1),c,["title","sentence"])-1,z=nu(_.nodeValue,f,E);y=Math.max(M,z,S,0)}y!==-1&&(b||lu(f.innerHTML,c.title,f,h,y)||(l[c.key]="Injection would have lead to broken HTML."))}cu(r),su();const u=pu(n);return u.length&&vu(e,u),n.filter(c=>c.title_details).map((c,d)=>{const f=c.duplicate??(!c.manual&&yu(c,d,n)),_=document.querySelector(`[${wt}="${c.key}"]`),h=Kn(c)&&!c.inactive&&!c.after_article&&!_,g=!!e.find(k=>Be(k.innerText).includes(Be(c.sentence))),v=h?l[c.key]||(g?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...c,inactive:c.inactive??!1,duplicate:f,failed:h,failed_message:v}})}function ou(e){const t=document.createElement("span");t.dataset.playpilotInjectionKey=e.key;const n=document.createElement("a");return n.innerText=e.title,n.href=e.playpilot_url,n.target="_blank",n.rel="noopener nofollow noreferrer",t.insertAdjacentElement("beforeend",n),{injectionElement:t,linkElement:n}}function lu(e,t,n,i,r){const a=document.createElement("div");a.innerHTML=e;const l=Array.from(a.querySelectorAll("a")).filter(u=>u.innerText).length;return a.innerHTML=Gc(e,t,i.outerHTML,r),Array.from(a.querySelectorAll("a")).filter(u=>u.innerText).length!=l+1?!1:(n.innerHTML=a.innerHTML,!0)}function su(){const e=Array.from(document.querySelectorAll(`${Rt} a`)),t=["--playpilot-injection-text-color","--playpilot-injection-text-color-hover","--playpilot-injection-font-weight","--playpilot-injection-font-weight-headings","--playpilot-injection-text-decoration","--playpilot-injection-text-decoration-hover","--playpilot-injection-background-color","--playpilot-injection-background-color-hover"];e.forEach(n=>{t.forEach(i=>{getComputedStyle(n).getPropertyValue(i)&&(n.dataset.usedCssVariables=`${n.dataset.usedCssVariables||""} ${i}`)})})}function cu(e){window.addEventListener("click",n=>{if(Sa(n))return;let i=n.target;if(!i||(i.hasAttribute(wt)||(i=i.closest(Rt)),!i))return;const r=i.getAttribute(wt);if(!r)return;const a=e.find(l=>r===l.key);a&&(n.preventDefault(),ru(()=>{qn(!1),zn({event:n,injection:a,data:a.title_details})},!qi.current&&window.innerWidth>=ln&&!window.matchMedia("(pointer: coarse)").matches))}),window.addEventListener("mousemove",n=>{if(!bt)return;const i=n.target;i.hasAttribute("data-playpilot-title-popover")||i.closest("[data-playpilot-title-popover]")||i.hasAttribute(wt)||i.closest(Rt)||qn()}),Array.from(document.querySelectorAll(Rt)).forEach(n=>{const i=n.dataset.playpilotInjectionKey,r=e.find(a=>i===a.key);r&&(n.addEventListener("mouseenter",a=>{bt||du(a,r)}),n.addEventListener("mouseleave",()=>Mn=null),$t.observe(n))})}function uu(e){Mi()||e.forEach(t=>{t.isIntersecting&&(he(_e.InjectionVisible),$t.unobserve(t.target))})}function du(e,t){if(window.matchMedia("(pointer: coarse)").matches)return;bt&&qn();const n=e.currentTarget;Mn=n,setTimeout(()=>{Mn===n&&(bt=Ft(qc,{target:Oa(),props:{event:e,title:t.title_details}}))},100)}function qn(e=!0){if(!bt){document.querySelectorAll("[data-playpilot-title-popover]").forEach(t=>t.remove());return}Un(bt,{outro:e}),Mn=null,bt=null}function vu(e,t){var l,s;if(en||!t.length)return;const n=document.createElement("div"),i=(l=window.PlayPilotLinkInjections)==null?void 0:l.after_article_selector,r=(i?document.querySelector(i):null)||e[e.length-1],a=((s=window.PlayPilotLinkInjections)==null?void 0:s.after_article_insert_position)||"afterend";n.dataset.playpilotAfterArticlePlaylinks="true",r.insertAdjacentElement(a,n),en=Ft(zc,{target:n,props:{linkInjections:t,onclickmodal:(u,c)=>zn({event:u,injection:c,data:c.title_details})}})}function fu(){var e;en&&(Un(en),(e=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||e.remove(),en=null)}function Vi(){document.querySelectorAll(Rt).forEach(t=>_u(t.getAttribute(wt)||"")),fu(),Qt(!1),qn(!1),$t==null||$t.disconnect()}function _u(e){var i;const t=document.querySelector(`[${wt}="${e}"]`);if(!t)return;const n=(i=t.querySelector("a"))==null?void 0:i.innerHTML;t.outerHTML=n||""}function hu(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(t=>{t.closest(Rt)||/\/movie|show\//.test(t.href)&&(t.outerHTML=t.innerHTML)})}function gu({aiInjections:e,manualInjections:t}){return[...t.map(n=>({...n,manual:!0})),...e]}function Ma(e){return{aiInjections:e.filter(t=>!t.manual),manualInjections:e.filter(t=>t.manual)}}function qa(e){return!e.inactive&&!e.removed&&!e.duplicate&&!!e.title_details&&Kn(e)}function Kn(e){return e.in_text||e.in_text===void 0?!0:!!e.after_article}function mu(e){return Na(e).filter(t=>t.in_text!==!1&&qa(t))}function pu(e){return Na(e).filter(t=>t.after_article===!0&&qa(t))}function Na(e){return e.filter(t=>t.removed||t.inactive?!1:t.manual&&!t.removed&&!t.inactive?!0:!e.some(n=>n.manual&&(n.removed||n.inactive)&&Da(n,t)))}function yu(e,t,n){return n.some((i,r)=>t!==r&&i.manual&&Da(i,e))}function Da(e,t){return e.title===t.title&&Be(e.sentence)===Be(t.sentence)}function Oa(){return document.querySelector("[data-playpilot-link-injections]")||document.body}function Ui(){const e=Bt();return{content_heading:ku(e),content_modified_time:wu(e),content_published_time:bu(e)}}function ku(e){const t=e.querySelector("h1")||document.querySelector("h1");return(t==null?void 0:t.innerText.trim())||null}function wu(e){const t=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||e.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,n=(t==null?void 0:t.getAttribute("content"))||(t==null?void 0:t.getAttribute("datetime"))||(t==null?void 0:t.innerText);return n?Wi(n):null}function bu(e){const t=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||e.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||e.querySelector("time")||document.querySelector("time")||e.querySelector("[datetime]")||document.querySelector("[datetime]")||null,n=(t==null?void 0:t.getAttribute("content"))||(t==null?void 0:t.getAttribute("datetime"))||(t==null?void 0:t.innerText);return n?Wi(n):null}function Wi(e){try{return new Date(e).toISOString()}catch{return null}}let Qn=null;async function yn(e,{url:t=Ci(),hash:n=Wl(e||""),params:i={}}={}){const r=new Headers({"Content-Type":"application/json"}),a=kn(),l=Mi()?await ma():!1,s=ya();if(!a)throw new Error("No token was provided");i.metadata=Ui(),i.run_ai&&(i.hash=n,i.page_text=e);const u=await fetch(pn+`/external-pages/?api-token=${a}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${s}`,{headers:r,method:"POST",body:JSON.stringify({url:t,...i})});if(!u.ok)throw u;const c=await u.json();return window.PlayPilotLinkInjections.last_successful_fetch=c,c}async function pr(e,{requireCompletedResult:t=!1,runAiWhenRelevant:n=!1,pollInterval:i=3e3,maxTries:r=600,onpoll:a=()=>null}={}){let l=0;Qn&&clearTimeout(Qn);const s=async(u,c)=>{let d;try{if(d=await yn(e),n&&(d=await xu(e,d)),t&&d.ai_enabled&&d.ai_running)throw new Error;d.manual_injections=yr(d.manual_injections||[]),d.ai_injections=yr(d.ai_injections||[]),u(d);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),u();return}d&&a(d),Qn=setTimeout(()=>s(u),i)}};return new Promise(s)}async function xu(e,t){if(!e||!t.ai_enabled||t.ai_running)return t;const n=Ui().content_modified_time,i=t.content_modified_time?Wi(t.content_modified_time):null,r=n&&i===n;return t.ai_last_run&&r?t:await yn(e,{params:{run_ai:!0}})}async function Su(e,t){var l;const n=(l=window.PlayPilotLinkInjections)==null?void 0:l.selector,r=e.filter(s=>s.manual).map(s=>({sid:s.sid,title:s.title,sentence:s.sentence,phrase_before:s.phrase_before,phrase_after:s.phrase_after,playpilot_url:s.playpilot_url,after_article:!!s.after_article,after_article_style:s.after_article_style||null,in_text:s.in_text??!0,inactive:!!s.inactive,removed:!!s.removed}));if(!await yn(t,{params:{private_token:Li(),manual_injections:r,content_text_selector:n}}))throw new Error("saveLinkInjections response was faulty");return e}async function Tu(){const e=new Headers({"Content-Type":"application/json"}),t=kn();if(!t)throw new Error("No token was provided");const n=await fetch(pn+`/domains/config?api-token=${t}`,{headers:e});if(!n.ok)throw n;try{return await n.json()||null}catch{return null}}function yr(e){return e.map(t=>({...t,key:Ra(t.sid)}))}function Ra(e){return e+"-"+pa()}function kn(){var e;return(e=window.PlayPilotLinkInjections)==null?void 0:e.token}function Eu(){const e=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(e)}var Iu=Me('<svg width="8" height="4" viewBox="0 0 8 4" fill="none" class="svelte-by11ix"><path d="M1 0.5L4 3.5L7 0.5" stroke="currentColor" stroke-width="0.9975" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Pu(e,t){const n=B(t,"expanded",3,!1);var i=Iu();q(()=>le(i,"expanded",n())),p(e,i)}var Au=Me('<svg width="24px" height="24px" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="17" r="1" fill="var(--playpilot-warning)"></circle><path d="M12 10L12 14" stroke="var(--playpilot-warning)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.44722 18.1056L10.2111 4.57771C10.9482 3.10361 13.0518 3.10362 13.7889 4.57771L20.5528 18.1056C21.2177 19.4354 20.2507 21 18.7639 21H5.23607C3.7493 21 2.78231 19.4354 3.44722 18.1056Z" stroke="var(--playpilot-warning)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Cu(e){var t=Au();p(e,t)}function ju(e,t,n){t(!t()),n()(t())}var Lu=I('<button class="switch svelte-91s87b"><div class="label svelte-91s87b"><!></div> <div class="track svelte-91s87b"><div class="knob svelte-91s87b"></div></div></button>');function ui(e,t){re(t,!0);let n=B(t,"active",15),i=B(t,"fullwidth",3,!1),r=B(t,"label",3,""),a=B(t,"onclick",3,()=>null);var l=Lu();l.__click=[ju,n,a];var s=w(l),u=w(s);Ue(u,()=>t.children),q(()=>{ee(l,"aria-label",`Toggle ${r()??""} ${(n()?"off":"on")??""}`),le(l,"active",n()),le(l,"fullwidth",i())}),p(e,l),ae()}ue(["click"]);var Mu=I('<input type="text" autocomplete="off" class="svelte-1vrer3i">');function zi(e,t){let n=B(t,"value",15),i=B(t,"label",3,""),r=B(t,"name",3,""),a=B(t,"readonly",3,!1),l=B(t,"oninput",3,()=>null);var s=Mu();s.__input=function(...u){var c;(c=l())==null||c.apply(this,u)},q(()=>{ee(s,"name",r()),ee(s,"aria-label",i()),ee(s,"placeholder",i()),s.readOnly=a()}),xl(s,n),p(e,s)}ue(["input"]);var qu=Me('<path d="M13.5833 13.6667L4.41667 13.6667M5.5 1.5H12.5C13.9001 1.5 14.6002 1.5 15.135 1.77248C15.6054 2.01217 15.9878 2.39462 16.2275 2.86502C16.5 3.3998 16.5 4.09987 16.5 5.5V12.5C16.5 13.9001 16.5 14.6002 16.2275 15.135C15.9878 15.6054 15.6054 15.9878 15.135 16.2275C14.6002 16.5 13.9001 16.5 12.5 16.5H5.5C4.09987 16.5 3.3998 16.5 2.86502 16.2275C2.39462 15.9878 2.01217 15.6054 1.77248 15.135C1.5 14.6002 1.5 13.9001 1.5 12.5V5.5C1.5 4.09987 1.5 3.3998 1.77248 2.86502C2.01217 2.39462 2.39462 2.01217 2.86502 1.77248C3.3998 1.5 4.09987 1.5 5.5 1.5Z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path>'),Nu=Me('<path d="M13.5833 8.58342H4.41667M5.5 1.50009H12.5C13.9001 1.50009 14.6002 1.50009 15.135 1.77258C15.6054 2.01226 15.9878 2.39471 16.2275 2.86512C16.5 3.39989 16.5 4.09996 16.5 5.50009V12.5001C16.5 13.9002 16.5 14.6003 16.2275 15.1351C15.9878 15.6055 15.6054 15.9879 15.135 16.2276C14.6002 16.5001 13.9001 16.5001 12.5 16.5001H5.5C4.09987 16.5001 3.3998 16.5001 2.86502 16.2276C2.39462 15.9879 2.01217 15.6055 1.77248 15.1351C1.5 14.6003 1.5 13.9002 1.5 12.5001V5.50009C1.5 4.09996 1.5 3.39989 1.77248 2.86512C2.01217 2.39471 2.39462 2.01226 2.86502 1.77258C3.3998 1.50009 4.09987 1.50009 5.5 1.50009Z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path>'),Du=Me('<svg width="18" height="18" viewBox="0 0 18 18" fill="none"><!></svg>');function kr(e,t){const n=B(t,"align",3,"bottom");var i=Du(),r=w(i);{var a=s=>{var u=qu();p(s,u)},l=s=>{var u=ge(),c=Q(u);{var d=f=>{var _=Nu();p(f,_)};D(c,f=>{n()==="center"&&f(d)},!0)}p(s,u)};D(r,s=>{n()==="bottom"?s(a):s(l,!1)})}p(e,i)}var Ou=I("<div><!></div>");function Pt(e,t){re(t,!0);const n=B(t,"type",3,"error"),i=B(t,"fixed",3,!1);var r=Ou(),a=w(r);Ue(a,()=>t.children),q(()=>{li(r,`alert ${n()??""} svelte-df5n87`),le(r,"fixed",i())}),p(e,r),ae()}var Ru=I("<!> In-text Playlink",1),Hu=I("<!> Bottom Playlink",1),Fu=I('<div class="alert svelte-1shw34x"><!></div>'),Bu=(e,t)=>t().after_article_style="playlinks",Vu=(e,t)=>t().after_article_style="modal_button",Uu=I('<div><div class="label svelte-1shw34x">Bottom playlinks style</div> <div class="group svelte-1shw34x" role="listbox" tabindex="0" aria-label="Playlink type"><button role="option" id="playlinks-in-text" class="svelte-1shw34x">Playlinks sentence</button> <button role="option" id="playlinks-after-article" class="svelte-1shw34x">Modal button</button> <div class="active-marker svelte-1shw34x"></div></div></div>'),Wu=I('<div class="switches svelte-1shw34x"><!> <!></div> <!> <!>',1);function zu(e,t){re(t,!0);const n=B(t,"linkInjection",7),i=R(()=>n().after_article_style==="modal_button");var r=Wu(),a=Q(r),l=w(a),s=R(()=>n().in_text??!0);ui(l,{fullwidth:!0,get active(){return o(s)},onclick:g=>{n().in_text=g,n().manual=!0},label:"In-text Playlink",children:(g,v)=>{var k=Ru(),y=Q(k);kr(y,{align:"center"}),p(g,k)},$$slots:{default:!0}});var u=x(l,2),c=R(()=>n().after_article??!1);ui(u,{fullwidth:!0,get active(){return o(c)},onclick:g=>{n().after_article=g,n().manual=!0},label:"Bottom Playlink",children:(g,v)=>{var k=Hu(),y=Q(k);kr(y,{align:"bottom"}),p(g,k)},$$slots:{default:!0}});var d=x(a,2);{var f=g=>{var v=Fu(),k=w(v);Pt(k,{type:"warning",children:(y,b)=>{var A=Ae("At least one layout option must be selected for the playlink to be visible.");p(y,A)},$$slots:{default:!0}}),pe(3,v,()=>cn,()=>({duration:200})),p(g,v)};D(d,g=>{Kn(n())||g(f)})}var _=x(d,2);{var h=g=>{var v=Uu(),k=x(w(v),2),y=w(k);y.__click=[Bu,n];var b=x(y,2);b.__click=[Vu,n];var A=x(b,2);q(()=>{ee(k,"aria-activedescendant",`playlinks-${(o(i)?"after-article":"in-text")??""}`),ee(y,"aria-selected",!o(i)||null),le(y,"active",!o(i)),ee(b,"aria-selected",o(i)||null),le(b,"active",o(i)),le(A,"right",o(i))}),pe(3,v,()=>cn,()=>({duration:100})),p(g,v)};D(_,g=>{n().after_article&&g(h)})}p(e,r),ae()}ue(["click"]);var Ku=Me('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.99984 10.8333C10.4601 10.8333 10.8332 10.4602 10.8332 10C10.8332 9.53977 10.4601 9.16668 9.99984 9.16668C9.5396 9.16668 9.1665 9.53977 9.1665 10C9.1665 10.4602 9.5396 10.8333 9.99984 10.8333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 5.00001C10.4601 5.00001 10.8332 4.62691 10.8332 4.16668C10.8332 3.70644 10.4601 3.33334 9.99984 3.33334C9.5396 3.33334 9.1665 3.70644 9.1665 4.16668C9.1665 4.62691 9.5396 5.00001 9.99984 5.00001Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 16.6667C10.4601 16.6667 10.8332 16.2936 10.8332 15.8333C10.8332 15.3731 10.4601 15 9.99984 15C9.5396 15 9.1665 15.3731 9.1665 15.8333C9.1665 16.2936 9.5396 16.6667 9.99984 16.6667Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Yu(e){var t=Ku();p(e,t)}var Zu=(e,t)=>j(t,!o(t)),Gu=I('<div class="content svelte-zpsd2z"><!></div>'),Ju=I('<div class="context-menu svelte-zpsd2z"><button class="svelte-zpsd2z"><!></button> <!></div>');function Xu(e,t){re(t,!0);let n=W(!1),i=W(null);function r(d){var _;const f=d.target;f===o(i)||(_=o(i))!=null&&_.contains(f)||j(n,!1)}var a=Ju();ve("click",ke,r);var l=w(a);l.__click=[Zu,n];var s=w(l);Yu(s),ht(l,d=>j(i,d),()=>o(i));var u=x(l,2);{var c=d=>{var f=Gu(),_=w(f);Ue(_,()=>t.children),pe(1,f,()=>Dt,()=>({duration:150,y:5})),p(d,f)};D(u,d=>{o(n)&&d(c)})}q(()=>{ee(l,"aria-label",t.ariaLabel),ee(l,"aria-expanded",o(n))}),p(e,a),ae()}ue(["click"]);function Qu(e,t,n,i){var r,a;o(t)&&(he(_e.ManualReport,n.linkInjection.title_details,{report_reason:o(t),sid:n.linkInjection.sid,title:n.linkInjection.title,sentence:n.linkInjection.sentence,failed:(r=n.linkInjection.failed)==null?void 0:r.toString(),failed_message:n.linkInjection.failed_message,manual:(a=n.linkInjection.manual)==null?void 0:a.toString()}),j(i,!0),setTimeout(n.onclose,3e3))}var $u=(e,t,n)=>j(t,$(n())),ed=I('<option class="svelte-o5qkco"> </option>'),td=I('<div class="sent svelte-o5qkco">Report has been sent, thank you! Closing window...</div>'),nd=I('<button class="submit svelte-o5qkco">Send report</button>'),id=I('<div class="form svelte-o5qkco"><div class="heading svelte-o5qkco">Report issue</div> <div class="info svelte-o5qkco"><div><strong class="svelte-o5qkco">Title</strong> </div> <div><strong class="svelte-o5qkco">Sentence</strong> </div></div> <label for="reason">What would you like to report?</label> <select id="reason" name="reason" class="svelte-o5qkco"><option class="svelte-o5qkco">Select an issue...</option><!></select> <div><!></div></div>');function rd(e,t){re(t,!0);const n=[{value:"failed_injection",label:"The link failed to appear on the page."},{value:"layout_issue",label:"The link is breaking the layout or formatting of my page."},{value:"wrong_content",label:"The link points to the wrong movie or show."},{value:"inappropriate_title",label:"The link points to an inappropriate movie or show."},{value:"broken_link",label:"The link is broken or leads to an error page."},{value:"other",label:"My issue is not listed, but please have a look regardless."}];let i=W(""),r=W(!1);Ri(e,{get onclose(){return t.onclose},children:(a,l)=>{var s=id(),u=w(s);rt(u,(S,E)=>me==null?void 0:me(S,E),()=>2);var c=x(u,2),d=w(c),f=x(w(d)),_=x(d,2),h=x(w(_));q(()=>K(h,`:
|
|
12
12
|
${ja(t.linkInjection.sentence,t.linkInjection.title,100)??""}`));var g=x(c,4),v=w(g);v.value=((v.__value="")==null,"");var k=x(v);Oe(k,17,()=>n,Ge,(S,E)=>{let z=()=>o(E).value,L=()=>o(E).label;var T=ed(),O={};T.__click=[$u,i,z];var H=w(T);q(()=>{O!==(O=z())&&(T.value=(T.__value=z())==null?"":z()),K(H,L())}),p(S,T)});var y=x(g,2),b=w(y);{var A=S=>{var E=td();pe(1,E,()=>gt,()=>({duration:200})),p(S,E)},M=S=>{var E=nd();E.__click=[Qu,i,t,r],q(()=>E.disabled=!o(i)),p(S,E)};D(b,S=>{o(r)?S(A):S(M,!1)})}q(()=>K(f,`: ${t.linkInjection.title??""}`)),Tl(g,()=>o(i),S=>j(i,S)),p(a,s)},$$slots:{default:!0}}),ae()}ue(["click"]);function ad(e,t,n){requestAnimationFrame(()=>t());const i=e.target;if(["BUTTON","INPUT"].includes(i.nodeName)||i.closest("button")||i.closest("input"))return;const r=n()[0];r&&r.scrollIntoView({behavior:"smooth"})}function od(e,t){const n=Ft(rd,{target:document.body,props:{linkInjection:t(),onclose:()=>Un(n)}})}var ld=(e,t)=>j(t,!o(t)),sd=I('<button class="expand-sentence svelte-lo6h85"> </button>'),cd=I('<button class="context-menu-action svelte-lo6h85">Remove</button> <button class="context-menu-action svelte-lo6h85">Report issue</button>',1),ud=(e,t)=>j(t,!o(t)),dd=I('<div class="warning svelte-lo6h85" aria-label="Invalid playlink settings"><!></div>'),vd=I('<div class="actions svelte-lo6h85"><button class="expand svelte-lo6h85" aria-label="Expand"><!></button> <!> <!></div>'),fd=I('<div class="expanded svelte-lo6h85"><div class="label svelte-lo6h85">Link URL</div> <!> <div class="label offset svelte-lo6h85">Layout options</div> <div class="type-select svelte-lo6h85"><!></div></div>'),_d=I('<div class="item svelte-lo6h85"><div class="header svelte-lo6h85"><img class="poster svelte-lo6h85" alt="" width="32" height="48"> <div class="info svelte-lo6h85"><div class="title svelte-lo6h85"> </div> <div class="sentence svelte-lo6h85"><!> <!></div></div> <div class="context-menu svelte-lo6h85"><!></div></div> <div class="content svelte-lo6h85"><!> <!></div></div>');function hd(e,t){re(t,!0);const n=B(t,"linkInjection",15),i=B(t,"onremove",3,()=>null),r=B(t,"onhighlight",3,()=>null),a=R(()=>n()||{}),l=R(()=>o(a).key),s=R(()=>o(a).sentence),u=R(()=>o(a).title_details),c=R(()=>o(a).failed),d=R(()=>o(a).failed_message),f=R(()=>o(a).inactive),_=R(()=>o(u)),h=R(()=>ja(n().sentence,n().title,60));let g=W(!1),v=W(!1),k=W(!1),y=W(null);tt(()=>{o(c)&&he(_e.InjectionFailed,o(_),{phrase:n().title,sentence:o(s)})});function b(G=!0){M().forEach(fe=>{fe.classList.toggle("playpilot-injection-highlight",G)})}function A(G){let J=G.target,fe=J==null?void 0:J.dataset.playpilotInjectionKey;J&&!fe&&(J=J.closest(`[data-playpilot-injection-key="${o(l)}"]`),fe=J==null?void 0:J.dataset.playpilotInjectionKey),j(k,fe===o(l)),o(y)&&o(k)&&r()(o(y))}function M(){const G=Array.from(document.querySelectorAll(`[data-playpilot-injection-key="${o(l)}"]`));return G.length?G:Bi(Bt()).filter(J=>Be(J.innerText).includes(Be(n().sentence)))||[]}var S=_d();ve("mouseover",ke,A),S.__click=[ad,b,M];var E=w(S),z=w(E);q(()=>ee(z,"src",Yt(o(_).standing_poster)));var L=x(z,2),T=w(L),O=w(T),H=x(T,2),F=w(H);_l(F,()=>(o(v)?o(s):o(h)).replace(n().title,`<em>${n().title}</em>`));var P=x(F,2);{var N=G=>{var J=sd();J.__click=[ld,v];var fe=w(J);q(()=>K(fe,o(v)?"Less":"More")),p(G,J)};D(P,G=>{o(h).length<o(s).length&&G(N)})}var V=x(L,2),U=w(V);Xu(U,{ariaLabel:"More options",children:(G,J)=>{var fe=cd(),we=Q(fe);we.__click=function(...Re){var X;(X=i())==null||X.apply(this,Re)};var qe=x(we,2);qe.__click=[od,n],p(G,fe)},$$slots:{default:!0}});var C=x(E,2),Y=w(C);{var Z=G=>{Pt(G,{children:(J,fe)=>{var we=Ae();q(()=>K(we,o(d))),p(J,we)},$$slots:{default:!0}})},te=G=>{var J=vd(),fe=w(J);fe.__click=[ud,g];var we=w(fe);Pu(we,{get expanded(){return o(g)}});var qe=x(fe,2);{var Re=ye=>{var Ce=dd(),He=w(Ce);Cu(He),pe(3,Ce,()=>gt,()=>({duration:100})),p(ye,Ce)};D(qe,ye=>{Kn(n())||ye(Re)})}var X=x(qe,2),ne=R(()=>o(f)?"Inactive":"Visible"),be=R(()=>!n().inactive);ui(X,{get label(){return o(ne)},get active(){return o(be)},onclick:ye=>{n(n().inactive=!ye,!0),n(n().manual=!0,!0)},children:(ye,Ce)=>{var He=Ae();q(()=>K(He,o(f)?"Inactive":"Visible")),p(ye,He)},$$slots:{default:!0}}),q(()=>ee(fe,"aria-expanded",o(g))),p(G,J)};D(Y,G=>{o(c)?G(Z):G(te,!1)})}var de=x(Y,2);{var oe=G=>{var J=fd(),fe=x(w(J),2);zi(fe,{oninput:()=>n(n().manual=!0,!0),label:"Playlink URL",get value(){return n().playpilot_url},set value(Re){n(n().playpilot_url=Re,!0)}});var we=x(fe,4),qe=w(we);zu(qe,{get linkInjection(){return n()}}),pe(3,J,()=>cn,()=>({duration:100})),p(G,J)};D(de,G=>{o(g)&&G(oe)})}ht(S,G=>j(y,G),()=>o(y)),q(()=>{le(S,"highlighted",o(k)),le(S,"inactive",o(f)),K(O,o(_).title)}),ve("mouseenter",S,()=>b(!0)),ve("mouseleave",S,()=>b(!1)),ve("error",z,({target:G})=>G.src=Ai),pe(6,S,()=>cn,()=>({duration:200})),p(e,S),ae()}ue(["click"]);var gd=I('<button class="drag-handle svelte-19mcc5g" aria-label="Move editor"></button>');function md(e,t){re(t,!0);let n=B(t,"element",7),i=B(t,"position",23,()=>({x:0,y:0})),r=B(t,"limit",19,()=>({x:0,y:0})),a=B(t,"onchange",3,()=>null),l=!1,s={x:0,y:0},u=i();tt(()=>{c(i().x,i().y)});function c(v,k){const y=window.innerWidth,b=window.innerHeight,A=n().clientWidth,M=n().clientHeight;v=Math.min(Math.max(v,r().x),y-A-r().x),k=Math.min(Math.max(k,r().y),b-M-r().y),n().style.right=v+"px",n().style.bottom=Math.max(k,r().y)+"px",i({x:v,y:k}),a()(i())}function d(v){var k,y;return{x:v.pageX||((k=v.touches)==null?void 0:k[0].pageX)||0,y:v.pageY||((y=v.touches)==null?void 0:y[0].pageY)||0}}function f(v){l=!0,s=d(v),u=i()}function _(v){if(!l)return;const k=d(v),y=k.x-s.x,b=k.y-s.y,A=u.x-y,M=u.y-b;c(A,M)}function h(){l&&(l=!1)}var g=gd();ve("mousemove",ke,_),ve("touchmove",ke,_,void 0,!0),ve("mouseup",ke,h),ve("touchend",ke,h),ve("resize",ke,()=>c(i().x,i().y)),g.__mousedown=f,g.__touchstart=f,p(e,g),ae()}ue(["mousedown","touchstart"]);var pd=I('<button class="resize-handle svelte-sxkuxk" aria-label="Move editor"></button>');function yd(e,t){re(t,!0);let n=B(t,"element",7),i=B(t,"height",7,200),r=B(t,"onchange",3,()=>null);const a=16;let l=!1,s=0,u=i();tt(()=>{i()&&c(i())});function c(v){const k=window.getComputedStyle(n()).minHeight||"0",y=Math.max(parseInt(k),Math.min(v,h()));n().style.height=`${y}px`,i(y),r()(y)}function d(v){var k,y;l=!0,s=v.pageY||((y=(k=v.touches)==null?void 0:k[0])==null?void 0:y.pageY)||0,u=n().clientHeight}function f(v){var A,M;if(!l)return;const k=v.pageY||((M=(A=v.touches)==null?void 0:A[0])==null?void 0:M.pageY)||0,y=s-k,b=u+y;c(b)}function _(){l=!1}function h(){const v=window.innerHeight-n().getBoundingClientRect().bottom;return Math.max(window.innerHeight-a*2-v,0)}var g=pd();ve("mousemove",ke,f),ve("touchmove",ke,f,void 0,!0),ve("mouseup",ke,_),ve("touchend",ke,_),ve("resize",ke,()=>{i()&&c(i())}),g.__mousedown=d,g.__touchstart=d,p(e,g),ae()}ue(["mousedown","touchstart"]);var kd=Me('<svg width="4" height="8" viewBox="0 0 4 8" fill="none"><path d="M3.5 7L0.5 4L3.5 1" stroke="currentcolor" stroke-width="0.9975" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function wd(e){var t=kd();p(e,t)}async function bd(e){const t=new Headers({"Content-Type":"application/json"}),n=kn();if(!n)throw new Error("No token was provided");const i=await fetch(pn+`/search/titles/?api-token=${n}&query=${e}`,{headers:t});if(!i.ok)throw i;return await i.json()}var xd=Me('<svg viewBox="0 -960 960 960" width="18" height="18"><path fill="currentColor" d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z"></path></svg>');function Sd(e){var t=xd();p(e,t)}var Td=I("<div> </div>"),Ed=e=>e.stopImmediatePropagation(),Id=I('<button class="item svelte-rjq94e"><img class="poster svelte-rjq94e" alt="" width="28" height="42"> <div class="content"><div class="name svelte-rjq94e"> </div> <div class="meta svelte-rjq94e"><div class="imdb svelte-rjq94e"><!> </div> <div> </div> <div> </div> <!></div></div> <a target="_blank" class="open-in-new-tab svelte-rjq94e"><!></a></button>');function wr(e,t){re(t,!0);const n=B(t,"hoverable",3,!0),i=B(t,"onclick",3,()=>null);var r=Id();r.__click=function(...S){var E;(E=i())==null||E.apply(this,S)};var a=w(r);q(()=>ee(a,"src",Yt(t.title.standing_poster)));var l=x(a,2),s=w(l),u=w(s),c=x(s,2),d=w(c),f=w(d);Oi(f,{});var _=x(f),h=x(d,2),g=w(h),v=x(h,2),k=w(v),y=x(v,2);{var b=S=>{var E=Td(),z=w(E);q(()=>K(z,`${t.title.length??""} min`)),p(S,E)};D(y,S=>{t.title.length&&S(b)})}var A=x(l,2);A.__click=[Ed];var M=w(A);Sd(M),q(()=>{le(r,"hoverable",n()),K(u,t.title.title),K(_,` ${t.title.imdb_score??""}`),K(g,t.title.year),K(k,t.title.type),ee(A,"href",`${Pi}/${t.title.type??""}/${t.title.slug??""}`)}),ve("error",a,({target:S})=>S.src=Ai),p(e,r),ae()}ue(["click"]);var Pd=I('<em class="empty svelte-1olb8n0">No results found</em>'),Ad=I('<div class="results svelte-1olb8n0" data-testid="search-results"></div>'),Cd=I('<div class="selected svelte-1olb8n0"><!></div>'),jd=I('<div class="search svelte-1olb8n0"><!> <!> <!></div>');function Ld(e,t){re(t,!0);let n=B(t,"onselect",3,()=>null),i=B(t,"query",15),r=W($([])),a=W(null),l=W(!1);St(()=>{i()&&s(i())});async function s(v){j(l,!0);try{j(r,$(await bd(v)))}finally{j(l,!1)}}function u(v){i(v.title),j(a,$(v)),n()(v)}var c=jd(),d=w(c);zi(d,{oninput:()=>j(a,null),name:"search",label:"Search...",get value(){return i()},set value(v){i(v)}});var f=x(d,2);{var _=v=>{var k=Ad();Oe(k,21,()=>o(r),y=>y.sid,(y,b)=>{wr(y,{get title(){return o(b)},onclick:()=>u(o(b))})},y=>{var b=ge(),A=Q(b);{var M=S=>{var E=Pd();p(S,E)};D(A,S=>{o(l)||S(M)})}p(y,b)}),p(v,k)};D(f,v=>{i()&&!o(a)&&v(_)})}var h=x(f,2);{var g=v=>{var k=Cd(),y=w(k);wr(y,{get title(){return o(a)},hoverable:!1}),p(v,k)};D(h,v=>{o(a)&&v(g)})}p(e,c),ae()}function Md(e,t=e.anchorNode){if(!e.anchorNode||!t)return{start:-1,end:-1};const n=e.toString().trim(),i=e.toString().search(/\S/);if(e.anchorNode===t&&t.nodeType===Node.TEXT_NODE){const c=Math.min(e.anchorOffset,e.focusOffset)+i;return{start:c,end:c+n.length}}const r=e.getRangeAt(0),a=r.cloneRange();a.selectNodeContents(t),a.setEnd(r.startContainer,r.startOffset);const s=a.toString().length+i,u=s+n.length;return{start:s,end:u}}function qd(e,t,n,i,r,a,l,s){if(!o(t)||!o(n))return;const u=o(n).type==="movie"?"movie":"show",c=Pi+`/${u}/${o(n).slug}`,d={sid:o(n).sid,title:o(t),sentence:o(i),phrase_before:o(r),phrase_after:o(a),playpilot_url:c,key:Ra(o(n).sid),title_details:o(n),manual:!0};l.onsave(d),s()()}var Nd=I('<div class="error svelte-1i8p6op"><!></div>'),Dd=I('<label for="text" class="svelte-1i8p6op">Paired title</label> <!>',1),Od=I('<section class="layout svelte-1i8p6op"><div class="header svelte-1i8p6op"><!> <div class="heading svelte-1i8p6op">Add Playlink manually</div></div> <p class="svelte-1i8p6op">Highlight the text section in your post that you want to turn into a Playlink.</p> <label for="text" class="svelte-1i8p6op">Selected text</label> <!> <!> <!> <button class="save svelte-1i8p6op">Add playlink</button></section>');function Rd(e,t){re(t,!0);const n=B(t,"pageText",3,""),i=B(t,"onclose",3,()=>null);let r=W(""),a=W(""),l=W(null),s=W(""),u=W(""),c=W(""),d=W("");tt(f);function f(){const T=window.getSelection();if(!(T!=null&&T.anchorNode)||T.anchorNode.parentElement&&!Bt().contains(T.anchorNode.parentElement))return;const O=T.toString().trim();if(!O)return;j(c,""),j(r,$(O));const H=T.getRangeAt(0).cloneContents();if(Array.from(H.childNodes).filter(Z=>{var te;return(te=Z.textContent)==null?void 0:te.trim()}).find(Z=>{var te;return Z.nodeName==="A"||((te=Z.querySelector)==null?void 0:te.call(Z,"a"))})){j(c,"Selection is or contains a link. Injections can not be created around already existing links.");return}j(d,$(o(r)));const{node:P,sentence:N}=_(T,O);if(!P)return;j(a,$(N));const{start:V,end:U}=Md(T,P);(Z=>(j(u,$(Z.before)),j(s,$(Z.after))))(Xc(P,V,U)),N.includes(o(u))||j(u,""),N.includes(o(s))||j(s,"");const C=T.getRangeAt(0).commonAncestorContainer.textContent,Y=Be(n());(!C||!Y.includes(Be(C)))&&j(c,"Selection was not inside of given content")}function _(T,O){const H=T.getRangeAt(0),F=Bt();let P=H.startContainer;for(;(P.textContent||"").length<=O.length*3&&P.parentNode&&P.parentNode.textContent!==F.textContent;)P=P.parentNode;if(!P||!P.textContent)return{node:null,sentence:""};const N=P.textContent,V=h(P,H.startContainer,H.startOffset),U=h(P,H.endContainer,H.endOffset),C=N.slice(0,V).lastIndexOf("."),Y=N.slice(U).match(/[.!?]/),Z=Y?U+Y.index:N.length,te=C===-1?0:C+1,de=Z,oe=N.slice(te,de+1).trim();return{node:P,sentence:oe}}function h(T,O,H){let F=0;const P=T,N=V=>{var U;if(V===O)return F+=H,!0;V.nodeType===Node.TEXT_NODE&&(F+=((U=V.textContent)==null?void 0:U.length)||0);for(let C=V.firstChild;C;C=C.nextSibling)if(N(C))return!0;return!1};return N(P),F}function g(T){var O,H;j(l,$(T)),(H=(O=window.getSelection())==null?void 0:O.removeAllRanges)==null||H.call(O)}var v=Od();ve("mouseup",ke,f);var k=w(v),y=w(k);Ln(y,{get onclick(){return i()},size:"24px",children:(T,O)=>{wd(T)},$$slots:{default:!0}});var b=x(y,2);rt(b,(T,O)=>me==null?void 0:me(T,O),()=>2);var A=x(k,6);zi(A,{get value(){return o(r)},label:"Select text on the page",name:"selected-text",readonly:!0});var M=x(A,2);{var S=T=>{var O=Nd(),H=w(O);Pt(H,{children:(F,P)=>{var N=Ae();q(()=>K(N,o(c))),p(F,N)},$$slots:{default:!0}}),p(T,O)};D(M,T=>{o(c)&&T(S)})}var E=x(M,2);{var z=T=>{var O=Dd(),H=x(Q(O),2);ia(H,()=>o(a)+o(r),F=>{Ld(F,{onselect:g,get query(){return o(d)},set query(P){j(d,$(P))}})}),p(T,O)};D(E,T=>{o(c)||T(z)})}var L=x(E,2);L.__click=[qd,r,l,a,u,s,t,i],q(()=>L.disabled=!o(r)||!o(l)),p(e,v),ae()}ue(["click"]);const di="PlayPilotEditorialSessionId",Ha=5e3,Hd=Ha*2;async function Fd(e){const{ai_enabled:t,injections_enabled:n,ai_last_run:i,session_id:r,session_last_ping:a}=await yn(e),l=Ba(r||null,a||null),s={ai_enabled:t,ai_last_run:i,injections_enabled:n,session_id:r,session_last_ping:a};return l?await Fa(e):s}async function Fa(e){const t=Va(),n=new Date(Date.now()).toISOString(),i={session_id:t,session_last_ping:n.toString()},{ai_enabled:r,injections_enabled:a,ai_last_run:l}=await yn(e,{params:i});return{ai_enabled:r,ai_last_run:l,injections_enabled:a,...i}}function Ba(e,t){if(!e||!t)return!0;const n=Date.now(),i=new Date(t),r=Va();return n-i.getTime()>Hd?!0:r===e}function Va(){return sessionStorage.getItem(di)||Bd()}function Bd(){const e=sessionStorage.getItem(di)||pa();return sessionStorage.setItem(di,e),e}function Vd(e,t,n){Fa(t()),n()()}var Ud=I('<p class="svelte-2m2urs"><strong>Someone else is currently editing this document.</strong> Wait for them to exit the page or take over edit permissions, preventing them from making more changes.</p> <button class="button svelte-2m2urs">Take over editing</button>',1),Wd=I('<div class="alert svelte-2m2urs"><!></div>');function zd(e,t){re(t,!0);const n=B(t,"pageText",3,""),i=B(t,"onpoll",3,()=>null),r=B(t,"onallow",3,()=>null),a=B(t,"ondisallow",3,()=>null),l=B(t,"ontakeover",3,()=>null);let s=null,u=W(!0);tt(()=>(c(),()=>{s&&clearInterval(s)}));function c(){d(),s=setInterval(d,Ha)}async function d(){const g=await Fd(n());g&&(j(u,$(Ba(g.session_id||null,g.session_last_ping||null))),o(u)?r()():a()(),i()({injectionsEnabled:!!g.injections_enabled,aiEnabled:!!g.ai_enabled}))}var f=ge(),_=Q(f);{var h=g=>{var v=Wd(),k=w(v);Pt(k,{type:"warning",children:(y,b)=>{var A=Ud(),M=x(Q(A),2);M.__click=[Vd,n,l],p(y,A)},$$slots:{default:!0}}),p(g,v)};D(_,g=>{o(u)||g(h)})}p(e,f),ae()}ue(["click"]);var Kd=Me('<svg width="24px" height="24px" viewBox="0 0 64 64" stroke-width="3" stroke="currentColor" fill="none"><circle cx="34.52" cy="11.43" r="5.82"></circle><circle cx="53.63" cy="31.6" r="5.82"></circle><circle cx="34.52" cy="50.57" r="5.82"></circle><circle cx="15.16" cy="42.03" r="5.82"></circle><circle cx="15.16" cy="19.27" r="5.82"></circle><circle cx="34.51" cy="29.27" r="4.7"></circle><line x1="20.17" y1="16.3" x2="28.9" y2="12.93"></line><line x1="38.6" y1="15.59" x2="49.48" y2="27.52"></line><line x1="50.07" y1="36.2" x2="38.67" y2="46.49"></line><line x1="18.36" y1="24.13" x2="30.91" y2="46.01"></line><line x1="20.31" y1="44.74" x2="28.7" y2="48.63"></line><line x1="17.34" y1="36.63" x2="31.37" y2="16.32"></line><line x1="20.52" y1="21.55" x2="30.34" y2="27.1"></line><line x1="39.22" y1="29.8" x2="47.81" y2="30.45"></line><line x1="34.51" y1="33.98" x2="34.52" y2="44.74"></line></svg>');function Yd(e){var t=Kd();p(e,t)}var Zd=I('<strong class="svelte-1kpafo0">AI processing is disabled.</strong> Enable AI from the <a href="https://partner.playpilot.net" class="svelte-1kpafo0">Partner Portal</a>',1),Gd=I('<span class="svelte-1kpafo0">.</span>'),Jd=I(`<strong class="svelte-1kpafo0">AI links are currently processing.</strong> This can take several minutes. We'll insert all found injections once ready. <div class="message svelte-1kpafo0"> <span class="ellipses svelte-1kpafo0"></span></div> <div class="loading-bar svelte-1kpafo0"><div class="loading-bar-progress svelte-1kpafo0"><div class="loading-bar-fill svelte-1kpafo0" data-testid="loading-bar"></div></div> <div class="loading-bar-label svelte-1kpafo0"> </div></div>`,1),Xd=(e,t)=>j(t,!0),Qd=I('<p class="svelte-1kpafo0"><strong class="svelte-1kpafo0">AI has finished processing.</strong> <br class="svelte-1kpafo0"> <!></p> <button class="dismiss svelte-1kpafo0">Dismiss</button>',1),$d=I('<div class="animator svelte-1kpafo0" data-test-id="animator"></div>'),ev=I('<div class="ai-indicator svelte-1kpafo0" data-testid="ai-indicator"><div class="content svelte-1kpafo0"><div class="icon svelte-1kpafo0"><!></div> <div class="svelte-1kpafo0"><!></div></div> <div class="border svelte-1kpafo0"><!></div></div>');function tv(e,t){const n=B(t,"aiRunning",3,!1),i=B(t,"aiEnabled",3,!1),r=B(t,"message",3,""),a=B(t,"percentage",3,0),l=B(t,"aiInjectionsCount",3,0),s=l();let u=W(!1);var c=ge(),d=Q(c);{var f=_=>{var h=ev(),g=w(h),v=w(g),k=w(v);Yd(k);var y=x(v,2),b=w(y);{var A=L=>{var T=Zd();p(L,T)},M=L=>{var T=ge(),O=Q(T);{var H=P=>{var N=Jd(),V=x(Q(N),2),U=w(V),C=x(U);Oe(C,20,()=>({length:3}),Ge,(J,fe)=>{var we=Gd();p(J,we)});var Y=x(V,2),Z=w(Y),te=w(Z);const de=R(()=>`${Math.max(a(),3)??""}%`);q(()=>_t(te,"width",o(de)));var oe=x(Z,2),G=w(oe);q(()=>K(G,`${Math.floor(a())??""}%`)),q(()=>K(U,`${r()??""} `)),p(P,N)},F=P=>{var N=Qd(),V=Q(N),U=x(w(V),4);{var C=te=>{var de=Ae("No new injections where found.");p(te,de)},Y=te=>{var de=Ae();q(()=>K(de,`${l()??""} Injections where found and added to the page.`)),p(te,de)};D(U,te=>{s===l()?te(C):te(Y,!1)})}var Z=x(V,2);Z.__click=[Xd,u],p(P,N)};D(O,P=>{n()?P(H):P(F,!1)},!0)}p(L,T)};D(b,L=>{i()?L(M,!1):L(A)})}var S=x(g,2),E=w(S);{var z=L=>{var T=$d();p(L,T)};D(E,L=>{n()&&L(z)})}q(()=>le(h,"running",n())),p(_,h)};D(d,_=>{o(u)||_(f)})}p(e,c)}ue(["click"]);async function nv(e,t,n,i,r,a,l){try{j(t,!0),j(n,!1),i(await Su(i(),r())),j(a,$(o(l)))}catch{j(n,!0)}finally{j(t,!1)}}var iv=I('<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:400,600,700">'),rv=I('<div class="handles svelte-11aj6xq"><div class="handle svelte-11aj6xq"><!></div> <div class="handle svelte-11aj6xq"><!></div></div>'),av=I('<div class="loading svelte-11aj6xq">Loading...</div>'),ov=I('<div class="bubble svelte-11aj6xq"> </div> <!>',1),lv=I(`<strong>Playlinks are currently not published.</strong> Visitors to this page will not see any of the injected links.
|
package/package.json
CHANGED
package/release.js
CHANGED
|
@@ -23,8 +23,10 @@ try {
|
|
|
23
23
|
console.log('Publishing to npm...')
|
|
24
24
|
execSync('npm publish --access public', { stdio: 'inherit' })
|
|
25
25
|
|
|
26
|
+
console.log('-----------------')
|
|
26
27
|
console.log('Release complete!')
|
|
27
|
-
console.log('Please manually bump the version in Cloudflare')
|
|
28
|
+
console.log('Please manually bump the version in Cloudflare under playpilot.com -> Rules -> Overview -> Redirect Rules -> "TPI: Latest script version (jsdelivr)"')
|
|
29
|
+
console.log('-----------------')
|
|
28
30
|
} catch (err) {
|
|
29
31
|
console.error('Release failed:', err.message)
|
|
30
32
|
process.exit(1)
|
package/src/lib/types/title.d.ts
CHANGED
package/src/routes/+page.svelte
CHANGED
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
import Consent from './components/Consent.svelte'
|
|
16
16
|
import Debugger from './components/Debugger.svelte'
|
|
17
17
|
import { fetchAds } from '$lib/ads'
|
|
18
|
-
import ParticipantModal from './components/ParticipantModal.svelte';
|
|
19
18
|
|
|
20
19
|
let parentElement: HTMLElement | null = $state(null)
|
|
21
20
|
let elements: HTMLElement[] = $state([])
|
|
@@ -68,4 +68,10 @@ describe('Title.svelte', () => {
|
|
|
68
68
|
|
|
69
69
|
expect(queryByText('Some description')).not.toBeTruthy()
|
|
70
70
|
})
|
|
71
|
+
|
|
72
|
+
it('Should not render description when description is null', () => {
|
|
73
|
+
const { container } = render(Title, { title: { ...title, description: null } })
|
|
74
|
+
|
|
75
|
+
expect(container.querySelector('.paragraph')).not.toBeTruthy()
|
|
76
|
+
})
|
|
71
77
|
})
|