diff --git a/plugins/ValkyrSceneCards/ValkyrSceneCards.css b/plugins/ValkyrSceneCards/ValkyrSceneCards.css index e4a4e59..ee1396b 100644 --- a/plugins/ValkyrSceneCards/ValkyrSceneCards.css +++ b/plugins/ValkyrSceneCards/ValkyrSceneCards.css @@ -1 +1 @@ -.valkyr-scene-card .vsc-performers-list{margin-top:.7142857143rem}.valkyr-scene-card .vsc-performers-list__avatars{display:flex;flex-wrap:wrap;gap:.3571428571rem;list-style:none;margin-bottom:0;padding-left:0}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer{align-items:center;background-color:var(--vsc-performer-avatar-bg-color);border-radius:50%;display:flex;height:var(--vsc-performer-avatar-size);justify-content:center;overflow:hidden;width:var(--vsc-performer-avatar-size)}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer a{align-items:center;display:flex;font-size:var(--vsc-performer-avatar-initials-size);font-weight:700;justify-content:center}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer svg{font-size:calc(var(--vsc-performer-avatar-size)*.6);margin:0;opacity:.2;position:absolute}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer>div{height:100%;width:100%}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .fa-venus{margin-left:2.25px}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .vsc-performer-avatar{height:100%}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .vsc-performer-avatar--profile{height:auto}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .vsc-performer-avatar img{height:100%;object-fit:cover;object-position:top;width:100%}.valkyr-scene-card .vsc-performers-list__text>div{display:inline}.vsc-performer-text-list-popover-data{column-gap:.7142857143rem;display:flex;justify-content:center}.vsc-performer-text-list-popover-data:not(:first-child),.vsc-performer-text-list-popover-name:not(:first-child){margin-top:3px}.valkyr-scene-card .card-section{display:grid;grid-template-rows:[details-top top-line-top] auto [top-line-bottom title-top] auto [title-bottom key-data-top] auto [key-data-bottom description-top] 1fr [description-bottom director-top] auto [director-bottom performers-top] auto [performers-bottom stash-info-top] auto [stash-info-bottom details-bottom];height:100%}.valkyr-scene-card .card-section .vsc-top-line{column-gap:.7142857143rem;display:grid;font-size:var(--vsc-font-sm);grid-template-columns:[top-line-start studio-start] 1fr [studio-end user-data-start] max-content [user-data-end top-line-end];margin-bottom:3px;opacity:var(--vsc-top-line-opacity)}.valkyr-scene-card .card-section .vsc-top-line:empty{display:none}.valkyr-scene-card .card-section .vsc-studio{grid-column:studio-start/studio-end;grid-row:top-line-top/top-line-bottom}.valkyr-scene-card .card-section .vsc-user-data{column-gap:.7142857143rem;display:flex;grid-column:user-data-start/user-data-end;grid-row:top-line-top/top-line-bottom}.valkyr-scene-card .card-section .vsc-o-count,.valkyr-scene-card .card-section .vsc-organized,.valkyr-scene-card .card-section .vsc-play-count,.valkyr-scene-card .card-section .vsc-rating{align-items:center;display:flex}.valkyr-scene-card .card-section .vsc-o-count svg,.valkyr-scene-card .card-section .vsc-organized svg,.valkyr-scene-card .card-section .vsc-play-count svg,.valkyr-scene-card .card-section .vsc-rating svg{margin:0}.valkyr-scene-card .card-section .vsc-o-count svg:not(:last-child),.valkyr-scene-card .card-section .vsc-organized svg:not(:last-child),.valkyr-scene-card .card-section .vsc-play-count svg:not(:last-child),.valkyr-scene-card .card-section .vsc-rating svg:not(:last-child){margin-right:.3571428571rem}.valkyr-scene-card .card-section .vsc-title{grid-row:title-top/title-bottom}.valkyr-scene-card .card-section .vsc-key-data{column-gap:.7142857143rem;display:flex;font-size:var(--vsc-font-sm);grid-row:key-data-top/key-data-bottom;margin-top:3px}.valkyr-scene-card .card-section .vsc-resolution--icon{background-color:var(--vsc-resolution-icon-bg-color);color:var(--vsc-resolution-icon-color);display:inline;font-weight:900;padding:0 4px;user-select:none}.valkyr-scene-card .card-section .vsc-description{flex-grow:1}.valkyr-scene-card .card-section .vsc-description-inner{display:-webkit-box;-webkit-box-orient:vertical;margin-top:.7142857143rem;overflow:hidden;white-space:pre-line}.valkyr-scene-card .card-section .vsc-director{margin-top:.7142857143rem}.valkyr-scene-card .scene-card-preview{background-color:var(--vsc-preview-background-color)}.valkyr-scene-card .scene-card-preview.blurredBackground{background-position:50%;background-size:cover}.valkyr-scene-card .scene-card-preview.blurredBackground .scene-card-preview-image{backdrop-filter:var(--vsc-preview-background-backdrop-filter)}.valkyr-scene-card .scene-card-preview .hide-cursor-on-video{cursor:none!important}:root{--vsc-font-sm:12px;--vsc-performer-avatar-bg-color:rgba(0,0,0,.6);--vsc-performer-avatar-initials-size:18px;--vsc-performer-avatar-size:60px;--vsc-resolution-icon-bg-color:#f5f8fa;--vsc-resolution-icon-color:#30404d;--vsc-top-line-opacity:0.8;--vsc-preview-background-backdrop-filter:blur(10px);--vsc-preview-background-color:#000;--vsc-gender-color--female:#f38cac;--vsc-gender-color--intersex:#c8a2c8;--vsc-gender-color--male:#89cff0;--vsc-gender-color--nonbinary:#c8a2c8;--vsc-gender-color--transfemale:#c8a2c8;--vsc-gender-color--transmale:#c8a2c8;--vsc-gender-color--unknown:#f5f8fa}.valkyr-scene-card{display:flex}.valkyr-scene-card .rating-banner,.valkyr-scene-card .scene-specs-overlay{display:none!important}.valkyr-scene-card .card-section{padding-bottom:.5rem}.valkyr-scene-card .card-section>a:first-child{display:none!important}.valkyr-scene-card .card-popovers:empty{height:0;padding-bottom:27px}.valkyr-scene-card.hide-progress-bar .progress-bar{display:none!important}.slick-slider .valkyr-scene-card{height:100%}.hover-popover-content .valkyr-scene-card{text-align:initial}.vsc-text-hover{padding:.3571428571rem}.vsc-gender-color--female{color:var(--vsc-gender-color--female)!important}.vsc-gender-color--intersex{color:var(--vsc-gender-color--intersex)!important}.vsc-gender-color--male{color:var(--vsc-gender-color--male)!important}.vsc-gender-color--nonbinary{color:var(--vsc-gender-color--nonbinary)!important}.vsc-gender-color--transfemale{color:var(--vsc-gender-color--transfemale)!important}.vsc-gender-color--transmale{color:var(--vsc-gender-color--transmale)!important}.vsc-gender-color--unknown{color:var(--vsc-gender-color--unknown)!important} \ No newline at end of file +.valkyr-scene-card .vsc-performers-list{margin-top:.7142857143rem}.valkyr-scene-card .vsc-performers-list__avatars{display:flex;flex-wrap:wrap;gap:.3571428571rem;list-style:none;margin-bottom:0;padding-left:0}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer{align-items:center;background-color:var(--vsc-performer-avatar-bg-color);border-radius:50%;display:flex;height:var(--vsc-performer-avatar-size);justify-content:center;overflow:hidden;user-select:none;width:var(--vsc-performer-avatar-size)}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .vsc-performer-overflow,.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer a{align-items:center;display:flex;font-size:var(--vsc-performer-avatar-initials-size);font-weight:700;justify-content:center}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer svg{font-size:calc(var(--vsc-performer-avatar-size)*.6);margin:0;opacity:.2;position:absolute}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer>div{height:100%;width:100%}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .fa-venus{margin-left:2.25px}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .vsc-performer-avatar{height:100%}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .vsc-performer-avatar--profile{height:auto}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .vsc-performer-avatar img{height:100%;object-fit:cover;object-position:top;width:100%}.valkyr-scene-card .vsc-performers-list__text>div{display:inline}.valkyr-scene-card .vsc-performers-list .hoverable{border-bottom:var(--vsc-performer-overflow-border-bottom)}.vsc-performer-text-list-popover-data{column-gap:.7142857143rem;display:flex;justify-content:center}.vsc-performer-text-list-popover-data:not(:first-child),.vsc-performer-text-list-popover-name:not(:first-child){margin-top:3px}.valkyr-scene-card .card-section{display:grid;grid-template-rows:[details-top top-line-top] auto [top-line-bottom title-top] auto [title-bottom key-data-top] auto [key-data-bottom description-top] 1fr [description-bottom director-top] auto [director-bottom performers-top] auto [performers-bottom stash-info-top] auto [stash-info-bottom details-bottom];height:100%}.valkyr-scene-card .card-section .vsc-top-line{column-gap:.7142857143rem;display:grid;font-size:var(--vsc-font-sm);grid-template-columns:[top-line-start studio-start] 1fr [studio-end user-data-start] max-content [user-data-end top-line-end];margin-bottom:3px;opacity:var(--vsc-top-line-opacity)}.valkyr-scene-card .card-section .vsc-top-line:empty{display:none}.valkyr-scene-card .card-section .vsc-studio{grid-column:studio-start/studio-end;grid-row:top-line-top/top-line-bottom}.valkyr-scene-card .card-section .vsc-user-data{column-gap:.7142857143rem;display:flex;grid-column:user-data-start/user-data-end;grid-row:top-line-top/top-line-bottom}.valkyr-scene-card .card-section .vsc-o-count,.valkyr-scene-card .card-section .vsc-organized,.valkyr-scene-card .card-section .vsc-play-count,.valkyr-scene-card .card-section .vsc-rating{align-items:center;display:flex}.valkyr-scene-card .card-section .vsc-o-count svg,.valkyr-scene-card .card-section .vsc-organized svg,.valkyr-scene-card .card-section .vsc-play-count svg,.valkyr-scene-card .card-section .vsc-rating svg{margin:0}.valkyr-scene-card .card-section .vsc-o-count svg:not(:last-child),.valkyr-scene-card .card-section .vsc-organized svg:not(:last-child),.valkyr-scene-card .card-section .vsc-play-count svg:not(:last-child),.valkyr-scene-card .card-section .vsc-rating svg:not(:last-child){margin-right:.3571428571rem}.valkyr-scene-card .card-section .vsc-title{grid-row:title-top/title-bottom}.valkyr-scene-card .card-section .vsc-key-data{display:flex;font-size:var(--vsc-font-sm);grid-row:key-data-top/key-data-bottom;margin-top:3px}.valkyr-scene-card .card-section .vsc-shared-file-data,.valkyr-scene-card .card-section .vsc-unique-file-data{column-gap:.7142857143rem;display:flex}.valkyr-scene-card .card-section .vsc-shared-file-data{margin-right:auto}.valkyr-scene-card .card-section .vsc-resolution--icon{background-color:var(--vsc-resolution-icon-bg-color);color:var(--vsc-resolution-icon-color);display:inline;font-weight:900;padding:0 4px;user-select:none}.valkyr-scene-card .card-section .vsc-description{flex-grow:1}.valkyr-scene-card .card-section .vsc-description-inner{display:-webkit-box;-webkit-box-orient:vertical;margin-top:.7142857143rem;overflow:hidden;white-space:pre-line}.valkyr-scene-card .card-section .vsc-director{margin-top:.7142857143rem}.valkyr-scene-card .scene-card-preview{background-color:var(--vsc-preview-background-color)}.valkyr-scene-card .scene-card-preview.blurredBackground{background-position:50%;background-size:cover}.valkyr-scene-card .scene-card-preview.blurredBackground .scene-card-preview-image{backdrop-filter:var(--vsc-preview-background-backdrop-filter)}.valkyr-scene-card .scene-card-preview .hide-cursor-on-video{cursor:none!important}:root{--vsc-font-sm:12px;--vsc-performer-avatar-bg-color:rgba(0,0,0,.6);--vsc-performer-avatar-initials-size:18px;--vsc-performer-avatar-size:60px;--vsc-resolution-icon-bg-color:#f5f8fa;--vsc-resolution-icon-color:#30404d;--vsc-top-line-opacity:0.8;--vsc-preview-background-backdrop-filter:blur(10px);--vsc-preview-background-color:#000;--vsc-gender-color--female:#f38cac;--vsc-gender-color--intersex:#c8a2c8;--vsc-gender-color--male:#89cff0;--vsc-gender-color--nonbinary:#c8a2c8;--vsc-gender-color--transfemale:#c8a2c8;--vsc-gender-color--transmale:#c8a2c8;--vsc-gender-color--unknown:#f5f8fa;--vsc-performer-overflow-border-bottom:1px dotted #f5f8fa}.valkyr-scene-card{display:flex}.valkyr-scene-card .rating-banner,.valkyr-scene-card .scene-specs-overlay{display:none!important}.valkyr-scene-card .card-section{padding-bottom:.5rem}.valkyr-scene-card .card-section>a:first-child{display:none!important}.valkyr-scene-card .card-popovers:empty{height:0;padding-bottom:27px}.valkyr-scene-card.hide-progress-bar .progress-bar{display:none!important}.slick-slider .valkyr-scene-card{height:100%}.hover-popover-content .valkyr-scene-card{text-align:initial}.vsc-text-hover{padding:.3571428571rem}.vsc-gender-color--female{color:var(--vsc-gender-color--female)!important}.vsc-gender-color--intersex{color:var(--vsc-gender-color--intersex)!important}.vsc-gender-color--male{color:var(--vsc-gender-color--male)!important}.vsc-gender-color--nonbinary{color:var(--vsc-gender-color--nonbinary)!important}.vsc-gender-color--transfemale{color:var(--vsc-gender-color--transfemale)!important}.vsc-gender-color--transmale{color:var(--vsc-gender-color--transmale)!important}.vsc-gender-color--unknown{color:var(--vsc-gender-color--unknown)!important} \ No newline at end of file diff --git a/plugins/ValkyrSceneCards/ValkyrSceneCards.js b/plugins/ValkyrSceneCards/ValkyrSceneCards.js index c49eb96..a2c18ed 100644 --- a/plugins/ValkyrSceneCards/ValkyrSceneCards.js +++ b/plugins/ValkyrSceneCards/ValkyrSceneCards.js @@ -1,2 +1,2 @@ /*! For license information please see ValkyrSceneCards.js.LICENSE.txt */ -(()=>{var t={697:(t,e,n)=>{var r,o=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},i=n(542);"undefined"!=typeof document?r=document:(r=o["__GLOBAL_DOCUMENT_CACHE@4"])||(r=o["__GLOBAL_DOCUMENT_CACHE@4"]=i),t.exports=r},840:(t,e,n)=>{var r;r="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},t.exports=r},725:(t,e,n)=>{"use strict";n.r(e)},871:(t,e,n)=>{"use strict";n.r(e)},447:(t,e,n)=>{"use strict";n.r(e)},264:(t,e,n)=>{"use strict";n.r(e)},237:function(t,e){"use strict";var n=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var{scene:e}=t,o=n(t,["scene"]);if(!e.details||o.hideDescription)return r.createElement("div",{className:"vsc-description"});const i={WebkitLineClamp:o.descriptionMaxLines};return r.createElement("div",{className:"vsc-description"},r.createElement("div",{style:i,className:"vsc-description-inner"},e.details))}},407:function(t,e){"use strict";var n=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var{scene:e}=t;return n(t,["scene"]).hideDirector||!e.director?null:r.createElement("div",{className:"vsc-director"},"Directed by"," ",r.createElement("a",{href:o(e.director)},e.director))}},98:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const{React:n}=window.PluginApi;e.default=()=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",focusable:"false",width:"1em",height:"1em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 36 36",style:{transform:"rotate(360deg)"}},n.createElement("path",{fill:"currentColor",d:"M22.855.758L7.875 7.024l12.537 9.733c2.633 2.224 6.377 2.937 9.77 1.518c4.826-2.018 7.096-7.576 5.072-12.413C33.232 1.024 27.68-1.261 22.855.758zm-9.962 17.924L2.05 10.284L.137 23.529a7.993 7.993 0 0 0 2.958 7.803a8.001 8.001 0 0 0 9.798-12.65zm15.339 7.015l-8.156-4.69l-.033 9.223c-.088 2 .904 3.98 2.75 5.041a5.462 5.462 0 0 0 7.479-2.051c1.499-2.644.589-6.013-2.04-7.523z"}),n.createElement("rect",{x:"0",y:"0",width:"36",height:"36",fill:"rgba(0, 0, 0, 0)"}))},299:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(730),{React:o}=window.PluginApi;e.default=({file:t,hide:e})=>{if(e)return null;const n=r.TextUtils.resolution(t.width,t.height),{HoverPopover:i}=window.PluginApi.components;let a="";switch(n){case"144p":case"240p":case"360p":case"480p":case"540p":a="SD";break;case"720p":case"1080p":a="HD";break;case"1440p":a="2K";break;default:a=n||null}return o.createElement(i,{className:"vsc-resolution vsc-resolution--icon",content:o.createElement("span",{className:"vsc-text-hover"},t.width," × ",t.height),leaveDelay:100,placement:"top"},a)}},254:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var e,{hideResolution:n,resolutionIcon:o,scene:c}=t,s=r(t,["hideResolution","resolutionIcon","scene"]);const l=[...c.files].sort(((t,e)=>e.height-t.height))[0],f=!!c.date&&!s.hideDate,d=!!l&&!s.hideDuration,p=!!l&&!n;if(!f&&!d&&n)return null;const h=f?u.createElement("span",{className:"vsc-date"},c.date):null,v=p&&o,g=p&&!o?u.createElement("span",{className:"vsc-resolution"},i.TextUtils.resolution(l.width,l.height)):null;let m=null;if(d){let t=i.TextUtils.secondsToTimestamp(null!==(e=l.duration)&&void 0!==e?e:0);if(s.durationPadding){const e=t.split(":").reverse();1===e.length&&e.push("00","00"),2===e.length&&e.push("00"),t=e.map((t=>t.length<2?"0"+t:t)).reverse().join(":")}m=u.createElement("span",{className:"vsc-duration"},t)}return u.createElement("div",{className:"vsc-key-data"},u.createElement(a.default,{file:l,hide:!v}),h,m,g)}},622:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var e,n,o,s,{performer:l}=t,f=r(t,["performer"]);const d=!!l.birthdate&&!f.hidePerformerHoverAge,p=d?u.createElement("span",{className:"vsc-performer-age"},a.TextUtils.age(l.birthdate,f.sceneDate)," years old"):null,h=!!l.country&&!f.hidePerformerHoverNationality,v=h?u.createElement("span",{className:`fi fi-${null===(e=l.country)||void 0===e?void 0:e.toLowerCase()}`}):null,g=!!l.image_path&&!l.image_path.includes("default=true")&&!f.hidePerformerHoverImage,m=g?u.createElement("a",{href:`/performers/${l.id}`,className:"performer-tag col m-auto"},u.createElement("img",{className:"image-thumbnail",alt:null!==(n=l.name)&&void 0!==n?n:"",src:null!==(o=l.image_path)&&void 0!==o?o:""})):null,y=!f.hidePerformerHoverName,b=(0,i.default)("vsc-performer-text-list-popover-name",{[`vsc-gender-color--${(null===(s=l.gender)||void 0===s?void 0:s.toLowerCase())||"unknown"}`]:f.performerGenderColors}),_=y?u.createElement("div",{className:b},l.name):null,w=h||d?u.createElement("div",{className:"vsc-performer-text-list-popover-data"},v,p):null,O=u.createElement("div",{className:"performer-tag-container row"},m,_,w);return w||g?u.createElement(c,{content:O,leaveDelay:100,placement:"top"},f.children):f.children}},309:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var{scene:e}=t,n=r(t,["scene"]);if(n.hidePerformer||!n.performerAvatars||e.performers.length<1)return null;const o=(0,i.sortPerformers)(e.performers);return u.createElement("ul",{className:"vsc-performers-list vsc-performers-list__avatars"},o.map((t=>{let r;const o=n.sceneCustomAvatars.find((e=>e.performers.find((e=>e.id===t.id))));switch(!0){case!!o:r=u.createElement(f,{performer:t,image:o});break;case n.performerAvatarsProfile:r=u.createElement(l,{performer:t});break;default:r=u.createElement(s,{performer:t})}return u.createElement("li",{className:"vsc-performer"},u.createElement(a.default,{hidePerformerHoverAge:n.hidePerformerHoverAge,hidePerformerHoverImage:n.hidePerformerHoverImage,hidePerformerHoverNationality:n.hidePerformerHoverNationality,hidePerformerHoverName:!1,performer:t,performerGenderColors:n.performerGenderColors,sceneDate:e.date},r))})))};const s=({performer:t})=>{const e=t.name.split("-").join(" ").split(" ");let n="";e.forEach((t=>{n+=t.split("")[0]}));const r=(0,i.getPerformerGenderIcon)(t.gender);return u.createElement("a",{href:`/performers/${t.id}`,className:"vsc-performer-avatar"},u.createElement("span",{"aria-label":t.name},n),r?u.createElement(c,{icon:r}):null)},l=({performer:t})=>!t.image_path||t.image_path.includes("default=true")?u.createElement(s,{performer:t}):u.createElement("a",{href:`/performers/${t.id}`,className:"vsc-performer-avatar vsc-performer-avatar--profile"},u.createElement("img",{src:t.image_path,alt:t.name})),f=({image:t,performer:e})=>t.paths.image?u.createElement("a",{href:`/performers/${e.id}`,className:"vsc-performer-avatar vsc-performer-avatar--custom"},u.createElement("img",{src:t.paths.image,alt:e.name})):u.createElement(s,{performer:e})},23:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var{scene:e}=t,n=r(t,["scene"]);if(n.hidePerformer||n.performerAvatars||e.performers.length<1)return null;const o=(0,a.sortPerformers)(e.performers),s=o.length;return c.createElement("div",{className:"vsc-performers-list vsc-performers-list__text"},o.map(((t,r)=>{var o;const a=r===s-2,l=r{var e,n,{config:o,scene:v,stashSettings:g}=t,m=r(t,["config","scene","stashSettings"]);const y=(0,p.makeSceneUrl)({cont:null!==(e=null==g?void 0:g.interface.continuePlaylistDefault)&&void 0!==e&&e,index:m.index,scene:v,queue:m.queue});return h.createElement(h.Fragment,null,h.createElement("div",{className:"vsc-top-line"},h.createElement(l.default,{hideParentStudio:o.hideParentStudio,parentStudioSeparator:o.parentStudioSeparator,scene:v}),h.createElement(d.default,{hideOCount:o.hideOCount,hideOrganized:o.hideOrganized,hidePlayCount:o.hidePlayCount,hideRating:o.hideRating,hideZeroValueData:o.hideZeroValueData,ratingSystemOptions:null===(n=g.ui)||void 0===n?void 0:n.ratingSystemOptions,scene:v})),h.createElement(f.default,{scene:v,sceneLink:y}),h.createElement(u.default,{durationPadding:o.durationPadding,hideDate:o.hideDate,hideDuration:o.hideDuration,hideResolution:o.hideResolution,resolutionIcon:o.resolutionIcon,scene:v}),h.createElement(i.default,{descriptionMaxLines:o.descriptionMaxLines,hideDescription:o.hideDescription,scene:v}),h.createElement(a.default,{hideDirector:o.hideDirector,scene:v}),h.createElement(s.default,{hidePerformer:o.hidePerformer,hidePerformerHoverAge:o.hidePerformerHoverAge,hidePerformerHoverImage:o.hidePerformerHoverImage,hidePerformerHoverNationality:o.hidePerformerHoverNationality,performerAvatars:o.performerAvatars,performerGenderColors:o.performerGenderColors,scene:v}),h.createElement(c.default,{hidePerformer:o.hidePerformer,hidePerformerHoverAge:o.hidePerformerHoverAge,hidePerformerHoverImage:o.hidePerformerHoverImage,hidePerformerHoverNationality:o.hidePerformerHoverNationality,performerAvatars:o.performerAvatars,performerAvatarsProfile:o.performerAvatarsProfile,performerGenderColors:o.performerGenderColors,scene:v,sceneCustomAvatars:m.customAvatars}))}},733:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var e,n,o,c,s,l,{scene:f,stashSettings:d}=t,p=r(t,["scene","stashSettings"]);const h=u.useHistory(),v=null!==(e=null==d?void 0:d.interface.continuePlaylistDefault)&&void 0!==e&&e,g=a.useMemo((()=>f.files.length>0?f.files[0]:void 0),[f]);return a.createElement(a.Fragment,null,a.createElement(i.default,{image:null!==(n=f.paths.screenshot)&&void 0!==n?n:void 0,video:null!==(o=f.paths.preview)&&void 0!==o?o:void 0,isPortrait:function(){const t=(null==g?void 0:g.width)?g.width:0;return((null==g?void 0:g.height)?g.height:0)>t}(),soundActive:null!==(s=null===(c=null==d?void 0:d.interface)||void 0===c?void 0:c.soundOnPreview)&&void 0!==s&&s,vttPath:null!==(l=f.paths.vtt)&&void 0!==l?l:void 0,onScrubberClick:function(t){const e=p.queue?p.queue.makeLink(f.id,{sceneIndex:p.index,continue:v,start:t}):`/scenes/${f.id}?t=${t}`;h.push(e)},config:p.config,stashSettings:d}),function(){var t;return a.createElement("div",{className:"scene-interactive-speed-overlay"},null!==(t=f.interactive_speed)&&void 0!==t?t:"")}())}},589:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(n(942)),i=r(n(197));n(447);const{React:a}=window.PluginApi;e.default=({config:t,image:e,video:n,isPortrait:r,soundActive:u,vttPath:c,onScrubberClick:s})=>{const l=a.useRef(null);a.useEffect((()=>{const t=new IntersectionObserver((t=>{t.forEach((t=>{var e,n,r;t.intersectionRatio>0?null===(n=null===(e=l.current)||void 0===e?void 0:e.play())||void 0===n||n.catch((()=>{})):null===(r=l.current)||void 0===r||r.pause()}))}));l.current&&t.observe(l.current)})),a.useEffect((()=>{var t;(null===(t=null==l?void 0:l.current)||void 0===t?void 0:t.volume)&&(l.current.volume=u?.05:0)}),[u]);const f=(0,o.default)("scene-card-preview",{blurredBackground:t.previewBlurredBackground,portrait:r}),d={backgroundImage:t.previewBlurredBackground&&e?"url("+e+")":void 0},p=!t.previewScrubberDisabled?a.createElement(i.default,{vttPath:c,onClick:s}):null,h=!t.previewVideoDisabled,v=(0,o.default)("scene-card-preview-video",{"hide-cursor-on-video":t.previewVideoHideCursor}),g=h?a.createElement("video",{disableRemotePlayback:!0,playsInline:!0,muted:!u,className:v,loop:!0,preload:"none",ref:l,src:n}):null;return a.createElement("div",{className:f,style:d},a.createElement("img",{className:"scene-card-preview-image",loading:"lazy",src:e,alt:""}),g,p)}},197:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(730),i=n(266),a=n(231),u=r(n(942)),{React:c}=window.PluginApi,s=({totalSprites:t,activeIndex:e,setActiveIndex:n,onClick:r})=>{const o=c.useMemo((()=>{if(void 0===e||!t)return{};return{width:`${e/t*100}%`}}),[e,t]);return c.createElement("div",{className:(0,u.default)("hover-scrubber",{"hover-scrubber-inactive":!t})},c.createElement("div",{className:"hover-scrubber-area",onMouseMove:function(e){e.currentTarget===e.target&&n(function(e){const{width:n}=e.currentTarget.getBoundingClientRect(),r=e.nativeEvent.offsetX,o=Math.floor(r/n*t);return o<0?0:o>=t?t-1:o}(e))},onMouseLeave:function(){n(void 0)},onClick:function(t){if(!r)return;t.currentTarget===t.target&&(t.preventDefault(),r())}}),c.createElement("div",{className:"hover-scrubber-indicator"},void 0!==e&&c.createElement("div",{className:"hover-scrubber-indicator-marker",style:o})))};e.default=({vttPath:t,onClick:e})=>{var n;const r=c.useRef(null),[u,l]=c.useState({}),[f,d]=c.useState(),p=(0,a.useThrottle)(d,50),[h,v]=c.useState(!1),g=(0,i.useSpriteInfo)(h?t:void 0),m=c.useMemo((()=>{if(g&&void 0!==f)return g[f]}),[f,g]);c.useEffect((()=>{void 0!==f&&v(!0)}),[f]),c.useLayoutEffect((()=>{const t=r.current;if(!m||!t)return l({});const e=t.getBoundingClientRect(),n=function(t,e){const n=e.width/t.w,r=e.height/t.h;return t.w>t.h?Math.max(n,r):Math.min(n,r)}(m,e);l({backgroundPosition:`${-m.x}px ${-m.y}px`,backgroundImage:`url(${m.url})`,width:`${m.w}px`,height:`${m.h}px`,transform:`scale(${n})`})}),[m]);const y=c.useMemo((()=>{if(!m)return;return o.TextUtils.secondsToTimestamp(m.start)}),[m]);return!g&&h?null:c.createElement("div",{className:"preview-scrubber"},m&&c.createElement("div",{className:"scene-card-preview-image",ref:r},c.createElement("div",{className:"scrubber-image",style:u}),void 0!==y&&c.createElement("div",{className:"scrubber-timestamp"},y)),c.createElement(s,{totalSprites:null!==(n=null==g?void 0:g.length)&&void 0!==n?n:0,activeIndex:f,setActiveIndex:t=>p(t),onClick:function(){m&&e&&e(m.start)}}))}},364:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SceneCardImage=e.SceneCardDetails=void 0;var o=n(149);Object.defineProperty(e,"SceneCardDetails",{enumerable:!0,get:function(){return r(o).default}});var i=n(733);Object.defineProperty(e,"SceneCardImage",{enumerable:!0,get:function(){return r(i).default}})},209:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var{scene:e}=t,n=r(t,["scene"]);const{studio:u}=e;if(!u)return null;const c=(0,o.makeStudioUrl)({studioID:u.id});return i.createElement("span",{className:"vsc-studio"},i.createElement("a",{href:c},u.name),i.createElement(a,{childStudio:u,hideParentStudio:n.hideParentStudio,parentStudioSeparator:n.parentStudioSeparator}))};const a=t=>{var{childStudio:e,parentStudioSeparator:n}=t;if(r(t,["childStudio","parentStudioSeparator"]).hideParentStudio||!e.parent_studio)return null;const{parent_studio:a}=e,u=(0,o.makeStudioUrl)({studioID:a.id}),c=!n,s=n?" "+n+" ":null;return i.createElement(i.Fragment,null,c?" (":null,s,i.createElement("a",{href:u},a.name),c?")":null)}},993:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(730),{React:o}=window.PluginApi;e.default=({scene:t,sceneLink:e})=>{var n;const i=null!==(n=(0,r.getFilename)({scene:t}))&&void 0!==n?n:"Untitled",a=t.title||i;return o.createElement("a",{href:e,className:"vsc-title"},o.createElement("h5",null,a))}},226:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var e,n,o,d,p,h,{hideZeroValueData:v,scene:g}=t,m=r(t,["hideZeroValueData","scene"]);const y=f(m.hidePlayCount,v,g.o_counter),b=f(m.hideOCount,v,g.play_count),_=f(m.hideRating,v,g.rating100),w=g.organized&&!m.hideOrganized;if(!(y||b||_||g.organized))return null;const O=b?a.createElement("span",{className:"vsc-play-count"},a.createElement(u,{icon:s}),a.createElement("span",null,null!==(e=g.play_count)&&void 0!==e?e:0)):null,j=y?a.createElement("span",{className:"vsc-o-count"},a.createElement(i.default,null),a.createElement("span",null,null!==(n=g.o_counter)&&void 0!==n?n:0)):null,x=w?a.createElement("span",{className:"vsc-organized"},a.createElement(u,{icon:c})):null,E=null!==(d=null===(o=m.ratingSystemOptions)||void 0===o?void 0:o.type)&&void 0!==d?d:"stars",S=g.rating100||0;let A=0;if("decimal"===E)A=S/10;else switch(null!==(h=null===(p=m.ratingSystemOptions)||void 0===p?void 0:p.starPrecision)&&void 0!==h?h:"full"){case"half":A=Math.round(S/10)/2;break;case"quarter":A=Math.round(S/5)/4;break;case"tenth":A=Math.round(S/2)/10;break;default:A=Math.round(S/20)}const P=_?a.createElement("span",{className:"vsc-rating"},a.createElement(u,{icon:l}),a.createElement("span",null,A)):null;return a.createElement("div",{className:"vsc-user-data"},O,j,P,x)};const f=(t,e,n)=>!(e&&(null!=n?n:0)<1)&&!t},716:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFilename=void 0;e.getFilename=({scene:t})=>{const e=t.files.length?t.files[0]:void 0;if(!e)return;const n=e.path.split("/");return n[n.length-1]}},273:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPerformerGenderIcon=void 0;const{faMars:n,faTansgenderAlt:r,faVenus:o}=window.PluginApi.libraries.FontAwesomeSolid;e.getPerformerGenderIcon=t=>{switch(t){case void 0:return null;case"FEMALE":return o;case"MALE":return n;default:return r}}},730:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.TextUtils=void 0,o(n(716),e),o(n(273),e),o(n(432),e),o(n(504),e);var a=n(15);Object.defineProperty(e,"TextUtils",{enumerable:!0,get:function(){return i(a).default}})},432:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.makeStudioUrl=e.makeSceneUrl=void 0;e.makeSceneUrl=({cont:t,index:e,scene:n,queue:r})=>r?r.makeLink(n.id,{sceneIndex:e,continue:t}):`/scenes/${n.id}`;e.makeStudioUrl=({studioID:t})=>`/studios/${t}`},504:(t,e)=>{"use strict";function n(t){const n=t.slice();return n.sort(((t,n)=>{var r,o;if(t.gender===n.gender)return(null!==(r=t.name)&&void 0!==r?r:"").localeCompare(null!==(o=n.name)&&void 0!==o?o:"");return(t.gender?e.GENDERS.indexOf(t.gender):e.GENDERS.length)-(n.gender?e.GENDERS.indexOf(n.gender):e.GENDERS.length)})),n}Object.defineProperty(e,"__esModule",{value:!0}),e.GENDERS=void 0,e.sortPerformers=n;const r={sortPerformers:n};e.default=r,e.GENDERS=["FEMALE","TRANSGENDER_FEMALE","MALE","TRANSGENDER_MALE","INTERSEX","NON_BINARY"]},15:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"],r=["B","KB","MB","GB","TB","PB"];class o{constructor(t,e,n,r){this.singular=t,this.plural=e,this.shortString=n,this.secs=r}toString(){return this.shortString}}o.SECOND=new o("second","seconds","s",1),o.MINUTE=new o("minute","minutes","m",60),o.HOUR=new o("hour","hours","h",60*o.MINUTE.secs),o.DAY=new o("day","days","D",24*o.HOUR.secs),o.WEEK=new o("week","weeks","W",7*o.DAY.secs),o.MONTH=new o("month","months","M",30*o.DAY.secs),o.YEAR=new o("year","years","Y",365*o.DAY.secs),o.DURATIONS=[o.SECOND,o.MINUTE,o.HOUR,o.DAY,o.WEEK,o.MONTH,o.YEAR];class i{constructor(t,e){this.count=t,this.duration=e}toString(){return this.count.toString()+this.duration.toString()}}const a=t=>{if(!t)return null;const e=t.split("-");if(3!==e.length)return null;const n=Number(e[0]),r=Math.max(0,Number(e[1])-1),o=Number(e[2]);return new Date(n,r,o,0,0,0,0)},u=t=>{if(!t)return null;const e=t.split("-");let n=Number(e[0]);isNaN(n)&&(n=(new Date).getFullYear());let r=0;e.length>1&&(r=Math.max(0,Number(e[1])-1),(r>11||isNaN(r))&&(r=0));let o=1;return e.length>2&&(o=Number(e[2]),(o>31||isNaN(o))&&(o=1)),new Date(n,r,o,0,0,0,0)};function c(t){return`${t.getFullYear()}-${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getDate().toString().padStart(2,"0")}`}const s=(t,e)=>t?t.startsWith("http://")||t.startsWith("https://")?t:e?t.startsWith(e.host)?`${e.protocol}//${t}`:`${e.protocol}//${e.host}/${t}`:`https://${t}`:t,l=(t,e,n=!0)=>e?t.formatDate(e,{format:"long",timeZone:n?"utc":void 0}):"",f=["","K","M","B"],d={fileSize:(t=0)=>{if(Number.isNaN(parseFloat(String(t)))||!Number.isFinite(t))return{size:0,unit:n[0]};let e=0,r=t;for(;r>=1024&&e+1{const e=n.indexOf(t);return r[e]},fileSizeFractionalDigits:t=>n.indexOf(t)>=3?1:0,secondsToTimestamp:t=>{let e=!1;t<0&&(e=!0,t=-t);const n=(t=Math.trunc(t))%60,r=(t=(t-n)/60)%60,o=t=(t-r)/60;let i=String(n).padStart(2,"0");return 0===o?i=String(r)+":"+i:(i=String(r).padStart(2,"0")+":"+i,i=String(o)+":"+i),e?"-"+i:i},timestampToSeconds:t=>{if(!t)return null;const e=t.split(":");if(e.length>3)return null;let n=0,r=1;for(;e.length>0;){const t=e.pop();if(void 0===t)return null;const o=parseInt(t,10);if(Number.isNaN(o))return null;n+=r*o,r*=60}return n},fileNameFromPath:t=>!1==!!t?"No File Name":t.replace(/^.*[\\/]/,""),stringToDate:a,stringToFuzzyDate:u,stringToFuzzyDateTime:t=>{if(!t)return null;const e=t.split(" ");let n=null;if(e.length>0&&(n=u(e[0])),n||(n=new Date),e.length>1){const t=e[1].split(":");n&&t.length>0&&n.setHours(Number(t[0])),n&&t.length>1&&n.setMinutes(Number(t[1])),n&&t.length>2&&n.setSeconds(Number(t[2]))}return n},dateToString:c,dateTimeToString:function(t){return`${c(t)} ${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}`},age:(t,e)=>{if(!t)return 0;const n=a(t),r=e?a(e):new Date;if(!n||!r)return 0;let o=r.getFullYear()-n.getFullYear();return(n.getMonth()>r.getMonth()||n.getMonth()>=r.getMonth()&&n.getDate()>r.getDate())&&(o-=1),o},bitRate:t=>`${(t/1e6).toFixed(2)} megabits per second`,resolution:(t,e)=>{const n=t>e?e:t;return n>=6144?"HUGE":n>=3840?"8K":n>=3584?"7K":n>=3e3?"6K":n>=2560?"5K":n>=1920?"4K":n>=1440?"1440p":n>=1080?"1080p":n>=720?"720p":n>=540?"540p":n>=480?"480p":n>=360?"360p":n>=240?"240p":n>=144?"144p":void 0},sanitiseURL:s,domainFromURL:(t,e)=>{if(e)return e.hostname;if(t){var n="";try{var r=s(t);r&&(t=r),n=new URL(t).hostname}catch(e){n=t}return n}return""},formatDate:l,formatDateTime:(t,e,n=!1)=>`${l(t,e,n)} ${t.formatTime(e,{timeZone:n?"utc":void 0})}`,secondsAsTimeString:(t=0,e=2)=>((t=0)=>{if(Number.isNaN(parseFloat(String(t)))||!Number.isFinite(t))return[new i(0,o.DURATIONS[0])];const e=[];let n=t;for(let t=o.DURATIONS.length-1;t>=0;t--){const r=Math.floor(n/o.DURATIONS[t].secs);0!==r&&(n%=o.DURATIONS[t].secs,e.push(new i(r,o.DURATIONS[t])))}return e})(t).slice(0,e).join(" "),abbreviateCounter:(t=0)=>{if(Number.isNaN(parseFloat(String(t)))||!Number.isFinite(t))return{size:0,unit:f[0]};let e=0,n=0,r=t;for(;r>=1e3&&e+1t.startsWith('"')&&t.endsWith('"')?t.slice(1,-1):t,addQuotes:t=>`"${t}"`};e.default=d},266:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useSpriteInfo=function(t){const[e,n]=o.useState();return o.useEffect((()=>{t?fetch(t).then((e=>{e.ok?e.text().then((e=>{n(function(t,e){const n=[],o=new r.WebVTT.Parser(window,r.WebVTT.StringDecoder());return o.oncue=e=>{const r=e.text.match(/^([^#]*)#xywh=(\d+),(\d+),(\d+),(\d+)$/i);r&&n.push({url:new URL(r[1],t).href,start:e.startTime,end:e.endTime,x:Number(r[2]),y:Number(r[3]),w:Number(r[4]),h:Number(r[5])})},o.parse(e),o.flush(),n}(t,e))})):n(void 0)})):n(void 0)}),[t]),e};const r=n(784),{React:o}=window.PluginApi},231:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useThrottle=function(t,e,n){const i=o.useRef(t);return i.current=t,o.useCallback((0,r.throttle)((function(){return i.current.apply(this,arguments)}),e,n),[e,null==n?void 0:n.leading,null==n?void 0:n.trailing,null==n?void 0:n.maxWait])};const r=n(271),{React:o}=window.PluginApi},221:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(n(942)),i=n(364);n(264);const{PluginApi:a}=window,{GQL:u,React:c}=a;a.patch.instead("SceneCard",(function(t,e,n){var r,i,a,s,l,f,d,p,h,v,g,m,y,b,_,w,O,j,x,E,S,A,P,I,M,T,R,k,N,D;const C=u.useConfigurationQuery();if(!C.loading){const e=C.data.configuration.plugins.ValkyrSceneCards,B={descriptionMaxLines:(null==e?void 0:e.descriptionMaxLines)||3,durationPadding:null!==(r=null==e?void 0:e.durationPadding)&&void 0!==r&&r,hideDate:null!==(i=null==e?void 0:e.hideDate)&&void 0!==i&&i,hideDescription:null!==(a=null==e?void 0:e.hideDescription)&&void 0!==a&&a,hideDirector:null!==(s=null==e?void 0:e.hideDirector)&&void 0!==s&&s,hideDuration:null!==(l=null==e?void 0:e.hideDuration)&&void 0!==l&&l,hideGalleries:null!==(f=null==e?void 0:e.hideGalleries)&&void 0!==f&&f,hideGroups:null!==(d=null==e?void 0:e.hideGroups)&&void 0!==d&&d,hideMarkers:null!==(p=null==e?void 0:e.hideMarkers)&&void 0!==p&&p,hideOCount:null!==(h=null==e?void 0:e.hideOCount)&&void 0!==h&&h,hideOrganized:null!==(v=null==e?void 0:e.hideOrganized)&&void 0!==v&&v,hidePlayCount:null!==(g=null==e?void 0:e.hidePlayCount)&&void 0!==g&&g,hideParentStudio:null!==(m=null==e?void 0:e.hideParentStudio)&&void 0!==m&&m,hidePerformer:null!==(y=null==e?void 0:e.hidePerformer)&&void 0!==y&&y,hidePerformerHoverAge:null!==(b=null==e?void 0:e.hidePerformerHoverAge)&&void 0!==b&&b,hidePerformerHoverImage:null!==(_=null==e?void 0:e.hidePerformerHoverImage)&&void 0!==_&&_,hidePerformerHoverNationality:null!==(w=null==e?void 0:e.hidePerformerHoverNationality)&&void 0!==w&&w,hideRating:null!==(O=null==e?void 0:e.hideRating)&&void 0!==O&&O,hideResolution:null!==(j=null==e?void 0:e.hideResolution)&&void 0!==j&&j,hideTags:null!==(x=null==e?void 0:e.hideTags)&&void 0!==x&&x,hideZeroValueData:null!==(E=null==e?void 0:e.hideZeroValueData)&&void 0!==E&&E,parentStudioSeparator:null==e?void 0:e.parentStudioSeparator,performerAvatars:null!==(S=null==e?void 0:e.performerAvatars)&&void 0!==S&&S,performerAvatarsCustomTag:null==e?void 0:e.performerAvatarsCustomTag,performerAvatarsProfile:null!==(A=null==e?void 0:e.performerAvatarsProfile)&&void 0!==A&&A,performerGenderColors:null!==(P=null==e?void 0:e.performerGenderColors)&&void 0!==P&&P,previewBlurredBackground:null!==(I=null==e?void 0:e.previewBlurredBackground)&&void 0!==I&&I,previewSceneProgressDisabled:null!==(M=null==e?void 0:e.previewSceneProgressDisabled)&&void 0!==M&&M,previewScrubberDisabled:null!==(T=null==e?void 0:e.previewScrubberDisabled)&&void 0!==T&&T,previewVideoDisabled:null!==(R=null==e?void 0:e.previewVideoDisabled)&&void 0!==R&&R,previewVideoHideCursor:null!==(k=null==e?void 0:e.previewVideoHideCursor)&&void 0!==k&&k,resolutionIcon:null!==(N=null==e?void 0:e.resolutionIcon)&&void 0!==N&&N},L=(0,o.default)("valkyr-scene-card",{"hide-progress-bar":B.previewSceneProgressDisabled}),W=Object.assign(Object.assign({},t),{config:B,customAvatars:[],stashSettings:C.data.configuration});if(W.scene.performers.length){const t=u.useFindPerformersQuery({variables:{filter:{per_page:-1},performer_ids:W.scene.performers.map((t=>+t.id))}});t.data&&(W.scene=Object.assign(Object.assign({},W.scene),{performers:t.data.findPerformers.performers}))}if(!B.hideParentStudio&&W.scene.studio){const e=u.useFindStudioQuery({variables:{id:(null===(D=t.scene.studio)||void 0===D?void 0:D.id)||""}});e.data&&(W.scene=Object.assign(Object.assign({},W.scene),{studio:Object.assign(Object.assign({},W.scene.studio),e.data.findStudio)}))}if(B.performerAvatars&&B.performerAvatarsCustomTag&&W.scene.performers.length){const t=u.useFindImagesQuery({variables:{image_filter:{performers:{modifier:"INCLUDES",value:W.scene.performers.map((t=>t.id))},tags:{modifier:"INCLUDES",value:[B.performerAvatarsCustomTag]}}}});t.data&&(W.customAvatars=t.data.findImages.images)}return[c.createElement("div",{className:L},c.createElement(n,Object.assign({},W)))]}return[]})),a.patch.instead("SceneCard.Image",(function(t){return[c.createElement(i.SceneCardImage,Object.assign({},t))]})),a.patch.instead("SceneCard.Details",(function(t){return[c.createElement(i.SceneCardDetails,Object.assign({},t))]})),a.patch.instead("SceneCard.Overlays",(function(){return[]})),a.patch.instead("SceneCard.Popovers",(function(t,e,n){var r;const o=t,i=null!==(r=o.scene.groups)&&void 0!==r?r:o.scene.movies,{hideGalleries:a,hideGroups:u,hideMarkers:s,hideTags:l}=o.config;if(a&&u&&s&&l)return[];const f=Object.assign(Object.assign({},o),{scene:Object.assign(Object.assign({},t.scene),{galleries:a?[]:o.scene.galleries,groups:u?[]:i,performers:[],o_counter:void 0,organized:!1,scene_markers:s?[]:o.scene.scene_markers,tags:l?[]:o.scene.tags})});return 0===f.scene.tags.length&&0===i.length&&0===f.scene.scene_markers.length&&0===f.scene.galleries.length?[c.createElement(c.Fragment,null,c.createElement("hr",null),c.createElement("div",{className:"card-popovers"}))]:[c.createElement(n,Object.assign({},f))]}))},784:(t,e,n)=>{var r=n(840),o=t.exports={WebVTT:n(311),VTTCue:n(184),VTTRegion:n(891)};r.vttjs=o,r.WebVTT=o.WebVTT;var i=o.VTTCue,a=o.VTTRegion,u=r.VTTCue,c=r.VTTRegion;o.shim=function(){r.VTTCue=i,r.VTTRegion=a},o.restore=function(){r.VTTCue=u,r.VTTRegion=c},r.VTTCue||o.shim()},311:(t,e,n)=>{var r=n(697),o=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function i(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function a(t){function e(t,e,n,r){return 3600*(0|t)+60*(0|e)+(0|n)+(0|r)/1e3}var n=t.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function u(){this.values=o(null)}function c(t,e,n,r){var o=r?t.split(r):[t];for(var i in o)if("string"==typeof o[i]){var a=o[i].split(n);if(2===a.length)e(a[0].trim(),a[1].trim())}}function s(t,e,n){var r=t;function o(){var e=a(t);if(null===e)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+r);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function s(){t=t.replace(/^\s+/,"")}if(s(),e.startTime=o(),s(),"--\x3e"!==t.substr(0,3))throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);t=t.substr(3),s(),e.endTime=o(),s(),function(t,e){var r=new u;c(t,(function(t,e){switch(t){case"region":for(var o=n.length-1;o>=0;o--)if(n[o].id===e){r.set(t,n[o].region);break}break;case"vertical":r.alt(t,e,["rl","lr"]);break;case"line":var i=e.split(","),a=i[0];r.integer(t,a),r.percent(t,a)&&r.set("snapToLines",!1),r.alt(t,a,["auto"]),2===i.length&&r.alt("lineAlign",i[1],["start","center","end"]);break;case"position":i=e.split(","),r.percent(t,i[0]),2===i.length&&r.alt("positionAlign",i[1],["start","center","end"]);break;case"size":r.percent(t,e);break;case"align":r.alt(t,e,["start","center","end","left","right"])}}),/:/,/\s/),e.region=r.get("region",null),e.vertical=r.get("vertical","");try{e.line=r.get("line","auto")}catch(t){}e.lineAlign=r.get("lineAlign","start"),e.snapToLines=r.get("snapToLines",!0),e.size=r.get("size",100);try{e.align=r.get("align","center")}catch(t){e.align=r.get("align","middle")}try{e.position=r.get("position","auto")}catch(t){e.position=r.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=r.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}i.prototype=o(Error.prototype),i.prototype.constructor=i,i.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},u.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var r=0;r=0&&e<=100)&&(this.set(t,e),!0)}};var l=r.createElement&&r.createElement("textarea"),f={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},d={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},h={rt:"ruby"};function v(t,e){function n(){if(!e)return null;var t,n=e.match(/^([^<]*)(<[^>]*>?)?/);return t=n[1]?n[1]:n[2],e=e.substr(t.length),t}function r(t,e){return!h[e.localName]||h[e.localName]===t.localName}function o(e,n){var r=f[e];if(!r)return null;var o=t.document.createElement(r),i=p[e];return i&&n&&(o[i]=n.trim()),o}for(var i,u,c=t.document.createElement("div"),s=c,v=[];null!==(i=n());)if("<"!==i[0])s.appendChild(t.document.createTextNode((u=i,l.innerHTML=u,u=l.textContent,l.textContent="",u)));else{if("/"===i[1]){v.length&&v[v.length-1]===i.substr(2).replace(">","")&&(v.pop(),s=s.parentNode);continue}var g,m=a(i.substr(1,i.length-2));if(m){g=t.document.createProcessingInstruction("timestamp",m),s.appendChild(g);continue}var y=i.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(g=o(y[1],y[3])))continue;if(!r(s,g))continue;if(y[2]){var b=y[2].split(".");b.forEach((function(t){var e=/^bg_/.test(t),n=e?t.slice(3):t;if(d.hasOwnProperty(n)){var r=e?"background-color":"color",o=d[n];g.style[r]=o}})),g.className=b.join(" ")}v.push(y[1]),s.appendChild(g),s=g}return c}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function m(t){for(var e=0;e=n[0]&&t<=n[1])return!0}return!1}function y(t){var e=[],n="";if(!t||!t.childNodes)return"ltr";function r(t,e){for(var n=e.childNodes.length-1;n>=0;n--)t.push(e.childNodes[n])}function o(t){if(!t||!t.length)return null;var e=t.pop(),n=e.textContent||e.innerText;if(n){var i=n.match(/^.*(\n|\r)/);return i?(t.length=0,i[0]):n}return"ruby"===e.tagName?o(t):e.childNodes?(r(t,e),o(t)):void 0}for(r(e,t);n=o(e);)for(var i=0;i=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,n=e.textTrackList,r=0,o=0;of&&(l=l<0?-1:1,l*=Math.ceil(f/s)*s),a<0&&(l+=""===i.vertical?n.height:n.width,u=u.reverse()),o.move(d,l)}else{var p=o.lineHeight/n.height*100;switch(i.lineAlign){case"center":a-=p/2;break;case"end":a-=p}switch(i.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}u=["+y","-x","+x","-y"],o=new w(e)}var h=function(t,e){for(var o,i=new w(t),a=1,u=0;uc&&(o=new w(t),a=c),t=new w(i)}return o||i}(o,u);e.move(h.toCSSCompatValues(n))}function j(){}b.prototype.applyStyles=function(t,e){for(var n in e=e||this.div,t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},b.prototype.formatStyle=function(t,e){return 0===t?0:t+e},_.prototype=o(b.prototype),_.prototype.constructor=_,w.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},w.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},w.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},w.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},w.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},w.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},w.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,r=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||r,height:t.height||e,bottom:t.bottom||r+(t.height||e),width:t.width||n}},j.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},j.convertCueToDOMTree=function(t,e){return t&&e?v(t,e):null};j.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=t.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(t){for(var e=0;e{var e={"":1,lr:1,rl:1},n={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function r(t){return"string"==typeof t&&(!!n[t.toLowerCase()]&&t.toLowerCase())}function o(t,n,o){this.hasBeenReset=!1;var i="",a=!1,u=t,c=n,s=o,l=null,f="",d=!0,p="auto",h="start",v="auto",g="auto",m=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return i},set:function(t){i=""+t}},pauseOnExit:{enumerable:!0,get:function(){return a},set:function(t){a=!!t}},startTime:{enumerable:!0,get:function(){return u},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");u=t,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return c},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");c=t,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return s},set:function(t){s=""+t,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(t){l=t,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return f},set:function(t){var n=function(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===n)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");f=n,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return d},set:function(t){d=!!t,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=t,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(t){var e=r(t);e?(h=e,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return v},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");v=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(t){var e=r(t);e?(g=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return m},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");m=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(t){var e=r(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=e,this.hasBeenReset=!0}}}),this.displayState=void 0}o.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=o},891:t=>{var e={"":!0,up:!0};function n(t){return"number"==typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,r=3,o=0,i=100,a=0,u=100,c="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!n(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return r},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");r=t}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(t){if(!n(t))throw new Error("RegionAnchorX must be between 0 and 100.");i=t}},regionAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!n(t))throw new Error("RegionAnchorY must be between 0 and 100.");o=t}},viewportAnchorY:{enumerable:!0,get:function(){return u},set:function(t){if(!n(t))throw new Error("ViewportAnchorY must be between 0 and 100.");u=t}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(t){if(!n(t))throw new Error("ViewportAnchorX must be between 0 and 100.");a=t}},scroll:{enumerable:!0,get:function(){return c},set:function(t){var n=function(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);!1===n?console.warn("Scroll: an invalid or illegal string was specified."):c=n}}})}},542:()=>{},942:(t,e)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t="",e=0;e{"use strict";n.r(e),n.d(e,{add:()=>E,after:()=>W,ary:()=>_e,assign:()=>fn,assignIn:()=>mn,assignInWith:()=>bn,assignWith:()=>wn,at:()=>br,attempt:()=>Ir,before:()=>Mr,bind:()=>Rr,bindAll:()=>kr,bindKey:()=>Dr,camelCase:()=>Fo,capitalize:()=>ro,castArray:()=>Ho,ceil:()=>Go,chain:()=>Ko,chunk:()=>Xo,clamp:()=>Jo,clone:()=>fa,cloneDeep:()=>da,cloneDeepWith:()=>pa,cloneWith:()=>ha,commit:()=>va,compact:()=>ga,concat:()=>ma,cond:()=>Xa,conforms:()=>tu,conformsTo:()=>eu,constant:()=>Ht,countBy:()=>du,create:()=>pu,curry:()=>vu,curryRight:()=>mu,debounce:()=>wu,deburr:()=>so,default:()=>lg,defaultTo:()=>Ou,defaults:()=>Su,defaultsDeep:()=>Cu,defer:()=>Wu,delay:()=>Uu,difference:()=>Vu,differenceBy:()=>Ku,differenceWith:()=>Zu,divide:()=>Xu,drop:()=>Qu,dropRight:()=>Ju,dropRightWhile:()=>ec,dropWhile:()=>nc,each:()=>oc,eachRight:()=>sc,endsWith:()=>lc,entries:()=>hc,entriesIn:()=>vc,eq:()=>Oe,escape:()=>bc,escapeRegExp:()=>Oc,every:()=>Ec,extend:()=>mn,extendWith:()=>bn,fill:()=>Pc,filter:()=>Mc,find:()=>Nc,findIndex:()=>kc,findKey:()=>Cc,findLast:()=>zc,findLastIndex:()=>Wc,findLastKey:()=>Uc,first:()=>Fc,flatMap:()=>Vc,flatMapDeep:()=>Gc,flatMapDepth:()=>Kc,flatten:()=>mr,flattenDeep:()=>Zc,flattenDepth:()=>Xc,flip:()=>Qc,floor:()=>Jc,flow:()=>es,flowRight:()=>ns,forEach:()=>oc,forEachRight:()=>sc,forIn:()=>rs,forInRight:()=>os,forOwn:()=>is,forOwnRight:()=>as,fromPairs:()=>us,functions:()=>ss,functionsIn:()=>ls,get:()=>fr,groupBy:()=>ps,gt:()=>gs,gte:()=>ms,has:()=>_s,hasIn:()=>Va,head:()=>Fc,identity:()=>z,inRange:()=>xs,includes:()=>Is,indexOf:()=>Ts,initial:()=>Rs,intersection:()=>Cs,intersectionBy:()=>Ls,intersectionWith:()=>Ws,invert:()=>$s,invertBy:()=>Ys,invoke:()=>Qs,invokeMap:()=>tl,isArguments:()=>ze,isArray:()=>_,isArrayBuffer:()=>rl,isArrayLike:()=>Me,isArrayLikeObject:()=>Pu,isBoolean:()=>ol,isBuffer:()=>Ve,isDate:()=>ul,isElement:()=>cl,isEmpty:()=>ll,isEqual:()=>fl,isEqualWith:()=>dl,isError:()=>Ar,isFinite:()=>hl,isFunction:()=>U,isInteger:()=>vl,isLength:()=>Ie,isMap:()=>na,isMatch:()=>gl,isMatchWith:()=>ml,isNaN:()=>bl,isNative:()=>wl,isNil:()=>Ol,isNull:()=>jl,isNumber:()=>yl,isObject:()=>M,isObjectLike:()=>g,isPlainObject:()=>Sr,isRegExp:()=>Sl,isSafeInteger:()=>Pl,isSet:()=>ia,isString:()=>Es,isSymbol:()=>m,isTypedArray:()=>tn,isUndefined:()=>Il,isWeakMap:()=>Ml,isWeakSet:()=>Tl,iteratee:()=>Rl,join:()=>Nl,kebabCase:()=>Cl,keyBy:()=>Ll,keys:()=>cn,keysIn:()=>vn,last:()=>qu,lastIndexOf:()=>Fl,lodash:()=>kt,lowerCase:()=>$l,lowerFirst:()=>Vl,lt:()=>Gl,lte:()=>Kl,map:()=>$c,mapKeys:()=>Yl,mapValues:()=>Zl,matches:()=>Xl,matchesProperty:()=>Ql,max:()=>tf,maxBy:()=>ef,mean:()=>of,meanBy:()=>af,memoize:()=>er,merge:()=>cf,mergeWith:()=>Du,method:()=>sf,methodOf:()=>lf,min:()=>ff,minBy:()=>df,mixin:()=>pf,multiply:()=>hf,negate:()=>vf,next:()=>bf,noop:()=>wt,now:()=>yu,nth:()=>wf,nthArg:()=>Of,omit:()=>Sf,omitBy:()=>Mf,once:()=>Tf,orderBy:()=>Cf,over:()=>Lf,overArgs:()=>Ff,overEvery:()=>Hf,overSome:()=>$f,pad:()=>dd,padEnd:()=>pd,padStart:()=>hd,parseInt:()=>md,partial:()=>bd,partialRight:()=>wd,partition:()=>jd,pick:()=>Ed,pickBy:()=>If,plant:()=>Sd,property:()=>Ya,propertyOf:()=>Ad,pull:()=>Rd,pullAll:()=>Td,pullAllBy:()=>kd,pullAllWith:()=>Nd,pullAt:()=>Ld,random:()=>Vd,range:()=>Zd,rangeRight:()=>Xd,rearg:()=>Jd,reduce:()=>ep,reduceRight:()=>rp,reject:()=>op,remove:()=>ip,repeat:()=>ap,replace:()=>up,rest:()=>cp,result:()=>sp,reverse:()=>fp,round:()=>dp,sample:()=>vp,sampleSize:()=>bp,set:()=>_p,setWith:()=>wp,shuffle:()=>xp,size:()=>Ep,slice:()=>Sp,snakeCase:()=>Pp,some:()=>Mp,sortBy:()=>Tp,sortedIndex:()=>Cp,sortedIndexBy:()=>Bp,sortedIndexOf:()=>Lp,sortedLastIndex:()=>Wp,sortedLastIndexBy:()=>zp,sortedLastIndexOf:()=>Up,sortedUniq:()=>Hp,sortedUniqBy:()=>$p,split:()=>Vp,spread:()=>Gp,startCase:()=>Yp,startsWith:()=>Zp,stubArray:()=>vi,stubFalse:()=>Ue,stubObject:()=>Xp,stubString:()=>Qp,stubTrue:()=>Jp,subtract:()=>th,sum:()=>eh,sumBy:()=>nh,tail:()=>rh,take:()=>oh,takeRight:()=>ih,takeRightWhile:()=>ah,takeWhile:()=>uh,tap:()=>ch,template:()=>xh,templateSettings:()=>vh,throttle:()=>Eh,thru:()=>Sh,times:()=>Ih,toArray:()=>yf,toFinite:()=>B,toInteger:()=>L,toIterator:()=>Mh,toJSON:()=>Rh,toLength:()=>Sc,toLower:()=>kh,toNumber:()=>D,toPairs:()=>hc,toPairsIn:()=>vc,toPath:()=>Nh,toPlainObject:()=>Mu,toSafeInteger:()=>Ch,toString:()=>ur,toUpper:()=>Bh,transform:()=>Lh,trim:()=>Uh,trimEnd:()=>Fh,trimStart:()=>$h,truncate:()=>qh,unary:()=>Gh,unescape:()=>Xh,union:()=>ev,unionBy:()=>rv,unionWith:()=>ov,uniq:()=>iv,uniqBy:()=>av,uniqWith:()=>uv,uniqueId:()=>sv,unset:()=>lv,unzip:()=>dv,unzipWith:()=>pv,update:()=>vv,updateWith:()=>gv,upperCase:()=>yv,upperFirst:()=>no,value:()=>Rh,valueOf:()=>Rh,values:()=>As,valuesIn:()=>bv,without:()=>wv,words:()=>Lo,wrap:()=>Ov,wrapperAt:()=>jv,wrapperChain:()=>xv,wrapperCommit:()=>va,wrapperLodash:()=>kt,wrapperNext:()=>bf,wrapperPlant:()=>Sd,wrapperReverse:()=>Ev,wrapperToIterator:()=>Mh,wrapperValue:()=>Rh,xor:()=>Av,xorBy:()=>Iv,xorWith:()=>Mv,zip:()=>Tv,zipObject:()=>kv,zipObjectDeep:()=>Nv,zipWith:()=>Cv});const r="object"==typeof global&&global&&global.Object===Object&&global;var o="object"==typeof self&&self&&self.Object===Object&&self;const i=r||o||Function("return this")();const a=i.Symbol;var u=Object.prototype,c=u.hasOwnProperty,s=u.toString,l=a?a.toStringTag:void 0;const f=function(t){var e=c.call(t,l),n=t[l];try{t[l]=void 0;var r=!0}catch(t){}var o=s.call(t);return r&&(e?t[l]=n:delete t[l]),o};var d=Object.prototype.toString;const p=function(t){return d.call(t)};var h=a?a.toStringTag:void 0;const v=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":h&&h in Object(t)?f(t):p(t)};const g=function(t){return null!=t&&"object"==typeof t};const m=function(t){return"symbol"==typeof t||g(t)&&"[object Symbol]"==v(t)};const y=function(t){return"number"==typeof t?t:m(t)?NaN:+t};const b=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}};const Bt=Ct(at);var Lt=/\{\n\/\* \[wrapped with (.+)\] \*/,Wt=/,? & /;const zt=function(t){var e=t.match(Lt);return e?e[1].split(Wt):[]};var Ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;const Ft=function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Ut,"{\n/* [wrapped with "+e+"] */\n")};const Ht=function(t){return function(){return t}};var $t=function(){try{var t=nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const Vt=$t;var qt=Vt?function(t,e){return Vt(t,"toString",{configurable:!0,enumerable:!1,value:Ht(e),writable:!0})}:z;const Gt=Ct(qt);const Kt=function(t,e){for(var n=-1,r=null==t?0:t.length;++n-1};var te=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];const ee=function(t,e){return Kt(te,(function(n){var r="_."+n[0];e&n[1]&&!Jt(t,r)&&t.push(r)})),t.sort()};const ne=function(t,e,n){var r=e+"";return Gt(t,Ft(r,ee(zt(r),n)))};const re=function(t,e,n,r,o,i,a,u,c,s){var l=8&e;e|=l?32:64,4&(e&=~(l?64:32))||(e&=-4);var f=[t,e,o,l?i:void 0,l?a:void 0,l?void 0:i,l?void 0:a,u,c,s],d=n.apply(void 0,f);return Nt(t)&&Bt(d,f),d.placeholder=r,ne(d,t,e)};const oe=function(t){return t.placeholder};var ie=/^(?:0|[1-9]\d*)$/;const ae=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ie.test(t))&&t>-1&&t%1==0&&t1&&_.reverse(),d&&l-1&&t%1==0&&t<=9007199254740991};const Me=function(t){return null!=t&&Ie(t.length)&&!U(t)};const Te=function(t,e,n){if(!M(n))return!1;var r=typeof e;return!!("number"==r?Me(n)&&ae(e,n.length):"string"==r&&e in n)&&Oe(n[e],t)};const Re=function(t){return Pe((function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&Te(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),e=Object(e);++r-1};const Un=function(t,e){var n=this.__data__,r=Cn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function Fn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0&&r(c)?n>1?t(c,n-1,r,o,i):pr(i,c):o||(i[i.length]=c)}return i};const mr=function(t){return(null==t?0:t.length)?gr(t,1):[]};const yr=function(t){return Gt(Ae(t,void 0,mr),t+"")};const br=yr(dr);const _r=rn(Object.getPrototypeOf,Object);var wr=Function.prototype,Or=Object.prototype,jr=wr.toString,xr=Or.hasOwnProperty,Er=jr.call(Object);const Sr=function(t){if(!g(t)||"[object Object]"!=v(t))return!1;var e=_r(t);if(null===e)return!0;var n=xr.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&jr.call(n)==Er};const Ar=function(t){if(!g(t))return!1;var e=v(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Sr(t)};var Pr=Pe((function(t,e){try{return dt(t,void 0,e)}catch(t){return Ar(t)?t:new Error(t)}}));const Ir=Pr;const Mr=function(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=L(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}};var Tr=Pe((function(t,e,n){var r=1;if(n.length){var o=le(n,oe(Tr));r|=32}return be(t,r,e,n,o)}));Tr.placeholder={};const Rr=Tr;const kr=yr((function(t,e){return Kt(e,(function(e){e=sr(e),we(t,e,Rr(t[e],t))})),t}));var Nr=Pe((function(t,e,n){var r=3;if(n.length){var o=le(n,oe(Nr));r|=32}return be(e,r,t,n,o)}));Nr.placeholder={};const Dr=Nr;const Cr=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r=r?t:Cr(t,e,n)};var Lr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const Wr=function(t){return Lr.test(t)};const zr=function(t){return t.split("")};var Ur="\\ud800-\\udfff",Fr="["+Ur+"]",Hr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",$r="\\ud83c[\\udffb-\\udfff]",Vr="[^"+Ur+"]",qr="(?:\\ud83c[\\udde6-\\uddff]){2}",Gr="[\\ud800-\\udbff][\\udc00-\\udfff]",Kr="(?:"+Hr+"|"+$r+")"+"?",Yr="[\\ufe0e\\ufe0f]?",Zr=Yr+Kr+("(?:\\u200d(?:"+[Vr,qr,Gr].join("|")+")"+Yr+Kr+")*"),Xr="(?:"+[Vr+Hr+"?",Hr,qr,Gr,Fr].join("|")+")",Qr=RegExp($r+"(?="+$r+")|"+Xr+Zr,"g");const Jr=function(t){return t.match(Qr)||[]};const to=function(t){return Wr(t)?Jr(t):zr(t)};const eo=function(t){return function(e){e=ur(e);var n=Wr(e)?to(e):void 0,r=n?n[0]:e.charAt(0),o=n?Br(n,1).join(""):e.slice(1);return r[t]()+o}};const no=eo("toUpperCase");const ro=function(t){return no(ur(t).toLowerCase())};const oo=function(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o=e?t:e)),t};const Jo=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=D(n))==n?n:0),void 0!==e&&(e=(e=D(e))==e?e:0),Qo(D(t),e,n)};const ti=function(){this.__data__=new Hn,this.size=0};const ei=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const ni=function(t){return this.__data__.get(t)};const ri=function(t){return this.__data__.has(t)};const oi=function(t,e){var n=this.__data__;if(n instanceof Hn){var r=n.__data__;if(!$n||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(t,e),this.size=n.size,this};function ii(t){var e=this.__data__=new Hn(t);this.size=e.size}ii.prototype.clear=ti,ii.prototype.delete=ei,ii.prototype.get=ni,ii.prototype.has=ri,ii.prototype.set=oi;const ai=ii;const ui=function(t,e){return t&&Ee(e,cn(e),t)};const ci=function(t,e){return t&&Ee(e,vn(e),t)};var si="object"==typeof exports&&exports&&!exports.nodeType&&exports,li=si&&"object"==typeof module&&module&&!module.nodeType&&module,fi=li&&li.exports===si?i.Buffer:void 0,di=fi?fi.allocUnsafe:void 0;const pi=function(t,e){if(e)return t.slice();var n=t.length,r=di?di(n):new t.constructor(n);return t.copy(r),r};const hi=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++nu))return!1;var s=i.get(t),l=i.get(e);if(s&&l)return s==e&&l==t;var f=-1,d=!0,p=2&n?new wa:void 0;for(i.set(t,e),i.set(e,t);++f=e||n<0||f&&t-s>=i}function v(){var t=yu();if(h(t))return g(t);u=setTimeout(v,function(t){var n=e-(t-c);return f?_u(n,i-(t-s)):n}(t))}function g(t){return u=void 0,d&&r?p(t):(r=o=void 0,a)}function m(){var t=yu(),n=h(t);if(r=arguments,o=this,c=t,n){if(void 0===u)return function(t){return s=t,u=setTimeout(v,e),l?p(t):a}(c);if(f)return clearTimeout(u),u=setTimeout(v,e),p(c)}return void 0===u&&(u=setTimeout(v,e)),a}return e=D(e)||0,M(n)&&(l=!!n.leading,i=(f="maxWait"in n)?bu(D(n.maxWait)||0,e):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=c=o=u=void 0},m.flush=function(){return void 0===u?a:g(yu())},m};const Ou=function(t,e){return null==t||t!=t?e:t};var ju=Object.prototype,xu=ju.hasOwnProperty,Eu=Pe((function(t,e){t=Object(t);var n=-1,r=e.length,o=r>2?e[2]:void 0;for(o&&Te(e[0],e[1],o)&&(r=1);++n=200&&(i=ja,a=!1,e=new wa(e));t:for(;++o=0&&t.slice(n,o)==e};const fc=function(t,e){return b(e,(function(e){return[e,t[e]]}))};const dc=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n};const pc=function(t){return function(e){var n=zi(e);return"[object Map]"==n?Ea(e):"[object Set]"==n?dc(e):fc(e,t(e))}};const hc=pc(cn);const vc=pc(vn);const gc=io({"&":"&","<":"<",">":">",'"':""","'":"'"});var mc=/[&<>"']/g,yc=RegExp(mc.source);const bc=function(t){return(t=ur(t))&&yc.test(t)?t.replace(mc,gc):t};var _c=/[\\^$.*+?()[\]{}|]/g,wc=RegExp(_c.source);const Oc=function(t){return(t=ur(t))&&wc.test(t)?t.replace(_c,"\\$&"):t};const jc=function(t,e){for(var n=-1,r=null==t?0:t.length;++no?0:o+n),(r=void 0===r||r>o?o:L(r))<0&&(r+=o),r=n>r?0:Sc(r);n-1?o[i?e[a]:a]:void 0}};var Rc=Math.max;const kc=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:L(n);return o<0&&(o=Rc(r+o,0)),Yt(t,Za(e,3),o)};const Nc=Tc(kc);const Dc=function(t,e,n){var r;return n(t,(function(t,n,o){if(e(t,n,o))return r=n,!1})),r};const Cc=function(t,e){return Dc(t,Za(e,3),iu)};var Bc=Math.max,Lc=Math.min;const Wc=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=L(n),o=n<0?Bc(r+o,0):Lc(o,r-1)),Yt(t,Za(e,3),o,!0)};const zc=Tc(Wc);const Uc=function(t,e){return Dc(t,Za(e,3),uc)};const Fc=function(t){return t&&t.length?t[0]:void 0};const Hc=function(t,e){var n=-1,r=Me(t)?Array(t.length):[];return uu(t,(function(t,o,i){r[++n]=e(t,o,i)})),r};const $c=function(t,e){return(_(t)?b:Hc)(t,Za(e,3))};const Vc=function(t,e){return gr($c(t,e),1)};var qc=1/0;const Gc=function(t,e){return gr($c(t,e),qc)};const Kc=function(t,e,n){return n=void 0===n?1:L(n),gr($c(t,e),n)};var Yc=1/0;const Zc=function(t){return(null==t?0:t.length)?gr(t,Yc):[]};const Xc=function(t,e){return(null==t?0:t.length)?(e=void 0===e?1:L(e),gr(t,e)):[]};const Qc=function(t){return be(t,512)};const Jc=qo("floor");const ts=function(t){return yr((function(e){var n=e.length,r=n,o=Pt.prototype.thru;for(t&&e.reverse();r--;){var i=e[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!a&&"wrapper"==St(i))var a=new Pt([],!0)}for(r=a?r:n;++re};const vs=function(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=D(e),n=D(n)),t(e,n)}};const gs=vs(hs);const ms=vs((function(t,e){return t>=e}));var ys=Object.prototype.hasOwnProperty;const bs=function(t,e){return null!=t&&ys.call(t,e)};const _s=function(t,e){return null!=t&&$a(t,e,bs)};var ws=Math.max,Os=Math.min;const js=function(t,e,n){return t>=Os(e,n)&&t-1:!!o&&Qt(t,e,n)>-1};var Ms=Math.max;const Ts=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:L(n);return o<0&&(o=Ms(r+o,0)),Qt(t,e,o)};const Rs=function(t){return(null==t?0:t.length)?Cr(t,0,-1):[]};var ks=Math.min;const Ns=function(t,e,n){for(var r=n?Fu:Jt,o=t[0].length,i=t.length,a=i,u=Array(i),c=1/0,s=[];a--;){var l=t[a];a&&e&&(l=b(l,Ke(e))),c=ks(l.length,c),u[a]=!n&&(e||o>=120&&l.length>=120)?new wa(a&&l):void 0}l=t[0];var f=-1,d=u[0];t:for(;++f=-9007199254740991&&t<=Al};const Il=function(t){return void 0===t};const Ml=function(t){return g(t)&&"[object WeakMap]"==zi(t)};const Tl=function(t){return g(t)&&"[object WeakSet]"==v(t)};const Rl=function(t){return Za("function"==typeof t?t:la(t,1))};var kl=Array.prototype.join;const Nl=function(t,e){return null==t?"":kl.call(t,e)};var Dl=zo((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}));const Cl=Dl;var Bl=su((function(t,e,n){we(t,n,e)}));const Ll=Bl;const Wl=function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r};var zl=Math.max,Ul=Math.min;const Fl=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=L(n))<0?zl(r+o,0):Ul(o,r-1)),e==e?Wl(t,e,o):Yt(t,Zt,o,!0)};var Hl=zo((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}));const $l=Hl;const Vl=eo("toLowerCase");const ql=function(t,e){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}};const _f=function(t,e){var n=t.length;if(n)return ae(e+=e<0?n:0,n)?t[e]:void 0};const wf=function(t,e){return t&&t.length?_f(t,L(e)):void 0};const Of=function(t){return t=L(t),Pe((function(e){return _f(e,t)}))};const jf=function(t,e){return e=cr(e,t),null==(t=Zs(t,e))||delete t[sr(qu(e))]};const xf=function(t){return Sr(t)?void 0:t};var Ef=yr((function(t,e){var n={};if(null==t)return n;var r=!1;e=b(e,(function(e){return e=cr(e,t),r||(r=e.length>1),e})),Ee(t,Ei(t),n),r&&(n=la(n,7,xf));for(var o=e.length;o--;)jf(n,e[o]);return n}));const Sf=Ef;const Af=function(t,e,n,r){if(!M(t))return t;for(var o=-1,i=(e=cr(e,t)).length,a=i-1,u=t;null!=u&&++oe||i&&a&&c&&!u&&!s||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!s&&t=u?c:c*("desc"==n[r]?-1:1)}return t.index-e.index};const Df=function(t,e,n){e=e.length?b(e,(function(t){return _(t)?function(e){return lr(e,1===t.length?t[0]:t)}:t})):[z];var r=-1;e=b(e,Ke(Za));var o=Hc(t,(function(t,n,o){var i=b(e,(function(e){return e(t)}));return{criteria:i,index:++r,value:t}}));return Rf(o,(function(t,e){return Nf(t,e,n)}))};const Cf=function(t,e,n,r){return null==t?[]:(_(e)||(e=null==e?[]:[e]),_(n=r?void 0:n)||(n=null==n?[]:[n]),Df(t,e,n))};const Bf=function(t){return yr((function(e){return e=b(e,Ke(Za)),Pe((function(n){var r=this;return t(e,(function(t){return dt(t,r,n)}))}))}))};const Lf=Bf(b);const Wf=Pe;var zf=Math.min,Uf=Wf((function(t,e){var n=(e=1==e.length&&_(e[0])?b(e[0],Ke(Za)):b(gr(e,1),Ke(Za))).length;return Pe((function(r){for(var o=-1,i=zf(r.length,n);++o9007199254740991)return n;do{e%2&&(n+=t),(e=Vf(e/2))&&(t+=t)}while(e);return n};const Gf=Ga("length");var Kf="\\ud800-\\udfff",Yf="["+Kf+"]",Zf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Xf="\\ud83c[\\udffb-\\udfff]",Qf="[^"+Kf+"]",Jf="(?:\\ud83c[\\udde6-\\uddff]){2}",td="[\\ud800-\\udbff][\\udc00-\\udfff]",ed="(?:"+Zf+"|"+Xf+")"+"?",nd="[\\ufe0e\\ufe0f]?",rd=nd+ed+("(?:\\u200d(?:"+[Qf,Jf,td].join("|")+")"+nd+ed+")*"),od="(?:"+[Qf+Zf+"?",Zf,Jf,td,Yf].join("|")+")",id=RegExp(Xf+"(?="+Xf+")|"+od+rd,"g");const ad=function(t){for(var e=id.lastIndex=0;id.test(t);)++e;return e};const ud=function(t){return Wr(t)?ad(t):Gf(t)};var cd=Math.ceil;const sd=function(t,e){var n=(e=void 0===e?" ":j(e)).length;if(n<2)return n?qf(e,t):e;var r=qf(e,cd(t/ud(e)));return Wr(e)?Br(to(r),0,t).join(""):r.slice(0,t)};var ld=Math.ceil,fd=Math.floor;const dd=function(t,e,n){t=ur(t);var r=(e=L(e))?ud(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return sd(fd(o),n)+t+sd(ld(o),n)};const pd=function(t,e,n){t=ur(t);var r=(e=L(e))?ud(t):0;return e&&r-1;)u!==t&&Id.call(u,c,1),Id.call(t,c,1);return t};const Td=function(t,e){return t&&t.length&&e&&e.length?Md(t,e):t};const Rd=Pe(Td);const kd=function(t,e,n){return t&&t.length&&e&&e.length?Md(t,e,Za(n,2)):t};const Nd=function(t,e,n){return t&&t.length&&e&&e.length?Md(t,e,void 0,n):t};var Dd=Array.prototype.splice;const Cd=function(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;ae(o)?Dd.call(t,o,1):jf(t,o)}}return t};var Bd=yr((function(t,e){var n=null==t?0:t.length,r=dr(t,e);return Cd(t,b(e,(function(t){return ae(t,n)?+t:t})).sort(kf)),r}));const Ld=Bd;var Wd=Math.floor,zd=Math.random;const Ud=function(t,e){return t+Wd(zd()*(e-t+1))};var Fd=parseFloat,Hd=Math.min,$d=Math.random;const Vd=function(t,e,n){if(n&&"boolean"!=typeof n&&Te(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=B(t),void 0===e?(e=t,t=0):e=B(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=$d();return Hd(t+o*(e-t+Fd("1e-"+((o+"").length-1))),e)}return Ud(t,e)};var qd=Math.ceil,Gd=Math.max;const Kd=function(t,e,n,r){for(var o=-1,i=Gd(qd((e-t)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=t,t+=n;return a};const Yd=function(t){return function(e,n,r){return r&&"number"!=typeof r&&Te(e,n,r)&&(n=r=void 0),e=B(e),void 0===n?(n=e,e=0):n=B(n),r=void 0===r?e1&&Te(t,e[0],e[1])?e=[]:n>2&&Te(e[0],e[1],e[2])&&(e=[e[0]]),Df(t,gr(e,1),[])}));var Rp=Math.floor,kp=Math.min;const Np=function(t,e,n,r){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var a=(e=n(e))!=e,u=null===e,c=m(e),s=void 0===e;o>>1,a=t[i];null!==a&&!m(a)&&(n?a<=e:a>>0)?(t=ur(t))&&("string"==typeof e||null!=e&&!Sl(e))&&!(e=j(e))&&Wr(t)?Br(to(t),0,n):t.split(e,n):[]};var qp=Math.max;const Gp=function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return e=null==e?0:qp(L(e),0),Pe((function(n){var r=n[e],o=Br(n,0,e);return r&&pr(o,r),dt(t,this,o)}))};var Kp=zo((function(t,e,n){return t+(n?" ":"")+no(e)}));const Yp=Kp;const Zp=function(t,e,n){return t=ur(t),n=null==n?0:Qo(L(n),0,t.length),e=j(e),t.slice(n,n+e.length)==e};const Xp=function(){return{}};const Qp=function(){return""};const Jp=function(){return!0};const th=x((function(t,e){return t-e}),0);const eh=function(t){return t&&t.length?nf(t,z):0};const nh=function(t,e){return t&&t.length?nf(t,Za(e,2)):0};const rh=function(t){var e=null==t?0:t.length;return e?Cr(t,1,e):[]};const oh=function(t,e,n){return t&&t.length?(e=n||void 0===e?1:L(e),Cr(t,0,e<0?0:e)):[]};const ih=function(t,e,n){var r=null==t?0:t.length;return r?(e=n||void 0===e?1:L(e),Cr(t,(e=r-e)<0?0:e,r)):[]};const ah=function(t,e){return t&&t.length?tc(t,Za(e,3),!1,!0):[]};const uh=function(t,e){return t&&t.length?tc(t,Za(e,3)):[]};const ch=function(t,e){return e(t),t};var sh=Object.prototype,lh=sh.hasOwnProperty;const fh=function(t,e,n,r){return void 0===t||Oe(t,sh[n])&&!lh.call(r,n)?e:t};var dh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};const ph=function(t){return"\\"+dh[t]};const hh=/<%=([\s\S]+?)%>/g;const vh={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:hh,variable:"",imports:{_:{escape:bc}}};var gh=/\b__p \+= '';/g,mh=/\b(__p \+=) '' \+/g,yh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bh=/[()=,{}\[\]\/\s]/,_h=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,wh=/($^)/,Oh=/['\n\r\u2028\u2029\\]/g,jh=Object.prototype.hasOwnProperty;const xh=function(t,e,n){var r=vh.imports._.templateSettings||vh;n&&Te(t,e,n)&&(e=void 0),t=ur(t),e=bn({},e,r,fh);var o,i,a=bn({},e.imports,r.imports,fh),u=cn(a),c=Ss(a,u),s=0,l=e.interpolate||wh,f="__p += '",d=RegExp((e.escape||wh).source+"|"+l.source+"|"+(l===hh?_h:wh).source+"|"+(e.evaluate||wh).source+"|$","g"),p=jh.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(d,(function(e,n,r,a,u,c){return r||(r=a),f+=t.slice(s,c).replace(Oh,ph),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(i=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=c+e.length,e})),f+="';\n";var h=jh.call(e,"variable")&&e.variable;if(h){if(bh.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(gh,""):f).replace(mh,"$1").replace(yh,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Ir((function(){return Function(u,p+"return "+f).apply(void 0,c)}));if(v.source=f,Ar(v))throw v;return v};const Eh=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return M(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),wu(t,e,{leading:r,maxWait:e,trailing:o})};const Sh=function(t,e){return e(t)};var Ah=4294967295,Ph=Math.min;const Ih=function(t,e){if((t=L(t))<1||t>9007199254740991)return[];var n=Ah,r=Ph(t,Ah);e=rc(e),t-=Ah;for(var o=De(r,e);++n-1;);return n};const zh=function(t,e){for(var n=-1,r=t.length;++n-1;);return n};const Uh=function(t,e,n){if((t=ur(t))&&(n||void 0===e))return I(t);if(!t||!(e=j(e)))return t;var r=to(t),o=to(e),i=zh(r,o),a=Wh(r,o)+1;return Br(r,i,a).join("")};const Fh=function(t,e,n){if((t=ur(t))&&(n||void 0===e))return t.slice(0,A(t)+1);if(!t||!(e=j(e)))return t;var r=to(t),o=Wh(r,to(e))+1;return Br(r,0,o).join("")};var Hh=/^\s+/;const $h=function(t,e,n){if((t=ur(t))&&(n||void 0===e))return t.replace(Hh,"");if(!t||!(e=j(e)))return t;var r=to(t),o=zh(r,to(e));return Br(r,o).join("")};var Vh=/\w*$/;const qh=function(t,e){var n=30,r="...";if(M(e)){var o="separator"in e?e.separator:o;n="length"in e?L(e.length):n,r="omission"in e?j(e.omission):r}var i=(t=ur(t)).length;if(Wr(t)){var a=to(t);i=a.length}if(n>=i)return t;var u=n-ud(r);if(u<1)return r;var c=a?Br(a,0,u).join(""):t.slice(0,u);if(void 0===o)return c+r;if(a&&(u+=c.length-u),Sl(o)){if(t.slice(u).search(o)){var s,l=c;for(o.global||(o=RegExp(o.source,ur(Vh.exec(o))+"g")),o.lastIndex=0;s=o.exec(l);)var f=s.index;c=c.slice(0,void 0===f?u:f)}}else if(t.indexOf(j(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r};const Gh=function(t){return _e(t,1)};const Kh=io({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Yh=/&(?:amp|lt|gt|quot|#39);/g,Zh=RegExp(Yh.source);const Xh=function(t){return(t=ur(t))&&Zh.test(t)?t.replace(Yh,Kh):t};var Qh=Pi&&1/Sa(new Pi([,-0]))[1]==1/0?function(t){return new Pi(t)}:wt;const Jh=Qh;const tv=function(t,e,n){var r=-1,o=Jt,i=t.length,a=!0,u=[],c=u;if(n)a=!1,o=Fu;else if(i>=200){var s=e?null:Jh(t);if(s)return Sa(s);a=!1,o=ja,c=new wa}else c=e?[]:u;t:for(;++r1||this.__actions__.length)&&r instanceof _t&&ae(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Sh,args:[o],thisArg:void 0}),new Pt(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(o)}));const xv=function(){return Ko(this)};const Ev=function(){var t=this.__wrapped__;if(t instanceof _t){var e=t;return this.__actions__.length&&(e=new _t(this)),(e=e.reverse()).__actions__.push({func:Sh,args:[fp],thisArg:void 0}),new Pt(e,this.__chain__)}return this.thru(fp)};const Sv=function(t,e,n){var r=t.length;if(r<2)return r?tv(t[0]):[];for(var o=-1,i=Array(r);++o1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,pv(t,n)}));const Cv=Dv,Bv={chunk:Xo,compact:ga,concat:ma,difference:Vu,differenceBy:Ku,differenceWith:Zu,drop:Qu,dropRight:Ju,dropRightWhile:ec,dropWhile:nc,fill:Pc,findIndex:kc,findLastIndex:Wc,first:Fc,flatten:mr,flattenDeep:Zc,flattenDepth:Xc,fromPairs:us,head:Fc,indexOf:Ts,initial:Rs,intersection:Cs,intersectionBy:Ls,intersectionWith:Ws,join:Nl,last:qu,lastIndexOf:Fl,nth:wf,pull:Rd,pullAll:Td,pullAllBy:kd,pullAllWith:Nd,pullAt:Ld,remove:ip,reverse:fp,slice:Sp,sortedIndex:Cp,sortedIndexBy:Bp,sortedIndexOf:Lp,sortedLastIndex:Wp,sortedLastIndexBy:zp,sortedLastIndexOf:Up,sortedUniq:Hp,sortedUniqBy:$p,tail:rh,take:oh,takeRight:ih,takeRightWhile:ah,takeWhile:uh,union:ev,unionBy:rv,unionWith:ov,uniq:iv,uniqBy:av,uniqWith:uv,unzip:dv,unzipWith:pv,without:wv,xor:Av,xorBy:Iv,xorWith:Mv,zip:Tv,zipObject:kv,zipObjectDeep:Nv,zipWith:Cv},Lv={countBy:du,each:oc,eachRight:sc,every:Ec,filter:Mc,find:Nc,findLast:zc,flatMap:Vc,flatMapDeep:Gc,flatMapDepth:Kc,forEach:oc,forEachRight:sc,groupBy:ps,includes:Is,invokeMap:tl,keyBy:Ll,map:$c,orderBy:Cf,partition:jd,reduce:ep,reduceRight:rp,reject:op,sample:vp,sampleSize:bp,shuffle:xp,size:Ep,some:Mp,sortBy:Tp},Wv={now:yu},zv={after:W,ary:_e,before:Mr,bind:Rr,bindKey:Dr,curry:vu,curryRight:mu,debounce:wu,defer:Wu,delay:Uu,flip:Qc,memoize:er,negate:vf,once:Tf,overArgs:Ff,partial:bd,partialRight:wd,rearg:Jd,rest:cp,spread:Gp,throttle:Eh,unary:Gh,wrap:Ov},Uv={castArray:Ho,clone:fa,cloneDeep:da,cloneDeepWith:pa,cloneWith:ha,conformsTo:eu,eq:Oe,gt:gs,gte:ms,isArguments:ze,isArray:_,isArrayBuffer:rl,isArrayLike:Me,isArrayLikeObject:Pu,isBoolean:ol,isBuffer:Ve,isDate:ul,isElement:cl,isEmpty:ll,isEqual:fl,isEqualWith:dl,isError:Ar,isFinite:hl,isFunction:U,isInteger:vl,isLength:Ie,isMap:na,isMatch:gl,isMatchWith:ml,isNaN:bl,isNative:wl,isNil:Ol,isNull:jl,isNumber:yl,isObject:M,isObjectLike:g,isPlainObject:Sr,isRegExp:Sl,isSafeInteger:Pl,isSet:ia,isString:Es,isSymbol:m,isTypedArray:tn,isUndefined:Il,isWeakMap:Ml,isWeakSet:Tl,lt:Gl,lte:Kl,toArray:yf,toFinite:B,toInteger:L,toLength:Sc,toNumber:D,toPlainObject:Mu,toSafeInteger:Ch,toString:ur},Fv={add:E,ceil:Go,divide:Xu,floor:Jc,max:tf,maxBy:ef,mean:of,meanBy:af,min:ff,minBy:df,multiply:hf,round:dp,subtract:th,sum:eh,sumBy:nh},Hv={clamp:Jo,inRange:xs,random:Vd},$v={assign:fn,assignIn:mn,assignInWith:bn,assignWith:wn,at:br,create:pu,defaults:Su,defaultsDeep:Cu,entries:hc,entriesIn:vc,extend:mn,extendWith:bn,findKey:Cc,findLastKey:Uc,forIn:rs,forInRight:os,forOwn:is,forOwnRight:as,functions:ss,functionsIn:ls,get:fr,has:_s,hasIn:Va,invert:$s,invertBy:Ys,invoke:Qs,keys:cn,keysIn:vn,mapKeys:Yl,mapValues:Zl,merge:cf,mergeWith:Du,omit:Sf,omitBy:Mf,pick:Ed,pickBy:If,result:sp,set:_p,setWith:wp,toPairs:hc,toPairsIn:vc,transform:Lh,unset:lv,update:vv,updateWith:gv,values:As,valuesIn:bv},Vv={at:jv,chain:Ko,commit:va,lodash:kt,next:bf,plant:Sd,reverse:Ev,tap:ch,thru:Sh,toIterator:Mh,toJSON:Rh,value:Rh,valueOf:Rh,wrapperChain:xv},qv={camelCase:Fo,capitalize:ro,deburr:so,endsWith:lc,escape:bc,escapeRegExp:Oc,kebabCase:Cl,lowerCase:$l,lowerFirst:Vl,pad:dd,padEnd:pd,padStart:hd,parseInt:md,repeat:ap,replace:up,snakeCase:Pp,split:Vp,startCase:Yp,startsWith:Zp,template:xh,templateSettings:vh,toLower:kh,toUpper:Bh,trim:Uh,trimEnd:Fh,trimStart:$h,truncate:qh,unescape:Xh,upperCase:yv,upperFirst:no,words:Lo},Gv={attempt:Ir,bindAll:kr,cond:Xa,conforms:tu,constant:Ht,defaultTo:Ou,flow:es,flowRight:ns,identity:z,iteratee:Rl,matches:Xl,matchesProperty:Ql,method:sf,methodOf:lf,mixin:pf,noop:wt,nthArg:Of,over:Lf,overEvery:Hf,overSome:$f,property:Ya,propertyOf:Ad,range:Zd,rangeRight:Xd,stubArray:vi,stubFalse:Ue,stubObject:Xp,stubString:Qp,stubTrue:Jp,times:Ih,toPath:Nh,uniqueId:sv};const Kv=function(){var t=new _t(this.__wrapped__);return t.__actions__=It(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=It(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=It(this.__views__),t};const Yv=function(){if(this.__filtered__){var t=new _t(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t};var Zv=Math.max,Xv=Math.min;const Qv=function(t,e,n){for(var r=-1,o=n.length;++r0||e<0)?new _t(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=L(e))<0?n.dropRight(-e):n.take(e-t)),n)},_t.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},_t.prototype.toArray=function(){return this.take(rg)},iu(_t.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=kt[r?"take"+("last"==e?"Right":""):e],i=r||/^find/.test(e);o&&(kt.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,u=e instanceof _t,c=a[0],s=u||_(e),l=function(t){var e=o.apply(kt,pr([t],a));return r&&f?e[0]:e};s&&n&&"function"==typeof c&&1!=c.length&&(u=s=!1);var f=this.__chain__,d=!!this.__actions__.length,p=i&&!f,h=u&&!d;if(!i&&s){e=h?e:new _t(this);var v=t.apply(e,a);return v.__actions__.push({func:Sh,args:[l],thisArg:void 0}),new Pt(v,f)}return p&&h?t.apply(this,a):(v=this.thru(l),p?r?v.value()[0]:v.value():v)})})),Kt(["pop","push","shift","sort","splice","unshift"],(function(t){var e=og[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);kt.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(_(o)?o:[],t)}return this[n]((function(n){return e.apply(_(n)?n:[],t)}))}})),iu(_t.prototype,(function(t,e){var n=kt[e];if(n){var r=n.name+"";ig.call(xt,r)||(xt[r]=[]),xt[r].push({name:e,func:n})}})),xt[fe(void 0,2).name]=[{name:"wrapper",func:void 0}],_t.prototype.clone=Kv,_t.prototype.reverse=Yv,_t.prototype.value=tg,kt.prototype.at=Vv.at,kt.prototype.chain=Vv.wrapperChain,kt.prototype.commit=Vv.commit,kt.prototype.next=Vv.next,kt.prototype.plant=Vv.plant,kt.prototype.reverse=Vv.reverse,kt.prototype.toJSON=kt.prototype.valueOf=kt.prototype.value=Vv.value,kt.prototype.first=kt.prototype.head,ag&&(kt.prototype[ag]=Vv.toIterator);const lg=kt}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};n(221)})(); \ No newline at end of file +(()=>{var t={697:(t,e,n)=>{var r,o=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},i=n(542);"undefined"!=typeof document?r=document:(r=o["__GLOBAL_DOCUMENT_CACHE@4"])||(r=o["__GLOBAL_DOCUMENT_CACHE@4"]=i),t.exports=r},840:(t,e,n)=>{var r;r="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},t.exports=r},725:(t,e,n)=>{"use strict";n.r(e)},871:(t,e,n)=>{"use strict";n.r(e)},447:(t,e,n)=>{"use strict";n.r(e)},264:(t,e,n)=>{"use strict";n.r(e)},237:function(t,e){"use strict";var n=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var{scene:e}=t,o=n(t,["scene"]);if(!e.details||o.hideDescription)return r.createElement("div",{className:"vsc-description"});const i={WebkitLineClamp:o.descriptionMaxLines};return r.createElement("div",{className:"vsc-description"},r.createElement("div",{style:i,className:"vsc-description-inner"},e.details))}},407:function(t,e){"use strict";var n=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var{scene:e}=t;return n(t,["scene"]).hideDirector||!e.director?null:r.createElement("div",{className:"vsc-director"},"Directed by"," ",r.createElement("a",{href:o(e.director)},e.director))}},98:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const{React:n}=window.PluginApi;e.default=()=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",focusable:"false",width:"1em",height:"1em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 36 36",style:{transform:"rotate(360deg)"}},n.createElement("path",{fill:"currentColor",d:"M22.855.758L7.875 7.024l12.537 9.733c2.633 2.224 6.377 2.937 9.77 1.518c4.826-2.018 7.096-7.576 5.072-12.413C33.232 1.024 27.68-1.261 22.855.758zm-9.962 17.924L2.05 10.284L.137 23.529a7.993 7.993 0 0 0 2.958 7.803a8.001 8.001 0 0 0 9.798-12.65zm15.339 7.015l-8.156-4.69l-.033 9.223c-.088 2 .904 3.98 2.75 5.041a5.462 5.462 0 0 0 7.479-2.051c1.499-2.644.589-6.013-2.04-7.523z"}),n.createElement("rect",{x:"0",y:"0",width:"36",height:"36",fill:"rgba(0, 0, 0, 0)"}))},299:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(730),{React:o}=window.PluginApi;e.default=({file:t,hide:e})=>{if(e)return null;const n=r.TextUtils.resolution(t.width,t.height),{HoverPopover:i}=window.PluginApi.components;let a="";switch(n){case"144p":case"240p":case"360p":case"480p":case"540p":a="SD";break;case"720p":case"1080p":a="HD";break;case"1440p":a="2K";break;default:a=n||null}return o.createElement(i,{className:"vsc-resolution vsc-resolution--icon",content:o.createElement("span",{className:"vsc-text-hover"},t.width," × ",t.height),leaveDelay:100,placement:"top"},a)}},254:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var{hideResolution:e,resolutionIcon:n,scene:o}=t,i=r(t,["hideResolution","resolutionIcon","scene"]);const a=[...o.files].sort(((t,e)=>e.height-t.height))[0],l=!!o.date&&!i.hideDate,f=!!a&&!i.hideDuration,d=!!a&&!i.hideFilesize;return l||f||d||!e?u.createElement("div",{className:"vsc-key-data"},u.createElement(s,{durationPadding:i.durationPadding,file:a,hideDate:i.hideDate,hideDuration:i.hideDuration,scene:o}),u.createElement(c,{file:a,hideFilesize:i.hideFilesize,hideFramerate:i.hideFramerate,hideResolution:e,resolutionIcon:n})):null};const s=t=>{var e,n;if(t.hideDate&&t.hideDuration)return null;const r=t.hideDate?null:u.createElement("span",{className:"vsc-date"},t.scene.date);let o=null;if(!t.hideDuration){let r=i.TextUtils.secondsToTimestamp(null!==(n=null===(e=t.file)||void 0===e?void 0:e.duration)&&void 0!==n?n:0);if(t.durationPadding){const t=r.split(":").reverse();1===t.length&&t.push("00","00"),2===t.length&&t.push("00"),r=t.map((t=>t.length<2?"0"+t:t)).reverse().join(":")}o=u.createElement("span",{className:"vsc-duration"},r)}return u.createElement("div",{className:"vsc-shared-file-data"},r,o)},c=t=>{var{file:e}=t,n=r(t,["file"]);if(!e||n.hideFilesize&&n.hideFramerate&&n.hideResolution)return null;const o=i.TextUtils.fileSize(e.size);let s=0;switch(o.unit){case"byte":case"kilobyte":case"megabyte":s=Math.round(o.size);break;default:s=Math.round(100*o.size)/100}const c=n.hideFilesize?null:u.createElement("span",{className:"vsc-filesize"},s,i.TextUtils.formatFileSizeUnit(o.unit)),l=n.hideFramerate?null:u.createElement("span",{className:"vsc-framerate"},e.frame_rate,"fps"),f=!n.hideResolution&&n.resolutionIcon,d=!n.hideResolution&&!n.resolutionIcon?u.createElement("span",{className:"vsc-resolution"},i.TextUtils.resolution(e.width,e.height)):null;return u.createElement("div",{className:"vsc-unique-file-data"},c,l,d,u.createElement(a.default,{file:e,hide:!f}))}},382:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(n(942)),{PluginApi:i}=window,{React:a}=i,{HoverPopover:u}=window.PluginApi.components;e.default=t=>{const e=a.createElement(a.Fragment,null,t.items.map((({data:e,link:n},r)=>{var i,u;const s=(0,o.default)("performer-tag-container","row",{"studio-tag-container":"studio"===t.type});return a.createElement("div",{className:s},a.createElement("a",{href:n,className:"performer-tag col m-auto"},a.createElement("img",{className:"image-thumbnail",alt:null!==(i=e.name)&&void 0!==i?i:"",src:null!==(u=e.image_path)&&void 0!==u?u:""})),a.createElement("span",{className:"tag-item d-block badge badge-secondary"},a.createElement("a",{href:n},a.createElement("span",null,e.name))))})));return a.createElement(u,{className:"overflow-popover",children:t.children,content:e,leaveDelay:100,placement:"bottom"})}},622:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var e,n,o,c,{performer:l}=t,f=r(t,["performer"]);const d=!!l.birthdate&&!f.hidePerformerHoverAge,p=d?u.createElement("span",{className:"vsc-performer-age"},a.TextUtils.age(l.birthdate,f.sceneDate)," years old"):null,h=!!l.country&&!f.hidePerformerHoverNationality,v=h?u.createElement("span",{className:`fi fi-${null===(e=l.country)||void 0===e?void 0:e.toLowerCase()}`}):null,g=!!l.image_path&&!l.image_path.includes("default=true")&&!f.hidePerformerHoverImage,m=g?u.createElement("a",{href:`/performers/${l.id}`,className:"performer-tag col m-auto"},u.createElement("img",{className:"image-thumbnail",alt:null!==(n=l.name)&&void 0!==n?n:"",src:null!==(o=l.image_path)&&void 0!==o?o:""})):null,y=!f.hidePerformerHoverName,b=(0,i.default)("vsc-performer-text-list-popover-name",{[`vsc-gender-color--${(null===(c=l.gender)||void 0===c?void 0:c.toLowerCase())||"unknown"}`]:f.performerGenderColors}),_=y?u.createElement("div",{className:b},l.name):null,w=h||d?u.createElement("div",{className:"vsc-performer-text-list-popover-data"},v,p):null,O=u.createElement("div",{className:"performer-tag-container row"},m,_,w);return w||g?u.createElement(s,{content:O,leaveDelay:100,placement:"top"},f.children):f.children}},309:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var{performerLimit:e,scene:n}=t,o=r(t,["performerLimit","scene"]);if(o.hidePerformer||!o.performerAvatars||n.performers.length<1)return null;const u=(0,i.sortPerformers)(n.performers,o.performerGenderFilter),c=e?u.slice(0,e):u,h=e?u.slice(e,u.length):[];return s.createElement(s.Fragment,null,s.createElement("ul",{className:"vsc-performers-list vsc-performers-list__avatars"},c.map((t=>{let e;const r=o.sceneCustomAvatars.find((e=>e.performers.find((e=>e.id===t.id))));switch(!0){case!!r:e=s.createElement(d,{performer:t,image:r});break;case o.performerAvatarsProfile:e=s.createElement(f,{performer:t});break;default:e=s.createElement(l,{performer:t})}return s.createElement("li",{className:"vsc-performer"},s.createElement(a.default,{hidePerformerHoverAge:o.hidePerformerHoverAge,hidePerformerHoverImage:o.hidePerformerHoverImage,hidePerformerHoverNationality:o.hidePerformerHoverNationality,hidePerformerHoverName:!1,performer:t,performerGenderColors:o.performerGenderColors,sceneDate:n.date},e))})),s.createElement(p,{performers:h})))};const l=({performer:t})=>{const e=t.name.split("-").join(" ").split(" ");let n="";e.forEach((t=>{n+=t.split("")[0]}));const r=(0,i.getPerformerGenderIcon)(t.gender);return s.createElement("a",{href:`/performers/${t.id}`,className:"vsc-performer-avatar"},s.createElement("span",{"aria-label":t.name},n),r?s.createElement(c,{icon:r}):null)},f=({performer:t})=>!t.image_path||t.image_path.includes("default=true")?s.createElement(l,{performer:t}):s.createElement("a",{href:`/performers/${t.id}`,className:"vsc-performer-avatar vsc-performer-avatar--profile"},s.createElement("img",{src:t.image_path,alt:t.name})),d=({image:t,performer:e})=>t.paths.image?s.createElement("a",{href:`/performers/${e.id}`,className:"vsc-performer-avatar vsc-performer-avatar--custom"},s.createElement("img",{src:t.paths.image,alt:e.name})):s.createElement(l,{performer:e}),p=({performers:t})=>{if(0===t.length)return null;const e=t.map((t=>({data:t,link:`/performers/${t.id}`})));return s.createElement("li",{className:"vsc-performer"},s.createElement(u.default,{items:e,type:"performer"},s.createElement("div",{className:"vsc-performer-avatar vsc-performer-overflow"},s.createElement("span",{"aria-label":`and ${t.length} more`},"+",t.length))))}},23:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var{performerLimit:e,scene:n}=t,o=r(t,["performerLimit","scene"]);if(o.hidePerformer||o.performerAvatars||n.performers.length<1)return null;const s=(0,a.sortPerformers)(n.performers,o.performerGenderFilter),f=e?s.slice(0,e):s,d=e?s.slice(e,s.length):[];return c.createElement("div",{className:"vsc-performers-list vsc-performers-list__text"},f.map(((t,e)=>{var r;const a=e===s.length-2,l=e{if(0===t.length)return null;const e=t.map((t=>({data:t,link:`/performers/${t.id}`})));return c.createElement(s.default,{items:e,type:"performer"},c.createElement("span",{className:"top-meta-overflow hoverable"},"and ",t.length," more"))}},149:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var e,n,{config:o,scene:v,stashSettings:g}=t,m=r(t,["config","scene","stashSettings"]);const y=(0,p.makeSceneUrl)({cont:null!==(e=null==g?void 0:g.interface.continuePlaylistDefault)&&void 0!==e&&e,index:m.index,scene:v,queue:m.queue});return h.createElement(h.Fragment,null,h.createElement("div",{className:"vsc-top-line"},h.createElement(l.default,{hideParentStudio:o.hideParentStudio,parentStudioSeparator:o.parentStudioSeparator,scene:v}),h.createElement(d.default,{hideOCount:o.hideOCount,hideOrganized:o.hideOrganized,hidePlayCount:o.hidePlayCount,hideRating:o.hideRating,hideZeroValueData:o.hideZeroValueData,ratingSystemOptions:null===(n=g.ui)||void 0===n?void 0:n.ratingSystemOptions,scene:v})),h.createElement(f.default,{scene:v,sceneLink:y}),h.createElement(u.default,{durationPadding:o.durationPadding,hideDate:o.hideDate,hideDuration:o.hideDuration,hideFilesize:o.hideFilesize,hideFramerate:o.hideFramerate,hideResolution:o.hideResolution,resolutionIcon:o.resolutionIcon,scene:v}),h.createElement(i.default,{descriptionMaxLines:o.descriptionMaxLines,hideDescription:o.hideDescription,scene:v}),h.createElement(a.default,{hideDirector:o.hideDirector,scene:v}),h.createElement(c.default,{hidePerformer:o.hidePerformer,hidePerformerHoverAge:o.hidePerformerHoverAge,hidePerformerHoverImage:o.hidePerformerHoverImage,hidePerformerHoverNationality:o.hidePerformerHoverNationality,performerAvatars:o.performerAvatars,performerGenderColors:o.performerGenderColors,performerGenderFilter:o.performerGenderFilter,performerLimit:o.performerLimit,scene:v}),h.createElement(s.default,{hidePerformer:o.hidePerformer,hidePerformerHoverAge:o.hidePerformerHoverAge,hidePerformerHoverImage:o.hidePerformerHoverImage,hidePerformerHoverNationality:o.hidePerformerHoverNationality,performerAvatars:o.performerAvatars,performerAvatarsProfile:o.performerAvatarsProfile,performerGenderColors:o.performerGenderColors,performerGenderFilter:o.performerGenderFilter,performerLimit:o.performerLimit,scene:v,sceneCustomAvatars:m.customAvatars}))}},733:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var e,n,o,s,c,l,{scene:f,stashSettings:d}=t,p=r(t,["scene","stashSettings"]);const h=u.useHistory(),v=null!==(e=null==d?void 0:d.interface.continuePlaylistDefault)&&void 0!==e&&e,g=a.useMemo((()=>f.files.length>0?f.files[0]:void 0),[f]);return a.createElement(a.Fragment,null,a.createElement(i.default,{image:null!==(n=f.paths.screenshot)&&void 0!==n?n:void 0,video:null!==(o=f.paths.preview)&&void 0!==o?o:void 0,isPortrait:function(){const t=(null==g?void 0:g.width)?g.width:0;return((null==g?void 0:g.height)?g.height:0)>t}(),soundActive:null!==(c=null===(s=null==d?void 0:d.interface)||void 0===s?void 0:s.soundOnPreview)&&void 0!==c&&c,vttPath:null!==(l=f.paths.vtt)&&void 0!==l?l:void 0,onScrubberClick:function(t){const e=p.queue?p.queue.makeLink(f.id,{sceneIndex:p.index,continue:v,start:t}):`/scenes/${f.id}?t=${t}`;h.push(e)},config:p.config,stashSettings:d}),function(){var t;return a.createElement("div",{className:"scene-interactive-speed-overlay"},null!==(t=f.interactive_speed)&&void 0!==t?t:"")}())}},589:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(n(942)),i=r(n(197));n(447);const{React:a}=window.PluginApi;e.default=({config:t,image:e,video:n,isPortrait:r,soundActive:u,vttPath:s,onScrubberClick:c})=>{const l=a.useRef(null);a.useEffect((()=>{const t=new IntersectionObserver((t=>{t.forEach((t=>{var e,n,r;t.intersectionRatio>0?null===(n=null===(e=l.current)||void 0===e?void 0:e.play())||void 0===n||n.catch((()=>{})):null===(r=l.current)||void 0===r||r.pause()}))}));l.current&&t.observe(l.current)})),a.useEffect((()=>{var t;(null===(t=null==l?void 0:l.current)||void 0===t?void 0:t.volume)&&(l.current.volume=u?.05:0)}),[u]);const f=(0,o.default)("scene-card-preview",{blurredBackground:t.previewBlurredBackground,portrait:r}),d={backgroundImage:t.previewBlurredBackground&&e?"url("+e+")":void 0},p=!t.previewScrubberDisabled?a.createElement(i.default,{vttPath:s,onClick:c}):null,h=!t.previewVideoDisabled,v=(0,o.default)("scene-card-preview-video",{"hide-cursor-on-video":t.previewVideoHideCursor}),g=h?a.createElement("video",{disableRemotePlayback:!0,playsInline:!0,muted:!u,className:v,loop:!0,preload:"none",ref:l,src:n}):null;return a.createElement("div",{className:f,style:d},a.createElement("img",{className:"scene-card-preview-image",loading:"lazy",src:e,alt:""}),g,p)}},197:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(730),i=n(266),a=n(231),u=r(n(942)),{React:s}=window.PluginApi,c=({totalSprites:t,activeIndex:e,setActiveIndex:n,onClick:r})=>{const o=s.useMemo((()=>{if(void 0===e||!t)return{};return{width:`${e/t*100}%`}}),[e,t]);return s.createElement("div",{className:(0,u.default)("hover-scrubber",{"hover-scrubber-inactive":!t})},s.createElement("div",{className:"hover-scrubber-area",onMouseMove:function(e){e.currentTarget===e.target&&n(function(e){const{width:n}=e.currentTarget.getBoundingClientRect(),r=e.nativeEvent.offsetX,o=Math.floor(r/n*t);return o<0?0:o>=t?t-1:o}(e))},onMouseLeave:function(){n(void 0)},onClick:function(t){if(!r)return;t.currentTarget===t.target&&(t.preventDefault(),r())}}),s.createElement("div",{className:"hover-scrubber-indicator"},void 0!==e&&s.createElement("div",{className:"hover-scrubber-indicator-marker",style:o})))};e.default=({vttPath:t,onClick:e})=>{var n;const r=s.useRef(null),[u,l]=s.useState({}),[f,d]=s.useState(),p=(0,a.useThrottle)(d,50),[h,v]=s.useState(!1),g=(0,i.useSpriteInfo)(h?t:void 0),m=s.useMemo((()=>{if(g&&void 0!==f)return g[f]}),[f,g]);s.useEffect((()=>{void 0!==f&&v(!0)}),[f]),s.useLayoutEffect((()=>{const t=r.current;if(!m||!t)return l({});const e=t.getBoundingClientRect(),n=function(t,e){const n=e.width/t.w,r=e.height/t.h;return t.w>t.h?Math.max(n,r):Math.min(n,r)}(m,e);l({backgroundPosition:`${-m.x}px ${-m.y}px`,backgroundImage:`url(${m.url})`,width:`${m.w}px`,height:`${m.h}px`,transform:`scale(${n})`})}),[m]);const y=s.useMemo((()=>{if(!m)return;return o.TextUtils.secondsToTimestamp(m.start)}),[m]);return!g&&h?null:s.createElement("div",{className:"preview-scrubber"},m&&s.createElement("div",{className:"scene-card-preview-image",ref:r},s.createElement("div",{className:"scrubber-image",style:u}),void 0!==y&&s.createElement("div",{className:"scrubber-timestamp"},y)),s.createElement(c,{totalSprites:null!==(n=null==g?void 0:g.length)&&void 0!==n?n:0,activeIndex:f,setActiveIndex:t=>p(t),onClick:function(){m&&e&&e(m.start)}}))}},364:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SceneCardImage=e.SceneCardDetails=void 0;var o=n(149);Object.defineProperty(e,"SceneCardDetails",{enumerable:!0,get:function(){return r(o).default}});var i=n(733);Object.defineProperty(e,"SceneCardImage",{enumerable:!0,get:function(){return r(i).default}})},209:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var{scene:e}=t,n=r(t,["scene"]);const{studio:u}=e;if(!u)return null;const s=(0,o.makeStudioUrl)({studioID:u.id});return i.createElement("span",{className:"vsc-studio"},i.createElement("a",{href:s},u.name),i.createElement(a,{childStudio:u,hideParentStudio:n.hideParentStudio,parentStudioSeparator:n.parentStudioSeparator}))};const a=t=>{var{childStudio:e,parentStudioSeparator:n}=t;if(r(t,["childStudio","parentStudioSeparator"]).hideParentStudio||!e.parent_studio)return null;const{parent_studio:a}=e,u=(0,o.makeStudioUrl)({studioID:a.id}),s=!n,c=n?" "+n+" ":null;return i.createElement(i.Fragment,null,s?" (":null,c,i.createElement("a",{href:u},a.name),s?")":null)}},993:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(730),{React:o}=window.PluginApi;e.default=({scene:t,sceneLink:e})=>{var n;const i=null!==(n=(0,r.getFilename)({scene:t}))&&void 0!==n?n:"Untitled",a=t.title||i;return o.createElement("a",{href:e,className:"vsc-title"},o.createElement("h5",null,a))}},226:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o{var e,n,o,d,p,h,{hideZeroValueData:v,scene:g}=t,m=r(t,["hideZeroValueData","scene"]);const y=f(m.hidePlayCount,v,g.o_counter),b=f(m.hideOCount,v,g.play_count),_=f(m.hideRating,v,g.rating100),w=g.organized&&!m.hideOrganized;if(!(y||b||_||g.organized))return null;const O=b?a.createElement("span",{className:"vsc-play-count"},a.createElement(u,{icon:c}),a.createElement("span",null,null!==(e=g.play_count)&&void 0!==e?e:0)):null,E=y?a.createElement("span",{className:"vsc-o-count"},a.createElement(i.default,null),a.createElement("span",null,null!==(n=g.o_counter)&&void 0!==n?n:0)):null,j=w?a.createElement("span",{className:"vsc-organized"},a.createElement(u,{icon:s})):null,x=null!==(d=null===(o=m.ratingSystemOptions)||void 0===o?void 0:o.type)&&void 0!==d?d:"stars",S=g.rating100||0;let A=0;if("decimal"===x)A=S/10;else switch(null!==(h=null===(p=m.ratingSystemOptions)||void 0===p?void 0:p.starPrecision)&&void 0!==h?h:"full"){case"half":A=Math.round(S/10)/2;break;case"quarter":A=Math.round(S/5)/4;break;case"tenth":A=Math.round(S/2)/10;break;default:A=Math.round(S/20)}const P=_?a.createElement("span",{className:"vsc-rating"},a.createElement(u,{icon:l}),a.createElement("span",null,A)):null;return a.createElement("div",{className:"vsc-user-data"},O,E,P,j)};const f=(t,e,n)=>!(e&&(null!=n?n:0)<1)&&!t},716:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFilename=void 0;e.getFilename=({scene:t})=>{const e=t.files.length?t.files[0]:void 0;if(!e)return;const n=e.path.split("/");return n[n.length-1]}},273:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPerformerGenderIcon=void 0;const{faMars:n,faTansgenderAlt:r,faVenus:o}=window.PluginApi.libraries.FontAwesomeSolid;e.getPerformerGenderIcon=t=>{switch(t){case void 0:return null;case"FEMALE":return o;case"MALE":return n;default:return r}}},730:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.TextUtils=void 0,o(n(716),e),o(n(273),e),o(n(432),e),o(n(504),e);var a=n(15);Object.defineProperty(e,"TextUtils",{enumerable:!0,get:function(){return i(a).default}})},432:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.makeStudioUrl=e.makeSceneUrl=void 0;e.makeSceneUrl=({cont:t,index:e,scene:n,queue:r})=>r?r.makeLink(n.id,{sceneIndex:e,continue:t}):`/scenes/${n.id}`;e.makeStudioUrl=({studioID:t})=>`/studios/${t}`},504:(t,e)=>{"use strict";function n(t,n){const r=t.slice();if(r.sort(((t,n)=>{var r,o;if(t.gender===n.gender)return(null!==(r=t.name)&&void 0!==r?r:"").localeCompare(null!==(o=n.name)&&void 0!==o?o:"");return(t.gender?e.GENDERS.indexOf(t.gender):e.GENDERS.length)-(n.gender?e.GENDERS.indexOf(n.gender):e.GENDERS.length)})),n.length){const t=["FEMALE","TRANSGENDER_FEMALE","MALE","TRANSGENDER_MALE","INTERSEX","NON_BINARY"];console.log(n);const e=n.split(",").map((e=>{const n=e.trim().toUpperCase().split(" ").join("_").split("-").join("_");return t.includes(n)?n:null})).filter((t=>null!==t));return console.log(e),r.filter((t=>(console.log(t.gender),!!t.gender&&e.includes(t.gender))))}return r}Object.defineProperty(e,"__esModule",{value:!0}),e.GENDERS=void 0,e.sortPerformers=n;const r={sortPerformers:n};e.default=r,e.GENDERS=["FEMALE","TRANSGENDER_FEMALE","MALE","TRANSGENDER_MALE","INTERSEX","NON_BINARY"]},15:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"],r=["B","KB","MB","GB","TB","PB"];class o{constructor(t,e,n,r){this.singular=t,this.plural=e,this.shortString=n,this.secs=r}toString(){return this.shortString}}o.SECOND=new o("second","seconds","s",1),o.MINUTE=new o("minute","minutes","m",60),o.HOUR=new o("hour","hours","h",60*o.MINUTE.secs),o.DAY=new o("day","days","D",24*o.HOUR.secs),o.WEEK=new o("week","weeks","W",7*o.DAY.secs),o.MONTH=new o("month","months","M",30*o.DAY.secs),o.YEAR=new o("year","years","Y",365*o.DAY.secs),o.DURATIONS=[o.SECOND,o.MINUTE,o.HOUR,o.DAY,o.WEEK,o.MONTH,o.YEAR];class i{constructor(t,e){this.count=t,this.duration=e}toString(){return this.count.toString()+this.duration.toString()}}const a=t=>{if(!t)return null;const e=t.split("-");if(3!==e.length)return null;const n=Number(e[0]),r=Math.max(0,Number(e[1])-1),o=Number(e[2]);return new Date(n,r,o,0,0,0,0)},u=t=>{if(!t)return null;const e=t.split("-");let n=Number(e[0]);isNaN(n)&&(n=(new Date).getFullYear());let r=0;e.length>1&&(r=Math.max(0,Number(e[1])-1),(r>11||isNaN(r))&&(r=0));let o=1;return e.length>2&&(o=Number(e[2]),(o>31||isNaN(o))&&(o=1)),new Date(n,r,o,0,0,0,0)};function s(t){return`${t.getFullYear()}-${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getDate().toString().padStart(2,"0")}`}const c=(t,e)=>t?t.startsWith("http://")||t.startsWith("https://")?t:e?t.startsWith(e.host)?`${e.protocol}//${t}`:`${e.protocol}//${e.host}/${t}`:`https://${t}`:t,l=(t,e,n=!0)=>e?t.formatDate(e,{format:"long",timeZone:n?"utc":void 0}):"",f=["","K","M","B"],d={fileSize:(t=0)=>{if(Number.isNaN(parseFloat(String(t)))||!Number.isFinite(t))return{size:0,unit:n[0]};let e=0,r=t;for(;r>=1024&&e+1{const e=n.indexOf(t);return r[e]},fileSizeFractionalDigits:t=>n.indexOf(t)>=3?1:0,secondsToTimestamp:t=>{let e=!1;t<0&&(e=!0,t=-t);const n=(t=Math.trunc(t))%60,r=(t=(t-n)/60)%60,o=t=(t-r)/60;let i=String(n).padStart(2,"0");return 0===o?i=String(r)+":"+i:(i=String(r).padStart(2,"0")+":"+i,i=String(o)+":"+i),e?"-"+i:i},timestampToSeconds:t=>{if(!t)return null;const e=t.split(":");if(e.length>3)return null;let n=0,r=1;for(;e.length>0;){const t=e.pop();if(void 0===t)return null;const o=parseInt(t,10);if(Number.isNaN(o))return null;n+=r*o,r*=60}return n},fileNameFromPath:t=>!1==!!t?"No File Name":t.replace(/^.*[\\/]/,""),stringToDate:a,stringToFuzzyDate:u,stringToFuzzyDateTime:t=>{if(!t)return null;const e=t.split(" ");let n=null;if(e.length>0&&(n=u(e[0])),n||(n=new Date),e.length>1){const t=e[1].split(":");n&&t.length>0&&n.setHours(Number(t[0])),n&&t.length>1&&n.setMinutes(Number(t[1])),n&&t.length>2&&n.setSeconds(Number(t[2]))}return n},dateToString:s,dateTimeToString:function(t){return`${s(t)} ${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}`},age:(t,e)=>{if(!t)return 0;const n=a(t),r=e?a(e):new Date;if(!n||!r)return 0;let o=r.getFullYear()-n.getFullYear();return(n.getMonth()>r.getMonth()||n.getMonth()>=r.getMonth()&&n.getDate()>r.getDate())&&(o-=1),o},bitRate:t=>`${(t/1e6).toFixed(2)} megabits per second`,resolution:(t,e)=>{const n=t>e?e:t;return n>=6144?"HUGE":n>=3840?"8K":n>=3584?"7K":n>=3e3?"6K":n>=2560?"5K":n>=1920?"4K":n>=1440?"1440p":n>=1080?"1080p":n>=720?"720p":n>=540?"540p":n>=480?"480p":n>=360?"360p":n>=240?"240p":n>=144?"144p":void 0},sanitiseURL:c,domainFromURL:(t,e)=>{if(e)return e.hostname;if(t){var n="";try{var r=c(t);r&&(t=r),n=new URL(t).hostname}catch(e){n=t}return n}return""},formatDate:l,formatDateTime:(t,e,n=!1)=>`${l(t,e,n)} ${t.formatTime(e,{timeZone:n?"utc":void 0})}`,secondsAsTimeString:(t=0,e=2)=>((t=0)=>{if(Number.isNaN(parseFloat(String(t)))||!Number.isFinite(t))return[new i(0,o.DURATIONS[0])];const e=[];let n=t;for(let t=o.DURATIONS.length-1;t>=0;t--){const r=Math.floor(n/o.DURATIONS[t].secs);0!==r&&(n%=o.DURATIONS[t].secs,e.push(new i(r,o.DURATIONS[t])))}return e})(t).slice(0,e).join(" "),abbreviateCounter:(t=0)=>{if(Number.isNaN(parseFloat(String(t)))||!Number.isFinite(t))return{size:0,unit:f[0]};let e=0,n=0,r=t;for(;r>=1e3&&e+1t.startsWith('"')&&t.endsWith('"')?t.slice(1,-1):t,addQuotes:t=>`"${t}"`};e.default=d},266:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useSpriteInfo=function(t){const[e,n]=o.useState();return o.useEffect((()=>{t?fetch(t).then((e=>{e.ok?e.text().then((e=>{n(function(t,e){const n=[],o=new r.WebVTT.Parser(window,r.WebVTT.StringDecoder());return o.oncue=e=>{const r=e.text.match(/^([^#]*)#xywh=(\d+),(\d+),(\d+),(\d+)$/i);r&&n.push({url:new URL(r[1],t).href,start:e.startTime,end:e.endTime,x:Number(r[2]),y:Number(r[3]),w:Number(r[4]),h:Number(r[5])})},o.parse(e),o.flush(),n}(t,e))})):n(void 0)})):n(void 0)}),[t]),e};const r=n(784),{React:o}=window.PluginApi},231:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useThrottle=function(t,e,n){const i=o.useRef(t);return i.current=t,o.useCallback((0,r.throttle)((function(){return i.current.apply(this,arguments)}),e,n),[e,null==n?void 0:n.leading,null==n?void 0:n.trailing,null==n?void 0:n.maxWait])};const r=n(271),{React:o}=window.PluginApi},221:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(n(942)),i=n(364);n(264);const{PluginApi:a}=window,{GQL:u,React:s}=a;a.patch.instead("SceneCard",(function(t,e,n){var r,i,a,c,l,f,d,p,h,v,g,m,y,b,_,w,O,E,j,x,S,A,P,I,M,N,T,R,k,D,C,B,L;const W=u.useConfigurationQuery();if(!W.loading){const e=W.data.configuration.plugins.ValkyrSceneCards,z={descriptionMaxLines:(null==e?void 0:e.descriptionMaxLines)||3,durationPadding:null!==(r=null==e?void 0:e.durationPadding)&&void 0!==r&&r,hideDate:null!==(i=null==e?void 0:e.hideDate)&&void 0!==i&&i,hideDescription:null!==(a=null==e?void 0:e.hideDescription)&&void 0!==a&&a,hideDirector:null!==(c=null==e?void 0:e.hideDirector)&&void 0!==c&&c,hideDuration:null!==(l=null==e?void 0:e.hideDuration)&&void 0!==l&&l,hideFilesize:null!==(f=null==e?void 0:e.hideFilesize)&&void 0!==f&&f,hideFramerate:null!==(d=null==e?void 0:e.hideFramerate)&&void 0!==d&&d,hideGalleries:null!==(p=null==e?void 0:e.hideGalleries)&&void 0!==p&&p,hideGroups:null!==(h=null==e?void 0:e.hideGroups)&&void 0!==h&&h,hideMarkers:null!==(v=null==e?void 0:e.hideMarkers)&&void 0!==v&&v,hideOCount:null!==(g=null==e?void 0:e.hideOCount)&&void 0!==g&&g,hideOrganized:null!==(m=null==e?void 0:e.hideOrganized)&&void 0!==m&&m,hidePlayCount:null!==(y=null==e?void 0:e.hidePlayCount)&&void 0!==y&&y,hideParentStudio:null!==(b=null==e?void 0:e.hideParentStudio)&&void 0!==b&&b,hidePerformer:null!==(_=null==e?void 0:e.hidePerformer)&&void 0!==_&&_,hidePerformerHoverAge:null!==(w=null==e?void 0:e.hidePerformerHoverAge)&&void 0!==w&&w,hidePerformerHoverImage:null!==(O=null==e?void 0:e.hidePerformerHoverImage)&&void 0!==O&&O,hidePerformerHoverNationality:null!==(E=null==e?void 0:e.hidePerformerHoverNationality)&&void 0!==E&&E,hideRating:null!==(j=null==e?void 0:e.hideRating)&&void 0!==j&&j,hideResolution:null!==(x=null==e?void 0:e.hideResolution)&&void 0!==x&&x,hideTags:null!==(S=null==e?void 0:e.hideTags)&&void 0!==S&&S,hideZeroValueData:null!==(A=null==e?void 0:e.hideZeroValueData)&&void 0!==A&&A,parentStudioSeparator:null==e?void 0:e.parentStudioSeparator,performerAvatars:null!==(P=null==e?void 0:e.performerAvatars)&&void 0!==P&&P,performerAvatarsCustomTag:null==e?void 0:e.performerAvatarsCustomTag,performerAvatarsProfile:null!==(I=null==e?void 0:e.performerAvatarsProfile)&&void 0!==I&&I,performerGenderColors:null!==(M=null==e?void 0:e.performerGenderColors)&&void 0!==M&&M,performerGenderFilter:null!==(N=null==e?void 0:e.performerGenderFilter)&&void 0!==N?N:"",performerLimit:null==e?void 0:e.performerLimit,previewBlurredBackground:null!==(T=null==e?void 0:e.previewBlurredBackground)&&void 0!==T&&T,previewSceneProgressDisabled:null!==(R=null==e?void 0:e.previewSceneProgressDisabled)&&void 0!==R&&R,previewScrubberDisabled:null!==(k=null==e?void 0:e.previewScrubberDisabled)&&void 0!==k&&k,previewVideoDisabled:null!==(D=null==e?void 0:e.previewVideoDisabled)&&void 0!==D&&D,previewVideoHideCursor:null!==(C=null==e?void 0:e.previewVideoHideCursor)&&void 0!==C&&C,resolutionIcon:null!==(B=null==e?void 0:e.resolutionIcon)&&void 0!==B&&B},F=(0,o.default)("valkyr-scene-card",{"hide-progress-bar":z.previewSceneProgressDisabled}),U=Object.assign(Object.assign({},t),{config:z,customAvatars:[],stashSettings:W.data.configuration});if(U.scene.performers.length){const t=u.useFindPerformersQuery({variables:{filter:{per_page:-1},performer_ids:U.scene.performers.map((t=>+t.id))}});t.data&&(U.scene=Object.assign(Object.assign({},U.scene),{performers:t.data.findPerformers.performers}))}if(!z.hideParentStudio&&U.scene.studio){const e=u.useFindStudioQuery({variables:{id:(null===(L=t.scene.studio)||void 0===L?void 0:L.id)||""}});e.data&&(U.scene=Object.assign(Object.assign({},U.scene),{studio:Object.assign(Object.assign({},U.scene.studio),e.data.findStudio)}))}if(z.performerAvatars&&z.performerAvatarsCustomTag&&U.scene.performers.length){const t=u.useFindImagesQuery({variables:{image_filter:{performers:{modifier:"INCLUDES",value:U.scene.performers.map((t=>t.id))},tags:{modifier:"INCLUDES",value:[z.performerAvatarsCustomTag]}}}});t.data&&(U.customAvatars=t.data.findImages.images)}return[s.createElement("div",{className:F},s.createElement(n,Object.assign({},U)))]}return[]})),a.patch.instead("SceneCard.Image",(function(t){return[s.createElement(i.SceneCardImage,Object.assign({},t))]})),a.patch.instead("SceneCard.Details",(function(t){return[s.createElement(i.SceneCardDetails,Object.assign({},t))]})),a.patch.instead("SceneCard.Overlays",(function(){return[]})),a.patch.instead("SceneCard.Popovers",(function(t,e,n){var r;const o=t,i=null!==(r=o.scene.groups)&&void 0!==r?r:o.scene.movies,{hideGalleries:a,hideGroups:u,hideMarkers:c,hideTags:l}=o.config;if(a&&u&&c&&l)return[];const f=Object.assign(Object.assign({},o),{scene:Object.assign(Object.assign({},t.scene),{galleries:a?[]:o.scene.galleries,groups:u?[]:i,performers:[],o_counter:void 0,organized:!1,scene_markers:c?[]:o.scene.scene_markers,tags:l?[]:o.scene.tags})});return 0===f.scene.tags.length&&0===i.length&&0===f.scene.scene_markers.length&&0===f.scene.galleries.length?[s.createElement(s.Fragment,null,s.createElement("hr",null),s.createElement("div",{className:"card-popovers"}))]:[s.createElement(n,Object.assign({},f))]}))},784:(t,e,n)=>{var r=n(840),o=t.exports={WebVTT:n(311),VTTCue:n(184),VTTRegion:n(891)};r.vttjs=o,r.WebVTT=o.WebVTT;var i=o.VTTCue,a=o.VTTRegion,u=r.VTTCue,s=r.VTTRegion;o.shim=function(){r.VTTCue=i,r.VTTRegion=a},o.restore=function(){r.VTTCue=u,r.VTTRegion=s},r.VTTCue||o.shim()},311:(t,e,n)=>{var r=n(697),o=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function i(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function a(t){function e(t,e,n,r){return 3600*(0|t)+60*(0|e)+(0|n)+(0|r)/1e3}var n=t.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function u(){this.values=o(null)}function s(t,e,n,r){var o=r?t.split(r):[t];for(var i in o)if("string"==typeof o[i]){var a=o[i].split(n);if(2===a.length)e(a[0].trim(),a[1].trim())}}function c(t,e,n){var r=t;function o(){var e=a(t);if(null===e)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+r);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function c(){t=t.replace(/^\s+/,"")}if(c(),e.startTime=o(),c(),"--\x3e"!==t.substr(0,3))throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);t=t.substr(3),c(),e.endTime=o(),c(),function(t,e){var r=new u;s(t,(function(t,e){switch(t){case"region":for(var o=n.length-1;o>=0;o--)if(n[o].id===e){r.set(t,n[o].region);break}break;case"vertical":r.alt(t,e,["rl","lr"]);break;case"line":var i=e.split(","),a=i[0];r.integer(t,a),r.percent(t,a)&&r.set("snapToLines",!1),r.alt(t,a,["auto"]),2===i.length&&r.alt("lineAlign",i[1],["start","center","end"]);break;case"position":i=e.split(","),r.percent(t,i[0]),2===i.length&&r.alt("positionAlign",i[1],["start","center","end"]);break;case"size":r.percent(t,e);break;case"align":r.alt(t,e,["start","center","end","left","right"])}}),/:/,/\s/),e.region=r.get("region",null),e.vertical=r.get("vertical","");try{e.line=r.get("line","auto")}catch(t){}e.lineAlign=r.get("lineAlign","start"),e.snapToLines=r.get("snapToLines",!0),e.size=r.get("size",100);try{e.align=r.get("align","center")}catch(t){e.align=r.get("align","middle")}try{e.position=r.get("position","auto")}catch(t){e.position=r.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=r.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}i.prototype=o(Error.prototype),i.prototype.constructor=i,i.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},u.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var r=0;r=0&&e<=100)&&(this.set(t,e),!0)}};var l=r.createElement&&r.createElement("textarea"),f={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},d={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},h={rt:"ruby"};function v(t,e){function n(){if(!e)return null;var t,n=e.match(/^([^<]*)(<[^>]*>?)?/);return t=n[1]?n[1]:n[2],e=e.substr(t.length),t}function r(t,e){return!h[e.localName]||h[e.localName]===t.localName}function o(e,n){var r=f[e];if(!r)return null;var o=t.document.createElement(r),i=p[e];return i&&n&&(o[i]=n.trim()),o}for(var i,u,s=t.document.createElement("div"),c=s,v=[];null!==(i=n());)if("<"!==i[0])c.appendChild(t.document.createTextNode((u=i,l.innerHTML=u,u=l.textContent,l.textContent="",u)));else{if("/"===i[1]){v.length&&v[v.length-1]===i.substr(2).replace(">","")&&(v.pop(),c=c.parentNode);continue}var g,m=a(i.substr(1,i.length-2));if(m){g=t.document.createProcessingInstruction("timestamp",m),c.appendChild(g);continue}var y=i.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(g=o(y[1],y[3])))continue;if(!r(c,g))continue;if(y[2]){var b=y[2].split(".");b.forEach((function(t){var e=/^bg_/.test(t),n=e?t.slice(3):t;if(d.hasOwnProperty(n)){var r=e?"background-color":"color",o=d[n];g.style[r]=o}})),g.className=b.join(" ")}v.push(y[1]),c.appendChild(g),c=g}return s}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function m(t){for(var e=0;e=n[0]&&t<=n[1])return!0}return!1}function y(t){var e=[],n="";if(!t||!t.childNodes)return"ltr";function r(t,e){for(var n=e.childNodes.length-1;n>=0;n--)t.push(e.childNodes[n])}function o(t){if(!t||!t.length)return null;var e=t.pop(),n=e.textContent||e.innerText;if(n){var i=n.match(/^.*(\n|\r)/);return i?(t.length=0,i[0]):n}return"ruby"===e.tagName?o(t):e.childNodes?(r(t,e),o(t)):void 0}for(r(e,t);n=o(e);)for(var i=0;i=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,n=e.textTrackList,r=0,o=0;of&&(l=l<0?-1:1,l*=Math.ceil(f/c)*c),a<0&&(l+=""===i.vertical?n.height:n.width,u=u.reverse()),o.move(d,l)}else{var p=o.lineHeight/n.height*100;switch(i.lineAlign){case"center":a-=p/2;break;case"end":a-=p}switch(i.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}u=["+y","-x","+x","-y"],o=new w(e)}var h=function(t,e){for(var o,i=new w(t),a=1,u=0;us&&(o=new w(t),a=s),t=new w(i)}return o||i}(o,u);e.move(h.toCSSCompatValues(n))}function E(){}b.prototype.applyStyles=function(t,e){for(var n in e=e||this.div,t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},b.prototype.formatStyle=function(t,e){return 0===t?0:t+e},_.prototype=o(b.prototype),_.prototype.constructor=_,w.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},w.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},w.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},w.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},w.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},w.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},w.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,r=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||r,height:t.height||e,bottom:t.bottom||r+(t.height||e),width:t.width||n}},E.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},E.convertCueToDOMTree=function(t,e){return t&&e?v(t,e):null};E.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=t.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(t){for(var e=0;e{var e={"":1,lr:1,rl:1},n={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function r(t){return"string"==typeof t&&(!!n[t.toLowerCase()]&&t.toLowerCase())}function o(t,n,o){this.hasBeenReset=!1;var i="",a=!1,u=t,s=n,c=o,l=null,f="",d=!0,p="auto",h="start",v="auto",g="auto",m=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return i},set:function(t){i=""+t}},pauseOnExit:{enumerable:!0,get:function(){return a},set:function(t){a=!!t}},startTime:{enumerable:!0,get:function(){return u},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");u=t,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");s=t,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(t){c=""+t,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(t){l=t,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return f},set:function(t){var n=function(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===n)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");f=n,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return d},set:function(t){d=!!t,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=t,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(t){var e=r(t);e?(h=e,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return v},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");v=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(t){var e=r(t);e?(g=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return m},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");m=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(t){var e=r(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=e,this.hasBeenReset=!0}}}),this.displayState=void 0}o.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=o},891:t=>{var e={"":!0,up:!0};function n(t){return"number"==typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,r=3,o=0,i=100,a=0,u=100,s="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!n(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return r},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");r=t}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(t){if(!n(t))throw new Error("RegionAnchorX must be between 0 and 100.");i=t}},regionAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!n(t))throw new Error("RegionAnchorY must be between 0 and 100.");o=t}},viewportAnchorY:{enumerable:!0,get:function(){return u},set:function(t){if(!n(t))throw new Error("ViewportAnchorY must be between 0 and 100.");u=t}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(t){if(!n(t))throw new Error("ViewportAnchorX must be between 0 and 100.");a=t}},scroll:{enumerable:!0,get:function(){return s},set:function(t){var n=function(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);!1===n?console.warn("Scroll: an invalid or illegal string was specified."):s=n}}})}},542:()=>{},942:(t,e)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t="",e=0;e{"use strict";n.r(e),n.d(e,{add:()=>x,after:()=>W,ary:()=>_e,assign:()=>fn,assignIn:()=>mn,assignInWith:()=>bn,assignWith:()=>wn,at:()=>br,attempt:()=>Ir,before:()=>Mr,bind:()=>Tr,bindAll:()=>Rr,bindKey:()=>Dr,camelCase:()=>Uo,capitalize:()=>ro,castArray:()=>$o,ceil:()=>qo,chain:()=>Ko,chunk:()=>Xo,clamp:()=>Jo,clone:()=>fa,cloneDeep:()=>da,cloneDeepWith:()=>pa,cloneWith:()=>ha,commit:()=>va,compact:()=>ga,concat:()=>ma,cond:()=>Xa,conforms:()=>tu,conformsTo:()=>eu,constant:()=>$t,countBy:()=>du,create:()=>pu,curry:()=>vu,curryRight:()=>mu,debounce:()=>wu,deburr:()=>co,default:()=>lg,defaultTo:()=>Ou,defaults:()=>Su,defaultsDeep:()=>Cu,defer:()=>Wu,delay:()=>Fu,difference:()=>Vu,differenceBy:()=>Ku,differenceWith:()=>Zu,divide:()=>Xu,drop:()=>Qu,dropRight:()=>Ju,dropRightWhile:()=>es,dropWhile:()=>ns,each:()=>os,eachRight:()=>cs,endsWith:()=>ls,entries:()=>hs,entriesIn:()=>vs,eq:()=>Oe,escape:()=>bs,escapeRegExp:()=>Os,every:()=>xs,extend:()=>mn,extendWith:()=>bn,fill:()=>Ps,filter:()=>Ms,find:()=>ks,findIndex:()=>Rs,findKey:()=>Cs,findLast:()=>zs,findLastIndex:()=>Ws,findLastKey:()=>Fs,first:()=>Us,flatMap:()=>Vs,flatMapDeep:()=>qs,flatMapDepth:()=>Ks,flatten:()=>mr,flattenDeep:()=>Zs,flattenDepth:()=>Xs,flip:()=>Qs,floor:()=>Js,flow:()=>ec,flowRight:()=>nc,forEach:()=>os,forEachRight:()=>cs,forIn:()=>rc,forInRight:()=>oc,forOwn:()=>ic,forOwnRight:()=>ac,fromPairs:()=>uc,functions:()=>cc,functionsIn:()=>lc,get:()=>fr,groupBy:()=>pc,gt:()=>gc,gte:()=>mc,has:()=>_c,hasIn:()=>Va,head:()=>Us,identity:()=>z,inRange:()=>jc,includes:()=>Ic,indexOf:()=>Nc,initial:()=>Tc,intersection:()=>Cc,intersectionBy:()=>Lc,intersectionWith:()=>Wc,invert:()=>Hc,invertBy:()=>Yc,invoke:()=>Qc,invokeMap:()=>tl,isArguments:()=>ze,isArray:()=>_,isArrayBuffer:()=>rl,isArrayLike:()=>Me,isArrayLikeObject:()=>Pu,isBoolean:()=>ol,isBuffer:()=>Ve,isDate:()=>ul,isElement:()=>sl,isEmpty:()=>ll,isEqual:()=>fl,isEqualWith:()=>dl,isError:()=>Ar,isFinite:()=>hl,isFunction:()=>F,isInteger:()=>vl,isLength:()=>Ie,isMap:()=>na,isMatch:()=>gl,isMatchWith:()=>ml,isNaN:()=>bl,isNative:()=>wl,isNil:()=>Ol,isNull:()=>El,isNumber:()=>yl,isObject:()=>M,isObjectLike:()=>g,isPlainObject:()=>Sr,isRegExp:()=>Sl,isSafeInteger:()=>Pl,isSet:()=>ia,isString:()=>xc,isSymbol:()=>m,isTypedArray:()=>tn,isUndefined:()=>Il,isWeakMap:()=>Ml,isWeakSet:()=>Nl,iteratee:()=>Tl,join:()=>kl,kebabCase:()=>Cl,keyBy:()=>Ll,keys:()=>sn,keysIn:()=>vn,last:()=>Gu,lastIndexOf:()=>Ul,lodash:()=>Rt,lowerCase:()=>Hl,lowerFirst:()=>Vl,lt:()=>ql,lte:()=>Kl,map:()=>Hs,mapKeys:()=>Yl,mapValues:()=>Zl,matches:()=>Xl,matchesProperty:()=>Ql,max:()=>tf,maxBy:()=>ef,mean:()=>of,meanBy:()=>af,memoize:()=>er,merge:()=>sf,mergeWith:()=>Du,method:()=>cf,methodOf:()=>lf,min:()=>ff,minBy:()=>df,mixin:()=>pf,multiply:()=>hf,negate:()=>vf,next:()=>bf,noop:()=>wt,now:()=>yu,nth:()=>wf,nthArg:()=>Of,omit:()=>Sf,omitBy:()=>Mf,once:()=>Nf,orderBy:()=>Cf,over:()=>Lf,overArgs:()=>Uf,overEvery:()=>$f,overSome:()=>Hf,pad:()=>dd,padEnd:()=>pd,padStart:()=>hd,parseInt:()=>md,partial:()=>bd,partialRight:()=>wd,partition:()=>Ed,pick:()=>xd,pickBy:()=>If,plant:()=>Sd,property:()=>Ya,propertyOf:()=>Ad,pull:()=>Td,pullAll:()=>Nd,pullAllBy:()=>Rd,pullAllWith:()=>kd,pullAt:()=>Ld,random:()=>Vd,range:()=>Zd,rangeRight:()=>Xd,rearg:()=>Jd,reduce:()=>ep,reduceRight:()=>rp,reject:()=>op,remove:()=>ip,repeat:()=>ap,replace:()=>up,rest:()=>sp,result:()=>cp,reverse:()=>fp,round:()=>dp,sample:()=>vp,sampleSize:()=>bp,set:()=>_p,setWith:()=>wp,shuffle:()=>jp,size:()=>xp,slice:()=>Sp,snakeCase:()=>Pp,some:()=>Mp,sortBy:()=>Np,sortedIndex:()=>Cp,sortedIndexBy:()=>Bp,sortedIndexOf:()=>Lp,sortedLastIndex:()=>Wp,sortedLastIndexBy:()=>zp,sortedLastIndexOf:()=>Fp,sortedUniq:()=>$p,sortedUniqBy:()=>Hp,split:()=>Vp,spread:()=>qp,startCase:()=>Yp,startsWith:()=>Zp,stubArray:()=>vi,stubFalse:()=>Fe,stubObject:()=>Xp,stubString:()=>Qp,stubTrue:()=>Jp,subtract:()=>th,sum:()=>eh,sumBy:()=>nh,tail:()=>rh,take:()=>oh,takeRight:()=>ih,takeRightWhile:()=>ah,takeWhile:()=>uh,tap:()=>sh,template:()=>jh,templateSettings:()=>vh,throttle:()=>xh,thru:()=>Sh,times:()=>Ih,toArray:()=>yf,toFinite:()=>B,toInteger:()=>L,toIterator:()=>Mh,toJSON:()=>Th,toLength:()=>Ss,toLower:()=>Rh,toNumber:()=>D,toPairs:()=>hs,toPairsIn:()=>vs,toPath:()=>kh,toPlainObject:()=>Mu,toSafeInteger:()=>Ch,toString:()=>ur,toUpper:()=>Bh,transform:()=>Lh,trim:()=>Fh,trimEnd:()=>Uh,trimStart:()=>Hh,truncate:()=>Gh,unary:()=>qh,unescape:()=>Xh,union:()=>ev,unionBy:()=>rv,unionWith:()=>ov,uniq:()=>iv,uniqBy:()=>av,uniqWith:()=>uv,uniqueId:()=>cv,unset:()=>lv,unzip:()=>dv,unzipWith:()=>pv,update:()=>vv,updateWith:()=>gv,upperCase:()=>yv,upperFirst:()=>no,value:()=>Th,valueOf:()=>Th,values:()=>Ac,valuesIn:()=>bv,without:()=>wv,words:()=>Lo,wrap:()=>Ov,wrapperAt:()=>Ev,wrapperChain:()=>jv,wrapperCommit:()=>va,wrapperLodash:()=>Rt,wrapperNext:()=>bf,wrapperPlant:()=>Sd,wrapperReverse:()=>xv,wrapperToIterator:()=>Mh,wrapperValue:()=>Th,xor:()=>Av,xorBy:()=>Iv,xorWith:()=>Mv,zip:()=>Nv,zipObject:()=>Rv,zipObjectDeep:()=>kv,zipWith:()=>Cv});const r="object"==typeof global&&global&&global.Object===Object&&global;var o="object"==typeof self&&self&&self.Object===Object&&self;const i=r||o||Function("return this")();const a=i.Symbol;var u=Object.prototype,s=u.hasOwnProperty,c=u.toString,l=a?a.toStringTag:void 0;const f=function(t){var e=s.call(t,l),n=t[l];try{t[l]=void 0;var r=!0}catch(t){}var o=c.call(t);return r&&(e?t[l]=n:delete t[l]),o};var d=Object.prototype.toString;const p=function(t){return d.call(t)};var h=a?a.toStringTag:void 0;const v=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":h&&h in Object(t)?f(t):p(t)};const g=function(t){return null!=t&&"object"==typeof t};const m=function(t){return"symbol"==typeof t||g(t)&&"[object Symbol]"==v(t)};const y=function(t){return"number"==typeof t?t:m(t)?NaN:+t};const b=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}};const Bt=Ct(at);var Lt=/\{\n\/\* \[wrapped with (.+)\] \*/,Wt=/,? & /;const zt=function(t){var e=t.match(Lt);return e?e[1].split(Wt):[]};var Ft=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;const Ut=function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Ft,"{\n/* [wrapped with "+e+"] */\n")};const $t=function(t){return function(){return t}};var Ht=function(){try{var t=nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const Vt=Ht;var Gt=Vt?function(t,e){return Vt(t,"toString",{configurable:!0,enumerable:!1,value:$t(e),writable:!0})}:z;const qt=Ct(Gt);const Kt=function(t,e){for(var n=-1,r=null==t?0:t.length;++n-1};var te=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];const ee=function(t,e){return Kt(te,(function(n){var r="_."+n[0];e&n[1]&&!Jt(t,r)&&t.push(r)})),t.sort()};const ne=function(t,e,n){var r=e+"";return qt(t,Ut(r,ee(zt(r),n)))};const re=function(t,e,n,r,o,i,a,u,s,c){var l=8&e;e|=l?32:64,4&(e&=~(l?64:32))||(e&=-4);var f=[t,e,o,l?i:void 0,l?a:void 0,l?void 0:i,l?void 0:a,u,s,c],d=n.apply(void 0,f);return kt(t)&&Bt(d,f),d.placeholder=r,ne(d,t,e)};const oe=function(t){return t.placeholder};var ie=/^(?:0|[1-9]\d*)$/;const ae=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ie.test(t))&&t>-1&&t%1==0&&t1&&_.reverse(),d&&l-1&&t%1==0&&t<=9007199254740991};const Me=function(t){return null!=t&&Ie(t.length)&&!F(t)};const Ne=function(t,e,n){if(!M(n))return!1;var r=typeof e;return!!("number"==r?Me(n)&&ae(e,n.length):"string"==r&&e in n)&&Oe(n[e],t)};const Te=function(t){return Pe((function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&Ne(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),e=Object(e);++r-1};const Fn=function(t,e){var n=this.__data__,r=Cn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0&&r(s)?n>1?t(s,n-1,r,o,i):pr(i,s):o||(i[i.length]=s)}return i};const mr=function(t){return(null==t?0:t.length)?gr(t,1):[]};const yr=function(t){return qt(Ae(t,void 0,mr),t+"")};const br=yr(dr);const _r=rn(Object.getPrototypeOf,Object);var wr=Function.prototype,Or=Object.prototype,Er=wr.toString,jr=Or.hasOwnProperty,xr=Er.call(Object);const Sr=function(t){if(!g(t)||"[object Object]"!=v(t))return!1;var e=_r(t);if(null===e)return!0;var n=jr.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Er.call(n)==xr};const Ar=function(t){if(!g(t))return!1;var e=v(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Sr(t)};var Pr=Pe((function(t,e){try{return dt(t,void 0,e)}catch(t){return Ar(t)?t:new Error(t)}}));const Ir=Pr;const Mr=function(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=L(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}};var Nr=Pe((function(t,e,n){var r=1;if(n.length){var o=le(n,oe(Nr));r|=32}return be(t,r,e,n,o)}));Nr.placeholder={};const Tr=Nr;const Rr=yr((function(t,e){return Kt(e,(function(e){e=cr(e),we(t,e,Tr(t[e],t))})),t}));var kr=Pe((function(t,e,n){var r=3;if(n.length){var o=le(n,oe(kr));r|=32}return be(e,r,t,n,o)}));kr.placeholder={};const Dr=kr;const Cr=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r=r?t:Cr(t,e,n)};var Lr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const Wr=function(t){return Lr.test(t)};const zr=function(t){return t.split("")};var Fr="\\ud800-\\udfff",Ur="["+Fr+"]",$r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Hr="\\ud83c[\\udffb-\\udfff]",Vr="[^"+Fr+"]",Gr="(?:\\ud83c[\\udde6-\\uddff]){2}",qr="[\\ud800-\\udbff][\\udc00-\\udfff]",Kr="(?:"+$r+"|"+Hr+")"+"?",Yr="[\\ufe0e\\ufe0f]?",Zr=Yr+Kr+("(?:\\u200d(?:"+[Vr,Gr,qr].join("|")+")"+Yr+Kr+")*"),Xr="(?:"+[Vr+$r+"?",$r,Gr,qr,Ur].join("|")+")",Qr=RegExp(Hr+"(?="+Hr+")|"+Xr+Zr,"g");const Jr=function(t){return t.match(Qr)||[]};const to=function(t){return Wr(t)?Jr(t):zr(t)};const eo=function(t){return function(e){e=ur(e);var n=Wr(e)?to(e):void 0,r=n?n[0]:e.charAt(0),o=n?Br(n,1).join(""):e.slice(1);return r[t]()+o}};const no=eo("toUpperCase");const ro=function(t){return no(ur(t).toLowerCase())};const oo=function(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o=e?t:e)),t};const Jo=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=D(n))==n?n:0),void 0!==e&&(e=(e=D(e))==e?e:0),Qo(D(t),e,n)};const ti=function(){this.__data__=new $n,this.size=0};const ei=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const ni=function(t){return this.__data__.get(t)};const ri=function(t){return this.__data__.has(t)};const oi=function(t,e){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!Hn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(t,e),this.size=n.size,this};function ii(t){var e=this.__data__=new $n(t);this.size=e.size}ii.prototype.clear=ti,ii.prototype.delete=ei,ii.prototype.get=ni,ii.prototype.has=ri,ii.prototype.set=oi;const ai=ii;const ui=function(t,e){return t&&xe(e,sn(e),t)};const si=function(t,e){return t&&xe(e,vn(e),t)};var ci="object"==typeof exports&&exports&&!exports.nodeType&&exports,li=ci&&"object"==typeof module&&module&&!module.nodeType&&module,fi=li&&li.exports===ci?i.Buffer:void 0,di=fi?fi.allocUnsafe:void 0;const pi=function(t,e){if(e)return t.slice();var n=t.length,r=di?di(n):new t.constructor(n);return t.copy(r),r};const hi=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++nu))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var f=-1,d=!0,p=2&n?new wa:void 0;for(i.set(t,e),i.set(e,t);++f=e||n<0||f&&t-c>=i}function v(){var t=yu();if(h(t))return g(t);u=setTimeout(v,function(t){var n=e-(t-s);return f?_u(n,i-(t-c)):n}(t))}function g(t){return u=void 0,d&&r?p(t):(r=o=void 0,a)}function m(){var t=yu(),n=h(t);if(r=arguments,o=this,s=t,n){if(void 0===u)return function(t){return c=t,u=setTimeout(v,e),l?p(t):a}(s);if(f)return clearTimeout(u),u=setTimeout(v,e),p(s)}return void 0===u&&(u=setTimeout(v,e)),a}return e=D(e)||0,M(n)&&(l=!!n.leading,i=(f="maxWait"in n)?bu(D(n.maxWait)||0,e):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:g(yu())},m};const Ou=function(t,e){return null==t||t!=t?e:t};var Eu=Object.prototype,ju=Eu.hasOwnProperty,xu=Pe((function(t,e){t=Object(t);var n=-1,r=e.length,o=r>2?e[2]:void 0;for(o&&Ne(e[0],e[1],o)&&(r=1);++n=200&&(i=Ea,a=!1,e=new wa(e));t:for(;++o=0&&t.slice(n,o)==e};const fs=function(t,e){return b(e,(function(e){return[e,t[e]]}))};const ds=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n};const ps=function(t){return function(e){var n=zi(e);return"[object Map]"==n?xa(e):"[object Set]"==n?ds(e):fs(e,t(e))}};const hs=ps(sn);const vs=ps(vn);const gs=io({"&":"&","<":"<",">":">",'"':""","'":"'"});var ms=/[&<>"']/g,ys=RegExp(ms.source);const bs=function(t){return(t=ur(t))&&ys.test(t)?t.replace(ms,gs):t};var _s=/[\\^$.*+?()[\]{}|]/g,ws=RegExp(_s.source);const Os=function(t){return(t=ur(t))&&ws.test(t)?t.replace(_s,"\\$&"):t};const Es=function(t,e){for(var n=-1,r=null==t?0:t.length;++no?0:o+n),(r=void 0===r||r>o?o:L(r))<0&&(r+=o),r=n>r?0:Ss(r);n-1?o[i?e[a]:a]:void 0}};var Ts=Math.max;const Rs=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:L(n);return o<0&&(o=Ts(r+o,0)),Yt(t,Za(e,3),o)};const ks=Ns(Rs);const Ds=function(t,e,n){var r;return n(t,(function(t,n,o){if(e(t,n,o))return r=n,!1})),r};const Cs=function(t,e){return Ds(t,Za(e,3),iu)};var Bs=Math.max,Ls=Math.min;const Ws=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=L(n),o=n<0?Bs(r+o,0):Ls(o,r-1)),Yt(t,Za(e,3),o,!0)};const zs=Ns(Ws);const Fs=function(t,e){return Ds(t,Za(e,3),us)};const Us=function(t){return t&&t.length?t[0]:void 0};const $s=function(t,e){var n=-1,r=Me(t)?Array(t.length):[];return uu(t,(function(t,o,i){r[++n]=e(t,o,i)})),r};const Hs=function(t,e){return(_(t)?b:$s)(t,Za(e,3))};const Vs=function(t,e){return gr(Hs(t,e),1)};var Gs=1/0;const qs=function(t,e){return gr(Hs(t,e),Gs)};const Ks=function(t,e,n){return n=void 0===n?1:L(n),gr(Hs(t,e),n)};var Ys=1/0;const Zs=function(t){return(null==t?0:t.length)?gr(t,Ys):[]};const Xs=function(t,e){return(null==t?0:t.length)?(e=void 0===e?1:L(e),gr(t,e)):[]};const Qs=function(t){return be(t,512)};const Js=Go("floor");const tc=function(t){return yr((function(e){var n=e.length,r=n,o=Pt.prototype.thru;for(t&&e.reverse();r--;){var i=e[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!a&&"wrapper"==St(i))var a=new Pt([],!0)}for(r=a?r:n;++re};const vc=function(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=D(e),n=D(n)),t(e,n)}};const gc=vc(hc);const mc=vc((function(t,e){return t>=e}));var yc=Object.prototype.hasOwnProperty;const bc=function(t,e){return null!=t&&yc.call(t,e)};const _c=function(t,e){return null!=t&&Ha(t,e,bc)};var wc=Math.max,Oc=Math.min;const Ec=function(t,e,n){return t>=Oc(e,n)&&t-1:!!o&&Qt(t,e,n)>-1};var Mc=Math.max;const Nc=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:L(n);return o<0&&(o=Mc(r+o,0)),Qt(t,e,o)};const Tc=function(t){return(null==t?0:t.length)?Cr(t,0,-1):[]};var Rc=Math.min;const kc=function(t,e,n){for(var r=n?Uu:Jt,o=t[0].length,i=t.length,a=i,u=Array(i),s=1/0,c=[];a--;){var l=t[a];a&&e&&(l=b(l,Ke(e))),s=Rc(l.length,s),u[a]=!n&&(e||o>=120&&l.length>=120)?new wa(a&&l):void 0}l=t[0];var f=-1,d=u[0];t:for(;++f=-9007199254740991&&t<=Al};const Il=function(t){return void 0===t};const Ml=function(t){return g(t)&&"[object WeakMap]"==zi(t)};const Nl=function(t){return g(t)&&"[object WeakSet]"==v(t)};const Tl=function(t){return Za("function"==typeof t?t:la(t,1))};var Rl=Array.prototype.join;const kl=function(t,e){return null==t?"":Rl.call(t,e)};var Dl=zo((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}));const Cl=Dl;var Bl=cu((function(t,e,n){we(t,n,e)}));const Ll=Bl;const Wl=function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r};var zl=Math.max,Fl=Math.min;const Ul=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=L(n))<0?zl(r+o,0):Fl(o,r-1)),e==e?Wl(t,e,o):Yt(t,Zt,o,!0)};var $l=zo((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}));const Hl=$l;const Vl=eo("toLowerCase");const Gl=function(t,e){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}};const _f=function(t,e){var n=t.length;if(n)return ae(e+=e<0?n:0,n)?t[e]:void 0};const wf=function(t,e){return t&&t.length?_f(t,L(e)):void 0};const Of=function(t){return t=L(t),Pe((function(e){return _f(e,t)}))};const Ef=function(t,e){return e=sr(e,t),null==(t=Zc(t,e))||delete t[cr(Gu(e))]};const jf=function(t){return Sr(t)?void 0:t};var xf=yr((function(t,e){var n={};if(null==t)return n;var r=!1;e=b(e,(function(e){return e=sr(e,t),r||(r=e.length>1),e})),xe(t,xi(t),n),r&&(n=la(n,7,jf));for(var o=e.length;o--;)Ef(n,e[o]);return n}));const Sf=xf;const Af=function(t,e,n,r){if(!M(t))return t;for(var o=-1,i=(e=sr(e,t)).length,a=i-1,u=t;null!=u&&++oe||i&&a&&s&&!u&&!c||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!c&&t=u?s:s*("desc"==n[r]?-1:1)}return t.index-e.index};const Df=function(t,e,n){e=e.length?b(e,(function(t){return _(t)?function(e){return lr(e,1===t.length?t[0]:t)}:t})):[z];var r=-1;e=b(e,Ke(Za));var o=$s(t,(function(t,n,o){var i=b(e,(function(e){return e(t)}));return{criteria:i,index:++r,value:t}}));return Tf(o,(function(t,e){return kf(t,e,n)}))};const Cf=function(t,e,n,r){return null==t?[]:(_(e)||(e=null==e?[]:[e]),_(n=r?void 0:n)||(n=null==n?[]:[n]),Df(t,e,n))};const Bf=function(t){return yr((function(e){return e=b(e,Ke(Za)),Pe((function(n){var r=this;return t(e,(function(t){return dt(t,r,n)}))}))}))};const Lf=Bf(b);const Wf=Pe;var zf=Math.min,Ff=Wf((function(t,e){var n=(e=1==e.length&&_(e[0])?b(e[0],Ke(Za)):b(gr(e,1),Ke(Za))).length;return Pe((function(r){for(var o=-1,i=zf(r.length,n);++o9007199254740991)return n;do{e%2&&(n+=t),(e=Vf(e/2))&&(t+=t)}while(e);return n};const qf=qa("length");var Kf="\\ud800-\\udfff",Yf="["+Kf+"]",Zf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Xf="\\ud83c[\\udffb-\\udfff]",Qf="[^"+Kf+"]",Jf="(?:\\ud83c[\\udde6-\\uddff]){2}",td="[\\ud800-\\udbff][\\udc00-\\udfff]",ed="(?:"+Zf+"|"+Xf+")"+"?",nd="[\\ufe0e\\ufe0f]?",rd=nd+ed+("(?:\\u200d(?:"+[Qf,Jf,td].join("|")+")"+nd+ed+")*"),od="(?:"+[Qf+Zf+"?",Zf,Jf,td,Yf].join("|")+")",id=RegExp(Xf+"(?="+Xf+")|"+od+rd,"g");const ad=function(t){for(var e=id.lastIndex=0;id.test(t);)++e;return e};const ud=function(t){return Wr(t)?ad(t):qf(t)};var sd=Math.ceil;const cd=function(t,e){var n=(e=void 0===e?" ":E(e)).length;if(n<2)return n?Gf(e,t):e;var r=Gf(e,sd(t/ud(e)));return Wr(e)?Br(to(r),0,t).join(""):r.slice(0,t)};var ld=Math.ceil,fd=Math.floor;const dd=function(t,e,n){t=ur(t);var r=(e=L(e))?ud(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return cd(fd(o),n)+t+cd(ld(o),n)};const pd=function(t,e,n){t=ur(t);var r=(e=L(e))?ud(t):0;return e&&r-1;)u!==t&&Id.call(u,s,1),Id.call(t,s,1);return t};const Nd=function(t,e){return t&&t.length&&e&&e.length?Md(t,e):t};const Td=Pe(Nd);const Rd=function(t,e,n){return t&&t.length&&e&&e.length?Md(t,e,Za(n,2)):t};const kd=function(t,e,n){return t&&t.length&&e&&e.length?Md(t,e,void 0,n):t};var Dd=Array.prototype.splice;const Cd=function(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;ae(o)?Dd.call(t,o,1):Ef(t,o)}}return t};var Bd=yr((function(t,e){var n=null==t?0:t.length,r=dr(t,e);return Cd(t,b(e,(function(t){return ae(t,n)?+t:t})).sort(Rf)),r}));const Ld=Bd;var Wd=Math.floor,zd=Math.random;const Fd=function(t,e){return t+Wd(zd()*(e-t+1))};var Ud=parseFloat,$d=Math.min,Hd=Math.random;const Vd=function(t,e,n){if(n&&"boolean"!=typeof n&&Ne(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=B(t),void 0===e?(e=t,t=0):e=B(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Hd();return $d(t+o*(e-t+Ud("1e-"+((o+"").length-1))),e)}return Fd(t,e)};var Gd=Math.ceil,qd=Math.max;const Kd=function(t,e,n,r){for(var o=-1,i=qd(Gd((e-t)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=t,t+=n;return a};const Yd=function(t){return function(e,n,r){return r&&"number"!=typeof r&&Ne(e,n,r)&&(n=r=void 0),e=B(e),void 0===n?(n=e,e=0):n=B(n),r=void 0===r?e1&&Ne(t,e[0],e[1])?e=[]:n>2&&Ne(e[0],e[1],e[2])&&(e=[e[0]]),Df(t,gr(e,1),[])}));var Tp=Math.floor,Rp=Math.min;const kp=function(t,e,n,r){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var a=(e=n(e))!=e,u=null===e,s=m(e),c=void 0===e;o>>1,a=t[i];null!==a&&!m(a)&&(n?a<=e:a>>0)?(t=ur(t))&&("string"==typeof e||null!=e&&!Sl(e))&&!(e=E(e))&&Wr(t)?Br(to(t),0,n):t.split(e,n):[]};var Gp=Math.max;const qp=function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return e=null==e?0:Gp(L(e),0),Pe((function(n){var r=n[e],o=Br(n,0,e);return r&&pr(o,r),dt(t,this,o)}))};var Kp=zo((function(t,e,n){return t+(n?" ":"")+no(e)}));const Yp=Kp;const Zp=function(t,e,n){return t=ur(t),n=null==n?0:Qo(L(n),0,t.length),e=E(e),t.slice(n,n+e.length)==e};const Xp=function(){return{}};const Qp=function(){return""};const Jp=function(){return!0};const th=j((function(t,e){return t-e}),0);const eh=function(t){return t&&t.length?nf(t,z):0};const nh=function(t,e){return t&&t.length?nf(t,Za(e,2)):0};const rh=function(t){var e=null==t?0:t.length;return e?Cr(t,1,e):[]};const oh=function(t,e,n){return t&&t.length?(e=n||void 0===e?1:L(e),Cr(t,0,e<0?0:e)):[]};const ih=function(t,e,n){var r=null==t?0:t.length;return r?(e=n||void 0===e?1:L(e),Cr(t,(e=r-e)<0?0:e,r)):[]};const ah=function(t,e){return t&&t.length?ts(t,Za(e,3),!1,!0):[]};const uh=function(t,e){return t&&t.length?ts(t,Za(e,3)):[]};const sh=function(t,e){return e(t),t};var ch=Object.prototype,lh=ch.hasOwnProperty;const fh=function(t,e,n,r){return void 0===t||Oe(t,ch[n])&&!lh.call(r,n)?e:t};var dh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};const ph=function(t){return"\\"+dh[t]};const hh=/<%=([\s\S]+?)%>/g;const vh={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:hh,variable:"",imports:{_:{escape:bs}}};var gh=/\b__p \+= '';/g,mh=/\b(__p \+=) '' \+/g,yh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bh=/[()=,{}\[\]\/\s]/,_h=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,wh=/($^)/,Oh=/['\n\r\u2028\u2029\\]/g,Eh=Object.prototype.hasOwnProperty;const jh=function(t,e,n){var r=vh.imports._.templateSettings||vh;n&&Ne(t,e,n)&&(e=void 0),t=ur(t),e=bn({},e,r,fh);var o,i,a=bn({},e.imports,r.imports,fh),u=sn(a),s=Sc(a,u),c=0,l=e.interpolate||wh,f="__p += '",d=RegExp((e.escape||wh).source+"|"+l.source+"|"+(l===hh?_h:wh).source+"|"+(e.evaluate||wh).source+"|$","g"),p=Eh.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(d,(function(e,n,r,a,u,s){return r||(r=a),f+=t.slice(c,s).replace(Oh,ph),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(i=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+e.length,e})),f+="';\n";var h=Eh.call(e,"variable")&&e.variable;if(h){if(bh.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(gh,""):f).replace(mh,"$1").replace(yh,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Ir((function(){return Function(u,p+"return "+f).apply(void 0,s)}));if(v.source=f,Ar(v))throw v;return v};const xh=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return M(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),wu(t,e,{leading:r,maxWait:e,trailing:o})};const Sh=function(t,e){return e(t)};var Ah=4294967295,Ph=Math.min;const Ih=function(t,e){if((t=L(t))<1||t>9007199254740991)return[];var n=Ah,r=Ph(t,Ah);e=rs(e),t-=Ah;for(var o=De(r,e);++n-1;);return n};const zh=function(t,e){for(var n=-1,r=t.length;++n-1;);return n};const Fh=function(t,e,n){if((t=ur(t))&&(n||void 0===e))return I(t);if(!t||!(e=E(e)))return t;var r=to(t),o=to(e),i=zh(r,o),a=Wh(r,o)+1;return Br(r,i,a).join("")};const Uh=function(t,e,n){if((t=ur(t))&&(n||void 0===e))return t.slice(0,A(t)+1);if(!t||!(e=E(e)))return t;var r=to(t),o=Wh(r,to(e))+1;return Br(r,0,o).join("")};var $h=/^\s+/;const Hh=function(t,e,n){if((t=ur(t))&&(n||void 0===e))return t.replace($h,"");if(!t||!(e=E(e)))return t;var r=to(t),o=zh(r,to(e));return Br(r,o).join("")};var Vh=/\w*$/;const Gh=function(t,e){var n=30,r="...";if(M(e)){var o="separator"in e?e.separator:o;n="length"in e?L(e.length):n,r="omission"in e?E(e.omission):r}var i=(t=ur(t)).length;if(Wr(t)){var a=to(t);i=a.length}if(n>=i)return t;var u=n-ud(r);if(u<1)return r;var s=a?Br(a,0,u).join(""):t.slice(0,u);if(void 0===o)return s+r;if(a&&(u+=s.length-u),Sl(o)){if(t.slice(u).search(o)){var c,l=s;for(o.global||(o=RegExp(o.source,ur(Vh.exec(o))+"g")),o.lastIndex=0;c=o.exec(l);)var f=c.index;s=s.slice(0,void 0===f?u:f)}}else if(t.indexOf(E(o),u)!=u){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+r};const qh=function(t){return _e(t,1)};const Kh=io({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Yh=/&(?:amp|lt|gt|quot|#39);/g,Zh=RegExp(Yh.source);const Xh=function(t){return(t=ur(t))&&Zh.test(t)?t.replace(Yh,Kh):t};var Qh=Pi&&1/Sa(new Pi([,-0]))[1]==1/0?function(t){return new Pi(t)}:wt;const Jh=Qh;const tv=function(t,e,n){var r=-1,o=Jt,i=t.length,a=!0,u=[],s=u;if(n)a=!1,o=Uu;else if(i>=200){var c=e?null:Jh(t);if(c)return Sa(c);a=!1,o=Ea,s=new wa}else s=e?[]:u;t:for(;++r1||this.__actions__.length)&&r instanceof _t&&ae(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Sh,args:[o],thisArg:void 0}),new Pt(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(o)}));const jv=function(){return Ko(this)};const xv=function(){var t=this.__wrapped__;if(t instanceof _t){var e=t;return this.__actions__.length&&(e=new _t(this)),(e=e.reverse()).__actions__.push({func:Sh,args:[fp],thisArg:void 0}),new Pt(e,this.__chain__)}return this.thru(fp)};const Sv=function(t,e,n){var r=t.length;if(r<2)return r?tv(t[0]):[];for(var o=-1,i=Array(r);++o1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,pv(t,n)}));const Cv=Dv,Bv={chunk:Xo,compact:ga,concat:ma,difference:Vu,differenceBy:Ku,differenceWith:Zu,drop:Qu,dropRight:Ju,dropRightWhile:es,dropWhile:ns,fill:Ps,findIndex:Rs,findLastIndex:Ws,first:Us,flatten:mr,flattenDeep:Zs,flattenDepth:Xs,fromPairs:uc,head:Us,indexOf:Nc,initial:Tc,intersection:Cc,intersectionBy:Lc,intersectionWith:Wc,join:kl,last:Gu,lastIndexOf:Ul,nth:wf,pull:Td,pullAll:Nd,pullAllBy:Rd,pullAllWith:kd,pullAt:Ld,remove:ip,reverse:fp,slice:Sp,sortedIndex:Cp,sortedIndexBy:Bp,sortedIndexOf:Lp,sortedLastIndex:Wp,sortedLastIndexBy:zp,sortedLastIndexOf:Fp,sortedUniq:$p,sortedUniqBy:Hp,tail:rh,take:oh,takeRight:ih,takeRightWhile:ah,takeWhile:uh,union:ev,unionBy:rv,unionWith:ov,uniq:iv,uniqBy:av,uniqWith:uv,unzip:dv,unzipWith:pv,without:wv,xor:Av,xorBy:Iv,xorWith:Mv,zip:Nv,zipObject:Rv,zipObjectDeep:kv,zipWith:Cv},Lv={countBy:du,each:os,eachRight:cs,every:xs,filter:Ms,find:ks,findLast:zs,flatMap:Vs,flatMapDeep:qs,flatMapDepth:Ks,forEach:os,forEachRight:cs,groupBy:pc,includes:Ic,invokeMap:tl,keyBy:Ll,map:Hs,orderBy:Cf,partition:Ed,reduce:ep,reduceRight:rp,reject:op,sample:vp,sampleSize:bp,shuffle:jp,size:xp,some:Mp,sortBy:Np},Wv={now:yu},zv={after:W,ary:_e,before:Mr,bind:Tr,bindKey:Dr,curry:vu,curryRight:mu,debounce:wu,defer:Wu,delay:Fu,flip:Qs,memoize:er,negate:vf,once:Nf,overArgs:Uf,partial:bd,partialRight:wd,rearg:Jd,rest:sp,spread:qp,throttle:xh,unary:qh,wrap:Ov},Fv={castArray:$o,clone:fa,cloneDeep:da,cloneDeepWith:pa,cloneWith:ha,conformsTo:eu,eq:Oe,gt:gc,gte:mc,isArguments:ze,isArray:_,isArrayBuffer:rl,isArrayLike:Me,isArrayLikeObject:Pu,isBoolean:ol,isBuffer:Ve,isDate:ul,isElement:sl,isEmpty:ll,isEqual:fl,isEqualWith:dl,isError:Ar,isFinite:hl,isFunction:F,isInteger:vl,isLength:Ie,isMap:na,isMatch:gl,isMatchWith:ml,isNaN:bl,isNative:wl,isNil:Ol,isNull:El,isNumber:yl,isObject:M,isObjectLike:g,isPlainObject:Sr,isRegExp:Sl,isSafeInteger:Pl,isSet:ia,isString:xc,isSymbol:m,isTypedArray:tn,isUndefined:Il,isWeakMap:Ml,isWeakSet:Nl,lt:ql,lte:Kl,toArray:yf,toFinite:B,toInteger:L,toLength:Ss,toNumber:D,toPlainObject:Mu,toSafeInteger:Ch,toString:ur},Uv={add:x,ceil:qo,divide:Xu,floor:Js,max:tf,maxBy:ef,mean:of,meanBy:af,min:ff,minBy:df,multiply:hf,round:dp,subtract:th,sum:eh,sumBy:nh},$v={clamp:Jo,inRange:jc,random:Vd},Hv={assign:fn,assignIn:mn,assignInWith:bn,assignWith:wn,at:br,create:pu,defaults:Su,defaultsDeep:Cu,entries:hs,entriesIn:vs,extend:mn,extendWith:bn,findKey:Cs,findLastKey:Fs,forIn:rc,forInRight:oc,forOwn:ic,forOwnRight:ac,functions:cc,functionsIn:lc,get:fr,has:_c,hasIn:Va,invert:Hc,invertBy:Yc,invoke:Qc,keys:sn,keysIn:vn,mapKeys:Yl,mapValues:Zl,merge:sf,mergeWith:Du,omit:Sf,omitBy:Mf,pick:xd,pickBy:If,result:cp,set:_p,setWith:wp,toPairs:hs,toPairsIn:vs,transform:Lh,unset:lv,update:vv,updateWith:gv,values:Ac,valuesIn:bv},Vv={at:Ev,chain:Ko,commit:va,lodash:Rt,next:bf,plant:Sd,reverse:xv,tap:sh,thru:Sh,toIterator:Mh,toJSON:Th,value:Th,valueOf:Th,wrapperChain:jv},Gv={camelCase:Uo,capitalize:ro,deburr:co,endsWith:ls,escape:bs,escapeRegExp:Os,kebabCase:Cl,lowerCase:Hl,lowerFirst:Vl,pad:dd,padEnd:pd,padStart:hd,parseInt:md,repeat:ap,replace:up,snakeCase:Pp,split:Vp,startCase:Yp,startsWith:Zp,template:jh,templateSettings:vh,toLower:Rh,toUpper:Bh,trim:Fh,trimEnd:Uh,trimStart:Hh,truncate:Gh,unescape:Xh,upperCase:yv,upperFirst:no,words:Lo},qv={attempt:Ir,bindAll:Rr,cond:Xa,conforms:tu,constant:$t,defaultTo:Ou,flow:ec,flowRight:nc,identity:z,iteratee:Tl,matches:Xl,matchesProperty:Ql,method:cf,methodOf:lf,mixin:pf,noop:wt,nthArg:Of,over:Lf,overEvery:$f,overSome:Hf,property:Ya,propertyOf:Ad,range:Zd,rangeRight:Xd,stubArray:vi,stubFalse:Fe,stubObject:Xp,stubString:Qp,stubTrue:Jp,times:Ih,toPath:kh,uniqueId:cv};const Kv=function(){var t=new _t(this.__wrapped__);return t.__actions__=It(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=It(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=It(this.__views__),t};const Yv=function(){if(this.__filtered__){var t=new _t(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t};var Zv=Math.max,Xv=Math.min;const Qv=function(t,e,n){for(var r=-1,o=n.length;++r0||e<0)?new _t(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=L(e))<0?n.dropRight(-e):n.take(e-t)),n)},_t.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},_t.prototype.toArray=function(){return this.take(rg)},iu(_t.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Rt[r?"take"+("last"==e?"Right":""):e],i=r||/^find/.test(e);o&&(Rt.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,u=e instanceof _t,s=a[0],c=u||_(e),l=function(t){var e=o.apply(Rt,pr([t],a));return r&&f?e[0]:e};c&&n&&"function"==typeof s&&1!=s.length&&(u=c=!1);var f=this.__chain__,d=!!this.__actions__.length,p=i&&!f,h=u&&!d;if(!i&&c){e=h?e:new _t(this);var v=t.apply(e,a);return v.__actions__.push({func:Sh,args:[l],thisArg:void 0}),new Pt(v,f)}return p&&h?t.apply(this,a):(v=this.thru(l),p?r?v.value()[0]:v.value():v)})})),Kt(["pop","push","shift","sort","splice","unshift"],(function(t){var e=og[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Rt.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(_(o)?o:[],t)}return this[n]((function(n){return e.apply(_(n)?n:[],t)}))}})),iu(_t.prototype,(function(t,e){var n=Rt[e];if(n){var r=n.name+"";ig.call(jt,r)||(jt[r]=[]),jt[r].push({name:e,func:n})}})),jt[fe(void 0,2).name]=[{name:"wrapper",func:void 0}],_t.prototype.clone=Kv,_t.prototype.reverse=Yv,_t.prototype.value=tg,Rt.prototype.at=Vv.at,Rt.prototype.chain=Vv.wrapperChain,Rt.prototype.commit=Vv.commit,Rt.prototype.next=Vv.next,Rt.prototype.plant=Vv.plant,Rt.prototype.reverse=Vv.reverse,Rt.prototype.toJSON=Rt.prototype.valueOf=Rt.prototype.value=Vv.value,Rt.prototype.first=Rt.prototype.head,ag&&(Rt.prototype[ag]=Vv.toIterator);const lg=Rt}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};n(221)})(); \ No newline at end of file diff --git a/plugins/ValkyrSceneCards/ValkyrSceneCards.yml b/plugins/ValkyrSceneCards/ValkyrSceneCards.yml index 079e499..8e9d89a 100644 --- a/plugins/ValkyrSceneCards/ValkyrSceneCards.yml +++ b/plugins/ValkyrSceneCards/ValkyrSceneCards.yml @@ -1,7 +1,7 @@ name: Valkyr Scene Cards -description: A rework of the scene card component for Stash. +description: A customisable rework of the scene card component for Stash. url: https://github.com/Valkyr-JS/ValkyrSceneCards -version: 1.1.1 +version: 1.2.0 ui: javascript: - ValkyrSceneCards.js @@ -32,6 +32,14 @@ settings: displayName: Hide duration description: When enabled, the scene duration will not be displayed. type: BOOLEAN + hideFilesize: + displayName: Hide file size + description: When enabled, the file size will not be displayed. + type: BOOLEAN + hideFramerate: + displayName: Hide frame rate + description: When enabled, the frame rate will not be displayed. + type: BOOLEAN hideGalleries: displayName: Hide galleries description: When enabled, the scene galleries count will not be displayed. @@ -112,6 +120,14 @@ settings: displayName: Display performer names in gender colors description: When enabled, performer names will be colored according to their gender. These colors can be changed via CSS variables. See the readme in the link for details. type: BOOLEAN + performerGenderFilter: + displayName: Filter performer gender + description: Enter a comma-separated list of the genders that should be included in the performer list. An empty list will show all performers. Acceptable values are; MALE, FEMALE, TRANSGENDER MALE, TRANSGENDER FEMALE, INTERSEX, and NON BINARY. Case is insensitive. + type: STRING + performerLimit: + displayName: Limit the number of performers + description: When set, if the number of scene performers exceeds this number, the remaining performers will be replaced with overflow text. If empty, all performers will be listed. + type: NUMBER previewBlurredBackground: displayName: Enable image backgrounds for previews description: When enabled, scene preview images and videos will show a blurred copy of the thumbnail where there is letterboxing. This typically only happens for portrait thumbnails.