1var at=Object.defineProperty;var G=e=>{throw TypeError(e)};var lt=(e,t,i)=>t in e?at(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var N=(e,t,i)=>lt(e,typeof t!="symbol"?t+"":t,i),I=(e,t,i)=>t.has(e)||G("Cannot "+i);var A=(e,t,i)=>(I(e,t,"read from private field"),i?i.call(e):t.get(e)),L=(e,t,i)=>t.has(e)?G("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),M=(e,t,i,n)=>(I(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i),b=(e,t,i)=>(I(e,t,"access private method"),i);import{R as dt}from"./index-RXy4Hkmd.js";const ct=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"];var V;const B=(V=globalThis.document)==null?void 0:V.createElement("template");B&&(B.innerHTML=` 2 <style> 3 :host { 4 display: inline-block; 5 line-height: 0; 6 } 7 8 video, 9 audio { 10 max-width: 100%; 11 max-height: 100%; 12 min-width: 100%; 13 min-height: 100%; 14 } 15 </style> 16 <slot></slot> 17 `);const tt=(e,{tag:t,is:i})=>{var v,u,y,O,et,P,w,k,T,p,E,l,x,it,st,ot,nt,rt;const n=(v=globalThis.document)==null?void 0:v.createElement(t,{is:i}),h=n?J(n):[];return u=class extends e{constructor(){super();L(this,l);L(this,P);L(this,w);L(this,k,!1);L(this,T,!1);L(this,p);L(this,E);this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.append(this.constructor.template.content.cloneNode(!0))),this.load!==u.prototype.load&&(this.loadComplete=new K)}static get observedAttributes(){var o,m;return b(o=u,O,et).call(o),[...((m=n==null?void 0:n.constructor)==null?void 0:m.observedAttributes)??[],"autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"]}get loadComplete(){return A(this,w)}set loadComplete(s){M(this,T,!1),M(this,w,s),s==null||s.then(()=>{M(this,T,!0)})}get isLoaded(){return A(this,T)}get nativeEl(){return A(this,p)??this.shadowRoot.querySelector(t)??this.querySelector(t)}set nativeEl(s){M(this,p,s)}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(s){this.toggleAttribute("muted",!!s)}get src(){return this.getAttribute("src")}set src(s){this.setAttribute("src",`${s}`)}get preload(){var s;return this.getAttribute("preload")??((s=this.nativeEl)==null?void 0:s.preload)}set preload(s){this.setAttribute("preload",`${s}`)}attributeChangedCallback(s,o,m){b(this,l,x).call(this),s==="src"&&this.load!==u.prototype.load&&b(this,l,nt).call(this),b(this,l,rt).call(this,s,o,m)}connectedCallback(){b(this,l,x).call(this)}},y=new WeakMap,O=new WeakSet,et=function(){if(A(this,y))return;M(this,y,!0);const s=new Set(this.observedAttributes);s.delete("muted");for(let o of h){if(o in this.prototype)continue;if(typeof n[o]=="function")this.prototype[o]=function(...g){b(this,l,x).call(this);const a=()=>this.call?this.call(o,...g):this.nativeEl[o].apply(this.nativeEl,g);return this.loadComplete&&!this.isLoaded?this.loadComplete.then(a):a()};else{let g={get(){var d,C;b(this,l,x).call(this);let a=o.toLowerCase();if(s.has(a)){const R=this.getAttribute(a);return R===null?!1:R===""?!0:R}return((d=this.get)==null?void 0:d.call(this,o))??((C=this.nativeEl)==null?void 0:C[o])??A(this,E)[o]}};o!==o.toUpperCase()&&(g.set=async function(a){b(this,l,x).call(this);let d=o.toLowerCase();if(s.has(d)){a===!0||a===!1||a==null?this.toggleAttribute(d,!!a):this.setAttribute(d,a);return}if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.set){this.set(o,a);return}this.nativeEl[o]=a}),Object.defineProperty(this.prototype,o,g)}}},P=new WeakMap,w=new WeakMap,k=new WeakMap,T=new WeakMap,p=new WeakMap,E=new WeakMap,l=new WeakSet,x=async function(){var m,g;if(A(this,P))return;M(this,P,!0),b(this,l,st).call(this),b(this,l,ot).call(this);for(let a of h)b(this,l,it).call(this,a);const s=new Map,o=this.shadowRoot.querySelector("slot:not([name])");o==null||o.addEventListener("slotchange",()=>{const a=new Map(s);o.assignedElements().filter(d=>
17["track","source"].includes(d.localName)).forEach(async d=>{var R,z;a.delete(d);let C=s.get(d);C||(C=d.cloneNode(),s.set(d,C)),this.loadComplete&&!this.isLoaded&&await this.loadComplete,(z=(R=this.nativeEl).append)==null||z.call(R,C)}),a.forEach(d=>d.remove())});for(let a of this.constructor.Events)(g=(m=this.shadowRoot).addEventListener)==null||g.call(m,a,d=>{d.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(d.type,{detail:d.detail}))},!0)},it=function(s){if(Object.prototype.hasOwnProperty.call(this,s)){const o=this[s];delete this[s],this[s]=o}},st=function(){const s=document.createElement(t,{is:i});s.muted=this.hasAttribute("muted");for(let{name:o,value:m}of this.attributes)s.setAttribute(o,m);M(this,E,{});for(let o of J(s))A(this,E)[o]=s[o];s.removeAttribute("src"),s.load()},ot=async function(){if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,!this.nativeEl){const s=document.createElement(t,{is:i});s.part=t,this.shadowRoot.append(s)}this.nativeEl.muted=this.hasAttribute("muted")},nt=async function(){var s;A(this,k)&&(this.loadComplete=new K),M(this,k,!0),await Promise.resolve(),await this.load(),(s=this.loadComplete)==null||s.resolve(),await this.loadComplete},rt=async function(s,o,m){var g,a,d,C;this.loadComplete&&!this.isLoaded&&await this.loadComplete,!["id","class",...this.constructor.skipAttributes].includes(s)&&(m===null?(a=(g=this.nativeEl).removeAttribute)==null||a.call(g,s):(C=(d=this.nativeEl).setAttribute)==null||C.call(d,s,m))},L(u,O),N(u,"Events",ct),N(u,"template",B),N(u,"skipAttributes",[]),L(u,y),u};function J(e){let t=[];for(let i=Object.getPrototypeOf(e);i&&i!==HTMLElement.prototype;i=Object.getPrototypeOf(i))t.push(...Object.getOwnPropertyNames(i));return t}class K extends Promise{constructor(t=()=>{}){let i,n;super((h,v)=>{t(h,v),i=h,n=v}),this.resolve=i,this.reject=n}}const ut=globalThis.document?tt(HTMLElement,{tag:"video"}):class{};globalThis.document&&tt(HTMLElement,{tag:"audio"});var Q,X;const W=(Q=globalThis.document)==null?void 0:Q.createElement("template");W&&(W.innerHTML=` 18 <div class="wistia_embed"></div> 19 `);const D=(X=globalThis.document)==null?void 0:X.createElement("template");D&&(D.innerHTML=` 20 <style> 21 :host { 22 display: inline-block; 23 min-width: 300px; 24 min-height: 150px; 25 position: relative; 26 } 27 ::slotted(.wistia_embed) { 28 position: absolute; 29 width: 100%; 30 height: 100%; 31 } 32 </style> 33 <slot></slot> 34 `);class q extends ut{get nativeEl(){var t;return((t=this.api)==null?void 0:t.elem())??this.querySelector("video")}async load(){var t;if((t=this.querySelector(".wistia_embed"))==null||t.remove(),!this.src)return;await new Promise(y=>setTimeout(y,50));const i=/(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/i,n=this.src.match(i)[1],h={autoPlay:this.autoplay,preload:this.preload??"metadata",playsinline:this.playsInline,endVideoBehavior:this.loop&&"loop",chromeless:!this.controls,playButton:this.controls,muted:this.defaultMuted};this.append(W.content.cloneNode(!0));const v=this.querySelector(".wistia_embed");v.id||(v.id=ft(n)),v.classList.add(`wistia_async_${n}`),await ht("https://fast.wistia.com/assets/external/E-v1.js","Wistia"),this.api=await new Promise(y=>{globalThis._wq.push({id:v.id,onReady:y,options:h})})}async attributeChangedCallback(t,i,n){if(t==="controls"){switch(await this.loadComplete,t){case"controls":this.api.bigPlayButtonEnabled(this.controls),this.controls?this.api.releaseChromeless():this.api.requestChromeless();break}return}super.attributeChangedCallback(t,i,n)}get duration(){var t;return(t=this.api)==null?void 0:t.duration()}play(){return this.api.play(),new Promise(t=>this.addEventListener("playing",t))}}N(q,"template",D),N(q,"skipAttributes",["src"]);const $={};async function ht(e,t){return $[e]?$[e]:self[t]?self[t]:$[e]=new Promise((i,n)=>{const h=document.createElement("script");h.defer=!0,h.src=e,h.onload=()=>i(self[t]),h.onerror=n,document.head.append(h)})}let pt=0;function ft(e){const t=++pt;return`${e}${t}`}globalThis.customElements&&!globalThis.customElements.get("wistia-video")&&globalThis.customElements.define("wistia-video",q);var mt=q,vt=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),bt={className:"class",htmlFor:"for"};function yt(e){return e.toLowerCase()}function Y(e){if(typeof e=="boolean")return e?"":void 0;if(typeof e!="function"&&!(typeof e=="object"&&e!==null))return e}function wt({react:e,tagName:t,elementClass:i,events:n,displayName:h,defaultProps:v,toAttributeName:u=yt,toAttributeValue:y=Y}){const O=Number.parseInt(e.version)>=19,F=e.forwardRef((P,w)=>{var k,T;const p=e.useRef(null),E=e.useRef(new Map),l={},U={},H={},j={};for(const[r,c]of Object.entries(P)){if(vt.has(r)){H[r]=c;continue}const f=u(bt[r]??r);if(r in i.prototype&&!(r in(((k=globalThis.HTMLElement)==null?void 0:k.prototype)??{}))&&!((T=i.observedAttributes)!=null&&T.some(S=>S===f))){j[r]=c;continue}if(r.startsWith("on")){l[r]=c;continue}const _=y(c);if(f&&_!=null&&(U[f]=String(_),O||(H[f]=_)),f&&O){const S=Y(c);_!==S?H[f]=_:H[f]=c}}if(typeof window<"u"){for(const r in l){const c=l[r],f=r.endsWith("Capture"),_=((n==null?void 0:n[r])??r.slice(2).toLowerCase()).slice(0,f?-7:void 0);e.useLayoutEffect(()=>{const S=p==null?void 0:p.current;
34if(!(!S||typeof c!="function"))return S.addEventListener(_,c,f),()=>{S.removeEventListener(_,c,f)}},[p==null?void 0:p.current,c])}e.useLayoutEffect(()=>{if(p.current===null)return;const r=new Map;for(const c in j)Z(p.current,c,j[c]),E.current.delete(c),r.set(c,j[c]);for(const[c,f]of E.current)Z(p.current,c,void 0);E.current=r})}if(typeof window>"u"&&(i!=null&&i.getTemplateHTML)&&(i!=null&&i.shadowRootOptions)){const{mode:r,delegatesFocus:c}=i.shadowRootOptions,f=e.createElement("template",{shadowrootmode:r,shadowrootdelegatesfocus:c,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(U,P)}});H.children=[f,H.children]}return e.createElement(t,{...v,...H,ref:e.useCallback(r=>{p.current=r,typeof w=="function"?w(r):w!==null&&(w.current=r)},[w])})});return F.displayName=h??i.name,F}function Z(e,t,i){var n;e[t]=i,i==null&&t in(((n=globalThis.HTMLElement)==null?void 0:n.prototype)??{})&&e.removeAttribute(t)}var Ct=wt({react:dt,tagName:"wistia-video",elementClass:mt});/*! Bundled license information: 35 36ce-la-react/dist/ce-la-react.js: 37 (** 38 * @license 39 * Copyright 2018 Google LLC 40 * SPDX-License-Identifier: BSD-3-Clause 41 * 42 * Modified version of `@lit/react` for vanilla custom elements with support for SSR. 43 *) 44*/export{Ct as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.