chainlit 1.1.302__py3-none-any.whl → 1.1.303__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of chainlit might be problematic. Click here for more details.
- chainlit/copilot/dist/index.js +1 -1
- chainlit/frontend/dist/assets/{DailyMotion-92fc1621.js → DailyMotion-4f715d15.js} +1 -1
- chainlit/frontend/dist/assets/{Facebook-644622d4.js → Facebook-25f45c09.js} +1 -1
- chainlit/frontend/dist/assets/{FilePlayer-adb407f0.js → FilePlayer-04482650.js} +1 -1
- chainlit/frontend/dist/assets/{Kaltura-9432f468.js → Kaltura-37152a96.js} +1 -1
- chainlit/frontend/dist/assets/{Mixcloud-f0974962.js → Mixcloud-914b75ee.js} +1 -1
- chainlit/frontend/dist/assets/{Mux-b96eaa94.js → Mux-fb751398.js} +1 -1
- chainlit/frontend/dist/assets/{Preview-b3ef64e8.js → Preview-85fbb8da.js} +1 -1
- chainlit/frontend/dist/assets/{SoundCloud-09b74715.js → SoundCloud-8afad6c0.js} +1 -1
- chainlit/frontend/dist/assets/{Streamable-48c1fa82.js → Streamable-08844d93.js} +1 -1
- chainlit/frontend/dist/assets/{Twitch-457de5f4.js → Twitch-1b95f5c8.js} +1 -1
- chainlit/frontend/dist/assets/{Vidyard-d5e20d28.js → Vidyard-5028fa2f.js} +1 -1
- chainlit/frontend/dist/assets/{Vimeo-dd6bf7ea.js → Vimeo-ca732959.js} +1 -1
- chainlit/frontend/dist/assets/{Wistia-a4a2bf34.js → Wistia-74e58d71.js} +1 -1
- chainlit/frontend/dist/assets/{YouTube-f20013d0.js → YouTube-bdf4ca10.js} +1 -1
- chainlit/frontend/dist/assets/{index-e0971e86.js → index-621140f9.js} +3 -3
- chainlit/frontend/dist/assets/{react-plotly-29626c74.js → react-plotly-cf9b99cc.js} +1 -1
- chainlit/frontend/dist/index.html +1 -1
- chainlit/server.py +0 -11
- {chainlit-1.1.302.dist-info → chainlit-1.1.303.dist-info}/METADATA +1 -1
- {chainlit-1.1.302.dist-info → chainlit-1.1.303.dist-info}/RECORD +23 -23
- {chainlit-1.1.302.dist-info → chainlit-1.1.303.dist-info}/WHEEL +0 -0
- {chainlit-1.1.302.dist-info → chainlit-1.1.303.dist-info}/entry_points.txt +0 -0
chainlit/copilot/dist/index.js
CHANGED
|
@@ -382,7 +382,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
382
382
|
`});++a<e.length;)a&&r.push({type:"text",value:`
|
|
383
383
|
`}),r.push(e[a]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
384
384
|
`}),r}function Wle(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function jle(e,t){const r=cit(e,t),a=r.one(e,void 0),u=tit(r),A=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return u&&A.children.push({type:"text",value:`
|
|
385
|
-
`},u),A}function vit(e,t){return e&&"run"in e?async function(r,a){const u=jle(r,{file:a,...t});await e.run(u,a)}:function(r,a){return jle(r,{file:a,...t||e})}}function Kle(e){if(e)throw e}var yM=Object.prototype.hasOwnProperty,Xle=Object.prototype.toString,Zle=Object.defineProperty,Qle=Object.getOwnPropertyDescriptor,Jle=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Xle.call(t)==="[object Array]"},qle=function(t){if(!t||Xle.call(t)!=="[object Object]")return!1;var r=yM.call(t,"constructor"),a=t.constructor&&t.constructor.prototype&&yM.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!a)return!1;var u;for(u in t);return typeof u>"u"||yM.call(t,u)},eue=function(t,r){Zle&&r.name==="__proto__"?Zle(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},tue=function(t,r){if(r==="__proto__")if(yM.call(t,r)){if(Qle)return Qle(t,r).value}else return;return t[r]},mit=function e(){var t,r,a,u,A,c,y=arguments[0],n=1,s=arguments.length,b=!1;for(typeof y=="boolean"&&(b=y,y=arguments[1]||{},n=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});n<s;++n)if(t=arguments[n],t!=null)for(r in t)a=tue(y,r),u=tue(t,r),y!==u&&(b&&u&&(qle(u)||(A=Jle(u)))?(A?(A=!1,c=a&&Jle(a)?a:[]):c=a&&qle(a)?a:{},eue(y,{name:r,newValue:e(b,c,u)})):typeof u<"u"&&eue(y,{name:r,newValue:u}));return y};const nF=_s(mit);function aF(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function git(){const e=[],t={run:r,use:a};return t;function r(...u){let A=-1;const c=u.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);y(null,...u);function y(n,...s){const b=e[++A];let i=-1;if(n){c(n);return}for(;++i<u.length;)(s[i]===null||s[i]===void 0)&&(s[i]=u[i]);u=s,b?yit(b,y)(...s):c(null,...s)}}function a(u){if(typeof u!="function")throw new TypeError("Expected `middelware` to be a function, not "+u);return e.push(u),t}}function yit(e,t){let r;return a;function a(...c){const y=e.length>c.length;let n;y&&c.push(u);try{n=e.apply(this,c)}catch(s){const b=s;if(y&&r)throw b;return u(b)}y||(n&&n.then&&typeof n.then=="function"?n.then(A,u):n instanceof Error?u(n):A(n))}function u(c,...y){r||(r=!0,t(c,...y))}function A(c){u(null,c)}}const sm={basename:bit,dirname:xit,extname:_it,join:Eit,sep:"/"};function bit(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Q3(e);let r=0,a=-1,u=e.length,A;if(t===void 0||t.length===0||t.length>e.length){for(;u--;)if(e.codePointAt(u)===47){if(A){r=u+1;break}}else a<0&&(A=!0,a=u+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let c=-1,y=t.length-1;for(;u--;)if(e.codePointAt(u)===47){if(A){r=u+1;break}}else c<0&&(A=!0,c=u+1),y>-1&&(e.codePointAt(u)===t.codePointAt(y--)?y<0&&(a=u):(y=-1,a=c));return r===a?a=c:a<0&&(a=e.length),e.slice(r,a)}function xit(e){if(Q3(e),e.length===0)return".";let t=-1,r=e.length,a;for(;--r;)if(e.codePointAt(r)===47){if(a){t=r;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function _it(e){Q3(e);let t=e.length,r=-1,a=0,u=-1,A=0,c;for(;t--;){const y=e.codePointAt(t);if(y===47){if(c){a=t+1;break}continue}r<0&&(c=!0,r=t+1),y===46?u<0?u=t:A!==1&&(A=1):u>-1&&(A=-1)}return u<0||r<0||A===0||A===1&&u===r-1&&u===a+1?"":e.slice(u,r)}function Eit(...e){let t=-1,r;for(;++t<e.length;)Q3(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":Sit(r)}function Sit(e){Q3(e);const t=e.codePointAt(0)===47;let r=Tit(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Tit(e,t){let r="",a=0,u=-1,A=0,c=-1,y,n;for(;++c<=e.length;){if(c<e.length)y=e.codePointAt(c);else{if(y===47)break;y=47}if(y===47){if(!(u===c-1||A===1))if(u!==c-1&&A===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(n=r.lastIndexOf("/"),n!==r.length-1){n<0?(r="",a=0):(r=r.slice(0,n),a=r.length-1-r.lastIndexOf("/")),u=c,A=0;continue}}else if(r.length>0){r="",a=0,u=c,A=0;continue}}t&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(u+1,c):r=e.slice(u+1,c),a=c-u-1;u=c,A=0}else y===46&&A>-1?A++:A=-1}return r}function Q3(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wit={cwd:Ait};function Ait(){return"/"}function iF(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Cit(e){if(typeof e=="string")e=new URL(e);else if(!iF(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Rit(e)}function Rit(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const a=t.codePointAt(r+2);if(a===70||a===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}return decodeURIComponent(t)}const oF=["history","path","basename","stem","extname","dirname"];class rue{constructor(t){let r;t?iF(t)?r={path:t}:typeof t=="string"||Mit(t)?r={value:t}:r=t:r={},this.cwd=wit.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<oF.length;){const A=oF[a];A in r&&r[A]!==void 0&&r[A]!==null&&(this[A]=A==="history"?[...r[A]]:r[A])}let u;for(u in r)oF.includes(u)||(this[u]=r[u])}get basename(){return typeof this.path=="string"?sm.basename(this.path):void 0}set basename(t){lF(t,"basename"),sF(t,"basename"),this.path=sm.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?sm.dirname(this.path):void 0}set dirname(t){nue(this.basename,"dirname"),this.path=sm.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?sm.extname(this.path):void 0}set extname(t){if(sF(t,"extname"),nue(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=sm.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){iF(t)&&(t=Cit(t)),lF(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?sm.basename(this.path,this.extname):void 0}set stem(t){lF(t,"stem"),sF(t,"stem"),this.path=sm.join(this.dirname||"",t+(this.extname||""))}fail(t,r,a){const u=this.message(t,r,a);throw u.fatal=!0,u}info(t,r,a){const u=this.message(t,r,a);return u.fatal=void 0,u}message(t,r,a){const u=new Pf(t,r,a);return this.path&&(u.name=this.path+":"+u.name,u.file=this.path),u.fatal=!1,this.messages.push(u),u}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function sF(e,t){if(e&&e.includes(sm.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+sm.sep+"`")}function lF(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function nue(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Mit(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Iit=function(e){const a=this.constructor.prototype,u=a[e],A=function(){return u.apply(A,arguments)};Object.setPrototypeOf(A,a);const c=Object.getOwnPropertyNames(u);for(const y of c){const n=Object.getOwnPropertyDescriptor(u,y);n&&Object.defineProperty(A,y,n)}return A},Oit={}.hasOwnProperty;class uF extends Iit{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=git()}copy(){const t=new uF;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];t.use(...a)}return t.data(nF(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(dF("data",this.frozen),this.namespace[t]=r,this):Oit.call(this.namespace,t)&&this.namespace[t]||void 0:t?(dF("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const u=r.call(t,...a);typeof u=="function"&&this.transformers.use(u)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=bM(t),a=this.parser||this.Parser;return cF("parse",a),a(String(r),r)}process(t,r){const a=this;return this.freeze(),cF("process",this.parser||this.Parser),fF("process",this.compiler||this.Compiler),r?u(void 0,r):new Promise(u);function u(A,c){const y=bM(t),n=a.parse(y);a.run(n,y,function(b,i,w){if(b||!i||!w)return s(b);const E=i,p=a.stringify(E,w);Dit(p)?w.value=p:w.result=p,s(b,w)});function s(b,i){b||!i?c(b):A?A(i):r(void 0,i)}}}processSync(t){let r=!1,a;return this.freeze(),cF("processSync",this.parser||this.Parser),fF("processSync",this.compiler||this.Compiler),this.process(t,u),iue("processSync","process",r),a;function u(A,c){r=!0,Kle(A),a=c}}run(t,r,a){aue(t),this.freeze();const u=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?A(void 0,a):new Promise(A);function A(c,y){const n=bM(r);u.run(t,n,s);function s(b,i,w){const E=i||t;b?y(b):c?c(E):a(void 0,E,w)}}}runSync(t,r){let a=!1,u;return this.run(t,r,A),iue("runSync","run",a),u;function A(c,y){Kle(c),u=y,a=!0}}stringify(t,r){this.freeze();const a=bM(r),u=this.compiler||this.Compiler;return fF("stringify",u),aue(t),u(t,a)}use(t,...r){const a=this.attachers,u=this.namespace;if(dF("use",this.frozen),t!=null)if(typeof t=="function")n(t,r);else if(typeof t=="object")Array.isArray(t)?y(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function A(s){if(typeof s=="function")n(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[b,...i]=s;n(b,i)}else c(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function c(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");y(s.plugins),s.settings&&(u.settings=nF(!0,u.settings,s.settings))}function y(s){let b=-1;if(s!=null)if(Array.isArray(s))for(;++b<s.length;){const i=s[b];A(i)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function n(s,b){let i=-1,w=-1;for(;++i<a.length;)if(a[i][0]===s){w=i;break}if(w===-1)a.push([s,...b]);else if(b.length>0){let[E,...p]=b;const _=a[w][1];aF(_)&&aF(E)&&(E=nF(!0,_,E)),a[w]=[s,E,...p]}}}}const Nit=new uF().freeze();function cF(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function fF(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function dF(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function aue(e){if(!aF(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function iue(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function bM(e){return Lit(e)?e:new rue(e)}function Lit(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Dit(e){return typeof e=="string"||Pit(e)}function Pit(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const kit="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",oue=[],sue={allowDangerousHtml:!0},Fit=/^(https?|ircs?|mailto|xmpp)$/i,Bit=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function zit(e){const t=e.allowedElements,r=e.allowElement,a=e.children||"",u=e.className,A=e.components,c=e.disallowedElements,y=e.rehypePlugins||oue,n=e.remarkPlugins||oue,s=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...sue}:sue,b=e.skipHtml,i=e.unwrapDisallowed,w=e.urlTransform||Uit,E=Nit().use(Eat).use(n).use(vit,s).use(y),p=new rue;typeof a=="string"&&(p.value=a);for(const d of Bit)Object.hasOwn(e,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+kit+d.id,void 0);const _=E.parse(p);let l=E.runSync(_,p);return u&&(l={type:"element",tagName:"div",properties:{className:u},children:l.type==="root"?l.children:[l]}),Z3(l,o),hrt(l,{Fragment:$e.Fragment,components:A,ignoreInvalidStyle:!0,jsx:$e.jsx,jsxs:$e.jsxs,passKeys:!0,passNode:!0});function o(d,f,h){if(d.type==="raw"&&h&&typeof f=="number")return b?h.children.splice(f,1):h.children[f]={type:"text",value:d.value},f;if(d.type==="element"){let g;for(g in $k)if(Object.hasOwn($k,g)&&Object.hasOwn(d.properties,g)){const v=d.properties[g],C=$k[g];(C===null||C.includes(d.tagName))&&(d.properties[g]=w(String(v||""),g,d))}}if(d.type==="element"){let g=t?!t.includes(d.tagName):c?c.includes(d.tagName):!1;if(!g&&r&&typeof f=="number"&&(g=!r(d,f,h)),g&&h&&typeof f=="number")return i&&d.children?h.children.splice(f,1,...d.children):h.children.splice(f,1),f}}}function Uit(e){const t=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),u=e.indexOf("/");return t<0||u>-1&&t>u||r>-1&&t>r||a>-1&&t>a||Fit.test(e.slice(0,t))?e:""}const lue=/[#.]/g;function Hit(e,t){const r=e||"",a={};let u=0,A,c;for(;u<r.length;){lue.lastIndex=u;const y=lue.exec(r),n=r.slice(u,y?y.index:r.length);n&&(A?A==="#"?a.id=n:Array.isArray(a.className)?a.className.push(n):a.className=[n]:c=n,u+=n.length),y&&(A=y[0],u++)}return{type:"element",tagName:c||t||"div",properties:a,children:[]}}const $it=new Set(["button","menu","reset","submit"]),hF={}.hasOwnProperty;function uue(e,t,r){const a=r&&Wit(r);function u(A,c,...y){let n=-1,s;if(A==null){s={type:"root",children:[]};const b=c;y.unshift(b)}else if(s=Hit(A,t),s.tagName=s.tagName.toLowerCase(),a&&hF.call(a,s.tagName)&&(s.tagName=a[s.tagName]),Git(c,s.tagName)){let b;for(b in c)hF.call(c,b)&&Vit(e,s.properties,b,c[b])}else y.unshift(c);for(;++n<y.length;)pF(s.children,y[n]);return s.type==="element"&&s.tagName==="template"&&(s.content={type:"root",children:s.children},s.children=[]),s}return u}function Git(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?$it.has(e.type.toLowerCase()):!("value"in e)}function Vit(e,t,r,a){const u=iM(e,r);let A=-1,c;if(a!=null){if(typeof a=="number"){if(Number.isNaN(a))return;c=a}else typeof a=="boolean"?c=a:typeof a=="string"?u.spaceSeparated?c=jse(a):u.commaSeparated?c=Lse(a):u.commaOrSpaceSeparated?c=jse(Lse(a).join(" ")):c=cue(u,u.property,a):Array.isArray(a)?c=a.concat():c=u.property==="style"?Yit(a):String(a);if(Array.isArray(c)){const y=[];for(;++A<c.length;){const n=cue(u,u.property,c[A]);y[A]=n}c=y}if(u.property==="className"&&Array.isArray(t.className)){const y=c;c=t.className.concat(y)}t[u.property]=c}}function pF(e,t){let r=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++r<t.length;)pF(e,t[r]);else if(typeof t=="object"&&"type"in t)t.type==="root"?pF(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function cue(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||H3(r)===H3(t)))return!0}return r}function Yit(e){const t=[];let r;for(r in e)hF.call(e,r)&&t.push([r,e[r]].join(": "));return t.join("; ")}function Wit(e){const t={};let r=-1;for(;++r<e.length;)t[e[r].toLowerCase()]=e[r];return t}const jit=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],fue=uue($3,"div"),due=uue(Z1,"g",jit),lm={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Kit(e,t){return hue(e,t||{})||{type:"root",children:[]}}function hue(e,t){const r=Xit(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function Xit(e,t){switch(e.nodeType){case 1:return qit(e,t);case 3:return Qit(e);case 8:return Jit(e);case 9:return pue(e,t);case 10:return Zit();case 11:return pue(e,t);default:return}}function pue(e,t){return{type:"root",children:vue(e,t)}}function Zit(){return{type:"doctype"}}function Qit(e){return{type:"text",value:e.nodeValue||""}}function Jit(e){return{type:"comment",value:e.nodeValue||""}}function qit(e,t){const r=e.namespaceURI,a=r===lm.svg?due:fue,u=r===lm.html?e.tagName.toLowerCase():e.tagName,A=r===lm.html&&u==="template"?e.content:e,c=e.getAttributeNames(),y={};let n=-1;for(;++n<c.length;)y[c[n]]=e.getAttribute(c[n])||"";return a(u,y,vue(A,t))}function vue(e,t){const r=e.childNodes,a=[];let u=-1;for(;++u<r.length;){const A=hue(r[u],t);A!==void 0&&a.push(A)}return a}const eot=new DOMParser;function tot(e,t){const r=t!=null&&t.fragment?rot(e):eot.parseFromString(e,"text/html");return Kit(r)}function rot(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const mue=function(e,t,r){const a=X3(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(a(e.children[t],t,e))return e.children[t]},ub=function(e){if(e==null)return iot;if(typeof e=="string")return aot(e);if(typeof e=="object")return not(e);if(typeof e=="function")return vF(e);throw new Error("Expected function, string, or array as `test`")};function not(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=ub(e[r]);return vF(a);function a(...u){let A=-1;for(;++A<t.length;)if(t[A].apply(this,u))return!0;return!1}}function aot(e){return vF(t);function t(r){return r.tagName===e}}function vF(e){return t;function t(r,a,u){return!!(oot(r)&&e.call(this,r,typeof a=="number"?a:void 0,u||void 0))}}function iot(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function oot(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const gue=/\n/g,yue=/[\t ]+/g,mF=ub("br"),bue=ub(pot),sot=ub("p"),xue=ub("tr"),lot=ub(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",hot,vot]),_ue=ub(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function uot(e,t){const r=t||{},a="children"in e?e.children:[],u=_ue(e),A=Tue(e,{whitespace:r.whitespace||"normal",breakBefore:!1,breakAfter:!1}),c=[];(e.type==="text"||e.type==="comment")&&c.push(...Sue(e,{whitespace:A,breakBefore:!0,breakAfter:!0}));let y=-1;for(;++y<a.length;)c.push(...Eue(a[y],e,{whitespace:A,breakBefore:y?void 0:u,breakAfter:y<a.length-1?mF(a[y+1]):u}));const n=[];let s;for(y=-1;++y<c.length;){const b=c[y];typeof b=="number"?s!==void 0&&b>s&&(s=b):b&&(s!==void 0&&s>-1&&n.push(`
|
|
385
|
+
`},u),A}function vit(e,t){return e&&"run"in e?async function(r,a){const u=jle(r,{file:a,...t});await e.run(u,a)}:function(r,a){return jle(r,{file:a,...t||e})}}function Kle(e){if(e)throw e}var yM=Object.prototype.hasOwnProperty,Xle=Object.prototype.toString,Zle=Object.defineProperty,Qle=Object.getOwnPropertyDescriptor,Jle=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Xle.call(t)==="[object Array]"},qle=function(t){if(!t||Xle.call(t)!=="[object Object]")return!1;var r=yM.call(t,"constructor"),a=t.constructor&&t.constructor.prototype&&yM.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!a)return!1;var u;for(u in t);return typeof u>"u"||yM.call(t,u)},eue=function(t,r){Zle&&r.name==="__proto__"?Zle(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},tue=function(t,r){if(r==="__proto__")if(yM.call(t,r)){if(Qle)return Qle(t,r).value}else return;return t[r]},mit=function e(){var t,r,a,u,A,c,y=arguments[0],n=1,s=arguments.length,b=!1;for(typeof y=="boolean"&&(b=y,y=arguments[1]||{},n=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});n<s;++n)if(t=arguments[n],t!=null)for(r in t)a=tue(y,r),u=tue(t,r),y!==u&&(b&&u&&(qle(u)||(A=Jle(u)))?(A?(A=!1,c=a&&Jle(a)?a:[]):c=a&&qle(a)?a:{},eue(y,{name:r,newValue:e(b,c,u)})):typeof u<"u"&&eue(y,{name:r,newValue:u}));return y};const nF=_s(mit);function aF(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function git(){const e=[],t={run:r,use:a};return t;function r(...u){let A=-1;const c=u.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);y(null,...u);function y(n,...s){const b=e[++A];let i=-1;if(n){c(n);return}for(;++i<u.length;)(s[i]===null||s[i]===void 0)&&(s[i]=u[i]);u=s,b?yit(b,y)(...s):c(null,...s)}}function a(u){if(typeof u!="function")throw new TypeError("Expected `middelware` to be a function, not "+u);return e.push(u),t}}function yit(e,t){let r;return a;function a(...c){const y=e.length>c.length;let n;y&&c.push(u);try{n=e.apply(this,c)}catch(s){const b=s;if(y&&r)throw b;return u(b)}y||(n&&n.then&&typeof n.then=="function"?n.then(A,u):n instanceof Error?u(n):A(n))}function u(c,...y){r||(r=!0,t(c,...y))}function A(c){u(null,c)}}const sm={basename:bit,dirname:xit,extname:_it,join:Eit,sep:"/"};function bit(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Q3(e);let r=0,a=-1,u=e.length,A;if(t===void 0||t.length===0||t.length>e.length){for(;u--;)if(e.codePointAt(u)===47){if(A){r=u+1;break}}else a<0&&(A=!0,a=u+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let c=-1,y=t.length-1;for(;u--;)if(e.codePointAt(u)===47){if(A){r=u+1;break}}else c<0&&(A=!0,c=u+1),y>-1&&(e.codePointAt(u)===t.codePointAt(y--)?y<0&&(a=u):(y=-1,a=c));return r===a?a=c:a<0&&(a=e.length),e.slice(r,a)}function xit(e){if(Q3(e),e.length===0)return".";let t=-1,r=e.length,a;for(;--r;)if(e.codePointAt(r)===47){if(a){t=r;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function _it(e){Q3(e);let t=e.length,r=-1,a=0,u=-1,A=0,c;for(;t--;){const y=e.codePointAt(t);if(y===47){if(c){a=t+1;break}continue}r<0&&(c=!0,r=t+1),y===46?u<0?u=t:A!==1&&(A=1):u>-1&&(A=-1)}return u<0||r<0||A===0||A===1&&u===r-1&&u===a+1?"":e.slice(u,r)}function Eit(...e){let t=-1,r;for(;++t<e.length;)Q3(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":Sit(r)}function Sit(e){Q3(e);const t=e.codePointAt(0)===47;let r=Tit(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Tit(e,t){let r="",a=0,u=-1,A=0,c=-1,y,n;for(;++c<=e.length;){if(c<e.length)y=e.codePointAt(c);else{if(y===47)break;y=47}if(y===47){if(!(u===c-1||A===1))if(u!==c-1&&A===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(n=r.lastIndexOf("/"),n!==r.length-1){n<0?(r="",a=0):(r=r.slice(0,n),a=r.length-1-r.lastIndexOf("/")),u=c,A=0;continue}}else if(r.length>0){r="",a=0,u=c,A=0;continue}}t&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(u+1,c):r=e.slice(u+1,c),a=c-u-1;u=c,A=0}else y===46&&A>-1?A++:A=-1}return r}function Q3(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wit={cwd:Ait};function Ait(){return"/"}function iF(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Cit(e){if(typeof e=="string")e=new URL(e);else if(!iF(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Rit(e)}function Rit(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const a=t.codePointAt(r+2);if(a===70||a===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}return decodeURIComponent(t)}const oF=["history","path","basename","stem","extname","dirname"];class rue{constructor(t){let r;t?iF(t)?r={path:t}:typeof t=="string"||Mit(t)?r={value:t}:r=t:r={},this.cwd=wit.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<oF.length;){const A=oF[a];A in r&&r[A]!==void 0&&r[A]!==null&&(this[A]=A==="history"?[...r[A]]:r[A])}let u;for(u in r)oF.includes(u)||(this[u]=r[u])}get basename(){return typeof this.path=="string"?sm.basename(this.path):void 0}set basename(t){lF(t,"basename"),sF(t,"basename"),this.path=sm.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?sm.dirname(this.path):void 0}set dirname(t){nue(this.basename,"dirname"),this.path=sm.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?sm.extname(this.path):void 0}set extname(t){if(sF(t,"extname"),nue(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=sm.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){iF(t)&&(t=Cit(t)),lF(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?sm.basename(this.path,this.extname):void 0}set stem(t){lF(t,"stem"),sF(t,"stem"),this.path=sm.join(this.dirname||"",t+(this.extname||""))}fail(t,r,a){const u=this.message(t,r,a);throw u.fatal=!0,u}info(t,r,a){const u=this.message(t,r,a);return u.fatal=void 0,u}message(t,r,a){const u=new Pf(t,r,a);return this.path&&(u.name=this.path+":"+u.name,u.file=this.path),u.fatal=!1,this.messages.push(u),u}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function sF(e,t){if(e&&e.includes(sm.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+sm.sep+"`")}function lF(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function nue(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Mit(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Iit=function(e){const a=this.constructor.prototype,u=a[e],A=function(){return u.apply(A,arguments)};return Object.setPrototypeOf(A,a),A},Oit={}.hasOwnProperty;class uF extends Iit{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=git()}copy(){const t=new uF;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];t.use(...a)}return t.data(nF(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(dF("data",this.frozen),this.namespace[t]=r,this):Oit.call(this.namespace,t)&&this.namespace[t]||void 0:t?(dF("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const u=r.call(t,...a);typeof u=="function"&&this.transformers.use(u)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=bM(t),a=this.parser||this.Parser;return cF("parse",a),a(String(r),r)}process(t,r){const a=this;return this.freeze(),cF("process",this.parser||this.Parser),fF("process",this.compiler||this.Compiler),r?u(void 0,r):new Promise(u);function u(A,c){const y=bM(t),n=a.parse(y);a.run(n,y,function(b,i,w){if(b||!i||!w)return s(b);const E=i,p=a.stringify(E,w);Dit(p)?w.value=p:w.result=p,s(b,w)});function s(b,i){b||!i?c(b):A?A(i):r(void 0,i)}}}processSync(t){let r=!1,a;return this.freeze(),cF("processSync",this.parser||this.Parser),fF("processSync",this.compiler||this.Compiler),this.process(t,u),iue("processSync","process",r),a;function u(A,c){r=!0,Kle(A),a=c}}run(t,r,a){aue(t),this.freeze();const u=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?A(void 0,a):new Promise(A);function A(c,y){const n=bM(r);u.run(t,n,s);function s(b,i,w){const E=i||t;b?y(b):c?c(E):a(void 0,E,w)}}}runSync(t,r){let a=!1,u;return this.run(t,r,A),iue("runSync","run",a),u;function A(c,y){Kle(c),u=y,a=!0}}stringify(t,r){this.freeze();const a=bM(r),u=this.compiler||this.Compiler;return fF("stringify",u),aue(t),u(t,a)}use(t,...r){const a=this.attachers,u=this.namespace;if(dF("use",this.frozen),t!=null)if(typeof t=="function")n(t,r);else if(typeof t=="object")Array.isArray(t)?y(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function A(s){if(typeof s=="function")n(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[b,...i]=s;n(b,i)}else c(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function c(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");y(s.plugins),s.settings&&(u.settings=nF(!0,u.settings,s.settings))}function y(s){let b=-1;if(s!=null)if(Array.isArray(s))for(;++b<s.length;){const i=s[b];A(i)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function n(s,b){let i=-1,w=-1;for(;++i<a.length;)if(a[i][0]===s){w=i;break}if(w===-1)a.push([s,...b]);else if(b.length>0){let[E,...p]=b;const _=a[w][1];aF(_)&&aF(E)&&(E=nF(!0,_,E)),a[w]=[s,E,...p]}}}}const Nit=new uF().freeze();function cF(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function fF(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function dF(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function aue(e){if(!aF(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function iue(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function bM(e){return Lit(e)?e:new rue(e)}function Lit(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Dit(e){return typeof e=="string"||Pit(e)}function Pit(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const kit="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",oue=[],sue={allowDangerousHtml:!0},Fit=/^(https?|ircs?|mailto|xmpp)$/i,Bit=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function zit(e){const t=e.allowedElements,r=e.allowElement,a=e.children||"",u=e.className,A=e.components,c=e.disallowedElements,y=e.rehypePlugins||oue,n=e.remarkPlugins||oue,s=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...sue}:sue,b=e.skipHtml,i=e.unwrapDisallowed,w=e.urlTransform||Uit,E=Nit().use(Eat).use(n).use(vit,s).use(y),p=new rue;typeof a=="string"&&(p.value=a);for(const d of Bit)Object.hasOwn(e,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+kit+d.id,void 0);const _=E.parse(p);let l=E.runSync(_,p);return u&&(l={type:"element",tagName:"div",properties:{className:u},children:l.type==="root"?l.children:[l]}),Z3(l,o),hrt(l,{Fragment:$e.Fragment,components:A,ignoreInvalidStyle:!0,jsx:$e.jsx,jsxs:$e.jsxs,passKeys:!0,passNode:!0});function o(d,f,h){if(d.type==="raw"&&h&&typeof f=="number")return b?h.children.splice(f,1):h.children[f]={type:"text",value:d.value},f;if(d.type==="element"){let g;for(g in $k)if(Object.hasOwn($k,g)&&Object.hasOwn(d.properties,g)){const v=d.properties[g],C=$k[g];(C===null||C.includes(d.tagName))&&(d.properties[g]=w(String(v||""),g,d))}}if(d.type==="element"){let g=t?!t.includes(d.tagName):c?c.includes(d.tagName):!1;if(!g&&r&&typeof f=="number"&&(g=!r(d,f,h)),g&&h&&typeof f=="number")return i&&d.children?h.children.splice(f,1,...d.children):h.children.splice(f,1),f}}}function Uit(e){const t=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),u=e.indexOf("/");return t<0||u>-1&&t>u||r>-1&&t>r||a>-1&&t>a||Fit.test(e.slice(0,t))?e:""}const lue=/[#.]/g;function Hit(e,t){const r=e||"",a={};let u=0,A,c;for(;u<r.length;){lue.lastIndex=u;const y=lue.exec(r),n=r.slice(u,y?y.index:r.length);n&&(A?A==="#"?a.id=n:Array.isArray(a.className)?a.className.push(n):a.className=[n]:c=n,u+=n.length),y&&(A=y[0],u++)}return{type:"element",tagName:c||t||"div",properties:a,children:[]}}const $it=new Set(["button","menu","reset","submit"]),hF={}.hasOwnProperty;function uue(e,t,r){const a=r&&Wit(r);function u(A,c,...y){let n=-1,s;if(A==null){s={type:"root",children:[]};const b=c;y.unshift(b)}else if(s=Hit(A,t),s.tagName=s.tagName.toLowerCase(),a&&hF.call(a,s.tagName)&&(s.tagName=a[s.tagName]),Git(c,s.tagName)){let b;for(b in c)hF.call(c,b)&&Vit(e,s.properties,b,c[b])}else y.unshift(c);for(;++n<y.length;)pF(s.children,y[n]);return s.type==="element"&&s.tagName==="template"&&(s.content={type:"root",children:s.children},s.children=[]),s}return u}function Git(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?$it.has(e.type.toLowerCase()):!("value"in e)}function Vit(e,t,r,a){const u=iM(e,r);let A=-1,c;if(a!=null){if(typeof a=="number"){if(Number.isNaN(a))return;c=a}else typeof a=="boolean"?c=a:typeof a=="string"?u.spaceSeparated?c=jse(a):u.commaSeparated?c=Lse(a):u.commaOrSpaceSeparated?c=jse(Lse(a).join(" ")):c=cue(u,u.property,a):Array.isArray(a)?c=a.concat():c=u.property==="style"?Yit(a):String(a);if(Array.isArray(c)){const y=[];for(;++A<c.length;){const n=cue(u,u.property,c[A]);y[A]=n}c=y}if(u.property==="className"&&Array.isArray(t.className)){const y=c;c=t.className.concat(y)}t[u.property]=c}}function pF(e,t){let r=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++r<t.length;)pF(e,t[r]);else if(typeof t=="object"&&"type"in t)t.type==="root"?pF(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function cue(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||H3(r)===H3(t)))return!0}return r}function Yit(e){const t=[];let r;for(r in e)hF.call(e,r)&&t.push([r,e[r]].join(": "));return t.join("; ")}function Wit(e){const t={};let r=-1;for(;++r<e.length;)t[e[r].toLowerCase()]=e[r];return t}const jit=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],fue=uue($3,"div"),due=uue(Z1,"g",jit),lm={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Kit(e,t){return hue(e,t||{})||{type:"root",children:[]}}function hue(e,t){const r=Xit(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function Xit(e,t){switch(e.nodeType){case 1:return qit(e,t);case 3:return Qit(e);case 8:return Jit(e);case 9:return pue(e,t);case 10:return Zit();case 11:return pue(e,t);default:return}}function pue(e,t){return{type:"root",children:vue(e,t)}}function Zit(){return{type:"doctype"}}function Qit(e){return{type:"text",value:e.nodeValue||""}}function Jit(e){return{type:"comment",value:e.nodeValue||""}}function qit(e,t){const r=e.namespaceURI,a=r===lm.svg?due:fue,u=r===lm.html?e.tagName.toLowerCase():e.tagName,A=r===lm.html&&u==="template"?e.content:e,c=e.getAttributeNames(),y={};let n=-1;for(;++n<c.length;)y[c[n]]=e.getAttribute(c[n])||"";return a(u,y,vue(A,t))}function vue(e,t){const r=e.childNodes,a=[];let u=-1;for(;++u<r.length;){const A=hue(r[u],t);A!==void 0&&a.push(A)}return a}const eot=new DOMParser;function tot(e,t){const r=t!=null&&t.fragment?rot(e):eot.parseFromString(e,"text/html");return Kit(r)}function rot(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const mue=function(e,t,r){const a=X3(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(a(e.children[t],t,e))return e.children[t]},ub=function(e){if(e==null)return iot;if(typeof e=="string")return aot(e);if(typeof e=="object")return not(e);if(typeof e=="function")return vF(e);throw new Error("Expected function, string, or array as `test`")};function not(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=ub(e[r]);return vF(a);function a(...u){let A=-1;for(;++A<t.length;)if(t[A].apply(this,u))return!0;return!1}}function aot(e){return vF(t);function t(r){return r.tagName===e}}function vF(e){return t;function t(r,a,u){return!!(oot(r)&&e.call(this,r,typeof a=="number"?a:void 0,u||void 0))}}function iot(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function oot(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const gue=/\n/g,yue=/[\t ]+/g,mF=ub("br"),bue=ub(pot),sot=ub("p"),xue=ub("tr"),lot=ub(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",hot,vot]),_ue=ub(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function uot(e,t){const r=t||{},a="children"in e?e.children:[],u=_ue(e),A=Tue(e,{whitespace:r.whitespace||"normal",breakBefore:!1,breakAfter:!1}),c=[];(e.type==="text"||e.type==="comment")&&c.push(...Sue(e,{whitespace:A,breakBefore:!0,breakAfter:!0}));let y=-1;for(;++y<a.length;)c.push(...Eue(a[y],e,{whitespace:A,breakBefore:y?void 0:u,breakAfter:y<a.length-1?mF(a[y+1]):u}));const n=[];let s;for(y=-1;++y<c.length;){const b=c[y];typeof b=="number"?s!==void 0&&b>s&&(s=b):b&&(s!==void 0&&s>-1&&n.push(`
|
|
386
386
|
`.repeat(s)||" "),s=-1,n.push(b))}return n.join("")}function Eue(e,t,r){return e.type==="element"?cot(e,t,r):e.type==="text"?r.whitespace==="normal"?Sue(e,r):fot(e):[]}function cot(e,t,r){const a=Tue(e,r),u=e.children||[];let A=-1,c=[];if(lot(e))return c;let y,n;for(mF(e)||xue(e)&&mue(t,e,xue)?n=`
|
|
387
387
|
`:sot(e)?(y=2,n=2):_ue(e)&&(y=1,n=1);++A<u.length;)c=c.concat(Eue(u[A],e,{whitespace:a,breakBefore:A?void 0:y,breakAfter:A<u.length-1?mF(u[A+1]):n}));return bue(e)&&mue(t,e,bue)&&c.push(" "),y&&c.unshift(y),n&&c.push(n),c}function Sue(e,t){const r=String(e.value),a=[],u=[];let A=0;for(;A<=r.length;){gue.lastIndex=A;const n=gue.exec(r),s=n&&"index"in n?n.index:r.length;a.push(dot(r.slice(A,s).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),A===0?t.breakBefore:!0,s===r.length?t.breakAfter:!0)),A=s+1}let c=-1,y;for(;++c<a.length;)a[c].charCodeAt(a[c].length-1)===8203||c<a.length-1&&a[c+1].charCodeAt(0)===8203?(u.push(a[c]),y=void 0):a[c]?(typeof y=="number"&&u.push(y),u.push(a[c]),y=0):(c===0||c===a.length-1)&&u.push(0);return u}function fot(e){return[String(e.value)]}function dot(e,t,r){const a=[];let u=0,A;for(;u<e.length;){yue.lastIndex=u;const c=yue.exec(e);A=c?c.index:e.length,!u&&!A&&c&&!t&&a.push(""),u!==A&&a.push(e.slice(u,A)),u=c?A+c[0].length:A}return u!==A&&!r&&a.push(""),a.join(" ")}function Tue(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function hot(e){return!!(e.properties||{}).hidden}function pot(e){return e.tagName==="td"||e.tagName==="th"}function vot(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class qh{constructor(t,r,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=a}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new qh(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class i0{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new i0(r,qh.range(this,t))}}class li{constructor(t,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+t,u,A,c=r&&r.loc;if(c&&c.start<=c.end){var y=c.lexer.input;u=c.start,A=c.end,u===y.length?a+=" at end of input: ":a+=" at position "+(u+1)+": ";var n=y.slice(u,A).replace(/[^]/g,"$&̲"),s;u>15?s="…"+y.slice(u-15,u):s=y.slice(0,u);var b;A+15<y.length?b=y.slice(A,A+15)+"…":b=y.slice(A),a+=s+n+b}var i=new Error(a);return i.name="ParseError",i.__proto__=li.prototype,i.position=u,u!=null&&A!=null&&(i.length=A-u),i.rawMessage=t,i}}li.prototype.__proto__=Error.prototype;var mot=function(t,r){return t.indexOf(r)!==-1},got=function(t,r){return t===void 0?r:t},yot=/([A-Z])/g,bot=function(t){return t.replace(yot,"-$1").toLowerCase()},xot={"&":"&",">":">","<":"<",'"':""","'":"'"},_ot=/[&><"']/g;function Eot(e){return String(e).replace(_ot,t=>xot[t])}var wue=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},Sot=function(t){var r=wue(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},Tot=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},wot=function(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},qi={contains:mot,deflt:got,escape:Eot,hyphenate:bot,getBaseElem:wue,isCharacterBox:Sot,protocolFromUrl:wot},xM={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function Aot(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class gF{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in xM)if(xM.hasOwnProperty(r)){var a=xM[r];this[r]=t[r]!==void 0?a.processor?a.processor(t[r]):t[r]:Aot(a)}}reportNonstrict(t,r,a){var u=this.strict;if(typeof u=="function"&&(u=u(t,r,a)),!(!u||u==="ignore")){if(u===!0||u==="error")throw new li("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),a);u==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+u+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,a){var u=this.strict;if(typeof u=="function")try{u=u(t,r,a)}catch{u="error"}return!u||u==="ignore"?!1:u===!0||u==="error"?!0:u==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+u+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var r=qi.protocolFromUrl(t.url);if(r==null)return!1;t.protocol=r}var a=typeof this.trust=="function"?this.trust(t):this.trust;return!!a}}class q1{constructor(t,r,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=a}sup(){return um[Cot[this.id]]}sub(){return um[Rot[this.id]]}fracNum(){return um[Mot[this.id]]}fracDen(){return um[Iot[this.id]]}cramp(){return um[Oot[this.id]]}text(){return um[Not[this.id]]}isTight(){return this.size>=2}}var yF=0,_M=1,K_=2,gg=3,J3=4,o0=5,X_=6,vd=7,um=[new q1(yF,0,!1),new q1(_M,0,!0),new q1(K_,1,!1),new q1(gg,1,!0),new q1(J3,2,!1),new q1(o0,2,!0),new q1(X_,3,!1),new q1(vd,3,!0)],Cot=[J3,o0,J3,o0,X_,vd,X_,vd],Rot=[o0,o0,o0,o0,vd,vd,vd,vd],Mot=[K_,gg,J3,o0,X_,vd,X_,vd],Iot=[gg,gg,o0,o0,vd,vd,vd,vd],Oot=[_M,_M,gg,gg,o0,o0,vd,vd],Not=[yF,_M,K_,gg,K_,gg,K_,gg],ao={DISPLAY:um[yF],TEXT:um[K_],SCRIPT:um[J3],SCRIPTSCRIPT:um[X_]},bF=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Lot(e){for(var t=0;t<bF.length;t++)for(var r=bF[t],a=0;a<r.blocks.length;a++){var u=r.blocks[a];if(e>=u[0]&&e<=u[1])return r.name}return null}var EM=[];bF.forEach(e=>e.blocks.forEach(t=>EM.push(...t)));function Aue(e){for(var t=0;t<EM.length;t+=2)if(e>=EM[t]&&e<=EM[t+1])return!0;return!1}var Z_=80,Dot=function(t,r){return"M95,"+(622+t+r)+`
|
|
388
388
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as P,r as v,u as D,a as O}from"./index-
|
|
1
|
+
import{g as P,r as v,u as D,a as O}from"./index-621140f9.js";function b(t,e){for(var r=0;r<e.length;r++){const o=e[r];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in t)){const i=Object.getOwnPropertyDescriptor(o,a);i&&Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:()=>o[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const g=u.player;this.player=new g(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:m=>a(m)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),I=b({__proto__:null,default:R},[_]);export{I as D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as _,r as g,u as P,a as m}from"./index-
|
|
1
|
+
import{g as _,r as g,u as P,a as m}from"./index-621140f9.js";function v(t,e){for(var r=0;r<e.length;r++){const a=e[r];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in t)){const p=Object.getOwnPropertyDescriptor(a,s);p&&Object.defineProperty(t,s,p.get?p:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",y="FB",f="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,y,f).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,y,f).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),B=v({__proto__:null,default:M},[d]);export{B as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as b,r as _,u as O,a as A}from"./index-
|
|
1
|
+
import{g as b,r as _,u as O,a as A}from"./index-621140f9.js";function R(s,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&&!Array.isArray(i)){for(const n in i)if(n!=="default"&&!(n in s)){const l=Object.getOwnPropertyDescriptor(i,n);l&&Object.defineProperty(s,n,l.get?l:{enumerable:!0,get:()=>i[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),J=R({__proto__:null,default:z},[g]);export{J as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as y,r as f,u as _,a as m}from"./index-
|
|
1
|
+
import{g as y,r as f,u as _,a as m}from"./index-621140f9.js";function P(r,e){for(var t=0;t<e.length;t++){const s=e[t];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in r)){const l=Object.getOwnPropertyDescriptor(s,a);l&&Object.defineProperty(r,a,l.get?l:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(s=b(e,a))||s.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),o=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}o(i,"displayName","Kaltura");o(i,"canPlay",S.canPlay.kaltura);const M=y(d),C=P({__proto__:null,default:M},[d]);export{C as K};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as _,r as f,u as m,a as g}from"./index-
|
|
1
|
+
import{g as _,r as f,u as m,a as g}from"./index-621140f9.js";function v(t,e){for(var r=0;r<e.length;r++){const s=e[r];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in t)){const n=Object.getOwnPropertyDescriptor(s,o);n&&Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),p=D(f),u=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",u.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,u.queryString)({...r.options,feed:`/${s}/`});return p.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),A=v({__proto__:null,default:T},[h]);export{A as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as m,_ as E,r as g,a as _}from"./index-
|
|
1
|
+
import{g as m,_ as E,r as g,a as _}from"./index-621140f9.js";function b(r,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in r)){const o=Object.getOwnPropertyDescriptor(i,s);o&&Object.defineProperty(r,s,o.get?o:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var L=Object.create,u=Object.defineProperty,I=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,O=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,M=(r,e,t)=>e in r?u(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,R=(r,e)=>{for(var t in e)u(r,t,{get:e[t],enumerable:!0})},f=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of k(e))!x.call(r,s)&&s!==t&&u(r,s,{get:()=>e[s],enumerable:!(i=I(e,s))||i.enumerable});return r},w=(r,e,t)=>(t=r!=null?L(O(r)):{},f(e||!r||!r.__esModule?u(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>f(u({},"__esModule",{value:!0}),r),n=(r,e,t)=>(M(r,typeof e!="symbol"?e+"":e,t),t),y={};R(y,{default:()=>l});var P=D(y),v=w(g),p=_;const j="https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";class l extends v.Component{constructor(){super(...arguments),n(this,"onReady",(...e)=>this.props.onReady(...e)),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),n(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onError",(...e)=>this.props.onError(...e)),n(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),n(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),n(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.player.muted=!0}),n(this,"unmute",()=>{this.player.muted=!1}),n(this,"ref",e=>{this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getPlaybackId(this.props.url);e&&(this.player.playbackId=e)}componentWillUnmount(){this.player.playbackId=null,this.removeListeners(this.player)}addListeners(e){const{playsinline:t}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),e.addEventListener("canplay",this.onReady),t&&e.setAttribute("playsinline","")}removeListeners(e){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("canplay",this.onReady)}async load(e){var t;const{onError:i,config:s}=this.props;if(!((t=globalThis.customElements)!=null&&t.get("mux-player")))try{const a=j.replace("VERSION",s.version);await E(()=>import(`${a}`),[]),this.props.onLoaded()}catch(a){i(a)}const[,o]=e.match(p.MATCH_URL_MUX);this.player.playbackId=o}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.playbackId=null}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player&&this.player.requestPictureInPicture()}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player&&document.exitPictureInPicture()}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getPlaybackId(e){const[,t]=e.match(p.MATCH_URL_MUX);return t}render(){const{url:e,playing:t,loop:i,controls:s,muted:o,config:a,width:h,height:c}=this.props,d={width:h==="auto"?h:"100%",height:c==="auto"?c:"100%"};return s===!1&&(d["--controls"]="none"),v.default.createElement("mux-player",{ref:this.ref,"playback-id":this.getPlaybackId(e),style:d,preload:"auto",autoPlay:t||void 0,muted:o?"":void 0,loop:i?"":void 0,...a.attributes})}}n(l,"displayName","Mux");n(l,"canPlay",p.canPlay.mux);const C=m(P),B=b({__proto__:null,default:C},[P]);export{B as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as y,r as v}from"./index-
|
|
1
|
+
import{g as y,r as v}from"./index-621140f9.js";function w(r,e){for(var t=0;t<e.length;t++){const n=e[t];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in r)){const o=Object.getOwnPropertyDescriptor(n,a);o&&Object.defineProperty(r,a,o.get?o:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,s=Object.defineProperty,O=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,I=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,E=(r,e,t)=>e in r?s(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,S=(r,e)=>{for(var t in e)s(r,t,{get:e[t],enumerable:!0})},_=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of x(e))!j.call(r,a)&&a!==t&&s(r,a,{get:()=>e[a],enumerable:!(n=O(e,a))||n.enumerable});return r},C=(r,e,t)=>(t=r!=null?P(I(r)):{},_(e||!r||!r.__esModule?s(t,"default",{value:r,enumerable:!0}):t,r)),N=r=>_(s({},"__esModule",{value:!0}),r),p=(r,e,t)=>(E(r,typeof e!="symbol"?e+"":e,t),t),g={};S(g,{default:()=>k});var m=N(g),i=C(v);const u="64px",d={};class k extends i.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!i.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a,previewAriaLabel:o}=this.props,{image:f}=this.state,l=i.default.isValidElement(e),h={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:f&&!l?`url(${f})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...h},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...h},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},b=i.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},i.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return i.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress,...o?{"aria-label":o}:{}},l?e:null,n||b)}}const D=y(m),A=w({__proto__:null,default:D},[m]);export{A as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as P,r as g,u as b,a as v}from"./index-
|
|
1
|
+
import{g as P,r as g,u as b,a as v}from"./index-621140f9.js";function O(t,e){for(var r=0;r<e.length;r++){const s=e[r];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(s,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),F=O({__proto__:null,default:N},[f]);export{F as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as m,r as f,u as _,a as b}from"./index-
|
|
1
|
+
import{g as m,r as f,u as _,a as b}from"./index-621140f9.js";function P(t,e){for(var r=0;r<e.length;r++){const s=e[r];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in t)){const n=Object.getOwnPropertyDescriptor(s,a);n&&Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),C=P({__proto__:null,default:x},[y]);export{C as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as w,r as D,u as C,a as N}from"./index-
|
|
1
|
+
import{g as w,r as D,u as C,a as N}from"./index-621140f9.js";function I(t,e){for(var r=0;r<e.length;r++){const s=e[r];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in t)){const o=Object.getOwnPropertyDescriptor(s,a);o&&Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),n=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:o,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...o.options});const{READY:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}n(h,"displayName","Twitch");n(h,"canPlay",u.canPlay.twitch);n(h,"loopOnEnded",!0);const W=w(f),G=I({__proto__:null,default:W},[f]);export{G as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as m,r as v,u as b,a as O}from"./index-
|
|
1
|
+
import{g as m,r as v,u as b,a as O}from"./index-621140f9.js";function V(t,e){for(var r=0;r<e.length;r++){const s=e[r];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in t)){const n=Object.getOwnPropertyDescriptor(s,a);n&&Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),o(this,"callPlayer",d.callPlayer),o(this,"mute",()=>{this.setVolume(0)}),o(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:s,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,g)=>{this.player||(this.player=g,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...s.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}o(y,"displayName","Vidyard");o(y,"canPlay",P.canPlay.vidyard);const T=m(f),K=V({__proto__:null,default:T},[f]);export{K as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as d,r as f,u as m,a as _}from"./index-
|
|
1
|
+
import{g as d,r as f,u as m,a as _}from"./index-621140f9.js";function P(t,e){for(var r=0;r<e.length;r++){const a=e[r];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in t)){const s=Object.getOwnPropertyDescriptor(a,o);s&&Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),C=P({__proto__:null,default:T},[y]);export{C as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g,r as m,u as v,a as w}from"./index-
|
|
1
|
+
import{g,r as m,u as v,a as w}from"./index-621140f9.js";function O(t,e){for(var a=0;a<e.length;a++){const s=e[a];if(typeof s!="string"&&!Array.isArray(s)){for(const r in s)if(r!=="default"&&!(r in t)){const o=Object.getOwnPropertyDescriptor(s,r);o&&Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>s[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(m),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=g(_),T=O({__proto__:null,default:L},[_]);export{T as W};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as U,r as I,u as L,a as Y}from"./index-
|
|
1
|
+
import{g as U,r as I,u as L,a as Y}from"./index-621140f9.js";function k(a,e){for(var t=0;t<e.length;t++){const s=e[t];if(typeof s!="string"&&!Array.isArray(s)){for(const r in s)if(r!=="default"&&!(r in a)){const n=Object.getOwnPropertyDescriptor(s,r);n&&Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:()=>s[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),b=F(I),c=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,m=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends b.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(m.test(e)){const[,t]=e.match(m);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:p,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===p&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||m.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,c.parseStartTime)(e)||l.start,endSeconds:(0,c.parseEndTime)(e)||l.end});return}(0,c.getSDK)(G,T,z,p=>p.loaded).then(p=>{this.container&&(this.player=new p.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,c.parseStartTime)(e),end:(0,c.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return b.default.createElement("div",{style:t},b.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),q=k({__proto__:null,default:$},[S]);export{q as Y};
|