@playpilot/tpi 6.3.0-beta.3 → 6.3.0-beta.4
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var Dh=Object.defineProperty;var Tl=Se=>{throw TypeError(Se)};var Oh=(Se,Te,je)=>Te in Se?Dh(Se,Te,{enumerable:!0,configurable:!0,writable:!0,value:je}):Se[Te]=je;var Cl=(Se,Te,je)=>Oh(Se,typeof Te!="symbol"?Te+"":Te,je),wn=(Se,Te,je)=>Te.has(Se)||Tl("Cannot "+je);var ot=(Se,Te,je)=>(wn(Se,Te,"read from private field"),je?je.call(Se):Te.get(Se)),Kt=(Se,Te,je)=>Te.has(Se)?Tl("Cannot add the same private member more than once"):Te instanceof WeakSet?Te.add(Se):Te.set(Se,je),La=(Se,Te,je,Na)=>(wn(Se,Te,"write to private field"),Na?Na.call(Se,je):Te.set(Se,je),je),zl=(Se,Te,je)=>(wn(Se,Te,"access private method"),je);(function(){"use strict";var It,da,Aa,gi,El,qa,Ma;var Se=document.createElement("style");Se.textContent=`.up.svelte-1o28c14{transform:rotate(270deg)}.right.svelte-1o28c14{margin-left:2px}.down.svelte-1o28c14{transform:rotate(90deg)}.left.svelte-1o28c14{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-1yzjn7x{--playpilot-detail-background-border-radius: var(--playpilot-detail-border-radius, var(--playpilot-border-radius-large) var(--playpilot-border-radius-large) 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-1yzjn7x{padding:32px 0}}.modal.has-bubble.svelte-1yzjn7x{--playpilot-detail-background-border-radius: 0}.dialog.svelte-1yzjn7x,.bubble.svelte-1yzjn7x,.prepend.svelte-1yzjn7x{max-width:600px}.wide.svelte-1yzjn7x .dialog:where(.svelte-1yzjn7x),.wide.svelte-1yzjn7x .bubble:where(.svelte-1yzjn7x),.wide.svelte-1yzjn7x .prepend:where(.svelte-1yzjn7x){max-width:900px}.dialog.svelte-1yzjn7x{z-index:1;position:relative;width:100%;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-1yzjn7x{height:80dvh}}@media (min-width: 600px){.dialog.svelte-1yzjn7x{height:unset;margin-top:0;padding-bottom:0;overflow:visible;border-radius:var(--playpilot-detail-border-radius, var(--playpilot-border-radius-large))}}@media (max-width: 599px){.tall.svelte-1yzjn7x .dialog:where(.svelte-1yzjn7x){height:90vh}@supports (height: 1dvh){.tall.svelte-1yzjn7x .dialog:where(.svelte-1yzjn7x){height:90dvh}}}.has-prepend.svelte-1yzjn7x .dialog:where(.svelte-1yzjn7x){margin-top:0}.has-bubble.svelte-1yzjn7x .dialog:where(.svelte-1yzjn7x){border-top-left-radius:0;border-top-right-radius:0;margin-top:0}.swipe-handle.svelte-1yzjn7x{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-1yzjn7x{--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, 8px);--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-1yzjn7x{position:absolute;top:16px}}.close.svelte-1yzjn7x:hover{filter:brightness(1.1)}.close.flat.svelte-1yzjn7x{--playpilot-button-background: transparent;--playpilot-button-shadow: none}.close.back.svelte-1yzjn7x{right:auto;left:16px}.close.back.flat.svelte-1yzjn7x{left:8px}.close.back.flat.svelte-1yzjn7x svg{margin:0}.transitioning.svelte-1yzjn7x .close:where(.svelte-1yzjn7x){top:16px}.prepend.svelte-1yzjn7x{z-index:1;position:relative;width:calc(100% - 16px);padding-top:48px;margin:auto auto 8px}@media (min-width: 600px){.prepend.svelte-1yzjn7x{padding-top:0;margin-top:0}}.bubble.svelte-1yzjn7x{z-index:1;position:relative;width:100%;margin:auto 0 0}@media (min-width: 600px){.bubble.svelte-1yzjn7x{width:100%;margin-top:0}}.genre.svelte-awb4w8{display:inline-flex;flex-wrap:wrap;background:var(--playpilot-genre-background, var(--playpilot-content));border:0;border-radius:var(--playpilot-genre-border-radius, var(--playpilot-border-radius-large));padding:4px 8px;font-family:var(--playpilot-genre-font-family, var(--playpilot-inherit));font-weight:var(--playpilot-genre-font-weight, var(--playpilot-inherit));text-transform:var(--playpilot-genre-text-transform, var(--playpilot-none));color:var(--playpilot-genre-text-color, var(--playpilot-text-color-alt));line-height:1;font-size:inherit}.genre.svelte-awb4w8:is(button:where(.svelte-awb4w8)):hover{cursor:pointer;filter:brightness(var(--playpilot-genre-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-genre-background-hover, var(--playpilot-content))}.expand.svelte-awb4w8{margin-left:-8px}.disclaimer.svelte-1aoli55{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, var(--playpilot-text-color-alt));font-weight:700;line-height:1}.disclaimer.svelte-1aoli55:hover{border-color:var(--playpilot-disclaimer-hover-border-color, var(--playpilot-text-color));color:var(--playpilot-disclaimer-hover-text-color, var(--playpilot-text-color))}.disclaimer.small.svelte-1aoli55{height:16px;width:16px}.tooltip.svelte-1aoli55{z-index:2;position:absolute;right:0;bottom:0;padding:4px;background:transparent;border:0;color:var(--playpilot-disclaimer-tooltip-text-color, var(--playpilot-text-color));cursor:pointer}.tooltip-content.svelte-1aoli55{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-content));box-shadow:var(--playpilot-shadow);font-size:12px;line-height:1.1;text-align:right;white-space:normal}@keyframes svelte-1ganvvq-sheen{0%,20%,60%,80.01%,to{background-position:-100% 0}80%{background-position:100% 0}}img.svelte-1ganvvq{height:36px;width:36px;border-radius:var(--playpilot-playlink-image-border-radius, var(--playpilot-border-radius));background:#00000040}.playlink.svelte-1ganvvq{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, var(--playpilot-border-radius));color:var(--playpilot-playlink-text-color, var(--playpilot-text-color))!important;font-weight:var(--playpilot-playlink-font-weight, var(--playpilot-inherit));font-style:var(--playpilot-playlink-font-style, var(--playpilot-normal))!important;text-decoration:none!important;white-space:nowrap;font-size:var(--playpilot-playlinks-font-size, 12px);line-height:1}.playlink.svelte-1ganvvq:not(span):hover,.playlink.svelte-1ganvvq:not(span):active{filter:brightness(var(--playpilot-playlink-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-playlink-hover-background, var(--playpilot-lighter))!important;text-decoration:none!important}.playlink.highlighted.svelte-1ganvvq{grid-column:span 2}.playlink.highlighted.svelte-1ganvvq: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-1ganvvq:before{animation:svelte-1ganvvq-sheen 4s ease-in-out infinite}}.playlink.highlighted.svelte-1ganvvq: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-1ganvvq img:where(.svelte-1ganvvq){grid-area:image;margin:0}.playlink-content.svelte-1ganvvq{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-1ganvvq .playlink-content:where(.svelte-1ganvvq){grid-template-areas:"image name action" "image category action" "image cta action";gap:4px 12px}.no-category.svelte-1ganvvq .playlink-content:where(.svelte-1ganvvq){grid-template-areas:"image name action" "image cta action"}.name.svelte-1ganvvq{grid-area:name;width:100%;overflow:hidden;font-weight:var(--playpilot-playlink-font-weight, 500);font-family:var(--playpilot-playlink-font-family, var(--playpilot-inherit));text-overflow:ellipsis;white-space:nowrap}.category.svelte-1ganvvq{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, var(--playpilot-inherit));font-family:var(--playpilot-playlink-category-font-family, var(--playpilot-inherit))}.cta.svelte-1ganvvq{grid-area:cta;width:100%;font-size:var(--playpilot-playlinks-cta-font-size, 10px);color:var(--playpilot-playlink-cta-text-color, var(--playpilot-text-color));font-weight:var(--playpilot-playlink-cta-font-weight, var(--playpilot-inherit));font-family:var(--playpilot-playlink-cta-font-family, var(--playpilot-inherit));white-space:normal;line-height:1.2}.action.svelte-1ganvvq{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-1ganvvq .action:where(.svelte-1ganvvq){border:0;background:var(--playpilot-playlinks-action-background-color, white);color:var(--playpilot-playlinks-action-text-color, black)}.heading.svelte-mivaad{margin:0;color:var(--playpilot-playlinks-title-color, var(--playpilot-text-color-alt));font-family:var(--playpilot-playlinks-title-font-family, var(--playpilot-inherit));font-weight:var(--playpilot-playlinks-title-font-weight, var(--playpilot-lighter));font-size:var(--playpilot-playlinks-title-font-size, var(--playpilot-font-size-base));line-height:normal}.playlinks.svelte-mivaad{box-sizing:border-box;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}.playlinks.list.svelte-mivaad{grid-template-columns:1fr}.playlinks.list.svelte-mivaad .playlink.highlighted{grid-column:span 1}.disclaimer.svelte-mivaad{margin:var(--playpilot-playlinks-disclaimer-margin, 8px) 0;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, var(--playpilot-normal))}.disclaimer.svelte-mivaad a:where(.svelte-mivaad){color:inherit;font-size:inherit;font-style:inherit}.disclaimer.svelte-mivaad a:where(.svelte-mivaad):hover{color:var(--playpilot-playlinks-disclaimer-text-color-hover, var(--playpilot-text-color))}.empty.svelte-mivaad{grid-column:span 2;padding:12px;margin-top:8px;background:var(--playpilot-playlink-background, var(--playpilot-lighter));box-shadow:var(--playpilot-playlink-shadow, var(--playpilot-shadow));border-radius:var(--playpilot-playlink-border-radius, var(--playpilot-border-radius));white-space:initial;line-height:1.35}.list.svelte-mivaad .empty:where(.svelte-mivaad){grid-column:1}.paragraph.svelte-1rt1t7o{display:block;margin:16px 0 0}.show-more.svelte-1rt1t7o{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, var(--playpilot-inherit));font-family:inherit;font-size:inherit}.show-more.svelte-1rt1t7o:hover{text-decoration:underline;text-decoration-thickness:2px;cursor:pointer}.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-l8rcrc{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-l8rcrc{--gap: 8px;position:relative;width:calc(100% + 32px);margin:0 -16px}.rail.svelte-l8rcrc .slider{padding:0 16px}.rail.svelte-l8rcrc .slider-content>:last-child{margin-right:32px}.arrow.svelte-l8rcrc{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-text-color))}@media (hover: hover){.arrow.svelte-l8rcrc{display:flex}}.arrow.svelte-l8rcrc:hover{filter:brightness(1.2)}.arrow.right.svelte-l8rcrc{left:auto;right:0}.participant.svelte-twi8bf{display:flex;flex-direction:column;flex:0 0 10rem;width:10rem;min-height:54px;padding:8px;border:0;border-radius:var(--playpilot-cast-border-radius, var(--playpilot-border-radius));background:var(--playpilot-cast-background, var(--playpilot-lighter));cursor:pointer;font-family:inherit;text-align:left;color:inherit;font-size:var(--playpilot-cast-font-size, var(--playpilot-font-size-small));line-height:normal;white-space:nowrap}.participant.svelte-twi8bf:is(button:where(.svelte-twi8bf)):hover,.participant.svelte-twi8bf:is(button:where(.svelte-twi8bf)):active{filter:brightness(var(--playpilot-cast-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));text-decoration:none!important}.character.svelte-twi8bf{color:var(--playpilot-cast-character-text-color, var(--playpilot-text-color-alt));font-style:italic}.truncate.svelte-twi8bf{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}img.svelte-17smby0{display:block;width:100%;height:auto;color:transparent}.title.svelte-78gj1g{width:96px}.title.svelte-78gj1g:hover,.title.svelte-78gj1g:active{filter:brightness(1.1)}.poster.svelte-78gj1g{display:block;border-radius:var(--playpilot-rail-border-radius, var(--playpilot-border-radius));overflow:hidden;width:100%;aspect-ratio:2/3;background:var(--playpilot-detail-background-light, var(--playpilot-lighter))}.heading.svelte-78gj1g{display:-webkit-box;padding-top:8px;overflow:hidden;text-decoration:none;color:var(--playpilot-rail-text-color, var(--playpilot-text-color-alt))!important;font-size:var(--playpilot-rail-font-size, var(--playpilot-font-size-small));font-style:normal!important;line-height:1.2;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis}.skeleton.svelte-78gj1g{display:block;height:1em;width:100%;background:var(--playpilot-detail-background-light, var(--playpilot-lighter));border-radius:32px}.skeleton.svelte-78gj1g:last-child{margin-top:4.8px;width:50%}.button.svelte-n6059u{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;height:100%;align-items:center;justify-content:center;gap:4px;border:0;padding:.25em .5em;background:transparent;border-radius:var(--playpilot-button-border-radius, var(--playpilot-border-radius));color:var(--playpilot-button-text-color, var(--playpilot-text-color-alt));font-size:inherit;font-family:inherit;font-weight:var(--playpilot-button-font-weight, var(--playpilot-normal));cursor:pointer}.button.svelte-n6059u svg{width:1.5em;height:1.5em;opacity:.75}.button.svelte-n6059u svg:last-child{width:.85em;height:.85em}.filled.svelte-n6059u{background:var(--playpilot-button-filled-background, var(--playpilot-content))}.filled.svelte-n6059u:hover,.filled.svelte-n6059u:active{background:var(--playpilot-button-filled-hover-background, var(--playpilot-content-light));color:var(--playpilot-button-filled-hover-text-color, var(--playpilot-text-color))}.filled.active.svelte-n6059u{box-shadow:inset 0 0 0 1px currentColor}.border.svelte-n6059u{box-shadow:inset 0 0 0 1px var(--playpilot-button-border-color, var(--playpilot-content-light))}.border.svelte-n6059u:hover,.border.svelte-n6059u:active,.border.active.svelte-n6059u{background:var(--playpilot-button-border-color, var(--playpilot-lighter));color:var(--playpilot-button-hover-text-color, var(--playpilot-text-color))}.border.active.svelte-n6059u{filter:brightness(var(--playpilot-hover-filter-brightness))}.link.svelte-n6059u{display:inline-flex;height:auto;padding:0;font-size:inherit;line-height:inherit}.link.svelte-n6059u:hover,.link.svelte-n6059u:active{color:var(--playpilot-button-hover-text-color, var(--playpilot-text-color))}.link.svelte-n6059u svg{width:.85em;height:.85em}.large.svelte-n6059u{padding:.5em 1em}.share.svelte-113frw{position:relative}.context-menu.svelte-113frw{z-index:10;position:absolute;bottom:calc(100% + 8px);left:0;max-width:240px;border-radius:var(--playpilot-context-menu-border-radius, 8px);background:var(--playpilot-detail-background, var(--playpilot-lighter));box-shadow:var(--playpilot-shadow)}.context-menu.svelte-113frw:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--playpilot-context-menu-border-radius, 8px);background:var(--playpilot-context-menu-background-lightness, rgba(255, 255, 255, .05));pointer-events:none}.item.svelte-113frw{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;gap:8px;border:0;padding:12px 16px;width:100%;border-bottom:1px solid var(--playpilot-context-menu-border, rgba(255, 255, 255, .1));background:transparent;white-space:nowrap;color:var(--playpilot-detail-text-color, var(--playpilot-text-color));font-family:inherit;font-weight:400;text-align:left}.item.svelte-113frw:hover{background:var(--playpilot-context-menu-border, rgba(255, 255, 255, .1))}.item.svelte-113frw:first-child{border-radius:var(--playpilot-context-menu-border-radius, 8px) var(--playpilot-context-menu-border-radius, 8px) 0 0}.item.svelte-113frw:last-child{border-radius:0 0 var(--playpilot-context-menu-border-radius, 8px) var(--playpilot-context-menu-border-radius, 8px);border-bottom:0}.item.svelte-113frw:not(:hover) svg{opacity:.75}iframe.svelte-b34co4{z-index:1;position:relative;display:block;width:95vmin;height:auto;aspect-ratio:16/9;box-shadow:0 0 64px #ffffff26;background:#000}.overlay.svelte-b34co4{z-index:2147483647;box-sizing:border-box;display:flex;align-items:center;justify-content:center;position:fixed;top:0;right:0;bottom:0;left:0;background:var(--playpilot-detail-backdrop, rgba(0, 0, 0, .95))}.backdrop.svelte-b34co4{z-index:0;position:fixed;top:0;right:0;bottom:0;left:0}.close.svelte-b34co4{-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1;position:fixed;top:32px;right:32px;padding:0;margin:0;border:0;background:transparent;color:#fff;cursor:pointer}.close.svelte-b34co4:hover{transform:scale(1.1)}.close.svelte-b34co4:active{transform:scale(1)}.heading.svelte-1aeecbs{margin:8px 0;color:var(--playpilot-detail-title-text-color, var(--playpilot-text-color));font-family:var(--playpilot-detail-title-font-family, var(--playpilot-inherit));font-weight:var(--playpilot-detail-title-font-weight, var(--playpilot-lighter));font-size:var(--playpilot-detail-title-font-size, 24px);line-height:normal;font-style:var(--playpilot-detail-title-font-style, var(--playpilot-normal))}.small.svelte-1aeecbs .heading:where(.svelte-1aeecbs){font-size:var(--playpilot-detail-title-font-size-small, 18px)}.content.svelte-1aeecbs{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, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:normal;font-style:normal}.content.svelte-1aeecbs ::view-transition-old(content),.content.svelte-1aeecbs ::view-transition-new(content){height:100%}.content.small.svelte-1aeecbs{font-size:var(--playpilot-detail-font-size-small, var(--playpilot-font-size-small));line-height:1.45;padding-bottom:16px}.header.svelte-1aeecbs{padding:48px 0 16px;background:transparent}.small.svelte-1aeecbs .header:where(.svelte-1aeecbs){padding-top:16px}.poster.svelte-1aeecbs{display:block;width:72px;margin:0;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));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-1aeecbs{opacity:1}.info.svelte-1aeecbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}@media (min-width: 600px){.info.svelte-1aeecbs{gap:8px 16px}}.small.svelte-1aeecbs .info:where(.svelte-1aeecbs){gap:8px 12px}.imdb.svelte-1aeecbs{display:flex;align-items:center;gap:4px}.imdb.svelte-1aeecbs svg{margin-top:-2px}.small.svelte-1aeecbs .imdb:where(.svelte-1aeecbs) svg{margin-top:0;width:12px;height:12px}.actions.svelte-1aeecbs{display:flex;gap:8px;margin-top:8px}.background.svelte-1aeecbs{position:absolute;top:0;left:0;width:100%;height:192px;border-radius:var(--playpilot-detail-background-border-radius, 0px);overflow:hidden;background:var(--playpilot-detail-background, var(--playpilot-lighter));z-index:0}.background.svelte-1aeecbs: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-1aeecbs img:where(.svelte-1aeecbs){width:100%;height:100%;object-fit:cover;object-position:center;margin:0;opacity:0;z-index:0}.background.svelte-1aeecbs img.loaded:where(.svelte-1aeecbs){opacity:1}.background.svelte-1aeecbs img.blur:where(.svelte-1aeecbs){opacity:.5;transform:scale(1.1);filter:blur(.75rem)}.capitalize.svelte-1aeecbs{text-transform:capitalize}.truncate.svelte-1aeecbs{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-scroll.svelte-1iky8pz{position:relative;display:block;width:100%;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) 0 0;background:#000;color:var(--playpilot-top-scroll-text-color, white);font-family:var(--playpilot-top-scroll-font-family, var(--playpilot-font-family));font-size:var(--playpilot-top-scroll-font-size, var(--playpilot-font-size-base));text-decoration:none;line-height:1.35}.content.svelte-1iky8pz{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-1iky8pz .content:where(.svelte-1iky8pz){justify-content:center;min-height:0;padding:0}.logo.svelte-1iky8pz{border-radius:var(--playpilot-top-scroll-logo-border-radius, var(--playpilot-border-radius));background:#000}.tagline.svelte-1iky8pz{margin:0;text-shadow:var(--playpilot-shadow)}.button.svelte-1iky8pz{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, var(--playpilot-border-radius-small));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-1iky8pz: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-1iky8pz:active{background:var(--playpilot-top-scroll-button-background, white)}.background.svelte-1iky8pz{z-index:0;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) 0 0;background-image:var(--background);background-position:center;background-size:cover;opacity:.4}.top-scroll.svelte-1iky8pz:hover .background:where(.svelte-1iky8pz){filter:brightness(1.15)}.content-image.svelte-1iky8pz{display:block;max-width:100%;height:auto;background:#000;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) 0 0}.top-scroll.svelte-1iky8pz:hover .content-image:where(.svelte-1iky8pz){filter:brightness(1.15)}.tooltip.svelte-fcvpct{position:relative}.content.svelte-fcvpct{position:absolute;bottom:0;left:0;transform:translateY(100%);padding:4px;background:var(--playpilot-tooltip-background, var(--playpilot-light));border-radius:var(--playpilot-tooltip-border-radius, var(--playpilot-border-radius-small));box-shadow:var(--playpilot-tooltip-shadow, var(--playpilot-shadow));color:var(--playpilot-tooltip-text-color, var(--playpilot-text-color));white-space:nowrap}.display.svelte-1jneh2k{display:block;position:relative;border-radius:var(--playpilot-display-ad-border-radius, var(--playpilot-border-radius));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-1jneh2k{position:absolute;top:0;left:0;padding:8px;font-size:12px;text-decoration:underline}@media (min-width: 600px){.info.svelte-1jneh2k{padding:16px}.compact.svelte-1jneh2k .info:where(.svelte-1jneh2k){padding:12px}}.cta.svelte-1jneh2k{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-1jneh2k{padding:16px}.compact.svelte-1jneh2k .cta:where(.svelte-1jneh2k){padding:12px}}.logo.svelte-1jneh2k{border-radius:var(--playpilot-display-ad-border-radius, var(--playpilot-border-radius))}.name.svelte-1jneh2k{font-weight:500}.subheader.svelte-1jneh2k{font-size:12px}.action.svelte-1jneh2k{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-1jneh2k:hover{transform:scale(1.05)}.background.svelte-1jneh2k{display:block;width:100%;height:auto}.disclaimer.svelte-1jneh2k{position:absolute;bottom:calc(var(--offset) + 4px);right:4px}strong.svelte-40a06z{color:var(--playpilot-text-color);font-size:var(--playpilot-font-size-base);font-weight:400}.call-to-action.svelte-40a06z{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;gap:16px;width:100%;padding:16px;border:0;border-radius:var(--playpilot-border-radius-large) var(--playpilot-border-radius-large) 0 0;background:var(--playpilot-light);font-family:var(--playpilot-font-family);color:var(--playpilot-text-color-alt);font-size:var(--playpilot-font-size-small);line-height:1.5;text-align:left;cursor:pointer}.call-to-action.svelte-40a06z:hover{filter:brightness(var(--playpilot-hover-filter-brightness))}.arrow.svelte-40a06z{margin-left:auto}.arrow.svelte-40a06z svg{display:block;height:20px;width:auto}.playlink.svelte-x0d70p{display:inline-block;width:var(--size);height:var(--size);background:var(--playpilot-playlink-background, var(--playpilot-light));border-radius:var(--playpilot-playlink-border-radius, calc(var(--size) * .25));overflow:hidden}.playlink.svelte-x0d70p:hover,.playlink.svelte-x0d70p:active{filter:brightness(var(--playpilot-playlink-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-playlink-hover-background, var(--playpilot-lighter))!important;text-decoration:none!important;outline:2px solid var(--playpilot-detail-text-color, var(--playpilot-text-color))}.playlink.svelte-x0d70p img:where(.svelte-x0d70p){display:block;margin:0;width:auto}.playlinks.svelte-1fqoau{display:flex;flex-wrap:wrap;gap:4px;margin-top:auto}.more.svelte-1fqoau{display:flex;align-items:center;padding:0 2px;color:var(--playpilot-list-item-more-text-color, var(--playpilot-text-color-alt));font-size:var(--playpilot-detail-font-size-small, var(--playpilot-font-size-small))}.empty.svelte-1fqoau{margin-top:4px;opacity:.65;font-style:italic;font-size:.85em;white-space:initial;color:var(--playpilot-list-item-empty-text-color, var(--playpilot-text-color-alt))}.title.svelte-tl2in2{-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:var(--playpilot-list-item-padding, 8px);border:0;border-radius:var(--playpilot-list-item-border-radius, var(--playpilot-border-radius));text-decoration:none;font-style:normal!important;font-family:var(--playpilot-font-family);cursor:pointer}.title.svelte-tl2in2:hover{filter:brightness(var(--playpilot-list-item-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-list-item-hover-background, var(--playpilot-lighter));box-shadow:var(--playpilot-list-item-hover-shadow, var(--playpilot-none))}.poster.svelte-tl2in2{flex:0 0 auto;height:auto;align-self:start;width:66px;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-detail-image-background, var(--playpilot-content));overflow:hidden}.content.svelte-tl2in2{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, var(--playpilot-font-size-base));line-height:normal}@media (min-width: 600px){.content.svelte-tl2in2{padding-right:16px}}.heading.svelte-tl2in2{color:var(--playpilot-list-item-title-text-color, var(--playpilot-text-color));font-weight:var(--playpilot-list-item-title-font-weight, var(--playpilot-font-bold))}.meta.svelte-tl2in2{display:flex;flex-wrap:wrap;gap:0 8px;margin:2px 0;font-size:var(--playpilot-detail-font-size-small, var(--playpilot-font-size-small));font-weight:var(--playpilot-list-item-meta-font-weight, var(--playpilot-font-bold));color:var(--playpilot-list-item-meta-text-color, var(--playpilot-text-color-alt))}.meta.svelte-tl2in2>div:where(.svelte-tl2in2){text-transform:capitalize}.imdb.svelte-tl2in2{display:flex;align-items:center;gap:4px}.description.svelte-tl2in2{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, var(--playpilot-font-size-small));color:var(--playpilot-list-item-description-text-color, var(--playpilot-text-color))}.action.svelte-tl2in2{display:flex;margin:0 8px 0 auto;padding-left:8px;align-self:center;color:var(--playpilot-list-item-action-color, var(--playpilot-text-color-alt))}.action.svelte-tl2in2:hover,.action.svelte-tl2in2:active{color:var(--playpilot-list-item-action-hover-color, var(--playpilot-text-color))}.header.svelte-1k98u86{padding:64px 16px 32px;font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-font-weight, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:var(--playpilot-participant-description-line-height, var(--playpilot-normal));color:var(--playpilot-detail-text-color, var(--playpilot-text-color))}.heading.svelte-1k98u86{margin:0;font-family:var(--playpilot-detail-title-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-title-font-weight, var(--playpilot-lighter));font-size:var(--playpilot-detail-title-font-size, 24px);line-height:normal;font-style:var(--playpilot-detail-title-font-style, var(--playpilot-normal))}.heading.small.svelte-1k98u86{margin:0 0 8px;font-size:var(--playpilot-detail-title-small-font-size, 20px)}.dates.svelte-1k98u86{margin:8px 0 0}.content.svelte-1k98u86{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, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:normal;font-style:normal}.list.svelte-1k98u86{display:flex;flex-direction:column;gap:8px}.skeleton.svelte-1k98u86{min-height:116px;border-radius:var(--playpilot-playlink-border-radius, var(--playpilot-border-radius));background:var(--playpilot-detail-background-light, var(--playpilot-lighter))}.more.svelte-1k98u86{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:8px 16px;border:0;border-radius:var(--playpilot-participants-load-more-border-radius, var(--playpilot-border-radius));background:var(--playpilot-participants-load-more-background, var(--playpilot-content));color:inherit;font-size:inherit;font-family:inherit}.more.svelte-1k98u86:hover{filter:brightness(1.2)}.title.svelte-ymfgok{position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;flex-direction:column;width:100%;background:transparent;padding:0;border:0;border-radius:var(--playpilot-grid-item-border-radius, var(--playpilot-border-radius));transition:transform .1s;text-decoration:none;font-style:normal!important;font-family:var(--playpilot-font-family);cursor:pointer}.title.svelte-ymfgok:hover{filter:brightness(var(--playpilot-grid-item-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-grid-item-hover-background, var(--playpilot-lighter));box-shadow:var(--playpilot-grid-item-hover-shadow, 0 0 0 8px var(--playpilot-lighter));transform:scale(1.025);z-index:1}.poster.svelte-ymfgok{position:relative;width:100%;height:auto;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-detail-image-background, var(--playpilot-content));overflow:hidden}.content.svelte-ymfgok{padding-top:8px}.heading.svelte-ymfgok{margin-bottom:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:inherit;text-align:left;font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:normal;color:var(--playpilot-grid-item-title-text-color, var(--playpilot-text-color-alt));font-weight:var(--playpilot-grid-item-title-font-weight, var(--playpilot-font-bold))}.title.svelte-ymfgok:hover .heading:where(.svelte-ymfgok){color:var(--playpilot-grid-item-title-hover-text-color, var(--playpilot-text-color))}.meta.svelte-ymfgok{display:flex;justify-content:space-between;position:absolute;top:0;left:0;width:100%;padding:8px 8px 16px;background:linear-gradient(to bottom,rgba(0,0,0,.75),transparent);color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.5),0 1px 2px rgba(0,0,0,.25)}.meta.svelte-ymfgok svg{filter:drop-shadow(0 1px 0 rgba(0,0,0,.35))}.imdb.svelte-ymfgok{display:flex;align-items:center;gap:4px}.skeleton.svelte-11t7h81{width:100%}.poster.svelte-11t7h81{flex:0 0 auto;height:auto;width:100%;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-content)}.lines.svelte-11t7h81{display:flex;flex-direction:column;margin-top:8px;gap:8px;width:100%}.line.svelte-11t7h81{height:var(--playpilot-font-size-base);background:var(--playpilot-content);border-radius:5rem}.skeleton.svelte-hrucm1{display:flex;align-items:center;width:100%;gap:16px}.poster.svelte-hrucm1{flex:0 0 auto;height:auto;align-self:start;width:66px;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-content)}.lines.svelte-hrucm1{display:flex;flex-direction:column;gap:8px;width:100%}.line.svelte-hrucm1{width:60%;height:var(--playpilot-font-size-base);background:var(--playpilot-content);border-radius:5rem}.header.svelte-123b8pj{padding:12px}.input.svelte-123b8pj{width:100%;padding:12px 16px;border:0;border-radius:var(--playpilot-border-radius);background:var(--playpilot-content-light);color:var(--playpilot-text-color-alt);font-size:var(--playpilot-font-size-base);font-family:var(--playpilot-font-family)}.input.svelte-123b8pj:focus{outline:1px solid white}.input.svelte-123b8pj::placeholder{color:var(--playpilot-text-color-alt);opacity:.75}.option.svelte-123b8pj{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px;border:0;border-top:1px solid var(--playpilot-content-light);background:var(--playpilot-content);color:var(--playpilot-text-color-alt);font-family:inherit;text-align:left;cursor:pointer}.option.svelte-123b8pj:hover,.option.active.svelte-123b8pj{color:var(--playpilot-text-color);filter:brightness(var(--playpilot-hover-filter-brightness))}.action.svelte-123b8pj{flex:0 0 1lh;position:relative;width:1lh;height:1lh;font-size:1.25em}.icon.svelte-123b8pj{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;border:1px solid var(--playpilot-content-light);border-radius:50%}.active.svelte-123b8pj .icon:where(.svelte-123b8pj){color:var(--playpilot-green);border-color:var(--playpilot-green)}.dropdown.svelte-8amt13{position:relative}.content.svelte-8amt13{z-index:10;position:absolute;top:44px;right:var(--offset, 0px);max-height:var(--max-height, 60vh);border-radius:var(--playpilot-border-radius);box-shadow:var(--playpilot-shadow-large);transform-origin:top right;background:var(--playpilot-content);overflow-y:auto;overflow-x:hidden}.left.svelte-8amt13 .content:where(.svelte-8amt13){right:auto;left:var(--offset, 0px);transform-origin:top left}.slider.svelte-1jbl3xv{display:flex;flex-direction:column;width:100%;height:104px;padding:16px}.range.svelte-1jbl3xv{position:relative;padding-top:8px}.label.svelte-1jbl3xv{color:var(--playpilot-text-color);font-weight:var(--playpilot-font-weight-bold);font-size:var(--playpilot-font-size-base)}input[type=range].svelte-1jbl3xv{box-sizing:border-box;-moz-appearance:none;appearance:none;-webkit-appearance:none;position:absolute;width:100%;height:16px;margin:0;padding:1px 0;overflow:hidden;border:0;border-radius:1px;outline:none;background:linear-gradient(var(--playpilot-content-light),var(--playpilot-content-light)) no-repeat center;background-size:100% 1px;pointer-events:none}input[type=range].svelte-1jbl3xv:nth-child(2){background:none}input[type=range].active.svelte-1jbl3xv::-webkit-slider-thumb{background-color:var(--playpilot-text-color-alt)}input[type=range].active.svelte-1jbl3xv::-moz-range-thumb{background-color:var(--playpilot-text-color-alt)}input[type=range].svelte-1jbl3xv::-webkit-slider-thumb{-webkit-appearance:none;z-index:2;position:relative;width:16px;height:16px;margin:4px 0;border:0;border-radius:50%;background:var(--playpilot-text-color-alt);cursor:pointer;pointer-events:all;transition:transform .1s,border-radius .1s,width .1s}input[type=range].svelte-1jbl3xv::-moz-range-thumb{-webkit-appearance:none;z-index:2;position:relative;width:16px;height:16px;margin:4px 0;border:0;border-radius:50%;background:var(--playpilot-text-color-alt);cursor:pointer;pointer-events:all;transition:transform .1s,border-radius .1s,width .1s}.halved.svelte-1jbl3xv input[type=range]:where(.svelte-1jbl3xv)::-webkit-slider-thumb{width:8px;transform:translate(-45%);border-radius:8px .15rem .15rem 8px}.halved.svelte-1jbl3xv input[type=range]:where(.svelte-1jbl3xv)::-moz-range-thumb{width:8px;transform:translate(-45%);border-radius:8px .15rem .15rem 8px}.halved.svelte-1jbl3xv input[type=range]:where(.svelte-1jbl3xv):nth-child(2)::-webkit-slider-thumb{transform:translate(45%);border-radius:.15rem 8px 8px .15rem}.halved.svelte-1jbl3xv input[type=range]:where(.svelte-1jbl3xv):nth-child(2)::-moz-range-thumb{transform:translate(45%);border-radius:.15rem 8px 8px .15rem}input[type=range].svelte-1jbl3xv::-webkit-slider-thumb:before{display:block;position:absolute;top:12px;left:100%;width:100%;height:2px;content:" "}input[type=range].svelte-1jbl3xv::-moz-range-thumb:before{display:block;position:absolute;top:12px;left:100%;width:100%;height:2px;content:" "}.active-line.svelte-1jbl3xv{z-index:0;position:absolute;top:auto;bottom:auto;left:0;width:var(--width, 100%);height:1px;transform:translateY(calc(16px / 2 - var(--range-fill-height, 1px) / 2));background:var(--playpilot-text-color-alt);pointer-events:none}.halved.svelte-1jbl3xv .active-line:where(.svelte-1jbl3xv){width:calc(var(--width, 100%) + 16px/2)}.value-marker.svelte-1jbl3xv{position:absolute;bottom:-44px;color:var(--playpilot-text-color-alt);font-weight:400;font-size:var(--playpilot-font-size-small)}.value-marker.right.svelte-1jbl3xv{right:0;text-align:right}.filter-item.active.svelte-hhk7zz .dropdown>button{box-shadow:inset 0 0 0 1px var(--playpilot-green)}.content.svelte-hhk7zz{width:240px}.content.svelte-1a84kaq{width:112px}.option.svelte-1a84kaq{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:12px 16px;width:100%;border:0;background:transparent;text-align:left;font-family:inherit;font-size:inherit;color:var(--playpilot-text-color-alt);cursor:pointer}.option.svelte-1a84kaq:hover,.option.active.svelte-1a84kaq{color:var(--playpilot-text-color);background:var(--playpilot-content-light)}.filter.svelte-1g2at6t{position:relative}.items.svelte-1g2at6t{display:flex;flex-wrap:wrap;gap:8px;padding-right:112px}.limit.svelte-1g2at6t .items:where(.svelte-1g2at6t){padding-right:0}.actions.svelte-1g2at6t{position:absolute;top:4px;right:0}.limit.svelte-1g2at6t .actions:where(.svelte-1g2at6t){position:initial;top:auto;display:flex;justify-content:space-between;margin-top:8px}.search.svelte-hin0fa{position:relative}.icon.svelte-hin0fa{display:flex;align-items:center;position:absolute;height:100%;left:16px;color:var(--playpilot-text-color-alt);opacity:.75}.input.svelte-hin0fa{width:100%;max-width:var(--playpilot-explore-header-max-width, 600px);padding:12px 16px 12px 48px;border:var(--playpilot-explore-search-border, 0);border-radius:var(--playpilot-exlore-search-border-radius, var(--playpilot-border-radius));background:var(--playpilot-explore-search-background, var(--playpilot-content));color:var(--playpilot-text-color-alt);font-size:var(--playpilot-font-size-base);font-family:var(--playpilot-font-family)}.input.svelte-hin0fa:focus{outline:1px solid white}.input.svelte-hin0fa::placeholder{color:var(--playpilot-text-color-alt);opacity:.75}p.svelte-bnea4i{margin:0}strong.svelte-bnea4i{font-size:var(--playpilot-font-size-large)}.empty.svelte-bnea4i{max-width:var(--playpilot-explore-header-max-width, 600px);padding:32px;border-radius:var(--playpilot-border-radius-large);background:var(--playpilot-lighter)}.explore.svelte-qs8onx{background:var(--playpilot-explore-background, var(--playpilot-light));border-radius:var(--playpilot-border-radius-large);max-width:var(--playpilot-explore-max-width, 1200px);min-height:75vh;margin:0 auto;padding:var(--playpilot-explore-padding, 16px 16px 96px);overflow:auto;font-family:var(--playpilot-font-family);font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-font-weight, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base))}.explore.svelte-qs8onx *{box-sizing:border-box}.header.svelte-qs8onx{display:flex;flex-direction:column;gap:8px;margin:var(--playpilot-explore-header-margin, 0 0 32px);width:100%}.grid.svelte-qs8onx .header:where(.svelte-qs8onx){gap:16px}.divider.svelte-qs8onx{width:100%;height:var(--playpilot-explore-divider-height, 0);max-width:var(--playpilot-explore-header-max-width, 600px);background:var(--playpilot-explore-divider-background, var(--playpilot-text-color))}.heading.svelte-qs8onx{margin:var(--playpilot-explore-heading-margin, 4px 0);color:var(--playpilot-text-color);font-size:var(--playpilot-explore-heading-size, clamp(24px, 5vw, 32px));font-weight:var(--playpilot-explore-heading-font-weight, var(--playpilot-font-bold));text-transform:var(--playpilot-explore-heading-text-transform, var(--playpilot-normal));line-height:1.5}.description.svelte-qs8onx{max-width:var(--playpilot-explore-header-max-width, 600px);margin:var(--playpilot-explore-description-margin, 0 0 16px);color:var(--playpilot-text-color-alt);font-size:var(--playpilot-font-size-small);line-height:1.35}.grid.svelte-qs8onx .description:where(.svelte-qs8onx){font-size:var(--playpilot-font-size-base)}.titles.svelte-qs8onx{--playpilot-list-item-padding: 0;--playpilot-list-item-background: transparent;--playpilot-list-item-hover-shadow: 0 0 0 4px var(--playpilot-lighter);--playpilot-detail-image-background: var(--playpilot-content);display:flex;flex-direction:column;gap:8px}.grid.svelte-qs8onx .titles:where(.svelte-qs8onx){display:grid;grid-template-columns:repeat(var(--grid-columns),minmax(120px,1fr));gap:16px}.show-more.svelte-qs8onx{flex:0 0 100%;display:grid;margin-top:16px}.grid.svelte-qs8onx .show-more:where(.svelte-qs8onx){margin:32px auto 0;max-width:600px;width:100%}.content.svelte-6pqyv7{padding-top:32px}@keyframes svelte-9u5ezu-delay-render{0%{opacity:0}to{opacity:1}}.popover.svelte-9u5ezu{--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-9u5ezu-delay-render 0ms 1ms forwards;z-index:2147483647}.popover.flip.svelte-9u5ezu{flex-direction:column;top:auto;bottom:calc(var(--offset) + 1px);transform:translateY(calc(100% + var(--offset)))}.popover.flip.inline.svelte-9u5ezu{flex-direction:column-reverse}.popover.inline.svelte-9u5ezu{gap:0}.dialog.svelte-9u5ezu{cursor:default;position:relative;border-radius:var(--playpilot-popover-border-radius, var(--playpilot-border-radius-large));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-9u5ezu .dialog:where(.svelte-9u5ezu){border-top-left-radius:0;border-top-right-radius:0}.scroll-indicator.svelte-9u5ezu{z-index:1;position:sticky;bottom:0;pointer-events:none}.scroll-indicator.svelte-9u5ezu: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-9u5ezu{z-index:1;position:absolute;display:flex;bottom:4px;left:50%;transform:translate(-50%);opacity:.75}.scroll-indicator-icon.svelte-9u5ezu svg{fill:var(--playpilot-popover-scroll-indicator-fill, var(--playpilot-text-color))!important}.bubble.svelte-9u5ezu,.append.svelte-9u5ezu{view-transition-name:playpilot-title-extra}img.svelte-j7f9xl{position:absolute;width:1px;height:1px;border:0;opacity:0}.title-popover.svelte-d86q0q{position:absolute}p.svelte-84svc0{font-weight:var(--playpilot-after-article-text-font-weight, var(--playpilot-normal))}span.svelte-84svc0{display:block}button.svelte-84svc0{-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, var(--playpilot-border-radius-large));color:var(--playpilot-after-article-button-text-color, var(--playpilot-inherit));font-weight:var(--playpilot-after-article-button-font-weight, var(--playpilot-bold));font-size:var(--playpilot-after-article-button-font-size, var(--playpilot-border-radius-large));cursor:pointer;transition:all 50ms}button.svelte-84svc0: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, var(--playpilot-inherit));transform:var(--playpilot-after-article-button-transform-hover, var(--playpilot-scale(1.02)))}p.svelte-dawn4f{position:var(--playpilot-in-text-disclaimer-position);top:var(--playpilot-in-text-disclaimer-top);transform:var(--playpilot-in-text-disclaimer-transform);margin:var(--playpilot-in-text-disclaimer-margin);padding:var(--playpilot-in-text-disclaimer-padding);font-size:var(--playpilot-in-text-disclaimer-font-size);font-weight:var(--playpilot-in-text-disclaimer-font-weight);font-style:var(--playpilot-in-text-disclaimer-font-style);color:var(--playpilot-in-text-disclaimer-text-color)}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-k0rhfj{width:100%;padding:8px 16px;border:0;border-radius:32px;background:var(--playpilot-lighter);color:var(--playpilot-text-color-alt);font-size:12px;font-family:var(--playpilot-font-family)}input.svelte-k0rhfj:focus{background:var(--playpilot-lighter);outline:1px solid white}input.svelte-k0rhfj::placeholder{color:var(--playpilot-text-color-alt);opacity:.75}.alert.svelte-1vy4z58{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);color:#fff}.alert.warning.svelte-1vy4z58{border-color:var(--playpilot-warning);background:var(--playpilot-warning-dark)}.alert.fixed.svelte-1vy4z58{position:fixed;bottom:1rem;right:1rem;width:80%;max-width:25rem}.alert.svelte-1vy4z58 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-1d1gqdq{-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-1d1gqdq{cursor:pointer}.item.hoverable.svelte-1d1gqdq:hover{background:var(--playpilot-lighter)}.item.svelte-1d1gqdq:last-child{border-bottom:0}.poster.svelte-1d1gqdq{flex:0 0 auto;height:auto;width:28px;aspect-ratio:28/42;border-radius:4px;background:var(--playpilot-content)}.name.svelte-1d1gqdq{color:var(--playpilot-text-color)}.meta.svelte-1d1gqdq{display:flex;flex-wrap:wrap;gap:0 8px;font-size:12px}.imdb.svelte-1d1gqdq{display:flex;align-items:center;gap:4px}.open-in-new-tab.svelte-1d1gqdq{margin-left:auto;color:var(--playpilot-text-color-alt)}.open-in-new-tab.svelte-1d1gqdq:hover{color:var(--playpilot-text-color)}.search.svelte-s0qvcb{position:relative}.results.svelte-s0qvcb{z-index:1;position:absolute;top:calc(100% + 8px);left:0;right:0;height:30vh;max-height:160px;border-radius:8px;background:var(--playpilot-lighter);scrollbar-width:thin;overflow:auto}.empty.svelte-s0qvcb{padding:8px;font-size:12px;color:var(--playpilot-text-color-alt)}.selected.svelte-s0qvcb{margin:8px 0;border-radius:.5rem;border:2px solid var(--playpilot-green)}p.svelte-q5prge,label.svelte-q5prge{font-size:12px;max-width:240px;color:var(--playpilot-text-color-alt)}label.svelte-q5prge{display:block;margin-top:16px}.layout.svelte-q5prge{height:100%;display:flex;flex-direction:column;margin:0}.header.svelte-q5prge{display:flex;align-items:center;gap:8px;margin-bottom:16px}.heading.svelte-q5prge{margin:0;color:var(--playpilot-text-color);font-size:16px;line-height:normal;font-weight:400}.error.svelte-q5prge{margin-top:8px}.save.svelte-q5prge{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-q5prge:not([disabled]):hover{outline:2px solid currentColor}.save[disabled].svelte-q5prge{cursor:default;background:var(--playpilot-lighter);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}p.svelte-38hnm{margin:0}.ai-indicator.svelte-38hnm{position:relative;margin:0 8px}.content.svelte-38hnm{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-38hnm{display:flex;margin-top:4px;font-style:italic}.icon.svelte-38hnm{color:var(--playpilot-green)}.border.svelte-38hnm{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-38hnm .border:where(.svelte-38hnm){background:var(--playpilot-light)}@keyframes svelte-38hnm-rotate{to{rotate:360deg}}.animator.svelte-38hnm{position:absolute;left:50%;top:50%;transform:translateY(-50%);width:100%;height:20rem;background:var(--playpilot-green);transform-origin:left 50%;animation:svelte-38hnm-rotate 2s infinite linear;filter:blur(5rem)}.loading-bar.svelte-38hnm{display:grid;grid-template-columns:auto 3em;align-items:center}.loading-bar-progress.svelte-38hnm{height:.5em;border-radius:.25rem;background:var(--playpilot-lighter)}.loading-bar-fill.svelte-38hnm{height:100%;border-radius:.25rem;background:var(--playpilot-green);transition:width .2s}.loading-bar-label.svelte-38hnm{text-align:right}@keyframes svelte-38hnm-fade{0%,to{opacity:0}25%,75%{opacity:1}}.ellipses.svelte-38hnm span:where(.svelte-38hnm){animation:svelte-38hnm-fade 2s infinite}.ellipses.svelte-38hnm span:where(.svelte-38hnm):nth-child(1){animation-delay:.2s}.ellipses.svelte-38hnm span:where(.svelte-38hnm):nth-child(2){animation-delay:.4s}.ellipses.svelte-38hnm span:where(.svelte-38hnm):nth-child(3){animation-delay:.6s}.dismiss.svelte-38hnm{-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-38hnm:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.editor.svelte-1dzk6rn{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-1dzk6rn{overflow:hidden}.loading.svelte-1dzk6rn{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-1dzk6rn,.header.svelte-1dzk6rn{z-index:20;position:sticky;top:-16px;margin:-16px -16px 0}.handle.svelte-1dzk6rn{opacity:0;transition:opacity .15s}.editor.svelte-1dzk6rn:hover .handle:where(.svelte-1dzk6rn){opacity:1}.header.svelte-1dzk6rn{z-index:5;display:flex;align-items:center;padding:16px 16px 16px 24px;margin:0 -16px;border:0;background:var(--playpilot-dark)}.loading.svelte-1dzk6rn .header:where(.svelte-1dzk6rn){margin:-16px}.heading.svelte-1dzk6rn{margin:0 12px 0 0;color:var(--playpilot-text-color);font-size:20px;font-weight:400;line-height:normal}.bubble.svelte-1dzk6rn{-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-1dzk6rn{padding-top:8px;margin-bottom:auto}.empty.svelte-1dzk6rn{padding:8px;font-size:13.6px;font-style:italic;color:var(--playpilot-text-color-alt)}.save.svelte-1dzk6rn{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-1dzk6rn:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.save[disabled].svelte-1dzk6rn{opacity:.75;background:var(--playpilot-lighter);color:var(--playpilot-content-light)}.error.svelte-1dzk6rn{margin-top:8px}.alert.svelte-1dzk6rn{margin:8px 8px 0}.panel.svelte-1dzk6rn{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}summary.svelte-o82u5e{color:var(--playpilot-primary);font-weight:700}hr.svelte-o82u5e{border-color:var(--playpilot-primary)}button.svelte-o82u5e{cursor:pointer;padding:8px;border:1px solid var(--playpilot-primary);background:transparent;color:var(--playpilot-primary);font-family:inherit;font-weight:700}button.svelte-o82u5e:hover{color:#000;background:var(--playpilot-primary)}.debugger.svelte-o82u5e{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;color:var(--playpilot-primary)}.item.svelte-o82u5e{white-space:nowrap;overflow-x:auto;scrollbar-width:thin}.data.svelte-o82u5e{color:gray}.error.svelte-o82u5e{color:red}:root{--playpilot-primary: #fa548a;--playpilot-dark: #101426;--playpilot-light: #1b2743;--playpilot-lighter: #233257;--playpilot-content: #354367;--playpilot-content-light: #4b5b82;--playpilot-green: #53bca0;--playpilot-error: #ea5a5a;--playpilot-error-dark: #442533;--playpilot-warning: #f7c74e;--playpilot-warning-dark: #413c23;--playpilot-text-color: #fff;--playpilot-text-color-alt: #c8d4de;--playpilot-border-radius-small: 4px;--playpilot-border-radius: 8px;--playpilot-border-radius-large: 16px;--playpilot-font-family: Poppins, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;--playpilot-font-size-small: 12px;--playpilot-font-size-base: 14px;--playpilot-font-size-large: 16px;--playpilot-font-bold: 500;--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-hover-filter-brightness: 1.1}[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-scrollbar::-webkit-scrollbar{width:12px}.playpilot-styled-scrollbar::-webkit-scrollbar-track{background:var(--playpilot-light)}.playpilot-styled-scrollbar::-webkit-scrollbar-thumb{border:2px solid var(--playpilot-light);border-radius:16px;background:var(--playpilot-lighter)}.playpilot-styled-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--playpilot-content-light)}.playpilot-styled-scrollbar::-webkit-scrollbar-thumb:active{background:var(--playpilot-text-color-alt)}.playpilot-modal-open{overflow-y:hidden!important}[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%}@keyframes playpilot-poster-fly-in{0%{opacity:0;transform:translate(-50%) translateY(.5rem) scale(.5)}}@keyframes playpilot-poster-fly-out{to{opacity:0;transform:translate(-50%) translateY(.5rem) scale(.5)}}.playpilot-floating-poster{opacity:0;position:absolute;bottom:calc(100% + .15em);left:50%;transform:translate(-50%);width:40px;height:auto;border-radius:var(--playpilot-border-radius-small);box-shadow:0 2px 4px #0000001a;transform-origin:bottom center}.playpilot-floating-poster.loaded{animation:playpilot-poster-fly-in .25s cubic-bezier(.25,1.75,.5,1);opacity:1}.playpilot-floating-poster.animating-out{animation:playpilot-poster-fly-out .15s forwards}.playpilot-link-injections.svelte-hwl9kp *,[data-playpilot-explore] *{box-sizing:border-box}.playpilot-link-injections.svelte-hwl9kp svg,[data-playpilot-explore] svg{fill:none}.playpilot-link-injections.svelte-hwl9kp a,.playpilot-link-injections.svelte-hwl9kp button,.playpilot-link-injections.svelte-hwl9kp input,[data-playpilot-explore] a,[data-playpilot-explore] button,[data-playpilot-explore] input{transition:outline-offset .1s}.playpilot-link-injections.svelte-hwl9kp a:focus-visible,.playpilot-link-injections.svelte-hwl9kp button:focus-visible,.playpilot-link-injections.svelte-hwl9kp input:focus-visible,[data-playpilot-explore] a:focus-visible,[data-playpilot-explore] button:focus-visible,[data-playpilot-explore] input:focus-visible{outline:2px solid white;outline-offset:2px}
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(Se);const Te=!1;var je=Array.isArray,Na=Array.prototype.indexOf,bi=Array.from,jl=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,kn=Object.getOwnPropertyDescriptors,Pl=Object.prototype,Il=Array.prototype,_i=Object.getPrototypeOf;function Yt(t){return typeof t=="function"}const st=()=>{};function Al(t){return typeof(t==null?void 0:t.then)=="function"}function ql(t){return t()}function xi(t){for(var e=0;e<t.length;e++)t[e]()}function Da(t,e,a=!1){return t===void 0?a?e():e:t}const it=2,Sn=4,pa=8,Oa=16,nt=32,fa=64,Ra=128,qt=256,Ba=512,Ze=1024,xt=2048,Ha=4096,ct=8192,Zt=16384,Tn=32768,wt=65536,Ml=1<<17,Cn=1<<19,zn=1<<20,dt=Symbol("$state"),En=Symbol("legacy props"),wi=Symbol("");function jn(t){return t===this.v}function ki(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ll(t,e){return t!==e}function Si(t){return!ki(t,this.v)}function Nl(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Dl(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ol(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Rl(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Bl(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Hl(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Fl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Vl(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Ul(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Jt=!1,Wl=!1;function Gl(){Jt=!0}const Ti=1,Ci=2,Pn=4,Kl=8,Yl=16,Zl=1,Jl=2,Xl=4,Ql=8,$l=16,eo=1,to=2,ao=4,io=1,no=2,Me=Symbol(),zi="http://www.w3.org/2000/svg";function Re(t,e){var a={f:0,v:t,reactions:null,equals:jn,rv:0,wv:0};return a}function U(t){return ro(Re(t))}function Fa(t,e=!1){var i;const a=Re(t);return e||(a.equals=Si),Jt&&ye!==null&&ye.l!==null&&((i=ye.l).s??(i.s=[])).push(a),a}function ro(t){return _e!==null&&_e.f&it&&(vt===null?bo([t]):vt.push(t)),t}function E(t,e){return _e!==null&&aa()&&_e.f&(it|Oa)&&(vt===null||!vt.includes(t))&&Ul(),Xt(t,e)}function Xt(t,e){return t.equals(e)||(t.v,t.v=e,t.wv=Qn(),In(t,xt),aa()&&pe!==null&&pe.f&Ze&&!(pe.f&nt)&&(Fe!==null&&Fe.includes(t)?(ut(pe,xt),Ya(pe)):St===null?_o([t]):St.push(t))),e}function In(t,e){var a=t.reactions;if(a!==null)for(var i=aa(),n=a.length,r=0;r<n;r++){var o=a[r],s=o.f;s&xt||!i&&o===pe||(ut(o,e),s&(Ze|qt)&&(s&it?In(o,Ha):Ya(o)))}}let Ei=!1;function Rh(t){}function Bh(t=1){}function ee(t,e=null,a){if(typeof t!="object"||t===null||dt in t)return t;const i=_i(t);if(i!==Pl&&i!==Il)return t;var n=new Map,r=je(t),o=Re(0);r&&n.set("length",Re(t.length));var s;return new Proxy(t,{defineProperty(c,d,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&Hl();var u=n.get(d);return u===void 0?(u=Re(v.value),n.set(d,u)):E(u,ee(v.value,s)),!0},deleteProperty(c,d){var v=n.get(d);if(v===void 0)d in c&&n.set(d,Re(Me));else{if(r&&typeof d=="string"){var u=n.get("length"),p=Number(d);Number.isInteger(p)&&p<u.v&&E(u,p)}E(v,Me),An(o)}return!0},get(c,d,v){var m;if(d===dt)return t;var u=n.get(d),p=d in c;if(u===void 0&&(!p||(m=_t(c,d))!=null&&m.writable)&&(u=Re(ee(p?c[d]:Me,s)),n.set(d,u)),u!==void 0){var b=l(u);return b===Me?void 0:b}return Reflect.get(c,d,v)},getOwnPropertyDescriptor(c,d){var v=Reflect.getOwnPropertyDescriptor(c,d);if(v&&"value"in v){var u=n.get(d);u&&(v.value=l(u))}else if(v===void 0){var p=n.get(d),b=p==null?void 0:p.v;if(p!==void 0&&b!==Me)return{enumerable:!0,configurable:!0,value:b,writable:!0}}return v},has(c,d){var b;if(d===dt)return!0;var v=n.get(d),u=v!==void 0&&v.v!==Me||Reflect.has(c,d);if(v!==void 0||pe!==null&&(!u||(b=_t(c,d))!=null&&b.writable)){v===void 0&&(v=Re(u?ee(c[d],s):Me),n.set(d,v));var p=l(v);if(p===Me)return!1}return u},set(c,d,v,u){var C;var p=n.get(d),b=d in c;if(r&&d==="length")for(var m=v;m<p.v;m+=1){var f=n.get(m+"");f!==void 0?E(f,Me):m in c&&(f=Re(Me),n.set(m+"",f))}p===void 0?(!b||(C=_t(c,d))!=null&&C.writable)&&(p=Re(void 0),E(p,ee(v,s)),n.set(d,p)):(b=p.v!==Me,E(p,ee(v,s)));var h=Reflect.getOwnPropertyDescriptor(c,d);if(h!=null&&h.set&&h.set.call(u,v),!b){if(r&&typeof d=="string"){var g=n.get("length"),x=Number(d);Number.isInteger(x)&&x>=g.v&&E(g,x+1)}An(o)}return!0},ownKeys(c){l(o);var d=Reflect.ownKeys(c).filter(p=>{var b=n.get(p);return b===void 0||b.v!==Me});for(var[v,u]of n)u.v!==Me&&!(v in c)&&d.push(v);return d},setPrototypeOf(){Fl()}})}function An(t,e=1){E(t,t.v+e)}function qn(t){return t!==null&&typeof t=="object"&&dt in t?t[dt]:t}function lo(t,e){return Object.is(qn(t),qn(e))}var be,Mn,Ln;function oo(){if(be===void 0){be=window;var t=Element.prototype,e=Node.prototype;Mn=_t(e,"firstChild").get,Ln=_t(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0}}function Qt(t=""){return document.createTextNode(t)}function Mt(t){return Mn.call(t)}function Va(t){return Ln.call(t)}function _(t,e){return Mt(t)}function J(t,e){{var a=Mt(t);return a instanceof Comment&&a.data===""?Va(a):a}}function S(t,e=1,a=!1){let i=t;for(;e--;)i=Va(i);return i}function so(t){t.textContent=""}function O(t){var e=it|xt;pe===null?e|=qt:pe.f|=zn;var a=_e!==null&&_e.f&it?_e:null;const i={children:null,ctx:ye,deps:null,equals:jn,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:a??pe};return a!==null&&(a.children??(a.children=[])).push(i),i}function co(t){const e=O(t);return e.equals=Si,e}function Nn(t){var e=t.children;if(e!==null){t.children=null;for(var a=0;a<e.length;a+=1){var i=e[a];i.f&it?ji(i):$e(i)}}}function vo(t){for(var e=t.parent;e!==null;){if(!(e.f&it))return e;e=e.parent}return null}function Dn(t){var e,a=pe;He(vo(t));try{Nn(t),e=$n(t)}finally{He(a)}return e}function On(t){var e=Dn(t),a=(Tt||t.f&qt)&&t.deps!==null?Ha:Ze;ut(t,a),t.equals(e)||(t.v=e,t.wv=Qn())}function ji(t){Nn(t),xa(t,0),ut(t,Zt),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Rn(t){pe===null&&_e===null&&Ol(),_e!==null&&_e.f&qt&&Dl(),qi&&Nl()}function uo(t,e){var a=e.last;a===null?e.last=e.first=t:(a.next=t,t.prev=a,e.last=t)}function $t(t,e,a,i=!0){var n=(t&fa)!==0,r=pe,o={ctx:ye,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|xt,first:null,fn:e,last:null,next:null,parent:n?null:r,prev:null,teardown:null,transitions:null,wv:0};if(a){var s=ea;try{Zn(!0),Ka(o),o.f|=Tn}catch(v){throw $e(o),v}finally{Zn(s)}}else e!==null&&Ya(o);var c=a&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&zn)===0;if(!c&&!n&&i&&(r!==null&&uo(o,r),_e!==null&&_e.f&it)){var d=_e;(d.children??(d.children=[])).push(o)}return o}function po(){return _e===null?!1:!Tt}function Bn(t){const e=$t(pa,null,!1);return ut(e,Ze),e.teardown=t,e}function Ge(t){Rn();var e=pe!==null&&(pe.f&nt)!==0&&ye!==null&&!ye.m;if(e){var a=ye;(a.e??(a.e=[])).push({fn:t,effect:pe,reaction:_e})}else{var i=ht(t);return i}}function fo(t){return Rn(),ha(t)}function ho(t){const e=$t(fa,t,!0);return(a={})=>new Promise(i=>{a.outro?lt(e,()=>{$e(e),i(void 0)}):($e(e),i(void 0))})}function ht(t){return $t(Sn,t,!1)}function ha(t){return $t(pa,t,!0)}function M(t){return rt(t)}function rt(t,e=0){return $t(pa|Oa|e,t,!0)}function Be(t,e=!0){return $t(pa|nt,t,!0,e)}function Hn(t){var e=t.teardown;if(e!==null){const a=qi,i=_e;Jn(!0),Ke(null);try{e.call(null)}finally{Jn(a),Ke(i)}}}function Fn(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var a=0;a<e.length;a+=1)ji(e[a])}}function Vn(t,e=!1){var a=t.first;for(t.first=t.last=null;a!==null;){var i=a.next;$e(a,e),a=i}}function go(t){for(var e=t.first;e!==null;){var a=e.next;e.f&nt||$e(e),e=a}}function $e(t,e=!0){var a=!1;if((e||t.f&Cn)&&t.nodes_start!==null){for(var i=t.nodes_start,n=t.nodes_end;i!==null;){var r=i===n?null:Va(i);i.remove(),i=r}a=!0}Vn(t,e&&!a),Fn(t),xa(t,0),ut(t,Zt);var o=t.transitions;if(o!==null)for(const c of o)c.stop();Hn(t);var s=t.parent;s!==null&&s.first!==null&&Un(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Un(t){var e=t.parent,a=t.prev,i=t.next;a!==null&&(a.next=i),i!==null&&(i.prev=a),e!==null&&(e.first===t&&(e.first=i),e.last===t&&(e.last=a))}function lt(t,e){var a=[];Pi(t,a,!0),Wn(a,()=>{$e(t),e&&e()})}function Wn(t,e){var a=t.length;if(a>0){var i=()=>--a||e();for(var n of t)n.out(i)}else e()}function Pi(t,e,a){if(!(t.f&ct)){if(t.f^=ct,t.transitions!==null)for(const o of t.transitions)(o.is_global||a)&&e.push(o);for(var i=t.first;i!==null;){var n=i.next,r=(i.f&wt)!==0||(i.f&nt)!==0;Pi(i,e,r?a:!1),i=n}}}function kt(t){Gn(t,!0)}function Gn(t,e){if(t.f&ct){ba(t)&&Ka(t),t.f^=ct;for(var a=t.first;a!==null;){var i=a.next,n=(a.f&wt)!==0||(a.f&nt)!==0;Gn(a,n?e:!1),a=i}if(t.transitions!==null)for(const r of t.transitions)(r.is_global||e)&&r.in()}}let Ua=!1,Ii=[];function Kn(){Ua=!1;const t=Ii.slice();Ii=[],xi(t)}function Lt(t){Ua||(Ua=!0,queueMicrotask(Kn)),Ii.push(t)}function mo(){Ua&&Kn()}function Ai(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}const Yn=0,yo=1;let ga=!1,Wa=Yn,ma=!1,ya=null,ea=!1,qi=!1;function Zn(t){ea=t}function Jn(t){qi=t}let Nt=[],ta=0,Hh=[],_e=null;function Ke(t){_e=t}let pe=null;function He(t){pe=t}let vt=null;function bo(t){vt=t}let Fe=null,Je=0,St=null;function _o(t){St=t}let Xn=1,Mi=0,Tt=!1,ye=null;function Ga(t){ye=t}function Qn(){return++Xn}function aa(){return!Jt||ye!==null&&ye.l===null}function ba(t){var d;var e=t.f;if(e&xt)return!0;if(e&Ha){var a=t.deps,i=(e&qt)!==0;if(a!==null){var n,r,o=(e&Ba)!==0,s=i&&pe!==null&&!Tt,c=a.length;if(o||s){for(n=0;n<c;n++)r=a[n],(o||!((d=r==null?void 0:r.reactions)!=null&&d.includes(t)))&&(r.reactions??(r.reactions=[])).push(t);o&&(t.f^=Ba)}for(n=0;n<c;n++)if(r=a[n],ba(r)&&On(r),r.wv>t.wv)return!0}(!i||pe!==null&&!Tt)&&ut(t,Ze)}return!1}function xo(t,e){for(var a=e;a!==null;){if(a.f&Ra)try{a.fn(t);return}catch{a.f^=Ra}a=a.parent}throw ga=!1,t}function wo(t){return(t.f&Zt)===0&&(t.parent===null||(t.parent.f&Ra)===0)}function Li(){ga=!1}function _a(t,e,a,i){if(ga){if(a===null&&(ga=!1),wo(e))throw t;return}a!==null&&(ga=!0);{xo(t,e);return}}function $n(t){var p;var e=Fe,a=Je,i=St,n=_e,r=Tt,o=vt,s=ye,c=t.f;Fe=null,Je=0,St=null,_e=c&(nt|fa)?null:t,Tt=!ea&&(c&qt)!==0,vt=null,ye=t.ctx,Mi++;try{var d=(0,t.fn)(),v=t.deps;if(Fe!==null){var u;if(xa(t,Je),v!==null&&Je>0)for(v.length=Je+Fe.length,u=0;u<Fe.length;u++)v[Je+u]=Fe[u];else t.deps=v=Fe;if(!Tt)for(u=Je;u<v.length;u++)((p=v[u]).reactions??(p.reactions=[])).push(t)}else v!==null&&Je<v.length&&(xa(t,Je),v.length=Je);return d}finally{Fe=e,Je=a,St=i,_e=n,Tt=r,vt=o,ye=s}}function ko(t,e){let a=e.reactions;if(a!==null){var i=Na.call(a,t);if(i!==-1){var n=a.length-1;n===0?a=e.reactions=null:(a[i]=a[n],a.pop())}}a===null&&e.f&it&&(Fe===null||!Fe.includes(e))&&(ut(e,Ha),e.f&(qt|Ba)||(e.f^=Ba),xa(e,0))}function xa(t,e){var a=t.deps;if(a!==null)for(var i=e;i<a.length;i++)ko(t,a[i])}function Ka(t){var e=t.f;if(!(e&Zt)){ut(t,Ze);var a=pe,i=ye;pe=t;try{e&Oa?go(t):Vn(t),Fn(t),Hn(t);var n=$n(t);t.teardown=typeof n=="function"?n:null,t.wv=Xn;var r=t.deps,o;Te&&Wl&&t.f&xt}catch(s){_a(s,t,a,i||t.ctx)}finally{pe=a}}}function er(){if(ta>1e3){ta=0;try{Rl()}catch(t){if(ya!==null)_a(t,ya,null);else throw t}}ta++}function tr(t){var e=t.length;if(e!==0){er();var a=ea;ea=!0;try{for(var i=0;i<e;i++){var n=t[i];n.f&Ze||(n.f^=Ze);var r=[];ar(n,r),So(r)}}finally{ea=a}}}function So(t){var e=t.length;if(e!==0)for(var a=0;a<e;a++){var i=t[a];if(!(i.f&(Zt|ct)))try{ba(i)&&(Ka(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?Un(i):i.fn=null))}catch(n){_a(n,i,null,i.ctx)}}}function To(){if(ma=!1,ta>1001)return;const t=Nt;Nt=[],tr(t),ma||(ta=0,ya=null)}function Ya(t){Wa===Yn&&(ma||(ma=!0,queueMicrotask(To))),ya=t;for(var e=t;e.parent!==null;){e=e.parent;var a=e.f;if(a&(fa|nt)){if(!(a&Ze))return;e.f^=Ze}}Nt.push(e)}function ar(t,e){var a=t.first,i=[];e:for(;a!==null;){var n=a.f,r=(n&nt)!==0,o=r&&(n&Ze)!==0,s=a.next;if(!o&&!(n&ct))if(n&pa){if(r)a.f^=Ze;else try{ba(a)&&Ka(a)}catch(u){_a(u,a,null,a.ctx)}var c=a.first;if(c!==null){a=c;continue}}else n&Sn&&i.push(a);if(s===null){let u=a.parent;for(;u!==null;){if(t===u)break e;var d=u.next;if(d!==null){a=d;continue e}u=u.parent}}a=s}for(var v=0;v<i.length;v++)c=i[v],e.push(c),ar(c,e)}function Ni(t){var e=Wa,a=Nt;try{er();const n=[];Wa=yo,Nt=n,ma=!1,tr(a);var i=t==null?void 0:t();return mo(),(Nt.length>0||n.length>0)&&Ni(),ta=0,ya=null,i}finally{Wa=e,Nt=a}}async function wa(){await Promise.resolve(),Ni()}function l(t){var v;var e=t.f,a=(e&it)!==0;if(a&&e&Zt){var i=Dn(t);return ji(t),i}if(_e!==null){vt!==null&&vt.includes(t)&&Vl();var n=_e.deps;t.rv<Mi&&(t.rv=Mi,Fe===null&&n!==null&&n[Je]===t?Je++:Fe===null?Fe=[t]:Fe.push(t),St!==null&&pe!==null&&pe.f&Ze&&!(pe.f&nt)&&St.includes(t)&&(ut(pe,xt),Ya(pe)))}else if(a&&t.deps===null)for(var r=t,o=r.parent,s=r;o!==null;)if(o.f&it){var c=o;s=c,o=c.parent}else{var d=o;(v=d.deriveds)!=null&&v.includes(s)||(d.deriveds??(d.deriveds=[])).push(s);break}return a&&(r=t,ba(r)&&On(r)),t.v}function Xe(t){const e=_e;try{return _e=null,t()}finally{_e=e}}const Co=-7169;function ut(t,e){t.f=t.f&Co|e}function Di(t){return ir().get(t)}function Oi(t,e){return ir().set(t,e),e}function ir(t){return ye===null&&Ai(),ye.c??(ye.c=new Map(zo(ye)||void 0))}function zo(t){let e=t.p;for(;e!==null;){const a=e.c;if(a!==null)return a;e=e.p}return null}function Eo(t,e=1){var a=l(t),i=e===1?a++:a--;return E(t,a),i}function ae(t,e=!1,a){ye={p:ye,c:null,e:null,m:!1,s:t,x:null,l:null},Jt&&!e&&(ye.l={s:null,u:null,r1:[],r2:Re(!1)})}function ie(t){const e=ye;if(e!==null){t!==void 0&&(e.x=t);const o=e.e;if(o!==null){var a=pe,i=_e;e.e=null;try{for(var n=0;n<o.length;n++){var r=o[n];He(r.effect),Ke(r.reaction),ht(r.fn)}}finally{He(a),Ke(i)}}ye=e.p,e.m=!0}return t||{}}function nr(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(dt in t)Ri(t);else if(!Array.isArray(t))for(let e in t){const a=t[e];typeof a=="object"&&a&&dt in a&&Ri(a)}}}function Ri(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let i in t)try{Ri(t[i],e)}catch{}const a=_i(t);if(a!==Object.prototype&&a!==Array.prototype&&a!==Map.prototype&&a!==Set.prototype&&a!==Date.prototype){const i=kn(a);for(let n in i){const r=i[n].get;if(r)try{r.call(t)}catch{}}}}}function jo(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Po=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Io(t){return Po.includes(t)}const Ao={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function qo(t){return t=t.toLowerCase(),Ao[t]??t}const Mo=["touchstart","touchmove"];function Lo(t){return Mo.includes(t)}function No(t,e){if(e){const a=document.body;t.autofocus=!0,Lt(()=>{document.activeElement===a&&t.focus()})}}let rr=!1;function Do(){rr||(rr=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const a of t.target.elements)(e=a.__on_r)==null||e.call(a)})},{capture:!0}))}function Oo(t,e,a,i=!0){i&&a();for(var n of e)t.addEventListener(n,a);Bn(()=>{for(var r of e)t.removeEventListener(r,a)})}function Bi(t){var e=_e,a=pe;Ke(null),He(null);try{return t()}finally{Ke(e),He(a)}}function lr(t,e,a,i=a){t.addEventListener(e,()=>Bi(a));const n=t.__on_r;n?t.__on_r=()=>{n(),i(!0)}:t.__on_r=()=>i(!0),Do()}const or=new Set,Hi=new Set;function Fi(t,e,a,i){function n(r){if(i.capture||ka.call(e,r),!r.cancelBubble)return Bi(()=>a.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Lt(()=>{e.addEventListener(t,n,i)}):e.addEventListener(t,n,i),n}function Ro(t,e,a,i={}){var n=Fi(e,t,a,i);return()=>{t.removeEventListener(e,n,i)}}function se(t,e,a,i,n){var r={capture:i,passive:n},o=Fi(t,e,a,r);(e===document.body||e===window||e===document)&&Bn(()=>{e.removeEventListener(t,o,r)})}function fe(t){for(var e=0;e<t.length;e++)or.add(t[e]);for(var a of Hi)a(t)}function ka(t){var x;var e=this,a=e.ownerDocument,i=t.type,n=((x=t.composedPath)==null?void 0:x.call(t))||[],r=n[0]||t.target,o=0,s=t.__root;if(s){var c=n.indexOf(s);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var d=n.indexOf(e);if(d===-1)return;c<=d&&(o=c)}if(r=n[o]||t.target,r!==e){jl(t,"currentTarget",{configurable:!0,get(){return r||a}});var v=_e,u=pe;Ke(null),He(null);try{for(var p,b=[];r!==null;){var m=r.assignedSlot||r.parentNode||r.host||null;try{var f=r["__"+i];if(f!==void 0&&!r.disabled)if(je(f)){var[h,...g]=f;h.apply(r,[t,...g])}else f.call(r,t)}catch(C){p?b.push(C):p=C}if(t.cancelBubble||m===e||m===null)break;r=m}if(p){for(let C of b)queueMicrotask(()=>{throw C});throw p}}finally{t.__root=e,delete t.currentTarget,Ke(v),He(u)}}}function Bo(t){var e;e=document.head.appendChild(Qt());try{rt(()=>t(e),Cn)}finally{}}function Vi(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Dt(t,e){var a=pe;a.nodes_start===null&&(a.nodes_start=t,a.nodes_end=e)}function T(t,e){var a=(e&io)!==0,i=(e&no)!==0,n,r=!t.startsWith("<!>");return()=>{n===void 0&&(n=Vi(r?t:"<!>"+t),a||(n=Mt(n)));var o=i?document.importNode(n,!0):n.cloneNode(!0);if(a){var s=Mt(o),c=o.lastChild;Dt(s,c)}else Dt(o,o);return o}}function Pe(t,e,a="svg"){var i=!t.startsWith("<!>"),n=`<${a}>${i?t:"<!>"+t}</${a}>`,r;return()=>{if(!r){var o=Vi(n),s=Mt(o);r=Mt(s)}var c=r.cloneNode(!0);return Dt(c,c),c}}function Le(t=""){{var e=Qt(t+"");return Dt(e,e),e}}function he(){var t=document.createDocumentFragment(),e=document.createComment(""),a=Qt();return t.append(e,a),Dt(e,a),t}function y(t,e){t!==null&&t.before(e)}let Za=!0;function sr(t){Za=t}function Z(t,e){var a=e==null?"":typeof e=="object"?e+"":e;a!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=a,t.nodeValue=a==null?"":a+"")}function pt(t,e){return Ho(t,e)}const ia=new Map;function Ho(t,{target:e,anchor:a,props:i={},events:n,context:r,intro:o=!0}){oo();var s=new Set,c=u=>{for(var p=0;p<u.length;p++){var b=u[p];if(!s.has(b)){s.add(b);var m=Lo(b);e.addEventListener(b,ka,{passive:m});var f=ia.get(b);f===void 0?(document.addEventListener(b,ka,{passive:m}),ia.set(b,1)):ia.set(b,f+1)}}};c(bi(or)),Hi.add(c);var d=void 0,v=ho(()=>{var u=a??e.appendChild(Qt());return Be(()=>{if(r){ae({});var p=ye;p.c=r}n&&(i.$$events=n),Za=o,d=t(u,i)||{},Za=!0,r&&ie()}),()=>{var m;for(var p of s){e.removeEventListener(p,ka);var b=ia.get(p);--b===0?(document.removeEventListener(p,ka),ia.delete(p)):ia.set(p,b)}Hi.delete(c),u!==a&&((m=u.parentNode)==null||m.removeChild(u))}});return Ui.set(d,v),d}let Ui=new WeakMap;function Ot(t,e){const a=Ui.get(t);return a?(Ui.delete(t),a(e)):Promise.resolve()}const Wi=0,Ja=1,Gi=2;function Xa(t,e,a,i,n){var r=t,o=aa(),s=ye,c=Me,d,v,u,p=(o?Re:Fa)(void 0),b=(o?Re:Fa)(void 0),m=!1;function f(g,x){m=!0,x&&(He(h),Ke(h),Ga(s));try{g===Wi&&a&&(d?kt(d):d=Be(()=>a(r))),g===Ja&&i&&(v?kt(v):v=Be(()=>i(r,p))),g===Gi&&n&&(u?kt(u):u=Be(()=>n(r,b))),g!==Wi&&d&<(d,()=>d=null),g!==Ja&&v&<(v,()=>v=null),g!==Gi&&u&<(u,()=>u=null)}finally{x&&(Ga(null),Ke(null),He(null),Ni())}}var h=rt(()=>{if(c!==(c=e())){if(Al(c)){var g=c;m=!1,g.then(x=>{g===c&&(Xt(p,x),f(Ja,!0))},x=>{if(g===c&&(Xt(b,x),f(Gi,!0),!n))throw b.v}),Lt(()=>{m||f(Wi,!0)})}else Xt(p,c),f(Ja,!1);return()=>c=Me}})}function D(t,e,a=!1){var i=t,n=null,r=null,o=Me,s=a?wt:0,c=!1;const d=(u,p=!0)=>{c=!0,v(p,u)},v=(u,p)=>{o!==(o=u)&&(o?(n?kt(n):p&&(n=Be(()=>p(i))),r&<(r,()=>{r=null})):(r?kt(r):p&&(r=Be(()=>p(i))),n&<(n,()=>{n=null})))};rt(()=>{c=!1,e(d),c||v(null,null)},s)}function na(t,e,a){var i=t,n=Me,r,o=aa()?Ll:ki;rt(()=>{o(n,n=e())&&(r&<(r),r=Be(()=>a(i)))})}let Rt=null;function cr(t){Rt=t}function Ie(t,e){return e}function Fo(t,e,a,i){for(var n=[],r=e.length,o=0;o<r;o++)Pi(e[o].e,n,!0);var s=r>0&&n.length===0&&a!==null;if(s){var c=a.parentNode;so(c),c.append(a),i.clear(),Ct(t,e[0].prev,e[r-1].next)}Wn(n,()=>{for(var d=0;d<r;d++){var v=e[d];s||(i.delete(v.k),Ct(t,v.prev,v.next)),$e(v.e,!s)}})}function Ce(t,e,a,i,n,r=null){var o=t,s={flags:e,items:new Map,first:null},c=(e&Pn)!==0;if(c){var d=t;o=d.appendChild(Qt())}var v=null,u=!1;rt(()=>{var p=a(),b=je(p)?p:p==null?[]:bi(p),m=b.length;if(!(u&&m===0)){u=m===0;{var f=_e;Vo(b,s,o,n,e,(f.f&ct)!==0,i)}r!==null&&(m===0?v?kt(v):v=Be(()=>r(o)):v!==null&<(v,()=>{v=null})),a()}})}function Vo(t,e,a,i,n,r,o,s){var H,A,W,ne;var c=(n&Kl)!==0,d=(n&(Ti|Ci))!==0,v=t.length,u=e.items,p=e.first,b=p,m,f=null,h,g=[],x=[],C,j,z,I;if(c)for(I=0;I<v;I+=1)C=t[I],j=o(C,I),z=u.get(j),z!==void 0&&((H=z.a)==null||H.measure(),(h??(h=new Set)).add(z));for(I=0;I<v;I+=1){if(C=t[I],j=o(C,I),z=u.get(j),z===void 0){var V=b?b.e.nodes_start:a;f=Wo(V,e,f,f===null?e.first:f.next,C,j,I,i,n),u.set(j,f),g=[],x=[],b=f.next;continue}if(d&&Uo(z,C,I,n),z.e.f&ct&&(kt(z.e),c&&((A=z.a)==null||A.unfix(),(h??(h=new Set)).delete(z))),z!==b){if(m!==void 0&&m.has(z)){if(g.length<x.length){var P=x[0],k;f=P.prev;var q=g[0],R=g[g.length-1];for(k=0;k<g.length;k+=1)dr(g[k],P,a);for(k=0;k<x.length;k+=1)m.delete(x[k]);Ct(e,q.prev,R.next),Ct(e,f,q),Ct(e,R,P),b=P,f=R,I-=1,g=[],x=[]}else m.delete(z),dr(z,b,a),Ct(e,z.prev,z.next),Ct(e,z,f===null?e.first:f.next),Ct(e,f,z),f=z;continue}for(g=[],x=[];b!==null&&b.k!==j;)(r||!(b.e.f&ct))&&(m??(m=new Set)).add(b),x.push(b),b=b.next;if(b===null)continue;z=b}g.push(z),f=z,b=z.next}if(b!==null||m!==void 0){for(var B=m===void 0?[]:bi(m);b!==null;)(r||!(b.e.f&ct))&&B.push(b),b=b.next;var L=B.length;if(L>0){var F=n&Pn&&v===0?a:null;if(c){for(I=0;I<L;I+=1)(W=B[I].a)==null||W.measure();for(I=0;I<L;I+=1)(ne=B[I].a)==null||ne.fix()}Fo(e,B,F,u)}}c&&Lt(()=>{var Q;if(h!==void 0)for(z of h)(Q=z.a)==null||Q.apply()}),pe.first=e.first&&e.first.e,pe.last=f&&f.e}function Uo(t,e,a,i){i&Ti&&Xt(t.v,e),i&Ci?Xt(t.i,a):t.i=a}function Wo(t,e,a,i,n,r,o,s,c,d){var v=Rt,u=(c&Ti)!==0,p=(c&Yl)===0,b=u?p?Fa(n):Re(n):n,m=c&Ci?Re(o):o,f={i:m,v:b,k:r,a:null,e:null,prev:a,next:i};Rt=f;try{return f.e=Be(()=>s(t,b,m),Ei),f.e.prev=a&&a.e,f.e.next=i&&i.e,a===null?e.first=f:(a.next=f,a.e.next=f.e),i!==null&&(i.prev=f,i.e.prev=f.e),f}finally{Rt=v}}function dr(t,e,a){for(var i=t.next?t.next.e.nodes_start:a,n=e?e.e.nodes_start:a,r=t.e.nodes_start;r!==i;){var o=Va(r);n.before(r),r=o}}function Ct(t,e,a){e===null?t.first=a:(e.next=a,e.e.next=a&&a.e),a!==null&&(a.prev=e,a.e.prev=e&&e.e)}function Go(t,e,a,i,n){var r=t,o="",s;rt(()=>{o!==(o=e()??"")&&(s!==void 0&&($e(s),s=void 0),o!==""&&(s=Be(()=>{var c=o+"",d=Vi(c);Dt(Mt(d),d.lastChild),r.before(d)})))})}function qe(t,e,...a){var i=t,n=st,r;rt(()=>{n!==(n=e())&&(r&&($e(r),r=null),r=Be(()=>n(i,...a)))},wt)}function vr(t,e,a){var i=t,n,r;rt(()=>{n!==(n=e())&&(r&&(lt(r),r=null),n&&(r=Be(()=>a(i,n))))},wt)}function ur(t,e,a,i,n,r){var o,s,c=null,d=t,v,u=Rt;rt(()=>{const p=e()||null;var b=p==="svg"?zi:null;if(p!==o){var m=Rt;cr(u),v&&(p===null?lt(v,()=>{v=null,s=null}):p===s?kt(v):($e(v),sr(!1))),p&&p!==s&&(v=Be(()=>{if(c=b?document.createElementNS(b,p):document.createElement(p),Dt(c,c),i){var f=c.appendChild(Qt());i(c,f)}pe.nodes_end=c,d.before(c)})),o=p,o&&(s=o),sr(!0),cr(m)}},wt)}function et(t,e,a){ht(()=>{var i=Xe(()=>e(t,a==null?void 0:a())||{});if(a&&(i!=null&&i.update)){var n=!1,r={};ha(()=>{var o=a();nr(o),n&&ki(r,o)&&(r=o,i.update(o))}),n=!0}if(i!=null&&i.destroy)return()=>i.destroy()})}function pr(t){var e,a,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(a=pr(t[e]))&&(i&&(i+=" "),i+=a)}else for(a in t)t[a]&&(i&&(i+=" "),i+=a);return i}function Ko(){for(var t,e,a=0,i="",n=arguments.length;a<n;a++)(t=arguments[a])&&(e=pr(t))&&(i&&(i+=" "),i+=e);return i}function Yo(t){return typeof t=="object"?Ko(t):t??""}function Zo(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function le(t,e,a,i){var n=t.__attributes??(t.__attributes={});n[e]!==(n[e]=a)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[wi]=a),a==null?t.removeAttribute(e):typeof a!="string"&&gr(t).includes(e)?t[e]=a:t.setAttribute(e,a))}function fr(t,e,a,i,n=!1,r=!1,o=!1){var s=e||{},c=t.tagName==="OPTION";for(var d in e)d in a||(a[d]=null);a.class&&(a.class=Yo(a.class)),i!==void 0&&(a.class=a.class?a.class+" "+i:i);var v=gr(t),u=t.__attributes??(t.__attributes={});for(const g in a){let x=a[g];if(c&&g==="value"&&x==null){t.value=t.__value="",s[g]=x;continue}var p=s[g];if(x!==p){s[g]=x;var b=g[0]+g[1];if(b!=="$$"){if(b==="on"){const C={},j="$$"+g;let z=g.slice(2);var m=Io(z);if(jo(z)&&(z=z.slice(0,-7),C.capture=!0),!m&&p){if(x!=null)continue;t.removeEventListener(z,s[j],C),s[j]=null}if(x!=null)if(m)t[`__${z}`]=x,fe([z]);else{let I=function(V){s[g].call(this,V)};s[j]=Fi(z,t,I,C)}else m&&(t[`__${z}`]=void 0)}else if(g==="style"&&x!=null)t.style.cssText=x+"";else if(g==="autofocus")No(t,!!x);else if(g==="__value"||g==="value"&&x!=null)t.value=t[g]=t.__value=x;else if(g==="selected"&&c)Zo(t,x);else{var f=g;n||(f=qo(f));var h=f==="defaultValue"||f==="defaultChecked";if(x==null&&!r&&!h)if(u[g]=null,f==="value"||f==="checked"){let C=t;if(f==="value"){let j=C.defaultValue;C.removeAttribute(f),C.defaultValue=j}else{let j=C.defaultChecked;C.removeAttribute(f),C.defaultChecked=j}}else t.removeAttribute(g);else h||v.includes(f)&&(r||typeof x!="string")?t[f]=x:typeof x!="function"&&le(t,f,x)}g==="style"&&"__styles"in t&&(t.__styles={})}}}return s}var hr=new Map;function gr(t){var e=hr.get(t.nodeName);if(e)return e;hr.set(t.nodeName,e=[]);for(var a,i=t,n=Element.prototype;n!==i;){a=kn(i);for(var r in a)a[r].set&&e.push(r);i=_i(i)}return e}function Jo(t){if(t.loading==="lazy"){var e=t.src;t[wi]=null,t.loading="eager",t.removeAttribute("src"),requestAnimationFrame(()=>{t[wi]!=="eager"&&(t.loading="lazy"),t.src=e})}}function Xo(t,e,a){var i=t.__className,n=mr(e);(i!==n||Ei)&&(n===""?t.removeAttribute("class"):t.setAttribute("class",n),t.__className=n)}function Sa(t,e,a){var i=t.__className,n=mr(e);(i!==n||Ei)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function mr(t,e){return(t??"")+""}function ce(t,e,a){if(a){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}function Ee(t,e,a,i){var n=t.__styles??(t.__styles={});n[e]!==a&&(n[e]=a,a==null?t.style.removeProperty(e):t.style.setProperty(e,a,""))}const Qo=()=>performance.now(),gt={tick:t=>requestAnimationFrame(t),now:()=>Qo(),tasks:new Set};function yr(){const t=gt.now();gt.tasks.forEach(e=>{e.c(t)||(gt.tasks.delete(e),e.f())}),gt.tasks.size!==0&>.tick(yr)}function $o(t){let e;return gt.tasks.size===0&>.tick(yr),{promise:new Promise(a=>{gt.tasks.add(e={c:t,f:a})}),abort(){gt.tasks.delete(e)}}}function Qa(t,e){t.dispatchEvent(new CustomEvent(e))}function es(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(a=>a[0].toUpperCase()+a.slice(1)).join("")}function br(t){const e={},a=t.split(";");for(const i of a){const[n,r]=i.split(":");if(!n||r===void 0)break;const o=es(n.trim());e[o]=r.trim()}return e}const ts=t=>t;function as(t,e,a){var i=Rt,n,r,o,s=null;i.a??(i.a={element:t,measure(){n=this.element.getBoundingClientRect()},apply(){if(o==null||o.abort(),r=this.element.getBoundingClientRect(),n.left!==r.left||n.right!==r.right||n.top!==r.top||n.bottom!==r.bottom){const c=e()(this.element,{from:n,to:r},a==null?void 0:a());o=$a(this.element,c,void 0,1,()=>{o==null||o.abort(),o=void 0})}},fix(){if(!t.getAnimations().length){var{position:c,width:d,height:v}=getComputedStyle(t);if(c!=="absolute"&&c!=="fixed"){var u=t.style;s={position:u.position,width:u.width,height:u.height,transform:u.transform},u.position="absolute",u.width=d,u.height=v;var p=t.getBoundingClientRect();if(n.left!==p.left||n.top!==p.top){var b=`translate(${n.left-p.left}px, ${n.top-p.top}px)`;u.transform=u.transform?`${u.transform} ${b}`:b}}}},unfix(){if(s){var c=t.style;c.position=s.position,c.width=s.width,c.height=s.height,c.transform=s.transform}}}),i.a.element=t}function xe(t,e,a,i){var n=(t&eo)!==0,r=(t&to)!==0,o=n&&r,s=(t&ao)!==0,c=o?"both":n?"in":"out",d,v=e.inert,u,p;function b(){var x=_e,C=pe;Ke(null),He(null);try{return d??(d=a()(e,(i==null?void 0:i())??{},{direction:c}))}finally{Ke(x),He(C)}}var m={is_global:s,in(){var x;if(e.inert=v,!n){p==null||p.abort(),(x=p==null?void 0:p.reset)==null||x.call(p);return}r||u==null||u.abort(),Qa(e,"introstart"),u=$a(e,b(),p,1,()=>{Qa(e,"introend"),u==null||u.abort(),u=d=void 0})},out(x){if(!r){x==null||x(),d=void 0;return}e.inert=!0,Qa(e,"outrostart"),p=$a(e,b(),u,0,()=>{Qa(e,"outroend"),x==null||x()})},stop:()=>{u==null||u.abort(),p==null||p.abort()}},f=pe;if((f.transitions??(f.transitions=[])).push(m),n&&Za){var h=s;if(!h){for(var g=f.parent;g&&g.f&wt;)for(;(g=g.parent)&&!(g.f&Oa););h=!g||(g.f&Tn)!==0}h&&ht(()=>{Xe(()=>m.in())})}}function $a(t,e,a,i,n){var r=i===1;if(Yt(e)){var o,s=!1;return Lt(()=>{if(!s){var h=e({direction:r?"in":"out"});o=$a(t,h,a,i,n)}}),{abort:()=>{s=!0,o==null||o.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(a==null||a.deactivate(),!(e!=null&&e.duration))return n(),{abort:st,deactivate:st,reset:st,t:()=>i};const{delay:c=0,css:d,tick:v,easing:u=ts}=e;var p=[];if(r&&a===void 0&&(v&&v(0,1),d)){var b=br(d(0,1));p.push(b,b)}var m=()=>1-i,f=t.animate(p,{duration:c});return f.onfinish=()=>{var h=(a==null?void 0:a.t())??1-i;a==null||a.abort();var g=i-h,x=e.duration*Math.abs(g),C=[];if(x>0){if(d)for(var j=Math.ceil(x/16.666666666666668),z=0;z<=j;z+=1){var I=h+g*u(z/j),V=d(I,1-I);C.push(br(V))}m=()=>{var P=f.currentTime;return h+g*u(P/x)},v&&$o(()=>{if(f.playState!=="running")return!1;var P=m();return v(P,1-P),!0})}f=t.animate(C,{duration:x,fill:"forwards"}),f.onfinish=()=>{m=()=>i,v==null||v(i,1-i),n()}},{abort:()=>{f&&(f.cancel(),f.effect=null,f.onfinish=st)},deactivate:()=>{n=st},reset:()=>{i===0&&(v==null||v(1,0))},t:()=>m()}}function Ta(t,e,a=e){var i=aa();lr(t,"input",n=>{var r=n?t.defaultValue:t.value;if(r=Ki(t)?Yi(r):r,a(r),i&&r!==(r=e())){var o=t.selectionStart,s=t.selectionEnd;t.value=r??"",s!==null&&(t.selectionStart=o,t.selectionEnd=Math.min(s,t.value.length))}}),Xe(e)==null&&t.value&&a(Ki(t)?Yi(t.value):t.value),ha(()=>{var n=e();Ki(t)&&n===Yi(t.value)||t.type==="date"&&!n&&!t.value||n!==t.value&&(t.value=n??"")})}function Ki(t){var e=t.type;return e==="number"||e==="range"}function Yi(t){return t===""?null:+t}function _r(t,e,a){if(t.multiple)return rs(t,e);for(var i of t.options){var n=Ca(i);if(lo(n,e)){i.selected=!0;return}}(!a||e!==void 0)&&(t.selectedIndex=-1)}function is(t,e){ht(()=>{var a=new MutationObserver(()=>{var i=t.__value;_r(t,i)});return a.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),()=>{a.disconnect()}})}function ns(t,e,a=e){var i=!0;lr(t,"change",n=>{var r=n?"[selected]":":checked",o;if(t.multiple)o=[].map.call(t.querySelectorAll(r),Ca);else{var s=t.querySelector(r)??t.querySelector("option:not([disabled])");o=s&&Ca(s)}a(o)}),ht(()=>{var n=e();if(_r(t,n,i),i&&n===void 0){var r=t.querySelector(":checked");r!==null&&(n=Ca(r),a(n))}t.__value=n,i=!1}),is(t)}function rs(t,e){for(var a of t.options)a.selected=~e.indexOf(Ca(a))}function Ca(t){return"__value"in t?t.__value:t.value}const mi=class mi{constructor(e){Kt(this,gi);Kt(this,It,new WeakMap);Kt(this,da);Kt(this,Aa);La(this,Aa,e)}observe(e,a){var i=ot(this,It).get(e)||new Set;return i.add(a),ot(this,It).set(e,i),zl(this,gi,El).call(this).observe(e,ot(this,Aa)),()=>{var n=ot(this,It).get(e);n.delete(a),n.size===0&&(ot(this,It).delete(e),ot(this,da).unobserve(e))}}};It=new WeakMap,da=new WeakMap,Aa=new WeakMap,gi=new WeakSet,El=function(){return ot(this,da)??La(this,da,new ResizeObserver(e=>{for(var a of e){mi.entries.set(a.target,a);for(var i of ot(this,It).get(a.target)||[])i(a)}}))},Cl(mi,"entries",new WeakMap);let Zi=mi;var ls=new Zi({box:"border-box"});function Bt(t,e,a){var i=ls.observe(t,()=>a(t[e]));ht(()=>(Xe(()=>a(t[e])),i))}function xr(t,e){return t===e||(t==null?void 0:t[dt])===e}function Qe(t={},e,a,i){return ht(()=>{var n,r;return ha(()=>{n=r,r=[],Xe(()=>{t!==a(...r)&&(e(t,...r),n&&xr(a(...n),t)&&e(null,...n))})}),()=>{Lt(()=>{r&&xr(a(...r),t)&&e(null,...r)})}}),t}function wr(t,e){Oo(window,["resize"],()=>Bi(()=>e(window[t])))}function ei(t=!1){const e=ye,a=e.l.u;if(!a)return;let i=()=>nr(e.s);if(t){let n=0,r={};const o=O(()=>{let s=!1;const c=e.s;for(const d in c)c[d]!==r[d]&&(r[d]=c[d],s=!0);return s&&n++,n});i=()=>l(o)}a.b.length&&fo(()=>{kr(e,i),xi(a.b)}),Ge(()=>{const n=Xe(()=>a.m.map(ql));return()=>{for(const r of n)typeof r=="function"&&r()}}),a.a.length&&Ge(()=>{kr(e,i),xi(a.a)})}function kr(t,e){if(t.l.s)for(const a of t.l.s)l(a);e()}let ti=!1;function os(t){var e=ti;try{return ti=!1,[t(),ti]}finally{ti=e}}const ss={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function cs(t,e,a){return new Proxy({props:t,exclude:e},ss)}const ds={get(t,e){let a=t.props.length;for(;a--;){let i=t.props[a];if(Yt(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i)return i[e]}},set(t,e,a){let i=t.props.length;for(;i--;){let n=t.props[i];Yt(n)&&(n=n());const r=_t(n,e);if(r&&r.set)return r.set(a),!0}return!1},getOwnPropertyDescriptor(t,e){let a=t.props.length;for(;a--;){let i=t.props[a];if(Yt(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i){const n=_t(i,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===dt||e===En)return!1;for(let a of t.props)if(Yt(a)&&(a=a()),a!=null&&e in a)return!0;return!1},ownKeys(t){const e=[];for(let a of t.props){Yt(a)&&(a=a());for(const i in a)e.includes(i)||e.push(i)}return e}};function Sr(...t){return new Proxy({props:t},ds)}function Tr(t){for(var e=pe,a=pe;e!==null&&!(e.f&(nt|fa));)e=e.parent;try{return He(e),t()}finally{He(a)}}function N(t,e,a,i){var V;var n=(a&Zl)!==0,r=!Jt||(a&Jl)!==0,o=(a&Ql)!==0,s=(a&$l)!==0,c=!1,d;o?[d,c]=os(()=>t[e]):d=t[e];var v=dt in t||En in t,u=o&&(((V=_t(t,e))==null?void 0:V.set)??(v&&e in t&&(P=>t[e]=P)))||void 0,p=i,b=!0,m=!1,f=()=>(m=!0,b&&(b=!1,s?p=Xe(i):p=i),p);d===void 0&&i!==void 0&&(u&&r&&Bl(),d=f(),u&&u(d));var h;if(r)h=()=>{var P=t[e];return P===void 0?f():(b=!0,m=!1,P)};else{var g=Tr(()=>(n?O:co)(()=>t[e]));g.f|=Ml,h=()=>{var P=l(g);return P!==void 0&&(p=void 0),P===void 0?p:P}}if(!(a&Xl))return h;if(u){var x=t.$$legacy;return function(P,k){return arguments.length>0?((!r||!k||x||c)&&u(k?h():P),P):h()}}var C=!1,j=!1,z=Fa(d),I=Tr(()=>O(()=>{var P=h(),k=l(z);return C?(C=!1,j=!0,k):(j=!1,z.v=P)}));return n||(I.equals=Si),function(P,k){if(arguments.length>0){const q=k?l(I):r&&o?ee(P):P;return I.equals(q)||(C=!0,E(z,q),m&&p!==void 0&&(p=q),Xe(()=>l(I))),P}return l(I)}}function Cr(t,e){var a=pe,i=_e,n=ye;He(t),Ke(t),Ga(t.ctx);try{e()}finally{He(a),Ke(i),Ga(n)}}function vs(t,e,a){var i=t,n;rt(()=>{var r=pe,o=!1;r.fn=s=>{var c=e.onerror;let d=e.failed;if(!c&&!d||o)throw s;var v=()=>{lt(n),Cr(r,()=>{o=!1,n=Be(()=>a(i)),Li()})};c==null||c(s,v),n&&$e(n),Lt(()=>{Cr(r,()=>{o=!0;try{n=Be(()=>{d(i,()=>s,()=>v)})}catch(u){_a(u,r,null,r.ctx)}Li(),o=!1})})},n=Be(()=>a(i)),Li()},wt|Ra)}function Ne(t){ye===null&&Ai(),Jt&&ye.l!==null?us(ye).m.push(t):Ge(()=>{const e=Xe(t);if(typeof e=="function")return e})}function Ji(t){ye===null&&Ai(),Ne(()=>()=>Xe(t))}function us(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const ps="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ps);function mt(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const de=Object.freeze({ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",InjectionVisible:"ali_injection_visible",UserLeft:"ali_user_left",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",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",TitlePopoverView:"ali_title_popover_view",TitlePopoverClose:"ali_title_popover_close",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",SimilarTitleClick:"ali_similar_title_click",ParticipantClick:"ali_title_participant_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_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",ShareTitle:"ali_share_title",TrailerClick:"ali_trailer_button_click",RegionRequestFailed:"ali_region_request_failed",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed"});function zr(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function zt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}const Er="https://www.playpilot.com",fs="https://partner-api.playpilot.tech/1.0",hs="https://img-external.playpilot.tech",Xi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",ra=600;function ai(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}function Ht(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function jr(t){return Object.entries(t).filter(([a,i])=>i!=null&&i!=="").map(([a,i])=>`${a}=${i}`).join("&")}const gs="https://insights.playpilot.net";async function ve(t,e=null,a={}){var n,r,o,s;if(ai())return;if(!zt("tracking")){bs(t,e,a);return}const i=new Headers({"Content-Type":"application/json"});e&&(a={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,providers:[...new Set(((n=e.providers)==null?void 0:n.map(c=>c.name))||[])],...a}),a.version="6.3.0-beta.3",a.url=Ht(),a.organization_sid=((r=window.PlayPilotLinkInjections)==null?void 0:r.organization_sid)||"undefined",a.domain_sid=((o=window.PlayPilotLinkInjections)==null?void 0:o.domain_sid)||"undefined",a.device={type:window.innerWidth>ra?"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(gs,{headers:i,method:"POST",body:JSON.stringify({event:t,payload:a,source:"ali",keepalive:!0})}),ms({event:t,payload:a})}function ms(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function ys({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function bs(t,e=null,a={}){var i;(i=window.PlayPilotLinkInjections).queued_tracking_events||(i.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:a})}function _s(){if(zt("tracking")){for(const{event:t,title:e,payload:a}of window.PlayPilotLinkInjections.queued_tracking_events||[])ve(t,e,a);window.PlayPilotLinkInjections.queued_tracking_events=[]}}const Qi={};async function ft(t,{headers:e={},method:a="GET",body:i=null}={}){const n=!ii()&&a==="GET";if(n&&t in Qi)return Qi[t];const r=a==="GET"?{}:{"Content-Type":"application/json"},o=await fetch(fs+t,{method:a,headers:new Headers({...r,...e}),body:i?JSON.stringify(i):null});if(!(o!=null&&o.ok))throw o;const s=await o.text();let c=s;try{s&&(c=JSON.parse(s))}catch{}return n&&(Qi[t]=c),c}const $i="EncryptedToken",Pr="articleReplacementEditToken",Ir="playpilot-editorial-mode";async function Ar(t=window.location.href){try{const e=mt();if(!e)throw new Error("No token was provided");const a=en(t);if(!a)throw new Error("Could not be authenticated");return await ft(`/external-pages/edit-authorization?api-token=${e}`,{method:"POST",body:{private_token:a}}),xs(a),!0}catch(e){console.error(e),ve(de.AuthFailed)}finally{Ss()}return!1}function en(t=""){var i,n;const e=(i=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:i.editorial_token;if(e)return e;if(t){const r=new URL(t).searchParams.get(Pr);if(r)return decodeURI(r)}return((n=("; "+document.cookie).split(`; ${$i}=`).pop())==null?void 0:n.split(";")[0])||""}function xs(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const i="expires="+e.toUTCString();document.cookie=$i+"="+t+";"+i+";path=/"}function ws(){document.cookie=$i+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function ii(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(Ir)==="true"||!!t}function ks(){const t=new URL(window.location.href);t.searchParams.set(Ir,"true"),window.history.replaceState({},"",t)}function Ss(){const t=new URL(window.location.href);t.searchParams.delete(Pr),window.history.replaceState({},"",t)}function Ts(t){let e=0;for(let a=0;a<t.length;a++){const i=t.charCodeAt(a);e=e*31+i>>>0}return e.toString(16)}function qr(){return(Math.random()+1).toString(36).substring(7)}const w=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"}),Cs={"Where To Stream Online":{[w.English]:"Where to stream online",[w.Swedish]:"Var kan man streama online",[w.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[w.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[w.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[w.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[w.English]:"We may earn a commission from purchases made through some of the links below.",[w.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[w.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[w.English]:"An error occurred",[w.Swedish]:"Ett fel inträffade",[w.Danish]:"Der opstod en fejl"},Loading:{[w.English]:"Loading",[w.Swedish]:"Laddar",[w.Danish]:"Indlæser"},"Title Unavailable":{[w.English]:"This title is not currently available to stream.",[w.Swedish]:"Den här titeln går inte att streama just nu.",[w.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[w.English]:"is not currently available to stream.",[w.Swedish]:"går inte att streama just nu.",[w.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[w.English]:"is available to stream on",[w.Swedish]:"finns att streama på",[w.Danish]:"kan streames på"},"Is Available To Stream":{[w.English]:"is available to stream.",[w.Swedish]:"finns att streama.",[w.Danish]:"kan streames."},"View Streaming Options":{[w.English]:"View streaming options",[w.Swedish]:"Se streamingalternativ",[w.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[w.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[w.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[w.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[w.English]:"and",[w.Swedish]:"och",[w.Danish]:"og"},Minutes:{[w.English]:"minutes",[w.Swedish]:"minuter",[w.Danish]:"minutter"},"Type: movie":{[w.English]:"Movie",[w.Swedish]:"Film",[w.Danish]:"Film"},"Type: series":{[w.English]:"Series",[w.Swedish]:"Serie",[w.Danish]:"Serie"},Stream:{[w.English]:"Stream",[w.Swedish]:"Streama",[w.Danish]:"Stream"},Buy:{[w.English]:"Buy",[w.Swedish]:"Köp",[w.Danish]:"Køb"},Rent:{[w.English]:"Rent",[w.Swedish]:"Hyra",[w.Danish]:"Lej"},"Rent Or Buy":{[w.English]:"Rent or Buy",[w.Swedish]:"Hyra",[w.Danish]:"Lej eller køb"},Watch:{[w.English]:"Watch",[w.Swedish]:"Titta nu",[w.Danish]:"Se nu"},Share:{[w.English]:"Share",[w.Swedish]:"Dela",[w.Danish]:"Del"},"Copy URL":{[w.English]:"Copy URL",[w.Swedish]:"Kopiera URL",[w.Danish]:"Kopiér URL"},Email:{[w.English]:"Email",[w.Swedish]:"E-post",[w.Danish]:"E-mail"},"Show More":{[w.English]:"Show more",[w.Swedish]:"Visa mer",[w.Danish]:"Vis mere"},Cast:{[w.English]:"Cast",[w.Swedish]:"Rollista",[w.Danish]:"Skuespillere"},"Similar Titles":{[w.English]:"Similar movies & shows",[w.Swedish]:"Liknande filmer och serier",[w.Danish]:"Lignende film og serier"},"Watch Trailer":{[w.English]:"Watch trailer",[w.Swedish]:"Se trailer",[w.Danish]:"Se trailer"},All:{[w.English]:"All",[w.Swedish]:"Alla",[w.Danish]:"Alle"},Unscripted:{[w.English]:"Unscripted",[w.Swedish]:"Oscripterat",[w.Danish]:"Umanuskriptet"},Independent:{[w.English]:"Independent",[w.Swedish]:"Indie",[w.Danish]:"Indie"},"Game Show":{[w.English]:"Game Show",[w.Swedish]:"Gameshow",[w.Danish]:"Quizshow"},"Film Noir":{[w.English]:"Film Noir",[w.Swedish]:"Film noir",[w.Danish]:"Film noir"},Entertainment:{[w.English]:"Entertainment",[w.Swedish]:"Underhållning",[w.Danish]:"Underholdning"},News:{[w.English]:"News",[w.Swedish]:"Nyheter",[w.Danish]:"Nyheder"},Short:{[w.English]:"Short",[w.Swedish]:"Kortfilm",[w.Danish]:"Kortfilm"},Bollywood:{[w.English]:"Bollywood",[w.Swedish]:"Bollywood",[w.Danish]:"Bollywood"},Concert:{[w.English]:"Concert",[w.Swedish]:"Konsert",[w.Danish]:"Koncert"},Arthouse:{[w.English]:"Arthouse",[w.Swedish]:"Arthouse",[w.Danish]:"Arthouse"},"Alternate Version":{[w.English]:"Alternate Version",[w.Swedish]:"Alternativ version",[w.Danish]:"Alternativ version"},"Reality TV":{[w.English]:"Reality TV",[w.Swedish]:"Reality-TV",[w.Danish]:"Reality-TV"},Culture:{[w.English]:"Culture",[w.Swedish]:"Kultur",[w.Danish]:"Kultur"},Drama:{[w.English]:"Drama",[w.Swedish]:"Drama",[w.Danish]:"Drama"},Crime:{[w.English]:"Crime",[w.Swedish]:"Kriminal",[w.Danish]:"Krimi"},Western:{[w.English]:"Western",[w.Swedish]:"Western",[w.Danish]:"Western"},Thriller:{[w.English]:"Thriller",[w.Swedish]:"Thriller",[w.Danish]:"Thriller"},Animation:{[w.English]:"Animation",[w.Swedish]:"Animerat",[w.Danish]:"Animation"},Mystery:{[w.English]:"Mystery",[w.Swedish]:"Mysterium",[w.Danish]:"Mysterium"},Science:{[w.English]:"Science",[w.Swedish]:"Vetenskap",[w.Danish]:"Videnskab"},Nature:{[w.English]:"Nature",[w.Swedish]:"Natur",[w.Danish]:"Natur"},War:{[w.English]:"War",[w.Swedish]:"Krig",[w.Danish]:"Krig"},"Sci-Fi":{[w.English]:"Sci-Fi",[w.Swedish]:"Sci-fi",[w.Danish]:"Sci-fi"},Documentary:{[w.English]:"Documentary",[w.Swedish]:"Dokumentär",[w.Danish]:"Dokumentar"},"Stand-up":{[w.English]:"Stand-up",[w.Swedish]:"Standup",[w.Danish]:"Stand-up"},"Talk Show":{[w.English]:"Talk Show",[w.Swedish]:"Talkshow",[w.Danish]:"Talkshow"},Fantasy:{[w.English]:"Fantasy",[w.Swedish]:"Fantasy",[w.Danish]:"Fantasy"},History:{[w.English]:"History",[w.Swedish]:"Historia",[w.Danish]:"Historie"},Adventure:{[w.English]:"Adventure",[w.Swedish]:"Äventyr",[w.Danish]:"Eventyr"},Action:{[w.English]:"Action",[w.Swedish]:"Action",[w.Danish]:"Action"},Horror:{[w.English]:"Horror",[w.Swedish]:"Skräck",[w.Danish]:"Gyser"},Comedy:{[w.English]:"Comedy",[w.Swedish]:"Komedi",[w.Danish]:"Komedie"},Biography:{[w.English]:"Biography",[w.Swedish]:"Biografi",[w.Danish]:"Biografi"},Music:{[w.English]:"Music",[w.Swedish]:"Musik",[w.Danish]:"Musik"},Sport:{[w.English]:"Sport",[w.Swedish]:"Sport",[w.Danish]:"Sport"},Romance:{[w.English]:"Romance",[w.Swedish]:"Romantik",[w.Danish]:"Romantik"},Kids:{[w.English]:"Kids",[w.Swedish]:"Barn",[w.Danish]:"Børn"},Lifestyle:{[w.English]:"Lifestyle",[w.Swedish]:"Livsstil",[w.Danish]:"Livsstil"},Musical:{[w.English]:"Musical",[w.Swedish]:"Musikal",[w.Danish]:"Musical"},Anime:{[w.English]:"Anime",[w.Swedish]:"Anime",[w.Danish]:"Anime"},Family:{[w.English]:"Family",[w.Swedish]:"Familj",[w.Danish]:"Familie"}};function we(t,e=Mr()){var a;return((a=Cs[t])==null?void 0:a[e])||t}function Mr(){var i,n;const t=(i=window.PlayPilotLinkInjections)==null?void 0:i.language,e=Object.values(w);if(t){if(e.includes(t))return t;console.warn(`PlayPilot Link Injections: ${t} is not an accepted language`)}const a=(n=document.querySelector("html"))==null?void 0:n.getAttribute("lang");if(a){if(e.includes(a))return a;const r=e.find(o=>o.toLowerCase().startsWith(a+"-"));if(r)return r}return w.English}function zs(t,e,a){return t.filter(i=>a.every(n=>i[n]===e[n])).length}function Es(t,e){return e.some(a=>t>=a.start&&t<a.end)}function js(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function tn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Lr(t,e,a=[]){var r,o;const i=document.createTreeWalker(e);let n;for(;(n=i.nextNode())&&!((r=n.nodeValue)!=null&&r.includes(t)&&!a.includes(((o=n.parentNode)==null?void 0:o.nodeName)||"")););return n}function Nr(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Ps(t,e,a,i){const n=js(e),r=tn(e),o=t.slice(0,i),s=t.slice(i),c=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${r.replace(c,"\\$&")}|${n.replace(c,"\\$&")}`),v=s.replace(d,a);return o+v}function Is(t,e,a,i){return t.substring(0,a)+e+t.substring(i)}function tt(t){return tn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function Dr(t,e,a){const n=t.indexOf(e),r=Math.floor((a-e.length)/2);let o=Math.max(0,n-r),s=o+a;s>t.length&&(s=t.length,o=Math.max(0,s-a));let c=t.slice(o,s).trim();return o>0&&(c="…"+c),s<t.length&&(c+="…"),c}function Or(t,e,a){const i=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!i||!t.textContent)return{before:"",after:""};const n=Math.max(i.innerText.indexOf(t.textContent),0),r=Rr(i.innerText.slice(0,e+n)),o=i.innerText.slice(a+n),s=Rr(Br(r,2)),c=Br(o,2);return{before:s,after:c}}function Rr(t){return t.split("").reverse().join("")}function Br(t,e=1){const a=t.match(/[^\s]+/g);return a?a.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function ni(t,e){let a=0,i=0;for(;(i=t.indexOf(e,i))!==-1;)a++,i+=e.length;return a}function As(t,e,a){const i=[];let n=0;for(;n<=t.length;){const r=e?t.indexOf(e,n):n;if(r===-1&&e)break;const o=e?r+e.length:r,s=a?t.indexOf(a,o):t.length;if(a&&s===-1)break;const c=t.slice(o,s);i.push({match:c,index:o}),n=a?s+a.length:t.length+1}return i}function qs(t,e,a,i){const r=As(t,a,i).filter(({match:s})=>tn(s).includes(e));return r.length?r.reduce((s,c)=>!s||c.match.length<s.match.length?c:s):null}function Ms(t){var e,a;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((a=t.match(/\s*$/))==null?void 0:a[0].length)||0}}function Ls(t,e,a=0){const i=e.innerHTML,n=[],r=Ns(e);let o=i.indexOf(t);for(;o!==-1;)Es(o,r)&&n.push(o),o=i.indexOf(t,o+t.length);return n[a]??-1}function Ns(t){const e=[],a=t.innerHTML;let i=!1,n=!1,r=!1,o=0;for(let s=0;s<a.length;s++){const c=a[s];if(!n&&!i&&c==="<"){i=!0,r&&(e.push({start:o,end:s}),r=!1);continue}if(i&&c==='"'&&(n=!n),i&&!n&&c===">"){i=!1;continue}!i&&!n&&!r&&(o=s,r=!0)}return!e.length&&t.textContent.length&&e.push({start:o,end:t.innerHTML.length}),e}function Ds(t,e){const a=[" ",".",",","<",">"];try{const i=a.map(s=>"\\"+s).join(""),n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp(`([${i}])${n}([${i}])`),o=e.match(r);return o!=null&&o.index?o.index+1:-1}catch{return-1}}function Hr(t){return t.ctrlKey||t.metaKey||t.button!==0}async function Os(){if(!zt("ads"))return[];const t=mt();if(!t)throw new Error("No token was provided");try{return await ft(`/ads/browse/?api-token=${t}`)}catch(e){throw ve(de.AdsFetchFailed,null,{status:e.status}),e}}function za(t){var e;return zt("ads")&&(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(a=>a.campaign_format===t)||null}function Rs(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}const Bs=t=>t;function an(t){const e=t-1;return e*e*e+1}function Fr(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function yt(t,{delay:e=0,duration:a=400,easing:i=Bs}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:a,easing:i,css:r=>`opacity: ${r*n}`}}function Ft(t,{delay:e=0,duration:a=400,easing:i=an,x:n=0,y:r=0,opacity:o=0}={}){const s=getComputedStyle(t),c=+s.opacity,d=s.transform==="none"?"":s.transform,v=c*(1-o),[u,p]=Fr(n),[b,m]=Fr(r);return{delay:e,duration:a,easing:i,css:(f,h)=>`
|
|
1
|
+
var Dh=Object.defineProperty;var Tl=Se=>{throw TypeError(Se)};var Oh=(Se,Te,je)=>Te in Se?Dh(Se,Te,{enumerable:!0,configurable:!0,writable:!0,value:je}):Se[Te]=je;var Cl=(Se,Te,je)=>Oh(Se,typeof Te!="symbol"?Te+"":Te,je),wn=(Se,Te,je)=>Te.has(Se)||Tl("Cannot "+je);var ot=(Se,Te,je)=>(wn(Se,Te,"read from private field"),je?je.call(Se):Te.get(Se)),Kt=(Se,Te,je)=>Te.has(Se)?Tl("Cannot add the same private member more than once"):Te instanceof WeakSet?Te.add(Se):Te.set(Se,je),La=(Se,Te,je,Na)=>(wn(Se,Te,"write to private field"),Na?Na.call(Se,je):Te.set(Se,je),je),zl=(Se,Te,je)=>(wn(Se,Te,"access private method"),je);(function(){"use strict";var It,da,Aa,gi,El,qa,Ma;var Se=document.createElement("style");Se.textContent=`.up.svelte-1o28c14{transform:rotate(270deg)}.right.svelte-1o28c14{margin-left:2px}.down.svelte-1o28c14{transform:rotate(90deg)}.left.svelte-1o28c14{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-1yzjn7x{--playpilot-detail-background-border-radius: var(--playpilot-detail-border-radius, var(--playpilot-border-radius-large) var(--playpilot-border-radius-large) 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-1yzjn7x{padding:32px 0}}.modal.has-bubble.svelte-1yzjn7x{--playpilot-detail-background-border-radius: 0}.dialog.svelte-1yzjn7x,.bubble.svelte-1yzjn7x,.prepend.svelte-1yzjn7x{max-width:600px}.wide.svelte-1yzjn7x .dialog:where(.svelte-1yzjn7x),.wide.svelte-1yzjn7x .bubble:where(.svelte-1yzjn7x),.wide.svelte-1yzjn7x .prepend:where(.svelte-1yzjn7x){max-width:900px}.dialog.svelte-1yzjn7x{z-index:1;position:relative;width:100%;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-1yzjn7x{height:80dvh}}@media (min-width: 600px){.dialog.svelte-1yzjn7x{height:unset;margin-top:0;padding-bottom:0;overflow:visible;border-radius:var(--playpilot-detail-border-radius, var(--playpilot-border-radius-large))}}@media (max-width: 599px){.tall.svelte-1yzjn7x .dialog:where(.svelte-1yzjn7x){height:90vh}@supports (height: 1dvh){.tall.svelte-1yzjn7x .dialog:where(.svelte-1yzjn7x){height:90dvh}}}.has-prepend.svelte-1yzjn7x .dialog:where(.svelte-1yzjn7x){margin-top:0}.has-bubble.svelte-1yzjn7x .dialog:where(.svelte-1yzjn7x){border-top-left-radius:0;border-top-right-radius:0;margin-top:0}.swipe-handle.svelte-1yzjn7x{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-1yzjn7x{--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, 8px);--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-1yzjn7x{position:absolute;top:16px}}.close.svelte-1yzjn7x:hover{filter:brightness(1.1)}.close.flat.svelte-1yzjn7x{--playpilot-button-background: transparent;--playpilot-button-shadow: none}.close.back.svelte-1yzjn7x{right:auto;left:16px}.close.back.flat.svelte-1yzjn7x{left:8px}.close.back.flat.svelte-1yzjn7x svg{margin:0}.transitioning.svelte-1yzjn7x .close:where(.svelte-1yzjn7x){top:16px}.prepend.svelte-1yzjn7x{z-index:1;position:relative;width:calc(100% - 16px);padding-top:48px;margin:auto auto 8px}@media (min-width: 600px){.prepend.svelte-1yzjn7x{padding-top:0;margin-top:0}}.bubble.svelte-1yzjn7x{z-index:1;position:relative;width:100%;margin:auto 0 0}@media (min-width: 600px){.bubble.svelte-1yzjn7x{width:100%;margin-top:0}}.genre.svelte-awb4w8{display:inline-flex;flex-wrap:wrap;background:var(--playpilot-genre-background, var(--playpilot-content));border:0;border-radius:var(--playpilot-genre-border-radius, var(--playpilot-border-radius-large));padding:4px 8px;font-family:var(--playpilot-genre-font-family, var(--playpilot-inherit));font-weight:var(--playpilot-genre-font-weight, var(--playpilot-inherit));text-transform:var(--playpilot-genre-text-transform, var(--playpilot-none));color:var(--playpilot-genre-text-color, var(--playpilot-text-color-alt));line-height:1;font-size:inherit}.genre.svelte-awb4w8:is(button:where(.svelte-awb4w8)):hover{cursor:pointer;filter:brightness(var(--playpilot-genre-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-genre-background-hover, var(--playpilot-content))}.expand.svelte-awb4w8{margin-left:-8px}.disclaimer.svelte-1aoli55{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, var(--playpilot-text-color-alt));font-weight:700;line-height:1}.disclaimer.svelte-1aoli55:hover{border-color:var(--playpilot-disclaimer-hover-border-color, var(--playpilot-text-color));color:var(--playpilot-disclaimer-hover-text-color, var(--playpilot-text-color))}.disclaimer.small.svelte-1aoli55{height:16px;width:16px}.tooltip.svelte-1aoli55{z-index:2;position:absolute;right:0;bottom:0;padding:4px;background:transparent;border:0;color:var(--playpilot-disclaimer-tooltip-text-color, var(--playpilot-text-color));cursor:pointer}.tooltip-content.svelte-1aoli55{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-content));box-shadow:var(--playpilot-shadow);font-size:12px;line-height:1.1;text-align:right;white-space:normal}@keyframes svelte-1ganvvq-sheen{0%,20%,60%,80.01%,to{background-position:-100% 0}80%{background-position:100% 0}}img.svelte-1ganvvq{height:36px;width:36px;border-radius:var(--playpilot-playlink-image-border-radius, var(--playpilot-border-radius));background:#00000040}.playlink.svelte-1ganvvq{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, var(--playpilot-border-radius));color:var(--playpilot-playlink-text-color, var(--playpilot-text-color))!important;font-weight:var(--playpilot-playlink-font-weight, var(--playpilot-inherit));font-style:var(--playpilot-playlink-font-style, var(--playpilot-normal))!important;text-decoration:none!important;white-space:nowrap;font-size:var(--playpilot-playlinks-font-size, 12px);line-height:1}.playlink.svelte-1ganvvq:not(span):hover,.playlink.svelte-1ganvvq:not(span):active{filter:brightness(var(--playpilot-playlink-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-playlink-hover-background, var(--playpilot-lighter))!important;text-decoration:none!important}.playlink.highlighted.svelte-1ganvvq{grid-column:span 2}.playlink.highlighted.svelte-1ganvvq: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-1ganvvq:before{animation:svelte-1ganvvq-sheen 4s ease-in-out infinite}}.playlink.highlighted.svelte-1ganvvq: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-1ganvvq img:where(.svelte-1ganvvq){grid-area:image;margin:0}.playlink-content.svelte-1ganvvq{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-1ganvvq .playlink-content:where(.svelte-1ganvvq){grid-template-areas:"image name action" "image category action" "image cta action";gap:4px 12px}.no-category.svelte-1ganvvq .playlink-content:where(.svelte-1ganvvq){grid-template-areas:"image name action" "image cta action"}.name.svelte-1ganvvq{grid-area:name;width:100%;overflow:hidden;font-weight:var(--playpilot-playlink-font-weight, 500);font-family:var(--playpilot-playlink-font-family, var(--playpilot-inherit));text-overflow:ellipsis;white-space:nowrap}.category.svelte-1ganvvq{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, var(--playpilot-inherit));font-family:var(--playpilot-playlink-category-font-family, var(--playpilot-inherit))}.cta.svelte-1ganvvq{grid-area:cta;width:100%;font-size:var(--playpilot-playlinks-cta-font-size, 10px);color:var(--playpilot-playlink-cta-text-color, var(--playpilot-text-color));font-weight:var(--playpilot-playlink-cta-font-weight, var(--playpilot-inherit));font-family:var(--playpilot-playlink-cta-font-family, var(--playpilot-inherit));white-space:normal;line-height:1.2}.action.svelte-1ganvvq{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-1ganvvq .action:where(.svelte-1ganvvq){border:0;background:var(--playpilot-playlinks-action-background-color, white);color:var(--playpilot-playlinks-action-text-color, black)}.heading.svelte-mivaad{margin:0;color:var(--playpilot-playlinks-title-color, var(--playpilot-text-color-alt));font-family:var(--playpilot-playlinks-title-font-family, var(--playpilot-inherit));font-weight:var(--playpilot-playlinks-title-font-weight, var(--playpilot-lighter));font-size:var(--playpilot-playlinks-title-font-size, var(--playpilot-font-size-base));line-height:normal}.playlinks.svelte-mivaad{box-sizing:border-box;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}.playlinks.list.svelte-mivaad{grid-template-columns:1fr}.playlinks.list.svelte-mivaad .playlink.highlighted{grid-column:span 1}.disclaimer.svelte-mivaad{margin:var(--playpilot-playlinks-disclaimer-margin, 8px) 0;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, var(--playpilot-normal))}.disclaimer.svelte-mivaad a:where(.svelte-mivaad){color:inherit;font-size:inherit;font-style:inherit}.disclaimer.svelte-mivaad a:where(.svelte-mivaad):hover{color:var(--playpilot-playlinks-disclaimer-text-color-hover, var(--playpilot-text-color))}.empty.svelte-mivaad{grid-column:span 2;padding:12px;margin-top:8px;background:var(--playpilot-playlink-background, var(--playpilot-lighter));box-shadow:var(--playpilot-playlink-shadow, var(--playpilot-shadow));border-radius:var(--playpilot-playlink-border-radius, var(--playpilot-border-radius));white-space:initial;line-height:1.35}.list.svelte-mivaad .empty:where(.svelte-mivaad){grid-column:1}.paragraph.svelte-1rt1t7o{display:block;margin:16px 0 0}.show-more.svelte-1rt1t7o{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, var(--playpilot-inherit));font-family:inherit;font-size:inherit}.show-more.svelte-1rt1t7o:hover{text-decoration:underline;text-decoration-thickness:2px;cursor:pointer}.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-l8rcrc{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-l8rcrc{--gap: 8px;position:relative;width:calc(100% + 32px);margin:0 -16px}.rail.svelte-l8rcrc .slider{padding:0 16px}.rail.svelte-l8rcrc .slider-content>:last-child{margin-right:32px}.arrow.svelte-l8rcrc{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-text-color))}@media (hover: hover){.arrow.svelte-l8rcrc{display:flex}}.arrow.svelte-l8rcrc:hover{filter:brightness(1.2)}.arrow.right.svelte-l8rcrc{left:auto;right:0}.participant.svelte-twi8bf{display:flex;flex-direction:column;flex:0 0 10rem;width:10rem;min-height:54px;padding:8px;border:0;border-radius:var(--playpilot-cast-border-radius, var(--playpilot-border-radius));background:var(--playpilot-cast-background, var(--playpilot-lighter));cursor:pointer;font-family:inherit;text-align:left;color:inherit;font-size:var(--playpilot-cast-font-size, var(--playpilot-font-size-small));line-height:normal;white-space:nowrap}.participant.svelte-twi8bf:is(button:where(.svelte-twi8bf)):hover,.participant.svelte-twi8bf:is(button:where(.svelte-twi8bf)):active{filter:brightness(var(--playpilot-cast-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));text-decoration:none!important}.character.svelte-twi8bf{color:var(--playpilot-cast-character-text-color, var(--playpilot-text-color-alt));font-style:italic}.truncate.svelte-twi8bf{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}img.svelte-17smby0{display:block;width:100%;height:auto;color:transparent}.title.svelte-78gj1g{width:96px}.title.svelte-78gj1g:hover,.title.svelte-78gj1g:active{filter:brightness(1.1)}.poster.svelte-78gj1g{display:block;border-radius:var(--playpilot-rail-border-radius, var(--playpilot-border-radius));overflow:hidden;width:100%;aspect-ratio:2/3;background:var(--playpilot-detail-background-light, var(--playpilot-lighter))}.heading.svelte-78gj1g{display:-webkit-box;padding-top:8px;overflow:hidden;text-decoration:none;color:var(--playpilot-rail-text-color, var(--playpilot-text-color-alt))!important;font-size:var(--playpilot-rail-font-size, var(--playpilot-font-size-small));font-style:normal!important;line-height:1.2;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis}.skeleton.svelte-78gj1g{display:block;height:1em;width:100%;background:var(--playpilot-detail-background-light, var(--playpilot-lighter));border-radius:32px}.skeleton.svelte-78gj1g:last-child{margin-top:4.8px;width:50%}.button.svelte-n6059u{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;height:100%;align-items:center;justify-content:center;gap:4px;border:0;padding:.25em .5em;background:transparent;border-radius:var(--playpilot-button-border-radius, var(--playpilot-border-radius));color:var(--playpilot-button-text-color, var(--playpilot-text-color-alt));font-size:inherit;font-family:inherit;font-weight:var(--playpilot-button-font-weight, var(--playpilot-normal));cursor:pointer}.button.svelte-n6059u svg{width:1.5em;height:1.5em;opacity:.75}.button.svelte-n6059u svg:last-child{width:.85em;height:.85em}.filled.svelte-n6059u{background:var(--playpilot-button-filled-background, var(--playpilot-content))}.filled.svelte-n6059u:hover,.filled.svelte-n6059u:active{background:var(--playpilot-button-filled-hover-background, var(--playpilot-content-light));color:var(--playpilot-button-filled-hover-text-color, var(--playpilot-text-color))}.filled.active.svelte-n6059u{box-shadow:inset 0 0 0 1px currentColor}.border.svelte-n6059u{box-shadow:inset 0 0 0 1px var(--playpilot-button-border-color, var(--playpilot-content-light))}.border.svelte-n6059u:hover,.border.svelte-n6059u:active,.border.active.svelte-n6059u{background:var(--playpilot-button-border-color, var(--playpilot-lighter));color:var(--playpilot-button-hover-text-color, var(--playpilot-text-color))}.border.active.svelte-n6059u{filter:brightness(var(--playpilot-hover-filter-brightness))}.link.svelte-n6059u{display:inline-flex;height:auto;padding:0;font-size:inherit;line-height:inherit}.link.svelte-n6059u:hover,.link.svelte-n6059u:active{color:var(--playpilot-button-hover-text-color, var(--playpilot-text-color))}.link.svelte-n6059u svg{width:.85em;height:.85em}.large.svelte-n6059u{padding:.5em 1em}.share.svelte-113frw{position:relative}.context-menu.svelte-113frw{z-index:10;position:absolute;bottom:calc(100% + 8px);left:0;max-width:240px;border-radius:var(--playpilot-context-menu-border-radius, 8px);background:var(--playpilot-detail-background, var(--playpilot-lighter));box-shadow:var(--playpilot-shadow)}.context-menu.svelte-113frw:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--playpilot-context-menu-border-radius, 8px);background:var(--playpilot-context-menu-background-lightness, rgba(255, 255, 255, .05));pointer-events:none}.item.svelte-113frw{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;gap:8px;border:0;padding:12px 16px;width:100%;border-bottom:1px solid var(--playpilot-context-menu-border, rgba(255, 255, 255, .1));background:transparent;white-space:nowrap;color:var(--playpilot-detail-text-color, var(--playpilot-text-color));font-family:inherit;font-weight:400;text-align:left}.item.svelte-113frw:hover{background:var(--playpilot-context-menu-border, rgba(255, 255, 255, .1))}.item.svelte-113frw:first-child{border-radius:var(--playpilot-context-menu-border-radius, 8px) var(--playpilot-context-menu-border-radius, 8px) 0 0}.item.svelte-113frw:last-child{border-radius:0 0 var(--playpilot-context-menu-border-radius, 8px) var(--playpilot-context-menu-border-radius, 8px);border-bottom:0}.item.svelte-113frw:not(:hover) svg{opacity:.75}iframe.svelte-b34co4{z-index:1;position:relative;display:block;width:95vmin;height:auto;aspect-ratio:16/9;box-shadow:0 0 64px #ffffff26;background:#000}.overlay.svelte-b34co4{z-index:2147483647;box-sizing:border-box;display:flex;align-items:center;justify-content:center;position:fixed;top:0;right:0;bottom:0;left:0;background:var(--playpilot-detail-backdrop, rgba(0, 0, 0, .95))}.backdrop.svelte-b34co4{z-index:0;position:fixed;top:0;right:0;bottom:0;left:0}.close.svelte-b34co4{-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1;position:fixed;top:32px;right:32px;padding:0;margin:0;border:0;background:transparent;color:#fff;cursor:pointer}.close.svelte-b34co4:hover{transform:scale(1.1)}.close.svelte-b34co4:active{transform:scale(1)}.heading.svelte-1aeecbs{margin:8px 0;color:var(--playpilot-detail-title-text-color, var(--playpilot-text-color));font-family:var(--playpilot-detail-title-font-family, var(--playpilot-inherit));font-weight:var(--playpilot-detail-title-font-weight, var(--playpilot-lighter));font-size:var(--playpilot-detail-title-font-size, 24px);line-height:normal;font-style:var(--playpilot-detail-title-font-style, var(--playpilot-normal))}.small.svelte-1aeecbs .heading:where(.svelte-1aeecbs){font-size:var(--playpilot-detail-title-font-size-small, 18px)}.content.svelte-1aeecbs{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, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:normal;font-style:normal}.content.svelte-1aeecbs ::view-transition-old(content),.content.svelte-1aeecbs ::view-transition-new(content){height:100%}.content.small.svelte-1aeecbs{font-size:var(--playpilot-detail-font-size-small, var(--playpilot-font-size-small));line-height:1.45;padding-bottom:16px}.header.svelte-1aeecbs{padding:48px 0 16px;background:transparent}.small.svelte-1aeecbs .header:where(.svelte-1aeecbs){padding-top:16px}.poster.svelte-1aeecbs{display:block;width:72px;margin:0;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));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-1aeecbs{opacity:1}.info.svelte-1aeecbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}@media (min-width: 600px){.info.svelte-1aeecbs{gap:8px 16px}}.small.svelte-1aeecbs .info:where(.svelte-1aeecbs){gap:8px 12px}.imdb.svelte-1aeecbs{display:flex;align-items:center;gap:4px}.imdb.svelte-1aeecbs svg{margin-top:-2px}.small.svelte-1aeecbs .imdb:where(.svelte-1aeecbs) svg{margin-top:0;width:12px;height:12px}.actions.svelte-1aeecbs{display:flex;gap:8px;margin-top:8px}.background.svelte-1aeecbs{position:absolute;top:0;left:0;width:100%;height:192px;border-radius:var(--playpilot-detail-background-border-radius, 0px);overflow:hidden;background:var(--playpilot-detail-background, var(--playpilot-lighter));z-index:0}.background.svelte-1aeecbs: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-1aeecbs img:where(.svelte-1aeecbs){width:100%;height:100%;object-fit:cover;object-position:center;margin:0;opacity:0;z-index:0}.background.svelte-1aeecbs img.loaded:where(.svelte-1aeecbs){opacity:1}.background.svelte-1aeecbs img.blur:where(.svelte-1aeecbs){opacity:.5;transform:scale(1.1);filter:blur(.75rem)}.capitalize.svelte-1aeecbs{text-transform:capitalize}.truncate.svelte-1aeecbs{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-scroll.svelte-1iky8pz{position:relative;display:block;width:100%;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) 0 0;background:#000;color:var(--playpilot-top-scroll-text-color, white);font-family:var(--playpilot-top-scroll-font-family, var(--playpilot-font-family));font-size:var(--playpilot-top-scroll-font-size, var(--playpilot-font-size-base));text-decoration:none;line-height:1.35}.content.svelte-1iky8pz{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-1iky8pz .content:where(.svelte-1iky8pz){justify-content:center;min-height:0;padding:0}.logo.svelte-1iky8pz{border-radius:var(--playpilot-top-scroll-logo-border-radius, var(--playpilot-border-radius));background:#000}.tagline.svelte-1iky8pz{margin:0;text-shadow:var(--playpilot-shadow)}.button.svelte-1iky8pz{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, var(--playpilot-border-radius-small));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-1iky8pz: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-1iky8pz:active{background:var(--playpilot-top-scroll-button-background, white)}.background.svelte-1iky8pz{z-index:0;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) 0 0;background-image:var(--background);background-position:center;background-size:cover;opacity:.4}.top-scroll.svelte-1iky8pz:hover .background:where(.svelte-1iky8pz){filter:brightness(1.15)}.content-image.svelte-1iky8pz{display:block;max-width:100%;height:auto;background:#000;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) 0 0}.top-scroll.svelte-1iky8pz:hover .content-image:where(.svelte-1iky8pz){filter:brightness(1.15)}.tooltip.svelte-fcvpct{position:relative}.content.svelte-fcvpct{position:absolute;bottom:0;left:0;transform:translateY(100%);padding:4px;background:var(--playpilot-tooltip-background, var(--playpilot-light));border-radius:var(--playpilot-tooltip-border-radius, var(--playpilot-border-radius-small));box-shadow:var(--playpilot-tooltip-shadow, var(--playpilot-shadow));color:var(--playpilot-tooltip-text-color, var(--playpilot-text-color));white-space:nowrap}.display.svelte-1jneh2k{display:block;position:relative;border-radius:var(--playpilot-display-ad-border-radius, var(--playpilot-border-radius));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-1jneh2k{position:absolute;top:0;left:0;padding:8px;font-size:12px;text-decoration:underline}@media (min-width: 600px){.info.svelte-1jneh2k{padding:16px}.compact.svelte-1jneh2k .info:where(.svelte-1jneh2k){padding:12px}}.cta.svelte-1jneh2k{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-1jneh2k{padding:16px}.compact.svelte-1jneh2k .cta:where(.svelte-1jneh2k){padding:12px}}.logo.svelte-1jneh2k{border-radius:var(--playpilot-display-ad-border-radius, var(--playpilot-border-radius))}.name.svelte-1jneh2k{font-weight:500}.subheader.svelte-1jneh2k{font-size:12px}.action.svelte-1jneh2k{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-1jneh2k:hover{transform:scale(1.05)}.background.svelte-1jneh2k{display:block;width:100%;height:auto}.disclaimer.svelte-1jneh2k{position:absolute;bottom:calc(var(--offset) + 4px);right:4px}strong.svelte-40a06z{color:var(--playpilot-text-color);font-size:var(--playpilot-font-size-base);font-weight:400}.call-to-action.svelte-40a06z{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;gap:16px;width:100%;padding:16px;border:0;border-radius:var(--playpilot-border-radius-large) var(--playpilot-border-radius-large) 0 0;background:var(--playpilot-light);font-family:var(--playpilot-font-family);color:var(--playpilot-text-color-alt);font-size:var(--playpilot-font-size-small);line-height:1.5;text-align:left;cursor:pointer}.call-to-action.svelte-40a06z:hover{filter:brightness(var(--playpilot-hover-filter-brightness))}.arrow.svelte-40a06z{margin-left:auto}.arrow.svelte-40a06z svg{display:block;height:20px;width:auto}.playlink.svelte-x0d70p{display:inline-block;width:var(--size);height:var(--size);background:var(--playpilot-playlink-background, var(--playpilot-light));border-radius:var(--playpilot-playlink-border-radius, calc(var(--size) * .25));overflow:hidden}.playlink.svelte-x0d70p:hover,.playlink.svelte-x0d70p:active{filter:brightness(var(--playpilot-playlink-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-playlink-hover-background, var(--playpilot-lighter))!important;text-decoration:none!important;outline:2px solid var(--playpilot-detail-text-color, var(--playpilot-text-color))}.playlink.svelte-x0d70p img:where(.svelte-x0d70p){display:block;margin:0;width:auto}.playlinks.svelte-1fqoau{display:flex;flex-wrap:wrap;gap:4px;margin-top:auto}.more.svelte-1fqoau{display:flex;align-items:center;padding:0 2px;color:var(--playpilot-list-item-more-text-color, var(--playpilot-text-color-alt));font-size:var(--playpilot-detail-font-size-small, var(--playpilot-font-size-small))}.empty.svelte-1fqoau{margin-top:4px;opacity:.65;font-style:italic;font-size:.85em;white-space:initial;color:var(--playpilot-list-item-empty-text-color, var(--playpilot-text-color-alt))}.title.svelte-tl2in2{-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:var(--playpilot-list-item-padding, 8px);border:0;border-radius:var(--playpilot-list-item-border-radius, var(--playpilot-border-radius));text-decoration:none;font-style:normal!important;font-family:var(--playpilot-font-family);cursor:pointer}.title.svelte-tl2in2:hover{filter:brightness(var(--playpilot-list-item-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-list-item-hover-background, var(--playpilot-lighter));box-shadow:var(--playpilot-list-item-hover-shadow, var(--playpilot-none))}.poster.svelte-tl2in2{flex:0 0 auto;height:auto;align-self:start;width:66px;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-detail-image-background, var(--playpilot-content));overflow:hidden}.content.svelte-tl2in2{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, var(--playpilot-font-size-base));line-height:normal}@media (min-width: 600px){.content.svelte-tl2in2{padding-right:16px}}.heading.svelte-tl2in2{color:var(--playpilot-list-item-title-text-color, var(--playpilot-text-color));font-weight:var(--playpilot-list-item-title-font-weight, var(--playpilot-font-bold))}.meta.svelte-tl2in2{display:flex;flex-wrap:wrap;gap:0 8px;margin:2px 0;font-size:var(--playpilot-detail-font-size-small, var(--playpilot-font-size-small));font-weight:var(--playpilot-list-item-meta-font-weight, var(--playpilot-font-bold));color:var(--playpilot-list-item-meta-text-color, var(--playpilot-text-color-alt))}.meta.svelte-tl2in2>div:where(.svelte-tl2in2){text-transform:capitalize}.imdb.svelte-tl2in2{display:flex;align-items:center;gap:4px}.description.svelte-tl2in2{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, var(--playpilot-font-size-small));color:var(--playpilot-list-item-description-text-color, var(--playpilot-text-color))}.action.svelte-tl2in2{display:flex;margin:0 8px 0 auto;padding-left:8px;align-self:center;color:var(--playpilot-list-item-action-color, var(--playpilot-text-color-alt))}.action.svelte-tl2in2:hover,.action.svelte-tl2in2:active{color:var(--playpilot-list-item-action-hover-color, var(--playpilot-text-color))}.header.svelte-1k98u86{padding:64px 16px 32px;font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-font-weight, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:var(--playpilot-participant-description-line-height, var(--playpilot-normal));color:var(--playpilot-detail-text-color, var(--playpilot-text-color))}.heading.svelte-1k98u86{margin:0;font-family:var(--playpilot-detail-title-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-title-font-weight, var(--playpilot-lighter));font-size:var(--playpilot-detail-title-font-size, 24px);line-height:normal;font-style:var(--playpilot-detail-title-font-style, var(--playpilot-normal))}.heading.small.svelte-1k98u86{margin:0 0 8px;font-size:var(--playpilot-detail-title-small-font-size, 20px)}.dates.svelte-1k98u86{margin:8px 0 0}.content.svelte-1k98u86{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, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:normal;font-style:normal}.list.svelte-1k98u86{display:flex;flex-direction:column;gap:8px}.skeleton.svelte-1k98u86{min-height:116px;border-radius:var(--playpilot-playlink-border-radius, var(--playpilot-border-radius));background:var(--playpilot-detail-background-light, var(--playpilot-lighter))}.more.svelte-1k98u86{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:8px 16px;border:0;border-radius:var(--playpilot-participants-load-more-border-radius, var(--playpilot-border-radius));background:var(--playpilot-participants-load-more-background, var(--playpilot-content));color:inherit;font-size:inherit;font-family:inherit}.more.svelte-1k98u86:hover{filter:brightness(1.2)}.title.svelte-ymfgok{position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;flex-direction:column;width:100%;background:transparent;padding:0;border:0;border-radius:var(--playpilot-grid-item-border-radius, var(--playpilot-border-radius));transition:transform .1s;text-decoration:none;font-style:normal!important;font-family:var(--playpilot-font-family);cursor:pointer}.title.svelte-ymfgok:hover{filter:brightness(var(--playpilot-grid-item-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-grid-item-hover-background, var(--playpilot-lighter));box-shadow:var(--playpilot-grid-item-hover-shadow, 0 0 0 8px var(--playpilot-lighter));transform:scale(1.025);z-index:1}.poster.svelte-ymfgok{position:relative;width:100%;height:auto;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-detail-image-background, var(--playpilot-content));overflow:hidden}.content.svelte-ymfgok{padding-top:8px}.heading.svelte-ymfgok{margin-bottom:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:inherit;text-align:left;font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:normal;color:var(--playpilot-grid-item-title-text-color, var(--playpilot-text-color-alt));font-weight:var(--playpilot-grid-item-title-font-weight, var(--playpilot-font-bold))}.title.svelte-ymfgok:hover .heading:where(.svelte-ymfgok){color:var(--playpilot-grid-item-title-hover-text-color, var(--playpilot-text-color))}.meta.svelte-ymfgok{display:flex;justify-content:space-between;position:absolute;top:0;left:0;width:100%;padding:8px 8px 16px;background:linear-gradient(to bottom,rgba(0,0,0,.75),transparent);color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.5),0 1px 2px rgba(0,0,0,.25)}.meta.svelte-ymfgok svg{filter:drop-shadow(0 1px 0 rgba(0,0,0,.35))}.imdb.svelte-ymfgok{display:flex;align-items:center;gap:4px}.skeleton.svelte-11t7h81{width:100%}.poster.svelte-11t7h81{flex:0 0 auto;height:auto;width:100%;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-content)}.lines.svelte-11t7h81{display:flex;flex-direction:column;margin-top:8px;gap:8px;width:100%}.line.svelte-11t7h81{height:var(--playpilot-font-size-base);background:var(--playpilot-content);border-radius:5rem}.skeleton.svelte-hrucm1{display:flex;align-items:center;width:100%;gap:16px}.poster.svelte-hrucm1{flex:0 0 auto;height:auto;align-self:start;width:66px;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-content)}.lines.svelte-hrucm1{display:flex;flex-direction:column;gap:8px;width:100%}.line.svelte-hrucm1{width:60%;height:var(--playpilot-font-size-base);background:var(--playpilot-content);border-radius:5rem}.header.svelte-123b8pj{padding:12px}.input.svelte-123b8pj{width:100%;padding:12px 16px;border:0;border-radius:var(--playpilot-border-radius);background:var(--playpilot-content-light);color:var(--playpilot-text-color-alt);font-size:var(--playpilot-font-size-base);font-family:var(--playpilot-font-family)}.input.svelte-123b8pj:focus{outline:1px solid white}.input.svelte-123b8pj::placeholder{color:var(--playpilot-text-color-alt);opacity:.75}.option.svelte-123b8pj{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px;border:0;border-top:1px solid var(--playpilot-content-light);background:var(--playpilot-content);color:var(--playpilot-text-color-alt);font-family:inherit;text-align:left;cursor:pointer}.option.svelte-123b8pj:hover,.option.active.svelte-123b8pj{color:var(--playpilot-text-color);filter:brightness(var(--playpilot-hover-filter-brightness))}.action.svelte-123b8pj{flex:0 0 1lh;position:relative;width:1lh;height:1lh;font-size:1.25em}.icon.svelte-123b8pj{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;border:1px solid var(--playpilot-content-light);border-radius:50%}.active.svelte-123b8pj .icon:where(.svelte-123b8pj){color:var(--playpilot-green);border-color:var(--playpilot-green)}.dropdown.svelte-8amt13{position:relative}.content.svelte-8amt13{z-index:10;position:absolute;top:44px;right:var(--offset, 0px);max-height:var(--max-height, 60vh);border-radius:var(--playpilot-border-radius);box-shadow:var(--playpilot-shadow-large);transform-origin:top right;background:var(--playpilot-content);overflow-y:auto;overflow-x:hidden}.left.svelte-8amt13 .content:where(.svelte-8amt13){right:auto;left:var(--offset, 0px);transform-origin:top left}.slider.svelte-1jbl3xv{display:flex;flex-direction:column;width:100%;height:104px;padding:16px}.range.svelte-1jbl3xv{position:relative;padding-top:8px}.label.svelte-1jbl3xv{color:var(--playpilot-text-color);font-weight:var(--playpilot-font-weight-bold);font-size:var(--playpilot-font-size-base)}input[type=range].svelte-1jbl3xv{box-sizing:border-box;-moz-appearance:none;appearance:none;-webkit-appearance:none;position:absolute;width:100%;height:16px;margin:0;padding:1px 0;overflow:hidden;border:0;border-radius:1px;outline:none;background:linear-gradient(var(--playpilot-content-light),var(--playpilot-content-light)) no-repeat center;background-size:100% 1px;pointer-events:none}input[type=range].svelte-1jbl3xv:nth-child(2){background:none}input[type=range].active.svelte-1jbl3xv::-webkit-slider-thumb{background-color:var(--playpilot-text-color-alt)}input[type=range].active.svelte-1jbl3xv::-moz-range-thumb{background-color:var(--playpilot-text-color-alt)}input[type=range].svelte-1jbl3xv::-webkit-slider-thumb{-webkit-appearance:none;z-index:2;position:relative;width:16px;height:16px;margin:4px 0;border:0;border-radius:50%;background:var(--playpilot-text-color-alt);cursor:pointer;pointer-events:all;transition:transform .1s,border-radius .1s,width .1s}input[type=range].svelte-1jbl3xv::-moz-range-thumb{-webkit-appearance:none;z-index:2;position:relative;width:16px;height:16px;margin:4px 0;border:0;border-radius:50%;background:var(--playpilot-text-color-alt);cursor:pointer;pointer-events:all;transition:transform .1s,border-radius .1s,width .1s}.halved.svelte-1jbl3xv input[type=range]:where(.svelte-1jbl3xv)::-webkit-slider-thumb{width:8px;transform:translate(-45%);border-radius:8px .15rem .15rem 8px}.halved.svelte-1jbl3xv input[type=range]:where(.svelte-1jbl3xv)::-moz-range-thumb{width:8px;transform:translate(-45%);border-radius:8px .15rem .15rem 8px}.halved.svelte-1jbl3xv input[type=range]:where(.svelte-1jbl3xv):nth-child(2)::-webkit-slider-thumb{transform:translate(45%);border-radius:.15rem 8px 8px .15rem}.halved.svelte-1jbl3xv input[type=range]:where(.svelte-1jbl3xv):nth-child(2)::-moz-range-thumb{transform:translate(45%);border-radius:.15rem 8px 8px .15rem}input[type=range].svelte-1jbl3xv::-webkit-slider-thumb:before{display:block;position:absolute;top:12px;left:100%;width:100%;height:2px;content:" "}input[type=range].svelte-1jbl3xv::-moz-range-thumb:before{display:block;position:absolute;top:12px;left:100%;width:100%;height:2px;content:" "}.active-line.svelte-1jbl3xv{z-index:0;position:absolute;top:auto;bottom:auto;left:0;width:var(--width, 100%);height:1px;transform:translateY(calc(16px / 2 - var(--range-fill-height, 1px) / 2));background:var(--playpilot-text-color-alt);pointer-events:none}.halved.svelte-1jbl3xv .active-line:where(.svelte-1jbl3xv){width:calc(var(--width, 100%) + 16px/2)}.value-marker.svelte-1jbl3xv{position:absolute;bottom:-44px;color:var(--playpilot-text-color-alt);font-weight:400;font-size:var(--playpilot-font-size-small)}.value-marker.right.svelte-1jbl3xv{right:0;text-align:right}.filter-item.active.svelte-hhk7zz .dropdown>button{box-shadow:inset 0 0 0 1px var(--playpilot-green)}.content.svelte-hhk7zz{width:240px}.content.svelte-1a84kaq{width:112px}.option.svelte-1a84kaq{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:12px 16px;width:100%;border:0;background:transparent;text-align:left;font-family:inherit;font-size:inherit;color:var(--playpilot-text-color-alt);cursor:pointer}.option.svelte-1a84kaq:hover,.option.active.svelte-1a84kaq{color:var(--playpilot-text-color);background:var(--playpilot-content-light)}.filter.svelte-1g2at6t{position:relative}.items.svelte-1g2at6t{display:flex;flex-wrap:wrap;gap:8px;padding-right:112px}.limit.svelte-1g2at6t .items:where(.svelte-1g2at6t){padding-right:0}.actions.svelte-1g2at6t{position:absolute;top:4px;right:0}.limit.svelte-1g2at6t .actions:where(.svelte-1g2at6t){position:initial;top:auto;display:flex;justify-content:space-between;margin-top:8px}.search.svelte-hin0fa{position:relative}.icon.svelte-hin0fa{display:flex;align-items:center;position:absolute;height:100%;left:16px;color:var(--playpilot-text-color-alt);opacity:.75}.input.svelte-hin0fa{width:100%;max-width:var(--playpilot-explore-header-max-width, 600px);padding:12px 16px 12px 48px;border:var(--playpilot-explore-search-border, 0);border-radius:var(--playpilot-exlore-search-border-radius, var(--playpilot-border-radius));background:var(--playpilot-explore-search-background, var(--playpilot-content));color:var(--playpilot-text-color-alt);font-size:var(--playpilot-font-size-base);font-family:var(--playpilot-font-family)}.input.svelte-hin0fa:focus{outline:1px solid white}.input.svelte-hin0fa::placeholder{color:var(--playpilot-text-color-alt);opacity:.75}p.svelte-bnea4i{margin:0}strong.svelte-bnea4i{font-size:var(--playpilot-font-size-large)}.empty.svelte-bnea4i{max-width:var(--playpilot-explore-header-max-width, 600px);padding:32px;border-radius:var(--playpilot-border-radius-large);background:var(--playpilot-lighter)}.explore.svelte-qs8onx{background:var(--playpilot-explore-background, var(--playpilot-light));border-radius:var(--playpilot-border-radius-large);max-width:var(--playpilot-explore-max-width, 1200px);min-height:75vh;margin:0 auto;padding:var(--playpilot-explore-padding, 16px 16px 96px);overflow:auto;font-family:var(--playpilot-font-family);font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-font-weight, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base))}.explore.svelte-qs8onx *{box-sizing:border-box}.header.svelte-qs8onx{display:flex;flex-direction:column;gap:8px;margin:var(--playpilot-explore-header-margin, 0 0 32px);width:100%}.grid.svelte-qs8onx .header:where(.svelte-qs8onx){gap:16px}.divider.svelte-qs8onx{width:100%;height:var(--playpilot-explore-divider-height, 0);max-width:var(--playpilot-explore-header-max-width, 600px);background:var(--playpilot-explore-divider-background, var(--playpilot-text-color))}.heading.svelte-qs8onx{margin:var(--playpilot-explore-heading-margin, 4px 0);color:var(--playpilot-text-color);font-size:var(--playpilot-explore-heading-size, clamp(24px, 5vw, 32px));font-weight:var(--playpilot-explore-heading-font-weight, var(--playpilot-font-bold));text-transform:var(--playpilot-explore-heading-text-transform, var(--playpilot-normal));line-height:1.5}.description.svelte-qs8onx{max-width:var(--playpilot-explore-header-max-width, 600px);margin:var(--playpilot-explore-description-margin, 0 0 16px);color:var(--playpilot-text-color-alt);font-size:var(--playpilot-font-size-small);line-height:1.35}.grid.svelte-qs8onx .description:where(.svelte-qs8onx){font-size:var(--playpilot-font-size-base)}.titles.svelte-qs8onx{--playpilot-list-item-padding: 0;--playpilot-list-item-background: transparent;--playpilot-list-item-hover-shadow: 0 0 0 4px var(--playpilot-lighter);--playpilot-detail-image-background: var(--playpilot-content);display:flex;flex-direction:column;gap:8px}.grid.svelte-qs8onx .titles:where(.svelte-qs8onx){display:grid;grid-template-columns:repeat(var(--grid-columns),minmax(120px,1fr));gap:16px}.show-more.svelte-qs8onx{flex:0 0 100%;display:grid;margin-top:16px}.grid.svelte-qs8onx .show-more:where(.svelte-qs8onx){margin:32px auto 0;max-width:600px;width:100%}.content.svelte-6pqyv7{padding-top:32px}@keyframes svelte-9u5ezu-delay-render{0%{opacity:0}to{opacity:1}}.popover.svelte-9u5ezu{--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-9u5ezu-delay-render 0ms 1ms forwards;z-index:2147483647}.popover.flip.svelte-9u5ezu{flex-direction:column;top:auto;bottom:calc(var(--offset) + 1px);transform:translateY(calc(100% + var(--offset)))}.popover.flip.inline.svelte-9u5ezu{flex-direction:column-reverse}.popover.inline.svelte-9u5ezu{gap:0}.dialog.svelte-9u5ezu{cursor:default;position:relative;border-radius:var(--playpilot-popover-border-radius, var(--playpilot-border-radius-large));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-9u5ezu .dialog:where(.svelte-9u5ezu){border-top-left-radius:0;border-top-right-radius:0}.scroll-indicator.svelte-9u5ezu{z-index:1;position:sticky;bottom:0;pointer-events:none}.scroll-indicator.svelte-9u5ezu: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-9u5ezu{z-index:1;position:absolute;display:flex;bottom:4px;left:50%;transform:translate(-50%);opacity:.75}.scroll-indicator-icon.svelte-9u5ezu svg{fill:var(--playpilot-popover-scroll-indicator-fill, var(--playpilot-text-color))!important}.bubble.svelte-9u5ezu,.append.svelte-9u5ezu{view-transition-name:playpilot-title-extra}img.svelte-j7f9xl{position:absolute;width:1px;height:1px;border:0;opacity:0}.title-popover.svelte-d86q0q{position:absolute}p.svelte-84svc0{font-weight:var(--playpilot-after-article-text-font-weight, var(--playpilot-normal))}span.svelte-84svc0{display:block}button.svelte-84svc0{-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, var(--playpilot-border-radius-large));color:var(--playpilot-after-article-button-text-color, var(--playpilot-inherit));font-weight:var(--playpilot-after-article-button-font-weight, var(--playpilot-bold));font-size:var(--playpilot-after-article-button-font-size, var(--playpilot-border-radius-large));cursor:pointer;transition:all 50ms}button.svelte-84svc0: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, var(--playpilot-inherit));transform:var(--playpilot-after-article-button-transform-hover, var(--playpilot-scale(1.02)))}p.svelte-dawn4f{position:var(--playpilot-in-text-disclaimer-position);top:var(--playpilot-in-text-disclaimer-top);transform:var(--playpilot-in-text-disclaimer-transform);margin:var(--playpilot-in-text-disclaimer-margin);padding:var(--playpilot-in-text-disclaimer-padding);font-size:var(--playpilot-in-text-disclaimer-font-size);font-weight:var(--playpilot-in-text-disclaimer-font-weight);font-style:var(--playpilot-in-text-disclaimer-font-style);color:var(--playpilot-in-text-disclaimer-text-color)}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-k0rhfj{width:100%;padding:8px 16px;border:0;border-radius:32px;background:var(--playpilot-lighter);color:var(--playpilot-text-color-alt);font-size:12px;font-family:var(--playpilot-font-family)}input.svelte-k0rhfj:focus{background:var(--playpilot-lighter);outline:1px solid white}input.svelte-k0rhfj::placeholder{color:var(--playpilot-text-color-alt);opacity:.75}.alert.svelte-1vy4z58{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);color:#fff}.alert.warning.svelte-1vy4z58{border-color:var(--playpilot-warning);background:var(--playpilot-warning-dark)}.alert.fixed.svelte-1vy4z58{position:fixed;bottom:1rem;right:1rem;width:80%;max-width:25rem}.alert.svelte-1vy4z58 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-1d1gqdq{-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-1d1gqdq{cursor:pointer}.item.hoverable.svelte-1d1gqdq:hover{background:var(--playpilot-lighter)}.item.svelte-1d1gqdq:last-child{border-bottom:0}.poster.svelte-1d1gqdq{flex:0 0 auto;height:auto;width:28px;aspect-ratio:28/42;border-radius:4px;background:var(--playpilot-content)}.name.svelte-1d1gqdq{color:var(--playpilot-text-color)}.meta.svelte-1d1gqdq{display:flex;flex-wrap:wrap;gap:0 8px;font-size:12px}.imdb.svelte-1d1gqdq{display:flex;align-items:center;gap:4px}.open-in-new-tab.svelte-1d1gqdq{margin-left:auto;color:var(--playpilot-text-color-alt)}.open-in-new-tab.svelte-1d1gqdq:hover{color:var(--playpilot-text-color)}.search.svelte-s0qvcb{position:relative}.results.svelte-s0qvcb{z-index:1;position:absolute;top:calc(100% + 8px);left:0;right:0;height:30vh;max-height:160px;border-radius:8px;background:var(--playpilot-lighter);scrollbar-width:thin;overflow:auto}.empty.svelte-s0qvcb{padding:8px;font-size:12px;color:var(--playpilot-text-color-alt)}.selected.svelte-s0qvcb{margin:8px 0;border-radius:.5rem;border:2px solid var(--playpilot-green)}p.svelte-q5prge,label.svelte-q5prge{font-size:12px;max-width:240px;color:var(--playpilot-text-color-alt)}label.svelte-q5prge{display:block;margin-top:16px}.layout.svelte-q5prge{height:100%;display:flex;flex-direction:column;margin:0}.header.svelte-q5prge{display:flex;align-items:center;gap:8px;margin-bottom:16px}.heading.svelte-q5prge{margin:0;color:var(--playpilot-text-color);font-size:16px;line-height:normal;font-weight:400}.error.svelte-q5prge{margin-top:8px}.save.svelte-q5prge{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-q5prge:not([disabled]):hover{outline:2px solid currentColor}.save[disabled].svelte-q5prge{cursor:default;background:var(--playpilot-lighter);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}p.svelte-38hnm{margin:0}.ai-indicator.svelte-38hnm{position:relative;margin:0 8px}.content.svelte-38hnm{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-38hnm{display:flex;margin-top:4px;font-style:italic}.icon.svelte-38hnm{color:var(--playpilot-green)}.border.svelte-38hnm{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-38hnm .border:where(.svelte-38hnm){background:var(--playpilot-light)}@keyframes svelte-38hnm-rotate{to{rotate:360deg}}.animator.svelte-38hnm{position:absolute;left:50%;top:50%;transform:translateY(-50%);width:100%;height:20rem;background:var(--playpilot-green);transform-origin:left 50%;animation:svelte-38hnm-rotate 2s infinite linear;filter:blur(5rem)}.loading-bar.svelte-38hnm{display:grid;grid-template-columns:auto 3em;align-items:center}.loading-bar-progress.svelte-38hnm{height:.5em;border-radius:.25rem;background:var(--playpilot-lighter)}.loading-bar-fill.svelte-38hnm{height:100%;border-radius:.25rem;background:var(--playpilot-green);transition:width .2s}.loading-bar-label.svelte-38hnm{text-align:right}@keyframes svelte-38hnm-fade{0%,to{opacity:0}25%,75%{opacity:1}}.ellipses.svelte-38hnm span:where(.svelte-38hnm){animation:svelte-38hnm-fade 2s infinite}.ellipses.svelte-38hnm span:where(.svelte-38hnm):nth-child(1){animation-delay:.2s}.ellipses.svelte-38hnm span:where(.svelte-38hnm):nth-child(2){animation-delay:.4s}.ellipses.svelte-38hnm span:where(.svelte-38hnm):nth-child(3){animation-delay:.6s}.dismiss.svelte-38hnm{-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-38hnm:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.editor.svelte-1dzk6rn{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-1dzk6rn{overflow:hidden}.loading.svelte-1dzk6rn{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-1dzk6rn,.header.svelte-1dzk6rn{z-index:20;position:sticky;top:-16px;margin:-16px -16px 0}.handle.svelte-1dzk6rn{opacity:0;transition:opacity .15s}.editor.svelte-1dzk6rn:hover .handle:where(.svelte-1dzk6rn){opacity:1}.header.svelte-1dzk6rn{z-index:5;display:flex;align-items:center;padding:16px 16px 16px 24px;margin:0 -16px;border:0;background:var(--playpilot-dark)}.loading.svelte-1dzk6rn .header:where(.svelte-1dzk6rn){margin:-16px}.heading.svelte-1dzk6rn{margin:0 12px 0 0;color:var(--playpilot-text-color);font-size:20px;font-weight:400;line-height:normal}.bubble.svelte-1dzk6rn{-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-1dzk6rn{padding-top:8px;margin-bottom:auto}.empty.svelte-1dzk6rn{padding:8px;font-size:13.6px;font-style:italic;color:var(--playpilot-text-color-alt)}.save.svelte-1dzk6rn{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-1dzk6rn:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.save[disabled].svelte-1dzk6rn{opacity:.75;background:var(--playpilot-lighter);color:var(--playpilot-content-light)}.error.svelte-1dzk6rn{margin-top:8px}.alert.svelte-1dzk6rn{margin:8px 8px 0}.panel.svelte-1dzk6rn{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}summary.svelte-o82u5e{color:var(--playpilot-primary);font-weight:700}hr.svelte-o82u5e{border-color:var(--playpilot-primary)}button.svelte-o82u5e{cursor:pointer;padding:8px;border:1px solid var(--playpilot-primary);background:transparent;color:var(--playpilot-primary);font-family:inherit;font-weight:700}button.svelte-o82u5e:hover{color:#000;background:var(--playpilot-primary)}.debugger.svelte-o82u5e{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;color:var(--playpilot-primary)}.item.svelte-o82u5e{white-space:nowrap;overflow-x:auto;scrollbar-width:thin}.data.svelte-o82u5e{color:gray}.error.svelte-o82u5e{color:red}:root{--playpilot-primary: #fa548a;--playpilot-dark: #101426;--playpilot-light: #1b2743;--playpilot-lighter: #233257;--playpilot-content: #354367;--playpilot-content-light: #4b5b82;--playpilot-green: #53bca0;--playpilot-error: #ea5a5a;--playpilot-error-dark: #442533;--playpilot-warning: #f7c74e;--playpilot-warning-dark: #413c23;--playpilot-text-color: #fff;--playpilot-text-color-alt: #c8d4de;--playpilot-border-radius-small: 4px;--playpilot-border-radius: 8px;--playpilot-border-radius-large: 16px;--playpilot-font-family: Poppins, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;--playpilot-font-size-small: 12px;--playpilot-font-size-base: 14px;--playpilot-font-size-large: 16px;--playpilot-font-bold: 500;--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-hover-filter-brightness: 1.1}[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-scrollbar::-webkit-scrollbar{width:12px}.playpilot-styled-scrollbar::-webkit-scrollbar-track{background:var(--playpilot-light)}.playpilot-styled-scrollbar::-webkit-scrollbar-thumb{border:2px solid var(--playpilot-light);border-radius:16px;background:var(--playpilot-lighter)}.playpilot-styled-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--playpilot-content-light)}.playpilot-styled-scrollbar::-webkit-scrollbar-thumb:active{background:var(--playpilot-text-color-alt)}.playpilot-modal-open{overflow-y:hidden!important}[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%}@keyframes playpilot-poster-fly-in{0%{opacity:0;transform:translate(-50%) translateY(1.5rem)}}@keyframes playpilot-poster-fly-out{to{opacity:0;transform:translate(-50%) translateY(.5rem)}}.playpilot-floating-poster{opacity:0;position:absolute;bottom:calc(100% + .15em);left:50%;transform:translate(-50%);width:40px;height:auto;border-radius:var(--playpilot-border-radius-small);box-shadow:0 2px 4px #0000001a;transform-origin:bottom center}.playpilot-floating-poster.loaded{animation:playpilot-poster-fly-in .5s cubic-bezier(.25,1.75,.5,1);opacity:1}.playpilot-floating-poster.animating-out{animation:playpilot-poster-fly-out .15s forwards}.playpilot-link-injections.svelte-hwl9kp *,[data-playpilot-explore] *{box-sizing:border-box}.playpilot-link-injections.svelte-hwl9kp svg,[data-playpilot-explore] svg{fill:none}.playpilot-link-injections.svelte-hwl9kp a,.playpilot-link-injections.svelte-hwl9kp button,.playpilot-link-injections.svelte-hwl9kp input,[data-playpilot-explore] a,[data-playpilot-explore] button,[data-playpilot-explore] input{transition:outline-offset .1s}.playpilot-link-injections.svelte-hwl9kp a:focus-visible,.playpilot-link-injections.svelte-hwl9kp button:focus-visible,.playpilot-link-injections.svelte-hwl9kp input:focus-visible,[data-playpilot-explore] a:focus-visible,[data-playpilot-explore] button:focus-visible,[data-playpilot-explore] input:focus-visible{outline:2px solid white;outline-offset:2px}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(Se);const Te=!1;var je=Array.isArray,Na=Array.prototype.indexOf,bi=Array.from,jl=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,kn=Object.getOwnPropertyDescriptors,Pl=Object.prototype,Il=Array.prototype,_i=Object.getPrototypeOf;function Yt(t){return typeof t=="function"}const st=()=>{};function Al(t){return typeof(t==null?void 0:t.then)=="function"}function ql(t){return t()}function xi(t){for(var e=0;e<t.length;e++)t[e]()}function Da(t,e,a=!1){return t===void 0?a?e():e:t}const it=2,Sn=4,pa=8,Oa=16,nt=32,fa=64,Ra=128,qt=256,Ba=512,Ze=1024,xt=2048,Ha=4096,ct=8192,Zt=16384,Tn=32768,wt=65536,Ml=1<<17,Cn=1<<19,zn=1<<20,dt=Symbol("$state"),En=Symbol("legacy props"),wi=Symbol("");function jn(t){return t===this.v}function ki(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ll(t,e){return t!==e}function Si(t){return!ki(t,this.v)}function Nl(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Dl(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ol(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Rl(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Bl(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Hl(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Fl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Vl(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Ul(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Jt=!1,Wl=!1;function Gl(){Jt=!0}const Ti=1,Ci=2,Pn=4,Kl=8,Yl=16,Zl=1,Jl=2,Xl=4,Ql=8,$l=16,eo=1,to=2,ao=4,io=1,no=2,Me=Symbol(),zi="http://www.w3.org/2000/svg";function Re(t,e){var a={f:0,v:t,reactions:null,equals:jn,rv:0,wv:0};return a}function U(t){return ro(Re(t))}function Fa(t,e=!1){var i;const a=Re(t);return e||(a.equals=Si),Jt&&ye!==null&&ye.l!==null&&((i=ye.l).s??(i.s=[])).push(a),a}function ro(t){return _e!==null&&_e.f&it&&(vt===null?bo([t]):vt.push(t)),t}function E(t,e){return _e!==null&&aa()&&_e.f&(it|Oa)&&(vt===null||!vt.includes(t))&&Ul(),Xt(t,e)}function Xt(t,e){return t.equals(e)||(t.v,t.v=e,t.wv=Qn(),In(t,xt),aa()&&pe!==null&&pe.f&Ze&&!(pe.f&nt)&&(Fe!==null&&Fe.includes(t)?(ut(pe,xt),Ya(pe)):St===null?_o([t]):St.push(t))),e}function In(t,e){var a=t.reactions;if(a!==null)for(var i=aa(),n=a.length,r=0;r<n;r++){var o=a[r],s=o.f;s&xt||!i&&o===pe||(ut(o,e),s&(Ze|qt)&&(s&it?In(o,Ha):Ya(o)))}}let Ei=!1;function Rh(t){}function Bh(t=1){}function ee(t,e=null,a){if(typeof t!="object"||t===null||dt in t)return t;const i=_i(t);if(i!==Pl&&i!==Il)return t;var n=new Map,r=je(t),o=Re(0);r&&n.set("length",Re(t.length));var s;return new Proxy(t,{defineProperty(c,d,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&Hl();var u=n.get(d);return u===void 0?(u=Re(v.value),n.set(d,u)):E(u,ee(v.value,s)),!0},deleteProperty(c,d){var v=n.get(d);if(v===void 0)d in c&&n.set(d,Re(Me));else{if(r&&typeof d=="string"){var u=n.get("length"),p=Number(d);Number.isInteger(p)&&p<u.v&&E(u,p)}E(v,Me),An(o)}return!0},get(c,d,v){var m;if(d===dt)return t;var u=n.get(d),p=d in c;if(u===void 0&&(!p||(m=_t(c,d))!=null&&m.writable)&&(u=Re(ee(p?c[d]:Me,s)),n.set(d,u)),u!==void 0){var b=l(u);return b===Me?void 0:b}return Reflect.get(c,d,v)},getOwnPropertyDescriptor(c,d){var v=Reflect.getOwnPropertyDescriptor(c,d);if(v&&"value"in v){var u=n.get(d);u&&(v.value=l(u))}else if(v===void 0){var p=n.get(d),b=p==null?void 0:p.v;if(p!==void 0&&b!==Me)return{enumerable:!0,configurable:!0,value:b,writable:!0}}return v},has(c,d){var b;if(d===dt)return!0;var v=n.get(d),u=v!==void 0&&v.v!==Me||Reflect.has(c,d);if(v!==void 0||pe!==null&&(!u||(b=_t(c,d))!=null&&b.writable)){v===void 0&&(v=Re(u?ee(c[d],s):Me),n.set(d,v));var p=l(v);if(p===Me)return!1}return u},set(c,d,v,u){var C;var p=n.get(d),b=d in c;if(r&&d==="length")for(var m=v;m<p.v;m+=1){var f=n.get(m+"");f!==void 0?E(f,Me):m in c&&(f=Re(Me),n.set(m+"",f))}p===void 0?(!b||(C=_t(c,d))!=null&&C.writable)&&(p=Re(void 0),E(p,ee(v,s)),n.set(d,p)):(b=p.v!==Me,E(p,ee(v,s)));var h=Reflect.getOwnPropertyDescriptor(c,d);if(h!=null&&h.set&&h.set.call(u,v),!b){if(r&&typeof d=="string"){var g=n.get("length"),x=Number(d);Number.isInteger(x)&&x>=g.v&&E(g,x+1)}An(o)}return!0},ownKeys(c){l(o);var d=Reflect.ownKeys(c).filter(p=>{var b=n.get(p);return b===void 0||b.v!==Me});for(var[v,u]of n)u.v!==Me&&!(v in c)&&d.push(v);return d},setPrototypeOf(){Fl()}})}function An(t,e=1){E(t,t.v+e)}function qn(t){return t!==null&&typeof t=="object"&&dt in t?t[dt]:t}function lo(t,e){return Object.is(qn(t),qn(e))}var be,Mn,Ln;function oo(){if(be===void 0){be=window;var t=Element.prototype,e=Node.prototype;Mn=_t(e,"firstChild").get,Ln=_t(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0}}function Qt(t=""){return document.createTextNode(t)}function Mt(t){return Mn.call(t)}function Va(t){return Ln.call(t)}function _(t,e){return Mt(t)}function J(t,e){{var a=Mt(t);return a instanceof Comment&&a.data===""?Va(a):a}}function S(t,e=1,a=!1){let i=t;for(;e--;)i=Va(i);return i}function so(t){t.textContent=""}function O(t){var e=it|xt;pe===null?e|=qt:pe.f|=zn;var a=_e!==null&&_e.f&it?_e:null;const i={children:null,ctx:ye,deps:null,equals:jn,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:a??pe};return a!==null&&(a.children??(a.children=[])).push(i),i}function co(t){const e=O(t);return e.equals=Si,e}function Nn(t){var e=t.children;if(e!==null){t.children=null;for(var a=0;a<e.length;a+=1){var i=e[a];i.f&it?ji(i):$e(i)}}}function vo(t){for(var e=t.parent;e!==null;){if(!(e.f&it))return e;e=e.parent}return null}function Dn(t){var e,a=pe;He(vo(t));try{Nn(t),e=$n(t)}finally{He(a)}return e}function On(t){var e=Dn(t),a=(Tt||t.f&qt)&&t.deps!==null?Ha:Ze;ut(t,a),t.equals(e)||(t.v=e,t.wv=Qn())}function ji(t){Nn(t),xa(t,0),ut(t,Zt),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Rn(t){pe===null&&_e===null&&Ol(),_e!==null&&_e.f&qt&&Dl(),qi&&Nl()}function uo(t,e){var a=e.last;a===null?e.last=e.first=t:(a.next=t,t.prev=a,e.last=t)}function $t(t,e,a,i=!0){var n=(t&fa)!==0,r=pe,o={ctx:ye,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|xt,first:null,fn:e,last:null,next:null,parent:n?null:r,prev:null,teardown:null,transitions:null,wv:0};if(a){var s=ea;try{Zn(!0),Ka(o),o.f|=Tn}catch(v){throw $e(o),v}finally{Zn(s)}}else e!==null&&Ya(o);var c=a&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&zn)===0;if(!c&&!n&&i&&(r!==null&&uo(o,r),_e!==null&&_e.f&it)){var d=_e;(d.children??(d.children=[])).push(o)}return o}function po(){return _e===null?!1:!Tt}function Bn(t){const e=$t(pa,null,!1);return ut(e,Ze),e.teardown=t,e}function Ge(t){Rn();var e=pe!==null&&(pe.f&nt)!==0&&ye!==null&&!ye.m;if(e){var a=ye;(a.e??(a.e=[])).push({fn:t,effect:pe,reaction:_e})}else{var i=ht(t);return i}}function fo(t){return Rn(),ha(t)}function ho(t){const e=$t(fa,t,!0);return(a={})=>new Promise(i=>{a.outro?lt(e,()=>{$e(e),i(void 0)}):($e(e),i(void 0))})}function ht(t){return $t(Sn,t,!1)}function ha(t){return $t(pa,t,!0)}function M(t){return rt(t)}function rt(t,e=0){return $t(pa|Oa|e,t,!0)}function Be(t,e=!0){return $t(pa|nt,t,!0,e)}function Hn(t){var e=t.teardown;if(e!==null){const a=qi,i=_e;Jn(!0),Ke(null);try{e.call(null)}finally{Jn(a),Ke(i)}}}function Fn(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var a=0;a<e.length;a+=1)ji(e[a])}}function Vn(t,e=!1){var a=t.first;for(t.first=t.last=null;a!==null;){var i=a.next;$e(a,e),a=i}}function go(t){for(var e=t.first;e!==null;){var a=e.next;e.f&nt||$e(e),e=a}}function $e(t,e=!0){var a=!1;if((e||t.f&Cn)&&t.nodes_start!==null){for(var i=t.nodes_start,n=t.nodes_end;i!==null;){var r=i===n?null:Va(i);i.remove(),i=r}a=!0}Vn(t,e&&!a),Fn(t),xa(t,0),ut(t,Zt);var o=t.transitions;if(o!==null)for(const c of o)c.stop();Hn(t);var s=t.parent;s!==null&&s.first!==null&&Un(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Un(t){var e=t.parent,a=t.prev,i=t.next;a!==null&&(a.next=i),i!==null&&(i.prev=a),e!==null&&(e.first===t&&(e.first=i),e.last===t&&(e.last=a))}function lt(t,e){var a=[];Pi(t,a,!0),Wn(a,()=>{$e(t),e&&e()})}function Wn(t,e){var a=t.length;if(a>0){var i=()=>--a||e();for(var n of t)n.out(i)}else e()}function Pi(t,e,a){if(!(t.f&ct)){if(t.f^=ct,t.transitions!==null)for(const o of t.transitions)(o.is_global||a)&&e.push(o);for(var i=t.first;i!==null;){var n=i.next,r=(i.f&wt)!==0||(i.f&nt)!==0;Pi(i,e,r?a:!1),i=n}}}function kt(t){Gn(t,!0)}function Gn(t,e){if(t.f&ct){ba(t)&&Ka(t),t.f^=ct;for(var a=t.first;a!==null;){var i=a.next,n=(a.f&wt)!==0||(a.f&nt)!==0;Gn(a,n?e:!1),a=i}if(t.transitions!==null)for(const r of t.transitions)(r.is_global||e)&&r.in()}}let Ua=!1,Ii=[];function Kn(){Ua=!1;const t=Ii.slice();Ii=[],xi(t)}function Lt(t){Ua||(Ua=!0,queueMicrotask(Kn)),Ii.push(t)}function mo(){Ua&&Kn()}function Ai(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}const Yn=0,yo=1;let ga=!1,Wa=Yn,ma=!1,ya=null,ea=!1,qi=!1;function Zn(t){ea=t}function Jn(t){qi=t}let Nt=[],ta=0,Hh=[],_e=null;function Ke(t){_e=t}let pe=null;function He(t){pe=t}let vt=null;function bo(t){vt=t}let Fe=null,Je=0,St=null;function _o(t){St=t}let Xn=1,Mi=0,Tt=!1,ye=null;function Ga(t){ye=t}function Qn(){return++Xn}function aa(){return!Jt||ye!==null&&ye.l===null}function ba(t){var d;var e=t.f;if(e&xt)return!0;if(e&Ha){var a=t.deps,i=(e&qt)!==0;if(a!==null){var n,r,o=(e&Ba)!==0,s=i&&pe!==null&&!Tt,c=a.length;if(o||s){for(n=0;n<c;n++)r=a[n],(o||!((d=r==null?void 0:r.reactions)!=null&&d.includes(t)))&&(r.reactions??(r.reactions=[])).push(t);o&&(t.f^=Ba)}for(n=0;n<c;n++)if(r=a[n],ba(r)&&On(r),r.wv>t.wv)return!0}(!i||pe!==null&&!Tt)&&ut(t,Ze)}return!1}function xo(t,e){for(var a=e;a!==null;){if(a.f&Ra)try{a.fn(t);return}catch{a.f^=Ra}a=a.parent}throw ga=!1,t}function wo(t){return(t.f&Zt)===0&&(t.parent===null||(t.parent.f&Ra)===0)}function Li(){ga=!1}function _a(t,e,a,i){if(ga){if(a===null&&(ga=!1),wo(e))throw t;return}a!==null&&(ga=!0);{xo(t,e);return}}function $n(t){var p;var e=Fe,a=Je,i=St,n=_e,r=Tt,o=vt,s=ye,c=t.f;Fe=null,Je=0,St=null,_e=c&(nt|fa)?null:t,Tt=!ea&&(c&qt)!==0,vt=null,ye=t.ctx,Mi++;try{var d=(0,t.fn)(),v=t.deps;if(Fe!==null){var u;if(xa(t,Je),v!==null&&Je>0)for(v.length=Je+Fe.length,u=0;u<Fe.length;u++)v[Je+u]=Fe[u];else t.deps=v=Fe;if(!Tt)for(u=Je;u<v.length;u++)((p=v[u]).reactions??(p.reactions=[])).push(t)}else v!==null&&Je<v.length&&(xa(t,Je),v.length=Je);return d}finally{Fe=e,Je=a,St=i,_e=n,Tt=r,vt=o,ye=s}}function ko(t,e){let a=e.reactions;if(a!==null){var i=Na.call(a,t);if(i!==-1){var n=a.length-1;n===0?a=e.reactions=null:(a[i]=a[n],a.pop())}}a===null&&e.f&it&&(Fe===null||!Fe.includes(e))&&(ut(e,Ha),e.f&(qt|Ba)||(e.f^=Ba),xa(e,0))}function xa(t,e){var a=t.deps;if(a!==null)for(var i=e;i<a.length;i++)ko(t,a[i])}function Ka(t){var e=t.f;if(!(e&Zt)){ut(t,Ze);var a=pe,i=ye;pe=t;try{e&Oa?go(t):Vn(t),Fn(t),Hn(t);var n=$n(t);t.teardown=typeof n=="function"?n:null,t.wv=Xn;var r=t.deps,o;Te&&Wl&&t.f&xt}catch(s){_a(s,t,a,i||t.ctx)}finally{pe=a}}}function er(){if(ta>1e3){ta=0;try{Rl()}catch(t){if(ya!==null)_a(t,ya,null);else throw t}}ta++}function tr(t){var e=t.length;if(e!==0){er();var a=ea;ea=!0;try{for(var i=0;i<e;i++){var n=t[i];n.f&Ze||(n.f^=Ze);var r=[];ar(n,r),So(r)}}finally{ea=a}}}function So(t){var e=t.length;if(e!==0)for(var a=0;a<e;a++){var i=t[a];if(!(i.f&(Zt|ct)))try{ba(i)&&(Ka(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?Un(i):i.fn=null))}catch(n){_a(n,i,null,i.ctx)}}}function To(){if(ma=!1,ta>1001)return;const t=Nt;Nt=[],tr(t),ma||(ta=0,ya=null)}function Ya(t){Wa===Yn&&(ma||(ma=!0,queueMicrotask(To))),ya=t;for(var e=t;e.parent!==null;){e=e.parent;var a=e.f;if(a&(fa|nt)){if(!(a&Ze))return;e.f^=Ze}}Nt.push(e)}function ar(t,e){var a=t.first,i=[];e:for(;a!==null;){var n=a.f,r=(n&nt)!==0,o=r&&(n&Ze)!==0,s=a.next;if(!o&&!(n&ct))if(n&pa){if(r)a.f^=Ze;else try{ba(a)&&Ka(a)}catch(u){_a(u,a,null,a.ctx)}var c=a.first;if(c!==null){a=c;continue}}else n&Sn&&i.push(a);if(s===null){let u=a.parent;for(;u!==null;){if(t===u)break e;var d=u.next;if(d!==null){a=d;continue e}u=u.parent}}a=s}for(var v=0;v<i.length;v++)c=i[v],e.push(c),ar(c,e)}function Ni(t){var e=Wa,a=Nt;try{er();const n=[];Wa=yo,Nt=n,ma=!1,tr(a);var i=t==null?void 0:t();return mo(),(Nt.length>0||n.length>0)&&Ni(),ta=0,ya=null,i}finally{Wa=e,Nt=a}}async function wa(){await Promise.resolve(),Ni()}function l(t){var v;var e=t.f,a=(e&it)!==0;if(a&&e&Zt){var i=Dn(t);return ji(t),i}if(_e!==null){vt!==null&&vt.includes(t)&&Vl();var n=_e.deps;t.rv<Mi&&(t.rv=Mi,Fe===null&&n!==null&&n[Je]===t?Je++:Fe===null?Fe=[t]:Fe.push(t),St!==null&&pe!==null&&pe.f&Ze&&!(pe.f&nt)&&St.includes(t)&&(ut(pe,xt),Ya(pe)))}else if(a&&t.deps===null)for(var r=t,o=r.parent,s=r;o!==null;)if(o.f&it){var c=o;s=c,o=c.parent}else{var d=o;(v=d.deriveds)!=null&&v.includes(s)||(d.deriveds??(d.deriveds=[])).push(s);break}return a&&(r=t,ba(r)&&On(r)),t.v}function Xe(t){const e=_e;try{return _e=null,t()}finally{_e=e}}const Co=-7169;function ut(t,e){t.f=t.f&Co|e}function Di(t){return ir().get(t)}function Oi(t,e){return ir().set(t,e),e}function ir(t){return ye===null&&Ai(),ye.c??(ye.c=new Map(zo(ye)||void 0))}function zo(t){let e=t.p;for(;e!==null;){const a=e.c;if(a!==null)return a;e=e.p}return null}function Eo(t,e=1){var a=l(t),i=e===1?a++:a--;return E(t,a),i}function ae(t,e=!1,a){ye={p:ye,c:null,e:null,m:!1,s:t,x:null,l:null},Jt&&!e&&(ye.l={s:null,u:null,r1:[],r2:Re(!1)})}function ie(t){const e=ye;if(e!==null){t!==void 0&&(e.x=t);const o=e.e;if(o!==null){var a=pe,i=_e;e.e=null;try{for(var n=0;n<o.length;n++){var r=o[n];He(r.effect),Ke(r.reaction),ht(r.fn)}}finally{He(a),Ke(i)}}ye=e.p,e.m=!0}return t||{}}function nr(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(dt in t)Ri(t);else if(!Array.isArray(t))for(let e in t){const a=t[e];typeof a=="object"&&a&&dt in a&&Ri(a)}}}function Ri(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let i in t)try{Ri(t[i],e)}catch{}const a=_i(t);if(a!==Object.prototype&&a!==Array.prototype&&a!==Map.prototype&&a!==Set.prototype&&a!==Date.prototype){const i=kn(a);for(let n in i){const r=i[n].get;if(r)try{r.call(t)}catch{}}}}}function jo(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Po=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Io(t){return Po.includes(t)}const Ao={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function qo(t){return t=t.toLowerCase(),Ao[t]??t}const Mo=["touchstart","touchmove"];function Lo(t){return Mo.includes(t)}function No(t,e){if(e){const a=document.body;t.autofocus=!0,Lt(()=>{document.activeElement===a&&t.focus()})}}let rr=!1;function Do(){rr||(rr=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const a of t.target.elements)(e=a.__on_r)==null||e.call(a)})},{capture:!0}))}function Oo(t,e,a,i=!0){i&&a();for(var n of e)t.addEventListener(n,a);Bn(()=>{for(var r of e)t.removeEventListener(r,a)})}function Bi(t){var e=_e,a=pe;Ke(null),He(null);try{return t()}finally{Ke(e),He(a)}}function lr(t,e,a,i=a){t.addEventListener(e,()=>Bi(a));const n=t.__on_r;n?t.__on_r=()=>{n(),i(!0)}:t.__on_r=()=>i(!0),Do()}const or=new Set,Hi=new Set;function Fi(t,e,a,i){function n(r){if(i.capture||ka.call(e,r),!r.cancelBubble)return Bi(()=>a.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Lt(()=>{e.addEventListener(t,n,i)}):e.addEventListener(t,n,i),n}function Ro(t,e,a,i={}){var n=Fi(e,t,a,i);return()=>{t.removeEventListener(e,n,i)}}function se(t,e,a,i,n){var r={capture:i,passive:n},o=Fi(t,e,a,r);(e===document.body||e===window||e===document)&&Bn(()=>{e.removeEventListener(t,o,r)})}function fe(t){for(var e=0;e<t.length;e++)or.add(t[e]);for(var a of Hi)a(t)}function ka(t){var x;var e=this,a=e.ownerDocument,i=t.type,n=((x=t.composedPath)==null?void 0:x.call(t))||[],r=n[0]||t.target,o=0,s=t.__root;if(s){var c=n.indexOf(s);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var d=n.indexOf(e);if(d===-1)return;c<=d&&(o=c)}if(r=n[o]||t.target,r!==e){jl(t,"currentTarget",{configurable:!0,get(){return r||a}});var v=_e,u=pe;Ke(null),He(null);try{for(var p,b=[];r!==null;){var m=r.assignedSlot||r.parentNode||r.host||null;try{var f=r["__"+i];if(f!==void 0&&!r.disabled)if(je(f)){var[h,...g]=f;h.apply(r,[t,...g])}else f.call(r,t)}catch(C){p?b.push(C):p=C}if(t.cancelBubble||m===e||m===null)break;r=m}if(p){for(let C of b)queueMicrotask(()=>{throw C});throw p}}finally{t.__root=e,delete t.currentTarget,Ke(v),He(u)}}}function Bo(t){var e;e=document.head.appendChild(Qt());try{rt(()=>t(e),Cn)}finally{}}function Vi(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Dt(t,e){var a=pe;a.nodes_start===null&&(a.nodes_start=t,a.nodes_end=e)}function T(t,e){var a=(e&io)!==0,i=(e&no)!==0,n,r=!t.startsWith("<!>");return()=>{n===void 0&&(n=Vi(r?t:"<!>"+t),a||(n=Mt(n)));var o=i?document.importNode(n,!0):n.cloneNode(!0);if(a){var s=Mt(o),c=o.lastChild;Dt(s,c)}else Dt(o,o);return o}}function Pe(t,e,a="svg"){var i=!t.startsWith("<!>"),n=`<${a}>${i?t:"<!>"+t}</${a}>`,r;return()=>{if(!r){var o=Vi(n),s=Mt(o);r=Mt(s)}var c=r.cloneNode(!0);return Dt(c,c),c}}function Le(t=""){{var e=Qt(t+"");return Dt(e,e),e}}function he(){var t=document.createDocumentFragment(),e=document.createComment(""),a=Qt();return t.append(e,a),Dt(e,a),t}function y(t,e){t!==null&&t.before(e)}let Za=!0;function sr(t){Za=t}function Z(t,e){var a=e==null?"":typeof e=="object"?e+"":e;a!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=a,t.nodeValue=a==null?"":a+"")}function pt(t,e){return Ho(t,e)}const ia=new Map;function Ho(t,{target:e,anchor:a,props:i={},events:n,context:r,intro:o=!0}){oo();var s=new Set,c=u=>{for(var p=0;p<u.length;p++){var b=u[p];if(!s.has(b)){s.add(b);var m=Lo(b);e.addEventListener(b,ka,{passive:m});var f=ia.get(b);f===void 0?(document.addEventListener(b,ka,{passive:m}),ia.set(b,1)):ia.set(b,f+1)}}};c(bi(or)),Hi.add(c);var d=void 0,v=ho(()=>{var u=a??e.appendChild(Qt());return Be(()=>{if(r){ae({});var p=ye;p.c=r}n&&(i.$$events=n),Za=o,d=t(u,i)||{},Za=!0,r&&ie()}),()=>{var m;for(var p of s){e.removeEventListener(p,ka);var b=ia.get(p);--b===0?(document.removeEventListener(p,ka),ia.delete(p)):ia.set(p,b)}Hi.delete(c),u!==a&&((m=u.parentNode)==null||m.removeChild(u))}});return Ui.set(d,v),d}let Ui=new WeakMap;function Ot(t,e){const a=Ui.get(t);return a?(Ui.delete(t),a(e)):Promise.resolve()}const Wi=0,Ja=1,Gi=2;function Xa(t,e,a,i,n){var r=t,o=aa(),s=ye,c=Me,d,v,u,p=(o?Re:Fa)(void 0),b=(o?Re:Fa)(void 0),m=!1;function f(g,x){m=!0,x&&(He(h),Ke(h),Ga(s));try{g===Wi&&a&&(d?kt(d):d=Be(()=>a(r))),g===Ja&&i&&(v?kt(v):v=Be(()=>i(r,p))),g===Gi&&n&&(u?kt(u):u=Be(()=>n(r,b))),g!==Wi&&d&<(d,()=>d=null),g!==Ja&&v&<(v,()=>v=null),g!==Gi&&u&<(u,()=>u=null)}finally{x&&(Ga(null),Ke(null),He(null),Ni())}}var h=rt(()=>{if(c!==(c=e())){if(Al(c)){var g=c;m=!1,g.then(x=>{g===c&&(Xt(p,x),f(Ja,!0))},x=>{if(g===c&&(Xt(b,x),f(Gi,!0),!n))throw b.v}),Lt(()=>{m||f(Wi,!0)})}else Xt(p,c),f(Ja,!1);return()=>c=Me}})}function D(t,e,a=!1){var i=t,n=null,r=null,o=Me,s=a?wt:0,c=!1;const d=(u,p=!0)=>{c=!0,v(p,u)},v=(u,p)=>{o!==(o=u)&&(o?(n?kt(n):p&&(n=Be(()=>p(i))),r&<(r,()=>{r=null})):(r?kt(r):p&&(r=Be(()=>p(i))),n&<(n,()=>{n=null})))};rt(()=>{c=!1,e(d),c||v(null,null)},s)}function na(t,e,a){var i=t,n=Me,r,o=aa()?Ll:ki;rt(()=>{o(n,n=e())&&(r&<(r),r=Be(()=>a(i)))})}let Rt=null;function cr(t){Rt=t}function Ie(t,e){return e}function Fo(t,e,a,i){for(var n=[],r=e.length,o=0;o<r;o++)Pi(e[o].e,n,!0);var s=r>0&&n.length===0&&a!==null;if(s){var c=a.parentNode;so(c),c.append(a),i.clear(),Ct(t,e[0].prev,e[r-1].next)}Wn(n,()=>{for(var d=0;d<r;d++){var v=e[d];s||(i.delete(v.k),Ct(t,v.prev,v.next)),$e(v.e,!s)}})}function Ce(t,e,a,i,n,r=null){var o=t,s={flags:e,items:new Map,first:null},c=(e&Pn)!==0;if(c){var d=t;o=d.appendChild(Qt())}var v=null,u=!1;rt(()=>{var p=a(),b=je(p)?p:p==null?[]:bi(p),m=b.length;if(!(u&&m===0)){u=m===0;{var f=_e;Vo(b,s,o,n,e,(f.f&ct)!==0,i)}r!==null&&(m===0?v?kt(v):v=Be(()=>r(o)):v!==null&<(v,()=>{v=null})),a()}})}function Vo(t,e,a,i,n,r,o,s){var H,A,W,ne;var c=(n&Kl)!==0,d=(n&(Ti|Ci))!==0,v=t.length,u=e.items,p=e.first,b=p,m,f=null,h,g=[],x=[],C,j,z,I;if(c)for(I=0;I<v;I+=1)C=t[I],j=o(C,I),z=u.get(j),z!==void 0&&((H=z.a)==null||H.measure(),(h??(h=new Set)).add(z));for(I=0;I<v;I+=1){if(C=t[I],j=o(C,I),z=u.get(j),z===void 0){var V=b?b.e.nodes_start:a;f=Wo(V,e,f,f===null?e.first:f.next,C,j,I,i,n),u.set(j,f),g=[],x=[],b=f.next;continue}if(d&&Uo(z,C,I,n),z.e.f&ct&&(kt(z.e),c&&((A=z.a)==null||A.unfix(),(h??(h=new Set)).delete(z))),z!==b){if(m!==void 0&&m.has(z)){if(g.length<x.length){var P=x[0],k;f=P.prev;var q=g[0],R=g[g.length-1];for(k=0;k<g.length;k+=1)dr(g[k],P,a);for(k=0;k<x.length;k+=1)m.delete(x[k]);Ct(e,q.prev,R.next),Ct(e,f,q),Ct(e,R,P),b=P,f=R,I-=1,g=[],x=[]}else m.delete(z),dr(z,b,a),Ct(e,z.prev,z.next),Ct(e,z,f===null?e.first:f.next),Ct(e,f,z),f=z;continue}for(g=[],x=[];b!==null&&b.k!==j;)(r||!(b.e.f&ct))&&(m??(m=new Set)).add(b),x.push(b),b=b.next;if(b===null)continue;z=b}g.push(z),f=z,b=z.next}if(b!==null||m!==void 0){for(var B=m===void 0?[]:bi(m);b!==null;)(r||!(b.e.f&ct))&&B.push(b),b=b.next;var L=B.length;if(L>0){var F=n&Pn&&v===0?a:null;if(c){for(I=0;I<L;I+=1)(W=B[I].a)==null||W.measure();for(I=0;I<L;I+=1)(ne=B[I].a)==null||ne.fix()}Fo(e,B,F,u)}}c&&Lt(()=>{var Q;if(h!==void 0)for(z of h)(Q=z.a)==null||Q.apply()}),pe.first=e.first&&e.first.e,pe.last=f&&f.e}function Uo(t,e,a,i){i&Ti&&Xt(t.v,e),i&Ci?Xt(t.i,a):t.i=a}function Wo(t,e,a,i,n,r,o,s,c,d){var v=Rt,u=(c&Ti)!==0,p=(c&Yl)===0,b=u?p?Fa(n):Re(n):n,m=c&Ci?Re(o):o,f={i:m,v:b,k:r,a:null,e:null,prev:a,next:i};Rt=f;try{return f.e=Be(()=>s(t,b,m),Ei),f.e.prev=a&&a.e,f.e.next=i&&i.e,a===null?e.first=f:(a.next=f,a.e.next=f.e),i!==null&&(i.prev=f,i.e.prev=f.e),f}finally{Rt=v}}function dr(t,e,a){for(var i=t.next?t.next.e.nodes_start:a,n=e?e.e.nodes_start:a,r=t.e.nodes_start;r!==i;){var o=Va(r);n.before(r),r=o}}function Ct(t,e,a){e===null?t.first=a:(e.next=a,e.e.next=a&&a.e),a!==null&&(a.prev=e,a.e.prev=e&&e.e)}function Go(t,e,a,i,n){var r=t,o="",s;rt(()=>{o!==(o=e()??"")&&(s!==void 0&&($e(s),s=void 0),o!==""&&(s=Be(()=>{var c=o+"",d=Vi(c);Dt(Mt(d),d.lastChild),r.before(d)})))})}function qe(t,e,...a){var i=t,n=st,r;rt(()=>{n!==(n=e())&&(r&&($e(r),r=null),r=Be(()=>n(i,...a)))},wt)}function vr(t,e,a){var i=t,n,r;rt(()=>{n!==(n=e())&&(r&&(lt(r),r=null),n&&(r=Be(()=>a(i,n))))},wt)}function ur(t,e,a,i,n,r){var o,s,c=null,d=t,v,u=Rt;rt(()=>{const p=e()||null;var b=p==="svg"?zi:null;if(p!==o){var m=Rt;cr(u),v&&(p===null?lt(v,()=>{v=null,s=null}):p===s?kt(v):($e(v),sr(!1))),p&&p!==s&&(v=Be(()=>{if(c=b?document.createElementNS(b,p):document.createElement(p),Dt(c,c),i){var f=c.appendChild(Qt());i(c,f)}pe.nodes_end=c,d.before(c)})),o=p,o&&(s=o),sr(!0),cr(m)}},wt)}function et(t,e,a){ht(()=>{var i=Xe(()=>e(t,a==null?void 0:a())||{});if(a&&(i!=null&&i.update)){var n=!1,r={};ha(()=>{var o=a();nr(o),n&&ki(r,o)&&(r=o,i.update(o))}),n=!0}if(i!=null&&i.destroy)return()=>i.destroy()})}function pr(t){var e,a,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(a=pr(t[e]))&&(i&&(i+=" "),i+=a)}else for(a in t)t[a]&&(i&&(i+=" "),i+=a);return i}function Ko(){for(var t,e,a=0,i="",n=arguments.length;a<n;a++)(t=arguments[a])&&(e=pr(t))&&(i&&(i+=" "),i+=e);return i}function Yo(t){return typeof t=="object"?Ko(t):t??""}function Zo(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function le(t,e,a,i){var n=t.__attributes??(t.__attributes={});n[e]!==(n[e]=a)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[wi]=a),a==null?t.removeAttribute(e):typeof a!="string"&&gr(t).includes(e)?t[e]=a:t.setAttribute(e,a))}function fr(t,e,a,i,n=!1,r=!1,o=!1){var s=e||{},c=t.tagName==="OPTION";for(var d in e)d in a||(a[d]=null);a.class&&(a.class=Yo(a.class)),i!==void 0&&(a.class=a.class?a.class+" "+i:i);var v=gr(t),u=t.__attributes??(t.__attributes={});for(const g in a){let x=a[g];if(c&&g==="value"&&x==null){t.value=t.__value="",s[g]=x;continue}var p=s[g];if(x!==p){s[g]=x;var b=g[0]+g[1];if(b!=="$$"){if(b==="on"){const C={},j="$$"+g;let z=g.slice(2);var m=Io(z);if(jo(z)&&(z=z.slice(0,-7),C.capture=!0),!m&&p){if(x!=null)continue;t.removeEventListener(z,s[j],C),s[j]=null}if(x!=null)if(m)t[`__${z}`]=x,fe([z]);else{let I=function(V){s[g].call(this,V)};s[j]=Fi(z,t,I,C)}else m&&(t[`__${z}`]=void 0)}else if(g==="style"&&x!=null)t.style.cssText=x+"";else if(g==="autofocus")No(t,!!x);else if(g==="__value"||g==="value"&&x!=null)t.value=t[g]=t.__value=x;else if(g==="selected"&&c)Zo(t,x);else{var f=g;n||(f=qo(f));var h=f==="defaultValue"||f==="defaultChecked";if(x==null&&!r&&!h)if(u[g]=null,f==="value"||f==="checked"){let C=t;if(f==="value"){let j=C.defaultValue;C.removeAttribute(f),C.defaultValue=j}else{let j=C.defaultChecked;C.removeAttribute(f),C.defaultChecked=j}}else t.removeAttribute(g);else h||v.includes(f)&&(r||typeof x!="string")?t[f]=x:typeof x!="function"&&le(t,f,x)}g==="style"&&"__styles"in t&&(t.__styles={})}}}return s}var hr=new Map;function gr(t){var e=hr.get(t.nodeName);if(e)return e;hr.set(t.nodeName,e=[]);for(var a,i=t,n=Element.prototype;n!==i;){a=kn(i);for(var r in a)a[r].set&&e.push(r);i=_i(i)}return e}function Jo(t){if(t.loading==="lazy"){var e=t.src;t[wi]=null,t.loading="eager",t.removeAttribute("src"),requestAnimationFrame(()=>{t[wi]!=="eager"&&(t.loading="lazy"),t.src=e})}}function Xo(t,e,a){var i=t.__className,n=mr(e);(i!==n||Ei)&&(n===""?t.removeAttribute("class"):t.setAttribute("class",n),t.__className=n)}function Sa(t,e,a){var i=t.__className,n=mr(e);(i!==n||Ei)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function mr(t,e){return(t??"")+""}function ce(t,e,a){if(a){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}function Ee(t,e,a,i){var n=t.__styles??(t.__styles={});n[e]!==a&&(n[e]=a,a==null?t.style.removeProperty(e):t.style.setProperty(e,a,""))}const Qo=()=>performance.now(),gt={tick:t=>requestAnimationFrame(t),now:()=>Qo(),tasks:new Set};function yr(){const t=gt.now();gt.tasks.forEach(e=>{e.c(t)||(gt.tasks.delete(e),e.f())}),gt.tasks.size!==0&>.tick(yr)}function $o(t){let e;return gt.tasks.size===0&>.tick(yr),{promise:new Promise(a=>{gt.tasks.add(e={c:t,f:a})}),abort(){gt.tasks.delete(e)}}}function Qa(t,e){t.dispatchEvent(new CustomEvent(e))}function es(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(a=>a[0].toUpperCase()+a.slice(1)).join("")}function br(t){const e={},a=t.split(";");for(const i of a){const[n,r]=i.split(":");if(!n||r===void 0)break;const o=es(n.trim());e[o]=r.trim()}return e}const ts=t=>t;function as(t,e,a){var i=Rt,n,r,o,s=null;i.a??(i.a={element:t,measure(){n=this.element.getBoundingClientRect()},apply(){if(o==null||o.abort(),r=this.element.getBoundingClientRect(),n.left!==r.left||n.right!==r.right||n.top!==r.top||n.bottom!==r.bottom){const c=e()(this.element,{from:n,to:r},a==null?void 0:a());o=$a(this.element,c,void 0,1,()=>{o==null||o.abort(),o=void 0})}},fix(){if(!t.getAnimations().length){var{position:c,width:d,height:v}=getComputedStyle(t);if(c!=="absolute"&&c!=="fixed"){var u=t.style;s={position:u.position,width:u.width,height:u.height,transform:u.transform},u.position="absolute",u.width=d,u.height=v;var p=t.getBoundingClientRect();if(n.left!==p.left||n.top!==p.top){var b=`translate(${n.left-p.left}px, ${n.top-p.top}px)`;u.transform=u.transform?`${u.transform} ${b}`:b}}}},unfix(){if(s){var c=t.style;c.position=s.position,c.width=s.width,c.height=s.height,c.transform=s.transform}}}),i.a.element=t}function xe(t,e,a,i){var n=(t&eo)!==0,r=(t&to)!==0,o=n&&r,s=(t&ao)!==0,c=o?"both":n?"in":"out",d,v=e.inert,u,p;function b(){var x=_e,C=pe;Ke(null),He(null);try{return d??(d=a()(e,(i==null?void 0:i())??{},{direction:c}))}finally{Ke(x),He(C)}}var m={is_global:s,in(){var x;if(e.inert=v,!n){p==null||p.abort(),(x=p==null?void 0:p.reset)==null||x.call(p);return}r||u==null||u.abort(),Qa(e,"introstart"),u=$a(e,b(),p,1,()=>{Qa(e,"introend"),u==null||u.abort(),u=d=void 0})},out(x){if(!r){x==null||x(),d=void 0;return}e.inert=!0,Qa(e,"outrostart"),p=$a(e,b(),u,0,()=>{Qa(e,"outroend"),x==null||x()})},stop:()=>{u==null||u.abort(),p==null||p.abort()}},f=pe;if((f.transitions??(f.transitions=[])).push(m),n&&Za){var h=s;if(!h){for(var g=f.parent;g&&g.f&wt;)for(;(g=g.parent)&&!(g.f&Oa););h=!g||(g.f&Tn)!==0}h&&ht(()=>{Xe(()=>m.in())})}}function $a(t,e,a,i,n){var r=i===1;if(Yt(e)){var o,s=!1;return Lt(()=>{if(!s){var h=e({direction:r?"in":"out"});o=$a(t,h,a,i,n)}}),{abort:()=>{s=!0,o==null||o.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(a==null||a.deactivate(),!(e!=null&&e.duration))return n(),{abort:st,deactivate:st,reset:st,t:()=>i};const{delay:c=0,css:d,tick:v,easing:u=ts}=e;var p=[];if(r&&a===void 0&&(v&&v(0,1),d)){var b=br(d(0,1));p.push(b,b)}var m=()=>1-i,f=t.animate(p,{duration:c});return f.onfinish=()=>{var h=(a==null?void 0:a.t())??1-i;a==null||a.abort();var g=i-h,x=e.duration*Math.abs(g),C=[];if(x>0){if(d)for(var j=Math.ceil(x/16.666666666666668),z=0;z<=j;z+=1){var I=h+g*u(z/j),V=d(I,1-I);C.push(br(V))}m=()=>{var P=f.currentTime;return h+g*u(P/x)},v&&$o(()=>{if(f.playState!=="running")return!1;var P=m();return v(P,1-P),!0})}f=t.animate(C,{duration:x,fill:"forwards"}),f.onfinish=()=>{m=()=>i,v==null||v(i,1-i),n()}},{abort:()=>{f&&(f.cancel(),f.effect=null,f.onfinish=st)},deactivate:()=>{n=st},reset:()=>{i===0&&(v==null||v(1,0))},t:()=>m()}}function Ta(t,e,a=e){var i=aa();lr(t,"input",n=>{var r=n?t.defaultValue:t.value;if(r=Ki(t)?Yi(r):r,a(r),i&&r!==(r=e())){var o=t.selectionStart,s=t.selectionEnd;t.value=r??"",s!==null&&(t.selectionStart=o,t.selectionEnd=Math.min(s,t.value.length))}}),Xe(e)==null&&t.value&&a(Ki(t)?Yi(t.value):t.value),ha(()=>{var n=e();Ki(t)&&n===Yi(t.value)||t.type==="date"&&!n&&!t.value||n!==t.value&&(t.value=n??"")})}function Ki(t){var e=t.type;return e==="number"||e==="range"}function Yi(t){return t===""?null:+t}function _r(t,e,a){if(t.multiple)return rs(t,e);for(var i of t.options){var n=Ca(i);if(lo(n,e)){i.selected=!0;return}}(!a||e!==void 0)&&(t.selectedIndex=-1)}function is(t,e){ht(()=>{var a=new MutationObserver(()=>{var i=t.__value;_r(t,i)});return a.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),()=>{a.disconnect()}})}function ns(t,e,a=e){var i=!0;lr(t,"change",n=>{var r=n?"[selected]":":checked",o;if(t.multiple)o=[].map.call(t.querySelectorAll(r),Ca);else{var s=t.querySelector(r)??t.querySelector("option:not([disabled])");o=s&&Ca(s)}a(o)}),ht(()=>{var n=e();if(_r(t,n,i),i&&n===void 0){var r=t.querySelector(":checked");r!==null&&(n=Ca(r),a(n))}t.__value=n,i=!1}),is(t)}function rs(t,e){for(var a of t.options)a.selected=~e.indexOf(Ca(a))}function Ca(t){return"__value"in t?t.__value:t.value}const mi=class mi{constructor(e){Kt(this,gi);Kt(this,It,new WeakMap);Kt(this,da);Kt(this,Aa);La(this,Aa,e)}observe(e,a){var i=ot(this,It).get(e)||new Set;return i.add(a),ot(this,It).set(e,i),zl(this,gi,El).call(this).observe(e,ot(this,Aa)),()=>{var n=ot(this,It).get(e);n.delete(a),n.size===0&&(ot(this,It).delete(e),ot(this,da).unobserve(e))}}};It=new WeakMap,da=new WeakMap,Aa=new WeakMap,gi=new WeakSet,El=function(){return ot(this,da)??La(this,da,new ResizeObserver(e=>{for(var a of e){mi.entries.set(a.target,a);for(var i of ot(this,It).get(a.target)||[])i(a)}}))},Cl(mi,"entries",new WeakMap);let Zi=mi;var ls=new Zi({box:"border-box"});function Bt(t,e,a){var i=ls.observe(t,()=>a(t[e]));ht(()=>(Xe(()=>a(t[e])),i))}function xr(t,e){return t===e||(t==null?void 0:t[dt])===e}function Qe(t={},e,a,i){return ht(()=>{var n,r;return ha(()=>{n=r,r=[],Xe(()=>{t!==a(...r)&&(e(t,...r),n&&xr(a(...n),t)&&e(null,...n))})}),()=>{Lt(()=>{r&&xr(a(...r),t)&&e(null,...r)})}}),t}function wr(t,e){Oo(window,["resize"],()=>Bi(()=>e(window[t])))}function ei(t=!1){const e=ye,a=e.l.u;if(!a)return;let i=()=>nr(e.s);if(t){let n=0,r={};const o=O(()=>{let s=!1;const c=e.s;for(const d in c)c[d]!==r[d]&&(r[d]=c[d],s=!0);return s&&n++,n});i=()=>l(o)}a.b.length&&fo(()=>{kr(e,i),xi(a.b)}),Ge(()=>{const n=Xe(()=>a.m.map(ql));return()=>{for(const r of n)typeof r=="function"&&r()}}),a.a.length&&Ge(()=>{kr(e,i),xi(a.a)})}function kr(t,e){if(t.l.s)for(const a of t.l.s)l(a);e()}let ti=!1;function os(t){var e=ti;try{return ti=!1,[t(),ti]}finally{ti=e}}const ss={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function cs(t,e,a){return new Proxy({props:t,exclude:e},ss)}const ds={get(t,e){let a=t.props.length;for(;a--;){let i=t.props[a];if(Yt(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i)return i[e]}},set(t,e,a){let i=t.props.length;for(;i--;){let n=t.props[i];Yt(n)&&(n=n());const r=_t(n,e);if(r&&r.set)return r.set(a),!0}return!1},getOwnPropertyDescriptor(t,e){let a=t.props.length;for(;a--;){let i=t.props[a];if(Yt(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i){const n=_t(i,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===dt||e===En)return!1;for(let a of t.props)if(Yt(a)&&(a=a()),a!=null&&e in a)return!0;return!1},ownKeys(t){const e=[];for(let a of t.props){Yt(a)&&(a=a());for(const i in a)e.includes(i)||e.push(i)}return e}};function Sr(...t){return new Proxy({props:t},ds)}function Tr(t){for(var e=pe,a=pe;e!==null&&!(e.f&(nt|fa));)e=e.parent;try{return He(e),t()}finally{He(a)}}function N(t,e,a,i){var V;var n=(a&Zl)!==0,r=!Jt||(a&Jl)!==0,o=(a&Ql)!==0,s=(a&$l)!==0,c=!1,d;o?[d,c]=os(()=>t[e]):d=t[e];var v=dt in t||En in t,u=o&&(((V=_t(t,e))==null?void 0:V.set)??(v&&e in t&&(P=>t[e]=P)))||void 0,p=i,b=!0,m=!1,f=()=>(m=!0,b&&(b=!1,s?p=Xe(i):p=i),p);d===void 0&&i!==void 0&&(u&&r&&Bl(),d=f(),u&&u(d));var h;if(r)h=()=>{var P=t[e];return P===void 0?f():(b=!0,m=!1,P)};else{var g=Tr(()=>(n?O:co)(()=>t[e]));g.f|=Ml,h=()=>{var P=l(g);return P!==void 0&&(p=void 0),P===void 0?p:P}}if(!(a&Xl))return h;if(u){var x=t.$$legacy;return function(P,k){return arguments.length>0?((!r||!k||x||c)&&u(k?h():P),P):h()}}var C=!1,j=!1,z=Fa(d),I=Tr(()=>O(()=>{var P=h(),k=l(z);return C?(C=!1,j=!0,k):(j=!1,z.v=P)}));return n||(I.equals=Si),function(P,k){if(arguments.length>0){const q=k?l(I):r&&o?ee(P):P;return I.equals(q)||(C=!0,E(z,q),m&&p!==void 0&&(p=q),Xe(()=>l(I))),P}return l(I)}}function Cr(t,e){var a=pe,i=_e,n=ye;He(t),Ke(t),Ga(t.ctx);try{e()}finally{He(a),Ke(i),Ga(n)}}function vs(t,e,a){var i=t,n;rt(()=>{var r=pe,o=!1;r.fn=s=>{var c=e.onerror;let d=e.failed;if(!c&&!d||o)throw s;var v=()=>{lt(n),Cr(r,()=>{o=!1,n=Be(()=>a(i)),Li()})};c==null||c(s,v),n&&$e(n),Lt(()=>{Cr(r,()=>{o=!0;try{n=Be(()=>{d(i,()=>s,()=>v)})}catch(u){_a(u,r,null,r.ctx)}Li(),o=!1})})},n=Be(()=>a(i)),Li()},wt|Ra)}function Ne(t){ye===null&&Ai(),Jt&&ye.l!==null?us(ye).m.push(t):Ge(()=>{const e=Xe(t);if(typeof e=="function")return e})}function Ji(t){ye===null&&Ai(),Ne(()=>()=>Xe(t))}function us(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const ps="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ps);function mt(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const de=Object.freeze({ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",InjectionVisible:"ali_injection_visible",UserLeft:"ali_user_left",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",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",TitlePopoverView:"ali_title_popover_view",TitlePopoverClose:"ali_title_popover_close",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",SimilarTitleClick:"ali_similar_title_click",ParticipantClick:"ali_title_participant_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_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",ShareTitle:"ali_share_title",TrailerClick:"ali_trailer_button_click",RegionRequestFailed:"ali_region_request_failed",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed"});function zr(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function zt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}const Er="https://www.playpilot.com",fs="https://partner-api.playpilot.tech/1.0",hs="https://img-external.playpilot.tech",Xi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",ra=600;function ai(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}function Ht(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function jr(t){return Object.entries(t).filter(([a,i])=>i!=null&&i!=="").map(([a,i])=>`${a}=${i}`).join("&")}const gs="https://insights.playpilot.net";async function ve(t,e=null,a={}){var n,r,o,s;if(ai())return;if(!zt("tracking")){bs(t,e,a);return}const i=new Headers({"Content-Type":"application/json"});e&&(a={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,providers:[...new Set(((n=e.providers)==null?void 0:n.map(c=>c.name))||[])],...a}),a.version="6.3.0-beta.4",a.url=Ht(),a.organization_sid=((r=window.PlayPilotLinkInjections)==null?void 0:r.organization_sid)||"undefined",a.domain_sid=((o=window.PlayPilotLinkInjections)==null?void 0:o.domain_sid)||"undefined",a.device={type:window.innerWidth>ra?"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(gs,{headers:i,method:"POST",body:JSON.stringify({event:t,payload:a,source:"ali",keepalive:!0})}),ms({event:t,payload:a})}function ms(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function ys({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function bs(t,e=null,a={}){var i;(i=window.PlayPilotLinkInjections).queued_tracking_events||(i.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:a})}function _s(){if(zt("tracking")){for(const{event:t,title:e,payload:a}of window.PlayPilotLinkInjections.queued_tracking_events||[])ve(t,e,a);window.PlayPilotLinkInjections.queued_tracking_events=[]}}const Qi={};async function ft(t,{headers:e={},method:a="GET",body:i=null}={}){const n=!ii()&&a==="GET";if(n&&t in Qi)return Qi[t];const r=a==="GET"?{}:{"Content-Type":"application/json"},o=await fetch(fs+t,{method:a,headers:new Headers({...r,...e}),body:i?JSON.stringify(i):null});if(!(o!=null&&o.ok))throw o;const s=await o.text();let c=s;try{s&&(c=JSON.parse(s))}catch{}return n&&(Qi[t]=c),c}const $i="EncryptedToken",Pr="articleReplacementEditToken",Ir="playpilot-editorial-mode";async function Ar(t=window.location.href){try{const e=mt();if(!e)throw new Error("No token was provided");const a=en(t);if(!a)throw new Error("Could not be authenticated");return await ft(`/external-pages/edit-authorization?api-token=${e}`,{method:"POST",body:{private_token:a}}),xs(a),!0}catch(e){console.error(e),ve(de.AuthFailed)}finally{Ss()}return!1}function en(t=""){var i,n;const e=(i=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:i.editorial_token;if(e)return e;if(t){const r=new URL(t).searchParams.get(Pr);if(r)return decodeURI(r)}return((n=("; "+document.cookie).split(`; ${$i}=`).pop())==null?void 0:n.split(";")[0])||""}function xs(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const i="expires="+e.toUTCString();document.cookie=$i+"="+t+";"+i+";path=/"}function ws(){document.cookie=$i+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function ii(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(Ir)==="true"||!!t}function ks(){const t=new URL(window.location.href);t.searchParams.set(Ir,"true"),window.history.replaceState({},"",t)}function Ss(){const t=new URL(window.location.href);t.searchParams.delete(Pr),window.history.replaceState({},"",t)}function Ts(t){let e=0;for(let a=0;a<t.length;a++){const i=t.charCodeAt(a);e=e*31+i>>>0}return e.toString(16)}function qr(){return(Math.random()+1).toString(36).substring(7)}const w=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"}),Cs={"Where To Stream Online":{[w.English]:"Where to stream online",[w.Swedish]:"Var kan man streama online",[w.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[w.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[w.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[w.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[w.English]:"We may earn a commission from purchases made through some of the links below.",[w.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[w.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[w.English]:"An error occurred",[w.Swedish]:"Ett fel inträffade",[w.Danish]:"Der opstod en fejl"},Loading:{[w.English]:"Loading",[w.Swedish]:"Laddar",[w.Danish]:"Indlæser"},"Title Unavailable":{[w.English]:"This title is not currently available to stream.",[w.Swedish]:"Den här titeln går inte att streama just nu.",[w.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[w.English]:"is not currently available to stream.",[w.Swedish]:"går inte att streama just nu.",[w.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[w.English]:"is available to stream on",[w.Swedish]:"finns att streama på",[w.Danish]:"kan streames på"},"Is Available To Stream":{[w.English]:"is available to stream.",[w.Swedish]:"finns att streama.",[w.Danish]:"kan streames."},"View Streaming Options":{[w.English]:"View streaming options",[w.Swedish]:"Se streamingalternativ",[w.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[w.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[w.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[w.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[w.English]:"and",[w.Swedish]:"och",[w.Danish]:"og"},Minutes:{[w.English]:"minutes",[w.Swedish]:"minuter",[w.Danish]:"minutter"},"Type: movie":{[w.English]:"Movie",[w.Swedish]:"Film",[w.Danish]:"Film"},"Type: series":{[w.English]:"Series",[w.Swedish]:"Serie",[w.Danish]:"Serie"},Stream:{[w.English]:"Stream",[w.Swedish]:"Streama",[w.Danish]:"Stream"},Buy:{[w.English]:"Buy",[w.Swedish]:"Köp",[w.Danish]:"Køb"},Rent:{[w.English]:"Rent",[w.Swedish]:"Hyra",[w.Danish]:"Lej"},"Rent Or Buy":{[w.English]:"Rent or Buy",[w.Swedish]:"Hyra",[w.Danish]:"Lej eller køb"},Watch:{[w.English]:"Watch",[w.Swedish]:"Titta nu",[w.Danish]:"Se nu"},Share:{[w.English]:"Share",[w.Swedish]:"Dela",[w.Danish]:"Del"},"Copy URL":{[w.English]:"Copy URL",[w.Swedish]:"Kopiera URL",[w.Danish]:"Kopiér URL"},Email:{[w.English]:"Email",[w.Swedish]:"E-post",[w.Danish]:"E-mail"},"Show More":{[w.English]:"Show more",[w.Swedish]:"Visa mer",[w.Danish]:"Vis mere"},Cast:{[w.English]:"Cast",[w.Swedish]:"Rollista",[w.Danish]:"Skuespillere"},"Similar Titles":{[w.English]:"Similar movies & shows",[w.Swedish]:"Liknande filmer och serier",[w.Danish]:"Lignende film og serier"},"Watch Trailer":{[w.English]:"Watch trailer",[w.Swedish]:"Se trailer",[w.Danish]:"Se trailer"},All:{[w.English]:"All",[w.Swedish]:"Alla",[w.Danish]:"Alle"},Unscripted:{[w.English]:"Unscripted",[w.Swedish]:"Oscripterat",[w.Danish]:"Umanuskriptet"},Independent:{[w.English]:"Independent",[w.Swedish]:"Indie",[w.Danish]:"Indie"},"Game Show":{[w.English]:"Game Show",[w.Swedish]:"Gameshow",[w.Danish]:"Quizshow"},"Film Noir":{[w.English]:"Film Noir",[w.Swedish]:"Film noir",[w.Danish]:"Film noir"},Entertainment:{[w.English]:"Entertainment",[w.Swedish]:"Underhållning",[w.Danish]:"Underholdning"},News:{[w.English]:"News",[w.Swedish]:"Nyheter",[w.Danish]:"Nyheder"},Short:{[w.English]:"Short",[w.Swedish]:"Kortfilm",[w.Danish]:"Kortfilm"},Bollywood:{[w.English]:"Bollywood",[w.Swedish]:"Bollywood",[w.Danish]:"Bollywood"},Concert:{[w.English]:"Concert",[w.Swedish]:"Konsert",[w.Danish]:"Koncert"},Arthouse:{[w.English]:"Arthouse",[w.Swedish]:"Arthouse",[w.Danish]:"Arthouse"},"Alternate Version":{[w.English]:"Alternate Version",[w.Swedish]:"Alternativ version",[w.Danish]:"Alternativ version"},"Reality TV":{[w.English]:"Reality TV",[w.Swedish]:"Reality-TV",[w.Danish]:"Reality-TV"},Culture:{[w.English]:"Culture",[w.Swedish]:"Kultur",[w.Danish]:"Kultur"},Drama:{[w.English]:"Drama",[w.Swedish]:"Drama",[w.Danish]:"Drama"},Crime:{[w.English]:"Crime",[w.Swedish]:"Kriminal",[w.Danish]:"Krimi"},Western:{[w.English]:"Western",[w.Swedish]:"Western",[w.Danish]:"Western"},Thriller:{[w.English]:"Thriller",[w.Swedish]:"Thriller",[w.Danish]:"Thriller"},Animation:{[w.English]:"Animation",[w.Swedish]:"Animerat",[w.Danish]:"Animation"},Mystery:{[w.English]:"Mystery",[w.Swedish]:"Mysterium",[w.Danish]:"Mysterium"},Science:{[w.English]:"Science",[w.Swedish]:"Vetenskap",[w.Danish]:"Videnskab"},Nature:{[w.English]:"Nature",[w.Swedish]:"Natur",[w.Danish]:"Natur"},War:{[w.English]:"War",[w.Swedish]:"Krig",[w.Danish]:"Krig"},"Sci-Fi":{[w.English]:"Sci-Fi",[w.Swedish]:"Sci-fi",[w.Danish]:"Sci-fi"},Documentary:{[w.English]:"Documentary",[w.Swedish]:"Dokumentär",[w.Danish]:"Dokumentar"},"Stand-up":{[w.English]:"Stand-up",[w.Swedish]:"Standup",[w.Danish]:"Stand-up"},"Talk Show":{[w.English]:"Talk Show",[w.Swedish]:"Talkshow",[w.Danish]:"Talkshow"},Fantasy:{[w.English]:"Fantasy",[w.Swedish]:"Fantasy",[w.Danish]:"Fantasy"},History:{[w.English]:"History",[w.Swedish]:"Historia",[w.Danish]:"Historie"},Adventure:{[w.English]:"Adventure",[w.Swedish]:"Äventyr",[w.Danish]:"Eventyr"},Action:{[w.English]:"Action",[w.Swedish]:"Action",[w.Danish]:"Action"},Horror:{[w.English]:"Horror",[w.Swedish]:"Skräck",[w.Danish]:"Gyser"},Comedy:{[w.English]:"Comedy",[w.Swedish]:"Komedi",[w.Danish]:"Komedie"},Biography:{[w.English]:"Biography",[w.Swedish]:"Biografi",[w.Danish]:"Biografi"},Music:{[w.English]:"Music",[w.Swedish]:"Musik",[w.Danish]:"Musik"},Sport:{[w.English]:"Sport",[w.Swedish]:"Sport",[w.Danish]:"Sport"},Romance:{[w.English]:"Romance",[w.Swedish]:"Romantik",[w.Danish]:"Romantik"},Kids:{[w.English]:"Kids",[w.Swedish]:"Barn",[w.Danish]:"Børn"},Lifestyle:{[w.English]:"Lifestyle",[w.Swedish]:"Livsstil",[w.Danish]:"Livsstil"},Musical:{[w.English]:"Musical",[w.Swedish]:"Musikal",[w.Danish]:"Musical"},Anime:{[w.English]:"Anime",[w.Swedish]:"Anime",[w.Danish]:"Anime"},Family:{[w.English]:"Family",[w.Swedish]:"Familj",[w.Danish]:"Familie"}};function we(t,e=Mr()){var a;return((a=Cs[t])==null?void 0:a[e])||t}function Mr(){var i,n;const t=(i=window.PlayPilotLinkInjections)==null?void 0:i.language,e=Object.values(w);if(t){if(e.includes(t))return t;console.warn(`PlayPilot Link Injections: ${t} is not an accepted language`)}const a=(n=document.querySelector("html"))==null?void 0:n.getAttribute("lang");if(a){if(e.includes(a))return a;const r=e.find(o=>o.toLowerCase().startsWith(a+"-"));if(r)return r}return w.English}function zs(t,e,a){return t.filter(i=>a.every(n=>i[n]===e[n])).length}function Es(t,e){return e.some(a=>t>=a.start&&t<a.end)}function js(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function tn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Lr(t,e,a=[]){var r,o;const i=document.createTreeWalker(e);let n;for(;(n=i.nextNode())&&!((r=n.nodeValue)!=null&&r.includes(t)&&!a.includes(((o=n.parentNode)==null?void 0:o.nodeName)||"")););return n}function Nr(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Ps(t,e,a,i){const n=js(e),r=tn(e),o=t.slice(0,i),s=t.slice(i),c=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${r.replace(c,"\\$&")}|${n.replace(c,"\\$&")}`),v=s.replace(d,a);return o+v}function Is(t,e,a,i){return t.substring(0,a)+e+t.substring(i)}function tt(t){return tn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function Dr(t,e,a){const n=t.indexOf(e),r=Math.floor((a-e.length)/2);let o=Math.max(0,n-r),s=o+a;s>t.length&&(s=t.length,o=Math.max(0,s-a));let c=t.slice(o,s).trim();return o>0&&(c="…"+c),s<t.length&&(c+="…"),c}function Or(t,e,a){const i=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!i||!t.textContent)return{before:"",after:""};const n=Math.max(i.innerText.indexOf(t.textContent),0),r=Rr(i.innerText.slice(0,e+n)),o=i.innerText.slice(a+n),s=Rr(Br(r,2)),c=Br(o,2);return{before:s,after:c}}function Rr(t){return t.split("").reverse().join("")}function Br(t,e=1){const a=t.match(/[^\s]+/g);return a?a.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function ni(t,e){let a=0,i=0;for(;(i=t.indexOf(e,i))!==-1;)a++,i+=e.length;return a}function As(t,e,a){const i=[];let n=0;for(;n<=t.length;){const r=e?t.indexOf(e,n):n;if(r===-1&&e)break;const o=e?r+e.length:r,s=a?t.indexOf(a,o):t.length;if(a&&s===-1)break;const c=t.slice(o,s);i.push({match:c,index:o}),n=a?s+a.length:t.length+1}return i}function qs(t,e,a,i){const r=As(t,a,i).filter(({match:s})=>tn(s).includes(e));return r.length?r.reduce((s,c)=>!s||c.match.length<s.match.length?c:s):null}function Ms(t){var e,a;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((a=t.match(/\s*$/))==null?void 0:a[0].length)||0}}function Ls(t,e,a=0){const i=e.innerHTML,n=[],r=Ns(e);let o=i.indexOf(t);for(;o!==-1;)Es(o,r)&&n.push(o),o=i.indexOf(t,o+t.length);return n[a]??-1}function Ns(t){const e=[],a=t.innerHTML;let i=!1,n=!1,r=!1,o=0;for(let s=0;s<a.length;s++){const c=a[s];if(!n&&!i&&c==="<"){i=!0,r&&(e.push({start:o,end:s}),r=!1);continue}if(i&&c==='"'&&(n=!n),i&&!n&&c===">"){i=!1;continue}!i&&!n&&!r&&(o=s,r=!0)}return!e.length&&t.textContent.length&&e.push({start:o,end:t.innerHTML.length}),e}function Ds(t,e){const a=[" ",".",",","<",">"];try{const i=a.map(s=>"\\"+s).join(""),n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp(`([${i}])${n}([${i}])`),o=e.match(r);return o!=null&&o.index?o.index+1:-1}catch{return-1}}function Hr(t){return t.ctrlKey||t.metaKey||t.button!==0}async function Os(){if(!zt("ads"))return[];const t=mt();if(!t)throw new Error("No token was provided");try{return await ft(`/ads/browse/?api-token=${t}`)}catch(e){throw ve(de.AdsFetchFailed,null,{status:e.status}),e}}function za(t){var e;return zt("ads")&&(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(a=>a.campaign_format===t)||null}function Rs(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}const Bs=t=>t;function an(t){const e=t-1;return e*e*e+1}function Fr(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function yt(t,{delay:e=0,duration:a=400,easing:i=Bs}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:a,easing:i,css:r=>`opacity: ${r*n}`}}function Ft(t,{delay:e=0,duration:a=400,easing:i=an,x:n=0,y:r=0,opacity:o=0}={}){const s=getComputedStyle(t),c=+s.opacity,d=s.transform==="none"?"":s.transform,v=c*(1-o),[u,p]=Fr(n),[b,m]=Fr(r);return{delay:e,duration:a,easing:i,css:(f,h)=>`
|
|
3
3
|
transform: ${d} translate(${(1-f)*u}${p}, ${(1-f)*b}${m});
|
|
4
4
|
opacity: ${c-v*h}`}}function Ea(t,{delay:e=0,duration:a=400,easing:i=an,axis:n="y"}={}){const r=getComputedStyle(t),o=+r.opacity,s=n==="y"?"height":"width",c=parseFloat(r[s]),d=n==="y"?["top","bottom"]:["left","right"],v=d.map(g=>`${g[0].toUpperCase()}${g.slice(1)}`),u=parseFloat(r[`padding${v[0]}`]),p=parseFloat(r[`padding${v[1]}`]),b=parseFloat(r[`margin${v[0]}`]),m=parseFloat(r[`margin${v[1]}`]),f=parseFloat(r[`border${v[0]}Width`]),h=parseFloat(r[`border${v[1]}Width`]);return{delay:e,duration:a,easing:i,css:g=>`overflow: hidden;opacity: ${Math.min(g*20,1)*o};${s}: ${g*c}px;padding-${d[0]}: ${g*u}px;padding-${d[1]}: ${g*p}px;margin-${d[0]}: ${g*b}px;margin-${d[1]}: ${g*m}px;border-${d[0]}-width: ${g*f}px;border-${d[1]}-width: ${g*h}px;min-${s}: 0`}}function ja(t,{delay:e=0,duration:a=400,easing:i=an,start:n=0,opacity:r=0}={}){const o=getComputedStyle(t),s=+o.opacity,c=o.transform==="none"?"":o.transform,d=1-n,v=s*(1-r);return{delay:e,duration:a,easing:i,css:(u,p)=>`
|
|
5
5
|
transform: ${c} scale(${1-d*p});
|
|
@@ -8,4 +8,4 @@ var Dh=Object.defineProperty;var Tl=Se=>{throw TypeError(Se)};var Oh=(Se,Te,je)=
|
|
|
8
8
|
|
|
9
9
|
`)}function np(t,e={aiInjections:[],manualInjections:[]}){pn(),dp();const a=vp(e);if(!a.length)return[];const i=tt(t.map(d=>d.innerText).join(" ")),r=up(a).filter(d=>i.includes(tt(d.sentence))),o={};let s=-1;for(const d of fp(r)){s++;const v=t.findIndex(j=>tt(j.innerText).includes(tt(d.sentence))),u=t[v];if(!u)continue;const p=Lr(d.title,u,["A"]);if(!(p!=null&&p.nodeValue)||Nr(p)){const j=Lr(d.title,u);if(j&&Nr(j)){o[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:b,linkElement:m}=rp(d);let f=-1,h=!1;ni(u.innerHTML,d.title)===1&&(f=u.innerHTML.indexOf(d.title));const{phrase_before:x,phrase_after:C}=lp(u,d);if(f===-1&&(x||C)){const j=[x,d.title,C].filter(Boolean).join(" ");if(f=u.innerHTML.indexOf(j),f===-1){const z=qs(u.innerHTML,d.title,x||"",C||"");if(z){const{leadingSpaces:I,trailingSpaces:V}=Ms(z.match);m.innerHTML=z.match.trim();const P=z.index+I,k=z.index+z.match.length-V;if(u.innerHTML.slice(P,k).includes("href="))continue;un(u.innerHTML,d.title,u,b,P,k)&&(f=z.index,h=!0)}}}if(f===-1&&(p!=null&&p.nodeValue)){const j=u.innerHTML.indexOf(p.nodeValue),z=u.innerHTML.indexOf(d.sentence),I=z===-1?u.innerHTML.indexOf(d.sentence.slice(0,20)):-1,V=d.sentence.split(" ")[0],k=ni(u.innerHTML,V)===1?u.innerHTML.indexOf(V):-1,q=zs(r.slice(0,s+1),d,["title","sentence"])-1,R=Ls(p.nodeValue,u,q);f=Math.max(j,I,R,k,z,0)}if(f!==-1&&!h&&!un(u.innerHTML,d.title,u,b,f)){const j=Ds(d.title,u.innerHTML);j>-1?un(u.innerHTML,d.title,u,b,j):o[d.key]="Injection would have lead to broken HTML."}}sp(r),op();const c=pp(a);return c.length&&Qu(t,c),document.querySelector(bt)&&ap(t),a.filter(d=>d.title_details).map((d,v)=>{const u=!d.manual&&hp(d,v,a),p=d.duplicate??u;p&&(o[d.key]=u?"Injection was manually removed.":"Injection was marked as duplicate.");const b=document.querySelector(`[${Pt}="${d.key}"]`),m=hi(d)&&!d.inactive&&!d.removed&&!d.after_article&&!b,f=r.find(g=>g.key===d.key),h=m?o[d.key]||(f?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...d,inactive:d.inactive??!1,duplicate:p,failed:m,failed_message:h}})}function rp(t){var i;const e=document.createElement("span");e.dataset.playpilotInjectionKey=t.key;const a=document.createElement("a");return a.dataset.playpilotPosterUrl=(i=t.title_details)==null?void 0:i.standing_poster,a.innerText=t.title,a.href=t.playpilot_url,a.target="_blank",a.rel="noopener nofollow noreferrer",e.insertAdjacentElement("beforeend",a),{injectionElement:e,linkElement:a}}function un(t,e,a,i,n,r=-1){const o=v=>Array.from(v.querySelectorAll(`a, ${bt}`)).filter(u=>!u.innerText).length,s=document.createElement("div");s.innerHTML=t;const c=o(s),d=s.innerText;return r>0?s.innerHTML=Is(t,i.outerHTML,n,r):s.innerHTML=Ps(t,e,i.outerHTML,n),Math.abs(s.innerText.length-d.length)>1||c!=o(s)?!1:(a.innerHTML=s.innerHTML,!0)}function lp(t,e){const{phrase_before:a,phrase_after:i}=e;if(a||i)return{phrase_before:a,phrase_after:i};if(ni(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const r=t.innerText.indexOf(e.title),o=Or(t,r,r+e.title.length);return{phrase_before:o.before,phrase_after:o.after}}function op(){const t=Array.from(document.querySelectorAll(`${bt} a`)),e=["--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"];for(const a of t){const i=getComputedStyle(a);for(const n of e)i.getPropertyValue(n)&&(a.dataset.usedCssVariables=`${a.dataset.usedCssVariables||""} ${n}`)}}function sp(t){window.addEventListener("mousemove",qu),window.addEventListener("click",a=>Bu(a,t)),document.querySelectorAll(bt).forEach(a=>{const i=a.dataset.playpilotInjectionKey,n=t.find(r=>i===r.key);n&&(a.addEventListener("mouseenter",r=>{Lu()||Au(r,n)}),a.addEventListener("mouseleave",Mu))})}function pn(){document.querySelectorAll(bt).forEach(e=>cp(e.getAttribute(Pt)||"")),$u(),ip(),ol(!1),pi(!1)}function cp(t){var n;const e=document.querySelector(`[${Pt}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(r=>r.remove());const i=(n=e.querySelector("a"))==null?void 0:n.innerHTML;e.outerHTML=i||""}function dp(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(bt)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function vp({aiInjections:t,manualInjections:e}){return[...e.map(a=>({...a,manual:!0})),...t]}function cl(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function dl(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&hi(t)}function hi(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function up(t){return vl(t).filter(e=>e.in_text!==!1&&dl(e))}function pp(t){return vl(t).filter(e=>e.after_article===!0&&dl(e))}function vl(t){return t.filter(e=>e.removed||e.inactive?!1:e.manual&&!e.removed&&!e.inactive?!0:!t.some(a=>a.manual&&(a.removed||a.inactive)&&ul(a,e)))}function fp(t){return t.slice().sort((e,a)=>{if(e.sentence<a.sentence)return-1;if(e.sentence>a.sentence)return 1;const i=a.title.length-e.title.length;return i!==0?i:0})}function hp(t,e,a){return a.some((i,n)=>e!==n&&i.manual&&ul(i,t))}function ul(t,e){return t.title===e.title&&tt(t.sentence)===tt(e.sentence)}function fn(){return document.querySelector("[data-playpilot-link-injections]")||document.body}function hn(){const t=Ut();return{content_heading:gp(t),content_modified_time:mp(t),content_published_time:yp(t)}}function gp(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function mp(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,a=pl().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return a?gn(a):null}function yp(t){const e=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||t.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||t.querySelector("time")||document.querySelector("time")||t.querySelector("[datetime]")||document.querySelector("[datetime]")||null,a=pl().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return a?gn(a):null}function gn(t){try{return new Date(t).toISOString()}catch{return null}}function pl(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}let mn=null;async function ca(t,{url:e=Ht(),hash:a=Ts(t||""),params:i={}}={}){const n=mt(),r=ii()?await Ar():!1,o=Mr();if(!n)throw new Error("No token was provided");const s=`/external-pages/?api-token=${n}&include_title_details=true${r?"&editorial_mode_enabled=true":""}&language=${o}`;let c;return Object.entries(i).length?(i.run_ai&&(i.hash=a,i.page_text=t,i.metadata=hn()),i.url=e,c=await ft(s,{method:"POST",body:i})):c=await ft(s+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=c,c}async function fl(t,{requireCompletedResult:e=!1,runAiWhenRelevant:a=!1,pollInterval:i=3e3,maxTries:n=600,onpoll:r=()=>null}={}){let o=0;mn&&clearTimeout(mn);const s=async(c,d)=>{let v;try{try{v=await ca(t)}catch(u){throw(u==null?void 0:u.status)===404&&(v=await ca(t,{params:{run_ai:!0}})),new Error}if(v&&a&&(v=await bp(t,v)),e&&v.ai_enabled&&v.ai_running)throw new Error;v.manual_injections=hl(v.manual_injections||[]),v.ai_injections=hl(v.ai_injections||[]),c(v);return}catch{if(o++,o>=n){n>1&&console.error("Max poll limit exceeded. Please return later."),c();return}v&&r(v),mn=setTimeout(()=>s(c),i)}};return new Promise(s)}async function bp(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const a=hn().content_modified_time,i=e.content_modified_time?gn(e.content_modified_time):null,n=a&&i===a;return e.ai_last_run&&n?e:await ca(t,{params:{run_ai:!0}})}async function _p(t,e){var o;const a=(o=window.PlayPilotLinkInjections)==null?void 0:o.selector,n=t.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 ca(e,{params:{private_token:en(),manual_injections:n,content_text_selector:a}}))throw new Error("saveLinkInjections response was faulty");return t}function hl(t){return t.map(e=>({...e,key:gl(e.sid)}))}function gl(t){return t+"-"+qr()}async function xp(){const t=mt();if(!t)throw new Error("No token was provided");try{return await await ft(`/domains/config?api-token=${t}`)||null}catch{return null}}var wp=Pe('<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 kp(t,e){const a=N(e,"expanded",3,!1);var i=wp();M(()=>ce(i,"expanded",a())),y(t,i)}var Sp=Pe('<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 Tp(t){var e=Sp();y(t,e)}function Cp(t,e,a){e(!e()),a()(e())}var zp=T('<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 yn(t,e){ae(e,!0);let a=N(e,"active",15),i=N(e,"fullwidth",3,!1),n=N(e,"label",3,""),r=N(e,"onclick",3,()=>null);var o=zp();o.__click=[Cp,a,r];var s=_(o),c=_(s);qe(c,()=>e.children),M(()=>{le(o,"aria-label",`Toggle ${n()??""} ${(a()?"off":"on")??""}`),ce(o,"active",a()),ce(o,"fullwidth",i())}),y(t,o),ie()}fe(["click"]);var Ep=T('<input type="text" autocomplete="off" class="svelte-k0rhfj">');function bn(t,e){let a=N(e,"value",15),i=N(e,"label",3,""),n=N(e,"name",3,""),r=N(e,"readonly",3,!1),o=N(e,"oninput",3,()=>null);var s=Ep();s.__input=function(...c){var d;(d=o())==null||d.apply(this,c)},M(()=>{le(s,"name",n()),le(s,"aria-label",i()),le(s,"placeholder",i()),s.readOnly=r()}),Ta(s,a),y(t,s)}fe(["input"]);var jp=Pe('<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>'),Pp=Pe('<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>'),Ip=Pe('<svg width="18" height="18" viewBox="0 0 18 18" fill="none"><!></svg>');function ml(t,e){const a=N(e,"align",3,"bottom");var i=Ip(),n=_(i);{var r=s=>{var c=jp();y(s,c)},o=s=>{var c=he(),d=J(c);{var v=u=>{var p=Pp();y(u,p)};D(d,u=>{a()==="center"&&u(v)},!0)}y(s,c)};D(n,s=>{a()==="bottom"?s(r):s(o,!1)})}y(t,i)}var Ap=T("<div><!></div>");function Wt(t,e){ae(e,!0);const a=N(e,"type",3,"error"),i=N(e,"fixed",3,!1);var n=Ap(),r=_(n);qe(r,()=>e.children),M(()=>{Sa(n,`alert ${a()??""} svelte-1vy4z58`),ce(n,"fixed",i())}),y(t,n),ie()}var qp=T("<!> In-text Playlink",1),Mp=T("<!> Bottom Playlink",1),Lp=T('<div class="alert svelte-1shw34x"><!></div>'),Np=(t,e)=>e().after_article_style="playlinks",Dp=(t,e)=>e().after_article_style="modal_button",Op=T('<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>'),Rp=T('<div class="switches svelte-1shw34x"><!> <!></div> <!> <!>',1);function Bp(t,e){ae(e,!0);const a=N(e,"linkInjection",7),i=O(()=>a().after_article_style==="modal_button");var n=Rp(),r=J(n),o=_(r),s=O(()=>a().in_text??!0);yn(o,{fullwidth:!0,get active(){return l(s)},onclick:m=>{a().in_text=m,a().manual=!0},label:"In-text Playlink",children:(m,f)=>{var h=qp(),g=J(h);ml(g,{align:"center"}),y(m,h)},$$slots:{default:!0}});var c=S(o,2),d=O(()=>a().after_article??!1);yn(c,{fullwidth:!0,get active(){return l(d)},onclick:m=>{a().after_article=m,a().manual=!0},label:"Bottom Playlink",children:(m,f)=>{var h=Mp(),g=J(h);ml(g,{align:"bottom"}),y(m,h)},$$slots:{default:!0}});var v=S(r,2);{var u=m=>{var f=Lp(),h=_(f);Wt(h,{type:"warning",children:(g,x)=>{var C=Le("At least one layout option must be selected for the playlink to be visible.");y(g,C)},$$slots:{default:!0}}),xe(3,f,()=>Ea,()=>({duration:200})),y(m,f)};D(v,m=>{hi(a())||m(u)})}var p=S(v,2);{var b=m=>{var f=Op(),h=S(_(f),2),g=_(h);g.__click=[Np,a];var x=S(g,2);x.__click=[Dp,a];var C=S(x,2);M(()=>{le(h,"aria-activedescendant",`playlinks-${(l(i)?"after-article":"in-text")??""}`),le(g,"aria-selected",!l(i)||null),ce(g,"active",!l(i)),le(x,"aria-selected",l(i)||null),ce(x,"active",l(i)),ce(C,"right",l(i))}),xe(3,f,()=>Ea,()=>({duration:100})),y(m,f)};D(p,m=>{a().after_article&&m(b)})}y(t,n),ie()}fe(["click"]);var Hp=Pe('<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 Fp(t){var e=Hp();y(t,e)}var Vp=(t,e)=>E(e,!l(e)),Up=T('<div class="content svelte-zpsd2z"><!></div>'),Wp=T('<div class="context-menu svelte-zpsd2z"><button class="svelte-zpsd2z"><!></button> <!></div>');function Gp(t,e){ae(e,!0);let a=U(!1),i=U(null);function n(v){var p;const u=v.target;u===l(i)||(p=l(i))!=null&&p.contains(u)||E(a,!1)}var r=Wp();se("click",be,n);var o=_(r);o.__click=[Vp,a];var s=_(o);Fp(s),Qe(o,v=>E(i,v),()=>l(i));var c=S(o,2);{var d=v=>{var u=Up(),p=_(u);qe(p,()=>e.children),xe(1,u,()=>Ft,()=>({duration:150,y:5})),y(v,u)};D(c,v=>{l(a)&&v(d)})}M(()=>{le(o,"aria-label",e.ariaLabel),le(o,"aria-expanded",l(a))}),y(t,r),ie()}fe(["click"]);function Kp(t,e,a,i){var n,r;l(e)&&(ve(de.ManualReport,a.linkInjection.title_details,{report_reason:l(e),sid:a.linkInjection.sid,title:a.linkInjection.title,sentence:a.linkInjection.sentence,failed:(n=a.linkInjection.failed)==null?void 0:n.toString(),failed_message:a.linkInjection.failed_message,manual:(r=a.linkInjection.manual)==null?void 0:r.toString()}),E(i,!0),setTimeout(a.onclose,3e3))}var Yp=(t,e,a)=>E(e,ee(a())),Zp=T('<option class="svelte-o5qkco"> </option>'),Jp=T('<div class="sent svelte-o5qkco">Report has been sent, thank you! Closing window...</div>'),Xp=T('<button class="submit svelte-o5qkco">Send report</button>'),Qp=T('<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 $p(t,e){ae(e,!0);const a=[{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=U(""),n=U(!1);li(t,{get onclose(){return e.onclose},children:(r,o)=>{var s=Qp(),c=_(s);et(c,(z,I)=>ke==null?void 0:ke(z,I),()=>2);var d=S(c,2),v=_(d),u=S(_(v)),p=S(v,2),b=S(_(p));M(()=>Z(b,`:
|
|
10
10
|
${Dr(e.linkInjection.sentence,e.linkInjection.title,100)??""}`));var m=S(d,4),f=_(m);f.value=((f.__value="")==null,"");var h=S(f);Ce(h,17,()=>a,Ie,(z,I)=>{let V=()=>l(I).value,P=()=>l(I).label;var k=Zp(),q={};k.__click=[Yp,i,V];var R=_(k);M(()=>{q!==(q=V())&&(k.value=(k.__value=V())==null?"":V()),Z(R,P())}),y(z,k)});var g=S(m,2),x=_(g);{var C=z=>{var I=Jp();xe(1,I,()=>yt,()=>({duration:200})),y(z,I)},j=z=>{var I=Xp();I.__click=[Kp,i,e,n],M(()=>I.disabled=!l(i)),y(z,I)};D(x,z=>{l(n)?z(C):z(j,!1)})}M(()=>Z(u,`: ${e.linkInjection.title??""}`)),ns(m,()=>l(i),z=>E(i,z)),y(r,s)},$$slots:{default:!0}}),ie()}fe(["click"]);function ef(t,e,a){requestAnimationFrame(()=>e());const i=t.target;if(["BUTTON","INPUT"].includes(i.nodeName)||i.closest("button")||i.closest("input"))return;const n=a()[0];n&&n.scrollIntoView({behavior:"smooth"})}function tf(t,e){const a=pt($p,{target:document.body,props:{linkInjection:e(),onclose:()=>Ot(a)}})}var af=(t,e)=>E(e,!l(e)),nf=T('<button class="expand-sentence svelte-lo6h85"> </button>'),rf=T('<button class="context-menu-action svelte-lo6h85">Remove</button> <button class="context-menu-action svelte-lo6h85">Report issue</button>',1),lf=(t,e)=>E(e,!l(e)),of=T('<div class="warning svelte-lo6h85" aria-label="Invalid playlink settings"><!></div>'),sf=T('<div class="actions svelte-lo6h85"><button class="expand svelte-lo6h85" aria-label="Expand"><!></button> <!> <!></div>'),cf=T('<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>'),df=T('<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 vf(t,e){ae(e,!0);const a=N(e,"linkInjection",15),i=N(e,"onremove",3,()=>null),n=N(e,"onhighlight",3,()=>null),r=O(()=>a()||{}),o=O(()=>l(r).key),s=O(()=>l(r).sentence),c=O(()=>l(r).title_details),d=O(()=>l(r).failed),v=O(()=>l(r).failed_message),u=O(()=>l(r).inactive),p=O(()=>l(c)),b=O(()=>Dr(a().sentence,a().title,60));let m=U(!1),f=U(!1),h=U(!1),g=U(null);Ne(()=>{l(d)&&ve(de.InjectionFailed,l(p),{phrase:a().title,sentence:l(s)})});function x(Y=!0){j().forEach(ue=>{ue.classList.toggle("playpilot-injection-highlight",Y)})}function C(Y){let re=Y.target,ue=re==null?void 0:re.dataset.playpilotInjectionKey;re&&!ue&&(re=re.closest(`[data-playpilot-injection-key="${l(o)}"]`),ue=re==null?void 0:re.dataset.playpilotInjectionKey),E(h,ue===l(o)),l(g)&&l(h)&&n()(l(g))}function j(){const Y=Array.from(document.querySelectorAll(`[data-playpilot-injection-key="${l(o)}"]`));return Y.length?Y:fi(Ut()).filter(re=>tt(re.innerText).includes(tt(a().sentence)))||[]}var z=df();se("mouseover",be,C),z.__click=[ef,x,j];var I=_(z),V=_(I);M(()=>le(V,"src",la(l(p).standing_poster)));var P=S(V,2),k=_(P),q=_(k),R=S(k,2),B=_(R);Go(B,()=>(l(f)?l(s):l(b)).replace(a().title,`<em>${a().title}</em>`));var L=S(B,2);{var F=Y=>{var re=nf();re.__click=[af,f];var ue=_(re);M(()=>Z(ue,l(f)?"Less":"More")),y(Y,re)};D(L,Y=>{l(b).length<l(s).length&&Y(F)})}var H=S(P,2),A=_(H);Gp(A,{ariaLabel:"More options",children:(Y,re)=>{var ue=rf(),ze=J(ue);ze.__click=function(...ge){var X;(X=i())==null||X.apply(this,ge)};var te=S(ze,2);te.__click=[tf,a],y(Y,ue)},$$slots:{default:!0}});var W=S(I,2),ne=_(W);{var Q=Y=>{Wt(Y,{children:(re,ue)=>{var ze=Le();M(()=>Z(ze,l(v))),y(re,ze)},$$slots:{default:!0}})},G=Y=>{var re=sf(),ue=_(re);ue.__click=[lf,m];var ze=_(ue);kp(ze,{get expanded(){return l(m)}});var te=S(ue,2);{var ge=Ae=>{var Ue=of(),We=_(Ue);Tp(We),xe(3,Ue,()=>yt,()=>({duration:100})),y(Ae,Ue)};D(te,Ae=>{hi(a())||Ae(ge)})}var X=S(te,2),oe=O(()=>l(u)?"Inactive":"Visible"),me=O(()=>!a().inactive);yn(X,{get label(){return l(oe)},get active(){return l(me)},onclick:Ae=>{a(a().inactive=!Ae,!0),a(a().manual=!0,!0)},children:(Ae,Ue)=>{var We=Le();M(()=>Z(We,l(u)?"Inactive":"Visible")),y(Ae,We)},$$slots:{default:!0}}),M(()=>le(ue,"aria-expanded",l(m))),y(Y,re)};D(ne,Y=>{l(d)?Y(Q):Y(G,!1)})}var K=S(ne,2);{var $=Y=>{var re=cf(),ue=S(_(re),2);bn(ue,{oninput:()=>a(a().manual=!0,!0),label:"Playlink URL",get value(){return a().playpilot_url},set value(ge){a(a().playpilot_url=ge,!0)}});var ze=S(ue,4),te=_(ze);Bp(te,{get linkInjection(){return a()}}),xe(3,re,()=>Ea,()=>({duration:100})),y(Y,re)};D(K,Y=>{l(m)&&Y($)})}Qe(z,Y=>E(g,Y),()=>l(g)),M(()=>{ce(z,"highlighted",l(h)),ce(z,"inactive",l(u)),Z(q,l(p).title)}),se("mouseenter",z,()=>x(!0)),se("mouseleave",z,()=>x(!1)),se("error",V,({target:Y})=>Y.src=Xi),xe(6,z,()=>Ea,()=>({duration:200})),y(t,z),ie()}fe(["click"]);var uf=T('<button class="drag-handle svelte-19mcc5g" aria-label="Move editor"></button>');function pf(t,e){ae(e,!0);let a=N(e,"element",7),i=N(e,"position",23,()=>({x:0,y:0})),n=N(e,"limit",19,()=>({x:0,y:0})),r=N(e,"onchange",3,()=>null),o=!1,s={x:0,y:0},c=i();Ne(()=>{d(i().x,i().y)});function d(f,h){const g=window.innerWidth,x=window.innerHeight,C=a().clientWidth,j=a().clientHeight;f=Math.min(Math.max(f,n().x),g-C-n().x),h=Math.min(Math.max(h,n().y),x-j-n().y),a().style.right=f+"px",a().style.bottom=Math.max(h,n().y)+"px",i({x:f,y:h}),r()(i())}function v(f){var h,g;return{x:f.pageX||((h=f.touches)==null?void 0:h[0].pageX)||0,y:f.pageY||((g=f.touches)==null?void 0:g[0].pageY)||0}}function u(f){o=!0,s=v(f),c=i()}function p(f){if(!o)return;const h=v(f),g=h.x-s.x,x=h.y-s.y,C=c.x-g,j=c.y-x;d(C,j)}function b(){o&&(o=!1)}var m=uf();se("mousemove",be,p),se("touchmove",be,p,void 0,!0),se("mouseup",be,b),se("touchend",be,b),se("resize",be,()=>d(i().x,i().y)),m.__mousedown=u,m.__touchstart=u,y(t,m),ie()}fe(["mousedown","touchstart"]);var ff=T('<button class="resize-handle svelte-sxkuxk" aria-label="Move editor"></button>');function hf(t,e){ae(e,!0);let a=N(e,"element",7),i=N(e,"height",7,200),n=N(e,"onchange",3,()=>null);const r=16;let o=!1,s=0,c=i();Ne(()=>{i()&&d(i())});function d(f){const h=window.getComputedStyle(a()).minHeight||"0",g=Math.max(parseInt(h),Math.min(f,b()));a().style.height=`${g}px`,i(g),n()(g)}function v(f){var h,g;o=!0,s=f.pageY||((g=(h=f.touches)==null?void 0:h[0])==null?void 0:g.pageY)||0,c=a().clientHeight}function u(f){var C,j;if(!o)return;const h=f.pageY||((j=(C=f.touches)==null?void 0:C[0])==null?void 0:j.pageY)||0,g=s-h,x=c+g;d(x)}function p(){o=!1}function b(){const f=window.innerHeight-a().getBoundingClientRect().bottom;return Math.max(window.innerHeight-r*2-f,0)}var m=ff();se("mousemove",be,u),se("touchmove",be,u,void 0,!0),se("mouseup",be,p),se("touchend",be,p),se("resize",be,()=>{i()&&d(i())}),m.__mousedown=v,m.__touchstart=v,y(t,m),ie()}fe(["mousedown","touchstart"]);function gf(t,e=t.anchorNode){if(!t.anchorNode||!e)return{start:-1,end:-1};const a=t.toString().trim(),i=t.toString().search(/\S/);if(t.anchorNode===e&&e.nodeType===Node.TEXT_NODE){const d=Math.min(t.anchorOffset,t.focusOffset)+i;return{start:d,end:d+a.length}}const n=t.getRangeAt(0),r=n.cloneRange();r.selectNodeContents(e),r.setEnd(n.startContainer,n.startOffset);const s=r.toString().length+i,c=s+a.length;return{start:s,end:c}}var mf=Pe('<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 yf(t){var e=mf();y(t,e)}async function bf(t){const e=mt();if(!e)throw new Error("No token was provided");return await ft(`/search/titles/?api-token=${e}&query=${t}`)}var _f=Pe('<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 xf(t){var e=_f();y(t,e)}var wf=T("<div> </div>"),kf=t=>t.stopImmediatePropagation(),Sf=T('<button class="item svelte-1d1gqdq"><img class="poster svelte-1d1gqdq" alt="" width="28" height="42"> <div class="content"><div class="name svelte-1d1gqdq"> </div> <div class="meta svelte-1d1gqdq"><div class="imdb svelte-1d1gqdq"><!> </div> <div> </div> <div> </div> <!></div></div> <a target="_blank" class="open-in-new-tab svelte-1d1gqdq"><!></a></button>');function yl(t,e){ae(e,!0);const a=N(e,"hoverable",3,!0),i=N(e,"onclick",3,()=>null);var n=Sf();n.__click=function(...z){var I;(I=i())==null||I.apply(this,z)};var r=_(n);M(()=>le(r,"src",la(e.title.standing_poster)));var o=S(r,2),s=_(o),c=_(s),d=S(s,2),v=_(d),u=_(v);oi(u,{});var p=S(u),b=S(v,2),m=_(b),f=S(b,2),h=_(f),g=S(f,2);{var x=z=>{var I=wf(),V=_(I);M(()=>Z(V,`${e.title.length??""} min`)),y(z,I)};D(g,z=>{e.title.length&&z(x)})}var C=S(o,2);M(()=>le(C,"href",ci(e.title))),C.__click=[kf];var j=_(C);xf(j),M(()=>{ce(n,"hoverable",a()),Z(c,e.title.title),Z(p,` ${e.title.imdb_score??""}`),Z(m,e.title.year),Z(h,e.title.type)}),se("error",r,({target:z})=>z.src=Xi),y(t,n),ie()}fe(["click"]);var Tf=T('<em class="empty svelte-s0qvcb">No results found</em>'),Cf=T('<div class="results svelte-s0qvcb" data-testid="search-results"></div>'),zf=T('<div class="selected svelte-s0qvcb"><!></div>'),Ef=T('<div class="search svelte-s0qvcb"><!> <!> <!></div>');function jf(t,e){ae(e,!0);let a=N(e,"onselect",3,()=>null),i=N(e,"query",15),n=U(ee([])),r=U(null),o=U(!1);Ge(()=>{i()&&s(i())});async function s(f){E(o,!0);try{E(n,ee(await bf(f)))}finally{E(o,!1)}}function c(f){i(f.title),E(r,ee(f)),a()(f)}var d=Ef(),v=_(d);bn(v,{oninput:()=>E(r,null),name:"search",label:"Search...",get value(){return i()},set value(f){i(f)}});var u=S(v,2);{var p=f=>{var h=Cf();Ce(h,21,()=>l(n),g=>g.sid,(g,x)=>{yl(g,{get title(){return l(x)},onclick:()=>c(l(x))})},g=>{var x=he(),C=J(x);{var j=z=>{var I=Tf();y(z,I)};D(C,z=>{l(o)||z(j)})}y(g,x)}),y(f,h)};D(u,f=>{i()&&!l(r)&&f(p)})}var b=S(u,2);{var m=f=>{var h=zf(),g=_(h);yl(g,{get title(){return l(r)},hoverable:!1}),y(f,h)};D(b,f=>{l(r)&&f(m)})}y(t,d),ie()}function Pf(t,e,a,i,n,r,o,s){if(!l(e)||!l(a))return;const c=l(a).type==="movie"?"movie":"show",d=Er+`/${c}/${l(a).slug}`,v={sid:l(a).sid,title:l(e),sentence:l(i),phrase_before:l(n),phrase_after:l(r),playpilot_url:d,key:gl(l(a).sid),title_details:l(a),manual:!0};o.onsave(v),s()()}var If=T('<div class="error svelte-q5prge"><!></div>'),Af=T('<label for="text" class="svelte-q5prge">Paired title</label> <!>',1),qf=T('<section class="layout svelte-q5prge"><div class="header svelte-q5prge"><!> <div class="heading svelte-q5prge">Add Playlink manually</div></div> <p class="svelte-q5prge">Highlight the text section in your post that you want to turn into a Playlink.</p> <label for="text" class="svelte-q5prge">Selected text</label> <!> <!> <!> <button class="save svelte-q5prge">Add playlink</button></section>');function Mf(t,e){ae(e,!0);const a=N(e,"pageText",3,""),i=N(e,"onclose",3,()=>null);let n=U(""),r=U(""),o=U(null),s=U(""),c=U(""),d=U(""),v=U("");Ne(u);function u(){const k=window.getSelection();if(!(k!=null&&k.anchorNode)||k.anchorNode.parentElement&&!Ut().contains(k.anchorNode.parentElement))return;const q=k.toString().trim();if(!q)return;E(d,""),E(n,ee(q));const R=k.getRangeAt(0).cloneContents();if(Array.from(R.childNodes).filter(Q=>{var G;return(G=Q.textContent)==null?void 0:G.trim()}).find(Q=>{var G;return Q.nodeName==="A"||((G=Q.querySelector)==null?void 0:G.call(Q,"a"))})){E(d,"Selection is or contains a link. Injections can not be created around already existing links.");return}E(v,ee(l(n)));const{node:L,sentence:F}=p(k,q);if(!L)return;E(r,ee(F));const{start:H,end:A}=gf(k,L);(Q=>(E(c,ee(Q.before)),E(s,ee(Q.after))))(Or(L,H,A)),F.includes(l(c))||E(c,""),F.includes(l(s))||E(s,"");const W=k.getRangeAt(0).commonAncestorContainer.textContent,ne=tt(a());(!W||!ne.includes(tt(W)))&&E(d,"Selection was not inside of given content")}function p(k,q){const R=k.getRangeAt(0),B=Ut();let L=R.startContainer;for(;(L.textContent||"").length<=q.length*3&&L.parentNode&&L.parentNode.textContent!==B.textContent;)L=L.parentNode;if(!L||!L.textContent)return{node:null,sentence:""};const F=L.textContent,H=b(L,R.startContainer,R.startOffset),A=b(L,R.endContainer,R.endOffset),W=F.slice(0,H).lastIndexOf("."),ne=F.slice(A).match(/[.!?]/),Q=ne?A+ne.index:F.length,G=W===-1?0:W+1,K=Q,$=F.slice(G,K+1).trim();return{node:L,sentence:$}}function b(k,q,R){let B=0;const L=k,F=H=>{var A;if(H===q)return B+=R,!0;H.nodeType===Node.TEXT_NODE&&(B+=((A=H.textContent)==null?void 0:A.length)||0);for(let W=H.firstChild;W;W=W.nextSibling)if(F(W))return!0;return!1};return F(L),B}function m(k){var q,R;E(o,ee(k)),(R=(q=window.getSelection())==null?void 0:q.removeAllRanges)==null||R.call(q)}var f=qf();se("mouseup",be,u);var h=_(f),g=_(h);ri(g,{get onclick(){return i()},size:"24px",children:(k,q)=>{yf(k)},$$slots:{default:!0}});var x=S(g,2);et(x,(k,q)=>ke==null?void 0:ke(k,q),()=>2);var C=S(h,6);bn(C,{get value(){return l(n)},label:"Select text on the page",name:"selected-text",readonly:!0});var j=S(C,2);{var z=k=>{var q=If(),R=_(q);Wt(R,{children:(B,L)=>{var F=Le();M(()=>Z(F,l(d))),y(B,F)},$$slots:{default:!0}}),y(k,q)};D(j,k=>{l(d)&&k(z)})}var I=S(j,2);{var V=k=>{var q=Af(),R=S(J(q),2);na(R,()=>l(r)+l(n),B=>{jf(B,{onselect:m,get query(){return l(v)},set query(L){E(v,ee(L))}})}),y(k,q)};D(I,k=>{l(d)||k(V)})}var P=S(I,2);P.__click=[Pf,n,o,r,c,s,e,i],M(()=>P.disabled=!l(n)||!l(o)),y(t,f),ie()}fe(["click"]);const _n="PlayPilotEditorialSessionId",bl=5e3,Lf=bl*2;async function Nf(t){const{ai_enabled:e,injections_enabled:a,ai_last_run:i,session_id:n,session_last_ping:r}=await ca(t),o=xl(n||null,r||null),s={ai_enabled:e,ai_last_run:i,injections_enabled:a,session_id:n,session_last_ping:r};return o?await _l(t):s}async function _l(t){const e=wl(),a=new Date(Date.now()).toISOString(),i={session_id:e,session_last_ping:a.toString()},{ai_enabled:n,injections_enabled:r,ai_last_run:o}=await ca(t,{params:i});return{ai_enabled:n,ai_last_run:o,injections_enabled:r,...i}}function xl(t,e){if(!t||!e)return!0;const a=Date.now(),i=new Date(e),n=wl();return a-i.getTime()>Lf?!0:n===t}function wl(){return sessionStorage.getItem(_n)||Df()}function Df(){const t=sessionStorage.getItem(_n)||qr();return sessionStorage.setItem(_n,t),t}function Of(t,e,a){_l(e()),a()()}var Rf=T('<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),Bf=T('<div class="alert svelte-2m2urs"><!></div>');function Hf(t,e){ae(e,!0);const a=N(e,"pageText",3,""),i=N(e,"onpoll",3,()=>null),n=N(e,"onallow",3,()=>null),r=N(e,"ondisallow",3,()=>null),o=N(e,"ontakeover",3,()=>null);let s=null,c=U(!0);Ne(()=>(d(),()=>{s&&clearInterval(s)}));function d(){v(),s=setInterval(v,bl)}async function v(){const m=await Nf(a());m&&(E(c,ee(xl(m.session_id||null,m.session_last_ping||null))),l(c)?n()():r()(),i()({injectionsEnabled:!!m.injections_enabled,aiEnabled:!!m.ai_enabled}))}var u=he(),p=J(u);{var b=m=>{var f=Bf(),h=_(f);Wt(h,{type:"warning",children:(g,x)=>{var C=Rf(),j=S(J(C),2);j.__click=[Of,a,o],y(g,C)},$$slots:{default:!0}}),y(m,f)};D(p,m=>{l(c)||m(b)})}y(t,u),ie()}fe(["click"]);var Ff=Pe('<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 Vf(t){var e=Ff();y(t,e)}var Uf=T('<strong class="svelte-38hnm">AI processing is disabled.</strong>'),Wf=T('<span class="svelte-38hnm">.</span>'),Gf=T(`<strong class="svelte-38hnm">AI links are currently processing.</strong> This can take several minutes. We'll insert all found injections once ready. <div class="message svelte-38hnm"> <span class="ellipses svelte-38hnm"></span></div> <div class="loading-bar svelte-38hnm"><div class="loading-bar-progress svelte-38hnm"><div class="loading-bar-fill svelte-38hnm" data-testid="loading-bar"></div></div> <div class="loading-bar-label svelte-38hnm"> </div></div>`,1),Kf=(t,e)=>E(e,!0),Yf=T('<p class="svelte-38hnm"><strong class="svelte-38hnm">AI has finished processing.</strong> <br class="svelte-38hnm"> <!></p> <button class="dismiss svelte-38hnm">Dismiss</button>',1),Zf=T('<div class="animator svelte-38hnm" data-test-id="animator"></div>'),Jf=T('<div class="ai-indicator svelte-38hnm" data-testid="ai-indicator"><div class="content svelte-38hnm"><div class="icon svelte-38hnm"><!></div> <div class="svelte-38hnm"><!></div></div> <div class="border svelte-38hnm"><!></div></div>');function Xf(t,e){const a=N(e,"aiRunning",3,!1),i=N(e,"aiEnabled",3,!1),n=N(e,"message",3,""),r=N(e,"percentage",3,0),o=N(e,"aiInjectionsCount",3,0),s=o();let c=U(!1);var d=he(),v=J(d);{var u=p=>{var b=Jf(),m=_(b),f=_(m),h=_(f);Vf(h);var g=S(f,2),x=_(g);{var C=P=>{var k=Uf();y(P,k)},j=P=>{var k=he(),q=J(k);{var R=L=>{var F=Gf(),H=S(J(F),2),A=_(H),W=S(A);Ce(W,20,()=>({length:3}),Ie,(re,ue)=>{var ze=Wf();y(re,ze)});var ne=S(H,2),Q=_(ne),G=_(Q);const K=O(()=>`${Math.max(r(),3)??""}%`);M(()=>Ee(G,"width",l(K)));var $=S(Q,2),Y=_($);M(()=>Z(Y,`${Math.floor(r())??""}%`)),M(()=>Z(A,`${n()??""} `)),y(L,F)},B=L=>{var F=Yf(),H=J(F),A=S(_(H),4);{var W=G=>{var K=Le("No new injections where found.");y(G,K)},ne=G=>{var K=Le();M(()=>Z(K,`${o()??""} Injections where found and added to the page.`)),y(G,K)};D(A,G=>{s===o()?G(W):G(ne,!1)})}var Q=S(H,2);Q.__click=[Kf,c],y(L,F)};D(q,L=>{a()?L(R):L(B,!1)},!0)}y(P,k)};D(x,P=>{i()?P(j,!1):P(C)})}var z=S(m,2),I=_(z);{var V=P=>{var k=Zf();y(P,k)};D(I,P=>{a()&&P(V)})}M(()=>ce(b,"running",a())),y(p,b)};D(v,p=>{l(c)||p(u)})}y(t,d)}fe(["click"]);async function Qf(t,e,a,i,n,r,o){try{E(e,!0),E(a,!1),i(await _p(i(),n())),E(r,ee(l(o)))}catch{E(a,!0)}finally{E(e,!1)}}var $f=T('<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:400,600,700">'),eh=T('<div class="handles svelte-1dzk6rn"><div class="handle svelte-1dzk6rn"><!></div> <div class="handle svelte-1dzk6rn"><!></div></div>'),th=T('<div class="loading svelte-1dzk6rn">Loading...</div>'),ah=T('<div class="bubble svelte-1dzk6rn"> </div> <!>',1),ih=T(`<strong>Playlinks are currently not published.</strong> Visitors to this page will not see any of the injected links.
|
|
11
|
-
Publish playlinks from the <a href="https://partner.playpilot.net">Partner Portal.</a>`,1),nh=T('<div class="alert svelte-1dzk6rn"><!></div>'),rh=T('<div class="error svelte-1dzk6rn"><!></div>'),lh=T('<div class="empty svelte-1dzk6rn">No links available. Add links manually by clicking the + button and select text to add a link to.</div>'),oh=T('<button class="save svelte-1dzk6rn"> </button>'),sh=T('<!> <!> <div class="items svelte-1dzk6rn"></div> <!>',1),ch=T("<!> <!> <!>",1),dh=T('<div class="panel playpilot-styled-scrollbar svelte-1dzk6rn"><!></div>'),vh=T('<section class="editor playpilot-styled-scrollbar svelte-1dzk6rn"><!> <header class="header svelte-1dzk6rn"><div class="heading svelte-1dzk6rn">Playlinks</div> <!></header> <!> <!></section>');function uh(t,e){ae(e,!0);let a=N(e,"linkInjections",15),i=N(e,"pageText",3,""),n=N(e,"loading",3,!1),r=N(e,"injectionsEnabled",7,!1),o=N(e,"aiStatus",23,()=>({})),s=N(e,"onreinitialize",3,()=>null);const c="editor-position",d="editor-height",v=JSON.parse(localStorage.getItem(c)||'{ "x": 0, "y": 0 }'),u=parseInt(localStorage.getItem(d)||"0");let p=U(null),b=U(!1),m=U(!1),f=U(!1),h=U(!0),g=U(0),x=U("");const C=O(()=>Da(o().aiEnabled,!1)),j=O(()=>Da(o().aiRunning,!1)),z=O(()=>JSON.stringify(a())),I=O(()=>!l(j)&&l(h)),V=O(()=>l(x)&&l(x)!==l(z)),P=O(()=>a().filter(X=>X.title_details&&!X.removed&&!X.duplicate&&(X.manual||!X.manual&&!X.failed))),k=O(()=>R(l(P))),q=O(()=>!n()&&Xe(()=>o().aiRunning));Ge(()=>{n()||Xe(()=>{requestAnimationFrame(()=>E(x,ee(l(z)))),A()})});function R(X){return X.sort((oe,me)=>oe.failed!==me.failed?oe.failed?1:-1:oe.title_details.title.localeCompare(me.title_details.title))}function B(X,oe){localStorage.setItem(X,oe)}function L(X){const oe=a().findIndex(me=>me.key===X);a(a()[oe].manual=!0,!0),a(a()[oe].removed=!0,!0),a([...a()])}function F(X){if(!l(p))return;const oe=X.offsetTop,me=oe+X.offsetHeight,Ae=l(p).scrollTop,Ue=Ae+l(p).clientHeight;oe>=Ae&&me<=Ue||l(p).scrollTo({top:oe-l(p).clientHeight/2,behavior:"smooth"})}function H(X){const oe=X.target;E(g,ee(oe.scrollTop))}function A(){const X={total:a().length,failed_automatic:a().filter(oe=>oe.failed&&!oe.manual).length,failed_manual:a().filter(oe=>oe.failed&&oe.manual).length,final_injected:l(P).length};ve(de.TotalInjectionsCount,null,X)}var W=vh();Bo(X=>{var oe=$f();y(X,oe)});var ne=_(W);{var Q=X=>{var oe=eh(),me=_(oe),Ae=_(me);hf(Ae,{get element(){return l(p)},height:u,onchange:at=>B(d,JSON.stringify(at))});var Ue=S(me,2),We=_(Ue);pf(We,{get element(){return l(p)},position:v,limit:{x:16,y:16},onchange:at=>B(c,JSON.stringify(at))}),y(X,oe)};D(ne,X=>{l(p)&&!n()&&X(Q)})}var G=S(ne,2),K=_(G);et(K,X=>ke==null?void 0:ke(X));var $=S(K,2);{var Y=X=>{var oe=th();y(X,oe)},re=X=>{var oe=he(),me=J(oe);{var Ae=Ue=>{var We=ah(),at=J(We),Ye=_(at),va=S(at,2);ri(va,{onclick:()=>E(b,!0),size:"24px","aria-label":"Add manual injection",children:(ua,kl)=>{var yi=Le("+");y(ua,yi)},$$slots:{default:!0}}),M(()=>{le(at,"aria-label",`${l(P).length??""} found playlinks`),Z(Ye,l(P).length)}),y(Ue,We)};D(me,Ue=>{l(I)&&Ue(Ae)},!0)}y(X,oe)};D($,X=>{n()?X(Y):X(re,!1)})}var ue=S(G,2);{var ze=X=>{var oe=ch(),me=J(oe);Hf(me,{get pageText(){return i()},onallow:()=>E(h,!0),ondisallow:()=>E(h,!1),get ontakeover(){return s()},onpoll:Ye=>{r(Ye.injectionsEnabled),o({...o(),aiEnabled:Ye.aiEnabled})}});var Ae=S(me,2);{var Ue=Ye=>{Xf(Ye,Sr(o,{get aiInjectionsCount(){return cl(a()).aiInjections.length}}))};D(Ae,Ye=>{l(h)&&(l(q)||!l(C))&&Ye(Ue)})}var We=S(Ae,2);{var at=Ye=>{var va=sh(),ua=J(va);{var kl=De=>{var Oe=nh(),At=_(Oe);Wt(At,{type:"warning",children:(Gt,Nh)=>{var xn=ih();y(Gt,xn)},$$slots:{default:!0}}),y(De,Oe)};D(ua,De=>{r()||De(kl)})}var yi=S(ua,2);{var qh=De=>{var Oe=rh(),At=_(Oe);Wt(At,{children:(Gt,Nh)=>{var xn=Le("Something went wrong, check your links below.");y(Gt,xn)},$$slots:{default:!0}}),xe(7,Oe,()=>Ea,()=>({duration:150})),y(De,Oe)};D(yi,De=>{l(f)&&De(qh)})}var Sl=S(yi,2);Ce(Sl,21,()=>l(k),De=>De.key,(De,Oe)=>{const At=O(()=>a().findIndex(Gt=>Gt.key===l(Oe).key));vf(De,{onremove:()=>L(l(Oe).key),onhighlight:F,get linkInjection(){return a()[l(At)]},set linkInjection(Gt){a(a()[l(At)]=Gt,!0)}})},De=>{var Oe=lh();y(De,Oe)});var Mh=S(Sl,2);{var Lh=De=>{var Oe=oh();Oe.__click=[Qf,m,f,a,i,x,z];var At=_(Oe);M(()=>{Oe.disabled=l(m),Z(At,l(m)?"Saving...":"Save links")}),xe(1,Oe,()=>yt,()=>({duration:100})),y(De,Oe)};D(Mh,De=>{l(V)&&a().length&&l(h)&&De(Lh)})}y(Ye,va)};D(We,Ye=>{l(I)&&Ye(at)})}y(X,oe)};D(ue,X=>{n()||X(ze)})}var te=S(ue,2);{var ge=X=>{var oe=dh(),me=_(oe);Mf(me,{get pageText(){return i()},onclose:()=>E(b,!1),onsave:Ae=>a().push(Ae)}),M(()=>Ee(oe,"top",`${l(g)??""}px`)),xe(3,oe,()=>Ft,()=>({x:Math.min(window.innerWidth,320),duration:200,opacity:1})),y(X,oe)};D(te,X=>{l(b)&&X(ge)})}Qe(W,X=>E(p,X),()=>l(p)),M(()=>{ce(W,"panel-open",l(b)),ce(W,"loading",n())}),se("scroll",W,H),y(t,W),ie()}fe(["click"]);var ph=Pe('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 57.48 62.96"><defs><style>.playpilot-logo{fill:url(#playpilot-linear-gradient);}</style><linearGradient id="playpilot-linear-gradient" x1="-90.03" y1="-40.23" x2="-34.8" y2="-101.48" gradientTransform="translate(74.02 108.65)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#de00b9"></stop><stop offset="0.99" stop-color="#ff557b"></stop></linearGradient></defs><path class="playpilot-logo" d="M57.48,31.48C57.48,22.17,20.85,2.19,9.2.18,7.42-.12,3.78-.37,1.36,2.25-4.32,8.39,9.62,21.5,9.62,31.48S-4.32,54.57,1.36,60.72c2.42,2.61,6.06,2.37,7.84,2.06C20.85,60.78,57.48,40.79,57.48,31.48Z"></path></svg>');function fh(t){var e=ph();y(t,e)}var hh=T('<div class="trigger svelte-qee95d"><button type="button" class="button svelte-qee95d" title="Show PlayPilot TPI editor"><!></button> <button type="button" class="button close svelte-qee95d" title="Close PlayPilot TPI"><!></button></div>');function gh(t,e){var a=hh(),i=_(a);i.__click=function(...s){var c;(c=e.onclick)==null||c.apply(this,s)};var n=_(i);fh(n);var r=S(i,2);r.__click=function(...s){var c;(c=e.onclose)==null||c.apply(this,s)};var o=_(r);nn(o,{}),y(t,a)}fe(["click"]);function mh(t,e){ae(e,!0);const a=100;let i=1;n();function n(){if(window.PlayPilotLinkInjections.require_consent===!1){e.onchange();return}if(!window.__tcfapi){i<a&&setTimeout(n,100),i++;return}window.__tcfapi("addEventListener",2,(r,o)=>{if(!o)return;const{purpose:s,eventStatus:c}=r;if(c!=="tcloaded"&&c!=="useractioncomplete")return;const d=v=>s.consents[v]===!0;zr({ads:d(1),pixels:d(1)&&d(7),split_tests:d(9)&&d(10),tracking:d(7)&&d(8),affiliate:d(1)&&d(7)}),e.onchange()})}ie()}var yh=T('<span class="error svelte-o82u5e">The current URL is excluded via the config</span> <hr class="svelte-o82u5e">',1),bh=T('<div class="item svelte-o82u5e"><span class="label"> </span>: <span class="data svelte-o82u5e"> </span></div>'),_h=T('<details><summary class="svelte-o82u5e"> </summary> <!></details>'),xh=(t,e)=>e("card"),wh=(t,e)=>e("top_scroll"),kh=T('<button class="svelte-o82u5e"></button>'),Sh=T("<small>You are using the beta version of TPI</small>"),Th=T('<button class="svelte-o82u5e">Use beta script</button>'),Ch=T('<div class="debugger svelte-o82u5e"><strong>TPI Debugger</strong> <hr class="svelte-o82u5e"> <!> <!> <hr class="svelte-o82u5e"> <button class="svelte-o82u5e">Insert mock card ad</button> <button class="svelte-o82u5e">Insert mock top scroll ad</button> <hr class="svelte-o82u5e"> <small>Force split test variant</small> <!> <hr class="svelte-o82u5e"> <button class="svelte-o82u5e">Re-inject</button> <!></div>');function zh(t,e){ae(e,!0);const a=["tpidebug","debugtpi"],i=[],n=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let r=U(ee(c())),o=U(!1),s=null;Ji(()=>{s&&clearInterval(s)});function c(){var C,j,z,I,V,P;const h=window.PlayPilotLinkInjections,g=((C=h.evaluated_link_injections)==null?void 0:C.filter(k=>!k.failed))||[],x=((j=h.evaluated_link_injections)==null?void 0:j.filter(k=>k.failed))||[];return{Config:[{label:"Domain",data:h.domain_sid},{label:"Organization",data:h.organization_sid},{label:"HTML selector",data:h.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([k,q])=>({label:k,data:q})),[`Succesful injections (${g.length})`]:g.map(k=>({label:k.title,data:k.sentence})),[`Failed injections (${x.length})`]:x.map(k=>({label:k.title,data:`Reason: ${k.failed_message} | Sentence: ${k.sentence}`})),[`Fetched ads (${((z=h.ads)==null?void 0:z.length)||0})`]:(I=h.ads)==null?void 0:I.map(k=>({label:k.campaign_name,data:k})),[`Tracking events (${((V=h.tracked_events)==null?void 0:V.length)||0})`]:(P=h.tracked_events)==null?void 0:P.map(k=>({label:k.event,data:k.payload}))}}function d(h){l(o)||(i.push(h.key),E(o,ee(a.some(g=>i.slice(i.length-g.length,i.length).join("")===g))),s=setInterval(()=>E(r,ee(c())),200))}function v(h){window.PlayPilotLinkInjections.ads.unshift({campaign_format:h,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function u(h){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(cn).forEach(({key:g,numberOfVariants:x})=>{const C=1/x;window.PlayPilotLinkInjections.split_test_identifiers[g]=Math.min(C*h,1)})}function p(){var x,C;const h=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!h)return;(C=(x=window.PlayPilotLinkInjections)==null?void 0:x.destroy)==null||C.call(x);const g=document.createElement("script");for(const j of h.attributes)g.setAttribute(j.name,j.value);g.getAttribute("onload")||g.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),g.src=h.src.replace("link-injection","link-injection@next"),h.insertAdjacentElement("afterend",g),h.remove()}var b=he();se("keydown",be,d);var m=J(b);{var f=h=>{var g=Ch(),x=S(_(g),4);{var C=B=>{var L=yh();y(B,L)};D(x,B=>{var L,F,H;(L=window.PlayPilotLinkInjections.config)!=null&&L.exclude_urls_pattern&&Ht().match((H=(F=window.PlayPilotLinkInjections)==null?void 0:F.config)==null?void 0:H.exclude_urls_pattern)&&B(C)})}var j=S(x,2);Ce(j,17,()=>Object.entries(l(r)),Ie,(B,L)=>{let F=()=>l(L)[0],H=()=>l(L)[1];var A=_h(),W=_(A),ne=_(W),Q=S(W,2);{var G=$=>{var Y=he(),re=J(Y);{var ue=ze=>{var te=he(),ge=J(te);Ce(ge,17,H,Ie,(oe,me)=>{let Ae=()=>l(me).label,Ue=()=>l(me).data;var We=bh(),at=_(We),Ye=_(at),va=S(at,2),ua=_(va);M(()=>Z(ua,JSON.stringify(Ue()))),M(()=>Z(Ye,Ae())),y(oe,We)}),y(ze,te)};D(re,ze=>{Array.isArray(H())&&ze(ue)})}y($,Y)},K=$=>{var Y=Le("No data");y($,Y)};D(Q,$=>{var Y;(Y=H())!=null&&Y.length?$(G):$(K,!1)})}M(()=>Z(ne,F())),y(B,A)});var z=S(j,4);z.__click=[xh,v];var I=S(z,2);I.__click=[wh,v];var V=S(I,6);Ce(V,16,()=>({length:4}),Ie,(B,L,F)=>{var H=kh();H.__click=()=>u(F),H.textContent=F,y(B,H)});var P=S(V,4);P.__click=function(...B){var L;(L=e.onrerender)==null||L.apply(this,B)};var k=S(P,2);{var q=B=>{var L=Sh();y(B,L)},R=B=>{var L=Th();L.__click=p,y(B,L)};D(k,B=>{n?B(q):B(R,!1)})}y(h,g)};D(m,h=>{l(o)&&h(f)})}y(t,b),ie()}fe(["click"]);function Eh(t,e){ae(e,!1);const a=Array.from(document.querySelectorAll(bt)),i=[],n=Date.now();let r=!1,o=null;Ne(()=>{ii()||s()});function s(){o=new IntersectionObserver(c),a.forEach(u=>{o.observe(u)})}function c(u){u.forEach(p=>{if(!p.isIntersecting)return;const b=p.target.getAttribute(Pt);b&&i.push(b),o.unobserve(p.target)})}function d(){const{scrollHeight:u,scrollTop:p,clientHeight:b}=document.documentElement;return p/(u-b)*100}function v(){var p,b;if(r||document.visibilityState!=="hidden")return;r=!0;const u=Date.now();ve(de.UserLeft,null,{time_start:n,time_end:u,time_spent:u-n,existing_injections_count:a.length,shown_injections_count:i.length,fired_events:((b=(p=window.PlayPilotLinkInjections)==null?void 0:p.tracked_events)==null?void 0:b.map(m=>m.event))||[],scroll_percentage:d()})}ei(),se("visibilitychange",be,v),ie()}function jh(t,e){ae(e,!1);const a=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),i=new Set,n=.8,r="[data-playpilot-poster]";let o=null;Ne(()=>v);function s(){u();const p=window.innerHeight,b=new Set,m=p*n,f=p-m;for(const h of a){const{top:g}=h.getBoundingClientRect();g<m&&g>f&&b.add(h)}for(const h of i)b.has(h)||(d(h),i.delete(h));for(const h of b)i.has(h)||(c(h),i.add(h))}function c(p){const b=p.dataset.playpilotPosterUrl,m=document.createElement("img");m.classList.add("playpilot-floating-poster"),m.dataset.playpilotPoster="",m.src=b,m.alt="",m.onload=()=>m.classList.add("loaded"),p.insertAdjacentElement("afterbegin",m)}function d(p){const b=p.querySelector(r);b&&(b.classList.add("animating-out"),setTimeout(()=>b.remove(),500))}function v(){for(const p of Array.from(document.querySelectorAll(r)))p.remove()}function u(){o&&clearTimeout(o),o=setTimeout(()=>{for(const p of i)d(p),i.delete(p)},500)}ei(),se("scroll",be,s),ie()}var Ph=T("<!> <!>",1),Ih=T('<div class="playpilot-link-injections svelte-hwl9kp" data-playpilot-link-injections=""><!> <!> <!></div> <!> <!> <!>',1);function Ah(t,e){ae(e,!0);let a=U(null),i=U(ee([])),n=U(null),r=U(ee(ii())),o=U(!!en()),s=U(!1),c=U(!0),d=U(!0),v=U(ee([]));const u=O(()=>l(n)||{}),p=O(()=>Da(l(u).ai_injections,()=>[],!0)),b=O(()=>Da(l(u).manual_injections,()=>[],!0)),m=O(()=>vn(l(i))),f=g();Ge(()=>{l(r)&&!l(c)&&x()}),gv(),Ji(pn);async function h(){ai()||(await f,_s(),ve(de.ArticlePageView),!(!l(p).length&&!l(b).length)&&(window.PlayPilotLinkInjections.ads=await Os()))}async function g(){var G;E(c,!0),l(r)&&E(s,ee(await Ar()));try{const K=await xp(),$=Ht();if(window.PlayPilotLinkInjections.config=K,E(d,!!(K!=null&&K.exclude_urls_pattern&&$.match(new RegExp(K.exclude_urls_pattern)))),l(d))return;K!=null&&K.custom_style&&V(K.custom_style||""),K!=null&&K.explore_navigation_selector&&yv(),z((K==null?void 0:K.html_selector)||"",(K==null?void 0:K.exclude_elements_selector)||"")}catch(K){ve(de.FetchingConfigFailed),console.error("TPI Config failed to fetch",K);return}try{if(E(n,ee(await fl(l(m),{maxTries:1,runAiWhenRelevant:!ai()}))),E(c,!1),!l(n)||(G=window.PlayPilotLinkInjections.config)!=null&&G.disable_public_injections&&!(l(r)&&l(s)))return;if(ys({organizationSid:l(n).organization_sid,domainSid:l(n).domain_sid}),!l(n).ai_running||!l(n).ai_enabled){j({aiInjections:l(p),manualInjections:l(b)});return}if(!l(r)||ai())return;E(n,ee(await fl(l(m),{requireCompletedResult:!0,onpoll:K=>E(n,ee(K))}))),j({aiInjections:l(p),manualInjections:l(b)})}catch(K){console.error(K),ve(de.InjectionError,null,{message:K.message})}}function x(){j(cl(l(v)))}function C(){E(r,!1),requestAnimationFrame(()=>{E(r,!0),g()})}function j(G={aiInjections:l(p),manualInjections:l(b)}){const K=np(l(i),G);JSON.stringify(K)!==JSON.stringify(l(v))&&(E(v,ee(K)),window.PlayPilotLinkInjections.evaluated_link_injections=K),l(r)||P(K)}function z(G,K){G&&(window.PlayPilotLinkInjections.selector=G),E(a,ee(Ut())),E(i,ee(fi(l(a),K)))}function I(){E(r,!0),ks(),g()}function V(G){const K="playpilot-custom-style",$=document.getElementById(K),Y=$||document.createElement("style");Y.textContent=`body { ${G} }`,Y.id=K,$||document.body.appendChild(Y)}function P(G){const K=G.filter(Y=>!Y.failed),$=G.filter(Y=>Y.failed);if(K.length&&ve(de.ArticleInjected,null,{manual:K.filter(Y=>Y.manual).length,ai:K.filter(Y=>!Y.manual).length}),$.length){const Y=re=>$.filter(({failed_message:ue})=>ue==null?void 0:ue.includes(re)).length;ve(de.FailedInjectionsCount,null,{total:$.length,sentence_not_found:Y("sentence was not found"),already_linked:Y("already inside of a link"),broken_html:Y("broken HTML"),duplicate:Y("duplicate"),unknown:Y("unknown reasons")})}}var k=Ih(),q=J(k),R=_(q);{var B=G=>{gh(G,{onclick:I,onclose:()=>{E(o,!1),ws()}})};D(R,G=>{!l(d)&&l(o)&&!l(r)&&G(B)})}var L=S(R,2);{var F=G=>{var K=he(),$=J(K);vs($,{onerror:re=>ve(de.EditorError,null,{message:re.message}),failed:re=>{Wt(re,{fixed:!0,children:(ue,ze)=>{var te=Le("An error has occured in the PlayPilot Linkinjections editor view. We've been notified and will investigate!");y(ue,te)},$$slots:{default:!0}})}},re=>{var ue=O(()=>{var te;return(te=l(n))==null?void 0:te.injections_enabled}),ze=O(()=>{var te,ge,X,oe,me;return{aiEnabled:(te=l(n))==null?void 0:te.ai_enabled,aiRunning:((ge=l(n))==null?void 0:ge.ai_running)&&((X=l(n))==null?void 0:X.ai_enabled),message:(oe=l(n))==null?void 0:oe.ai_progress_message,percentage:(me=l(n))==null?void 0:me.ai_progress_percentage}});uh(re,{get pageText(){return l(m)},get loading(){return l(c)},onreinitialize:C,get injectionsEnabled(){return l(ue)},get aiStatus(){return l(ze)},get linkInjections(){return l(v)},set linkInjections(te){E(v,ee(te))}})}),y(G,K)};D(L,G=>{!l(d)&&l(r)&&l(s)&&G(F)})}var H=S(L,2);zh(H,{onrerender:x});var A=S(q,2);{var W=G=>{rl(G,{get pixels(){return l(n).pixels}})};D(A,G=>{var K,$;($=(K=l(n))==null?void 0:K.pixels)!=null&&$.length&&G(W)})}var ne=S(A,2);na(ne,()=>l(v),G=>{var K=Ph(),$=J(K);Eh($,{});var Y=S($,2);jh(Y,{}),y(G,K)});var Q=S(ne,2);mh(Q,{onchange:h}),y(t,k),ie()}window.PlayPilotLinkInjections={token:"",editorial_token:"",selector:"",after_article_selector:"",after_article_insert_position:"",language:null,region:null,organization_sid:null,domain_sid:null,last_successful_fetch:null,tracked_events:[],queued_tracking_events:[],split_test_identifiers:{},evaluated_link_injections:[],ads:[],require_consent:!0,consents:{ads:!1,pixels:!1,tracking:!1,split_tests:!1,affiliate:!1},config:{},app:null,initialize(t={token:"",selector:"",after_article_selector:"",after_article_insert_position:"",language:null,region:null,organization_sid:null,domain_sid:null,editorial_token:"",require_consent:!0}){if(!t.token){console.error("An API token is required.");return}this.token=t.token,this.editorial_token=t.editorial_token,this.selector=t.selector,this.after_article_selector=t.after_article_selector,this.after_article_insert_position=t.after_article_insert_position,this.language=t.language,this.region=t.region,this.organization_sid=t.organization_sid,this.domain_sid=t.domain_sid,this.require_consent=t.require_consent,this.require_consent===!1&&zr({ads:!0,pixels:!0,tracking:!0,split_tests:!0,affiliate:!0}),this.app&&this.destroy();const e=document.createElement("div");e.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",e),this.app=pt(Ah,{target:e})},destroy(){if(!this.app)return;this.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),pn()},debug(){const t=Ut(),e=fi(t);console.groupCollapsed("Config"),console.table(Object.entries(this)),console.groupEnd(),console.groupCollapsed("Elements"),console.log("Parent element",t),console.log("Valid elements",e),console.groupEnd(),console.groupCollapsed("Last fetch"),console.log(this.last_successful_fetch),console.groupEnd(),console.groupCollapsed("Meta"),console.log(hn()),console.groupEnd(),console.groupCollapsed("Page text"),console.log(vn(e)),console.groupEnd(),console.groupCollapsed("Evaluated injections"),console.log(this.evaluated_link_injections),console.groupEnd(),console.groupCollapsed("Tracked events"),console.log(this.tracked_events),console.groupEnd(),console.groupCollapsed("Queued tracking events"),console.log(this.queued_tracking_events),console.groupEnd(),console.groupCollapsed("Split tests"),console.log(this.split_test_identifiers),console.groupEnd()},mockAd(t={}){const e={campaign_format:"card",campaign_type:"image",campaign_name:"some_campaign",content:{header:"Some content header",header_logo:"https://picsum.photos/seed/picsum/40/40",header_logo_uuid:"",subheader:"Some content subheader",image:"https://picsum.photos/seed/picsum/640/360",image_uuid:"",video:null,format:null},cta:{header:"Some cta header",subheader:"Some cta subheader",url:"https://google.com/",image:null,image_uuid:null},disclaimer:"Some disclaimer"};this.ads=[{...e,...t}]}}})();
|
|
11
|
+
Publish playlinks from the <a href="https://partner.playpilot.net">Partner Portal.</a>`,1),nh=T('<div class="alert svelte-1dzk6rn"><!></div>'),rh=T('<div class="error svelte-1dzk6rn"><!></div>'),lh=T('<div class="empty svelte-1dzk6rn">No links available. Add links manually by clicking the + button and select text to add a link to.</div>'),oh=T('<button class="save svelte-1dzk6rn"> </button>'),sh=T('<!> <!> <div class="items svelte-1dzk6rn"></div> <!>',1),ch=T("<!> <!> <!>",1),dh=T('<div class="panel playpilot-styled-scrollbar svelte-1dzk6rn"><!></div>'),vh=T('<section class="editor playpilot-styled-scrollbar svelte-1dzk6rn"><!> <header class="header svelte-1dzk6rn"><div class="heading svelte-1dzk6rn">Playlinks</div> <!></header> <!> <!></section>');function uh(t,e){ae(e,!0);let a=N(e,"linkInjections",15),i=N(e,"pageText",3,""),n=N(e,"loading",3,!1),r=N(e,"injectionsEnabled",7,!1),o=N(e,"aiStatus",23,()=>({})),s=N(e,"onreinitialize",3,()=>null);const c="editor-position",d="editor-height",v=JSON.parse(localStorage.getItem(c)||'{ "x": 0, "y": 0 }'),u=parseInt(localStorage.getItem(d)||"0");let p=U(null),b=U(!1),m=U(!1),f=U(!1),h=U(!0),g=U(0),x=U("");const C=O(()=>Da(o().aiEnabled,!1)),j=O(()=>Da(o().aiRunning,!1)),z=O(()=>JSON.stringify(a())),I=O(()=>!l(j)&&l(h)),V=O(()=>l(x)&&l(x)!==l(z)),P=O(()=>a().filter(X=>X.title_details&&!X.removed&&!X.duplicate&&(X.manual||!X.manual&&!X.failed))),k=O(()=>R(l(P))),q=O(()=>!n()&&Xe(()=>o().aiRunning));Ge(()=>{n()||Xe(()=>{requestAnimationFrame(()=>E(x,ee(l(z)))),A()})});function R(X){return X.sort((oe,me)=>oe.failed!==me.failed?oe.failed?1:-1:oe.title_details.title.localeCompare(me.title_details.title))}function B(X,oe){localStorage.setItem(X,oe)}function L(X){const oe=a().findIndex(me=>me.key===X);a(a()[oe].manual=!0,!0),a(a()[oe].removed=!0,!0),a([...a()])}function F(X){if(!l(p))return;const oe=X.offsetTop,me=oe+X.offsetHeight,Ae=l(p).scrollTop,Ue=Ae+l(p).clientHeight;oe>=Ae&&me<=Ue||l(p).scrollTo({top:oe-l(p).clientHeight/2,behavior:"smooth"})}function H(X){const oe=X.target;E(g,ee(oe.scrollTop))}function A(){const X={total:a().length,failed_automatic:a().filter(oe=>oe.failed&&!oe.manual).length,failed_manual:a().filter(oe=>oe.failed&&oe.manual).length,final_injected:l(P).length};ve(de.TotalInjectionsCount,null,X)}var W=vh();Bo(X=>{var oe=$f();y(X,oe)});var ne=_(W);{var Q=X=>{var oe=eh(),me=_(oe),Ae=_(me);hf(Ae,{get element(){return l(p)},height:u,onchange:at=>B(d,JSON.stringify(at))});var Ue=S(me,2),We=_(Ue);pf(We,{get element(){return l(p)},position:v,limit:{x:16,y:16},onchange:at=>B(c,JSON.stringify(at))}),y(X,oe)};D(ne,X=>{l(p)&&!n()&&X(Q)})}var G=S(ne,2),K=_(G);et(K,X=>ke==null?void 0:ke(X));var $=S(K,2);{var Y=X=>{var oe=th();y(X,oe)},re=X=>{var oe=he(),me=J(oe);{var Ae=Ue=>{var We=ah(),at=J(We),Ye=_(at),va=S(at,2);ri(va,{onclick:()=>E(b,!0),size:"24px","aria-label":"Add manual injection",children:(ua,kl)=>{var yi=Le("+");y(ua,yi)},$$slots:{default:!0}}),M(()=>{le(at,"aria-label",`${l(P).length??""} found playlinks`),Z(Ye,l(P).length)}),y(Ue,We)};D(me,Ue=>{l(I)&&Ue(Ae)},!0)}y(X,oe)};D($,X=>{n()?X(Y):X(re,!1)})}var ue=S(G,2);{var ze=X=>{var oe=ch(),me=J(oe);Hf(me,{get pageText(){return i()},onallow:()=>E(h,!0),ondisallow:()=>E(h,!1),get ontakeover(){return s()},onpoll:Ye=>{r(Ye.injectionsEnabled),o({...o(),aiEnabled:Ye.aiEnabled})}});var Ae=S(me,2);{var Ue=Ye=>{Xf(Ye,Sr(o,{get aiInjectionsCount(){return cl(a()).aiInjections.length}}))};D(Ae,Ye=>{l(h)&&(l(q)||!l(C))&&Ye(Ue)})}var We=S(Ae,2);{var at=Ye=>{var va=sh(),ua=J(va);{var kl=De=>{var Oe=nh(),At=_(Oe);Wt(At,{type:"warning",children:(Gt,Nh)=>{var xn=ih();y(Gt,xn)},$$slots:{default:!0}}),y(De,Oe)};D(ua,De=>{r()||De(kl)})}var yi=S(ua,2);{var qh=De=>{var Oe=rh(),At=_(Oe);Wt(At,{children:(Gt,Nh)=>{var xn=Le("Something went wrong, check your links below.");y(Gt,xn)},$$slots:{default:!0}}),xe(7,Oe,()=>Ea,()=>({duration:150})),y(De,Oe)};D(yi,De=>{l(f)&&De(qh)})}var Sl=S(yi,2);Ce(Sl,21,()=>l(k),De=>De.key,(De,Oe)=>{const At=O(()=>a().findIndex(Gt=>Gt.key===l(Oe).key));vf(De,{onremove:()=>L(l(Oe).key),onhighlight:F,get linkInjection(){return a()[l(At)]},set linkInjection(Gt){a(a()[l(At)]=Gt,!0)}})},De=>{var Oe=lh();y(De,Oe)});var Mh=S(Sl,2);{var Lh=De=>{var Oe=oh();Oe.__click=[Qf,m,f,a,i,x,z];var At=_(Oe);M(()=>{Oe.disabled=l(m),Z(At,l(m)?"Saving...":"Save links")}),xe(1,Oe,()=>yt,()=>({duration:100})),y(De,Oe)};D(Mh,De=>{l(V)&&a().length&&l(h)&&De(Lh)})}y(Ye,va)};D(We,Ye=>{l(I)&&Ye(at)})}y(X,oe)};D(ue,X=>{n()||X(ze)})}var te=S(ue,2);{var ge=X=>{var oe=dh(),me=_(oe);Mf(me,{get pageText(){return i()},onclose:()=>E(b,!1),onsave:Ae=>a().push(Ae)}),M(()=>Ee(oe,"top",`${l(g)??""}px`)),xe(3,oe,()=>Ft,()=>({x:Math.min(window.innerWidth,320),duration:200,opacity:1})),y(X,oe)};D(te,X=>{l(b)&&X(ge)})}Qe(W,X=>E(p,X),()=>l(p)),M(()=>{ce(W,"panel-open",l(b)),ce(W,"loading",n())}),se("scroll",W,H),y(t,W),ie()}fe(["click"]);var ph=Pe('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 57.48 62.96"><defs><style>.playpilot-logo{fill:url(#playpilot-linear-gradient);}</style><linearGradient id="playpilot-linear-gradient" x1="-90.03" y1="-40.23" x2="-34.8" y2="-101.48" gradientTransform="translate(74.02 108.65)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#de00b9"></stop><stop offset="0.99" stop-color="#ff557b"></stop></linearGradient></defs><path class="playpilot-logo" d="M57.48,31.48C57.48,22.17,20.85,2.19,9.2.18,7.42-.12,3.78-.37,1.36,2.25-4.32,8.39,9.62,21.5,9.62,31.48S-4.32,54.57,1.36,60.72c2.42,2.61,6.06,2.37,7.84,2.06C20.85,60.78,57.48,40.79,57.48,31.48Z"></path></svg>');function fh(t){var e=ph();y(t,e)}var hh=T('<div class="trigger svelte-qee95d"><button type="button" class="button svelte-qee95d" title="Show PlayPilot TPI editor"><!></button> <button type="button" class="button close svelte-qee95d" title="Close PlayPilot TPI"><!></button></div>');function gh(t,e){var a=hh(),i=_(a);i.__click=function(...s){var c;(c=e.onclick)==null||c.apply(this,s)};var n=_(i);fh(n);var r=S(i,2);r.__click=function(...s){var c;(c=e.onclose)==null||c.apply(this,s)};var o=_(r);nn(o,{}),y(t,a)}fe(["click"]);function mh(t,e){ae(e,!0);const a=100;let i=1;n();function n(){if(window.PlayPilotLinkInjections.require_consent===!1){e.onchange();return}if(!window.__tcfapi){i<a&&setTimeout(n,100),i++;return}window.__tcfapi("addEventListener",2,(r,o)=>{if(!o)return;const{purpose:s,eventStatus:c}=r;if(c!=="tcloaded"&&c!=="useractioncomplete")return;const d=v=>s.consents[v]===!0;zr({ads:d(1),pixels:d(1)&&d(7),split_tests:d(9)&&d(10),tracking:d(7)&&d(8),affiliate:d(1)&&d(7)}),e.onchange()})}ie()}var yh=T('<span class="error svelte-o82u5e">The current URL is excluded via the config</span> <hr class="svelte-o82u5e">',1),bh=T('<div class="item svelte-o82u5e"><span class="label"> </span>: <span class="data svelte-o82u5e"> </span></div>'),_h=T('<details><summary class="svelte-o82u5e"> </summary> <!></details>'),xh=(t,e)=>e("card"),wh=(t,e)=>e("top_scroll"),kh=T('<button class="svelte-o82u5e"></button>'),Sh=T("<small>You are using the beta version of TPI</small>"),Th=T('<button class="svelte-o82u5e">Use beta script</button>'),Ch=T('<div class="debugger svelte-o82u5e"><strong>TPI Debugger</strong> <hr class="svelte-o82u5e"> <!> <!> <hr class="svelte-o82u5e"> <button class="svelte-o82u5e">Insert mock card ad</button> <button class="svelte-o82u5e">Insert mock top scroll ad</button> <hr class="svelte-o82u5e"> <small>Force split test variant</small> <!> <hr class="svelte-o82u5e"> <button class="svelte-o82u5e">Re-inject</button> <!></div>');function zh(t,e){ae(e,!0);const a=["tpidebug","debugtpi"],i=[],n=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let r=U(ee(c())),o=U(!1),s=null;Ji(()=>{s&&clearInterval(s)});function c(){var C,j,z,I,V,P;const h=window.PlayPilotLinkInjections,g=((C=h.evaluated_link_injections)==null?void 0:C.filter(k=>!k.failed))||[],x=((j=h.evaluated_link_injections)==null?void 0:j.filter(k=>k.failed))||[];return{Config:[{label:"Domain",data:h.domain_sid},{label:"Organization",data:h.organization_sid},{label:"HTML selector",data:h.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([k,q])=>({label:k,data:q})),[`Succesful injections (${g.length})`]:g.map(k=>({label:k.title,data:k.sentence})),[`Failed injections (${x.length})`]:x.map(k=>({label:k.title,data:`Reason: ${k.failed_message} | Sentence: ${k.sentence}`})),[`Fetched ads (${((z=h.ads)==null?void 0:z.length)||0})`]:(I=h.ads)==null?void 0:I.map(k=>({label:k.campaign_name,data:k})),[`Tracking events (${((V=h.tracked_events)==null?void 0:V.length)||0})`]:(P=h.tracked_events)==null?void 0:P.map(k=>({label:k.event,data:k.payload}))}}function d(h){l(o)||(i.push(h.key),E(o,ee(a.some(g=>i.slice(i.length-g.length,i.length).join("")===g))),s=setInterval(()=>E(r,ee(c())),200))}function v(h){window.PlayPilotLinkInjections.ads.unshift({campaign_format:h,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function u(h){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(cn).forEach(({key:g,numberOfVariants:x})=>{const C=1/x;window.PlayPilotLinkInjections.split_test_identifiers[g]=Math.min(C*h,1)})}function p(){var x,C;const h=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!h)return;(C=(x=window.PlayPilotLinkInjections)==null?void 0:x.destroy)==null||C.call(x);const g=document.createElement("script");for(const j of h.attributes)g.setAttribute(j.name,j.value);g.getAttribute("onload")||g.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),g.src=h.src.replace("link-injection","link-injection@next"),h.insertAdjacentElement("afterend",g),h.remove()}var b=he();se("keydown",be,d);var m=J(b);{var f=h=>{var g=Ch(),x=S(_(g),4);{var C=B=>{var L=yh();y(B,L)};D(x,B=>{var L,F,H;(L=window.PlayPilotLinkInjections.config)!=null&&L.exclude_urls_pattern&&Ht().match((H=(F=window.PlayPilotLinkInjections)==null?void 0:F.config)==null?void 0:H.exclude_urls_pattern)&&B(C)})}var j=S(x,2);Ce(j,17,()=>Object.entries(l(r)),Ie,(B,L)=>{let F=()=>l(L)[0],H=()=>l(L)[1];var A=_h(),W=_(A),ne=_(W),Q=S(W,2);{var G=$=>{var Y=he(),re=J(Y);{var ue=ze=>{var te=he(),ge=J(te);Ce(ge,17,H,Ie,(oe,me)=>{let Ae=()=>l(me).label,Ue=()=>l(me).data;var We=bh(),at=_(We),Ye=_(at),va=S(at,2),ua=_(va);M(()=>Z(ua,JSON.stringify(Ue()))),M(()=>Z(Ye,Ae())),y(oe,We)}),y(ze,te)};D(re,ze=>{Array.isArray(H())&&ze(ue)})}y($,Y)},K=$=>{var Y=Le("No data");y($,Y)};D(Q,$=>{var Y;(Y=H())!=null&&Y.length?$(G):$(K,!1)})}M(()=>Z(ne,F())),y(B,A)});var z=S(j,4);z.__click=[xh,v];var I=S(z,2);I.__click=[wh,v];var V=S(I,6);Ce(V,16,()=>({length:4}),Ie,(B,L,F)=>{var H=kh();H.__click=()=>u(F),H.textContent=F,y(B,H)});var P=S(V,4);P.__click=function(...B){var L;(L=e.onrerender)==null||L.apply(this,B)};var k=S(P,2);{var q=B=>{var L=Sh();y(B,L)},R=B=>{var L=Th();L.__click=p,y(B,L)};D(k,B=>{n?B(q):B(R,!1)})}y(h,g)};D(m,h=>{l(o)&&h(f)})}y(t,b),ie()}fe(["click"]);function Eh(t,e){ae(e,!1);const a=Array.from(document.querySelectorAll(bt)),i=[],n=Date.now();let r=!1,o=null;Ne(()=>{ii()||s()});function s(){o=new IntersectionObserver(c),a.forEach(u=>{o.observe(u)})}function c(u){u.forEach(p=>{if(!p.isIntersecting)return;const b=p.target.getAttribute(Pt);b&&i.push(b),o.unobserve(p.target)})}function d(){const{scrollHeight:u,scrollTop:p,clientHeight:b}=document.documentElement;return p/(u-b)*100}function v(){var p,b;if(r||document.visibilityState!=="hidden")return;r=!0;const u=Date.now();ve(de.UserLeft,null,{time_start:n,time_end:u,time_spent:u-n,existing_injections_count:a.length,shown_injections_count:i.length,fired_events:((b=(p=window.PlayPilotLinkInjections)==null?void 0:p.tracked_events)==null?void 0:b.map(m=>m.event))||[],scroll_percentage:d()})}ei(),se("visibilitychange",be,v),ie()}function jh(t,e){ae(e,!1);const a=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),i=new Set,n=.8,r="[data-playpilot-poster]";let o=null;Ne(()=>v);function s(){u();const p=window.innerHeight,b=new Set,m=p*n,f=p-m;for(const h of a){const{top:g}=h.getBoundingClientRect();g<m&&g>f&&b.add(h)}for(const h of i)b.has(h)||(d(h),i.delete(h));for(const h of b)i.has(h)||(c(h),i.add(h))}function c(p){const b=p.dataset.playpilotPosterUrl,m=document.createElement("img");m.classList.add("playpilot-floating-poster"),m.dataset.playpilotPoster="",m.src=b,m.alt="",m.onload=()=>m.classList.add("loaded"),p.insertAdjacentElement("afterbegin",m)}function d(p){const b=p.querySelector(r);b&&(b.classList.add("animating-out"),setTimeout(()=>b.remove(),500))}function v(){for(const p of Array.from(document.querySelectorAll(r)))p.remove()}function u(){o&&clearTimeout(o),o=setTimeout(()=>{for(const p of i)d(p),i.delete(p)},1700)}ei(),se("scroll",be,s),ie()}var Ph=T("<!> <!>",1),Ih=T('<div class="playpilot-link-injections svelte-hwl9kp" data-playpilot-link-injections=""><!> <!> <!></div> <!> <!> <!>',1);function Ah(t,e){ae(e,!0);let a=U(null),i=U(ee([])),n=U(null),r=U(ee(ii())),o=U(!!en()),s=U(!1),c=U(!0),d=U(!0),v=U(ee([]));const u=O(()=>l(n)||{}),p=O(()=>Da(l(u).ai_injections,()=>[],!0)),b=O(()=>Da(l(u).manual_injections,()=>[],!0)),m=O(()=>vn(l(i))),f=g();Ge(()=>{l(r)&&!l(c)&&x()}),gv(),Ji(pn);async function h(){ai()||(await f,_s(),ve(de.ArticlePageView),!(!l(p).length&&!l(b).length)&&(window.PlayPilotLinkInjections.ads=await Os()))}async function g(){var G;E(c,!0),l(r)&&E(s,ee(await Ar()));try{const K=await xp(),$=Ht();if(window.PlayPilotLinkInjections.config=K,E(d,!!(K!=null&&K.exclude_urls_pattern&&$.match(new RegExp(K.exclude_urls_pattern)))),l(d))return;K!=null&&K.custom_style&&V(K.custom_style||""),K!=null&&K.explore_navigation_selector&&yv(),z((K==null?void 0:K.html_selector)||"",(K==null?void 0:K.exclude_elements_selector)||"")}catch(K){ve(de.FetchingConfigFailed),console.error("TPI Config failed to fetch",K);return}try{if(E(n,ee(await fl(l(m),{maxTries:1,runAiWhenRelevant:!ai()}))),E(c,!1),!l(n)||(G=window.PlayPilotLinkInjections.config)!=null&&G.disable_public_injections&&!(l(r)&&l(s)))return;if(ys({organizationSid:l(n).organization_sid,domainSid:l(n).domain_sid}),!l(n).ai_running||!l(n).ai_enabled){j({aiInjections:l(p),manualInjections:l(b)});return}if(!l(r)||ai())return;E(n,ee(await fl(l(m),{requireCompletedResult:!0,onpoll:K=>E(n,ee(K))}))),j({aiInjections:l(p),manualInjections:l(b)})}catch(K){console.error(K),ve(de.InjectionError,null,{message:K.message})}}function x(){j(cl(l(v)))}function C(){E(r,!1),requestAnimationFrame(()=>{E(r,!0),g()})}function j(G={aiInjections:l(p),manualInjections:l(b)}){const K=np(l(i),G);JSON.stringify(K)!==JSON.stringify(l(v))&&(E(v,ee(K)),window.PlayPilotLinkInjections.evaluated_link_injections=K),l(r)||P(K)}function z(G,K){G&&(window.PlayPilotLinkInjections.selector=G),E(a,ee(Ut())),E(i,ee(fi(l(a),K)))}function I(){E(r,!0),ks(),g()}function V(G){const K="playpilot-custom-style",$=document.getElementById(K),Y=$||document.createElement("style");Y.textContent=`body { ${G} }`,Y.id=K,$||document.body.appendChild(Y)}function P(G){const K=G.filter(Y=>!Y.failed),$=G.filter(Y=>Y.failed);if(K.length&&ve(de.ArticleInjected,null,{manual:K.filter(Y=>Y.manual).length,ai:K.filter(Y=>!Y.manual).length}),$.length){const Y=re=>$.filter(({failed_message:ue})=>ue==null?void 0:ue.includes(re)).length;ve(de.FailedInjectionsCount,null,{total:$.length,sentence_not_found:Y("sentence was not found"),already_linked:Y("already inside of a link"),broken_html:Y("broken HTML"),duplicate:Y("duplicate"),unknown:Y("unknown reasons")})}}var k=Ih(),q=J(k),R=_(q);{var B=G=>{gh(G,{onclick:I,onclose:()=>{E(o,!1),ws()}})};D(R,G=>{!l(d)&&l(o)&&!l(r)&&G(B)})}var L=S(R,2);{var F=G=>{var K=he(),$=J(K);vs($,{onerror:re=>ve(de.EditorError,null,{message:re.message}),failed:re=>{Wt(re,{fixed:!0,children:(ue,ze)=>{var te=Le("An error has occured in the PlayPilot Linkinjections editor view. We've been notified and will investigate!");y(ue,te)},$$slots:{default:!0}})}},re=>{var ue=O(()=>{var te;return(te=l(n))==null?void 0:te.injections_enabled}),ze=O(()=>{var te,ge,X,oe,me;return{aiEnabled:(te=l(n))==null?void 0:te.ai_enabled,aiRunning:((ge=l(n))==null?void 0:ge.ai_running)&&((X=l(n))==null?void 0:X.ai_enabled),message:(oe=l(n))==null?void 0:oe.ai_progress_message,percentage:(me=l(n))==null?void 0:me.ai_progress_percentage}});uh(re,{get pageText(){return l(m)},get loading(){return l(c)},onreinitialize:C,get injectionsEnabled(){return l(ue)},get aiStatus(){return l(ze)},get linkInjections(){return l(v)},set linkInjections(te){E(v,ee(te))}})}),y(G,K)};D(L,G=>{!l(d)&&l(r)&&l(s)&&G(F)})}var H=S(L,2);zh(H,{onrerender:x});var A=S(q,2);{var W=G=>{rl(G,{get pixels(){return l(n).pixels}})};D(A,G=>{var K,$;($=(K=l(n))==null?void 0:K.pixels)!=null&&$.length&&G(W)})}var ne=S(A,2);na(ne,()=>l(v),G=>{var K=Ph(),$=J(K);Eh($,{});var Y=S($,2);jh(Y,{}),y(G,K)});var Q=S(ne,2);mh(Q,{onchange:h}),y(t,k),ie()}window.PlayPilotLinkInjections={token:"",editorial_token:"",selector:"",after_article_selector:"",after_article_insert_position:"",language:null,region:null,organization_sid:null,domain_sid:null,last_successful_fetch:null,tracked_events:[],queued_tracking_events:[],split_test_identifiers:{},evaluated_link_injections:[],ads:[],require_consent:!0,consents:{ads:!1,pixels:!1,tracking:!1,split_tests:!1,affiliate:!1},config:{},app:null,initialize(t={token:"",selector:"",after_article_selector:"",after_article_insert_position:"",language:null,region:null,organization_sid:null,domain_sid:null,editorial_token:"",require_consent:!0}){if(!t.token){console.error("An API token is required.");return}this.token=t.token,this.editorial_token=t.editorial_token,this.selector=t.selector,this.after_article_selector=t.after_article_selector,this.after_article_insert_position=t.after_article_insert_position,this.language=t.language,this.region=t.region,this.organization_sid=t.organization_sid,this.domain_sid=t.domain_sid,this.require_consent=t.require_consent,this.require_consent===!1&&zr({ads:!0,pixels:!0,tracking:!0,split_tests:!0,affiliate:!0}),this.app&&this.destroy();const e=document.createElement("div");e.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",e),this.app=pt(Ah,{target:e})},destroy(){if(!this.app)return;this.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),pn()},debug(){const t=Ut(),e=fi(t);console.groupCollapsed("Config"),console.table(Object.entries(this)),console.groupEnd(),console.groupCollapsed("Elements"),console.log("Parent element",t),console.log("Valid elements",e),console.groupEnd(),console.groupCollapsed("Last fetch"),console.log(this.last_successful_fetch),console.groupEnd(),console.groupCollapsed("Meta"),console.log(hn()),console.groupEnd(),console.groupCollapsed("Page text"),console.log(vn(e)),console.groupEnd(),console.groupCollapsed("Evaluated injections"),console.log(this.evaluated_link_injections),console.groupEnd(),console.groupCollapsed("Tracked events"),console.log(this.tracked_events),console.groupEnd(),console.groupCollapsed("Queued tracking events"),console.log(this.queued_tracking_events),console.groupEnd(),console.groupCollapsed("Split tests"),console.log(this.split_test_identifiers),console.groupEnd()},mockAd(t={}){const e={campaign_format:"card",campaign_type:"image",campaign_name:"some_campaign",content:{header:"Some content header",header_logo:"https://picsum.photos/seed/picsum/40/40",header_logo_uuid:"",subheader:"Some content subheader",image:"https://picsum.photos/seed/picsum/640/360",image_uuid:"",video:null,format:null},cta:{header:"Some cta header",subheader:"Some cta subheader",url:"https://google.com/",image:null,image_uuid:null},disclaimer:"Some disclaimer"};this.ads=[{...e,...t}]}}})();
|
package/package.json
CHANGED
package/src/lib/scss/global.scss
CHANGED
|
@@ -103,14 +103,14 @@ h1, h2, h3, h4, h5 {
|
|
|
103
103
|
@keyframes playpilot-poster-fly-in {
|
|
104
104
|
from {
|
|
105
105
|
opacity: 0;
|
|
106
|
-
transform: translateX(-50%) translateY(
|
|
106
|
+
transform: translateX(-50%) translateY(1.5rem);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
@keyframes playpilot-poster-fly-out {
|
|
111
111
|
to {
|
|
112
112
|
opacity: 0;
|
|
113
|
-
transform: translateX(-50%) translateY(0.5rem)
|
|
113
|
+
transform: translateX(-50%) translateY(0.5rem);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -127,7 +127,7 @@ h1, h2, h3, h4, h5 {
|
|
|
127
127
|
transform-origin: bottom center;
|
|
128
128
|
|
|
129
129
|
&.loaded {
|
|
130
|
-
animation: playpilot-poster-fly-in
|
|
130
|
+
animation: playpilot-poster-fly-in 500ms cubic-bezier(0.25, 1.75, 0.5, 1);
|
|
131
131
|
opacity: 1;
|
|
132
132
|
}
|
|
133
133
|
|
|
@@ -98,7 +98,7 @@ describe('FloatingPoster', () => {
|
|
|
98
98
|
vi.advanceTimersByTime(400)
|
|
99
99
|
expect(document.querySelector('[data-playpilot-poster]')).toBeTruthy()
|
|
100
100
|
|
|
101
|
-
vi.advanceTimersByTime(
|
|
101
|
+
vi.advanceTimersByTime(2000)
|
|
102
102
|
expect(document.querySelector('[data-playpilot-poster]')).not.toBeTruthy()
|
|
103
103
|
|
|
104
104
|
window.dispatchEvent(new Event('scroll'))
|