@playpilot/tpi 6.0.0-beta.explore.21 → 6.0.0-beta.explore.23
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
1
|
var kh=Object.defineProperty;var Cr=ke=>{throw TypeError(ke)};var Sh=(ke,Se,je)=>Se in ke?kh(ke,Se,{enumerable:!0,configurable:!0,writable:!0,value:je}):ke[Se]=je;var zr=(ke,Se,je)=>Sh(ke,typeof Se!="symbol"?Se+"":Se,je),Sn=(ke,Se,je)=>Se.has(ke)||Cr("Cannot "+je);var ot=(ke,Se,je)=>(Sn(ke,Se,"read from private field"),je?je.call(ke):Se.get(ke)),Yt=(ke,Se,je)=>Se.has(ke)?Cr("Cannot add the same private member more than once"):Se instanceof WeakSet?Se.add(ke):Se.set(ke,je),Na=(ke,Se,je,Da)=>(Sn(ke,Se,"write to private field"),Da?Da.call(ke,je):Se.set(ke,je),je),Er=(ke,Se,je)=>(Sn(ke,Se,"access private method"),je);(function(){"use strict";var Pt,ua,Ma,gi,jr,qa,La;var ke=document.createElement("style");ke.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-11kx6oy{display:block;width:100%;height:auto;color:var(--playpilot-detail-text-color, var(--playpilot-text-color-alt))}.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}.explore.svelte-192gfsu{background:var(--playpilot-explore-background, var(--playpilot-light));border-radius:var(--playpilot-border-radius-large);max-width:var(--playpilot-explore-max-width, 1200px);margin:0 auto;padding:var(--playpilot-explore-padding, 16px 16px 32px);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-192gfsu *{box-sizing:border-box}.header.svelte-192gfsu{display:flex;flex-direction:column;gap:8px;margin:var(--playpilot-explore-header-margin, 0 0 32px);width:100%}.grid.svelte-192gfsu .header:where(.svelte-192gfsu){gap:16px}.divider.svelte-192gfsu{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-192gfsu{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-192gfsu{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-192gfsu .description:where(.svelte-192gfsu){font-size:var(--playpilot-font-size-base)}.titles.svelte-192gfsu{--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-192gfsu .titles:where(.svelte-192gfsu){display:grid;grid-template-columns:repeat(var(--grid-columns),minmax(120px,1fr));gap:16px}.show-more.svelte-192gfsu{flex:0 0 100%;display:grid;margin-top:16px}.grid.svelte-192gfsu .show-more:where(.svelte-192gfsu){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-df5n87{padding:8px;border-radius:8px;border:1px solid var(--playpilot-error);background:var(--playpilot-error-dark);font-size:12px;font-family:var(--playpilot-font-family)}.alert.warning.svelte-df5n87{border-color:var(--playpilot-warning);background:var(--playpilot-warning-dark)}.alert.fixed.svelte-df5n87{position:fixed;bottom:1rem;right:1rem;width:80%;max-width:25rem}.alert.svelte-df5n87 a{color:currentColor}.switches.svelte-1shw34x{display:flex;flex-direction:column;gap:12px}button.svelte-1shw34x{z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:32px;padding:8px;background:transparent;font-family:var(--playpilot-font-family);font-size:10.4px;color:var(--playpilot-text-color-alt);cursor:pointer}button.svelte-1shw34x:hover,button.active.svelte-1shw34x{color:var(--playpilot-text-color)}.group.svelte-1shw34x{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;padding:4px;border:0;border-radius:32px;background:var(--playpilot-light);color:var(--playpilot-text-color-alt);font-size:12px;font-family:var(--playpilot-font-family)}.active-marker.svelte-1shw34x{z-index:0;position:absolute;width:calc(50% - 8px);height:calc(100% - 8px);left:4px;top:4px;border-radius:32px;background:var(--playpilot-content);transition:left .1s}.right.svelte-1shw34x{left:calc(50% + 4px)}.label.svelte-1shw34x{margin:10.8px 0 4px;opacity:.75;font-size:10.8px;color:var(--playpilot-text-color-alt)}.alert.svelte-1shw34x{margin-top:8px}button.svelte-zpsd2z{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-radius:4px;background:transparent;color:var(--playpilot-text-color-alt)}button.svelte-zpsd2z:hover{cursor:pointer;color:#fff}.context-menu.svelte-zpsd2z{position:relative}.content.svelte-zpsd2z{z-index:1;position:absolute;top:100%;right:0;max-width:240px;border-radius:8px;background:var(--playpilot-lighter)}select.svelte-o5qkco{background:var(--playpilot-content);padding:8px 16px;width:100%;border:0;border-radius:8px;color:var(--playpilot-text-color);font-family:inherit;font-size:13.6px}option.svelte-o5qkco:hover,option.svelte-o5qkco:active,option.svelte-o5qkco:checked{background-color:var(--playpilot-content-light);font-weight:700}.form.svelte-o5qkco{padding:32px;font-family:var(--playpilot-font-family);color:var(--playpilot-text-color)}.heading.svelte-o5qkco{font-size:20px}.info.svelte-o5qkco{margin:16px 0;font-size:13.6px;color:var(--playpilot-text-color-alt)}.info.svelte-o5qkco strong:where(.svelte-o5qkco){color:var(--playpilot-text-color)}.submit.svelte-o5qkco{margin-top:16px;padding:8px 16px;border:0;border-radius:32px;background:var(--playpilot-green);box-shadow:var(--playpilot-shadow);font-family:inherit;color:var(--playpilot-text-color);font-size:13.6px;cursor:pointer}.submit[disabled].svelte-o5qkco{background:var(--playpilot-content);color:var(--playpilot-text-color-alt);box-shadow:none;opacity:.5;cursor:default}.sent.svelte-o5qkco{margin-top:16px;padding:8px 0;color:var(--playpilot-green);font-size:13.6px}.item.svelte-lo6h85{padding:16px 8px;border-bottom:1px solid var(--playpilot-lighter);transition:outline-offset .1s}.item.svelte-lo6h85:hover,.item.highlighted.svelte-lo6h85{border-radius:8px;border-color:transparent;outline:2px solid var(--playpilot-content);outline-offset:1px}.item.highlighted.svelte-lo6h85{outline:2px solid var(--playpilot-primary)}.header.svelte-lo6h85{display:flex;gap:16px;width:100%}.poster.svelte-lo6h85{display:block;width:32px;height:48px;border-radius:4px;background:var(--playpilot-content)}.inactive.svelte-lo6h85 .poster:where(.svelte-lo6h85){opacity:.35}.title.svelte-lo6h85{font-size:14px;word-break:break-word}.sentence.svelte-lo6h85{font-size:.7em;line-height:150%;margin-right:-8px;color:var(--playpilot-text-color-alt);opacity:.75}.sentence.svelte-lo6h85 em{color:var(--playpilot-text-color);font-weight:700}.expand-sentence.svelte-lo6h85{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;padding:0;margin:0;background:transparent;font-family:inherit;color:inherit;font-size:inherit;line-height:inherit;font-style:italic;text-decoration:underline}.expand-sentence.svelte-lo6h85:hover{color:var(--playpilot-text-color)}.content.svelte-lo6h85{padding-top:8px}.inactive.svelte-lo6h85 .info:where(.svelte-lo6h85){opacity:.35}.context-menu.svelte-lo6h85{margin:0 -4px 0 auto}.context-menu-action.svelte-lo6h85{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;padding:8px 16px;width:100%;text-align:left;font-family:inherit;white-space:nowrap;color:var(--playpilot-text-color-alt);cursor:pointer}.context-menu-action.svelte-lo6h85:hover{color:var(--playpilot-text-color);background-color:var(--playpilot-content-light)}.context-menu-action.svelte-lo6h85:first-child{margin-top:8px}.context-menu-action.svelte-lo6h85:last-child{margin-bottom:8px}.actions.svelte-lo6h85{display:flex;align-items:center;justify-content:space-between;width:100%}.expand.svelte-lo6h85{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:0;border-radius:50%;background:var(--playpilot-content);color:var(--playpilot-text-color);box-shadow:var(--playpilot-shadow);cursor:pointer}.expand.svelte-lo6h85:hover{filter:brightness(1.2)}.expanded.svelte-lo6h85{padding-top:16px}.type-select.svelte-lo6h85{margin-top:8px}.label.svelte-lo6h85{margin-bottom:4px;opacity:.75;font-size:10.8px;color:var(--playpilot-text-color-alt)}.offset.svelte-lo6h85{margin-top:12px}.warning.svelte-lo6h85{margin:0 auto 0 8px}.warning.svelte-lo6h85 svg{display:block}.drag-handle.svelte-19mcc5g{z-index:10;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;top:8px;left:30%;width:40%;height:16px;background:transparent;border:0;cursor:grab}.drag-handle.svelte-19mcc5g:hover:before{opacity:.65;transform:scale(1.05)}.drag-handle.svelte-19mcc5g:active:before{opacity:.9;transform:scale(.95)}.drag-handle.svelte-19mcc5g:active{cursor:grabbing}.drag-handle.svelte-19mcc5g:before{display:block;content:"";position:absolute;top:20%;right:0;bottom:60%;left:0;border-radius:16px;background:var(--playpilot-text-color);opacity:.15;transition:opacity .1s,transform 50ms}.resize-handle.svelte-sxkuxk{z-index:10;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;top:0;left:0;width:100%;height:8px;background:transparent;border:0;cursor:ns-resize}.resize-handle.svelte-sxkuxk:hover:before{opacity:.65;transform:scale(1.05)}.resize-handle.svelte-sxkuxk:active:before{opacity:.9;transform:scale(.95)}.resize-handle.svelte-sxkuxk:active{cursor:grabbing}.resize-handle.svelte-sxkuxk:before{display:block;content:"";position:absolute;top:0;right:20%;left:20%;bottom:80%;border-radius:0 0 16px 16px;background:var(--playpilot-text-color);opacity:.15;transition:opacity .1s,transform 50ms}.item.svelte-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}a.svelte-o59195{color:currentColor}p.svelte-o59195{margin:0}.ai-indicator.svelte-o59195{position:relative;margin:0 8px}.content.svelte-o59195{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-o59195{display:flex;margin-top:4px;font-style:italic}.icon.svelte-o59195{color:var(--playpilot-green)}.border.svelte-o59195{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-o59195 .border:where(.svelte-o59195){background:var(--playpilot-light)}@keyframes svelte-o59195-rotate{to{rotate:360deg}}.animator.svelte-o59195{position:absolute;left:50%;top:50%;transform:translateY(-50%);width:100%;height:20rem;background:var(--playpilot-green);transform-origin:left 50%;animation:svelte-o59195-rotate 2s infinite linear;filter:blur(5rem)}.loading-bar.svelte-o59195{display:grid;grid-template-columns:auto 3em;align-items:center}.loading-bar-progress.svelte-o59195{height:.5em;border-radius:.25rem;background:var(--playpilot-lighter)}.loading-bar-fill.svelte-o59195{height:100%;border-radius:.25rem;background:var(--playpilot-green);transition:width .2s}.loading-bar-label.svelte-o59195{text-align:right}@keyframes svelte-o59195-fade{0%,to{opacity:0}25%,75%{opacity:1}}.ellipses.svelte-o59195 span:where(.svelte-o59195){animation:svelte-o59195-fade 2s infinite}.ellipses.svelte-o59195 span:where(.svelte-o59195):nth-child(1){animation-delay:.2s}.ellipses.svelte-o59195 span:where(.svelte-o59195):nth-child(2){animation-delay:.4s}.ellipses.svelte-o59195 span:where(.svelte-o59195):nth-child(3){animation-delay:.6s}.dismiss.svelte-o59195{-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-o59195: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)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight]{font-weight:var(--playpilot-injection-font-weight)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-text-color]{color:var(--playpilot-injection-text-color)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-text-color-hover]:hover{color:var(--playpilot-injection-text-color-hover)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-text-decoration]{text-decoration:var(--playpilot-injection-text-decoration)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-text-decoration-hover]:hover{text-decoration:var(--playpilot-injection-text-decoration-hover)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-background-color]{background-color:var(--playpilot-injection-background-color)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-background-color-hover]:hover{background-color:var(--playpilot-injection-background-color-hover)}h1 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]),h2 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]),h3 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]),h4 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]),h5 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]){font-weight:inherit}h1 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings],h2 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings],h3 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings],h4 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings],h5 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings]{font-weight:var(--playpilot-injection-font-weight-headings)}::view-transition-old(playpilot-title-content),::view-transition-new(playpilot-title-content){height:100%}.playpilot-link-injections.svelte-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(ke);const Se=!1;var je=Array.isArray,Da=Array.prototype.indexOf,bi=Array.from,Ir=Object.defineProperty,bt=Object.getOwnPropertyDescriptor,Tn=Object.getOwnPropertyDescriptors,Pr=Object.prototype,Ar=Array.prototype,_i=Object.getPrototypeOf;function Zt(t){return typeof t=="function"}const st=()=>{};function Mr(t){return typeof(t==null?void 0:t.then)=="function"}function qr(t){return t()}function xi(t){for(var e=0;e<t.length;e++)t[e]()}function Oa(t,e,a=!1){return t===void 0?a?e():e:t}const at=2,Cn=4,fa=8,Ra=16,it=32,ha=64,Ba=128,Mt=256,Ha=512,Ye=1024,_t=2048,Fa=4096,ct=8192,Jt=16384,zn=32768,xt=65536,Lr=1<<17,En=1<<19,jn=1<<20,dt=Symbol("$state"),In=Symbol("legacy props"),wi=Symbol("");function Pn(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 Nr(t,e){return t!==e}function Si(t){return!ki(t,this.v)}function Dr(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Or(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Rr(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Br(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Hr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Fr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Vr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Wr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Ur(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Xt=!1,Gr=!1;function Kr(){Xt=!0}const Ti=1,Ci=2,An=4,Yr=8,Zr=16,Jr=1,Xr=2,Qr=4,$r=8,eo=16,to=1,ao=2,io=4,no=1,lo=2,Le=Symbol(),zi="http://www.w3.org/2000/svg";function Oe(t,e){var a={f:0,v:t,reactions:null,equals:Pn,rv:0,wv:0};return a}function W(t){return ro(Oe(t))}function Va(t,e=!1){var i;const a=Oe(t);return e||(a.equals=Si),Xt&&ge!==null&&ge.l!==null&&((i=ge.l).s??(i.s=[])).push(a),a}function ro(t){return be!==null&&be.f&at&&(vt===null?_o([t]):vt.push(t)),t}function j(t,e){return be!==null&&ia()&&be.f&(at|Ra)&&(vt===null||!vt.includes(t))&&Ur(),Qt(t,e)}function Qt(t,e){return t.equals(e)||(t.v,t.v=e,t.wv=el(),Mn(t,_t),ia()&&ve!==null&&ve.f&Ye&&!(ve.f&it)&&(He!==null&&He.includes(t)?(ut(ve,_t),Za(ve)):kt===null?xo([t]):kt.push(t))),e}function Mn(t,e){var a=t.reactions;if(a!==null)for(var i=ia(),n=a.length,l=0;l<n;l++){var o=a[l],s=o.f;s&_t||!i&&o===ve||(ut(o,e),s&(Ye|Mt)&&(s&at?Mn(o,Fa):Za(o)))}}let Ei=!1;function Th(t){}function Ch(t=1){}function $(t,e=null,a){if(typeof t!="object"||t===null||dt in t)return t;const i=_i(t);if(i!==Pr&&i!==Ar)return t;var n=new Map,l=je(t),o=Oe(0);l&&n.set("length",Oe(t.length));var s;return new Proxy(t,{defineProperty(d,c,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&Fr();var u=n.get(c);return u===void 0?(u=Oe(v.value),n.set(c,u)):j(u,$(v.value,s)),!0},deleteProperty(d,c){var v=n.get(c);if(v===void 0)c in d&&n.set(c,Oe(Le));else{if(l&&typeof c=="string"){var u=n.get("length"),p=Number(c);Number.isInteger(p)&&p<u.v&&j(u,p)}j(v,Le),qn(o)}return!0},get(d,c,v){var h;if(c===dt)return t;var u=n.get(c),p=c in d;if(u===void 0&&(!p||(h=bt(d,c))!=null&&h.writable)&&(u=Oe($(p?d[c]:Le,s)),n.set(c,u)),u!==void 0){var y=r(u);return y===Le?void 0:y}return Reflect.get(d,c,v)},getOwnPropertyDescriptor(d,c){var v=Reflect.getOwnPropertyDescriptor(d,c);if(v&&"value"in v){var u=n.get(c);u&&(v.value=r(u))}else if(v===void 0){var p=n.get(c),y=p==null?void 0:p.v;if(p!==void 0&&y!==Le)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return v},has(d,c){var y;if(c===dt)return!0;var v=n.get(c),u=v!==void 0&&v.v!==Le||Reflect.has(d,c);if(v!==void 0||ve!==null&&(!u||(y=bt(d,c))!=null&&y.writable)){v===void 0&&(v=Oe(u?$(d[c],s):Le),n.set(c,v));var p=r(v);if(p===Le)return!1}return u},set(d,c,v,u){var S;var p=n.get(c),y=c in d;if(l&&c==="length")for(var h=v;h<p.v;h+=1){var f=n.get(h+"");f!==void 0?j(f,Le):h in d&&(f=Oe(Le),n.set(h+"",f))}p===void 0?(!y||(S=bt(d,c))!=null&&S.writable)&&(p=Oe(void 0),j(p,$(v,s)),n.set(c,p)):(y=p.v!==Le,j(p,$(v,s)));var _=Reflect.getOwnPropertyDescriptor(d,c);if(_!=null&&_.set&&_.set.call(u,v),!y){if(l&&typeof c=="string"){var g=n.get("length"),b=Number(c);Number.isInteger(b)&&b>=g.v&&j(g,b+1)}qn(o)}return!0},ownKeys(d){r(o);var c=Reflect.ownKeys(d).filter(p=>{var y=n.get(p);return y===void 0||y.v!==Le});for(var[v,u]of n)u.v!==Le&&!(v in d)&&c.push(v);return c},setPrototypeOf(){Vr()}})}function qn(t,e=1){j(t,t.v+e)}function Ln(t){return t!==null&&typeof t=="object"&&dt in t?t[dt]:t}function oo(t,e){return Object.is(Ln(t),Ln(e))}var _e,Nn,Dn;function so(){if(_e===void 0){_e=window;var t=Element.prototype,e=Node.prototype;Nn=bt(e,"firstChild").get,Dn=bt(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 $t(t=""){return document.createTextNode(t)}function qt(t){return Nn.call(t)}function Wa(t){return Dn.call(t)}function x(t,e){return qt(t)}function Z(t,e){{var a=qt(t);return a instanceof Comment&&a.data===""?Wa(a):a}}function k(t,e=1,a=!1){let i=t;for(;e--;)i=Wa(i);return i}function co(t){t.textContent=""}function N(t){var e=at|_t;ve===null?e|=Mt:ve.f|=jn;var a=be!==null&&be.f&at?be:null;const i={children:null,ctx:ge,deps:null,equals:Pn,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:a??ve};return a!==null&&(a.children??(a.children=[])).push(i),i}function vo(t){const e=N(t);return e.equals=Si,e}function On(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&at?ji(i):$e(i)}}}function uo(t){for(var e=t.parent;e!==null;){if(!(e.f&at))return e;e=e.parent}return null}function Rn(t){var e,a=ve;Be(uo(t));try{On(t),e=tl(t)}finally{Be(a)}return e}function Bn(t){var e=Rn(t),a=(St||t.f&Mt)&&t.deps!==null?Fa:Ye;ut(t,a),t.equals(e)||(t.v=e,t.wv=el())}function ji(t){On(t),wa(t,0),ut(t,Jt),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Hn(t){ve===null&&be===null&&Rr(),be!==null&&be.f&Mt&&Or(),Mi&&Dr()}function po(t,e){var a=e.last;a===null?e.last=e.first=t:(a.next=t,t.prev=a,e.last=t)}function ea(t,e,a,i=!0){var n=(t&ha)!==0,l=ve,o={ctx:ge,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|_t,first:null,fn:e,last:null,next:null,parent:n?null:l,prev:null,teardown:null,transitions:null,wv:0};if(a){var s=ta;try{Xn(!0),Ya(o),o.f|=zn}catch(v){throw $e(o),v}finally{Xn(s)}}else e!==null&&Za(o);var d=a&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&jn)===0;if(!d&&!n&&i&&(l!==null&&po(o,l),be!==null&&be.f&at)){var c=be;(c.children??(c.children=[])).push(o)}return o}function fo(){return be===null?!1:!St}function Fn(t){const e=ea(fa,null,!1);return ut(e,Ye),e.teardown=t,e}function Ze(t){Hn();var e=ve!==null&&(ve.f&it)!==0&&ge!==null&&!ge.m;if(e){var a=ge;(a.e??(a.e=[])).push({fn:t,effect:ve,reaction:be})}else{var i=ft(t);return i}}function ho(t){return Hn(),ga(t)}function go(t){const e=ea(ha,t,!0);return(a={})=>new Promise(i=>{a.outro?lt(e,()=>{$e(e),i(void 0)}):($e(e),i(void 0))})}function ft(t){return ea(Cn,t,!1)}function ga(t){return ea(fa,t,!0)}function q(t){return nt(t)}function nt(t,e=0){return ea(fa|Ra|e,t,!0)}function Re(t,e=!0){return ea(fa|it,t,!0,e)}function Vn(t){var e=t.teardown;if(e!==null){const a=Mi,i=be;Qn(!0),Ge(null);try{e.call(null)}finally{Qn(a),Ge(i)}}}function Wn(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var a=0;a<e.length;a+=1)ji(e[a])}}function Un(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 mo(t){for(var e=t.first;e!==null;){var a=e.next;e.f&it||$e(e),e=a}}function $e(t,e=!0){var a=!1;if((e||t.f&En)&&t.nodes_start!==null){for(var i=t.nodes_start,n=t.nodes_end;i!==null;){var l=i===n?null:Wa(i);i.remove(),i=l}a=!0}Un(t,e&&!a),Wn(t),wa(t,0),ut(t,Jt);var o=t.transitions;if(o!==null)for(const d of o)d.stop();Vn(t);var s=t.parent;s!==null&&s.first!==null&&Gn(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Gn(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=[];Ii(t,a,!0),Kn(a,()=>{$e(t),e&&e()})}function Kn(t,e){var a=t.length;if(a>0){var i=()=>--a||e();for(var n of t)n.out(i)}else e()}function Ii(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,l=(i.f&xt)!==0||(i.f&it)!==0;Ii(i,e,l?a:!1),i=n}}}function wt(t){Yn(t,!0)}function Yn(t,e){if(t.f&ct){_a(t)&&Ya(t),t.f^=ct;for(var a=t.first;a!==null;){var i=a.next,n=(a.f&xt)!==0||(a.f&it)!==0;Yn(a,n?e:!1),a=i}if(t.transitions!==null)for(const l of t.transitions)(l.is_global||e)&&l.in()}}let Ua=!1,Pi=[];function Zn(){Ua=!1;const t=Pi.slice();Pi=[],xi(t)}function Lt(t){Ua||(Ua=!0,queueMicrotask(Zn)),Pi.push(t)}function yo(){Ua&&Zn()}function Ai(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}const Jn=0,bo=1;let ma=!1,Ga=Jn,ya=!1,ba=null,ta=!1,Mi=!1;function Xn(t){ta=t}function Qn(t){Mi=t}let Nt=[],aa=0,zh=[],be=null;function Ge(t){be=t}let ve=null;function Be(t){ve=t}let vt=null;function _o(t){vt=t}let He=null,Je=0,kt=null;function xo(t){kt=t}let $n=1,qi=0,St=!1,ge=null;function Ka(t){ge=t}function el(){return++$n}function ia(){return!Xt||ge!==null&&ge.l===null}function _a(t){var c;var e=t.f;if(e&_t)return!0;if(e&Fa){var a=t.deps,i=(e&Mt)!==0;if(a!==null){var n,l,o=(e&Ha)!==0,s=i&&ve!==null&&!St,d=a.length;if(o||s){for(n=0;n<d;n++)l=a[n],(o||!((c=l==null?void 0:l.reactions)!=null&&c.includes(t)))&&(l.reactions??(l.reactions=[])).push(t);o&&(t.f^=Ha)}for(n=0;n<d;n++)if(l=a[n],_a(l)&&Bn(l),l.wv>t.wv)return!0}(!i||ve!==null&&!St)&&ut(t,Ye)}return!1}function wo(t,e){for(var a=e;a!==null;){if(a.f&Ba)try{a.fn(t);return}catch{a.f^=Ba}a=a.parent}throw ma=!1,t}function ko(t){return(t.f&Jt)===0&&(t.parent===null||(t.parent.f&Ba)===0)}function Li(){ma=!1}function xa(t,e,a,i){if(ma){if(a===null&&(ma=!1),ko(e))throw t;return}a!==null&&(ma=!0);{wo(t,e);return}}function tl(t){var p;var e=He,a=Je,i=kt,n=be,l=St,o=vt,s=ge,d=t.f;He=null,Je=0,kt=null,be=d&(it|ha)?null:t,St=!ta&&(d&Mt)!==0,vt=null,ge=t.ctx,qi++;try{var c=(0,t.fn)(),v=t.deps;if(He!==null){var u;if(wa(t,Je),v!==null&&Je>0)for(v.length=Je+He.length,u=0;u<He.length;u++)v[Je+u]=He[u];else t.deps=v=He;if(!St)for(u=Je;u<v.length;u++)((p=v[u]).reactions??(p.reactions=[])).push(t)}else v!==null&&Je<v.length&&(wa(t,Je),v.length=Je);return c}finally{He=e,Je=a,kt=i,be=n,St=l,vt=o,ge=s}}function So(t,e){let a=e.reactions;if(a!==null){var i=Da.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&at&&(He===null||!He.includes(e))&&(ut(e,Fa),e.f&(Mt|Ha)||(e.f^=Ha),wa(e,0))}function wa(t,e){var a=t.deps;if(a!==null)for(var i=e;i<a.length;i++)So(t,a[i])}function Ya(t){var e=t.f;if(!(e&Jt)){ut(t,Ye);var a=ve,i=ge;ve=t;try{e&Ra?mo(t):Un(t),Wn(t),Vn(t);var n=tl(t);t.teardown=typeof n=="function"?n:null,t.wv=$n;var l=t.deps,o;Se&&Gr&&t.f&_t}catch(s){xa(s,t,a,i||t.ctx)}finally{ve=a}}}function al(){if(aa>1e3){aa=0;try{Br()}catch(t){if(ba!==null)xa(t,ba,null);else throw t}}aa++}function il(t){var e=t.length;if(e!==0){al();var a=ta;ta=!0;try{for(var i=0;i<e;i++){var n=t[i];n.f&Ye||(n.f^=Ye);var l=[];nl(n,l),To(l)}}finally{ta=a}}}function To(t){var e=t.length;if(e!==0)for(var a=0;a<e;a++){var i=t[a];if(!(i.f&(Jt|ct)))try{_a(i)&&(Ya(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?Gn(i):i.fn=null))}catch(n){xa(n,i,null,i.ctx)}}}function Co(){if(ya=!1,aa>1001)return;const t=Nt;Nt=[],il(t),ya||(aa=0,ba=null)}function Za(t){Ga===Jn&&(ya||(ya=!0,queueMicrotask(Co))),ba=t;for(var e=t;e.parent!==null;){e=e.parent;var a=e.f;if(a&(ha|it)){if(!(a&Ye))return;e.f^=Ye}}Nt.push(e)}function nl(t,e){var a=t.first,i=[];e:for(;a!==null;){var n=a.f,l=(n&it)!==0,o=l&&(n&Ye)!==0,s=a.next;if(!o&&!(n&ct))if(n&fa){if(l)a.f^=Ye;else try{_a(a)&&Ya(a)}catch(u){xa(u,a,null,a.ctx)}var d=a.first;if(d!==null){a=d;continue}}else n&Cn&&i.push(a);if(s===null){let u=a.parent;for(;u!==null;){if(t===u)break e;var c=u.next;if(c!==null){a=c;continue e}u=u.parent}}a=s}for(var v=0;v<i.length;v++)d=i[v],e.push(d),nl(d,e)}function Ni(t){var e=Ga,a=Nt;try{al();const n=[];Ga=bo,Nt=n,ya=!1,il(a);var i=t==null?void 0:t();return yo(),(Nt.length>0||n.length>0)&&Ni(),aa=0,ba=null,i}finally{Ga=e,Nt=a}}async function ka(){await Promise.resolve(),Ni()}function r(t){var v;var e=t.f,a=(e&at)!==0;if(a&&e&Jt){var i=Rn(t);return ji(t),i}if(be!==null){vt!==null&&vt.includes(t)&&Wr();var n=be.deps;t.rv<qi&&(t.rv=qi,He===null&&n!==null&&n[Je]===t?Je++:He===null?He=[t]:He.push(t),kt!==null&&ve!==null&&ve.f&Ye&&!(ve.f&it)&&kt.includes(t)&&(ut(ve,_t),Za(ve)))}else if(a&&t.deps===null)for(var l=t,o=l.parent,s=l;o!==null;)if(o.f&at){var d=o;s=d,o=d.parent}else{var c=o;(v=c.deriveds)!=null&&v.includes(s)||(c.deriveds??(c.deriveds=[])).push(s);break}return a&&(l=t,_a(l)&&Bn(l)),t.v}function Xe(t){const e=be;try{return be=null,t()}finally{be=e}}const zo=-7169;function ut(t,e){t.f=t.f&zo|e}function Di(t){return ll().get(t)}function Oi(t,e){return ll().set(t,e),e}function ll(t){return ge===null&&Ai(),ge.c??(ge.c=new Map(Eo(ge)||void 0))}function Eo(t){let e=t.p;for(;e!==null;){const a=e.c;if(a!==null)return a;e=e.p}return null}function ae(t,e=!1,a){ge={p:ge,c:null,e:null,m:!1,s:t,x:null,l:null},Xt&&!e&&(ge.l={s:null,u:null,r1:[],r2:Oe(!1)})}function ie(t){const e=ge;if(e!==null){t!==void 0&&(e.x=t);const o=e.e;if(o!==null){var a=ve,i=be;e.e=null;try{for(var n=0;n<o.length;n++){var l=o[n];Be(l.effect),Ge(l.reaction),ft(l.fn)}}finally{Be(a),Ge(i)}}ge=e.p,e.m=!0}return t||{}}function rl(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=Tn(a);for(let n in i){const l=i[n].get;if(l)try{l.call(t)}catch{}}}}}function jo(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Io=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Po(t){return Io.includes(t)}const Ao={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function Mo(t){return t=t.toLowerCase(),Ao[t]??t}const qo=["touchstart","touchmove"];function Lo(t){return qo.includes(t)}function No(t,e){if(e){const a=document.body;t.autofocus=!0,Lt(()=>{document.activeElement===a&&t.focus()})}}let ol=!1;function Do(){ol||(ol=!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);Fn(()=>{for(var l of e)t.removeEventListener(l,a)})}function Bi(t){var e=be,a=ve;Ge(null),Be(null);try{return t()}finally{Ge(e),Be(a)}}function sl(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 cl=new Set,Hi=new Set;function Fi(t,e,a,i){function n(l){if(i.capture||Sa.call(e,l),!l.cancelBubble)return Bi(()=>a.call(this,l))}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 ce(t,e,a,i,n){var l={capture:i,passive:n},o=Fi(t,e,a,l);(e===document.body||e===window||e===document)&&Fn(()=>{e.removeEventListener(t,o,l)})}function ue(t){for(var e=0;e<t.length;e++)cl.add(t[e]);for(var a of Hi)a(t)}function Sa(t){var b;var e=this,a=e.ownerDocument,i=t.type,n=((b=t.composedPath)==null?void 0:b.call(t))||[],l=n[0]||t.target,o=0,s=t.__root;if(s){var d=n.indexOf(s);if(d!==-1&&(e===document||e===window)){t.__root=e;return}var c=n.indexOf(e);if(c===-1)return;d<=c&&(o=d)}if(l=n[o]||t.target,l!==e){Ir(t,"currentTarget",{configurable:!0,get(){return l||a}});var v=be,u=ve;Ge(null),Be(null);try{for(var p,y=[];l!==null;){var h=l.assignedSlot||l.parentNode||l.host||null;try{var f=l["__"+i];if(f!==void 0&&!l.disabled)if(je(f)){var[_,...g]=f;_.apply(l,[t,...g])}else f.call(l,t)}catch(S){p?y.push(S):p=S}if(t.cancelBubble||h===e||h===null)break;l=h}if(p){for(let S of y)queueMicrotask(()=>{throw S});throw p}}finally{t.__root=e,delete t.currentTarget,Ge(v),Be(u)}}}function Bo(t){var e;e=document.head.appendChild($t());try{nt(()=>t(e),En)}finally{}}function Vi(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Dt(t,e){var a=ve;a.nodes_start===null&&(a.nodes_start=t,a.nodes_end=e)}function T(t,e){var a=(e&no)!==0,i=(e&lo)!==0,n,l=!t.startsWith("<!>");return()=>{n===void 0&&(n=Vi(l?t:"<!>"+t),a||(n=qt(n)));var o=i?document.importNode(n,!0):n.cloneNode(!0);if(a){var s=qt(o),d=o.lastChild;Dt(s,d)}else Dt(o,o);return o}}function Ie(t,e,a="svg"){var i=!t.startsWith("<!>"),n=`<${a}>${i?t:"<!>"+t}</${a}>`,l;return()=>{if(!l){var o=Vi(n),s=qt(o);l=qt(s)}var d=l.cloneNode(!0);return Dt(d,d),d}}function Me(t=""){{var e=$t(t+"");return Dt(e,e),e}}function he(){var t=document.createDocumentFragment(),e=document.createComment(""),a=$t();return t.append(e,a),Dt(e,a),t}function m(t,e){t!==null&&t.before(e)}let Ja=!0;function dl(t){Ja=t}function K(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 na=new Map;function Ho(t,{target:e,anchor:a,props:i={},events:n,context:l,intro:o=!0}){so();var s=new Set,d=u=>{for(var p=0;p<u.length;p++){var y=u[p];if(!s.has(y)){s.add(y);var h=Lo(y);e.addEventListener(y,Sa,{passive:h});var f=na.get(y);f===void 0?(document.addEventListener(y,Sa,{passive:h}),na.set(y,1)):na.set(y,f+1)}}};d(bi(cl)),Hi.add(d);var c=void 0,v=go(()=>{var u=a??e.appendChild($t());return Re(()=>{if(l){ae({});var p=ge;p.c=l}n&&(i.$$events=n),Ja=o,c=t(u,i)||{},Ja=!0,l&&ie()}),()=>{var h;for(var p of s){e.removeEventListener(p,Sa);var y=na.get(p);--y===0?(document.removeEventListener(p,Sa),na.delete(p)):na.set(p,y)}Hi.delete(d),u!==a&&((h=u.parentNode)==null||h.removeChild(u))}});return Wi.set(c,v),c}let Wi=new WeakMap;function Ot(t,e){const a=Wi.get(t);return a?(Wi.delete(t),a(e)):Promise.resolve()}const Ui=0,Xa=1,Gi=2;function Qa(t,e,a,i,n){var l=t,o=ia(),s=ge,d=Le,c,v,u,p=(o?Oe:Va)(void 0),y=(o?Oe:Va)(void 0),h=!1;function f(g,b){h=!0,b&&(Be(_),Ge(_),Ka(s));try{g===Ui&&a&&(c?wt(c):c=Re(()=>a(l))),g===Xa&&i&&(v?wt(v):v=Re(()=>i(l,p))),g===Gi&&n&&(u?wt(u):u=Re(()=>n(l,y))),g!==Ui&&c&<(c,()=>c=null),g!==Xa&&v&<(v,()=>v=null),g!==Gi&&u&<(u,()=>u=null)}finally{b&&(Ka(null),Ge(null),Be(null),Ni())}}var _=nt(()=>{if(d!==(d=e())){if(Mr(d)){var g=d;h=!1,g.then(b=>{g===d&&(Qt(p,b),f(Xa,!0))},b=>{if(g===d&&(Qt(y,b),f(Gi,!0),!n))throw y.v}),Lt(()=>{h||f(Ui,!0)})}else Qt(p,d),f(Xa,!1);return()=>d=Le}})}function O(t,e,a=!1){var i=t,n=null,l=null,o=Le,s=a?xt:0,d=!1;const c=(u,p=!0)=>{d=!0,v(p,u)},v=(u,p)=>{o!==(o=u)&&(o?(n?wt(n):p&&(n=Re(()=>p(i))),l&<(l,()=>{l=null})):(l?wt(l):p&&(l=Re(()=>p(i))),n&<(n,()=>{n=null})))};nt(()=>{d=!1,e(c),d||v(null,null)},s)}function la(t,e,a){var i=t,n=Le,l,o=ia()?Nr:ki;nt(()=>{o(n,n=e())&&(l&<(l),l=Re(()=>a(i)))})}let Rt=null;function vl(t){Rt=t}function Pe(t,e){return e}function Fo(t,e,a,i){for(var n=[],l=e.length,o=0;o<l;o++)Ii(e[o].e,n,!0);var s=l>0&&n.length===0&&a!==null;if(s){var d=a.parentNode;co(d),d.append(a),i.clear(),Tt(t,e[0].prev,e[l-1].next)}Kn(n,()=>{for(var c=0;c<l;c++){var v=e[c];s||(i.delete(v.k),Tt(t,v.prev,v.next)),$e(v.e,!s)}})}function ze(t,e,a,i,n,l=null){var o=t,s={flags:e,items:new Map,first:null},d=(e&An)!==0;if(d){var c=t;o=c.appendChild($t())}var v=null,u=!1;nt(()=>{var p=a(),y=je(p)?p:p==null?[]:bi(p),h=y.length;if(!(u&&h===0)){u=h===0;{var f=be;Vo(y,s,o,n,e,(f.f&ct)!==0,i)}l!==null&&(h===0?v?wt(v):v=Re(()=>l(o)):v!==null&<(v,()=>{v=null})),a()}})}function Vo(t,e,a,i,n,l,o,s){var D,I,F,Q;var d=(n&Yr)!==0,c=(n&(Ti|Ci))!==0,v=t.length,u=e.items,p=e.first,y=p,h,f=null,_,g=[],b=[],S,E,C,A;if(d)for(A=0;A<v;A+=1)S=t[A],E=o(S,A),C=u.get(E),C!==void 0&&((D=C.a)==null||D.measure(),(_??(_=new Set)).add(C));for(A=0;A<v;A+=1){if(S=t[A],E=o(S,A),C=u.get(E),C===void 0){var V=y?y.e.nodes_start:a;f=Uo(V,e,f,f===null?e.first:f.next,S,E,A,i,n),u.set(E,f),g=[],b=[],y=f.next;continue}if(c&&Wo(C,S,A,n),C.e.f&ct&&(wt(C.e),d&&((I=C.a)==null||I.unfix(),(_??(_=new Set)).delete(C))),C!==y){if(h!==void 0&&h.has(C)){if(g.length<b.length){var M=b[0],z;f=M.prev;var P=g[0],H=g[g.length-1];for(z=0;z<g.length;z+=1)ul(g[z],M,a);for(z=0;z<b.length;z+=1)h.delete(b[z]);Tt(e,P.prev,H.next),Tt(e,f,P),Tt(e,H,M),y=M,f=H,A-=1,g=[],b=[]}else h.delete(C),ul(C,y,a),Tt(e,C.prev,C.next),Tt(e,C,f===null?e.first:f.next),Tt(e,f,C),f=C;continue}for(g=[],b=[];y!==null&&y.k!==E;)(l||!(y.e.f&ct))&&(h??(h=new Set)).add(y),b.push(y),y=y.next;if(y===null)continue;C=y}g.push(C),f=C,y=C.next}if(y!==null||h!==void 0){for(var U=h===void 0?[]:bi(h);y!==null;)(l||!(y.e.f&ct))&&U.push(y),y=y.next;var R=U.length;if(R>0){var G=n&An&&v===0?a:null;if(d){for(A=0;A<R;A+=1)(F=U[A].a)==null||F.measure();for(A=0;A<R;A+=1)(Q=U[A].a)==null||Q.fix()}Fo(e,U,G,u)}}d&&Lt(()=>{var X;if(_!==void 0)for(C of _)(X=C.a)==null||X.apply()}),ve.first=e.first&&e.first.e,ve.last=f&&f.e}function Wo(t,e,a,i){i&Ti&&Qt(t.v,e),i&Ci?Qt(t.i,a):t.i=a}function Uo(t,e,a,i,n,l,o,s,d,c){var v=Rt,u=(d&Ti)!==0,p=(d&Zr)===0,y=u?p?Va(n):Oe(n):n,h=d&Ci?Oe(o):o,f={i:h,v:y,k:l,a:null,e:null,prev:a,next:i};Rt=f;try{return f.e=Re(()=>s(t,y,h),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 ul(t,e,a){for(var i=t.next?t.next.e.nodes_start:a,n=e?e.e.nodes_start:a,l=t.e.nodes_start;l!==i;){var o=Wa(l);n.before(l),l=o}}function Tt(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 l=t,o="",s;nt(()=>{o!==(o=e()??"")&&(s!==void 0&&($e(s),s=void 0),o!==""&&(s=Re(()=>{var d=o+"",c=Vi(d);Dt(qt(c),c.lastChild),l.before(c)})))})}function qe(t,e,...a){var i=t,n=st,l;nt(()=>{n!==(n=e())&&(l&&($e(l),l=null),l=Re(()=>n(i,...a)))},xt)}function pl(t,e,a){var i=t,n,l;nt(()=>{n!==(n=e())&&(l&&(lt(l),l=null),n&&(l=Re(()=>a(i,n))))},xt)}function fl(t,e,a,i,n,l){var o,s,d=null,c=t,v,u=Rt;nt(()=>{const p=e()||null;var y=p==="svg"?zi:null;if(p!==o){var h=Rt;vl(u),v&&(p===null?lt(v,()=>{v=null,s=null}):p===s?wt(v):($e(v),dl(!1))),p&&p!==s&&(v=Re(()=>{if(d=y?document.createElementNS(y,p):document.createElement(p),Dt(d,d),i){var f=d.appendChild($t());i(d,f)}ve.nodes_end=d,c.before(d)})),o=p,o&&(s=o),dl(!0),vl(h)}},xt)}function et(t,e,a){ft(()=>{var i=Xe(()=>e(t,a==null?void 0:a())||{});if(a&&(i!=null&&i.update)){var n=!1,l={};ga(()=>{var o=a();rl(o),n&&ki(l,o)&&(l=o,i.update(o))}),n=!0}if(i!=null&&i.destroy)return()=>i.destroy()})}function hl(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=hl(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=hl(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"&&yl(t).includes(e)?t[e]=a:t.setAttribute(e,a))}function gl(t,e,a,i,n=!1,l=!1,o=!1){var s=e||{},d=t.tagName==="OPTION";for(var c in e)c in a||(a[c]=null);a.class&&(a.class=Yo(a.class)),i!==void 0&&(a.class=a.class?a.class+" "+i:i);var v=yl(t),u=t.__attributes??(t.__attributes={});for(const g in a){let b=a[g];if(d&&g==="value"&&b==null){t.value=t.__value="",s[g]=b;continue}var p=s[g];if(b!==p){s[g]=b;var y=g[0]+g[1];if(y!=="$$"){if(y==="on"){const S={},E="$$"+g;let C=g.slice(2);var h=Po(C);if(jo(C)&&(C=C.slice(0,-7),S.capture=!0),!h&&p){if(b!=null)continue;t.removeEventListener(C,s[E],S),s[E]=null}if(b!=null)if(h)t[`__${C}`]=b,ue([C]);else{let A=function(V){s[g].call(this,V)};s[E]=Fi(C,t,A,S)}else h&&(t[`__${C}`]=void 0)}else if(g==="style"&&b!=null)t.style.cssText=b+"";else if(g==="autofocus")No(t,!!b);else if(g==="__value"||g==="value"&&b!=null)t.value=t[g]=t.__value=b;else if(g==="selected"&&d)Zo(t,b);else{var f=g;n||(f=Mo(f));var _=f==="defaultValue"||f==="defaultChecked";if(b==null&&!l&&!_)if(u[g]=null,f==="value"||f==="checked"){let S=t;if(f==="value"){let E=S.defaultValue;S.removeAttribute(f),S.defaultValue=E}else{let E=S.defaultChecked;S.removeAttribute(f),S.defaultChecked=E}}else t.removeAttribute(g);else _||v.includes(f)&&(l||typeof b!="string")?t[f]=b:typeof b!="function"&&le(t,f,b)}g==="style"&&"__styles"in t&&(t.__styles={})}}}return s}var ml=new Map;function yl(t){var e=ml.get(t.nodeName);if(e)return e;ml.set(t.nodeName,e=[]);for(var a,i=t,n=Element.prototype;n!==i;){a=Tn(i);for(var l in a)a[l].set&&e.push(l);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=bl(e);(i!==n||Ei)&&(n===""?t.removeAttribute("class"):t.setAttribute("class",n),t.__className=n)}function Ta(t,e,a){var i=t.__className,n=bl(e);(i!==n||Ei)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function bl(t,e){return(t??"")+""}function se(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(),ht={tick:t=>requestAnimationFrame(t),now:()=>Qo(),tasks:new Set};function _l(){const t=ht.now();ht.tasks.forEach(e=>{e.c(t)||(ht.tasks.delete(e),e.f())}),ht.tasks.size!==0&&ht.tick(_l)}function $o(t){let e;return ht.tasks.size===0&&ht.tick(_l),{promise:new Promise(a=>{ht.tasks.add(e={c:t,f:a})}),abort(){ht.tasks.delete(e)}}}function $a(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 xl(t){const e={},a=t.split(";");for(const i of a){const[n,l]=i.split(":");if(!n||l===void 0)break;const o=es(n.trim());e[o]=l.trim()}return e}const ts=t=>t;function as(t,e,a){var i=Rt,n,l,o,s=null;i.a??(i.a={element:t,measure(){n=this.element.getBoundingClientRect()},apply(){if(o==null||o.abort(),l=this.element.getBoundingClientRect(),n.left!==l.left||n.right!==l.right||n.top!==l.top||n.bottom!==l.bottom){const d=e()(this.element,{from:n,to:l},a==null?void 0:a());o=ei(this.element,d,void 0,1,()=>{o==null||o.abort(),o=void 0})}},fix(){if(!t.getAnimations().length){var{position:d,width:c,height:v}=getComputedStyle(t);if(d!=="absolute"&&d!=="fixed"){var u=t.style;s={position:u.position,width:u.width,height:u.height,transform:u.transform},u.position="absolute",u.width=c,u.height=v;var p=t.getBoundingClientRect();if(n.left!==p.left||n.top!==p.top){var y=`translate(${n.left-p.left}px, ${n.top-p.top}px)`;u.transform=u.transform?`${u.transform} ${y}`:y}}}},unfix(){if(s){var d=t.style;d.position=s.position,d.width=s.width,d.height=s.height,d.transform=s.transform}}}),i.a.element=t}function Te(t,e,a,i){var n=(t&to)!==0,l=(t&ao)!==0,o=n&&l,s=(t&io)!==0,d=o?"both":n?"in":"out",c,v=e.inert,u,p;function y(){var b=be,S=ve;Ge(null),Be(null);try{return c??(c=a()(e,(i==null?void 0:i())??{},{direction:d}))}finally{Ge(b),Be(S)}}var h={is_global:s,in(){var b;if(e.inert=v,!n){p==null||p.abort(),(b=p==null?void 0:p.reset)==null||b.call(p);return}l||u==null||u.abort(),$a(e,"introstart"),u=ei(e,y(),p,1,()=>{$a(e,"introend"),u==null||u.abort(),u=c=void 0})},out(b){if(!l){b==null||b(),c=void 0;return}e.inert=!0,$a(e,"outrostart"),p=ei(e,y(),u,0,()=>{$a(e,"outroend"),b==null||b()})},stop:()=>{u==null||u.abort(),p==null||p.abort()}},f=ve;if((f.transitions??(f.transitions=[])).push(h),n&&Ja){var _=s;if(!_){for(var g=f.parent;g&&g.f&xt;)for(;(g=g.parent)&&!(g.f&Ra););_=!g||(g.f&zn)!==0}_&&ft(()=>{Xe(()=>h.in())})}}function ei(t,e,a,i,n){var l=i===1;if(Zt(e)){var o,s=!1;return Lt(()=>{if(!s){var _=e({direction:l?"in":"out"});o=ei(t,_,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:d=0,css:c,tick:v,easing:u=ts}=e;var p=[];if(l&&a===void 0&&(v&&v(0,1),c)){var y=xl(c(0,1));p.push(y,y)}var h=()=>1-i,f=t.animate(p,{duration:d});return f.onfinish=()=>{var _=(a==null?void 0:a.t())??1-i;a==null||a.abort();var g=i-_,b=e.duration*Math.abs(g),S=[];if(b>0){if(c)for(var E=Math.ceil(b/16.666666666666668),C=0;C<=E;C+=1){var A=_+g*u(C/E),V=c(A,1-A);S.push(xl(V))}h=()=>{var M=f.currentTime;return _+g*u(M/b)},v&&$o(()=>{if(f.playState!=="running")return!1;var M=h();return v(M,1-M),!0})}f=t.animate(S,{duration:b,fill:"forwards"}),f.onfinish=()=>{h=()=>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:()=>h()}}function Ca(t,e,a=e){var i=ia();sl(t,"input",n=>{var l=n?t.defaultValue:t.value;if(l=Ki(t)?Yi(l):l,a(l),i&&l!==(l=e())){var o=t.selectionStart,s=t.selectionEnd;t.value=l??"",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),ga(()=>{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 wl(t,e,a){if(t.multiple)return ls(t,e);for(var i of t.options){var n=za(i);if(oo(n,e)){i.selected=!0;return}}(!a||e!==void 0)&&(t.selectedIndex=-1)}function is(t,e){ft(()=>{var a=new MutationObserver(()=>{var i=t.__value;wl(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;sl(t,"change",n=>{var l=n?"[selected]":":checked",o;if(t.multiple)o=[].map.call(t.querySelectorAll(l),za);else{var s=t.querySelector(l)??t.querySelector("option:not([disabled])");o=s&&za(s)}a(o)}),ft(()=>{var n=e();if(wl(t,n,i),i&&n===void 0){var l=t.querySelector(":checked");l!==null&&(n=za(l),a(n))}t.__value=n,i=!1}),is(t)}function ls(t,e){for(var a of t.options)a.selected=~e.indexOf(za(a))}function za(t){return"__value"in t?t.__value:t.value}const mi=class mi{constructor(e){Yt(this,gi);Yt(this,Pt,new WeakMap);Yt(this,ua);Yt(this,Ma);Na(this,Ma,e)}observe(e,a){var i=ot(this,Pt).get(e)||new Set;return i.add(a),ot(this,Pt).set(e,i),Er(this,gi,jr).call(this).observe(e,ot(this,Ma)),()=>{var n=ot(this,Pt).get(e);n.delete(a),n.size===0&&(ot(this,Pt).delete(e),ot(this,ua).unobserve(e))}}};Pt=new WeakMap,ua=new WeakMap,Ma=new WeakMap,gi=new WeakSet,jr=function(){return ot(this,ua)??Na(this,ua,new ResizeObserver(e=>{for(var a of e){mi.entries.set(a.target,a);for(var i of ot(this,Pt).get(a.target)||[])i(a)}}))},zr(mi,"entries",new WeakMap);let Zi=mi;var rs=new Zi({box:"border-box"});function Bt(t,e,a){var i=rs.observe(t,()=>a(t[e]));ft(()=>(Xe(()=>a(t[e])),i))}function kl(t,e){return t===e||(t==null?void 0:t[dt])===e}function Qe(t={},e,a,i){return ft(()=>{var n,l;return ga(()=>{n=l,l=[],Xe(()=>{t!==a(...l)&&(e(t,...l),n&&kl(a(...n),t)&&e(null,...n))})}),()=>{Lt(()=>{l&&kl(a(...l),t)&&e(null,...l)})}}),t}function Sl(t,e){Oo(window,["resize"],()=>Bi(()=>e(window[t])))}function Ji(t=!1){const e=ge,a=e.l.u;if(!a)return;let i=()=>rl(e.s);if(t){let n=0,l={};const o=N(()=>{let s=!1;const d=e.s;for(const c in d)d[c]!==l[c]&&(l[c]=d[c],s=!0);return s&&n++,n});i=()=>r(o)}a.b.length&&ho(()=>{Tl(e,i),xi(a.b)}),Ze(()=>{const n=Xe(()=>a.m.map(qr));return()=>{for(const l of n)typeof l=="function"&&l()}}),a.a.length&&Ze(()=>{Tl(e,i),xi(a.a)})}function Tl(t,e){if(t.l.s)for(const a of t.l.s)r(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(Zt(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];Zt(n)&&(n=n());const l=bt(n,e);if(l&&l.set)return l.set(a),!0}return!1},getOwnPropertyDescriptor(t,e){let a=t.props.length;for(;a--;){let i=t.props[a];if(Zt(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i){const n=bt(i,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===dt||e===In)return!1;for(let a of t.props)if(Zt(a)&&(a=a()),a!=null&&e in a)return!0;return!1},ownKeys(t){const e=[];for(let a of t.props){Zt(a)&&(a=a());for(const i in a)e.includes(i)||e.push(i)}return e}};function Cl(...t){return new Proxy({props:t},ds)}function zl(t){for(var e=ve,a=ve;e!==null&&!(e.f&(it|ha));)e=e.parent;try{return Be(e),t()}finally{Be(a)}}function L(t,e,a,i){var V;var n=(a&Jr)!==0,l=!Xt||(a&Xr)!==0,o=(a&$r)!==0,s=(a&eo)!==0,d=!1,c;o?[c,d]=os(()=>t[e]):c=t[e];var v=dt in t||In in t,u=o&&(((V=bt(t,e))==null?void 0:V.set)??(v&&e in t&&(M=>t[e]=M)))||void 0,p=i,y=!0,h=!1,f=()=>(h=!0,y&&(y=!1,s?p=Xe(i):p=i),p);c===void 0&&i!==void 0&&(u&&l&&Hr(),c=f(),u&&u(c));var _;if(l)_=()=>{var M=t[e];return M===void 0?f():(y=!0,h=!1,M)};else{var g=zl(()=>(n?N:vo)(()=>t[e]));g.f|=Lr,_=()=>{var M=r(g);return M!==void 0&&(p=void 0),M===void 0?p:M}}if(!(a&Qr))return _;if(u){var b=t.$$legacy;return function(M,z){return arguments.length>0?((!l||!z||b||d)&&u(z?_():M),M):_()}}var S=!1,E=!1,C=Va(c),A=zl(()=>N(()=>{var M=_(),z=r(C);return S?(S=!1,E=!0,z):(E=!1,C.v=M)}));return n||(A.equals=Si),function(M,z){if(arguments.length>0){const P=z?r(A):l&&o?$(M):M;return A.equals(P)||(S=!0,j(C,P),h&&p!==void 0&&(p=P),Xe(()=>r(A))),M}return r(A)}}function El(t,e){var a=ve,i=be,n=ge;Be(t),Ge(t),Ka(t.ctx);try{e()}finally{Be(a),Ge(i),Ka(n)}}function vs(t,e,a){var i=t,n;nt(()=>{var l=ve,o=!1;l.fn=s=>{var d=e.onerror;let c=e.failed;if(!d&&!c||o)throw s;var v=()=>{lt(n),El(l,()=>{o=!1,n=Re(()=>a(i)),Li()})};d==null||d(s,v),n&&$e(n),Lt(()=>{El(l,()=>{o=!0;try{n=Re(()=>{c(i,()=>s,()=>v)})}catch(u){xa(u,l,null,l.ctx)}Li(),o=!1})})},n=Re(()=>a(i)),Li()},xt|Ba)}function Fe(t){ge===null&&Ai(),Xt&&ge.l!==null?us(ge).m.push(t):Ze(()=>{const e=Xe(t);if(typeof e=="function")return e})}function Xi(t){ge===null&&Ai(),Fe(()=>()=>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 Ct(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const pe=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",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search"});function jl(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 Il="https://www.playpilot.com",fs="https://partner-api.playpilot.tech/1.0.0",hs="https://img-external.playpilot.tech",Qi="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}const gs="https://insights.playpilot.net";async function fe(t,e=null,a={}){var n,l,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_sid:e.sid,title_type:e.type,providers:[...new Set(((n=e.providers)==null?void 0:n.map(d=>d.name))||[])],...a}),a.version="6.0.0-beta.explore.21",a.url=Ht(),a.organization_sid=(l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid,a.domain_sid=(o=window.PlayPilotLinkInjections)==null?void 0:o.domain_sid,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||[])fe(t,e,a);window.PlayPilotLinkInjections.queued_tracking_events=[]}}const $i={};async function gt(t,{headers:e={},method:a="GET",body:i=null}={}){const n=!ii()&&a==="GET";if(n&&t in $i)return $i[t];const l=a==="GET"?{}:{"Content-Type":"application/json"},o=await fetch(fs+t,{method:a,headers:new Headers({...l,...e}),body:i?JSON.stringify(i):null});if(!(o!=null&&o.ok))throw o;const s=await o.text();let d=s;try{s&&(d=JSON.parse(s))}catch{}return n&&($i[t]=d),d}const en="EncryptedToken",Pl="articleReplacementEditToken",Al="playpilot-editorial-mode";async function Ml(t=window.location.href){try{const e=Ct();if(!e)throw new Error("No token was provided");const a=tn(t);if(!a)throw new Error("Could not be authenticated");return await gt(`/external-pages/edit-authorization?api-token=${e}`,{method:"POST",body:{private_token:a}}),xs(a),!0}catch(e){console.error(e),fe(pe.AuthFailed)}finally{Ss()}return!1}function tn(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 l=new URL(t).searchParams.get(Pl);if(l)return decodeURI(l)}return((n=("; "+document.cookie).split(`; ${en}=`).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=en+"="+t+";"+i+";path=/"}function ws(){document.cookie=en+"=; 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(Al)==="true"||!!t}function ks(){const t=new URL(window.location.href);t.searchParams.set(Al,"true"),window.history.replaceState({},"",t)}function Ss(){const t=new URL(window.location.href);t.searchParams.delete(Pl),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 ql(){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"},"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 Ce(t,e=Ll()){var a;return((a=Cs[t])==null?void 0:a[e])||t}function Ll(){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 l=e.find(o=>o.toLowerCase().startsWith(a+"-"));if(l)return l}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 an(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Nl(t,e,a=[]){var l,o;const i=document.createTreeWalker(e);let n;for(;(n=i.nextNode())&&!((l=n.nodeValue)!=null&&l.includes(t)&&!a.includes(((o=n.parentNode)==null?void 0:o.nodeName)||"")););return n}function Dl(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Is(t,e,a,i){const n=js(e),l=an(e),o=t.slice(0,i),s=t.slice(i),d=/[-/\\^$*+?.()|[\]{}]/g,c=new RegExp(`${l.replace(d,"\\$&")}|${n.replace(d,"\\$&")}`),v=s.replace(c,a);return o+v}function Ps(t,e,a,i){return t.substring(0,a)+e+t.substring(i)}function tt(t){return an(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function Ol(t,e,a){const n=t.indexOf(e),l=Math.floor((a-e.length)/2);let o=Math.max(0,n-l),s=o+a;s>t.length&&(s=t.length,o=Math.max(0,s-a));let d=t.slice(o,s).trim();return o>0&&(d="…"+d),s<t.length&&(d+="…"),d}function Rl(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),l=Bl(i.innerText.slice(0,e+n)),o=i.innerText.slice(a+n),s=Bl(Hl(l,2)),d=Hl(o,2);return{before:s,after:d}}function Bl(t){return t.split("").reverse().join("")}function Hl(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 l=e?t.indexOf(e,n):n;if(l===-1&&e)break;const o=e?l+e.length:l,s=a?t.indexOf(a,o):t.length;if(a&&s===-1)break;const d=t.slice(o,s);i.push({match:d,index:o}),n=a?s+a.length:t.length+1}return i}function Ms(t,e,a,i){const l=As(t,a,i).filter(({match:s})=>an(s).includes(e));return l.length?l.reduce((s,d)=>!s||d.match.length<s.match.length?d:s):null}function qs(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=[],l=Ns(e);let o=i.indexOf(t);for(;o!==-1;)Es(o,l)&&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,l=!1,o=0;for(let s=0;s<a.length;s++){const d=a[s];if(!n&&!i&&d==="<"){i=!0,l&&(e.push({start:o,end:s}),l=!1);continue}if(i&&d==='"'&&(n=!n),i&&!n&&d===">"){i=!1;continue}!i&&!n&&!l&&(o=s,l=!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,"\\$&"),l=new RegExp(`([${i}])${n}([${i}])`),o=e.match(l);return o!=null&&o.index?o.index+1:-1}catch{return-1}}function Fl(t){return t.ctrlKey||t.metaKey||t.button!==0}async function Os(){if(!zt("ads"))return[];const t=Ct();if(!t)throw new Error("No token was provided");try{return await gt(`/ads/browse/?api-token=${t}`)}catch(e){throw fe(pe.AdsFetchFailed,null,{status:e.status}),e}}function Ea(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,extra_info:{category:"SVOD"}}}const Bs=t=>t;function nn(t){const e=t-1;return e*e*e+1}function Vl(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function mt(t,{delay:e=0,duration:a=400,easing:i=Bs}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:a,easing:i,css:l=>`opacity: ${l*n}`}}function oa(t,{delay:e=0,duration:a=400,easing:i=nn,x:n=0,y:l=0,opacity:o=0}={}){const s=getComputedStyle(t),d=+s.opacity,c=s.transform==="none"?"":s.transform,v=d*(1-o),[u,p]=Vl(n),[y,h]=Vl(l);return{delay:e,duration:a,easing:i,css:(f,_)=>`
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(ke);const Se=!1;var je=Array.isArray,Da=Array.prototype.indexOf,bi=Array.from,Ir=Object.defineProperty,bt=Object.getOwnPropertyDescriptor,Tn=Object.getOwnPropertyDescriptors,Pr=Object.prototype,Ar=Array.prototype,_i=Object.getPrototypeOf;function Zt(t){return typeof t=="function"}const st=()=>{};function Mr(t){return typeof(t==null?void 0:t.then)=="function"}function qr(t){return t()}function xi(t){for(var e=0;e<t.length;e++)t[e]()}function Oa(t,e,a=!1){return t===void 0?a?e():e:t}const at=2,Cn=4,fa=8,Ra=16,it=32,ha=64,Ba=128,Mt=256,Ha=512,Ye=1024,_t=2048,Fa=4096,ct=8192,Jt=16384,zn=32768,xt=65536,Lr=1<<17,En=1<<19,jn=1<<20,dt=Symbol("$state"),In=Symbol("legacy props"),wi=Symbol("");function Pn(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 Nr(t,e){return t!==e}function Si(t){return!ki(t,this.v)}function Dr(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Or(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Rr(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Br(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Hr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Fr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Vr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Wr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Ur(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Xt=!1,Gr=!1;function Kr(){Xt=!0}const Ti=1,Ci=2,An=4,Yr=8,Zr=16,Jr=1,Xr=2,Qr=4,$r=8,eo=16,to=1,ao=2,io=4,no=1,lo=2,Le=Symbol(),zi="http://www.w3.org/2000/svg";function Oe(t,e){var a={f:0,v:t,reactions:null,equals:Pn,rv:0,wv:0};return a}function W(t){return ro(Oe(t))}function Va(t,e=!1){var i;const a=Oe(t);return e||(a.equals=Si),Xt&&ge!==null&&ge.l!==null&&((i=ge.l).s??(i.s=[])).push(a),a}function ro(t){return be!==null&&be.f&at&&(vt===null?_o([t]):vt.push(t)),t}function j(t,e){return be!==null&&ia()&&be.f&(at|Ra)&&(vt===null||!vt.includes(t))&&Ur(),Qt(t,e)}function Qt(t,e){return t.equals(e)||(t.v,t.v=e,t.wv=el(),Mn(t,_t),ia()&&ve!==null&&ve.f&Ye&&!(ve.f&it)&&(He!==null&&He.includes(t)?(ut(ve,_t),Za(ve)):kt===null?xo([t]):kt.push(t))),e}function Mn(t,e){var a=t.reactions;if(a!==null)for(var i=ia(),n=a.length,l=0;l<n;l++){var o=a[l],s=o.f;s&_t||!i&&o===ve||(ut(o,e),s&(Ye|Mt)&&(s&at?Mn(o,Fa):Za(o)))}}let Ei=!1;function Th(t){}function Ch(t=1){}function $(t,e=null,a){if(typeof t!="object"||t===null||dt in t)return t;const i=_i(t);if(i!==Pr&&i!==Ar)return t;var n=new Map,l=je(t),o=Oe(0);l&&n.set("length",Oe(t.length));var s;return new Proxy(t,{defineProperty(d,c,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&Fr();var u=n.get(c);return u===void 0?(u=Oe(v.value),n.set(c,u)):j(u,$(v.value,s)),!0},deleteProperty(d,c){var v=n.get(c);if(v===void 0)c in d&&n.set(c,Oe(Le));else{if(l&&typeof c=="string"){var u=n.get("length"),p=Number(c);Number.isInteger(p)&&p<u.v&&j(u,p)}j(v,Le),qn(o)}return!0},get(d,c,v){var h;if(c===dt)return t;var u=n.get(c),p=c in d;if(u===void 0&&(!p||(h=bt(d,c))!=null&&h.writable)&&(u=Oe($(p?d[c]:Le,s)),n.set(c,u)),u!==void 0){var y=r(u);return y===Le?void 0:y}return Reflect.get(d,c,v)},getOwnPropertyDescriptor(d,c){var v=Reflect.getOwnPropertyDescriptor(d,c);if(v&&"value"in v){var u=n.get(c);u&&(v.value=r(u))}else if(v===void 0){var p=n.get(c),y=p==null?void 0:p.v;if(p!==void 0&&y!==Le)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return v},has(d,c){var y;if(c===dt)return!0;var v=n.get(c),u=v!==void 0&&v.v!==Le||Reflect.has(d,c);if(v!==void 0||ve!==null&&(!u||(y=bt(d,c))!=null&&y.writable)){v===void 0&&(v=Oe(u?$(d[c],s):Le),n.set(c,v));var p=r(v);if(p===Le)return!1}return u},set(d,c,v,u){var S;var p=n.get(c),y=c in d;if(l&&c==="length")for(var h=v;h<p.v;h+=1){var f=n.get(h+"");f!==void 0?j(f,Le):h in d&&(f=Oe(Le),n.set(h+"",f))}p===void 0?(!y||(S=bt(d,c))!=null&&S.writable)&&(p=Oe(void 0),j(p,$(v,s)),n.set(c,p)):(y=p.v!==Le,j(p,$(v,s)));var _=Reflect.getOwnPropertyDescriptor(d,c);if(_!=null&&_.set&&_.set.call(u,v),!y){if(l&&typeof c=="string"){var g=n.get("length"),b=Number(c);Number.isInteger(b)&&b>=g.v&&j(g,b+1)}qn(o)}return!0},ownKeys(d){r(o);var c=Reflect.ownKeys(d).filter(p=>{var y=n.get(p);return y===void 0||y.v!==Le});for(var[v,u]of n)u.v!==Le&&!(v in d)&&c.push(v);return c},setPrototypeOf(){Vr()}})}function qn(t,e=1){j(t,t.v+e)}function Ln(t){return t!==null&&typeof t=="object"&&dt in t?t[dt]:t}function oo(t,e){return Object.is(Ln(t),Ln(e))}var _e,Nn,Dn;function so(){if(_e===void 0){_e=window;var t=Element.prototype,e=Node.prototype;Nn=bt(e,"firstChild").get,Dn=bt(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 $t(t=""){return document.createTextNode(t)}function qt(t){return Nn.call(t)}function Wa(t){return Dn.call(t)}function x(t,e){return qt(t)}function Z(t,e){{var a=qt(t);return a instanceof Comment&&a.data===""?Wa(a):a}}function k(t,e=1,a=!1){let i=t;for(;e--;)i=Wa(i);return i}function co(t){t.textContent=""}function N(t){var e=at|_t;ve===null?e|=Mt:ve.f|=jn;var a=be!==null&&be.f&at?be:null;const i={children:null,ctx:ge,deps:null,equals:Pn,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:a??ve};return a!==null&&(a.children??(a.children=[])).push(i),i}function vo(t){const e=N(t);return e.equals=Si,e}function On(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&at?ji(i):$e(i)}}}function uo(t){for(var e=t.parent;e!==null;){if(!(e.f&at))return e;e=e.parent}return null}function Rn(t){var e,a=ve;Be(uo(t));try{On(t),e=tl(t)}finally{Be(a)}return e}function Bn(t){var e=Rn(t),a=(St||t.f&Mt)&&t.deps!==null?Fa:Ye;ut(t,a),t.equals(e)||(t.v=e,t.wv=el())}function ji(t){On(t),wa(t,0),ut(t,Jt),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Hn(t){ve===null&&be===null&&Rr(),be!==null&&be.f&Mt&&Or(),Mi&&Dr()}function po(t,e){var a=e.last;a===null?e.last=e.first=t:(a.next=t,t.prev=a,e.last=t)}function ea(t,e,a,i=!0){var n=(t&ha)!==0,l=ve,o={ctx:ge,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|_t,first:null,fn:e,last:null,next:null,parent:n?null:l,prev:null,teardown:null,transitions:null,wv:0};if(a){var s=ta;try{Xn(!0),Ya(o),o.f|=zn}catch(v){throw $e(o),v}finally{Xn(s)}}else e!==null&&Za(o);var d=a&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&jn)===0;if(!d&&!n&&i&&(l!==null&&po(o,l),be!==null&&be.f&at)){var c=be;(c.children??(c.children=[])).push(o)}return o}function fo(){return be===null?!1:!St}function Fn(t){const e=ea(fa,null,!1);return ut(e,Ye),e.teardown=t,e}function Ze(t){Hn();var e=ve!==null&&(ve.f&it)!==0&&ge!==null&&!ge.m;if(e){var a=ge;(a.e??(a.e=[])).push({fn:t,effect:ve,reaction:be})}else{var i=ft(t);return i}}function ho(t){return Hn(),ga(t)}function go(t){const e=ea(ha,t,!0);return(a={})=>new Promise(i=>{a.outro?lt(e,()=>{$e(e),i(void 0)}):($e(e),i(void 0))})}function ft(t){return ea(Cn,t,!1)}function ga(t){return ea(fa,t,!0)}function q(t){return nt(t)}function nt(t,e=0){return ea(fa|Ra|e,t,!0)}function Re(t,e=!0){return ea(fa|it,t,!0,e)}function Vn(t){var e=t.teardown;if(e!==null){const a=Mi,i=be;Qn(!0),Ge(null);try{e.call(null)}finally{Qn(a),Ge(i)}}}function Wn(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var a=0;a<e.length;a+=1)ji(e[a])}}function Un(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 mo(t){for(var e=t.first;e!==null;){var a=e.next;e.f&it||$e(e),e=a}}function $e(t,e=!0){var a=!1;if((e||t.f&En)&&t.nodes_start!==null){for(var i=t.nodes_start,n=t.nodes_end;i!==null;){var l=i===n?null:Wa(i);i.remove(),i=l}a=!0}Un(t,e&&!a),Wn(t),wa(t,0),ut(t,Jt);var o=t.transitions;if(o!==null)for(const d of o)d.stop();Vn(t);var s=t.parent;s!==null&&s.first!==null&&Gn(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Gn(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=[];Ii(t,a,!0),Kn(a,()=>{$e(t),e&&e()})}function Kn(t,e){var a=t.length;if(a>0){var i=()=>--a||e();for(var n of t)n.out(i)}else e()}function Ii(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,l=(i.f&xt)!==0||(i.f&it)!==0;Ii(i,e,l?a:!1),i=n}}}function wt(t){Yn(t,!0)}function Yn(t,e){if(t.f&ct){_a(t)&&Ya(t),t.f^=ct;for(var a=t.first;a!==null;){var i=a.next,n=(a.f&xt)!==0||(a.f&it)!==0;Yn(a,n?e:!1),a=i}if(t.transitions!==null)for(const l of t.transitions)(l.is_global||e)&&l.in()}}let Ua=!1,Pi=[];function Zn(){Ua=!1;const t=Pi.slice();Pi=[],xi(t)}function Lt(t){Ua||(Ua=!0,queueMicrotask(Zn)),Pi.push(t)}function yo(){Ua&&Zn()}function Ai(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}const Jn=0,bo=1;let ma=!1,Ga=Jn,ya=!1,ba=null,ta=!1,Mi=!1;function Xn(t){ta=t}function Qn(t){Mi=t}let Nt=[],aa=0,zh=[],be=null;function Ge(t){be=t}let ve=null;function Be(t){ve=t}let vt=null;function _o(t){vt=t}let He=null,Je=0,kt=null;function xo(t){kt=t}let $n=1,qi=0,St=!1,ge=null;function Ka(t){ge=t}function el(){return++$n}function ia(){return!Xt||ge!==null&&ge.l===null}function _a(t){var c;var e=t.f;if(e&_t)return!0;if(e&Fa){var a=t.deps,i=(e&Mt)!==0;if(a!==null){var n,l,o=(e&Ha)!==0,s=i&&ve!==null&&!St,d=a.length;if(o||s){for(n=0;n<d;n++)l=a[n],(o||!((c=l==null?void 0:l.reactions)!=null&&c.includes(t)))&&(l.reactions??(l.reactions=[])).push(t);o&&(t.f^=Ha)}for(n=0;n<d;n++)if(l=a[n],_a(l)&&Bn(l),l.wv>t.wv)return!0}(!i||ve!==null&&!St)&&ut(t,Ye)}return!1}function wo(t,e){for(var a=e;a!==null;){if(a.f&Ba)try{a.fn(t);return}catch{a.f^=Ba}a=a.parent}throw ma=!1,t}function ko(t){return(t.f&Jt)===0&&(t.parent===null||(t.parent.f&Ba)===0)}function Li(){ma=!1}function xa(t,e,a,i){if(ma){if(a===null&&(ma=!1),ko(e))throw t;return}a!==null&&(ma=!0);{wo(t,e);return}}function tl(t){var p;var e=He,a=Je,i=kt,n=be,l=St,o=vt,s=ge,d=t.f;He=null,Je=0,kt=null,be=d&(it|ha)?null:t,St=!ta&&(d&Mt)!==0,vt=null,ge=t.ctx,qi++;try{var c=(0,t.fn)(),v=t.deps;if(He!==null){var u;if(wa(t,Je),v!==null&&Je>0)for(v.length=Je+He.length,u=0;u<He.length;u++)v[Je+u]=He[u];else t.deps=v=He;if(!St)for(u=Je;u<v.length;u++)((p=v[u]).reactions??(p.reactions=[])).push(t)}else v!==null&&Je<v.length&&(wa(t,Je),v.length=Je);return c}finally{He=e,Je=a,kt=i,be=n,St=l,vt=o,ge=s}}function So(t,e){let a=e.reactions;if(a!==null){var i=Da.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&at&&(He===null||!He.includes(e))&&(ut(e,Fa),e.f&(Mt|Ha)||(e.f^=Ha),wa(e,0))}function wa(t,e){var a=t.deps;if(a!==null)for(var i=e;i<a.length;i++)So(t,a[i])}function Ya(t){var e=t.f;if(!(e&Jt)){ut(t,Ye);var a=ve,i=ge;ve=t;try{e&Ra?mo(t):Un(t),Wn(t),Vn(t);var n=tl(t);t.teardown=typeof n=="function"?n:null,t.wv=$n;var l=t.deps,o;Se&&Gr&&t.f&_t}catch(s){xa(s,t,a,i||t.ctx)}finally{ve=a}}}function al(){if(aa>1e3){aa=0;try{Br()}catch(t){if(ba!==null)xa(t,ba,null);else throw t}}aa++}function il(t){var e=t.length;if(e!==0){al();var a=ta;ta=!0;try{for(var i=0;i<e;i++){var n=t[i];n.f&Ye||(n.f^=Ye);var l=[];nl(n,l),To(l)}}finally{ta=a}}}function To(t){var e=t.length;if(e!==0)for(var a=0;a<e;a++){var i=t[a];if(!(i.f&(Jt|ct)))try{_a(i)&&(Ya(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?Gn(i):i.fn=null))}catch(n){xa(n,i,null,i.ctx)}}}function Co(){if(ya=!1,aa>1001)return;const t=Nt;Nt=[],il(t),ya||(aa=0,ba=null)}function Za(t){Ga===Jn&&(ya||(ya=!0,queueMicrotask(Co))),ba=t;for(var e=t;e.parent!==null;){e=e.parent;var a=e.f;if(a&(ha|it)){if(!(a&Ye))return;e.f^=Ye}}Nt.push(e)}function nl(t,e){var a=t.first,i=[];e:for(;a!==null;){var n=a.f,l=(n&it)!==0,o=l&&(n&Ye)!==0,s=a.next;if(!o&&!(n&ct))if(n&fa){if(l)a.f^=Ye;else try{_a(a)&&Ya(a)}catch(u){xa(u,a,null,a.ctx)}var d=a.first;if(d!==null){a=d;continue}}else n&Cn&&i.push(a);if(s===null){let u=a.parent;for(;u!==null;){if(t===u)break e;var c=u.next;if(c!==null){a=c;continue e}u=u.parent}}a=s}for(var v=0;v<i.length;v++)d=i[v],e.push(d),nl(d,e)}function Ni(t){var e=Ga,a=Nt;try{al();const n=[];Ga=bo,Nt=n,ya=!1,il(a);var i=t==null?void 0:t();return yo(),(Nt.length>0||n.length>0)&&Ni(),aa=0,ba=null,i}finally{Ga=e,Nt=a}}async function ka(){await Promise.resolve(),Ni()}function r(t){var v;var e=t.f,a=(e&at)!==0;if(a&&e&Jt){var i=Rn(t);return ji(t),i}if(be!==null){vt!==null&&vt.includes(t)&&Wr();var n=be.deps;t.rv<qi&&(t.rv=qi,He===null&&n!==null&&n[Je]===t?Je++:He===null?He=[t]:He.push(t),kt!==null&&ve!==null&&ve.f&Ye&&!(ve.f&it)&&kt.includes(t)&&(ut(ve,_t),Za(ve)))}else if(a&&t.deps===null)for(var l=t,o=l.parent,s=l;o!==null;)if(o.f&at){var d=o;s=d,o=d.parent}else{var c=o;(v=c.deriveds)!=null&&v.includes(s)||(c.deriveds??(c.deriveds=[])).push(s);break}return a&&(l=t,_a(l)&&Bn(l)),t.v}function Xe(t){const e=be;try{return be=null,t()}finally{be=e}}const zo=-7169;function ut(t,e){t.f=t.f&zo|e}function Di(t){return ll().get(t)}function Oi(t,e){return ll().set(t,e),e}function ll(t){return ge===null&&Ai(),ge.c??(ge.c=new Map(Eo(ge)||void 0))}function Eo(t){let e=t.p;for(;e!==null;){const a=e.c;if(a!==null)return a;e=e.p}return null}function ae(t,e=!1,a){ge={p:ge,c:null,e:null,m:!1,s:t,x:null,l:null},Xt&&!e&&(ge.l={s:null,u:null,r1:[],r2:Oe(!1)})}function ie(t){const e=ge;if(e!==null){t!==void 0&&(e.x=t);const o=e.e;if(o!==null){var a=ve,i=be;e.e=null;try{for(var n=0;n<o.length;n++){var l=o[n];Be(l.effect),Ge(l.reaction),ft(l.fn)}}finally{Be(a),Ge(i)}}ge=e.p,e.m=!0}return t||{}}function rl(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=Tn(a);for(let n in i){const l=i[n].get;if(l)try{l.call(t)}catch{}}}}}function jo(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Io=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Po(t){return Io.includes(t)}const Ao={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function Mo(t){return t=t.toLowerCase(),Ao[t]??t}const qo=["touchstart","touchmove"];function Lo(t){return qo.includes(t)}function No(t,e){if(e){const a=document.body;t.autofocus=!0,Lt(()=>{document.activeElement===a&&t.focus()})}}let ol=!1;function Do(){ol||(ol=!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);Fn(()=>{for(var l of e)t.removeEventListener(l,a)})}function Bi(t){var e=be,a=ve;Ge(null),Be(null);try{return t()}finally{Ge(e),Be(a)}}function sl(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 cl=new Set,Hi=new Set;function Fi(t,e,a,i){function n(l){if(i.capture||Sa.call(e,l),!l.cancelBubble)return Bi(()=>a.call(this,l))}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 ce(t,e,a,i,n){var l={capture:i,passive:n},o=Fi(t,e,a,l);(e===document.body||e===window||e===document)&&Fn(()=>{e.removeEventListener(t,o,l)})}function ue(t){for(var e=0;e<t.length;e++)cl.add(t[e]);for(var a of Hi)a(t)}function Sa(t){var b;var e=this,a=e.ownerDocument,i=t.type,n=((b=t.composedPath)==null?void 0:b.call(t))||[],l=n[0]||t.target,o=0,s=t.__root;if(s){var d=n.indexOf(s);if(d!==-1&&(e===document||e===window)){t.__root=e;return}var c=n.indexOf(e);if(c===-1)return;d<=c&&(o=d)}if(l=n[o]||t.target,l!==e){Ir(t,"currentTarget",{configurable:!0,get(){return l||a}});var v=be,u=ve;Ge(null),Be(null);try{for(var p,y=[];l!==null;){var h=l.assignedSlot||l.parentNode||l.host||null;try{var f=l["__"+i];if(f!==void 0&&!l.disabled)if(je(f)){var[_,...g]=f;_.apply(l,[t,...g])}else f.call(l,t)}catch(S){p?y.push(S):p=S}if(t.cancelBubble||h===e||h===null)break;l=h}if(p){for(let S of y)queueMicrotask(()=>{throw S});throw p}}finally{t.__root=e,delete t.currentTarget,Ge(v),Be(u)}}}function Bo(t){var e;e=document.head.appendChild($t());try{nt(()=>t(e),En)}finally{}}function Vi(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Dt(t,e){var a=ve;a.nodes_start===null&&(a.nodes_start=t,a.nodes_end=e)}function T(t,e){var a=(e&no)!==0,i=(e&lo)!==0,n,l=!t.startsWith("<!>");return()=>{n===void 0&&(n=Vi(l?t:"<!>"+t),a||(n=qt(n)));var o=i?document.importNode(n,!0):n.cloneNode(!0);if(a){var s=qt(o),d=o.lastChild;Dt(s,d)}else Dt(o,o);return o}}function Ie(t,e,a="svg"){var i=!t.startsWith("<!>"),n=`<${a}>${i?t:"<!>"+t}</${a}>`,l;return()=>{if(!l){var o=Vi(n),s=qt(o);l=qt(s)}var d=l.cloneNode(!0);return Dt(d,d),d}}function Me(t=""){{var e=$t(t+"");return Dt(e,e),e}}function he(){var t=document.createDocumentFragment(),e=document.createComment(""),a=$t();return t.append(e,a),Dt(e,a),t}function m(t,e){t!==null&&t.before(e)}let Ja=!0;function dl(t){Ja=t}function K(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 na=new Map;function Ho(t,{target:e,anchor:a,props:i={},events:n,context:l,intro:o=!0}){so();var s=new Set,d=u=>{for(var p=0;p<u.length;p++){var y=u[p];if(!s.has(y)){s.add(y);var h=Lo(y);e.addEventListener(y,Sa,{passive:h});var f=na.get(y);f===void 0?(document.addEventListener(y,Sa,{passive:h}),na.set(y,1)):na.set(y,f+1)}}};d(bi(cl)),Hi.add(d);var c=void 0,v=go(()=>{var u=a??e.appendChild($t());return Re(()=>{if(l){ae({});var p=ge;p.c=l}n&&(i.$$events=n),Ja=o,c=t(u,i)||{},Ja=!0,l&&ie()}),()=>{var h;for(var p of s){e.removeEventListener(p,Sa);var y=na.get(p);--y===0?(document.removeEventListener(p,Sa),na.delete(p)):na.set(p,y)}Hi.delete(d),u!==a&&((h=u.parentNode)==null||h.removeChild(u))}});return Wi.set(c,v),c}let Wi=new WeakMap;function Ot(t,e){const a=Wi.get(t);return a?(Wi.delete(t),a(e)):Promise.resolve()}const Ui=0,Xa=1,Gi=2;function Qa(t,e,a,i,n){var l=t,o=ia(),s=ge,d=Le,c,v,u,p=(o?Oe:Va)(void 0),y=(o?Oe:Va)(void 0),h=!1;function f(g,b){h=!0,b&&(Be(_),Ge(_),Ka(s));try{g===Ui&&a&&(c?wt(c):c=Re(()=>a(l))),g===Xa&&i&&(v?wt(v):v=Re(()=>i(l,p))),g===Gi&&n&&(u?wt(u):u=Re(()=>n(l,y))),g!==Ui&&c&<(c,()=>c=null),g!==Xa&&v&<(v,()=>v=null),g!==Gi&&u&<(u,()=>u=null)}finally{b&&(Ka(null),Ge(null),Be(null),Ni())}}var _=nt(()=>{if(d!==(d=e())){if(Mr(d)){var g=d;h=!1,g.then(b=>{g===d&&(Qt(p,b),f(Xa,!0))},b=>{if(g===d&&(Qt(y,b),f(Gi,!0),!n))throw y.v}),Lt(()=>{h||f(Ui,!0)})}else Qt(p,d),f(Xa,!1);return()=>d=Le}})}function O(t,e,a=!1){var i=t,n=null,l=null,o=Le,s=a?xt:0,d=!1;const c=(u,p=!0)=>{d=!0,v(p,u)},v=(u,p)=>{o!==(o=u)&&(o?(n?wt(n):p&&(n=Re(()=>p(i))),l&<(l,()=>{l=null})):(l?wt(l):p&&(l=Re(()=>p(i))),n&<(n,()=>{n=null})))};nt(()=>{d=!1,e(c),d||v(null,null)},s)}function la(t,e,a){var i=t,n=Le,l,o=ia()?Nr:ki;nt(()=>{o(n,n=e())&&(l&<(l),l=Re(()=>a(i)))})}let Rt=null;function vl(t){Rt=t}function Pe(t,e){return e}function Fo(t,e,a,i){for(var n=[],l=e.length,o=0;o<l;o++)Ii(e[o].e,n,!0);var s=l>0&&n.length===0&&a!==null;if(s){var d=a.parentNode;co(d),d.append(a),i.clear(),Tt(t,e[0].prev,e[l-1].next)}Kn(n,()=>{for(var c=0;c<l;c++){var v=e[c];s||(i.delete(v.k),Tt(t,v.prev,v.next)),$e(v.e,!s)}})}function ze(t,e,a,i,n,l=null){var o=t,s={flags:e,items:new Map,first:null},d=(e&An)!==0;if(d){var c=t;o=c.appendChild($t())}var v=null,u=!1;nt(()=>{var p=a(),y=je(p)?p:p==null?[]:bi(p),h=y.length;if(!(u&&h===0)){u=h===0;{var f=be;Vo(y,s,o,n,e,(f.f&ct)!==0,i)}l!==null&&(h===0?v?wt(v):v=Re(()=>l(o)):v!==null&<(v,()=>{v=null})),a()}})}function Vo(t,e,a,i,n,l,o,s){var D,I,F,Q;var d=(n&Yr)!==0,c=(n&(Ti|Ci))!==0,v=t.length,u=e.items,p=e.first,y=p,h,f=null,_,g=[],b=[],S,E,C,A;if(d)for(A=0;A<v;A+=1)S=t[A],E=o(S,A),C=u.get(E),C!==void 0&&((D=C.a)==null||D.measure(),(_??(_=new Set)).add(C));for(A=0;A<v;A+=1){if(S=t[A],E=o(S,A),C=u.get(E),C===void 0){var V=y?y.e.nodes_start:a;f=Uo(V,e,f,f===null?e.first:f.next,S,E,A,i,n),u.set(E,f),g=[],b=[],y=f.next;continue}if(c&&Wo(C,S,A,n),C.e.f&ct&&(wt(C.e),d&&((I=C.a)==null||I.unfix(),(_??(_=new Set)).delete(C))),C!==y){if(h!==void 0&&h.has(C)){if(g.length<b.length){var M=b[0],z;f=M.prev;var P=g[0],H=g[g.length-1];for(z=0;z<g.length;z+=1)ul(g[z],M,a);for(z=0;z<b.length;z+=1)h.delete(b[z]);Tt(e,P.prev,H.next),Tt(e,f,P),Tt(e,H,M),y=M,f=H,A-=1,g=[],b=[]}else h.delete(C),ul(C,y,a),Tt(e,C.prev,C.next),Tt(e,C,f===null?e.first:f.next),Tt(e,f,C),f=C;continue}for(g=[],b=[];y!==null&&y.k!==E;)(l||!(y.e.f&ct))&&(h??(h=new Set)).add(y),b.push(y),y=y.next;if(y===null)continue;C=y}g.push(C),f=C,y=C.next}if(y!==null||h!==void 0){for(var U=h===void 0?[]:bi(h);y!==null;)(l||!(y.e.f&ct))&&U.push(y),y=y.next;var R=U.length;if(R>0){var G=n&An&&v===0?a:null;if(d){for(A=0;A<R;A+=1)(F=U[A].a)==null||F.measure();for(A=0;A<R;A+=1)(Q=U[A].a)==null||Q.fix()}Fo(e,U,G,u)}}d&&Lt(()=>{var X;if(_!==void 0)for(C of _)(X=C.a)==null||X.apply()}),ve.first=e.first&&e.first.e,ve.last=f&&f.e}function Wo(t,e,a,i){i&Ti&&Qt(t.v,e),i&Ci?Qt(t.i,a):t.i=a}function Uo(t,e,a,i,n,l,o,s,d,c){var v=Rt,u=(d&Ti)!==0,p=(d&Zr)===0,y=u?p?Va(n):Oe(n):n,h=d&Ci?Oe(o):o,f={i:h,v:y,k:l,a:null,e:null,prev:a,next:i};Rt=f;try{return f.e=Re(()=>s(t,y,h),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 ul(t,e,a){for(var i=t.next?t.next.e.nodes_start:a,n=e?e.e.nodes_start:a,l=t.e.nodes_start;l!==i;){var o=Wa(l);n.before(l),l=o}}function Tt(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 l=t,o="",s;nt(()=>{o!==(o=e()??"")&&(s!==void 0&&($e(s),s=void 0),o!==""&&(s=Re(()=>{var d=o+"",c=Vi(d);Dt(qt(c),c.lastChild),l.before(c)})))})}function qe(t,e,...a){var i=t,n=st,l;nt(()=>{n!==(n=e())&&(l&&($e(l),l=null),l=Re(()=>n(i,...a)))},xt)}function pl(t,e,a){var i=t,n,l;nt(()=>{n!==(n=e())&&(l&&(lt(l),l=null),n&&(l=Re(()=>a(i,n))))},xt)}function fl(t,e,a,i,n,l){var o,s,d=null,c=t,v,u=Rt;nt(()=>{const p=e()||null;var y=p==="svg"?zi:null;if(p!==o){var h=Rt;vl(u),v&&(p===null?lt(v,()=>{v=null,s=null}):p===s?wt(v):($e(v),dl(!1))),p&&p!==s&&(v=Re(()=>{if(d=y?document.createElementNS(y,p):document.createElement(p),Dt(d,d),i){var f=d.appendChild($t());i(d,f)}ve.nodes_end=d,c.before(d)})),o=p,o&&(s=o),dl(!0),vl(h)}},xt)}function et(t,e,a){ft(()=>{var i=Xe(()=>e(t,a==null?void 0:a())||{});if(a&&(i!=null&&i.update)){var n=!1,l={};ga(()=>{var o=a();rl(o),n&&ki(l,o)&&(l=o,i.update(o))}),n=!0}if(i!=null&&i.destroy)return()=>i.destroy()})}function hl(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=hl(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=hl(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"&&yl(t).includes(e)?t[e]=a:t.setAttribute(e,a))}function gl(t,e,a,i,n=!1,l=!1,o=!1){var s=e||{},d=t.tagName==="OPTION";for(var c in e)c in a||(a[c]=null);a.class&&(a.class=Yo(a.class)),i!==void 0&&(a.class=a.class?a.class+" "+i:i);var v=yl(t),u=t.__attributes??(t.__attributes={});for(const g in a){let b=a[g];if(d&&g==="value"&&b==null){t.value=t.__value="",s[g]=b;continue}var p=s[g];if(b!==p){s[g]=b;var y=g[0]+g[1];if(y!=="$$"){if(y==="on"){const S={},E="$$"+g;let C=g.slice(2);var h=Po(C);if(jo(C)&&(C=C.slice(0,-7),S.capture=!0),!h&&p){if(b!=null)continue;t.removeEventListener(C,s[E],S),s[E]=null}if(b!=null)if(h)t[`__${C}`]=b,ue([C]);else{let A=function(V){s[g].call(this,V)};s[E]=Fi(C,t,A,S)}else h&&(t[`__${C}`]=void 0)}else if(g==="style"&&b!=null)t.style.cssText=b+"";else if(g==="autofocus")No(t,!!b);else if(g==="__value"||g==="value"&&b!=null)t.value=t[g]=t.__value=b;else if(g==="selected"&&d)Zo(t,b);else{var f=g;n||(f=Mo(f));var _=f==="defaultValue"||f==="defaultChecked";if(b==null&&!l&&!_)if(u[g]=null,f==="value"||f==="checked"){let S=t;if(f==="value"){let E=S.defaultValue;S.removeAttribute(f),S.defaultValue=E}else{let E=S.defaultChecked;S.removeAttribute(f),S.defaultChecked=E}}else t.removeAttribute(g);else _||v.includes(f)&&(l||typeof b!="string")?t[f]=b:typeof b!="function"&&le(t,f,b)}g==="style"&&"__styles"in t&&(t.__styles={})}}}return s}var ml=new Map;function yl(t){var e=ml.get(t.nodeName);if(e)return e;ml.set(t.nodeName,e=[]);for(var a,i=t,n=Element.prototype;n!==i;){a=Tn(i);for(var l in a)a[l].set&&e.push(l);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=bl(e);(i!==n||Ei)&&(n===""?t.removeAttribute("class"):t.setAttribute("class",n),t.__className=n)}function Ta(t,e,a){var i=t.__className,n=bl(e);(i!==n||Ei)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function bl(t,e){return(t??"")+""}function se(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(),ht={tick:t=>requestAnimationFrame(t),now:()=>Qo(),tasks:new Set};function _l(){const t=ht.now();ht.tasks.forEach(e=>{e.c(t)||(ht.tasks.delete(e),e.f())}),ht.tasks.size!==0&&ht.tick(_l)}function $o(t){let e;return ht.tasks.size===0&&ht.tick(_l),{promise:new Promise(a=>{ht.tasks.add(e={c:t,f:a})}),abort(){ht.tasks.delete(e)}}}function $a(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 xl(t){const e={},a=t.split(";");for(const i of a){const[n,l]=i.split(":");if(!n||l===void 0)break;const o=es(n.trim());e[o]=l.trim()}return e}const ts=t=>t;function as(t,e,a){var i=Rt,n,l,o,s=null;i.a??(i.a={element:t,measure(){n=this.element.getBoundingClientRect()},apply(){if(o==null||o.abort(),l=this.element.getBoundingClientRect(),n.left!==l.left||n.right!==l.right||n.top!==l.top||n.bottom!==l.bottom){const d=e()(this.element,{from:n,to:l},a==null?void 0:a());o=ei(this.element,d,void 0,1,()=>{o==null||o.abort(),o=void 0})}},fix(){if(!t.getAnimations().length){var{position:d,width:c,height:v}=getComputedStyle(t);if(d!=="absolute"&&d!=="fixed"){var u=t.style;s={position:u.position,width:u.width,height:u.height,transform:u.transform},u.position="absolute",u.width=c,u.height=v;var p=t.getBoundingClientRect();if(n.left!==p.left||n.top!==p.top){var y=`translate(${n.left-p.left}px, ${n.top-p.top}px)`;u.transform=u.transform?`${u.transform} ${y}`:y}}}},unfix(){if(s){var d=t.style;d.position=s.position,d.width=s.width,d.height=s.height,d.transform=s.transform}}}),i.a.element=t}function Te(t,e,a,i){var n=(t&to)!==0,l=(t&ao)!==0,o=n&&l,s=(t&io)!==0,d=o?"both":n?"in":"out",c,v=e.inert,u,p;function y(){var b=be,S=ve;Ge(null),Be(null);try{return c??(c=a()(e,(i==null?void 0:i())??{},{direction:d}))}finally{Ge(b),Be(S)}}var h={is_global:s,in(){var b;if(e.inert=v,!n){p==null||p.abort(),(b=p==null?void 0:p.reset)==null||b.call(p);return}l||u==null||u.abort(),$a(e,"introstart"),u=ei(e,y(),p,1,()=>{$a(e,"introend"),u==null||u.abort(),u=c=void 0})},out(b){if(!l){b==null||b(),c=void 0;return}e.inert=!0,$a(e,"outrostart"),p=ei(e,y(),u,0,()=>{$a(e,"outroend"),b==null||b()})},stop:()=>{u==null||u.abort(),p==null||p.abort()}},f=ve;if((f.transitions??(f.transitions=[])).push(h),n&&Ja){var _=s;if(!_){for(var g=f.parent;g&&g.f&xt;)for(;(g=g.parent)&&!(g.f&Ra););_=!g||(g.f&zn)!==0}_&&ft(()=>{Xe(()=>h.in())})}}function ei(t,e,a,i,n){var l=i===1;if(Zt(e)){var o,s=!1;return Lt(()=>{if(!s){var _=e({direction:l?"in":"out"});o=ei(t,_,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:d=0,css:c,tick:v,easing:u=ts}=e;var p=[];if(l&&a===void 0&&(v&&v(0,1),c)){var y=xl(c(0,1));p.push(y,y)}var h=()=>1-i,f=t.animate(p,{duration:d});return f.onfinish=()=>{var _=(a==null?void 0:a.t())??1-i;a==null||a.abort();var g=i-_,b=e.duration*Math.abs(g),S=[];if(b>0){if(c)for(var E=Math.ceil(b/16.666666666666668),C=0;C<=E;C+=1){var A=_+g*u(C/E),V=c(A,1-A);S.push(xl(V))}h=()=>{var M=f.currentTime;return _+g*u(M/b)},v&&$o(()=>{if(f.playState!=="running")return!1;var M=h();return v(M,1-M),!0})}f=t.animate(S,{duration:b,fill:"forwards"}),f.onfinish=()=>{h=()=>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:()=>h()}}function Ca(t,e,a=e){var i=ia();sl(t,"input",n=>{var l=n?t.defaultValue:t.value;if(l=Ki(t)?Yi(l):l,a(l),i&&l!==(l=e())){var o=t.selectionStart,s=t.selectionEnd;t.value=l??"",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),ga(()=>{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 wl(t,e,a){if(t.multiple)return ls(t,e);for(var i of t.options){var n=za(i);if(oo(n,e)){i.selected=!0;return}}(!a||e!==void 0)&&(t.selectedIndex=-1)}function is(t,e){ft(()=>{var a=new MutationObserver(()=>{var i=t.__value;wl(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;sl(t,"change",n=>{var l=n?"[selected]":":checked",o;if(t.multiple)o=[].map.call(t.querySelectorAll(l),za);else{var s=t.querySelector(l)??t.querySelector("option:not([disabled])");o=s&&za(s)}a(o)}),ft(()=>{var n=e();if(wl(t,n,i),i&&n===void 0){var l=t.querySelector(":checked");l!==null&&(n=za(l),a(n))}t.__value=n,i=!1}),is(t)}function ls(t,e){for(var a of t.options)a.selected=~e.indexOf(za(a))}function za(t){return"__value"in t?t.__value:t.value}const mi=class mi{constructor(e){Yt(this,gi);Yt(this,Pt,new WeakMap);Yt(this,ua);Yt(this,Ma);Na(this,Ma,e)}observe(e,a){var i=ot(this,Pt).get(e)||new Set;return i.add(a),ot(this,Pt).set(e,i),Er(this,gi,jr).call(this).observe(e,ot(this,Ma)),()=>{var n=ot(this,Pt).get(e);n.delete(a),n.size===0&&(ot(this,Pt).delete(e),ot(this,ua).unobserve(e))}}};Pt=new WeakMap,ua=new WeakMap,Ma=new WeakMap,gi=new WeakSet,jr=function(){return ot(this,ua)??Na(this,ua,new ResizeObserver(e=>{for(var a of e){mi.entries.set(a.target,a);for(var i of ot(this,Pt).get(a.target)||[])i(a)}}))},zr(mi,"entries",new WeakMap);let Zi=mi;var rs=new Zi({box:"border-box"});function Bt(t,e,a){var i=rs.observe(t,()=>a(t[e]));ft(()=>(Xe(()=>a(t[e])),i))}function kl(t,e){return t===e||(t==null?void 0:t[dt])===e}function Qe(t={},e,a,i){return ft(()=>{var n,l;return ga(()=>{n=l,l=[],Xe(()=>{t!==a(...l)&&(e(t,...l),n&&kl(a(...n),t)&&e(null,...n))})}),()=>{Lt(()=>{l&&kl(a(...l),t)&&e(null,...l)})}}),t}function Sl(t,e){Oo(window,["resize"],()=>Bi(()=>e(window[t])))}function Ji(t=!1){const e=ge,a=e.l.u;if(!a)return;let i=()=>rl(e.s);if(t){let n=0,l={};const o=N(()=>{let s=!1;const d=e.s;for(const c in d)d[c]!==l[c]&&(l[c]=d[c],s=!0);return s&&n++,n});i=()=>r(o)}a.b.length&&ho(()=>{Tl(e,i),xi(a.b)}),Ze(()=>{const n=Xe(()=>a.m.map(qr));return()=>{for(const l of n)typeof l=="function"&&l()}}),a.a.length&&Ze(()=>{Tl(e,i),xi(a.a)})}function Tl(t,e){if(t.l.s)for(const a of t.l.s)r(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(Zt(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];Zt(n)&&(n=n());const l=bt(n,e);if(l&&l.set)return l.set(a),!0}return!1},getOwnPropertyDescriptor(t,e){let a=t.props.length;for(;a--;){let i=t.props[a];if(Zt(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i){const n=bt(i,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===dt||e===In)return!1;for(let a of t.props)if(Zt(a)&&(a=a()),a!=null&&e in a)return!0;return!1},ownKeys(t){const e=[];for(let a of t.props){Zt(a)&&(a=a());for(const i in a)e.includes(i)||e.push(i)}return e}};function Cl(...t){return new Proxy({props:t},ds)}function zl(t){for(var e=ve,a=ve;e!==null&&!(e.f&(it|ha));)e=e.parent;try{return Be(e),t()}finally{Be(a)}}function L(t,e,a,i){var V;var n=(a&Jr)!==0,l=!Xt||(a&Xr)!==0,o=(a&$r)!==0,s=(a&eo)!==0,d=!1,c;o?[c,d]=os(()=>t[e]):c=t[e];var v=dt in t||In in t,u=o&&(((V=bt(t,e))==null?void 0:V.set)??(v&&e in t&&(M=>t[e]=M)))||void 0,p=i,y=!0,h=!1,f=()=>(h=!0,y&&(y=!1,s?p=Xe(i):p=i),p);c===void 0&&i!==void 0&&(u&&l&&Hr(),c=f(),u&&u(c));var _;if(l)_=()=>{var M=t[e];return M===void 0?f():(y=!0,h=!1,M)};else{var g=zl(()=>(n?N:vo)(()=>t[e]));g.f|=Lr,_=()=>{var M=r(g);return M!==void 0&&(p=void 0),M===void 0?p:M}}if(!(a&Qr))return _;if(u){var b=t.$$legacy;return function(M,z){return arguments.length>0?((!l||!z||b||d)&&u(z?_():M),M):_()}}var S=!1,E=!1,C=Va(c),A=zl(()=>N(()=>{var M=_(),z=r(C);return S?(S=!1,E=!0,z):(E=!1,C.v=M)}));return n||(A.equals=Si),function(M,z){if(arguments.length>0){const P=z?r(A):l&&o?$(M):M;return A.equals(P)||(S=!0,j(C,P),h&&p!==void 0&&(p=P),Xe(()=>r(A))),M}return r(A)}}function El(t,e){var a=ve,i=be,n=ge;Be(t),Ge(t),Ka(t.ctx);try{e()}finally{Be(a),Ge(i),Ka(n)}}function vs(t,e,a){var i=t,n;nt(()=>{var l=ve,o=!1;l.fn=s=>{var d=e.onerror;let c=e.failed;if(!d&&!c||o)throw s;var v=()=>{lt(n),El(l,()=>{o=!1,n=Re(()=>a(i)),Li()})};d==null||d(s,v),n&&$e(n),Lt(()=>{El(l,()=>{o=!0;try{n=Re(()=>{c(i,()=>s,()=>v)})}catch(u){xa(u,l,null,l.ctx)}Li(),o=!1})})},n=Re(()=>a(i)),Li()},xt|Ba)}function Fe(t){ge===null&&Ai(),Xt&&ge.l!==null?us(ge).m.push(t):Ze(()=>{const e=Xe(t);if(typeof e=="function")return e})}function Xi(t){ge===null&&Ai(),Fe(()=>()=>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 Ct(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const pe=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",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search"});function jl(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 Il="https://www.playpilot.com",fs="https://partner-api.playpilot.tech/1.0.0",hs="https://img-external.playpilot.tech",Qi="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}const gs="https://insights.playpilot.net";async function fe(t,e=null,a={}){var n,l,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_sid:e.sid,title_type:e.type,providers:[...new Set(((n=e.providers)==null?void 0:n.map(d=>d.name))||[])],...a}),a.version="6.0.0-beta.explore.23",a.url=Ht(),a.organization_sid=(l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid,a.domain_sid=(o=window.PlayPilotLinkInjections)==null?void 0:o.domain_sid,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||[])fe(t,e,a);window.PlayPilotLinkInjections.queued_tracking_events=[]}}const $i={};async function gt(t,{headers:e={},method:a="GET",body:i=null}={}){const n=!ii()&&a==="GET";if(n&&t in $i)return $i[t];const l=a==="GET"?{}:{"Content-Type":"application/json"},o=await fetch(fs+t,{method:a,headers:new Headers({...l,...e}),body:i?JSON.stringify(i):null});if(!(o!=null&&o.ok))throw o;const s=await o.text();let d=s;try{s&&(d=JSON.parse(s))}catch{}return n&&($i[t]=d),d}const en="EncryptedToken",Pl="articleReplacementEditToken",Al="playpilot-editorial-mode";async function Ml(t=window.location.href){try{const e=Ct();if(!e)throw new Error("No token was provided");const a=tn(t);if(!a)throw new Error("Could not be authenticated");return await gt(`/external-pages/edit-authorization?api-token=${e}`,{method:"POST",body:{private_token:a}}),xs(a),!0}catch(e){console.error(e),fe(pe.AuthFailed)}finally{Ss()}return!1}function tn(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 l=new URL(t).searchParams.get(Pl);if(l)return decodeURI(l)}return((n=("; "+document.cookie).split(`; ${en}=`).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=en+"="+t+";"+i+";path=/"}function ws(){document.cookie=en+"=; 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(Al)==="true"||!!t}function ks(){const t=new URL(window.location.href);t.searchParams.set(Al,"true"),window.history.replaceState({},"",t)}function Ss(){const t=new URL(window.location.href);t.searchParams.delete(Pl),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 ql(){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"},"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 Ce(t,e=Ll()){var a;return((a=Cs[t])==null?void 0:a[e])||t}function Ll(){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 l=e.find(o=>o.toLowerCase().startsWith(a+"-"));if(l)return l}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 an(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Nl(t,e,a=[]){var l,o;const i=document.createTreeWalker(e);let n;for(;(n=i.nextNode())&&!((l=n.nodeValue)!=null&&l.includes(t)&&!a.includes(((o=n.parentNode)==null?void 0:o.nodeName)||"")););return n}function Dl(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Is(t,e,a,i){const n=js(e),l=an(e),o=t.slice(0,i),s=t.slice(i),d=/[-/\\^$*+?.()|[\]{}]/g,c=new RegExp(`${l.replace(d,"\\$&")}|${n.replace(d,"\\$&")}`),v=s.replace(c,a);return o+v}function Ps(t,e,a,i){return t.substring(0,a)+e+t.substring(i)}function tt(t){return an(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function Ol(t,e,a){const n=t.indexOf(e),l=Math.floor((a-e.length)/2);let o=Math.max(0,n-l),s=o+a;s>t.length&&(s=t.length,o=Math.max(0,s-a));let d=t.slice(o,s).trim();return o>0&&(d="…"+d),s<t.length&&(d+="…"),d}function Rl(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),l=Bl(i.innerText.slice(0,e+n)),o=i.innerText.slice(a+n),s=Bl(Hl(l,2)),d=Hl(o,2);return{before:s,after:d}}function Bl(t){return t.split("").reverse().join("")}function Hl(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 l=e?t.indexOf(e,n):n;if(l===-1&&e)break;const o=e?l+e.length:l,s=a?t.indexOf(a,o):t.length;if(a&&s===-1)break;const d=t.slice(o,s);i.push({match:d,index:o}),n=a?s+a.length:t.length+1}return i}function Ms(t,e,a,i){const l=As(t,a,i).filter(({match:s})=>an(s).includes(e));return l.length?l.reduce((s,d)=>!s||d.match.length<s.match.length?d:s):null}function qs(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=[],l=Ns(e);let o=i.indexOf(t);for(;o!==-1;)Es(o,l)&&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,l=!1,o=0;for(let s=0;s<a.length;s++){const d=a[s];if(!n&&!i&&d==="<"){i=!0,l&&(e.push({start:o,end:s}),l=!1);continue}if(i&&d==='"'&&(n=!n),i&&!n&&d===">"){i=!1;continue}!i&&!n&&!l&&(o=s,l=!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,"\\$&"),l=new RegExp(`([${i}])${n}([${i}])`),o=e.match(l);return o!=null&&o.index?o.index+1:-1}catch{return-1}}function Fl(t){return t.ctrlKey||t.metaKey||t.button!==0}async function Os(){if(!zt("ads"))return[];const t=Ct();if(!t)throw new Error("No token was provided");try{return await gt(`/ads/browse/?api-token=${t}`)}catch(e){throw fe(pe.AdsFetchFailed,null,{status:e.status}),e}}function Ea(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,extra_info:{category:"SVOD"}}}const Bs=t=>t;function nn(t){const e=t-1;return e*e*e+1}function Vl(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function mt(t,{delay:e=0,duration:a=400,easing:i=Bs}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:a,easing:i,css:l=>`opacity: ${l*n}`}}function oa(t,{delay:e=0,duration:a=400,easing:i=nn,x:n=0,y:l=0,opacity:o=0}={}){const s=getComputedStyle(t),d=+s.opacity,c=s.transform==="none"?"":s.transform,v=d*(1-o),[u,p]=Vl(n),[y,h]=Vl(l);return{delay:e,duration:a,easing:i,css:(f,_)=>`
|
|
3
3
|
transform: ${c} translate(${(1-f)*u}${p}, ${(1-f)*y}${h});
|
|
4
4
|
opacity: ${d-v*_}`}}function ja(t,{delay:e=0,duration:a=400,easing:i=nn,axis:n="y"}={}){const l=getComputedStyle(t),o=+l.opacity,s=n==="y"?"height":"width",d=parseFloat(l[s]),c=n==="y"?["top","bottom"]:["left","right"],v=c.map(g=>`${g[0].toUpperCase()}${g.slice(1)}`),u=parseFloat(l[`padding${v[0]}`]),p=parseFloat(l[`padding${v[1]}`]),y=parseFloat(l[`margin${v[0]}`]),h=parseFloat(l[`margin${v[1]}`]),f=parseFloat(l[`border${v[0]}Width`]),_=parseFloat(l[`border${v[1]}Width`]);return{delay:e,duration:a,easing:i,css:g=>`overflow: hidden;opacity: ${Math.min(g*20,1)*o};${s}: ${g*d}px;padding-${c[0]}: ${g*u}px;padding-${c[1]}: ${g*p}px;margin-${c[0]}: ${g*y}px;margin-${c[1]}: ${g*h}px;border-${c[0]}-width: ${g*f}px;border-${c[1]}-width: ${g*_}px;min-${s}: 0`}}function Ia(t,{delay:e=0,duration:a=400,easing:i=nn,start:n=0,opacity:l=0}={}){const o=getComputedStyle(t),s=+o.opacity,d=o.transform==="none"?"":o.transform,c=1-n,v=s*(1-l);return{delay:e,duration:a,easing:i,css:(u,p)=>`
|
|
5
5
|
transform: ${d} scale(${1-c*p});
|
|
@@ -9,17 +9,31 @@ var kh=Object.defineProperty;var Cr=ke=>{throw TypeError(ke)};var Sh=(ke,Se,je)=
|
|
|
9
9
|
`)}function Ku(t,e={aiInjections:[],manualInjections:[]}){fn(),$u();const a=ep(e);if(!a.length)return[];const i=tt(t.map(c=>c.innerText).join(" ")),l=tp(a).filter(c=>i.includes(tt(c.sentence))),o={};let s=-1;for(const c of ip(l)){s++;const v=t.findIndex(E=>tt(E.innerText).includes(tt(c.sentence))),u=t[v];if(!u)continue;const p=Nl(c.title,u,["A"]);if(!(p!=null&&p.nodeValue)||Dl(p)){const E=Nl(c.title,u);if(E&&Dl(E)){o[c.key]="Given text is already inside of a link.";continue}}const{injectionElement:y,linkElement:h}=Yu(c);let f=-1,_=!1;ni(u.innerHTML,c.title)===1&&(f=u.innerHTML.indexOf(c.title));const{phrase_before:b,phrase_after:S}=Zu(u,c);if(f===-1&&(b||S)){const E=[b,c.title,S].filter(Boolean).join(" ");if(f=u.innerHTML.indexOf(E),f===-1){const C=Ms(u.innerHTML,c.title,b||"",S||"");if(C){const{leadingSpaces:A,trailingSpaces:V}=qs(C.match);h.innerHTML=C.match.trim();const M=C.index+A,z=C.index+C.match.length-V;if(u.innerHTML.slice(M,z).includes("href="))continue;pn(u.innerHTML,c.title,u,y,M,z)&&(f=C.index,_=!0)}}}if(f===-1&&(p!=null&&p.nodeValue)){const E=u.innerHTML.indexOf(p.nodeValue),C=u.innerHTML.indexOf(c.sentence),A=C===-1?u.innerHTML.indexOf(c.sentence.slice(0,20)):-1,V=c.sentence.split(" ")[0],z=ni(u.innerHTML,V)===1?u.innerHTML.indexOf(V):-1,P=zs(l.slice(0,s+1),c,["title","sentence"])-1,H=Ls(p.nodeValue,u,P);f=Math.max(E,A,H,z,C,0)}if(f!==-1&&!_&&!pn(u.innerHTML,c.title,u,y,f)){const E=Ds(c.title,u.innerHTML);E>-1?pn(u.innerHTML,c.title,u,y,E):o[c.key]="Injection would have lead to broken HTML."}}Xu(l),Ju();const d=ap(a);return d.length&&Hu(t,d),document.querySelector(yt)&&Uu(t),a.filter(c=>c.title_details).map((c,v)=>{const u=!c.manual&&np(c,v,a),p=c.duplicate??u;p&&(o[c.key]=u?"Injection was manually removed.":"Injection was marked as duplicate.");const y=document.querySelector(`[${It}="${c.key}"]`),h=hi(c)&&!c.inactive&&!c.removed&&!c.after_article&&!y,f=l.find(g=>g.key===c.key),_=h?o[c.key]||(f?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...c,inactive:c.inactive??!1,duplicate:p,failed:h,failed_message:_}})}function Yu(t){const e=document.createElement("span");e.dataset.playpilotInjectionKey=t.key;const a=document.createElement("a");return 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 pn(t,e,a,i,n,l=-1){const o=v=>Array.from(v.querySelectorAll(`a, ${yt}`)).filter(u=>!u.innerText).length,s=document.createElement("div");s.innerHTML=t;const d=o(s),c=s.innerText;return l>0?s.innerHTML=Ps(t,i.outerHTML,n,l):s.innerHTML=Is(t,e,i.outerHTML,n),Math.abs(s.innerText.length-c.length)>1||d!=o(s)?!1:(a.innerHTML=s.innerHTML,!0)}function Zu(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 l=t.innerText.indexOf(e.title),o=Rl(t,l,l+e.title.length);return{phrase_before:o.before,phrase_after:o.after}}function Ju(){const t=Array.from(document.querySelectorAll(`${yt} 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 Xu(t){window.addEventListener("mousemove",wu),window.addEventListener("click",a=>ju(a,t)),document.querySelectorAll(yt).forEach(a=>{const i=a.dataset.playpilotInjectionKey,n=t.find(l=>i===l.key);n&&(a.addEventListener("mouseenter",l=>{Su()||xu(l,n)}),a.addEventListener("mouseleave",ku))})}function fn(){document.querySelectorAll(yt).forEach(e=>Qu(e.getAttribute(It)||"")),Fu(),Gu(),cr(!1),pi(!1)}function Qu(t){var n;const e=document.querySelector(`[${It}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(l=>l.remove());const i=(n=e.querySelector("a"))==null?void 0:n.innerHTML;e.outerHTML=i||""}function $u(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(yt)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function ep({aiInjections:t,manualInjections:e}){return[...e.map(a=>({...a,manual:!0})),...t]}function vr(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function ur(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 tp(t){return pr(t).filter(e=>e.in_text!==!1&&ur(e))}function ap(t){return pr(t).filter(e=>e.after_article===!0&&ur(e))}function pr(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)&&fr(a,e)))}function ip(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 np(t,e,a){return a.some((i,n)=>e!==n&&i.manual&&fr(i,t))}function fr(t,e){return t.title===e.title&&tt(t.sentence)===tt(e.sentence)}function hn(){return document.querySelector("[data-playpilot-link-injections]")||document.body}function gn(){const t=Vt();return{content_heading:lp(t),content_modified_time:rp(t),content_published_time:op(t)}}function lp(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function rp(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=hr().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return a?mn(a):null}function op(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=hr().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return a?mn(a):null}function mn(t){try{return new Date(t).toISOString()}catch{return null}}function hr(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent)}catch{return{}}}let yn=null;async function va(t,{url:e=Ht(),hash:a=Ts(t||""),params:i={}}={}){const n=Ct(),l=ii()?await Ml():!1,o=Ll();if(!n)throw new Error("No token was provided");const s=`/external-pages/?api-token=${n}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${o}`;let d;return Object.entries(i).length?(i.run_ai&&(i.hash=a,i.page_text=t,i.metadata=gn()),i.url=e,d=await gt(s,{method:"POST",body:i})):d=await gt(s+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function gr(t,{requireCompletedResult:e=!1,runAiWhenRelevant:a=!1,pollInterval:i=3e3,maxTries:n=600,onpoll:l=()=>null}={}){let o=0;yn&&clearTimeout(yn);const s=async(d,c)=>{let v;try{try{v=await va(t)}catch(u){throw(u==null?void 0:u.status)===404&&(v=await va(t,{params:{run_ai:!0}})),new Error}if(v&&a&&(v=await sp(t,v)),e&&v.ai_enabled&&v.ai_running)throw new Error;v.manual_injections=mr(v.manual_injections||[]),v.ai_injections=mr(v.ai_injections||[]),d(v);return}catch{if(o++,o>=n){n>1&&console.error("Max poll limit exceeded. Please return later."),d();return}v&&l(v),yn=setTimeout(()=>s(d),i)}};return new Promise(s)}async function sp(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const a=gn().content_modified_time,i=e.content_modified_time?mn(e.content_modified_time):null,n=a&&i===a;return e.ai_last_run&&n?e:await va(t,{params:{run_ai:!0}})}async function cp(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 va(e,{params:{private_token:tn(),manual_injections:n,content_text_selector:a}}))throw new Error("saveLinkInjections response was faulty");return t}function mr(t){return t.map(e=>({...e,key:yr(e.sid)}))}function yr(t){return t+"-"+ql()}async function dp(){const t=Ct();if(!t)throw new Error("No token was provided");try{return await await gt(`/domains/config?api-token=${t}`)||null}catch{return null}}var vp=Ie('<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 up(t,e){const a=L(e,"expanded",3,!1);var i=vp();q(()=>se(i,"expanded",a())),m(t,i)}var pp=Ie('<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 fp(t){var e=pp();m(t,e)}function hp(t,e,a){e(!e()),a()(e())}var gp=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 bn(t,e){ae(e,!0);let a=L(e,"active",15),i=L(e,"fullwidth",3,!1),n=L(e,"label",3,""),l=L(e,"onclick",3,()=>null);var o=gp();o.__click=[hp,a,l];var s=x(o),d=x(s);qe(d,()=>e.children),q(()=>{le(o,"aria-label",`Toggle ${n()??""} ${(a()?"off":"on")??""}`),se(o,"active",a()),se(o,"fullwidth",i())}),m(t,o),ie()}ue(["click"]);var mp=T('<input type="text" autocomplete="off" class="svelte-k0rhfj">');function _n(t,e){let a=L(e,"value",15),i=L(e,"label",3,""),n=L(e,"name",3,""),l=L(e,"readonly",3,!1),o=L(e,"oninput",3,()=>null);var s=mp();s.__input=function(...d){var c;(c=o())==null||c.apply(this,d)},q(()=>{le(s,"name",n()),le(s,"aria-label",i()),le(s,"placeholder",i()),s.readOnly=l()}),Ca(s,a),m(t,s)}ue(["input"]);var yp=Ie('<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>'),bp=Ie('<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>'),_p=Ie('<svg width="18" height="18" viewBox="0 0 18 18" fill="none"><!></svg>');function br(t,e){const a=L(e,"align",3,"bottom");var i=_p(),n=x(i);{var l=s=>{var d=yp();m(s,d)},o=s=>{var d=he(),c=Z(d);{var v=u=>{var p=bp();m(u,p)};O(c,u=>{a()==="center"&&u(v)},!0)}m(s,d)};O(n,s=>{a()==="bottom"?s(l):s(o,!1)})}m(t,i)}var xp=T("<div><!></div>");function Wt(t,e){ae(e,!0);const a=L(e,"type",3,"error"),i=L(e,"fixed",3,!1);var n=xp(),l=x(n);qe(l,()=>e.children),q(()=>{Ta(n,`alert ${a()??""} svelte-df5n87`),se(n,"fixed",i())}),m(t,n),ie()}var wp=T("<!> In-text Playlink",1),kp=T("<!> Bottom Playlink",1),Sp=T('<div class="alert svelte-1shw34x"><!></div>'),Tp=(t,e)=>e().after_article_style="playlinks",Cp=(t,e)=>e().after_article_style="modal_button",zp=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>'),Ep=T('<div class="switches svelte-1shw34x"><!> <!></div> <!> <!>',1);function jp(t,e){ae(e,!0);const a=L(e,"linkInjection",7),i=N(()=>a().after_article_style==="modal_button");var n=Ep(),l=Z(n),o=x(l),s=N(()=>a().in_text??!0);bn(o,{fullwidth:!0,get active(){return r(s)},onclick:h=>{a().in_text=h,a().manual=!0},label:"In-text Playlink",children:(h,f)=>{var _=wp(),g=Z(_);br(g,{align:"center"}),m(h,_)},$$slots:{default:!0}});var d=k(o,2),c=N(()=>a().after_article??!1);bn(d,{fullwidth:!0,get active(){return r(c)},onclick:h=>{a().after_article=h,a().manual=!0},label:"Bottom Playlink",children:(h,f)=>{var _=kp(),g=Z(_);br(g,{align:"bottom"}),m(h,_)},$$slots:{default:!0}});var v=k(l,2);{var u=h=>{var f=Sp(),_=x(f);Wt(_,{type:"warning",children:(g,b)=>{var S=Me("At least one layout option must be selected for the playlink to be visible.");m(g,S)},$$slots:{default:!0}}),Te(3,f,()=>ja,()=>({duration:200})),m(h,f)};O(v,h=>{hi(a())||h(u)})}var p=k(v,2);{var y=h=>{var f=zp(),_=k(x(f),2),g=x(_);g.__click=[Tp,a];var b=k(g,2);b.__click=[Cp,a];var S=k(b,2);q(()=>{le(_,"aria-activedescendant",`playlinks-${(r(i)?"after-article":"in-text")??""}`),le(g,"aria-selected",!r(i)||null),se(g,"active",!r(i)),le(b,"aria-selected",r(i)||null),se(b,"active",r(i)),se(S,"right",r(i))}),Te(3,f,()=>ja,()=>({duration:100})),m(h,f)};O(p,h=>{a().after_article&&h(y)})}m(t,n),ie()}ue(["click"]);var Ip=Ie('<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 Pp(t){var e=Ip();m(t,e)}var Ap=(t,e)=>j(e,!r(e)),Mp=T('<div class="content svelte-zpsd2z"><!></div>'),qp=T('<div class="context-menu svelte-zpsd2z"><button class="svelte-zpsd2z"><!></button> <!></div>');function Lp(t,e){ae(e,!0);let a=W(!1),i=W(null);function n(v){var p;const u=v.target;u===r(i)||(p=r(i))!=null&&p.contains(u)||j(a,!1)}var l=qp();ce("click",_e,n);var o=x(l);o.__click=[Ap,a];var s=x(o);Pp(s),Qe(o,v=>j(i,v),()=>r(i));var d=k(o,2);{var c=v=>{var u=Mp(),p=x(u);qe(p,()=>e.children),Te(1,u,()=>oa,()=>({duration:150,y:5})),m(v,u)};O(d,v=>{r(a)&&v(c)})}q(()=>{le(o,"aria-label",e.ariaLabel),le(o,"aria-expanded",r(a))}),m(t,l),ie()}ue(["click"]);function Np(t,e,a,i){var n,l;r(e)&&(fe(pe.ManualReport,a.linkInjection.title_details,{report_reason:r(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:(l=a.linkInjection.manual)==null?void 0:l.toString()}),j(i,!0),setTimeout(a.onclose,3e3))}var Dp=(t,e,a)=>j(e,$(a())),Op=T('<option class="svelte-o5qkco"> </option>'),Rp=T('<div class="sent svelte-o5qkco">Report has been sent, thank you! Closing window...</div>'),Bp=T('<button class="submit svelte-o5qkco">Send report</button>'),Hp=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 Fp(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=W(""),n=W(!1);ri(t,{get onclose(){return e.onclose},children:(l,o)=>{var s=Hp(),d=x(s);et(d,(C,A)=>xe==null?void 0:xe(C,A),()=>2);var c=k(d,2),v=x(c),u=k(x(v)),p=k(v,2),y=k(x(p));q(()=>K(y,`:
|
|
10
10
|
${Ol(e.linkInjection.sentence,e.linkInjection.title,100)??""}`));var h=k(c,4),f=x(h);f.value=((f.__value="")==null,"");var _=k(f);ze(_,17,()=>a,Pe,(C,A)=>{let V=()=>r(A).value,M=()=>r(A).label;var z=Op(),P={};z.__click=[Dp,i,V];var H=x(z);q(()=>{P!==(P=V())&&(z.value=(z.__value=V())==null?"":V()),K(H,M())}),m(C,z)});var g=k(h,2),b=x(g);{var S=C=>{var A=Rp();Te(1,A,()=>mt,()=>({duration:200})),m(C,A)},E=C=>{var A=Bp();A.__click=[Np,i,e,n],q(()=>A.disabled=!r(i)),m(C,A)};O(b,C=>{r(n)?C(S):C(E,!1)})}q(()=>K(u,`: ${e.linkInjection.title??""}`)),ns(h,()=>r(i),C=>j(i,C)),m(l,s)},$$slots:{default:!0}}),ie()}ue(["click"]);function Vp(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 Wp(t,e){const a=pt(Fp,{target:document.body,props:{linkInjection:e(),onclose:()=>Ot(a)}})}var Up=(t,e)=>j(e,!r(e)),Gp=T('<button class="expand-sentence svelte-lo6h85"> </button>'),Kp=T('<button class="context-menu-action svelte-lo6h85">Remove</button> <button class="context-menu-action svelte-lo6h85">Report issue</button>',1),Yp=(t,e)=>j(e,!r(e)),Zp=T('<div class="warning svelte-lo6h85" aria-label="Invalid playlink settings"><!></div>'),Jp=T('<div class="actions svelte-lo6h85"><button class="expand svelte-lo6h85" aria-label="Expand"><!></button> <!> <!></div>'),Xp=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>'),Qp=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 $p(t,e){ae(e,!0);const a=L(e,"linkInjection",15),i=L(e,"onremove",3,()=>null),n=L(e,"onhighlight",3,()=>null),l=N(()=>a()||{}),o=N(()=>r(l).key),s=N(()=>r(l).sentence),d=N(()=>r(l).title_details),c=N(()=>r(l).failed),v=N(()=>r(l).failed_message),u=N(()=>r(l).inactive),p=N(()=>r(d)),y=N(()=>Ol(a().sentence,a().title,60));let h=W(!1),f=W(!1),_=W(!1),g=W(null);Fe(()=>{r(c)&&fe(pe.InjectionFailed,r(p),{phrase:a().title,sentence:r(s)})});function b(Y=!0){E().forEach(de=>{de.classList.toggle("playpilot-injection-highlight",Y)})}function S(Y){let re=Y.target,de=re==null?void 0:re.dataset.playpilotInjectionKey;re&&!de&&(re=re.closest(`[data-playpilot-injection-key="${r(o)}"]`),de=re==null?void 0:re.dataset.playpilotInjectionKey),j(_,de===r(o)),r(g)&&r(_)&&n()(r(g))}function E(){const Y=Array.from(document.querySelectorAll(`[data-playpilot-injection-key="${r(o)}"]`));return Y.length?Y:fi(Vt()).filter(re=>tt(re.innerText).includes(tt(a().sentence)))||[]}var C=Qp();ce("mouseover",_e,S),C.__click=[Vp,b,E];var A=x(C),V=x(A);q(()=>le(V,"src",sa(r(p).standing_poster)));var M=k(V,2),z=x(M),P=x(z),H=k(z,2),U=x(H);Go(U,()=>(r(f)?r(s):r(y)).replace(a().title,`<em>${a().title}</em>`));var R=k(U,2);{var G=Y=>{var re=Gp();re.__click=[Up,f];var de=x(re);q(()=>K(de,r(f)?"Less":"More")),m(Y,re)};O(R,Y=>{r(y).length<r(s).length&&Y(G)})}var D=k(M,2),I=x(D);Lp(I,{ariaLabel:"More options",children:(Y,re)=>{var de=Kp(),we=Z(de);we.__click=function(...me){var J;(J=i())==null||J.apply(this,me)};var te=k(we,2);te.__click=[Wp,a],m(Y,de)},$$slots:{default:!0}});var F=k(A,2),Q=x(F);{var X=Y=>{Wt(Y,{children:(re,de)=>{var we=Me();q(()=>K(we,r(v))),m(re,we)},$$slots:{default:!0}})},B=Y=>{var re=Jp(),de=x(re);de.__click=[Yp,h];var we=x(de);up(we,{get expanded(){return r(h)}});var te=k(de,2);{var me=Ae=>{var We=Zp(),Ue=x(We);fp(Ue),Te(3,We,()=>mt,()=>({duration:100})),m(Ae,We)};O(te,Ae=>{hi(a())||Ae(me)})}var J=k(te,2),oe=N(()=>r(u)?"Inactive":"Visible"),ye=N(()=>!a().inactive);bn(J,{get label(){return r(oe)},get active(){return r(ye)},onclick:Ae=>{a(a().inactive=!Ae,!0),a(a().manual=!0,!0)},children:(Ae,We)=>{var Ue=Me();q(()=>K(Ue,r(u)?"Inactive":"Visible")),m(Ae,Ue)},$$slots:{default:!0}}),q(()=>le(de,"aria-expanded",r(h))),m(Y,re)};O(Q,Y=>{r(c)?Y(X):Y(B,!1)})}var ne=k(Q,2);{var ee=Y=>{var re=Xp(),de=k(x(re),2);_n(de,{oninput:()=>a(a().manual=!0,!0),label:"Playlink URL",get value(){return a().playpilot_url},set value(me){a(a().playpilot_url=me,!0)}});var we=k(de,4),te=x(we);jp(te,{get linkInjection(){return a()}}),Te(3,re,()=>ja,()=>({duration:100})),m(Y,re)};O(ne,Y=>{r(h)&&Y(ee)})}Qe(C,Y=>j(g,Y),()=>r(g)),q(()=>{se(C,"highlighted",r(_)),se(C,"inactive",r(u)),K(P,r(p).title)}),ce("mouseenter",C,()=>b(!0)),ce("mouseleave",C,()=>b(!1)),ce("error",V,({target:Y})=>Y.src=Qi),Te(6,C,()=>ja,()=>({duration:200})),m(t,C),ie()}ue(["click"]);var ef=T('<button class="drag-handle svelte-19mcc5g" aria-label="Move editor"></button>');function tf(t,e){ae(e,!0);let a=L(e,"element",7),i=L(e,"position",23,()=>({x:0,y:0})),n=L(e,"limit",19,()=>({x:0,y:0})),l=L(e,"onchange",3,()=>null),o=!1,s={x:0,y:0},d=i();Fe(()=>{c(i().x,i().y)});function c(f,_){const g=window.innerWidth,b=window.innerHeight,S=a().clientWidth,E=a().clientHeight;f=Math.min(Math.max(f,n().x),g-S-n().x),_=Math.min(Math.max(_,n().y),b-E-n().y),a().style.right=f+"px",a().style.bottom=Math.max(_,n().y)+"px",i({x:f,y:_}),l()(i())}function v(f){var _,g;return{x:f.pageX||((_=f.touches)==null?void 0:_[0].pageX)||0,y:f.pageY||((g=f.touches)==null?void 0:g[0].pageY)||0}}function u(f){o=!0,s=v(f),d=i()}function p(f){if(!o)return;const _=v(f),g=_.x-s.x,b=_.y-s.y,S=d.x-g,E=d.y-b;c(S,E)}function y(){o&&(o=!1)}var h=ef();ce("mousemove",_e,p),ce("touchmove",_e,p,void 0,!0),ce("mouseup",_e,y),ce("touchend",_e,y),ce("resize",_e,()=>c(i().x,i().y)),h.__mousedown=u,h.__touchstart=u,m(t,h),ie()}ue(["mousedown","touchstart"]);var af=T('<button class="resize-handle svelte-sxkuxk" aria-label="Move editor"></button>');function nf(t,e){ae(e,!0);let a=L(e,"element",7),i=L(e,"height",7,200),n=L(e,"onchange",3,()=>null);const l=16;let o=!1,s=0,d=i();Fe(()=>{i()&&c(i())});function c(f){const _=window.getComputedStyle(a()).minHeight||"0",g=Math.max(parseInt(_),Math.min(f,y()));a().style.height=`${g}px`,i(g),n()(g)}function v(f){var _,g;o=!0,s=f.pageY||((g=(_=f.touches)==null?void 0:_[0])==null?void 0:g.pageY)||0,d=a().clientHeight}function u(f){var S,E;if(!o)return;const _=f.pageY||((E=(S=f.touches)==null?void 0:S[0])==null?void 0:E.pageY)||0,g=s-_,b=d+g;c(b)}function p(){o=!1}function y(){const f=window.innerHeight-a().getBoundingClientRect().bottom;return Math.max(window.innerHeight-l*2-f,0)}var h=af();ce("mousemove",_e,u),ce("touchmove",_e,u,void 0,!0),ce("mouseup",_e,p),ce("touchend",_e,p),ce("resize",_e,()=>{i()&&c(i())}),h.__mousedown=v,h.__touchstart=v,m(t,h),ie()}ue(["mousedown","touchstart"]);function lf(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 c=Math.min(t.anchorOffset,t.focusOffset)+i;return{start:c,end:c+a.length}}const n=t.getRangeAt(0),l=n.cloneRange();l.selectNodeContents(e),l.setEnd(n.startContainer,n.startOffset);const s=l.toString().length+i,d=s+a.length;return{start:s,end:d}}var rf=Ie('<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 of(t){var e=rf();m(t,e)}var sf=Ie('<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 cf(t){var e=sf();m(t,e)}var df=T("<div> </div>"),vf=t=>t.stopImmediatePropagation(),uf=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 _r(t,e){ae(e,!0);const a=L(e,"hoverable",3,!0),i=L(e,"onclick",3,()=>null);var n=uf();n.__click=function(...C){var A;(A=i())==null||A.apply(this,C)};var l=x(n);q(()=>le(l,"src",sa(e.title.standing_poster)));var o=k(l,2),s=x(o),d=x(s),c=k(s,2),v=x(c),u=x(v);oi(u,{});var p=k(u),y=k(v,2),h=x(y),f=k(y,2),_=x(f),g=k(f,2);{var b=C=>{var A=df(),V=x(A);q(()=>K(V,`${e.title.length??""} min`)),m(C,A)};O(g,C=>{e.title.length&&C(b)})}var S=k(o,2);q(()=>le(S,"href",ci(e.title))),S.__click=[vf];var E=x(S);cf(E),q(()=>{se(n,"hoverable",a()),K(d,e.title.title),K(p,` ${e.title.imdb_score??""}`),K(h,e.title.year),K(_,e.title.type)}),ce("error",l,({target:C})=>C.src=Qi),m(t,n),ie()}ue(["click"]);var pf=T('<em class="empty svelte-s0qvcb">No results found</em>'),ff=T('<div class="results svelte-s0qvcb" data-testid="search-results"></div>'),hf=T('<div class="selected svelte-s0qvcb"><!></div>'),gf=T('<div class="search svelte-s0qvcb"><!> <!> <!></div>');function mf(t,e){ae(e,!0);let a=L(e,"onselect",3,()=>null),i=L(e,"query",15),n=W($([])),l=W(null),o=W(!1);Ze(()=>{i()&&s(i())});async function s(f){j(o,!0);try{j(n,$(await ar(f)))}finally{j(o,!1)}}function d(f){i(f.title),j(l,$(f)),a()(f)}var c=gf(),v=x(c);_n(v,{oninput:()=>j(l,null),name:"search",label:"Search...",get value(){return i()},set value(f){i(f)}});var u=k(v,2);{var p=f=>{var _=ff();ze(_,21,()=>r(n),g=>g.sid,(g,b)=>{_r(g,{get title(){return r(b)},onclick:()=>d(r(b))})},g=>{var b=he(),S=Z(b);{var E=C=>{var A=pf();m(C,A)};O(S,C=>{r(o)||C(E)})}m(g,b)}),m(f,_)};O(u,f=>{i()&&!r(l)&&f(p)})}var y=k(u,2);{var h=f=>{var _=hf(),g=x(_);_r(g,{get title(){return r(l)},hoverable:!1}),m(f,_)};O(y,f=>{r(l)&&f(h)})}m(t,c),ie()}function yf(t,e,a,i,n,l,o,s){if(!r(e)||!r(a))return;const d=r(a).type==="movie"?"movie":"show",c=Il+`/${d}/${r(a).slug}`,v={sid:r(a).sid,title:r(e),sentence:r(i),phrase_before:r(n),phrase_after:r(l),playpilot_url:c,key:yr(r(a).sid),title_details:r(a),manual:!0};o.onsave(v),s()()}var bf=T('<div class="error svelte-q5prge"><!></div>'),_f=T('<label for="text" class="svelte-q5prge">Paired title</label> <!>',1),xf=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 wf(t,e){ae(e,!0);const a=L(e,"pageText",3,""),i=L(e,"onclose",3,()=>null);let n=W(""),l=W(""),o=W(null),s=W(""),d=W(""),c=W(""),v=W("");Fe(u);function u(){const z=window.getSelection();if(!(z!=null&&z.anchorNode)||z.anchorNode.parentElement&&!Vt().contains(z.anchorNode.parentElement))return;const P=z.toString().trim();if(!P)return;j(c,""),j(n,$(P));const H=z.getRangeAt(0).cloneContents();if(Array.from(H.childNodes).filter(X=>{var B;return(B=X.textContent)==null?void 0:B.trim()}).find(X=>{var B;return X.nodeName==="A"||((B=X.querySelector)==null?void 0:B.call(X,"a"))})){j(c,"Selection is or contains a link. Injections can not be created around already existing links.");return}j(v,$(r(n)));const{node:R,sentence:G}=p(z,P);if(!R)return;j(l,$(G));const{start:D,end:I}=lf(z,R);(X=>(j(d,$(X.before)),j(s,$(X.after))))(Rl(R,D,I)),G.includes(r(d))||j(d,""),G.includes(r(s))||j(s,"");const F=z.getRangeAt(0).commonAncestorContainer.textContent,Q=tt(a());(!F||!Q.includes(tt(F)))&&j(c,"Selection was not inside of given content")}function p(z,P){const H=z.getRangeAt(0),U=Vt();let R=H.startContainer;for(;(R.textContent||"").length<=P.length*3&&R.parentNode&&R.parentNode.textContent!==U.textContent;)R=R.parentNode;if(!R||!R.textContent)return{node:null,sentence:""};const G=R.textContent,D=y(R,H.startContainer,H.startOffset),I=y(R,H.endContainer,H.endOffset),F=G.slice(0,D).lastIndexOf("."),Q=G.slice(I).match(/[.!?]/),X=Q?I+Q.index:G.length,B=F===-1?0:F+1,ne=X,ee=G.slice(B,ne+1).trim();return{node:R,sentence:ee}}function y(z,P,H){let U=0;const R=z,G=D=>{var I;if(D===P)return U+=H,!0;D.nodeType===Node.TEXT_NODE&&(U+=((I=D.textContent)==null?void 0:I.length)||0);for(let F=D.firstChild;F;F=F.nextSibling)if(G(F))return!0;return!1};return G(R),U}function h(z){var P,H;j(o,$(z)),(H=(P=window.getSelection())==null?void 0:P.removeAllRanges)==null||H.call(P)}var f=xf();ce("mouseup",_e,u);var _=x(f),g=x(_);li(g,{get onclick(){return i()},size:"24px",children:(z,P)=>{of(z)},$$slots:{default:!0}});var b=k(g,2);et(b,(z,P)=>xe==null?void 0:xe(z,P),()=>2);var S=k(_,6);_n(S,{get value(){return r(n)},label:"Select text on the page",name:"selected-text",readonly:!0});var E=k(S,2);{var C=z=>{var P=bf(),H=x(P);Wt(H,{children:(U,R)=>{var G=Me();q(()=>K(G,r(c))),m(U,G)},$$slots:{default:!0}}),m(z,P)};O(E,z=>{r(c)&&z(C)})}var A=k(E,2);{var V=z=>{var P=_f(),H=k(Z(P),2);la(H,()=>r(l)+r(n),U=>{mf(U,{onselect:h,get query(){return r(v)},set query(R){j(v,$(R))}})}),m(z,P)};O(A,z=>{r(c)||z(V)})}var M=k(A,2);M.__click=[yf,n,o,l,d,s,e,i],q(()=>M.disabled=!r(n)||!r(o)),m(t,f),ie()}ue(["click"]);const xn="PlayPilotEditorialSessionId",xr=5e3,kf=xr*2;async function Sf(t){const{ai_enabled:e,injections_enabled:a,ai_last_run:i,session_id:n,session_last_ping:l}=await va(t),o=kr(n||null,l||null),s={ai_enabled:e,ai_last_run:i,injections_enabled:a,session_id:n,session_last_ping:l};return o?await wr(t):s}async function wr(t){const e=Sr(),a=new Date(Date.now()).toISOString(),i={session_id:e,session_last_ping:a.toString()},{ai_enabled:n,injections_enabled:l,ai_last_run:o}=await va(t,{params:i});return{ai_enabled:n,ai_last_run:o,injections_enabled:l,...i}}function kr(t,e){if(!t||!e)return!0;const a=Date.now(),i=new Date(e),n=Sr();return a-i.getTime()>kf?!0:n===t}function Sr(){return sessionStorage.getItem(xn)||Tf()}function Tf(){const t=sessionStorage.getItem(xn)||ql();return sessionStorage.setItem(xn,t),t}function Cf(t,e,a){wr(e()),a()()}var zf=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),Ef=T('<div class="alert svelte-2m2urs"><!></div>');function jf(t,e){ae(e,!0);const a=L(e,"pageText",3,""),i=L(e,"onpoll",3,()=>null),n=L(e,"onallow",3,()=>null),l=L(e,"ondisallow",3,()=>null),o=L(e,"ontakeover",3,()=>null);let s=null,d=W(!0);Fe(()=>(c(),()=>{s&&clearInterval(s)}));function c(){v(),s=setInterval(v,xr)}async function v(){const h=await Sf(a());h&&(j(d,$(kr(h.session_id||null,h.session_last_ping||null))),r(d)?n()():l()(),i()({injectionsEnabled:!!h.injections_enabled,aiEnabled:!!h.ai_enabled}))}var u=he(),p=Z(u);{var y=h=>{var f=Ef(),_=x(f);Wt(_,{type:"warning",children:(g,b)=>{var S=zf(),E=k(Z(S),2);E.__click=[Cf,a,o],m(g,S)},$$slots:{default:!0}}),m(h,f)};O(p,h=>{r(d)||h(y)})}m(t,u),ie()}ue(["click"]);var If=Ie('<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 Pf(t){var e=If();m(t,e)}var Af=T('<strong class="svelte-o59195">AI processing is disabled.</strong> Enable AI from the <a href="https://partner.playpilot.net" class="svelte-o59195">Partner Portal</a>',1),Mf=T('<span class="svelte-o59195">.</span>'),qf=T(`<strong class="svelte-o59195">AI links are currently processing.</strong> This can take several minutes. We'll insert all found injections once ready. <div class="message svelte-o59195"> <span class="ellipses svelte-o59195"></span></div> <div class="loading-bar svelte-o59195"><div class="loading-bar-progress svelte-o59195"><div class="loading-bar-fill svelte-o59195" data-testid="loading-bar"></div></div> <div class="loading-bar-label svelte-o59195"> </div></div>`,1),Lf=(t,e)=>j(e,!0),Nf=T('<p class="svelte-o59195"><strong class="svelte-o59195">AI has finished processing.</strong> <br class="svelte-o59195"> <!></p> <button class="dismiss svelte-o59195">Dismiss</button>',1),Df=T('<div class="animator svelte-o59195" data-test-id="animator"></div>'),Of=T('<div class="ai-indicator svelte-o59195" data-testid="ai-indicator"><div class="content svelte-o59195"><div class="icon svelte-o59195"><!></div> <div class="svelte-o59195"><!></div></div> <div class="border svelte-o59195"><!></div></div>');function Rf(t,e){const a=L(e,"aiRunning",3,!1),i=L(e,"aiEnabled",3,!1),n=L(e,"message",3,""),l=L(e,"percentage",3,0),o=L(e,"aiInjectionsCount",3,0),s=o();let d=W(!1);var c=he(),v=Z(c);{var u=p=>{var y=Of(),h=x(y),f=x(h),_=x(f);Pf(_);var g=k(f,2),b=x(g);{var S=M=>{var z=Af();m(M,z)},E=M=>{var z=he(),P=Z(z);{var H=R=>{var G=qf(),D=k(Z(G),2),I=x(D),F=k(I);ze(F,20,()=>({length:3}),Pe,(re,de)=>{var we=Mf();m(re,we)});var Q=k(D,2),X=x(Q),B=x(X);const ne=N(()=>`${Math.max(l(),3)??""}%`);q(()=>Ee(B,"width",r(ne)));var ee=k(X,2),Y=x(ee);q(()=>K(Y,`${Math.floor(l())??""}%`)),q(()=>K(I,`${n()??""} `)),m(R,G)},U=R=>{var G=Nf(),D=Z(G),I=k(x(D),4);{var F=B=>{var ne=Me("No new injections where found.");m(B,ne)},Q=B=>{var ne=Me();q(()=>K(ne,`${o()??""} Injections where found and added to the page.`)),m(B,ne)};O(I,B=>{s===o()?B(F):B(Q,!1)})}var X=k(D,2);X.__click=[Lf,d],m(R,G)};O(P,R=>{a()?R(H):R(U,!1)},!0)}m(M,z)};O(b,M=>{i()?M(E,!1):M(S)})}var C=k(h,2),A=x(C);{var V=M=>{var z=Df();m(M,z)};O(A,M=>{a()&&M(V)})}q(()=>se(y,"running",a())),m(p,y)};O(v,p=>{r(d)||p(u)})}m(t,c)}ue(["click"]);async function Bf(t,e,a,i,n,l,o){try{j(e,!0),j(a,!1),i(await cp(i(),n())),j(l,$(r(o)))}catch{j(a,!0)}finally{j(e,!1)}}var Hf=T('<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:400,600,700">'),Ff=T('<div class="handles svelte-1dzk6rn"><div class="handle svelte-1dzk6rn"><!></div> <div class="handle svelte-1dzk6rn"><!></div></div>'),Vf=T('<div class="loading svelte-1dzk6rn">Loading...</div>'),Wf=T('<div class="bubble svelte-1dzk6rn"> </div> <!>',1),Uf=T(`<strong>Playlinks are currently not published.</strong> Visitors to this page will not see any of the injected links.
|
|
11
11
|
Publish playlinks from the <a href="https://partner.playpilot.net">Partner Portal.</a>`,1),Gf=T('<div class="alert svelte-1dzk6rn"><!></div>'),Kf=T('<div class="error svelte-1dzk6rn"><!></div>'),Yf=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>'),Zf=T('<button class="save svelte-1dzk6rn"> </button>'),Jf=T('<!> <!> <div class="items svelte-1dzk6rn"></div> <!>',1),Xf=T("<!> <!> <!>",1),Qf=T('<div class="panel playpilot-styled-scrollbar svelte-1dzk6rn"><!></div>'),$f=T('<section class="editor playpilot-styled-scrollbar svelte-1dzk6rn"><!> <header class="header svelte-1dzk6rn"><div class="heading svelte-1dzk6rn">Playlinks</div> <!></header> <!> <!></section>');function eh(t,e){ae(e,!0);let a=L(e,"linkInjections",15),i=L(e,"pageText",3,""),n=L(e,"loading",3,!1),l=L(e,"injectionsEnabled",7,!1),o=L(e,"aiStatus",23,()=>({})),s=L(e,"onreinitialize",3,()=>null);const d="editor-position",c="editor-height",v=JSON.parse(localStorage.getItem(d)||'{ "x": 0, "y": 0 }'),u=parseInt(localStorage.getItem(c)||"0");let p=W(null),y=W(!1),h=W(!1),f=W(!1),_=W(!0),g=W(0),b=W("");const S=N(()=>Oa(o().aiEnabled,!1)),E=N(()=>Oa(o().aiRunning,!1)),C=N(()=>JSON.stringify(a())),A=N(()=>!r(E)&&r(_)),V=N(()=>r(b)&&r(b)!==r(C)),M=N(()=>a().filter(J=>J.title_details&&!J.removed&&!J.duplicate&&(J.manual||!J.manual&&!J.failed))),z=N(()=>H(r(M))),P=N(()=>!n()&&Xe(()=>o().aiRunning));Ze(()=>{n()||Xe(()=>{requestAnimationFrame(()=>j(b,$(r(C)))),I()})});function H(J){return J.sort((oe,ye)=>oe.failed!==ye.failed?oe.failed?1:-1:oe.title_details.title.localeCompare(ye.title_details.title))}function U(J,oe){localStorage.setItem(J,oe)}function R(J){const oe=a().findIndex(ye=>ye.key===J);a(a()[oe].manual=!0,!0),a(a()[oe].removed=!0,!0),a([...a()])}function G(J){if(!r(p))return;const oe=J.offsetTop,ye=oe+J.offsetHeight,Ae=r(p).scrollTop,We=Ae+r(p).clientHeight;oe>=Ae&&ye<=We||r(p).scrollTo({top:oe-r(p).clientHeight/2,behavior:"smooth"})}function D(J){const oe=J.target;j(g,$(oe.scrollTop))}function I(){const J={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:r(M).length};fe(pe.TotalInjectionsCount,null,J)}var F=$f();Bo(J=>{var oe=Hf();m(J,oe)});var Q=x(F);{var X=J=>{var oe=Ff(),ye=x(oe),Ae=x(ye);nf(Ae,{get element(){return r(p)},height:u,onchange:rt=>U(c,JSON.stringify(rt))});var We=k(ye,2),Ue=x(We);tf(Ue,{get element(){return r(p)},position:v,limit:{x:16,y:16},onchange:rt=>U(d,JSON.stringify(rt))}),m(J,oe)};O(Q,J=>{r(p)&&!n()&&J(X)})}var B=k(Q,2),ne=x(B);et(ne,J=>xe==null?void 0:xe(J));var ee=k(ne,2);{var Y=J=>{var oe=Vf();m(J,oe)},re=J=>{var oe=he(),ye=Z(oe);{var Ae=We=>{var Ue=Wf(),rt=Z(Ue),Ke=x(rt),Ut=k(rt,2);li(Ut,{onclick:()=>j(y,!0),size:"24px","aria-label":"Add manual injection",children:(Gt,yi)=>{var pa=Me("+");m(Gt,pa)},$$slots:{default:!0}}),q(()=>{le(rt,"aria-label",`${r(M).length??""} found playlinks`),K(Ke,r(M).length)}),m(We,Ue)};O(ye,We=>{r(A)&&We(Ae)},!0)}m(J,oe)};O(ee,J=>{n()?J(Y):J(re,!1)})}var de=k(B,2);{var we=J=>{var oe=Xf(),ye=Z(oe);jf(ye,{get pageText(){return i()},onallow:()=>j(_,!0),ondisallow:()=>j(_,!1),get ontakeover(){return s()},onpoll:Ke=>{l(Ke.injectionsEnabled),o({...o(),aiEnabled:Ke.aiEnabled})}});var Ae=k(ye,2);{var We=Ke=>{Rf(Ke,Cl(o,{get aiInjectionsCount(){return vr(a()).aiInjections.length}}))};O(Ae,Ke=>{r(_)&&(r(P)||!r(S))&&Ke(We)})}var Ue=k(Ae,2);{var rt=Ke=>{var Ut=Jf(),Gt=Z(Ut);{var yi=Ne=>{var De=Gf(),At=x(De);Wt(At,{type:"warning",children:(Kt,wh)=>{var kn=Uf();m(Kt,kn)},$$slots:{default:!0}}),m(Ne,De)};O(Gt,Ne=>{l()||Ne(yi)})}var pa=k(Gt,2);{var wn=Ne=>{var De=Kf(),At=x(De);Wt(At,{children:(Kt,wh)=>{var kn=Me("Something went wrong, check your links below.");m(Kt,kn)},$$slots:{default:!0}}),Te(7,De,()=>ja,()=>({duration:150})),m(Ne,De)};O(pa,Ne=>{r(f)&&Ne(wn)})}var Tr=k(pa,2);ze(Tr,21,()=>r(z),Ne=>Ne.key,(Ne,De)=>{const At=N(()=>a().findIndex(Kt=>Kt.key===r(De).key));$p(Ne,{onremove:()=>R(r(De).key),onhighlight:G,get linkInjection(){return a()[r(At)]},set linkInjection(Kt){a(a()[r(At)]=Kt,!0)}})},Ne=>{var De=Yf();m(Ne,De)});var _h=k(Tr,2);{var xh=Ne=>{var De=Zf();De.__click=[Bf,h,f,a,i,b,C];var At=x(De);q(()=>{De.disabled=r(h),K(At,r(h)?"Saving...":"Save links")}),Te(1,De,()=>mt,()=>({duration:100})),m(Ne,De)};O(_h,Ne=>{r(V)&&a().length&&r(_)&&Ne(xh)})}m(Ke,Ut)};O(Ue,Ke=>{r(A)&&Ke(rt)})}m(J,oe)};O(de,J=>{n()||J(we)})}var te=k(de,2);{var me=J=>{var oe=Qf(),ye=x(oe);wf(ye,{get pageText(){return i()},onclose:()=>j(y,!1),onsave:Ae=>a().push(Ae)}),q(()=>Ee(oe,"top",`${r(g)??""}px`)),Te(3,oe,()=>oa,()=>({x:Math.min(window.innerWidth,320),duration:200,opacity:1})),m(J,oe)};O(te,J=>{r(y)&&J(me)})}Qe(F,J=>j(p,J),()=>r(p)),q(()=>{se(F,"panel-open",r(y)),se(F,"loading",n())}),ce("scroll",F,D),m(t,F),ie()}ue(["click"]);var th=Ie('<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 ah(t){var e=th();m(t,e)}var ih=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 nh(t,e){var a=ih(),i=x(a);i.__click=function(...s){var d;(d=e.onclick)==null||d.apply(this,s)};var n=x(i);ah(n);var l=k(i,2);l.__click=function(...s){var d;(d=e.onclose)==null||d.apply(this,s)};var o=x(l);ln(o,{}),m(t,a)}ue(["click"]);function lh(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,(l,o)=>{if(!o)return;const{purpose:s,eventStatus:d}=l;if(d!=="tcloaded"&&d!=="useractioncomplete")return;const c=v=>s.consents[v]===!0;jl({ads:c(1),pixels:c(1)&&c(7),split_tests:c(9)&&c(10),tracking:c(7)&&c(8),affiliate:c(1)&&c(7)}),e.onchange()})}ie()}var rh=T('<span class="error svelte-o82u5e">The current URL is excluded via the config</span> <hr class="svelte-o82u5e">',1),oh=T('<div class="item svelte-o82u5e"><span class="label"> </span>: <span class="data svelte-o82u5e"> </span></div>'),sh=T('<details><summary class="svelte-o82u5e"> </summary> <!></details>'),ch=(t,e)=>e("card"),dh=(t,e)=>e("top_scroll"),vh=T('<button class="svelte-o82u5e"></button>'),uh=T("<small>You are using the beta version of TPI</small>"),ph=T('<button class="svelte-o82u5e">Use beta script</button>'),fh=(t,e)=>j(e,!1),hh=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> <!> <hr class="svelte-o82u5e"> <button class="svelte-o82u5e">Replace page with explore</button> <hr class="svelte-o82u5e"> <button class="svelte-o82u5e">Close debugger</button></div>');function gh(t,e){ae(e,!0);const a=["tpidebug","debugtpi"],i=[],n=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let l=W($(d())),o=W(!1),s=null;Xi(()=>{s&&clearInterval(s)});function d(){var E,C,A,V,M,z;const g=window.PlayPilotLinkInjections,b=((E=g.evaluated_link_injections)==null?void 0:E.filter(P=>!P.failed))||[],S=((C=g.evaluated_link_injections)==null?void 0:C.filter(P=>P.failed))||[];return{Config:[{label:"Domain",data:g.domain_sid},{label:"Organization",data:g.organization_sid},{label:"HTML selector",data:g.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([P,H])=>({label:P,data:H})),[`Succesful injections (${b.length})`]:b.map(P=>({label:P.title,data:P.sentence})),[`Failed injections (${S.length})`]:S.map(P=>({label:P.title,data:`Reason: ${P.failed_message} | Sentence: ${P.sentence}`})),[`Fetched ads (${((A=g.ads)==null?void 0:A.length)||0})`]:(V=g.ads)==null?void 0:V.map(P=>({label:P.campaign_name,data:P})),[`Tracking events (${((M=g.tracked_events)==null?void 0:M.length)||0})`]:(z=g.tracked_events)==null?void 0:z.map(P=>({label:P.event,data:P.payload}))}}function c(g){r(o)||(i.push(g.key),j(o,$(a.some(b=>i.slice(i.length-b.length,i.length).join("")===b))),s=setInterval(()=>j(l,$(d())),200))}function v(g){window.PlayPilotLinkInjections.ads.unshift({campaign_format:g,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(g){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(dn).forEach(({key:b,numberOfVariants:S})=>{const E=1/S;window.PlayPilotLinkInjections.split_test_identifiers[b]=Math.min(E*g,1)})}function p(){var S,E;const g=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!g)return;(E=(S=window.PlayPilotLinkInjections)==null?void 0:S.destroy)==null||E.call(S);const b=document.createElement("script");for(const C of g.attributes)b.setAttribute(C.name,C.value);b.getAttribute("onload")||b.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),b.src=g.src.replace("link-injection","link-injection@next"),g.insertAdjacentElement("afterend",b),g.remove()}function y(){const g=document.querySelector("main, article");g.innerHTML=`
|
|
12
|
-
<div data-playpilot-explore style="
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
<div data-playpilot-explore style="
|
|
13
|
+
background: white;
|
|
14
|
+
--playpilot-dark: white;
|
|
15
|
+
--playpilot-light: white;
|
|
16
|
+
--playpilot-lighter: #e1e1e1;
|
|
17
|
+
--playpilot-content: #e5e5e5;
|
|
18
|
+
--playpilot-content-light: #c1c1c1;
|
|
19
|
+
--playpilot-text-color: black;
|
|
20
|
+
--playpilot-text-color-alt: black;
|
|
21
|
+
--playpilot-border-radius: 0;
|
|
22
|
+
--playpilot-playlink-border-radius: 0;
|
|
23
|
+
--playpilot-explore-search-border: 1px solid black;
|
|
24
|
+
--playpilot-explore-search-background: white;
|
|
25
|
+
--playpilot-explore-divider-height: 4px;
|
|
26
|
+
--playpilot-explore-divider-background: linear-gradient(to right,#51B3E0,#51B3E0 2.5rem,#E5ADAE 2.5rem,#E5ADAE 5rem,#E5E54F 5rem,#E5E54F 7.5rem,black 7.5rem,black);">
|
|
27
|
+
<div style="padding: 64px 32px; min-height: 100vh; color: black; max-width: 1264px; margin: 0 auto">
|
|
28
|
+
<div class="divider" style="width: 100%; max-width: 600px; height: 0.25rem;background-image: var(--playpilot-explore-divider-background)"></div>
|
|
29
|
+
|
|
30
|
+
<div class="heading" style="margin: 4px 0; font-size: clamp(24px, 5vw, 32px); line-height: 1.5; font-weight: bold; text-transform: uppercase;">
|
|
17
31
|
Streaming Guide
|
|
18
32
|
</div>
|
|
19
33
|
|
|
20
|
-
<div role="status" aria-live="polite"
|
|
21
|
-
<svg
|
|
22
|
-
<div style="margin: 12px 0;">Loading…</div>
|
|
34
|
+
<div role="status" aria-live="polite">
|
|
35
|
+
<svg fill="currentColor" viewBox="0 0 24 24" width="72"><path fill="currentColor" d="M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z"><animateTransform attributeName="transform" type="rotate" dur="500ms" values="0 12 12;360 12 12" repeatCount="indefinite"/></path></svg>
|
|
36
|
+
<div style="margin: 12px 0; font-weight: bold; text-transform: uppercase;">Loading…</div>
|
|
23
37
|
<noscript>Sorry, this page requires JavaScript to be enabled.</noscript>
|
|
24
38
|
</div>
|
|
25
39
|
</div>
|
package/package.json
CHANGED
|
@@ -110,20 +110,34 @@
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
function replacePageWithExplore() {
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<div data-playpilot-explore style="
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
113
|
+
const element = document.querySelector("main, article")
|
|
114
|
+
|
|
115
|
+
element!.innerHTML = `
|
|
116
|
+
<div data-playpilot-explore style="
|
|
117
|
+
background: white;
|
|
118
|
+
--playpilot-dark: white;
|
|
119
|
+
--playpilot-light: white;
|
|
120
|
+
--playpilot-lighter: #e1e1e1;
|
|
121
|
+
--playpilot-content: #e5e5e5;
|
|
122
|
+
--playpilot-content-light: #c1c1c1;
|
|
123
|
+
--playpilot-text-color: black;
|
|
124
|
+
--playpilot-text-color-alt: black;
|
|
125
|
+
--playpilot-border-radius: 0;
|
|
126
|
+
--playpilot-playlink-border-radius: 0;
|
|
127
|
+
--playpilot-explore-search-border: 1px solid black;
|
|
128
|
+
--playpilot-explore-search-background: white;
|
|
129
|
+
--playpilot-explore-divider-height: 4px;
|
|
130
|
+
--playpilot-explore-divider-background: linear-gradient(to right,#51B3E0,#51B3E0 2.5rem,#E5ADAE 2.5rem,#E5ADAE 5rem,#E5E54F 5rem,#E5E54F 7.5rem,black 7.5rem,black);">
|
|
131
|
+
<div style="padding: 64px 32px; min-height: 100vh; color: black; max-width: 1264px; margin: 0 auto">
|
|
132
|
+
<div class="divider" style="width: 100%; max-width: 600px; height: 0.25rem;background-image: var(--playpilot-explore-divider-background)"></div>
|
|
133
|
+
|
|
134
|
+
<div class="heading" style="margin: 4px 0; font-size: clamp(24px, 5vw, 32px); line-height: 1.5; font-weight: bold; text-transform: uppercase;">
|
|
121
135
|
Streaming Guide
|
|
122
136
|
</div>
|
|
123
137
|
|
|
124
|
-
<div role="status" aria-live="polite"
|
|
125
|
-
<svg
|
|
126
|
-
<div style="margin: 12px 0;">Loading…</div>
|
|
138
|
+
<div role="status" aria-live="polite">
|
|
139
|
+
<svg fill="currentColor" viewBox="0 0 24 24" width="72"><path fill="currentColor" d="M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z"><animateTransform attributeName="transform" type="rotate" dur="500ms" values="0 12 12;360 12 12" repeatCount="indefinite"/></path></svg>
|
|
140
|
+
<div style="margin: 12px 0; font-weight: bold; text-transform: uppercase;">Loading…</div>
|
|
127
141
|
<noscript>Sorry, this page requires JavaScript to be enabled.</noscript>
|
|
128
142
|
</div>
|
|
129
143
|
</div>
|