zyjj-web-sdk 1.1.2 → 1.1.3

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.
Files changed (23) hide show
  1. package/lib/{APlayer.min-cYakPUtE.js → APlayer.min-C6eUvo87.js} +1 -1
  2. package/lib/{DPlayer.min-6i8RTupf.js → DPlayer.min--N3EyiyZ.js} +1 -1
  3. package/lib/{ElementTypeAlert-BN8F6PHX.js → ElementTypeAlert-D2XUeyVu.js} +1 -1
  4. package/lib/{ElementTypeAudio-CpOL1JSg.js → ElementTypeAudio-C6tNX7KG.js} +3 -3
  5. package/lib/{ElementTypeImage-CK4q6bI7.js → ElementTypeImage-DgwJWSdq.js} +2 -2
  6. package/lib/{ElementTypeImageList-DQon_M46.js → ElementTypeImageList-BUekmsgR.js} +2 -2
  7. package/lib/{ElementTypeInput-Mx1txBsc.js → ElementTypeInput-ho3VTwUY.js} +1 -1
  8. package/lib/{ElementTypeNumber-Be9gUlCJ.js → ElementTypeNumber-DOQ4eZUg.js} +1 -1
  9. package/lib/{ElementTypeSelect-TTtjEVOj.js → ElementTypeSelect-Dw7dRxZx.js} +1 -1
  10. package/lib/{ElementTypeText-ByyMD0FT.js → ElementTypeText-0IpMkUzr.js} +3 -3
  11. package/lib/{ElementTypeTextArea-CE2X9ol7.js → ElementTypeTextArea-D75agq-U.js} +1 -1
  12. package/lib/{ElementTypeUpload-O411cbP7.js → ElementTypeUpload-Chc6ZFsh.js} +1 -1
  13. package/lib/{ElementTypeVideo-D-c4fzS7.js → ElementTypeVideo-CFoEKGuu.js} +3 -3
  14. package/lib/api/api.d.ts +1 -0
  15. package/lib/{common-fg-GJh8W.js → common-aHiRc_Z1.js} +1 -1
  16. package/lib/{index-oS0LMsZ4.js → index-BIMdL_-7.js} +745 -727
  17. package/lib/{index-4CgKoZea.js → index-R1icPDui.js} +2 -2
  18. package/lib/index.d.ts +15 -6
  19. package/lib/index.js +1 -1
  20. package/lib/index.umd.cjs +46 -46
  21. package/lib/tool/utils.d.ts +8 -1
  22. package/lib/types/local-task.d.ts +4 -2
  23. package/package.json +3 -1
package/lib/index.umd.cjs CHANGED
@@ -1,9 +1,9 @@
1
- (function(Ne,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("@arco-design/web-react"),require("mqtt"),require("react"),require("cos-js-sdk-v5")):typeof define=="function"&&define.amd?define(["exports","@arco-design/web-react","mqtt","react","cos-js-sdk-v5"],te):(Ne=typeof globalThis<"u"?globalThis:Ne||self,te(Ne["zyjj-web-sdk"]={},Ne["@arco-design/web-react"],Ne.mqtt,Ne.react,Ne["cos-js-sdk-v5"]))})(this,function(Ne,te,mt,re,Kc){"use strict";var bx=Object.defineProperty;var vx=(Ne,te,mt)=>te in Ne?bx(Ne,te,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Ne[te]=mt;var Ea=(Ne,te,mt)=>vx(Ne,typeof te!="symbol"?te+"":te,mt);function Ca(e,n){for(var t=0;t<n.length;t++){const r=n[t];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Sa(e,n){return function(){return e.apply(n,arguments)}}const{toString:Qc}=Object.prototype,{getPrototypeOf:gi}=Object,Er=(e=>n=>{const t=Qc.call(n);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Cn=e=>(e=e.toLowerCase(),n=>Er(n)===e),Cr=e=>n=>typeof n===e,{isArray:yt}=Array,Lt=Cr("undefined");function Jc(e){return e!==null&&!Lt(e)&&e.constructor!==null&&!Lt(e.constructor)&&mn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ba=Cn("ArrayBuffer");function Zc(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&Ba(e.buffer),n}const Xc=Cr("string"),mn=Cr("function"),Ia=Cr("number"),Sr=e=>e!==null&&typeof e=="object",Gc=e=>e===!0||e===!1,Br=e=>{if(Er(e)!=="object")return!1;const n=gi(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ep=Cn("Date"),np=Cn("File"),tp=Cn("Blob"),rp=Cn("FileList"),ip=e=>Sr(e)&&mn(e.pipe),op=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||mn(e.append)&&((n=Er(e))==="formdata"||n==="object"&&mn(e.toString)&&e.toString()==="[object FormData]"))},ap=Cn("URLSearchParams"),lp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jt(e,n,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),yt(e))for(r=0,i=e.length;r<i;r++)n.call(null,e[r],r,e);else{const a=t?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let l;for(r=0;r<o;r++)l=a[r],n.call(null,e[l],l,e)}}function Oa(e,n){n=n.toLowerCase();const t=Object.keys(e);let r=t.length,i;for(;r-- >0;)if(i=t[r],n===i.toLowerCase())return i;return null}const Pa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_a=e=>!Lt(e)&&e!==Pa;function bi(){const{caseless:e}=_a(this)&&this||{},n={},t=(r,i)=>{const a=e&&Oa(n,i)||i;Br(n[a])&&Br(r)?n[a]=bi(n[a],r):Br(r)?n[a]=bi({},r):yt(r)?n[a]=r.slice():n[a]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&jt(arguments[r],t);return n}const sp=(e,n,t,{allOwnKeys:r}={})=>(jt(n,(i,a)=>{t&&mn(i)?e[a]=Sa(i,t):e[a]=i},{allOwnKeys:r}),e),up=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),cp=(e,n,t,r)=>{e.prototype=Object.create(n.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),t&&Object.assign(e.prototype,t)},pp=(e,n,t,r)=>{let i,a,o;const l={};if(n=n||{},e==null)return n;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,n))&&!l[o]&&(n[o]=e[o],l[o]=!0);e=t!==!1&&gi(e)}while(e&&(!t||t(e,n))&&e!==Object.prototype);return n},dp=(e,n,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=n.length;const r=e.indexOf(n,t);return r!==-1&&r===t},fp=e=>{if(!e)return null;if(yt(e))return e;let n=e.length;if(!Ia(n))return null;const t=new Array(n);for(;n-- >0;)t[n]=e[n];return t},hp=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&gi(Uint8Array)),mp=(e,n)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;n.call(e,a[0],a[1])}},yp=(e,n)=>{let t;const r=[];for(;(t=e.exec(n))!==null;)r.push(t);return r},Ap=Cn("HTMLFormElement"),gp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,i){return r.toUpperCase()+i}),Ta=(({hasOwnProperty:e})=>(n,t)=>e.call(n,t))(Object.prototype),bp=Cn("RegExp"),La=(e,n)=>{const t=Object.getOwnPropertyDescriptors(e),r={};jt(t,(i,a)=>{let o;(o=n(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},vp=e=>{La(e,(n,t)=>{if(mn(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=e[t];if(mn(r)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},xp=(e,n)=>{const t={},r=i=>{i.forEach(a=>{t[a]=!0})};return yt(e)?r(e):r(String(e).split(n)),t},wp=()=>{},kp=(e,n)=>(e=+e,Number.isFinite(e)?e:n),vi="abcdefghijklmnopqrstuvwxyz",ja="0123456789",Da={DIGIT:ja,ALPHA:vi,ALPHA_DIGIT:vi+vi.toUpperCase()+ja},Ep=(e=16,n=Da.ALPHA_DIGIT)=>{let t="";const{length:r}=n;for(;e--;)t+=n[Math.random()*r|0];return t};function Cp(e){return!!(e&&mn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Sp=e=>{const n=new Array(10),t=(r,i)=>{if(Sr(r)){if(n.indexOf(r)>=0)return;if(!("toJSON"in r)){n[i]=r;const a=yt(r)?[]:{};return jt(r,(o,l)=>{const s=t(o,i+1);!Lt(s)&&(a[l]=s)}),n[i]=void 0,a}}return r};return t(e,0)},Bp=Cn("AsyncFunction"),U={isArray:yt,isArrayBuffer:Ba,isBuffer:Jc,isFormData:op,isArrayBufferView:Zc,isString:Xc,isNumber:Ia,isBoolean:Gc,isObject:Sr,isPlainObject:Br,isUndefined:Lt,isDate:ep,isFile:np,isBlob:tp,isRegExp:bp,isFunction:mn,isStream:ip,isURLSearchParams:ap,isTypedArray:hp,isFileList:rp,forEach:jt,merge:bi,extend:sp,trim:lp,stripBOM:up,inherits:cp,toFlatObject:pp,kindOf:Er,kindOfTest:Cn,endsWith:dp,toArray:fp,forEachEntry:mp,matchAll:yp,isHTMLForm:Ap,hasOwnProperty:Ta,hasOwnProp:Ta,reduceDescriptors:La,freezeMethods:vp,toObjectSet:xp,toCamelCase:gp,noop:wp,toFiniteNumber:kp,findKey:Oa,global:Pa,isContextDefined:_a,ALPHABET:Da,generateString:Ep,isSpecCompliantForm:Cp,toJSONObject:Sp,isAsyncFn:Bp,isThenable:e=>e&&(Sr(e)||mn(e))&&mn(e.then)&&mn(e.catch)};function Ce(e,n,t,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),t&&(this.config=t),r&&(this.request=r),i&&(this.response=i)}U.inherits(Ce,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:U.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ma=Ce.prototype,za={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{za[e]={value:e}}),Object.defineProperties(Ce,za),Object.defineProperty(Ma,"isAxiosError",{value:!0}),Ce.from=(e,n,t,r,i,a)=>{const o=Object.create(Ma);return U.toFlatObject(e,o,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),Ce.call(o,e.message,n,t,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const Ip=null;function xi(e){return U.isPlainObject(e)||U.isArray(e)}function Fa(e){return U.endsWith(e,"[]")?e.slice(0,-2):e}function Ra(e,n,t){return e?e.concat(n).map(function(i,a){return i=Fa(i),!t&&a?"["+i+"]":i}).join(t?".":""):n}function Op(e){return U.isArray(e)&&!e.some(xi)}const Pp=U.toFlatObject(U,{},null,function(n){return/^is[A-Z]/.test(n)});function Ir(e,n,t){if(!U.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,t=U.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,S){return!U.isUndefined(S[v])});const r=t.metaTokens,i=t.visitor||h,a=t.dots,o=t.indexes,s=(t.Blob||typeof Blob<"u"&&Blob)&&U.isSpecCompliantForm(n);if(!U.isFunction(i))throw new TypeError("visitor must be a function");function c(b){if(b===null)return"";if(U.isDate(b))return b.toISOString();if(!s&&U.isBlob(b))throw new Ce("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(b)||U.isTypedArray(b)?s&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,v,S){let O=b;if(b&&!S&&typeof b=="object"){if(U.endsWith(v,"{}"))v=r?v:v.slice(0,-2),b=JSON.stringify(b);else if(U.isArray(b)&&Op(b)||(U.isFileList(b)||U.endsWith(v,"[]"))&&(O=U.toArray(b)))return v=Fa(v),O.forEach(function(T,j){!(U.isUndefined(T)||T===null)&&n.append(o===!0?Ra([v],j,a):o===null?v:v+"[]",c(T))}),!1}return xi(b)?!0:(n.append(Ra(S,v,a),c(b)),!1)}const u=[],f=Object.assign(Pp,{defaultVisitor:h,convertValue:c,isVisitable:xi});function A(b,v){if(!U.isUndefined(b)){if(u.indexOf(b)!==-1)throw Error("Circular reference detected in "+v.join("."));u.push(b),U.forEach(b,function(O,B){(!(U.isUndefined(O)||O===null)&&i.call(n,O,U.isString(B)?B.trim():B,v,f))===!0&&A(O,v?v.concat(B):[B])}),u.pop()}}if(!U.isObject(e))throw new TypeError("data must be an object");return A(e),n}function Na(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return n[r]})}function wi(e,n){this._pairs=[],e&&Ir(e,this,n)}const qa=wi.prototype;qa.append=function(n,t){this._pairs.push([n,t])},qa.toString=function(n){const t=n?function(r){return n.call(this,r,Na)}:Na;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};function _p(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ua(e,n,t){if(!n)return e;const r=t&&t.encode||_p,i=t&&t.serialize;let a;if(i?a=i(n,t):a=U.isURLSearchParams(n)?n.toString():new wi(n,t).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Ha{constructor(){this.handlers=[]}use(n,t,r){return this.handlers.push({fulfilled:n,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){U.forEach(this.handlers,function(r){r!==null&&n(r)})}}const $a={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tp={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:wi,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Wa=typeof window<"u"&&typeof document<"u",Lp=(e=>Wa&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),jp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wa,hasStandardBrowserEnv:Lp,hasStandardBrowserWebWorkerEnv:jp},Symbol.toStringTag,{value:"Module"})),...Tp};function Dp(e,n){return Ir(e,new Sn.classes.URLSearchParams,Object.assign({visitor:function(t,r,i,a){return Sn.isNode&&U.isBuffer(t)?(this.append(r,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},n))}function Mp(e){return U.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function zp(e){const n={},t=Object.keys(e);let r;const i=t.length;let a;for(r=0;r<i;r++)a=t[r],n[a]=e[a];return n}function Ya(e){function n(t,r,i,a){let o=t[a++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),s=a>=t.length;return o=!o&&U.isArray(i)?i.length:o,s?(U.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!l):((!i[o]||!U.isObject(i[o]))&&(i[o]=[]),n(t,r,i[o],a)&&U.isArray(i[o])&&(i[o]=zp(i[o])),!l)}if(U.isFormData(e)&&U.isFunction(e.entries)){const t={};return U.forEachEntry(e,(r,i)=>{n(Mp(r),i,t,0)}),t}return null}function Fp(e,n,t){if(U.isString(e))try{return(n||JSON.parse)(e),U.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Dt={transitional:$a,adapter:["xhr","http"],transformRequest:[function(n,t){const r=t.getContentType()||"",i=r.indexOf("application/json")>-1,a=U.isObject(n);if(a&&U.isHTMLForm(n)&&(n=new FormData(n)),U.isFormData(n))return i?JSON.stringify(Ya(n)):n;if(U.isArrayBuffer(n)||U.isBuffer(n)||U.isStream(n)||U.isFile(n)||U.isBlob(n))return n;if(U.isArrayBufferView(n))return n.buffer;if(U.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Dp(n,this.formSerializer).toString();if((l=U.isFileList(n))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Ir(l?{"files[]":n}:n,s&&new s,this.formSerializer)}}return a||i?(t.setContentType("application/json",!1),Fp(n)):n}],transformResponse:[function(n){const t=this.transitional||Dt.transitional,r=t&&t.forcedJSONParsing,i=this.responseType==="json";if(n&&U.isString(n)&&(r&&!this.responseType||i)){const o=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(l){if(o)throw l.name==="SyntaxError"?Ce.from(l,Ce.ERR_BAD_RESPONSE,this,null,this.response):l}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Sn.classes.FormData,Blob:Sn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],e=>{Dt.headers[e]={}});const Rp=U.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Np=e=>{const n={};let t,r,i;return e&&e.split(`
2
- `).forEach(function(o){i=o.indexOf(":"),t=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!t||n[t]&&Rp[t])&&(t==="set-cookie"?n[t]?n[t].push(r):n[t]=[r]:n[t]=n[t]?n[t]+", "+r:r)}),n},Va=Symbol("internals");function Mt(e){return e&&String(e).trim().toLowerCase()}function Or(e){return e===!1||e==null?e:U.isArray(e)?e.map(Or):String(e)}function qp(e){const n=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(e);)n[r[1]]=r[2];return n}const Up=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ki(e,n,t,r,i){if(U.isFunction(r))return r.call(this,n,t);if(i&&(n=t),!!U.isString(n)){if(U.isString(r))return n.indexOf(r)!==-1;if(U.isRegExp(r))return r.test(n)}}function Hp(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,t,r)=>t.toUpperCase()+r)}function $p(e,n){const t=U.toCamelCase(" "+n);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+t,{value:function(i,a,o){return this[r].call(this,n,i,a,o)},configurable:!0})})}class yn{constructor(n){n&&this.set(n)}set(n,t,r){const i=this;function a(l,s,c){const h=Mt(s);if(!h)throw new Error("header name must be a non-empty string");const u=U.findKey(i,h);(!u||i[u]===void 0||c===!0||c===void 0&&i[u]!==!1)&&(i[u||s]=Or(l))}const o=(l,s)=>U.forEach(l,(c,h)=>a(c,h,s));return U.isPlainObject(n)||n instanceof this.constructor?o(n,t):U.isString(n)&&(n=n.trim())&&!Up(n)?o(Np(n),t):n!=null&&a(t,n,r),this}get(n,t){if(n=Mt(n),n){const r=U.findKey(this,n);if(r){const i=this[r];if(!t)return i;if(t===!0)return qp(i);if(U.isFunction(t))return t.call(this,i,r);if(U.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,t){if(n=Mt(n),n){const r=U.findKey(this,n);return!!(r&&this[r]!==void 0&&(!t||ki(this,this[r],r,t)))}return!1}delete(n,t){const r=this;let i=!1;function a(o){if(o=Mt(o),o){const l=U.findKey(r,o);l&&(!t||ki(r,r[l],l,t))&&(delete r[l],i=!0)}}return U.isArray(n)?n.forEach(a):a(n),i}clear(n){const t=Object.keys(this);let r=t.length,i=!1;for(;r--;){const a=t[r];(!n||ki(this,this[a],a,n,!0))&&(delete this[a],i=!0)}return i}normalize(n){const t=this,r={};return U.forEach(this,(i,a)=>{const o=U.findKey(r,a);if(o){t[o]=Or(i),delete t[a];return}const l=n?Hp(a):String(a).trim();l!==a&&delete t[a],t[l]=Or(i),r[l]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const t=Object.create(null);return U.forEach(this,(r,i)=>{r!=null&&r!==!1&&(t[i]=n&&U.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,t])=>n+": "+t).join(`
3
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...t){const r=new this(n);return t.forEach(i=>r.set(i)),r}static accessor(n){const r=(this[Va]=this[Va]={accessors:{}}).accessors,i=this.prototype;function a(o){const l=Mt(o);r[l]||($p(i,o),r[l]=!0)}return U.isArray(n)?n.forEach(a):a(n),this}}yn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.reduceDescriptors(yn.prototype,({value:e},n)=>{let t=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(r){this[t]=r}}}),U.freezeMethods(yn);function Ei(e,n){const t=this||Dt,r=n||t,i=yn.from(r.headers);let a=r.data;return U.forEach(e,function(l){a=l.call(t,a,i.normalize(),n?n.status:void 0)}),i.normalize(),a}function Ka(e){return!!(e&&e.__CANCEL__)}function zt(e,n,t){Ce.call(this,e??"canceled",Ce.ERR_CANCELED,n,t),this.name="CanceledError"}U.inherits(zt,Ce,{__CANCEL__:!0});function Wp(e,n,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?e(t):n(new Ce("Request failed with status code "+t.status,[Ce.ERR_BAD_REQUEST,Ce.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const Yp=Sn.hasStandardBrowserEnv?{write(e,n,t,r,i,a){const o=[e+"="+encodeURIComponent(n)];U.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),U.isString(r)&&o.push("path="+r),U.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vp(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Kp(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function Qa(e,n){return e&&!Vp(n)?Kp(e,n):n}const Qp=Sn.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function i(a){let o=a;return n&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return r=i(window.location.href),function(o){const l=U.isString(o)?i(o):o;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Jp(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function Zp(e,n){e=e||10;const t=new Array(e),r=new Array(e);let i=0,a=0,o;return n=n!==void 0?n:1e3,function(s){const c=Date.now(),h=r[a];o||(o=c),t[i]=s,r[i]=c;let u=a,f=0;for(;u!==i;)f+=t[u++],u=u%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<n)return;const A=h&&c-h;return A?Math.round(f*1e3/A):void 0}}function Ja(e,n){let t=0;const r=Zp(50,250);return i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,l=a-t,s=r(l),c=a<=o;t=a;const h={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:s||void 0,estimated:s&&o&&c?(o-a)/s:void 0,event:i};h[n?"download":"upload"]=!0,e(h)}}const Ci={http:Ip,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(t,r){let i=e.data;const a=yn.from(e.headers).normalize();let{responseType:o,withXSRFToken:l}=e,s;function c(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let h;if(U.isFormData(i)){if(Sn.hasStandardBrowserEnv||Sn.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((h=a.getContentType())!==!1){const[v,...S]=h?h.split(";").map(O=>O.trim()).filter(Boolean):[];a.setContentType([v||"multipart/form-data",...S].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(v+":"+S))}const f=Qa(e.baseURL,e.url);u.open(e.method.toUpperCase(),Ua(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function A(){if(!u)return;const v=yn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),O={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:v,config:e,request:u};Wp(function(T){t(T),c()},function(T){r(T),c()},O),u=null}if("onloadend"in u?u.onloadend=A:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(A)},u.onabort=function(){u&&(r(new Ce("Request aborted",Ce.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new Ce("Network Error",Ce.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const O=e.transitional||$a;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),r(new Ce(S,O.clarifyTimeoutError?Ce.ETIMEDOUT:Ce.ECONNABORTED,e,u)),u=null},Sn.hasStandardBrowserEnv&&(l&&U.isFunction(l)&&(l=l(e)),l||l!==!1&&Qp(f))){const v=e.xsrfHeaderName&&e.xsrfCookieName&&Yp.read(e.xsrfCookieName);v&&a.set(e.xsrfHeaderName,v)}i===void 0&&a.setContentType(null),"setRequestHeader"in u&&U.forEach(a.toJSON(),function(S,O){u.setRequestHeader(O,S)}),U.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),o&&o!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Ja(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Ja(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=v=>{u&&(r(!v||v.type?new zt(null,e,u):v),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const b=Jp(f);if(b&&Sn.protocols.indexOf(b)===-1){r(new Ce("Unsupported protocol "+b+":",Ce.ERR_BAD_REQUEST,e));return}u.send(i||null)})}};U.forEach(Ci,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const Za=e=>`- ${e}`,Xp=e=>U.isFunction(e)||e===null||e===!1,Xa={getAdapter:e=>{e=U.isArray(e)?e:[e];const{length:n}=e;let t,r;const i={};for(let a=0;a<n;a++){t=e[a];let o;if(r=t,!Xp(t)&&(r=Ci[(o=String(t)).toLowerCase()],r===void 0))throw new Ce(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+a]=r}if(!r){const a=Object.entries(i).map(([l,s])=>`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let o=n?a.length>1?`since :
1
+ (function(Fe,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("@arco-design/web-react"),require("mqtt"),require("react"),require("cos-js-sdk-v5"),require("ali-oss")):typeof define=="function"&&define.amd?define(["exports","@arco-design/web-react","mqtt","react","cos-js-sdk-v5","ali-oss"],te):(Fe=typeof globalThis<"u"?globalThis:Fe||self,te(Fe["zyjj-web-sdk"]={},Fe["@arco-design/web-react"],Fe.mqtt,Fe.react,Fe["cos-js-sdk-v5"],Fe["ali-oss"]))})(this,function(Fe,te,mt,re,Kc,Qc){"use strict";var wx=Object.defineProperty;var kx=(Fe,te,mt)=>te in Fe?wx(Fe,te,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Fe[te]=mt;var Ea=(Fe,te,mt)=>kx(Fe,typeof te!="symbol"?te+"":te,mt);function Ca(e,n){for(var t=0;t<n.length;t++){const r=n[t];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Sa(e,n){return function(){return e.apply(n,arguments)}}const{toString:Jc}=Object.prototype,{getPrototypeOf:bi}=Object,Cr=(e=>n=>{const t=Jc.call(n);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Cn=e=>(e=e.toLowerCase(),n=>Cr(n)===e),Sr=e=>n=>typeof n===e,{isArray:yt}=Array,Lt=Sr("undefined");function Zc(e){return e!==null&&!Lt(e)&&e.constructor!==null&&!Lt(e.constructor)&&mn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ba=Cn("ArrayBuffer");function Xc(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&Ba(e.buffer),n}const Gc=Sr("string"),mn=Sr("function"),Ia=Sr("number"),Br=e=>e!==null&&typeof e=="object",ep=e=>e===!0||e===!1,Ir=e=>{if(Cr(e)!=="object")return!1;const n=bi(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},np=Cn("Date"),tp=Cn("File"),rp=Cn("Blob"),ip=Cn("FileList"),op=e=>Br(e)&&mn(e.pipe),ap=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||mn(e.append)&&((n=Cr(e))==="formdata"||n==="object"&&mn(e.toString)&&e.toString()==="[object FormData]"))},lp=Cn("URLSearchParams"),sp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jt(e,n,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),yt(e))for(r=0,i=e.length;r<i;r++)n.call(null,e[r],r,e);else{const a=t?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let l;for(r=0;r<o;r++)l=a[r],n.call(null,e[l],l,e)}}function Oa(e,n){n=n.toLowerCase();const t=Object.keys(e);let r=t.length,i;for(;r-- >0;)if(i=t[r],n===i.toLowerCase())return i;return null}const Pa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ta=e=>!Lt(e)&&e!==Pa;function vi(){const{caseless:e}=Ta(this)&&this||{},n={},t=(r,i)=>{const a=e&&Oa(n,i)||i;Ir(n[a])&&Ir(r)?n[a]=vi(n[a],r):Ir(r)?n[a]=vi({},r):yt(r)?n[a]=r.slice():n[a]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&jt(arguments[r],t);return n}const up=(e,n,t,{allOwnKeys:r}={})=>(jt(n,(i,a)=>{t&&mn(i)?e[a]=Sa(i,t):e[a]=i},{allOwnKeys:r}),e),cp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),pp=(e,n,t,r)=>{e.prototype=Object.create(n.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),t&&Object.assign(e.prototype,t)},dp=(e,n,t,r)=>{let i,a,o;const l={};if(n=n||{},e==null)return n;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,n))&&!l[o]&&(n[o]=e[o],l[o]=!0);e=t!==!1&&bi(e)}while(e&&(!t||t(e,n))&&e!==Object.prototype);return n},fp=(e,n,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=n.length;const r=e.indexOf(n,t);return r!==-1&&r===t},hp=e=>{if(!e)return null;if(yt(e))return e;let n=e.length;if(!Ia(n))return null;const t=new Array(n);for(;n-- >0;)t[n]=e[n];return t},mp=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&bi(Uint8Array)),yp=(e,n)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;n.call(e,a[0],a[1])}},Ap=(e,n)=>{let t;const r=[];for(;(t=e.exec(n))!==null;)r.push(t);return r},gp=Cn("HTMLFormElement"),bp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,i){return r.toUpperCase()+i}),_a=(({hasOwnProperty:e})=>(n,t)=>e.call(n,t))(Object.prototype),vp=Cn("RegExp"),La=(e,n)=>{const t=Object.getOwnPropertyDescriptors(e),r={};jt(t,(i,a)=>{let o;(o=n(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},xp=e=>{La(e,(n,t)=>{if(mn(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=e[t];if(mn(r)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},wp=(e,n)=>{const t={},r=i=>{i.forEach(a=>{t[a]=!0})};return yt(e)?r(e):r(String(e).split(n)),t},kp=()=>{},Ep=(e,n)=>(e=+e,Number.isFinite(e)?e:n),xi="abcdefghijklmnopqrstuvwxyz",ja="0123456789",Da={DIGIT:ja,ALPHA:xi,ALPHA_DIGIT:xi+xi.toUpperCase()+ja},Cp=(e=16,n=Da.ALPHA_DIGIT)=>{let t="";const{length:r}=n;for(;e--;)t+=n[Math.random()*r|0];return t};function Sp(e){return!!(e&&mn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Bp=e=>{const n=new Array(10),t=(r,i)=>{if(Br(r)){if(n.indexOf(r)>=0)return;if(!("toJSON"in r)){n[i]=r;const a=yt(r)?[]:{};return jt(r,(o,l)=>{const s=t(o,i+1);!Lt(s)&&(a[l]=s)}),n[i]=void 0,a}}return r};return t(e,0)},Ip=Cn("AsyncFunction"),U={isArray:yt,isArrayBuffer:Ba,isBuffer:Zc,isFormData:ap,isArrayBufferView:Xc,isString:Gc,isNumber:Ia,isBoolean:ep,isObject:Br,isPlainObject:Ir,isUndefined:Lt,isDate:np,isFile:tp,isBlob:rp,isRegExp:vp,isFunction:mn,isStream:op,isURLSearchParams:lp,isTypedArray:mp,isFileList:ip,forEach:jt,merge:vi,extend:up,trim:sp,stripBOM:cp,inherits:pp,toFlatObject:dp,kindOf:Cr,kindOfTest:Cn,endsWith:fp,toArray:hp,forEachEntry:yp,matchAll:Ap,isHTMLForm:gp,hasOwnProperty:_a,hasOwnProp:_a,reduceDescriptors:La,freezeMethods:xp,toObjectSet:wp,toCamelCase:bp,noop:kp,toFiniteNumber:Ep,findKey:Oa,global:Pa,isContextDefined:Ta,ALPHABET:Da,generateString:Cp,isSpecCompliantForm:Sp,toJSONObject:Bp,isAsyncFn:Ip,isThenable:e=>e&&(Br(e)||mn(e))&&mn(e.then)&&mn(e.catch)};function Ce(e,n,t,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),t&&(this.config=t),r&&(this.request=r),i&&(this.response=i)}U.inherits(Ce,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:U.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ma=Ce.prototype,za={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{za[e]={value:e}}),Object.defineProperties(Ce,za),Object.defineProperty(Ma,"isAxiosError",{value:!0}),Ce.from=(e,n,t,r,i,a)=>{const o=Object.create(Ma);return U.toFlatObject(e,o,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),Ce.call(o,e.message,n,t,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const Op=null;function wi(e){return U.isPlainObject(e)||U.isArray(e)}function Fa(e){return U.endsWith(e,"[]")?e.slice(0,-2):e}function Ra(e,n,t){return e?e.concat(n).map(function(i,a){return i=Fa(i),!t&&a?"["+i+"]":i}).join(t?".":""):n}function Pp(e){return U.isArray(e)&&!e.some(wi)}const Tp=U.toFlatObject(U,{},null,function(n){return/^is[A-Z]/.test(n)});function Or(e,n,t){if(!U.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,t=U.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,S){return!U.isUndefined(S[v])});const r=t.metaTokens,i=t.visitor||h,a=t.dots,o=t.indexes,s=(t.Blob||typeof Blob<"u"&&Blob)&&U.isSpecCompliantForm(n);if(!U.isFunction(i))throw new TypeError("visitor must be a function");function c(b){if(b===null)return"";if(U.isDate(b))return b.toISOString();if(!s&&U.isBlob(b))throw new Ce("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(b)||U.isTypedArray(b)?s&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,v,S){let O=b;if(b&&!S&&typeof b=="object"){if(U.endsWith(v,"{}"))v=r?v:v.slice(0,-2),b=JSON.stringify(b);else if(U.isArray(b)&&Pp(b)||(U.isFileList(b)||U.endsWith(v,"[]"))&&(O=U.toArray(b)))return v=Fa(v),O.forEach(function(_,j){!(U.isUndefined(_)||_===null)&&n.append(o===!0?Ra([v],j,a):o===null?v:v+"[]",c(_))}),!1}return wi(b)?!0:(n.append(Ra(S,v,a),c(b)),!1)}const u=[],f=Object.assign(Tp,{defaultVisitor:h,convertValue:c,isVisitable:wi});function A(b,v){if(!U.isUndefined(b)){if(u.indexOf(b)!==-1)throw Error("Circular reference detected in "+v.join("."));u.push(b),U.forEach(b,function(O,B){(!(U.isUndefined(O)||O===null)&&i.call(n,O,U.isString(B)?B.trim():B,v,f))===!0&&A(O,v?v.concat(B):[B])}),u.pop()}}if(!U.isObject(e))throw new TypeError("data must be an object");return A(e),n}function Na(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return n[r]})}function ki(e,n){this._pairs=[],e&&Or(e,this,n)}const qa=ki.prototype;qa.append=function(n,t){this._pairs.push([n,t])},qa.toString=function(n){const t=n?function(r){return n.call(this,r,Na)}:Na;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};function _p(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ua(e,n,t){if(!n)return e;const r=t&&t.encode||_p,i=t&&t.serialize;let a;if(i?a=i(n,t):a=U.isURLSearchParams(n)?n.toString():new ki(n,t).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Ha{constructor(){this.handlers=[]}use(n,t,r){return this.handlers.push({fulfilled:n,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){U.forEach(this.handlers,function(r){r!==null&&n(r)})}}const $a={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lp={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ki,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Wa=typeof window<"u"&&typeof document<"u",jp=(e=>Wa&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Dp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wa,hasStandardBrowserEnv:jp,hasStandardBrowserWebWorkerEnv:Dp},Symbol.toStringTag,{value:"Module"})),...Lp};function Mp(e,n){return Or(e,new Sn.classes.URLSearchParams,Object.assign({visitor:function(t,r,i,a){return Sn.isNode&&U.isBuffer(t)?(this.append(r,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},n))}function zp(e){return U.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function Fp(e){const n={},t=Object.keys(e);let r;const i=t.length;let a;for(r=0;r<i;r++)a=t[r],n[a]=e[a];return n}function Ya(e){function n(t,r,i,a){let o=t[a++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),s=a>=t.length;return o=!o&&U.isArray(i)?i.length:o,s?(U.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!l):((!i[o]||!U.isObject(i[o]))&&(i[o]=[]),n(t,r,i[o],a)&&U.isArray(i[o])&&(i[o]=Fp(i[o])),!l)}if(U.isFormData(e)&&U.isFunction(e.entries)){const t={};return U.forEachEntry(e,(r,i)=>{n(zp(r),i,t,0)}),t}return null}function Rp(e,n,t){if(U.isString(e))try{return(n||JSON.parse)(e),U.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Dt={transitional:$a,adapter:["xhr","http"],transformRequest:[function(n,t){const r=t.getContentType()||"",i=r.indexOf("application/json")>-1,a=U.isObject(n);if(a&&U.isHTMLForm(n)&&(n=new FormData(n)),U.isFormData(n))return i?JSON.stringify(Ya(n)):n;if(U.isArrayBuffer(n)||U.isBuffer(n)||U.isStream(n)||U.isFile(n)||U.isBlob(n))return n;if(U.isArrayBufferView(n))return n.buffer;if(U.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Mp(n,this.formSerializer).toString();if((l=U.isFileList(n))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Or(l?{"files[]":n}:n,s&&new s,this.formSerializer)}}return a||i?(t.setContentType("application/json",!1),Rp(n)):n}],transformResponse:[function(n){const t=this.transitional||Dt.transitional,r=t&&t.forcedJSONParsing,i=this.responseType==="json";if(n&&U.isString(n)&&(r&&!this.responseType||i)){const o=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(l){if(o)throw l.name==="SyntaxError"?Ce.from(l,Ce.ERR_BAD_RESPONSE,this,null,this.response):l}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Sn.classes.FormData,Blob:Sn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],e=>{Dt.headers[e]={}});const Np=U.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),qp=e=>{const n={};let t,r,i;return e&&e.split(`
2
+ `).forEach(function(o){i=o.indexOf(":"),t=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!t||n[t]&&Np[t])&&(t==="set-cookie"?n[t]?n[t].push(r):n[t]=[r]:n[t]=n[t]?n[t]+", "+r:r)}),n},Va=Symbol("internals");function Mt(e){return e&&String(e).trim().toLowerCase()}function Pr(e){return e===!1||e==null?e:U.isArray(e)?e.map(Pr):String(e)}function Up(e){const n=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(e);)n[r[1]]=r[2];return n}const Hp=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ei(e,n,t,r,i){if(U.isFunction(r))return r.call(this,n,t);if(i&&(n=t),!!U.isString(n)){if(U.isString(r))return n.indexOf(r)!==-1;if(U.isRegExp(r))return r.test(n)}}function $p(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,t,r)=>t.toUpperCase()+r)}function Wp(e,n){const t=U.toCamelCase(" "+n);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+t,{value:function(i,a,o){return this[r].call(this,n,i,a,o)},configurable:!0})})}class yn{constructor(n){n&&this.set(n)}set(n,t,r){const i=this;function a(l,s,c){const h=Mt(s);if(!h)throw new Error("header name must be a non-empty string");const u=U.findKey(i,h);(!u||i[u]===void 0||c===!0||c===void 0&&i[u]!==!1)&&(i[u||s]=Pr(l))}const o=(l,s)=>U.forEach(l,(c,h)=>a(c,h,s));return U.isPlainObject(n)||n instanceof this.constructor?o(n,t):U.isString(n)&&(n=n.trim())&&!Hp(n)?o(qp(n),t):n!=null&&a(t,n,r),this}get(n,t){if(n=Mt(n),n){const r=U.findKey(this,n);if(r){const i=this[r];if(!t)return i;if(t===!0)return Up(i);if(U.isFunction(t))return t.call(this,i,r);if(U.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,t){if(n=Mt(n),n){const r=U.findKey(this,n);return!!(r&&this[r]!==void 0&&(!t||Ei(this,this[r],r,t)))}return!1}delete(n,t){const r=this;let i=!1;function a(o){if(o=Mt(o),o){const l=U.findKey(r,o);l&&(!t||Ei(r,r[l],l,t))&&(delete r[l],i=!0)}}return U.isArray(n)?n.forEach(a):a(n),i}clear(n){const t=Object.keys(this);let r=t.length,i=!1;for(;r--;){const a=t[r];(!n||Ei(this,this[a],a,n,!0))&&(delete this[a],i=!0)}return i}normalize(n){const t=this,r={};return U.forEach(this,(i,a)=>{const o=U.findKey(r,a);if(o){t[o]=Pr(i),delete t[a];return}const l=n?$p(a):String(a).trim();l!==a&&delete t[a],t[l]=Pr(i),r[l]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const t=Object.create(null);return U.forEach(this,(r,i)=>{r!=null&&r!==!1&&(t[i]=n&&U.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,t])=>n+": "+t).join(`
3
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...t){const r=new this(n);return t.forEach(i=>r.set(i)),r}static accessor(n){const r=(this[Va]=this[Va]={accessors:{}}).accessors,i=this.prototype;function a(o){const l=Mt(o);r[l]||(Wp(i,o),r[l]=!0)}return U.isArray(n)?n.forEach(a):a(n),this}}yn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.reduceDescriptors(yn.prototype,({value:e},n)=>{let t=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(r){this[t]=r}}}),U.freezeMethods(yn);function Ci(e,n){const t=this||Dt,r=n||t,i=yn.from(r.headers);let a=r.data;return U.forEach(e,function(l){a=l.call(t,a,i.normalize(),n?n.status:void 0)}),i.normalize(),a}function Ka(e){return!!(e&&e.__CANCEL__)}function zt(e,n,t){Ce.call(this,e??"canceled",Ce.ERR_CANCELED,n,t),this.name="CanceledError"}U.inherits(zt,Ce,{__CANCEL__:!0});function Yp(e,n,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?e(t):n(new Ce("Request failed with status code "+t.status,[Ce.ERR_BAD_REQUEST,Ce.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const Vp=Sn.hasStandardBrowserEnv?{write(e,n,t,r,i,a){const o=[e+"="+encodeURIComponent(n)];U.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),U.isString(r)&&o.push("path="+r),U.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Kp(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Qp(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function Qa(e,n){return e&&!Kp(n)?Qp(e,n):n}const Jp=Sn.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function i(a){let o=a;return n&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return r=i(window.location.href),function(o){const l=U.isString(o)?i(o):o;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Zp(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function Xp(e,n){e=e||10;const t=new Array(e),r=new Array(e);let i=0,a=0,o;return n=n!==void 0?n:1e3,function(s){const c=Date.now(),h=r[a];o||(o=c),t[i]=s,r[i]=c;let u=a,f=0;for(;u!==i;)f+=t[u++],u=u%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<n)return;const A=h&&c-h;return A?Math.round(f*1e3/A):void 0}}function Ja(e,n){let t=0;const r=Xp(50,250);return i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,l=a-t,s=r(l),c=a<=o;t=a;const h={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:s||void 0,estimated:s&&o&&c?(o-a)/s:void 0,event:i};h[n?"download":"upload"]=!0,e(h)}}const Si={http:Op,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(t,r){let i=e.data;const a=yn.from(e.headers).normalize();let{responseType:o,withXSRFToken:l}=e,s;function c(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let h;if(U.isFormData(i)){if(Sn.hasStandardBrowserEnv||Sn.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((h=a.getContentType())!==!1){const[v,...S]=h?h.split(";").map(O=>O.trim()).filter(Boolean):[];a.setContentType([v||"multipart/form-data",...S].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(v+":"+S))}const f=Qa(e.baseURL,e.url);u.open(e.method.toUpperCase(),Ua(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function A(){if(!u)return;const v=yn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),O={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:v,config:e,request:u};Yp(function(_){t(_),c()},function(_){r(_),c()},O),u=null}if("onloadend"in u?u.onloadend=A:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(A)},u.onabort=function(){u&&(r(new Ce("Request aborted",Ce.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new Ce("Network Error",Ce.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const O=e.transitional||$a;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),r(new Ce(S,O.clarifyTimeoutError?Ce.ETIMEDOUT:Ce.ECONNABORTED,e,u)),u=null},Sn.hasStandardBrowserEnv&&(l&&U.isFunction(l)&&(l=l(e)),l||l!==!1&&Jp(f))){const v=e.xsrfHeaderName&&e.xsrfCookieName&&Vp.read(e.xsrfCookieName);v&&a.set(e.xsrfHeaderName,v)}i===void 0&&a.setContentType(null),"setRequestHeader"in u&&U.forEach(a.toJSON(),function(S,O){u.setRequestHeader(O,S)}),U.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),o&&o!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Ja(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Ja(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=v=>{u&&(r(!v||v.type?new zt(null,e,u):v),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const b=Zp(f);if(b&&Sn.protocols.indexOf(b)===-1){r(new Ce("Unsupported protocol "+b+":",Ce.ERR_BAD_REQUEST,e));return}u.send(i||null)})}};U.forEach(Si,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const Za=e=>`- ${e}`,Gp=e=>U.isFunction(e)||e===null||e===!1,Xa={getAdapter:e=>{e=U.isArray(e)?e:[e];const{length:n}=e;let t,r;const i={};for(let a=0;a<n;a++){t=e[a];let o;if(r=t,!Gp(t)&&(r=Si[(o=String(t)).toLowerCase()],r===void 0))throw new Ce(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+a]=r}if(!r){const a=Object.entries(i).map(([l,s])=>`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let o=n?a.length>1?`since :
4
4
  `+a.map(Za).join(`
5
- `):" "+Za(a[0]):"as no adapter specified";throw new Ce("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Ci};function Si(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new zt(null,e)}function Ga(e){return Si(e),e.headers=yn.from(e.headers),e.data=Ei.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xa.getAdapter(e.adapter||Dt.adapter)(e).then(function(r){return Si(e),r.data=Ei.call(e,e.transformResponse,r),r.headers=yn.from(r.headers),r},function(r){return Ka(r)||(Si(e),r&&r.response&&(r.response.data=Ei.call(e,e.transformResponse,r.response),r.response.headers=yn.from(r.response.headers))),Promise.reject(r)})}const el=e=>e instanceof yn?{...e}:e;function At(e,n){n=n||{};const t={};function r(c,h,u){return U.isPlainObject(c)&&U.isPlainObject(h)?U.merge.call({caseless:u},c,h):U.isPlainObject(h)?U.merge({},h):U.isArray(h)?h.slice():h}function i(c,h,u){if(U.isUndefined(h)){if(!U.isUndefined(c))return r(void 0,c,u)}else return r(c,h,u)}function a(c,h){if(!U.isUndefined(h))return r(void 0,h)}function o(c,h){if(U.isUndefined(h)){if(!U.isUndefined(c))return r(void 0,c)}else return r(void 0,h)}function l(c,h,u){if(u in n)return r(c,h);if(u in e)return r(void 0,c)}const s={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(c,h)=>i(el(c),el(h),!0)};return U.forEach(Object.keys(Object.assign({},e,n)),function(h){const u=s[h]||i,f=u(e[h],n[h],h);U.isUndefined(f)&&u!==l||(t[h]=f)}),t}const nl="1.6.8",Bi={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{Bi[e]=function(r){return typeof r===e||"a"+(n<1?"n ":" ")+e}});const tl={};Bi.transitional=function(n,t,r){function i(a,o){return"[Axios v"+nl+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,l)=>{if(n===!1)throw new Ce(i(o," has been removed"+(t?" in "+t:"")),Ce.ERR_DEPRECATED);return t&&!tl[o]&&(tl[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(a,o,l):!0}};function Gp(e,n,t){if(typeof e!="object")throw new Ce("options must be an object",Ce.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=n[a];if(o){const l=e[a],s=l===void 0||o(l,a,e);if(s!==!0)throw new Ce("option "+a+" must be "+s,Ce.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Ce("Unknown option "+a,Ce.ERR_BAD_OPTION)}}const Ii={assertOptions:Gp,validators:Bi},Hn=Ii.validators;class Gn{constructor(n){this.defaults=n,this.interceptors={request:new Ha,response:new Ha}}async request(n,t){try{return await this._request(n,t)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
- `+a):r.stack=a}throw r}}_request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=At(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:a}=t;r!==void 0&&Ii.assertOptions(r,{silentJSONParsing:Hn.transitional(Hn.boolean),forcedJSONParsing:Hn.transitional(Hn.boolean),clarifyTimeoutError:Hn.transitional(Hn.boolean)},!1),i!=null&&(U.isFunction(i)?t.paramsSerializer={serialize:i}:Ii.assertOptions(i,{encode:Hn.function,serialize:Hn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&U.merge(a.common,a[t.method]);a&&U.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),t.headers=yn.concat(o,a);const l=[];let s=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(s=s&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let h,u=0,f;if(!s){const b=[Ga.bind(this),void 0];for(b.unshift.apply(b,l),b.push.apply(b,c),f=b.length,h=Promise.resolve(t);u<f;)h=h.then(b[u++],b[u++]);return h}f=l.length;let A=t;for(u=0;u<f;){const b=l[u++],v=l[u++];try{A=b(A)}catch(S){v.call(this,S);break}}try{h=Ga.call(this,A)}catch(b){return Promise.reject(b)}for(u=0,f=c.length;u<f;)h=h.then(c[u++],c[u++]);return h}getUri(n){n=At(this.defaults,n);const t=Qa(n.baseURL,n.url);return Ua(t,n.params,n.paramsSerializer)}}U.forEach(["delete","get","head","options"],function(n){Gn.prototype[n]=function(t,r){return this.request(At(r||{},{method:n,url:t,data:(r||{}).data}))}}),U.forEach(["post","put","patch"],function(n){function t(r){return function(a,o,l){return this.request(At(l||{},{method:n,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Gn.prototype[n]=t(),Gn.prototype[n+"Form"]=t(!0)});class Oi{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(a){t=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(l=>{r.subscribe(l),a=l}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},n(function(a,o,l){r.reason||(r.reason=new zt(a,o,l),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const t=this._listeners.indexOf(n);t!==-1&&this._listeners.splice(t,1)}static source(){let n;return{token:new Oi(function(i){n=i}),cancel:n}}}function ed(e){return function(t){return e.apply(null,t)}}function nd(e){return U.isObject(e)&&e.isAxiosError===!0}const Pi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pi).forEach(([e,n])=>{Pi[n]=e});function rl(e){const n=new Gn(e),t=Sa(Gn.prototype.request,n);return U.extend(t,Gn.prototype,n,{allOwnKeys:!0}),U.extend(t,n,null,{allOwnKeys:!0}),t.create=function(i){return rl(At(e,i))},t}const Fe=rl(Dt);Fe.Axios=Gn,Fe.CanceledError=zt,Fe.CancelToken=Oi,Fe.isCancel=Ka,Fe.VERSION=nl,Fe.toFormData=Ir,Fe.AxiosError=Ce,Fe.Cancel=Fe.CanceledError,Fe.all=function(n){return Promise.all(n)},Fe.spread=ed,Fe.isAxiosError=nd,Fe.mergeConfig=At,Fe.AxiosHeaders=yn,Fe.formToJSON=e=>Ya(U.isHTMLForm(e)?new FormData(e):e),Fe.getAdapter=Xa.getAdapter,Fe.HttpStatusCode=Pi,Fe.default=Fe;const Ft=()=>localStorage.getItem("token");async function He(e,n,t,r=!0){let i;return t==="get"?i=Fe.get(e,{params:n,timeout:1e3*60*10,headers:{Authorization:Ft()}}):t==="post"?i=Fe.post(e,n,{headers:{Authorization:Ft()}}):t==="put"?i=Fe.put(e,n,{headers:{Authorization:Ft()}}):t==="delete"?i=Fe.delete(e,{params:n,headers:{Authorization:Ft()}}):t==="patch"&&(i=Fe.patch(e,n,{headers:{Authorization:Ft()}})),new Promise((a,o)=>{i.then(l=>{l.data.code!==0?(r&&te.Message.error(l.data.msg),o(l.data.msg)):a(l.data.data)}).catch(l=>{var s;((s=l.response)==null?void 0:s.status)==401?r&&te.Message.error("你的账户已过期,请重新登录"):r&&te.Message.error("请求失败"),console.log("请求失败",l),o("请求失败")})})}let Pr;const td=new Uint8Array(16);function rd(){if(!Pr&&(Pr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Pr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Pr(td)}const Ge=[];for(let e=0;e<256;++e)Ge.push((e+256).toString(16).slice(1));function id(e,n=0){return Ge[e[n+0]]+Ge[e[n+1]]+Ge[e[n+2]]+Ge[e[n+3]]+"-"+Ge[e[n+4]]+Ge[e[n+5]]+"-"+Ge[e[n+6]]+Ge[e[n+7]]+"-"+Ge[e[n+8]]+Ge[e[n+9]]+"-"+Ge[e[n+10]]+Ge[e[n+11]]+Ge[e[n+12]]+Ge[e[n+13]]+Ge[e[n+14]]+Ge[e[n+15]]}const il={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function od(e,n,t){if(il.randomUUID&&!n&&!e)return il.randomUUID();e=e||{};const r=e.random||(e.rng||rd)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,id(r)}const ad=e=>e>=1073741824?(e/1073741824).toFixed(2)+" GB":e>=1048576?(e/1048576).toFixed(2)+" MB":e>=1024?(e/1024).toFixed(2)+" KB":e+" B",ol=(e,n)=>{let t=e.path;return(n||!t)&&(t=URL.createObjectURL(e)),{path:t,name:e.name,ext:e.name.split(".").pop(),size:e.size,uid:od()}},ld=e=>new Date(e*1e3).toISOString().substring(11,19),sd=async()=>{const e=await pl(),n=e.token;return{cos:new Kc({getAuthorization:function(t,r){r({TmpSecretId:n.TmpSecretId,TmpSecretKey:n.TmpSecretKey,XCosSecurityToken:n.Token,StartTime:e.start_time,ExpiredTime:e.end_time})},SliceSize:1024*1024*5}),path:e.path,bucket:e.bucket,region:e.region}},al=e=>{const n=[];for(const t in e){const r=e[t];r&&n.push(`${t}=${r}`)}return n.join("&")},ud=/\$(.*?)\$/g,cd=(e,n)=>{let t;const r=[];for(;(t=ud.exec(e))!==null;)t&&t.length>0&&r.push(t[1]);return r.map(i=>{const a=n[i];a&&(e=e.replace(`$${i}$`,i.split(".").length==2?a[i.split(".")[1]]:a))}),e},pd=e=>Object.keys(e).filter(n=>e[n]).map(n=>{let t=e[n];return["string","number","boolean"].includes(typeof t)?t=String(t):t=JSON.stringify(t),`${n}=${encodeURIComponent(t)}`}).join("&"),ll=e=>new Promise((n,t)=>{const r=new XMLHttpRequest;r.open("get",e),r.responseType="blob",r.send(),r.onload=function(){(this.status===200||this.status===304)&&(sl(URL.createObjectURL(this.response)),n())},r.onerror=function(){t("下载失败,请在新窗口打开")}}),sl=(e,n)=>{var r;const t=document.createElement("a");t.style.display="none",t.href=e,n?t.download=n:t.download=((r=e.split("?").shift())==null?void 0:r.split("/").pop())||e,document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(e)},$e=process.env.NODE_ENV=="production"?"https://api.zyjj.cc/api/v1":"http://127.0.0.1:3000/api/v1",dd=e=>He(`${$e}/common/user/login`,e,"post"),fd=(e,n,t)=>He(`${$e}/common/app/info?os=${e}&version=${n}&uid=${t||""}`,{},"get"),hd=e=>He(`${$e}/common/user/register`,e,"post"),md=e=>He(`${$e}/common/user/reset/password`,e,"post"),ul=e=>He(`${$e}/common/user/email/token`,{email:e},"post"),cl=()=>He(`${$e}/user/user/info`,{},"get",!1),yd=e=>He(`${$e}/user/user/info`,e,"put"),Ad=e=>He(`${$e}/user/point/deducting`,e,"post"),gd=e=>He(`${$e}/common/tool/list?${al(e)}`,{},"get"),bd=()=>He(`${$e}/common/tool/all`,{},"get"),vd=e=>He(`${$e}/common/tool/${e}`,{},"get"),xd=e=>He(`${$e}/common/tool/inc/${e}`,{},"get"),wd=()=>He(`${$e}/common/tool/tags`,{},"get"),pl=()=>He(`${$e}/user/cloud/tencent/cos`,{},"get"),kd=e=>He(`${$e}/user/task`,e,"post"),Ed=e=>He(`${$e}/user/task/${e}`,{},"get"),dl=()=>He(`${$e}/user/cloud/mqtt/task`,{},"get"),Cd=()=>He(`${$e}/common/material/tags`,{},"get"),Sd=e=>He(`${$e}/user/material/${e}`,{},"get"),Bd=e=>He(`${$e}/user/material/url`,{key_list:e},"post"),Id=e=>He(`${$e}${e.url}`,e.data||{},e.method);var _i;(function(e){e[e.Local=0]="Local",e[e.Cos=1]="Cos"})(_i||(_i={}));var Ti;(function(e){e[e.TaskAction=0]="TaskAction",e[e.WorkAction=1]="WorkAction",e[e.MqttSend=3]="MqttSend",e[e.ActionClose=4]="ActionClose",e[e.MqttReconnect=5]="MqttReconnect",e[e.NavigateTo=7]="NavigateTo",e[e.ExtensionBlobConvert=8]="ExtensionBlobConvert",e[e.ExtensionGetId=9]="ExtensionGetId",e[e.OpenTool=10]="OpenTool",e[e.DownloadFile=11]="DownloadFile"})(Ti||(Ti={}));var Li;(function(e){e[e.TaskAction=0]="TaskAction",e[e.NavigateTo=3]="NavigateTo",e[e.OpenTool=6]="OpenTool",e[e.MqttBack=1]="MqttBack",e[e.ExtensionBlobUrl=4]="ExtensionBlobUrl",e[e.ExtensionId=5]="ExtensionId",e[e.UrlCallback=7]="UrlCallback",e[e.DownloadFileRes=8]="DownloadFileRes"})(Li||(Li={}));var ji;(function(e){e.Waiting="等待",e.Running="进行",e.Fail="失败",e.Success="成功",e.Canceled="取消"})(ji||(ji={}));var Di;(function(e){e[e.Start=1]="Start",e[e.Progress=2]="Progress",e[e.Success=3]="Success",e[e.Error=4]="Error",e[e.DetailAppend=5]="DetailAppend",e[e.DetailSet=6]="DetailSet"})(Di||(Di={}));var Mi;(function(e){e[e.ChoosePic=-3]="ChoosePic",e[e.CostPoint=-4]="CostPoint",e[e.AddAction=-5]="AddAction",e[e.CloseWindow=-6]="CloseWindow",e[e.SendRequest=-7]="SendRequest",e[e.UploadFileByPath=-8]="UploadFileByPath",e[e.GetInitData=-9]="GetInitData"})(Mi||(Mi={}));var zi;(function(e){e[e.Task=0]="Task",e[e.Lab=1]="Lab",e[e.Flow=2]="Flow"})(zi||(zi={}));var Fi;(function(e){e[e.Create=0]="Create",e[e.Progress=1]="Progress",e[e.Success=2]="Success",e[e.Error=3]="Error",e[e.Cancel=4]="Cancel"})(Fi||(Fi={}));var et;(function(e){e[e.Start=1]="Start",e[e.Progress=2]="Progress",e[e.Success=3]="Success",e[e.Error=4]="Error",e[e.DetailAppend=5]="DetailAppend",e[e.DetailSet=6]="DetailSet"})(et||(et={}));var Ri;(function(e){e[e.FileInput=0]="FileInput",e[e.FileInputList=1]="FileInputList",e[e.Select=2]="Select",e[e.FileGenerate=3]="FileGenerate",e[e.Input=4]="Input"})(Ri||(Ri={}));var Ni;(function(e){e[e.Ffmpeg=0]="Ffmpeg",e[e.Cloud=1]="Cloud",e[e.Download=2]="Download"})(Ni||(Ni={}));var qi;(function(e){e[e.SubtitleEmbed=0]="SubtitleEmbed",e[e.NoVideo=1]="NoVideo",e[e.NoAudio=2]="NoAudio",e[e.AudioEncode=3]="AudioEncode",e[e.VideoEncode=4]="VideoEncode",e[e.MergeFile=5]="MergeFile",e[e.Format=6]="Format",e[e.AddOption=7]="AddOption",e[e.OutputOption=8]="OutputOption",e[e.InputOption=9]="InputOption"})(qi||(qi={}));var on;(function(e){e[e.Input=0]="Input",e[e.Select=1]="Select",e[e.TextArea=2]="TextArea",e[e.FileUpload=3]="FileUpload",e[e.Slider=4]="Slider",e[e.Audio=5]="Audio",e[e.Number=6]="Number",e[e.ImageList=7]="ImageList",e[e.Image=8]="Image",e[e.Alert=9]="Alert",e[e.Video=10]="Video",e[e.MarkDown=11]="MarkDown"})(on||(on={}));var _r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ui={exports:{}},Rt={};/**
5
+ `):" "+Za(a[0]):"as no adapter specified";throw new Ce("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Si};function Bi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new zt(null,e)}function Ga(e){return Bi(e),e.headers=yn.from(e.headers),e.data=Ci.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xa.getAdapter(e.adapter||Dt.adapter)(e).then(function(r){return Bi(e),r.data=Ci.call(e,e.transformResponse,r),r.headers=yn.from(r.headers),r},function(r){return Ka(r)||(Bi(e),r&&r.response&&(r.response.data=Ci.call(e,e.transformResponse,r.response),r.response.headers=yn.from(r.response.headers))),Promise.reject(r)})}const el=e=>e instanceof yn?{...e}:e;function At(e,n){n=n||{};const t={};function r(c,h,u){return U.isPlainObject(c)&&U.isPlainObject(h)?U.merge.call({caseless:u},c,h):U.isPlainObject(h)?U.merge({},h):U.isArray(h)?h.slice():h}function i(c,h,u){if(U.isUndefined(h)){if(!U.isUndefined(c))return r(void 0,c,u)}else return r(c,h,u)}function a(c,h){if(!U.isUndefined(h))return r(void 0,h)}function o(c,h){if(U.isUndefined(h)){if(!U.isUndefined(c))return r(void 0,c)}else return r(void 0,h)}function l(c,h,u){if(u in n)return r(c,h);if(u in e)return r(void 0,c)}const s={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(c,h)=>i(el(c),el(h),!0)};return U.forEach(Object.keys(Object.assign({},e,n)),function(h){const u=s[h]||i,f=u(e[h],n[h],h);U.isUndefined(f)&&u!==l||(t[h]=f)}),t}const nl="1.6.8",Ii={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{Ii[e]=function(r){return typeof r===e||"a"+(n<1?"n ":" ")+e}});const tl={};Ii.transitional=function(n,t,r){function i(a,o){return"[Axios v"+nl+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,l)=>{if(n===!1)throw new Ce(i(o," has been removed"+(t?" in "+t:"")),Ce.ERR_DEPRECATED);return t&&!tl[o]&&(tl[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(a,o,l):!0}};function ed(e,n,t){if(typeof e!="object")throw new Ce("options must be an object",Ce.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=n[a];if(o){const l=e[a],s=l===void 0||o(l,a,e);if(s!==!0)throw new Ce("option "+a+" must be "+s,Ce.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Ce("Unknown option "+a,Ce.ERR_BAD_OPTION)}}const Oi={assertOptions:ed,validators:Ii},Hn=Oi.validators;class Gn{constructor(n){this.defaults=n,this.interceptors={request:new Ha,response:new Ha}}async request(n,t){try{return await this._request(n,t)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
+ `+a):r.stack=a}throw r}}_request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=At(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:a}=t;r!==void 0&&Oi.assertOptions(r,{silentJSONParsing:Hn.transitional(Hn.boolean),forcedJSONParsing:Hn.transitional(Hn.boolean),clarifyTimeoutError:Hn.transitional(Hn.boolean)},!1),i!=null&&(U.isFunction(i)?t.paramsSerializer={serialize:i}:Oi.assertOptions(i,{encode:Hn.function,serialize:Hn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&U.merge(a.common,a[t.method]);a&&U.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),t.headers=yn.concat(o,a);const l=[];let s=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(s=s&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let h,u=0,f;if(!s){const b=[Ga.bind(this),void 0];for(b.unshift.apply(b,l),b.push.apply(b,c),f=b.length,h=Promise.resolve(t);u<f;)h=h.then(b[u++],b[u++]);return h}f=l.length;let A=t;for(u=0;u<f;){const b=l[u++],v=l[u++];try{A=b(A)}catch(S){v.call(this,S);break}}try{h=Ga.call(this,A)}catch(b){return Promise.reject(b)}for(u=0,f=c.length;u<f;)h=h.then(c[u++],c[u++]);return h}getUri(n){n=At(this.defaults,n);const t=Qa(n.baseURL,n.url);return Ua(t,n.params,n.paramsSerializer)}}U.forEach(["delete","get","head","options"],function(n){Gn.prototype[n]=function(t,r){return this.request(At(r||{},{method:n,url:t,data:(r||{}).data}))}}),U.forEach(["post","put","patch"],function(n){function t(r){return function(a,o,l){return this.request(At(l||{},{method:n,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Gn.prototype[n]=t(),Gn.prototype[n+"Form"]=t(!0)});class Pi{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(a){t=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(l=>{r.subscribe(l),a=l}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},n(function(a,o,l){r.reason||(r.reason=new zt(a,o,l),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const t=this._listeners.indexOf(n);t!==-1&&this._listeners.splice(t,1)}static source(){let n;return{token:new Pi(function(i){n=i}),cancel:n}}}function nd(e){return function(t){return e.apply(null,t)}}function td(e){return U.isObject(e)&&e.isAxiosError===!0}const Ti={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ti).forEach(([e,n])=>{Ti[n]=e});function rl(e){const n=new Gn(e),t=Sa(Gn.prototype.request,n);return U.extend(t,Gn.prototype,n,{allOwnKeys:!0}),U.extend(t,n,null,{allOwnKeys:!0}),t.create=function(i){return rl(At(e,i))},t}const Re=rl(Dt);Re.Axios=Gn,Re.CanceledError=zt,Re.CancelToken=Pi,Re.isCancel=Ka,Re.VERSION=nl,Re.toFormData=Or,Re.AxiosError=Ce,Re.Cancel=Re.CanceledError,Re.all=function(n){return Promise.all(n)},Re.spread=nd,Re.isAxiosError=td,Re.mergeConfig=At,Re.AxiosHeaders=yn,Re.formToJSON=e=>Ya(U.isHTMLForm(e)?new FormData(e):e),Re.getAdapter=Xa.getAdapter,Re.HttpStatusCode=Ti,Re.default=Re;const Ft=()=>localStorage.getItem("token");async function Ue(e,n,t,r=!0){let i;return t==="get"?i=Re.get(e,{params:n,timeout:1e3*60*10,headers:{Authorization:Ft()}}):t==="post"?i=Re.post(e,n,{headers:{Authorization:Ft()}}):t==="put"?i=Re.put(e,n,{headers:{Authorization:Ft()}}):t==="delete"?i=Re.delete(e,{params:n,headers:{Authorization:Ft()}}):t==="patch"&&(i=Re.patch(e,n,{headers:{Authorization:Ft()}})),new Promise((a,o)=>{i.then(l=>{l.data.code!==0?(r&&te.Message.error(l.data.msg),o(l.data.msg)):a(l.data.data)}).catch(l=>{var s;((s=l.response)==null?void 0:s.status)==401?r&&te.Message.error("你的账户已过期,请重新登录"):r&&te.Message.error("请求失败"),console.log("请求失败",l),o("请求失败")})})}let Tr;const rd=new Uint8Array(16);function id(){if(!Tr&&(Tr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Tr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Tr(rd)}const Ge=[];for(let e=0;e<256;++e)Ge.push((e+256).toString(16).slice(1));function od(e,n=0){return Ge[e[n+0]]+Ge[e[n+1]]+Ge[e[n+2]]+Ge[e[n+3]]+"-"+Ge[e[n+4]]+Ge[e[n+5]]+"-"+Ge[e[n+6]]+Ge[e[n+7]]+"-"+Ge[e[n+8]]+Ge[e[n+9]]+"-"+Ge[e[n+10]]+Ge[e[n+11]]+Ge[e[n+12]]+Ge[e[n+13]]+Ge[e[n+14]]+Ge[e[n+15]]}const il={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ad(e,n,t){if(il.randomUUID&&!n&&!e)return il.randomUUID();e=e||{};const r=e.random||(e.rng||id)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,od(r)}var Rt;(function(e){e[e.LocalPath=0]="LocalPath",e[e.TencentCos=1]="TencentCos",e[e.ObjectUrl=2]="ObjectUrl",e[e.AliYunOss=3]="AliYunOss"})(Rt||(Rt={}));var _i;(function(e){e[e.TaskAction=0]="TaskAction",e[e.WorkAction=1]="WorkAction",e[e.MqttSend=3]="MqttSend",e[e.ActionClose=4]="ActionClose",e[e.MqttReconnect=5]="MqttReconnect",e[e.NavigateTo=7]="NavigateTo",e[e.ExtensionBlobConvert=8]="ExtensionBlobConvert",e[e.ExtensionGetId=9]="ExtensionGetId",e[e.OpenTool=10]="OpenTool",e[e.DownloadFile=11]="DownloadFile"})(_i||(_i={}));var Li;(function(e){e[e.TaskAction=0]="TaskAction",e[e.NavigateTo=3]="NavigateTo",e[e.OpenTool=6]="OpenTool",e[e.MqttBack=1]="MqttBack",e[e.ExtensionBlobUrl=4]="ExtensionBlobUrl",e[e.ExtensionId=5]="ExtensionId",e[e.UrlCallback=7]="UrlCallback",e[e.DownloadFileRes=8]="DownloadFileRes"})(Li||(Li={}));var ji;(function(e){e.Waiting="等待",e.Running="进行",e.Fail="失败",e.Success="成功",e.Canceled="取消"})(ji||(ji={}));var Di;(function(e){e[e.Start=1]="Start",e[e.Progress=2]="Progress",e[e.Success=3]="Success",e[e.Error=4]="Error",e[e.DetailAppend=5]="DetailAppend",e[e.DetailSet=6]="DetailSet"})(Di||(Di={}));var Mi;(function(e){e[e.ChoosePic=-3]="ChoosePic",e[e.CostPoint=-4]="CostPoint",e[e.AddAction=-5]="AddAction",e[e.CloseWindow=-6]="CloseWindow",e[e.SendRequest=-7]="SendRequest",e[e.UploadFileByPath=-8]="UploadFileByPath",e[e.GetInitData=-9]="GetInitData"})(Mi||(Mi={}));const ld=e=>e>=1073741824?(e/1073741824).toFixed(2)+" GB":e>=1048576?(e/1048576).toFixed(2)+" MB":e>=1024?(e/1024).toFixed(2)+" KB":e+" B",ol=(e,n)=>{let t=e.path,r=Rt.LocalPath;return(n||!t)&&(t=URL.createObjectURL(e),r=Rt.ObjectUrl),{path:t,name:e.name,source:r,ext:e.name.split(".").pop(),size:e.size,uid:ad()}},sd=e=>new Date(e*1e3).toISOString().substring(11,19),ud=async()=>{const e=await pl(),n=e.token;return{cos:new Kc({getAuthorization:function(t,r){r({TmpSecretId:n.TmpSecretId,TmpSecretKey:n.TmpSecretKey,XCosSecurityToken:n.Token,StartTime:e.start_time,ExpiredTime:e.end_time})},SliceSize:1024*1024*5}),path:e.path,bucket:e.bucket,region:e.region}},cd=async()=>{const e=await Cd(),n=e.token;return{oss:new Qc({region:e.region,accessKeyId:n.TmpSecretId,accessKeySecret:n.TmpSecretKey,bucket:e.bucket}),path:e.path,bucket:e.bucket,region:e.region}},al=e=>{const n=[];for(const t in e){const r=e[t];r&&n.push(`${t}=${r}`)}return n.join("&")},pd=/\$(.*?)\$/g,dd=(e,n)=>{let t;const r=[];for(;(t=pd.exec(e))!==null;)t&&t.length>0&&r.push(t[1]);return r.map(i=>{const a=n[i];a&&(e=e.replace(`$${i}$`,i.split(".").length==2?a[i.split(".")[1]]:a))}),e},fd=e=>Object.keys(e).filter(n=>e[n]).map(n=>{let t=e[n];return["string","number","boolean"].includes(typeof t)?t=String(t):t=JSON.stringify(t),`${n}=${encodeURIComponent(t)}`}).join("&"),ll=e=>new Promise((n,t)=>{const r=new XMLHttpRequest;r.open("get",e),r.responseType="blob",r.send(),r.onload=function(){(this.status===200||this.status===304)&&(sl(URL.createObjectURL(this.response)),n())},r.onerror=function(){t("下载失败,请在新窗口打开")}}),sl=(e,n)=>{var r;const t=document.createElement("a");t.style.display="none",t.href=e,n?t.download=n:t.download=((r=e.split("?").shift())==null?void 0:r.split("/").pop())||e,document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(e)},He=process.env.NODE_ENV=="production"?"https://api.zyjj.cc/api/v1":"http://127.0.0.1:3000/api/v1",hd=e=>Ue(`${He}/common/user/login`,e,"post"),md=(e,n,t)=>Ue(`${He}/common/app/info?os=${e}&version=${n}&uid=${t||""}`,{},"get"),yd=e=>Ue(`${He}/common/user/register`,e,"post"),Ad=e=>Ue(`${He}/common/user/reset/password`,e,"post"),ul=e=>Ue(`${He}/common/user/email/token`,{email:e},"post"),cl=()=>Ue(`${He}/user/user/info`,{},"get",!1),gd=e=>Ue(`${He}/user/user/info`,e,"put"),bd=e=>Ue(`${He}/user/point/deducting`,e,"post"),vd=e=>Ue(`${He}/common/tool/list?${al(e)}`,{},"get"),xd=()=>Ue(`${He}/common/tool/all`,{},"get"),wd=e=>Ue(`${He}/common/tool/${e}`,{},"get"),kd=e=>Ue(`${He}/common/tool/inc/${e}`,{},"get"),Ed=()=>Ue(`${He}/common/tool/tags`,{},"get"),pl=()=>Ue(`${He}/user/cloud/tencent/cos`,{},"get"),Cd=()=>Ue(`${He}/user/cloud/aliyun/oss`,{},"get"),Sd=e=>Ue(`${He}/user/task`,e,"post"),Bd=e=>Ue(`${He}/user/task/${e}`,{},"get"),dl=()=>Ue(`${He}/user/cloud/mqtt/task`,{},"get"),Id=()=>Ue(`${He}/common/material/tags`,{},"get"),Od=e=>Ue(`${He}/user/material/${e}`,{},"get"),Pd=e=>Ue(`${He}/user/material/url`,{key_list:e},"post"),Td=e=>Ue(`${He}${e.url}`,e.data||{},e.method);var zi;(function(e){e[e.Task=0]="Task",e[e.Lab=1]="Lab",e[e.Flow=2]="Flow"})(zi||(zi={}));var Fi;(function(e){e[e.Create=0]="Create",e[e.Progress=1]="Progress",e[e.Success=2]="Success",e[e.Error=3]="Error",e[e.Cancel=4]="Cancel"})(Fi||(Fi={}));var et;(function(e){e[e.Start=1]="Start",e[e.Progress=2]="Progress",e[e.Success=3]="Success",e[e.Error=4]="Error",e[e.DetailAppend=5]="DetailAppend",e[e.DetailSet=6]="DetailSet"})(et||(et={}));var Ri;(function(e){e[e.FileInput=0]="FileInput",e[e.FileInputList=1]="FileInputList",e[e.Select=2]="Select",e[e.FileGenerate=3]="FileGenerate",e[e.Input=4]="Input"})(Ri||(Ri={}));var Ni;(function(e){e[e.Ffmpeg=0]="Ffmpeg",e[e.Cloud=1]="Cloud",e[e.Download=2]="Download"})(Ni||(Ni={}));var qi;(function(e){e[e.SubtitleEmbed=0]="SubtitleEmbed",e[e.NoVideo=1]="NoVideo",e[e.NoAudio=2]="NoAudio",e[e.AudioEncode=3]="AudioEncode",e[e.VideoEncode=4]="VideoEncode",e[e.MergeFile=5]="MergeFile",e[e.Format=6]="Format",e[e.AddOption=7]="AddOption",e[e.OutputOption=8]="OutputOption",e[e.InputOption=9]="InputOption"})(qi||(qi={}));var on;(function(e){e[e.Input=0]="Input",e[e.Select=1]="Select",e[e.TextArea=2]="TextArea",e[e.FileUpload=3]="FileUpload",e[e.Slider=4]="Slider",e[e.Audio=5]="Audio",e[e.Number=6]="Number",e[e.ImageList=7]="ImageList",e[e.Image=8]="Image",e[e.Alert=9]="Alert",e[e.Video=10]="Video",e[e.MarkDown=11]="MarkDown"})(on||(on={}));var _r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ui={exports:{}},Nt={};/**
7
7
  * @license React
8
8
  * react-jsx-runtime.production.min.js
9
9
  *
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * This source code is licensed under the MIT license found in the
13
13
  * LICENSE file in the root directory of this source tree.
14
- */var fl;function Od(){if(fl)return Rt;fl=1;var e=re,n=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(l,s,c){var h,u={},f=null,A=null;c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),s.ref!==void 0&&(A=s.ref);for(h in s)r.call(s,h)&&!a.hasOwnProperty(h)&&(u[h]=s[h]);if(l&&l.defaultProps)for(h in s=l.defaultProps,s)u[h]===void 0&&(u[h]=s[h]);return{$$typeof:n,type:l,key:f,ref:A,props:u,_owner:i.current}}return Rt.Fragment=t,Rt.jsx=o,Rt.jsxs=o,Rt}var Nt={};/**
14
+ */var fl;function _d(){if(fl)return Nt;fl=1;var e=re,n=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(l,s,c){var h,u={},f=null,A=null;c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),s.ref!==void 0&&(A=s.ref);for(h in s)r.call(s,h)&&!a.hasOwnProperty(h)&&(u[h]=s[h]);if(l&&l.defaultProps)for(h in s=l.defaultProps,s)u[h]===void 0&&(u[h]=s[h]);return{$$typeof:n,type:l,key:f,ref:A,props:u,_owner:i.current}}return Nt.Fragment=t,Nt.jsx=o,Nt.jsxs=o,Nt}var qt={};/**
15
15
  * @license React
16
16
  * react-jsx-runtime.development.js
17
17
  *
@@ -19,59 +19,59 @@
19
19
  *
20
20
  * This source code is licensed under the MIT license found in the
21
21
  * LICENSE file in the root directory of this source tree.
22
- */var hl;function Pd(){return hl||(hl=1,process.env.NODE_ENV!=="production"&&function(){var e=re,n=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),b=Symbol.iterator,v="@@iterator";function S(_){if(_===null||typeof _!="object")return null;var Y=b&&_[b]||_[v];return typeof Y=="function"?Y:null}var O=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function B(_){{for(var Y=arguments.length,ae=new Array(Y>1?Y-1:0),pe=1;pe<Y;pe++)ae[pe-1]=arguments[pe];T("error",_,ae)}}function T(_,Y,ae){{var pe=O.ReactDebugCurrentFrame,Ie=pe.getStackAddendum();Ie!==""&&(Y+="%s",ae=ae.concat([Ie]));var _e=ae.map(function(xe){return String(xe)});_e.unshift("Warning: "+Y),Function.prototype.apply.call(console[_],console,_e)}}var j=!1,M=!1,k=!1,F=!1,W=!1,ne;ne=Symbol.for("react.module.reference");function L(_){return!!(typeof _=="string"||typeof _=="function"||_===r||_===a||W||_===i||_===c||_===h||F||_===A||j||M||k||typeof _=="object"&&_!==null&&(_.$$typeof===f||_.$$typeof===u||_.$$typeof===o||_.$$typeof===l||_.$$typeof===s||_.$$typeof===ne||_.getModuleId!==void 0))}function Q(_,Y,ae){var pe=_.displayName;if(pe)return pe;var Ie=Y.displayName||Y.name||"";return Ie!==""?ae+"("+Ie+")":ae}function ue(_){return _.displayName||"Context"}function ye(_){if(_==null)return null;if(typeof _.tag=="number"&&B("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case r:return"Fragment";case t:return"Portal";case a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case h:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case l:var Y=_;return ue(Y)+".Consumer";case o:var ae=_;return ue(ae._context)+".Provider";case s:return Q(_,_.render,"ForwardRef");case u:var pe=_.displayName||null;return pe!==null?pe:ye(_.type)||"Memo";case f:{var Ie=_,_e=Ie._payload,xe=Ie._init;try{return ye(xe(_e))}catch{return null}}}return null}var ee=Object.assign,H=0,V,ie,Z,$,I,fe,we;function P(){}P.__reactDisabledLog=!0;function Be(){{if(H===0){V=console.log,ie=console.info,Z=console.warn,$=console.error,I=console.group,fe=console.groupCollapsed,we=console.groupEnd;var _={configurable:!0,enumerable:!0,value:P,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}H++}}function Me(){{if(H--,H===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ee({},_,{value:V}),info:ee({},_,{value:ie}),warn:ee({},_,{value:Z}),error:ee({},_,{value:$}),group:ee({},_,{value:I}),groupCollapsed:ee({},_,{value:fe}),groupEnd:ee({},_,{value:we})})}H<0&&B("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ke=O.ReactCurrentDispatcher,Ue;function ze(_,Y,ae){{if(Ue===void 0)try{throw Error()}catch(Ie){var pe=Ie.stack.trim().match(/\n( *(at )?)/);Ue=pe&&pe[1]||""}return`
23
- `+Ue+_}}var Re=!1,Pe;{var en=typeof WeakMap=="function"?WeakMap:Map;Pe=new en}function Je(_,Y){if(!_||Re)return"";{var ae=Pe.get(_);if(ae!==void 0)return ae}var pe;Re=!0;var Ie=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _e;_e=ke.current,ke.current=null,Be();try{if(Y){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(pn){pe=pn}Reflect.construct(_,[],xe)}else{try{xe.call()}catch(pn){pe=pn}_.call(xe.prototype)}}else{try{throw Error()}catch(pn){pe=pn}_()}}catch(pn){if(pn&&pe&&typeof pn.stack=="string"){for(var ve=pn.stack.split(`
22
+ */var hl;function Ld(){return hl||(hl=1,process.env.NODE_ENV!=="production"&&function(){var e=re,n=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),b=Symbol.iterator,v="@@iterator";function S(T){if(T===null||typeof T!="object")return null;var Y=b&&T[b]||T[v];return typeof Y=="function"?Y:null}var O=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function B(T){{for(var Y=arguments.length,ae=new Array(Y>1?Y-1:0),pe=1;pe<Y;pe++)ae[pe-1]=arguments[pe];_("error",T,ae)}}function _(T,Y,ae){{var pe=O.ReactDebugCurrentFrame,Ie=pe.getStackAddendum();Ie!==""&&(Y+="%s",ae=ae.concat([Ie]));var Te=ae.map(function(xe){return String(xe)});Te.unshift("Warning: "+Y),Function.prototype.apply.call(console[T],console,Te)}}var j=!1,M=!1,k=!1,F=!1,W=!1,ne;ne=Symbol.for("react.module.reference");function L(T){return!!(typeof T=="string"||typeof T=="function"||T===r||T===a||W||T===i||T===c||T===h||F||T===A||j||M||k||typeof T=="object"&&T!==null&&(T.$$typeof===f||T.$$typeof===u||T.$$typeof===o||T.$$typeof===l||T.$$typeof===s||T.$$typeof===ne||T.getModuleId!==void 0))}function Q(T,Y,ae){var pe=T.displayName;if(pe)return pe;var Ie=Y.displayName||Y.name||"";return Ie!==""?ae+"("+Ie+")":ae}function ue(T){return T.displayName||"Context"}function ye(T){if(T==null)return null;if(typeof T.tag=="number"&&B("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof T=="function")return T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case r:return"Fragment";case t:return"Portal";case a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case h:return"SuspenseList"}if(typeof T=="object")switch(T.$$typeof){case l:var Y=T;return ue(Y)+".Consumer";case o:var ae=T;return ue(ae._context)+".Provider";case s:return Q(T,T.render,"ForwardRef");case u:var pe=T.displayName||null;return pe!==null?pe:ye(T.type)||"Memo";case f:{var Ie=T,Te=Ie._payload,xe=Ie._init;try{return ye(xe(Te))}catch{return null}}}return null}var ee=Object.assign,H=0,V,ie,Z,$,I,fe,we;function P(){}P.__reactDisabledLog=!0;function Be(){{if(H===0){V=console.log,ie=console.info,Z=console.warn,$=console.error,I=console.group,fe=console.groupCollapsed,we=console.groupEnd;var T={configurable:!0,enumerable:!0,value:P,writable:!0};Object.defineProperties(console,{info:T,log:T,warn:T,error:T,group:T,groupCollapsed:T,groupEnd:T})}H++}}function Me(){{if(H--,H===0){var T={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ee({},T,{value:V}),info:ee({},T,{value:ie}),warn:ee({},T,{value:Z}),error:ee({},T,{value:$}),group:ee({},T,{value:I}),groupCollapsed:ee({},T,{value:fe}),groupEnd:ee({},T,{value:we})})}H<0&&B("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ke=O.ReactCurrentDispatcher,$e;function ze(T,Y,ae){{if($e===void 0)try{throw Error()}catch(Ie){var pe=Ie.stack.trim().match(/\n( *(at )?)/);$e=pe&&pe[1]||""}return`
23
+ `+$e+T}}var Ne=!1,Pe;{var en=typeof WeakMap=="function"?WeakMap:Map;Pe=new en}function Je(T,Y){if(!T||Ne)return"";{var ae=Pe.get(T);if(ae!==void 0)return ae}var pe;Ne=!0;var Ie=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Te;Te=ke.current,ke.current=null,Be();try{if(Y){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(pn){pe=pn}Reflect.construct(T,[],xe)}else{try{xe.call()}catch(pn){pe=pn}T.call(xe.prototype)}}else{try{throw Error()}catch(pn){pe=pn}T()}}catch(pn){if(pn&&pe&&typeof pn.stack=="string"){for(var ve=pn.stack.split(`
24
24
  `),nn=pe.stack.split(`
25
25
  `),je=ve.length-1,qe=nn.length-1;je>=1&&qe>=0&&ve[je]!==nn[qe];)qe--;for(;je>=1&&qe>=0;je--,qe--)if(ve[je]!==nn[qe]){if(je!==1||qe!==1)do if(je--,qe--,qe<0||ve[je]!==nn[qe]){var sn=`
26
- `+ve[je].replace(" at new "," at ");return _.displayName&&sn.includes("<anonymous>")&&(sn=sn.replace("<anonymous>",_.displayName)),typeof _=="function"&&Pe.set(_,sn),sn}while(je>=1&&qe>=0);break}}}finally{Re=!1,ke.current=_e,Me(),Error.prepareStackTrace=Ie}var qn=_?_.displayName||_.name:"",Qn=qn?ze(qn):"";return typeof _=="function"&&Pe.set(_,Qn),Qn}function kn(_,Y,ae){return Je(_,!1)}function st(_){var Y=_.prototype;return!!(Y&&Y.isReactComponent)}function vn(_,Y,ae){if(_==null)return"";if(typeof _=="function")return Je(_,st(_));if(typeof _=="string")return ze(_);switch(_){case c:return ze("Suspense");case h:return ze("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case s:return kn(_.render);case u:return vn(_.type,Y,ae);case f:{var pe=_,Ie=pe._payload,_e=pe._init;try{return vn(_e(Ie),Y,ae)}catch{}}}return""}var zn=Object.prototype.hasOwnProperty,ut={},Ct=O.ReactDebugCurrentFrame;function Fn(_){if(_){var Y=_._owner,ae=vn(_.type,_._source,Y?Y.type:null);Ct.setExtraStackFrame(ae)}else Ct.setExtraStackFrame(null)}function St(_,Y,ae,pe,Ie){{var _e=Function.call.bind(zn);for(var xe in _)if(_e(_,xe)){var ve=void 0;try{if(typeof _[xe]!="function"){var nn=Error((pe||"React class")+": "+ae+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw nn.name="Invariant Violation",nn}ve=_[xe](Y,xe,pe,ae,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(je){ve=je}ve&&!(ve instanceof Error)&&(Fn(Ie),B("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",pe||"React class",ae,xe,typeof ve),Fn(null)),ve instanceof Error&&!(ve.message in ut)&&(ut[ve.message]=!0,Fn(Ie),B("Failed %s type: %s",ae,ve.message),Fn(null))}}}var Rn=Array.isArray;function Vn(_){return Rn(_)}function ct(_){{var Y=typeof Symbol=="function"&&Symbol.toStringTag,ae=Y&&_[Symbol.toStringTag]||_.constructor.name||"Object";return ae}}function Bt(_){try{return pt(_),!1}catch{return!0}}function pt(_){return""+_}function N(_){if(Bt(_))return B("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ct(_)),pt(_)}var J=O.ReactCurrentOwner,he={key:!0,ref:!0,__self:!0,__source:!0},be,Oe,Ze;Ze={};function R(_){if(zn.call(_,"ref")){var Y=Object.getOwnPropertyDescriptor(_,"ref").get;if(Y&&Y.isReactWarning)return!1}return _.ref!==void 0}function Xe(_){if(zn.call(_,"key")){var Y=Object.getOwnPropertyDescriptor(_,"key").get;if(Y&&Y.isReactWarning)return!1}return _.key!==void 0}function On(_,Y){if(typeof _.ref=="string"&&J.current&&Y&&J.current.stateNode!==Y){var ae=ye(J.current.type);Ze[ae]||(B('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',ye(J.current.type),_.ref),Ze[ae]=!0)}}function Pn(_,Y){{var ae=function(){be||(be=!0,B("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Y))};ae.isReactWarning=!0,Object.defineProperty(_,"key",{get:ae,configurable:!0})}}function Ae(_,Y){{var ae=function(){Oe||(Oe=!0,B("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Y))};ae.isReactWarning=!0,Object.defineProperty(_,"ref",{get:ae,configurable:!0})}}var _n=function(_,Y,ae,pe,Ie,_e,xe){var ve={$$typeof:n,type:_,key:Y,ref:ae,props:xe,_owner:_e};return ve._store={},Object.defineProperty(ve._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ve,"_self",{configurable:!1,enumerable:!1,writable:!1,value:pe}),Object.defineProperty(ve,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ie}),Object.freeze&&(Object.freeze(ve.props),Object.freeze(ve)),ve};function ln(_,Y,ae,pe,Ie){{var _e,xe={},ve=null,nn=null;ae!==void 0&&(N(ae),ve=""+ae),Xe(Y)&&(N(Y.key),ve=""+Y.key),R(Y)&&(nn=Y.ref,On(Y,Ie));for(_e in Y)zn.call(Y,_e)&&!he.hasOwnProperty(_e)&&(xe[_e]=Y[_e]);if(_&&_.defaultProps){var je=_.defaultProps;for(_e in je)xe[_e]===void 0&&(xe[_e]=je[_e])}if(ve||nn){var qe=typeof _=="function"?_.displayName||_.name||"Unknown":_;ve&&Pn(xe,qe),nn&&Ae(xe,qe)}return _n(_,ve,nn,Ie,pe,J.current,xe)}}var dt=O.ReactCurrentOwner,Gt=O.ReactDebugCurrentFrame;function Nn(_){if(_){var Y=_._owner,ae=vn(_.type,_._source,Y?Y.type:null);Gt.setExtraStackFrame(ae)}else Gt.setExtraStackFrame(null)}var er;er=!1;function Kn(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function nr(){{if(dt.current){var _=ye(dt.current.type);if(_)return`
26
+ `+ve[je].replace(" at new "," at ");return T.displayName&&sn.includes("<anonymous>")&&(sn=sn.replace("<anonymous>",T.displayName)),typeof T=="function"&&Pe.set(T,sn),sn}while(je>=1&&qe>=0);break}}}finally{Ne=!1,ke.current=Te,Me(),Error.prepareStackTrace=Ie}var qn=T?T.displayName||T.name:"",Qn=qn?ze(qn):"";return typeof T=="function"&&Pe.set(T,Qn),Qn}function kn(T,Y,ae){return Je(T,!1)}function st(T){var Y=T.prototype;return!!(Y&&Y.isReactComponent)}function vn(T,Y,ae){if(T==null)return"";if(typeof T=="function")return Je(T,st(T));if(typeof T=="string")return ze(T);switch(T){case c:return ze("Suspense");case h:return ze("SuspenseList")}if(typeof T=="object")switch(T.$$typeof){case s:return kn(T.render);case u:return vn(T.type,Y,ae);case f:{var pe=T,Ie=pe._payload,Te=pe._init;try{return vn(Te(Ie),Y,ae)}catch{}}}return""}var zn=Object.prototype.hasOwnProperty,ut={},Ct=O.ReactDebugCurrentFrame;function Fn(T){if(T){var Y=T._owner,ae=vn(T.type,T._source,Y?Y.type:null);Ct.setExtraStackFrame(ae)}else Ct.setExtraStackFrame(null)}function St(T,Y,ae,pe,Ie){{var Te=Function.call.bind(zn);for(var xe in T)if(Te(T,xe)){var ve=void 0;try{if(typeof T[xe]!="function"){var nn=Error((pe||"React class")+": "+ae+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof T[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw nn.name="Invariant Violation",nn}ve=T[xe](Y,xe,pe,ae,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(je){ve=je}ve&&!(ve instanceof Error)&&(Fn(Ie),B("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",pe||"React class",ae,xe,typeof ve),Fn(null)),ve instanceof Error&&!(ve.message in ut)&&(ut[ve.message]=!0,Fn(Ie),B("Failed %s type: %s",ae,ve.message),Fn(null))}}}var Rn=Array.isArray;function Vn(T){return Rn(T)}function ct(T){{var Y=typeof Symbol=="function"&&Symbol.toStringTag,ae=Y&&T[Symbol.toStringTag]||T.constructor.name||"Object";return ae}}function Bt(T){try{return pt(T),!1}catch{return!0}}function pt(T){return""+T}function N(T){if(Bt(T))return B("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ct(T)),pt(T)}var J=O.ReactCurrentOwner,he={key:!0,ref:!0,__self:!0,__source:!0},be,Oe,Ze;Ze={};function R(T){if(zn.call(T,"ref")){var Y=Object.getOwnPropertyDescriptor(T,"ref").get;if(Y&&Y.isReactWarning)return!1}return T.ref!==void 0}function Xe(T){if(zn.call(T,"key")){var Y=Object.getOwnPropertyDescriptor(T,"key").get;if(Y&&Y.isReactWarning)return!1}return T.key!==void 0}function On(T,Y){if(typeof T.ref=="string"&&J.current&&Y&&J.current.stateNode!==Y){var ae=ye(J.current.type);Ze[ae]||(B('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',ye(J.current.type),T.ref),Ze[ae]=!0)}}function Pn(T,Y){{var ae=function(){be||(be=!0,B("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Y))};ae.isReactWarning=!0,Object.defineProperty(T,"key",{get:ae,configurable:!0})}}function Ae(T,Y){{var ae=function(){Oe||(Oe=!0,B("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Y))};ae.isReactWarning=!0,Object.defineProperty(T,"ref",{get:ae,configurable:!0})}}var Tn=function(T,Y,ae,pe,Ie,Te,xe){var ve={$$typeof:n,type:T,key:Y,ref:ae,props:xe,_owner:Te};return ve._store={},Object.defineProperty(ve._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ve,"_self",{configurable:!1,enumerable:!1,writable:!1,value:pe}),Object.defineProperty(ve,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ie}),Object.freeze&&(Object.freeze(ve.props),Object.freeze(ve)),ve};function ln(T,Y,ae,pe,Ie){{var Te,xe={},ve=null,nn=null;ae!==void 0&&(N(ae),ve=""+ae),Xe(Y)&&(N(Y.key),ve=""+Y.key),R(Y)&&(nn=Y.ref,On(Y,Ie));for(Te in Y)zn.call(Y,Te)&&!he.hasOwnProperty(Te)&&(xe[Te]=Y[Te]);if(T&&T.defaultProps){var je=T.defaultProps;for(Te in je)xe[Te]===void 0&&(xe[Te]=je[Te])}if(ve||nn){var qe=typeof T=="function"?T.displayName||T.name||"Unknown":T;ve&&Pn(xe,qe),nn&&Ae(xe,qe)}return Tn(T,ve,nn,Ie,pe,J.current,xe)}}var dt=O.ReactCurrentOwner,er=O.ReactDebugCurrentFrame;function Nn(T){if(T){var Y=T._owner,ae=vn(T.type,T._source,Y?Y.type:null);er.setExtraStackFrame(ae)}else er.setExtraStackFrame(null)}var nr;nr=!1;function Kn(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function tr(){{if(dt.current){var T=ye(dt.current.type);if(T)return`
27
27
 
28
- Check the render method of \``+_+"`."}return""}}function li(_){return""}var tr={};function si(_){{var Y=nr();if(!Y){var ae=typeof _=="string"?_:_.displayName||_.name;ae&&(Y=`
28
+ Check the render method of \``+T+"`."}return""}}function si(T){return""}var rr={};function ui(T){{var Y=tr();if(!Y){var ae=typeof T=="string"?T:T.displayName||T.name;ae&&(Y=`
29
29
 
30
- Check the top-level render call using <`+ae+">.")}return Y}}function ui(_,Y){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var ae=si(Y);if(tr[ae])return;tr[ae]=!0;var pe="";_&&_._owner&&_._owner!==dt.current&&(pe=" It was passed a child from "+ye(_._owner.type)+"."),Nn(_),B('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ae,pe),Nn(null)}}function rr(_,Y){{if(typeof _!="object")return;if(Vn(_))for(var ae=0;ae<_.length;ae++){var pe=_[ae];Kn(pe)&&ui(pe,Y)}else if(Kn(_))_._store&&(_._store.validated=!0);else if(_){var Ie=S(_);if(typeof Ie=="function"&&Ie!==_.entries)for(var _e=Ie.call(_),xe;!(xe=_e.next()).done;)Kn(xe.value)&&ui(xe.value,Y)}}}function ft(_){{var Y=_.type;if(Y==null||typeof Y=="string")return;var ae;if(typeof Y=="function")ae=Y.propTypes;else if(typeof Y=="object"&&(Y.$$typeof===s||Y.$$typeof===u))ae=Y.propTypes;else return;if(ae){var pe=ye(Y);St(ae,_.props,"prop",pe,_)}else if(Y.PropTypes!==void 0&&!er){er=!0;var Ie=ye(Y);B("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ie||"Unknown")}typeof Y.getDefaultProps=="function"&&!Y.getDefaultProps.isReactClassApproved&&B("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function da(_){{for(var Y=Object.keys(_.props),ae=0;ae<Y.length;ae++){var pe=Y[ae];if(pe!=="children"&&pe!=="key"){Nn(_),B("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",pe),Nn(null);break}}_.ref!==null&&(Nn(_),B("Invalid attribute `ref` supplied to `React.Fragment`."),Nn(null))}}function ci(_,Y,ae,pe,Ie,_e){{var xe=L(_);if(!xe){var ve="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(ve+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var nn=li();nn?ve+=nn:ve+=nr();var je;_===null?je="null":Vn(_)?je="array":_!==void 0&&_.$$typeof===n?(je="<"+(ye(_.type)||"Unknown")+" />",ve=" Did you accidentally export a JSX literal instead of a component?"):je=typeof _,B("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",je,ve)}var qe=ln(_,Y,ae,Ie,_e);if(qe==null)return qe;if(xe){var sn=Y.children;if(sn!==void 0)if(pe)if(Vn(sn)){for(var qn=0;qn<sn.length;qn++)rr(sn[qn],_);Object.freeze&&Object.freeze(sn)}else B("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else rr(sn,_)}return _===r?da(qe):ft(qe),qe}}function pi(_,Y,ae){return ci(_,Y,ae,!0)}function di(_,Y,ae){return ci(_,Y,ae,!1)}var fa=di,ha=pi;Nt.Fragment=r,Nt.jsx=fa,Nt.jsxs=ha}()),Nt}process.env.NODE_ENV==="production"?Ui.exports=Od():Ui.exports=Pd();var q=Ui.exports,ml={exports:{}};(function(e,n){(function(t,r){e.exports=r()})(_r,function(){var t=1e3,r=6e4,i=36e5,a="millisecond",o="second",l="minute",s="hour",c="day",h="week",u="month",f="quarter",A="year",b="date",v="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,O=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,B={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(ee){var H=["th","st","nd","rd"],V=ee%100;return"["+ee+(H[(V-20)%10]||H[V]||H[0])+"]"}},T=function(ee,H,V){var ie=String(ee);return!ie||ie.length>=H?ee:""+Array(H+1-ie.length).join(V)+ee},j={s:T,z:function(ee){var H=-ee.utcOffset(),V=Math.abs(H),ie=Math.floor(V/60),Z=V%60;return(H<=0?"+":"-")+T(ie,2,"0")+":"+T(Z,2,"0")},m:function ee(H,V){if(H.date()<V.date())return-ee(V,H);var ie=12*(V.year()-H.year())+(V.month()-H.month()),Z=H.clone().add(ie,u),$=V-Z<0,I=H.clone().add(ie+($?-1:1),u);return+(-(ie+(V-Z)/($?Z-I:I-Z))||0)},a:function(ee){return ee<0?Math.ceil(ee)||0:Math.floor(ee)},p:function(ee){return{M:u,y:A,w:h,d:c,D:b,h:s,m:l,s:o,ms:a,Q:f}[ee]||String(ee||"").toLowerCase().replace(/s$/,"")},u:function(ee){return ee===void 0}},M="en",k={};k[M]=B;var F="$isDayjsObject",W=function(ee){return ee instanceof ue||!(!ee||!ee[F])},ne=function ee(H,V,ie){var Z;if(!H)return M;if(typeof H=="string"){var $=H.toLowerCase();k[$]&&(Z=$),V&&(k[$]=V,Z=$);var I=H.split("-");if(!Z&&I.length>1)return ee(I[0])}else{var fe=H.name;k[fe]=H,Z=fe}return!ie&&Z&&(M=Z),Z||!ie&&M},L=function(ee,H){if(W(ee))return ee.clone();var V=typeof H=="object"?H:{};return V.date=ee,V.args=arguments,new ue(V)},Q=j;Q.l=ne,Q.i=W,Q.w=function(ee,H){return L(ee,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var ue=function(){function ee(V){this.$L=ne(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[F]=!0}var H=ee.prototype;return H.parse=function(V){this.$d=function(ie){var Z=ie.date,$=ie.utc;if(Z===null)return new Date(NaN);if(Q.u(Z))return new Date;if(Z instanceof Date)return new Date(Z);if(typeof Z=="string"&&!/Z$/i.test(Z)){var I=Z.match(S);if(I){var fe=I[2]-1||0,we=(I[7]||"0").substring(0,3);return $?new Date(Date.UTC(I[1],fe,I[3]||1,I[4]||0,I[5]||0,I[6]||0,we)):new Date(I[1],fe,I[3]||1,I[4]||0,I[5]||0,I[6]||0,we)}}return new Date(Z)}(V),this.init()},H.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},H.$utils=function(){return Q},H.isValid=function(){return this.$d.toString()!==v},H.isSame=function(V,ie){var Z=L(V);return this.startOf(ie)<=Z&&Z<=this.endOf(ie)},H.isAfter=function(V,ie){return L(V)<this.startOf(ie)},H.isBefore=function(V,ie){return this.endOf(ie)<L(V)},H.$g=function(V,ie,Z){return Q.u(V)?this[ie]:this.set(Z,V)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(V,ie){var Z=this,$=!!Q.u(ie)||ie,I=Q.p(V),fe=function(Re,Pe){var en=Q.w(Z.$u?Date.UTC(Z.$y,Pe,Re):new Date(Z.$y,Pe,Re),Z);return $?en:en.endOf(c)},we=function(Re,Pe){return Q.w(Z.toDate()[Re].apply(Z.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(Pe)),Z)},P=this.$W,Be=this.$M,Me=this.$D,ke="set"+(this.$u?"UTC":"");switch(I){case A:return $?fe(1,0):fe(31,11);case u:return $?fe(1,Be):fe(0,Be+1);case h:var Ue=this.$locale().weekStart||0,ze=(P<Ue?P+7:P)-Ue;return fe($?Me-ze:Me+(6-ze),Be);case c:case b:return we(ke+"Hours",0);case s:return we(ke+"Minutes",1);case l:return we(ke+"Seconds",2);case o:return we(ke+"Milliseconds",3);default:return this.clone()}},H.endOf=function(V){return this.startOf(V,!1)},H.$set=function(V,ie){var Z,$=Q.p(V),I="set"+(this.$u?"UTC":""),fe=(Z={},Z[c]=I+"Date",Z[b]=I+"Date",Z[u]=I+"Month",Z[A]=I+"FullYear",Z[s]=I+"Hours",Z[l]=I+"Minutes",Z[o]=I+"Seconds",Z[a]=I+"Milliseconds",Z)[$],we=$===c?this.$D+(ie-this.$W):ie;if($===u||$===A){var P=this.clone().set(b,1);P.$d[fe](we),P.init(),this.$d=P.set(b,Math.min(this.$D,P.daysInMonth())).$d}else fe&&this.$d[fe](we);return this.init(),this},H.set=function(V,ie){return this.clone().$set(V,ie)},H.get=function(V){return this[Q.p(V)]()},H.add=function(V,ie){var Z,$=this;V=Number(V);var I=Q.p(ie),fe=function(Be){var Me=L($);return Q.w(Me.date(Me.date()+Math.round(Be*V)),$)};if(I===u)return this.set(u,this.$M+V);if(I===A)return this.set(A,this.$y+V);if(I===c)return fe(1);if(I===h)return fe(7);var we=(Z={},Z[l]=r,Z[s]=i,Z[o]=t,Z)[I]||1,P=this.$d.getTime()+V*we;return Q.w(P,this)},H.subtract=function(V,ie){return this.add(-1*V,ie)},H.format=function(V){var ie=this,Z=this.$locale();if(!this.isValid())return Z.invalidDate||v;var $=V||"YYYY-MM-DDTHH:mm:ssZ",I=Q.z(this),fe=this.$H,we=this.$m,P=this.$M,Be=Z.weekdays,Me=Z.months,ke=Z.meridiem,Ue=function(Pe,en,Je,kn){return Pe&&(Pe[en]||Pe(ie,$))||Je[en].slice(0,kn)},ze=function(Pe){return Q.s(fe%12||12,Pe,"0")},Re=ke||function(Pe,en,Je){var kn=Pe<12?"AM":"PM";return Je?kn.toLowerCase():kn};return $.replace(O,function(Pe,en){return en||function(Je){switch(Je){case"YY":return String(ie.$y).slice(-2);case"YYYY":return Q.s(ie.$y,4,"0");case"M":return P+1;case"MM":return Q.s(P+1,2,"0");case"MMM":return Ue(Z.monthsShort,P,Me,3);case"MMMM":return Ue(Me,P);case"D":return ie.$D;case"DD":return Q.s(ie.$D,2,"0");case"d":return String(ie.$W);case"dd":return Ue(Z.weekdaysMin,ie.$W,Be,2);case"ddd":return Ue(Z.weekdaysShort,ie.$W,Be,3);case"dddd":return Be[ie.$W];case"H":return String(fe);case"HH":return Q.s(fe,2,"0");case"h":return ze(1);case"hh":return ze(2);case"a":return Re(fe,we,!0);case"A":return Re(fe,we,!1);case"m":return String(we);case"mm":return Q.s(we,2,"0");case"s":return String(ie.$s);case"ss":return Q.s(ie.$s,2,"0");case"SSS":return Q.s(ie.$ms,3,"0");case"Z":return I}return null}(Pe)||I.replace(":","")})},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(V,ie,Z){var $,I=this,fe=Q.p(ie),we=L(V),P=(we.utcOffset()-this.utcOffset())*r,Be=this-we,Me=function(){return Q.m(I,we)};switch(fe){case A:$=Me()/12;break;case u:$=Me();break;case f:$=Me()/3;break;case h:$=(Be-P)/6048e5;break;case c:$=(Be-P)/864e5;break;case s:$=Be/i;break;case l:$=Be/r;break;case o:$=Be/t;break;default:$=Be}return Z?$:Q.a($)},H.daysInMonth=function(){return this.endOf(u).$D},H.$locale=function(){return k[this.$L]},H.locale=function(V,ie){if(!V)return this.$L;var Z=this.clone(),$=ne(V,ie,!0);return $&&(Z.$L=$),Z},H.clone=function(){return Q.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},ee}(),ye=ue.prototype;return L.prototype=ye,[["$ms",a],["$s",o],["$m",l],["$H",s],["$W",c],["$M",u],["$y",A],["$D",b]].forEach(function(ee){ye[ee[1]]=function(H){return this.$g(H,ee[0],ee[1])}}),L.extend=function(ee,H){return ee.$i||(ee(H,ue,L),ee.$i=!0),L},L.locale=ne,L.isDayjs=W,L.unix=function(ee){return L(1e3*ee)},L.en=k[M],L.Ls=k,L.p={},L})})(ml);var _d=ml.exports;const Td=Tr(_d),Ld=e=>Td(e).format("YYYY-MM-DD HH:mm:ss"),jd=e=>q.jsx(te.Typography.Paragraph,{copyable:!0,children:e}),Dd=e=>q.jsx(te.Typography.Ellipsis,{style:{maxWidth:300},rows:1,showTooltip:!0,children:e});function Md(e){if(typeof e!="object"||e===null)return!1;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n||Object.getPrototypeOf(e)===null}function zd(e){return Md(e)&&"type"in e&&typeof e.type=="string"}var yl=Symbol.for("immer-nothing"),Al=Symbol.for("immer-draftable"),dn=Symbol.for("immer-state"),Fd=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function un(e,...n){if(process.env.NODE_ENV!=="production"){const t=Fd[e],r=typeof t=="function"?t.apply(null,n):t;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var gt=Object.getPrototypeOf;function $n(e){return!!e&&!!e[dn]}function Tn(e){var n;return e?gl(e)||Array.isArray(e)||!!e[Al]||!!((n=e.constructor)!=null&&n[Al])||Dr(e)||Mr(e):!1}var Rd=Object.prototype.constructor.toString();function gl(e){if(!e||typeof e!="object")return!1;const n=gt(e);if(n===null)return!0;const t=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return t===Object?!0:typeof t=="function"&&Function.toString.call(t)===Rd}function Lr(e,n){jr(e)===0?Reflect.ownKeys(e).forEach(t=>{n(t,e[t],e)}):e.forEach((t,r)=>n(r,t,e))}function jr(e){const n=e[dn];return n?n.type_:Array.isArray(e)?1:Dr(e)?2:Mr(e)?3:0}function Hi(e,n){return jr(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function bl(e,n,t){const r=jr(e);r===2?e.set(n,t):r===3?e.add(t):e[n]=t}function Nd(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function Dr(e){return e instanceof Map}function Mr(e){return e instanceof Set}function nt(e){return e.copy_||e.base_}function $i(e,n){if(Dr(e))return new Map(e);if(Mr(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const t=gl(e);if(n===!0||n==="class_only"&&!t){const r=Object.getOwnPropertyDescriptors(e);delete r[dn];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const o=i[a],l=r[o];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(r[o]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[o]})}return Object.create(gt(e),r)}else{const r=gt(e);if(r!==null&&t)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function Wi(e,n=!1){return zr(e)||$n(e)||!Tn(e)||(jr(e)>1&&(e.set=e.add=e.clear=e.delete=qd),Object.freeze(e),n&&Object.entries(e).forEach(([t,r])=>Wi(r,!0))),e}function qd(){un(2)}function zr(e){return Object.isFrozen(e)}var Ud={};function tt(e){const n=Ud[e];return n||un(0,e),n}var qt;function vl(){return qt}function Hd(e,n){return{drafts_:[],parent_:e,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function xl(e,n){n&&(tt("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=n)}function Yi(e){Vi(e),e.drafts_.forEach($d),e.drafts_=null}function Vi(e){e===qt&&(qt=e.parent_)}function wl(e){return qt=Hd(qt,e)}function $d(e){const n=e[dn];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function kl(e,n){n.unfinalizedDrafts_=n.drafts_.length;const t=n.drafts_[0];return e!==void 0&&e!==t?(t[dn].modified_&&(Yi(n),un(4)),Tn(e)&&(e=Fr(n,e),n.parent_||Rr(n,e)),n.patches_&&tt("Patches").generateReplacementPatches_(t[dn].base_,e,n.patches_,n.inversePatches_)):e=Fr(n,t,[]),Yi(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==yl?e:void 0}function Fr(e,n,t){if(zr(n))return n;const r=n[dn];if(!r)return Lr(n,(i,a)=>El(e,r,n,i,a,t)),n;if(r.scope_!==e)return n;if(!r.modified_)return Rr(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,o=!1;r.type_===3&&(a=new Set(i),i.clear(),o=!0),Lr(a,(l,s)=>El(e,r,i,l,s,t,o)),Rr(e,i,!1),t&&e.patches_&&tt("Patches").generatePatches_(r,t,e.patches_,e.inversePatches_)}return r.copy_}function El(e,n,t,r,i,a,o){if(process.env.NODE_ENV!=="production"&&i===t&&un(5),$n(i)){const l=a&&n&&n.type_!==3&&!Hi(n.assigned_,r)?a.concat(r):void 0,s=Fr(e,i,l);if(bl(t,r,s),$n(s))e.canAutoFreeze_=!1;else return}else o&&t.add(i);if(Tn(i)&&!zr(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Fr(e,i),(!n||!n.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(t,r)&&Rr(e,i)}}function Rr(e,n,t=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Wi(n,t)}function Wd(e,n){const t=Array.isArray(e),r={type_:t?1:0,scope_:n?n.scope_:vl(),modified_:!1,finalized_:!1,assigned_:{},parent_:n,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=Ki;t&&(i=[r],a=Ut);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return r.draft_=l,r.revoke_=o,l}var Ki={get(e,n){if(n===dn)return e;const t=nt(e);if(!Hi(t,n))return Yd(e,t,n);const r=t[n];return e.finalized_||!Tn(r)?r:r===Qi(e.base_,n)?(Zi(e),e.copy_[n]=Xi(r,e)):r},has(e,n){return n in nt(e)},ownKeys(e){return Reflect.ownKeys(nt(e))},set(e,n,t){const r=Cl(nt(e),n);if(r!=null&&r.set)return r.set.call(e.draft_,t),!0;if(!e.modified_){const i=Qi(nt(e),n),a=i==null?void 0:i[dn];if(a&&a.base_===t)return e.copy_[n]=t,e.assigned_[n]=!1,!0;if(Nd(t,i)&&(t!==void 0||Hi(e.base_,n)))return!0;Zi(e),Ji(e)}return e.copy_[n]===t&&(t!==void 0||n in e.copy_)||Number.isNaN(t)&&Number.isNaN(e.copy_[n])||(e.copy_[n]=t,e.assigned_[n]=!0),!0},deleteProperty(e,n){return Qi(e.base_,n)!==void 0||n in e.base_?(e.assigned_[n]=!1,Zi(e),Ji(e)):delete e.assigned_[n],e.copy_&&delete e.copy_[n],!0},getOwnPropertyDescriptor(e,n){const t=nt(e),r=Reflect.getOwnPropertyDescriptor(t,n);return r&&{writable:!0,configurable:e.type_!==1||n!=="length",enumerable:r.enumerable,value:t[n]}},defineProperty(){un(11)},getPrototypeOf(e){return gt(e.base_)},setPrototypeOf(){un(12)}},Ut={};Lr(Ki,(e,n)=>{Ut[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}}),Ut.deleteProperty=function(e,n){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(n))&&un(13),Ut.set.call(this,e,n,void 0)},Ut.set=function(e,n,t){return process.env.NODE_ENV!=="production"&&n!=="length"&&isNaN(parseInt(n))&&un(14),Ki.set.call(this,e[0],n,t,e[0])};function Qi(e,n){const t=e[dn];return(t?nt(t):e)[n]}function Yd(e,n,t){var i;const r=Cl(n,t);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Cl(e,n){if(!(n in e))return;let t=gt(e);for(;t;){const r=Object.getOwnPropertyDescriptor(t,n);if(r)return r;t=gt(t)}}function Ji(e){e.modified_||(e.modified_=!0,e.parent_&&Ji(e.parent_))}function Zi(e){e.copy_||(e.copy_=$i(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Vd=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,t,r)=>{if(typeof n=="function"&&typeof t!="function"){const a=t;t=n;const o=this;return function(s=a,...c){return o.produce(s,h=>t.call(this,h,...c))}}typeof t!="function"&&un(6),r!==void 0&&typeof r!="function"&&un(7);let i;if(Tn(n)){const a=wl(this),o=Xi(n,void 0);let l=!0;try{i=t(o),l=!1}finally{l?Yi(a):Vi(a)}return xl(a,r),kl(i,a)}else if(!n||typeof n!="object"){if(i=t(n),i===void 0&&(i=n),i===yl&&(i=void 0),this.autoFreeze_&&Wi(i,!0),r){const a=[],o=[];tt("Patches").generateReplacementPatches_(n,i,a,o),r(a,o)}return i}else un(1,n)},this.produceWithPatches=(n,t)=>{if(typeof n=="function")return(o,...l)=>this.produceWithPatches(o,s=>n(s,...l));let r,i;return[this.produce(n,t,(o,l)=>{r=o,i=l}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Tn(e)||un(8),$n(e)&&(e=Sl(e));const n=wl(this),t=Xi(e,void 0);return t[dn].isManual_=!0,Vi(n),t}finishDraft(e,n){const t=e&&e[dn];(!t||!t.isManual_)&&un(9);const{scope_:r}=t;return xl(r,n),kl(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,n){let t;for(t=n.length-1;t>=0;t--){const i=n[t];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}t>-1&&(n=n.slice(t+1));const r=tt("Patches").applyPatches_;return $n(e)?r(e,n):this.produce(e,i=>r(i,n))}};function Xi(e,n){const t=Dr(e)?tt("MapSet").proxyMap_(e,n):Mr(e)?tt("MapSet").proxySet_(e,n):Wd(e,n);return(n?n.scope_:vl()).drafts_.push(t),t}function Sl(e){return $n(e)||un(10,e),Bl(e)}function Bl(e){if(!Tn(e)||zr(e))return e;const n=e[dn];let t;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,t=$i(e,n.scope_.immer_.useStrictShallowCopy_)}else t=$i(e,!0);return Lr(t,(r,i)=>{bl(t,r,Bl(i))}),n&&(n.finalized_=!1),t}var fn=new Vd,Il=fn.produce;fn.produceWithPatches.bind(fn),fn.setAutoFreeze.bind(fn),fn.setUseStrictShallowCopy.bind(fn),fn.applyPatches.bind(fn),fn.createDraft.bind(fn),fn.finishDraft.bind(fn);var Kd=(e,n,t)=>{if(n.length===1&&n[0]===t){let r=!1;try{const i={};e(i)===i&&(r=!0)}catch{}if(r){let i;try{throw new Error}catch(a){({stack:i}=a)}console.warn(`The result function returned its own inputs without modification. e.g
30
+ Check the top-level render call using <`+ae+">.")}return Y}}function ci(T,Y){{if(!T._store||T._store.validated||T.key!=null)return;T._store.validated=!0;var ae=ui(Y);if(rr[ae])return;rr[ae]=!0;var pe="";T&&T._owner&&T._owner!==dt.current&&(pe=" It was passed a child from "+ye(T._owner.type)+"."),Nn(T),B('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ae,pe),Nn(null)}}function ir(T,Y){{if(typeof T!="object")return;if(Vn(T))for(var ae=0;ae<T.length;ae++){var pe=T[ae];Kn(pe)&&ci(pe,Y)}else if(Kn(T))T._store&&(T._store.validated=!0);else if(T){var Ie=S(T);if(typeof Ie=="function"&&Ie!==T.entries)for(var Te=Ie.call(T),xe;!(xe=Te.next()).done;)Kn(xe.value)&&ci(xe.value,Y)}}}function ft(T){{var Y=T.type;if(Y==null||typeof Y=="string")return;var ae;if(typeof Y=="function")ae=Y.propTypes;else if(typeof Y=="object"&&(Y.$$typeof===s||Y.$$typeof===u))ae=Y.propTypes;else return;if(ae){var pe=ye(Y);St(ae,T.props,"prop",pe,T)}else if(Y.PropTypes!==void 0&&!nr){nr=!0;var Ie=ye(Y);B("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ie||"Unknown")}typeof Y.getDefaultProps=="function"&&!Y.getDefaultProps.isReactClassApproved&&B("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function da(T){{for(var Y=Object.keys(T.props),ae=0;ae<Y.length;ae++){var pe=Y[ae];if(pe!=="children"&&pe!=="key"){Nn(T),B("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",pe),Nn(null);break}}T.ref!==null&&(Nn(T),B("Invalid attribute `ref` supplied to `React.Fragment`."),Nn(null))}}function pi(T,Y,ae,pe,Ie,Te){{var xe=L(T);if(!xe){var ve="";(T===void 0||typeof T=="object"&&T!==null&&Object.keys(T).length===0)&&(ve+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var nn=si();nn?ve+=nn:ve+=tr();var je;T===null?je="null":Vn(T)?je="array":T!==void 0&&T.$$typeof===n?(je="<"+(ye(T.type)||"Unknown")+" />",ve=" Did you accidentally export a JSX literal instead of a component?"):je=typeof T,B("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",je,ve)}var qe=ln(T,Y,ae,Ie,Te);if(qe==null)return qe;if(xe){var sn=Y.children;if(sn!==void 0)if(pe)if(Vn(sn)){for(var qn=0;qn<sn.length;qn++)ir(sn[qn],T);Object.freeze&&Object.freeze(sn)}else B("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ir(sn,T)}return T===r?da(qe):ft(qe),qe}}function di(T,Y,ae){return pi(T,Y,ae,!0)}function fi(T,Y,ae){return pi(T,Y,ae,!1)}var fa=fi,ha=di;qt.Fragment=r,qt.jsx=fa,qt.jsxs=ha}()),qt}process.env.NODE_ENV==="production"?Ui.exports=_d():Ui.exports=Ld();var q=Ui.exports,ml={exports:{}};(function(e,n){(function(t,r){e.exports=r()})(_r,function(){var t=1e3,r=6e4,i=36e5,a="millisecond",o="second",l="minute",s="hour",c="day",h="week",u="month",f="quarter",A="year",b="date",v="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,O=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,B={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(ee){var H=["th","st","nd","rd"],V=ee%100;return"["+ee+(H[(V-20)%10]||H[V]||H[0])+"]"}},_=function(ee,H,V){var ie=String(ee);return!ie||ie.length>=H?ee:""+Array(H+1-ie.length).join(V)+ee},j={s:_,z:function(ee){var H=-ee.utcOffset(),V=Math.abs(H),ie=Math.floor(V/60),Z=V%60;return(H<=0?"+":"-")+_(ie,2,"0")+":"+_(Z,2,"0")},m:function ee(H,V){if(H.date()<V.date())return-ee(V,H);var ie=12*(V.year()-H.year())+(V.month()-H.month()),Z=H.clone().add(ie,u),$=V-Z<0,I=H.clone().add(ie+($?-1:1),u);return+(-(ie+(V-Z)/($?Z-I:I-Z))||0)},a:function(ee){return ee<0?Math.ceil(ee)||0:Math.floor(ee)},p:function(ee){return{M:u,y:A,w:h,d:c,D:b,h:s,m:l,s:o,ms:a,Q:f}[ee]||String(ee||"").toLowerCase().replace(/s$/,"")},u:function(ee){return ee===void 0}},M="en",k={};k[M]=B;var F="$isDayjsObject",W=function(ee){return ee instanceof ue||!(!ee||!ee[F])},ne=function ee(H,V,ie){var Z;if(!H)return M;if(typeof H=="string"){var $=H.toLowerCase();k[$]&&(Z=$),V&&(k[$]=V,Z=$);var I=H.split("-");if(!Z&&I.length>1)return ee(I[0])}else{var fe=H.name;k[fe]=H,Z=fe}return!ie&&Z&&(M=Z),Z||!ie&&M},L=function(ee,H){if(W(ee))return ee.clone();var V=typeof H=="object"?H:{};return V.date=ee,V.args=arguments,new ue(V)},Q=j;Q.l=ne,Q.i=W,Q.w=function(ee,H){return L(ee,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var ue=function(){function ee(V){this.$L=ne(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[F]=!0}var H=ee.prototype;return H.parse=function(V){this.$d=function(ie){var Z=ie.date,$=ie.utc;if(Z===null)return new Date(NaN);if(Q.u(Z))return new Date;if(Z instanceof Date)return new Date(Z);if(typeof Z=="string"&&!/Z$/i.test(Z)){var I=Z.match(S);if(I){var fe=I[2]-1||0,we=(I[7]||"0").substring(0,3);return $?new Date(Date.UTC(I[1],fe,I[3]||1,I[4]||0,I[5]||0,I[6]||0,we)):new Date(I[1],fe,I[3]||1,I[4]||0,I[5]||0,I[6]||0,we)}}return new Date(Z)}(V),this.init()},H.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},H.$utils=function(){return Q},H.isValid=function(){return this.$d.toString()!==v},H.isSame=function(V,ie){var Z=L(V);return this.startOf(ie)<=Z&&Z<=this.endOf(ie)},H.isAfter=function(V,ie){return L(V)<this.startOf(ie)},H.isBefore=function(V,ie){return this.endOf(ie)<L(V)},H.$g=function(V,ie,Z){return Q.u(V)?this[ie]:this.set(Z,V)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(V,ie){var Z=this,$=!!Q.u(ie)||ie,I=Q.p(V),fe=function(Ne,Pe){var en=Q.w(Z.$u?Date.UTC(Z.$y,Pe,Ne):new Date(Z.$y,Pe,Ne),Z);return $?en:en.endOf(c)},we=function(Ne,Pe){return Q.w(Z.toDate()[Ne].apply(Z.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(Pe)),Z)},P=this.$W,Be=this.$M,Me=this.$D,ke="set"+(this.$u?"UTC":"");switch(I){case A:return $?fe(1,0):fe(31,11);case u:return $?fe(1,Be):fe(0,Be+1);case h:var $e=this.$locale().weekStart||0,ze=(P<$e?P+7:P)-$e;return fe($?Me-ze:Me+(6-ze),Be);case c:case b:return we(ke+"Hours",0);case s:return we(ke+"Minutes",1);case l:return we(ke+"Seconds",2);case o:return we(ke+"Milliseconds",3);default:return this.clone()}},H.endOf=function(V){return this.startOf(V,!1)},H.$set=function(V,ie){var Z,$=Q.p(V),I="set"+(this.$u?"UTC":""),fe=(Z={},Z[c]=I+"Date",Z[b]=I+"Date",Z[u]=I+"Month",Z[A]=I+"FullYear",Z[s]=I+"Hours",Z[l]=I+"Minutes",Z[o]=I+"Seconds",Z[a]=I+"Milliseconds",Z)[$],we=$===c?this.$D+(ie-this.$W):ie;if($===u||$===A){var P=this.clone().set(b,1);P.$d[fe](we),P.init(),this.$d=P.set(b,Math.min(this.$D,P.daysInMonth())).$d}else fe&&this.$d[fe](we);return this.init(),this},H.set=function(V,ie){return this.clone().$set(V,ie)},H.get=function(V){return this[Q.p(V)]()},H.add=function(V,ie){var Z,$=this;V=Number(V);var I=Q.p(ie),fe=function(Be){var Me=L($);return Q.w(Me.date(Me.date()+Math.round(Be*V)),$)};if(I===u)return this.set(u,this.$M+V);if(I===A)return this.set(A,this.$y+V);if(I===c)return fe(1);if(I===h)return fe(7);var we=(Z={},Z[l]=r,Z[s]=i,Z[o]=t,Z)[I]||1,P=this.$d.getTime()+V*we;return Q.w(P,this)},H.subtract=function(V,ie){return this.add(-1*V,ie)},H.format=function(V){var ie=this,Z=this.$locale();if(!this.isValid())return Z.invalidDate||v;var $=V||"YYYY-MM-DDTHH:mm:ssZ",I=Q.z(this),fe=this.$H,we=this.$m,P=this.$M,Be=Z.weekdays,Me=Z.months,ke=Z.meridiem,$e=function(Pe,en,Je,kn){return Pe&&(Pe[en]||Pe(ie,$))||Je[en].slice(0,kn)},ze=function(Pe){return Q.s(fe%12||12,Pe,"0")},Ne=ke||function(Pe,en,Je){var kn=Pe<12?"AM":"PM";return Je?kn.toLowerCase():kn};return $.replace(O,function(Pe,en){return en||function(Je){switch(Je){case"YY":return String(ie.$y).slice(-2);case"YYYY":return Q.s(ie.$y,4,"0");case"M":return P+1;case"MM":return Q.s(P+1,2,"0");case"MMM":return $e(Z.monthsShort,P,Me,3);case"MMMM":return $e(Me,P);case"D":return ie.$D;case"DD":return Q.s(ie.$D,2,"0");case"d":return String(ie.$W);case"dd":return $e(Z.weekdaysMin,ie.$W,Be,2);case"ddd":return $e(Z.weekdaysShort,ie.$W,Be,3);case"dddd":return Be[ie.$W];case"H":return String(fe);case"HH":return Q.s(fe,2,"0");case"h":return ze(1);case"hh":return ze(2);case"a":return Ne(fe,we,!0);case"A":return Ne(fe,we,!1);case"m":return String(we);case"mm":return Q.s(we,2,"0");case"s":return String(ie.$s);case"ss":return Q.s(ie.$s,2,"0");case"SSS":return Q.s(ie.$ms,3,"0");case"Z":return I}return null}(Pe)||I.replace(":","")})},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(V,ie,Z){var $,I=this,fe=Q.p(ie),we=L(V),P=(we.utcOffset()-this.utcOffset())*r,Be=this-we,Me=function(){return Q.m(I,we)};switch(fe){case A:$=Me()/12;break;case u:$=Me();break;case f:$=Me()/3;break;case h:$=(Be-P)/6048e5;break;case c:$=(Be-P)/864e5;break;case s:$=Be/i;break;case l:$=Be/r;break;case o:$=Be/t;break;default:$=Be}return Z?$:Q.a($)},H.daysInMonth=function(){return this.endOf(u).$D},H.$locale=function(){return k[this.$L]},H.locale=function(V,ie){if(!V)return this.$L;var Z=this.clone(),$=ne(V,ie,!0);return $&&(Z.$L=$),Z},H.clone=function(){return Q.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},ee}(),ye=ue.prototype;return L.prototype=ye,[["$ms",a],["$s",o],["$m",l],["$H",s],["$W",c],["$M",u],["$y",A],["$D",b]].forEach(function(ee){ye[ee[1]]=function(H){return this.$g(H,ee[0],ee[1])}}),L.extend=function(ee,H){return ee.$i||(ee(H,ue,L),ee.$i=!0),L},L.locale=ne,L.isDayjs=W,L.unix=function(ee){return L(1e3*ee)},L.en=k[M],L.Ls=k,L.p={},L})})(ml);var jd=ml.exports;const Dd=Lr(jd),Md=e=>Dd(e).format("YYYY-MM-DD HH:mm:ss"),zd=e=>q.jsx(te.Typography.Paragraph,{copyable:!0,children:e}),Fd=e=>q.jsx(te.Typography.Ellipsis,{style:{maxWidth:300},rows:1,showTooltip:!0,children:e});function Rd(e){if(typeof e!="object"||e===null)return!1;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n||Object.getPrototypeOf(e)===null}function Nd(e){return Rd(e)&&"type"in e&&typeof e.type=="string"}var yl=Symbol.for("immer-nothing"),Al=Symbol.for("immer-draftable"),dn=Symbol.for("immer-state"),qd=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function un(e,...n){if(process.env.NODE_ENV!=="production"){const t=qd[e],r=typeof t=="function"?t.apply(null,n):t;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var gt=Object.getPrototypeOf;function $n(e){return!!e&&!!e[dn]}function _n(e){var n;return e?gl(e)||Array.isArray(e)||!!e[Al]||!!((n=e.constructor)!=null&&n[Al])||Mr(e)||zr(e):!1}var Ud=Object.prototype.constructor.toString();function gl(e){if(!e||typeof e!="object")return!1;const n=gt(e);if(n===null)return!0;const t=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return t===Object?!0:typeof t=="function"&&Function.toString.call(t)===Ud}function jr(e,n){Dr(e)===0?Reflect.ownKeys(e).forEach(t=>{n(t,e[t],e)}):e.forEach((t,r)=>n(r,t,e))}function Dr(e){const n=e[dn];return n?n.type_:Array.isArray(e)?1:Mr(e)?2:zr(e)?3:0}function Hi(e,n){return Dr(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function bl(e,n,t){const r=Dr(e);r===2?e.set(n,t):r===3?e.add(t):e[n]=t}function Hd(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function Mr(e){return e instanceof Map}function zr(e){return e instanceof Set}function nt(e){return e.copy_||e.base_}function $i(e,n){if(Mr(e))return new Map(e);if(zr(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const t=gl(e);if(n===!0||n==="class_only"&&!t){const r=Object.getOwnPropertyDescriptors(e);delete r[dn];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const o=i[a],l=r[o];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(r[o]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[o]})}return Object.create(gt(e),r)}else{const r=gt(e);if(r!==null&&t)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function Wi(e,n=!1){return Fr(e)||$n(e)||!_n(e)||(Dr(e)>1&&(e.set=e.add=e.clear=e.delete=$d),Object.freeze(e),n&&Object.entries(e).forEach(([t,r])=>Wi(r,!0))),e}function $d(){un(2)}function Fr(e){return Object.isFrozen(e)}var Wd={};function tt(e){const n=Wd[e];return n||un(0,e),n}var Ut;function vl(){return Ut}function Yd(e,n){return{drafts_:[],parent_:e,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function xl(e,n){n&&(tt("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=n)}function Yi(e){Vi(e),e.drafts_.forEach(Vd),e.drafts_=null}function Vi(e){e===Ut&&(Ut=e.parent_)}function wl(e){return Ut=Yd(Ut,e)}function Vd(e){const n=e[dn];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function kl(e,n){n.unfinalizedDrafts_=n.drafts_.length;const t=n.drafts_[0];return e!==void 0&&e!==t?(t[dn].modified_&&(Yi(n),un(4)),_n(e)&&(e=Rr(n,e),n.parent_||Nr(n,e)),n.patches_&&tt("Patches").generateReplacementPatches_(t[dn].base_,e,n.patches_,n.inversePatches_)):e=Rr(n,t,[]),Yi(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==yl?e:void 0}function Rr(e,n,t){if(Fr(n))return n;const r=n[dn];if(!r)return jr(n,(i,a)=>El(e,r,n,i,a,t)),n;if(r.scope_!==e)return n;if(!r.modified_)return Nr(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,o=!1;r.type_===3&&(a=new Set(i),i.clear(),o=!0),jr(a,(l,s)=>El(e,r,i,l,s,t,o)),Nr(e,i,!1),t&&e.patches_&&tt("Patches").generatePatches_(r,t,e.patches_,e.inversePatches_)}return r.copy_}function El(e,n,t,r,i,a,o){if(process.env.NODE_ENV!=="production"&&i===t&&un(5),$n(i)){const l=a&&n&&n.type_!==3&&!Hi(n.assigned_,r)?a.concat(r):void 0,s=Rr(e,i,l);if(bl(t,r,s),$n(s))e.canAutoFreeze_=!1;else return}else o&&t.add(i);if(_n(i)&&!Fr(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Rr(e,i),(!n||!n.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(t,r)&&Nr(e,i)}}function Nr(e,n,t=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Wi(n,t)}function Kd(e,n){const t=Array.isArray(e),r={type_:t?1:0,scope_:n?n.scope_:vl(),modified_:!1,finalized_:!1,assigned_:{},parent_:n,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=Ki;t&&(i=[r],a=Ht);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return r.draft_=l,r.revoke_=o,l}var Ki={get(e,n){if(n===dn)return e;const t=nt(e);if(!Hi(t,n))return Qd(e,t,n);const r=t[n];return e.finalized_||!_n(r)?r:r===Qi(e.base_,n)?(Zi(e),e.copy_[n]=Xi(r,e)):r},has(e,n){return n in nt(e)},ownKeys(e){return Reflect.ownKeys(nt(e))},set(e,n,t){const r=Cl(nt(e),n);if(r!=null&&r.set)return r.set.call(e.draft_,t),!0;if(!e.modified_){const i=Qi(nt(e),n),a=i==null?void 0:i[dn];if(a&&a.base_===t)return e.copy_[n]=t,e.assigned_[n]=!1,!0;if(Hd(t,i)&&(t!==void 0||Hi(e.base_,n)))return!0;Zi(e),Ji(e)}return e.copy_[n]===t&&(t!==void 0||n in e.copy_)||Number.isNaN(t)&&Number.isNaN(e.copy_[n])||(e.copy_[n]=t,e.assigned_[n]=!0),!0},deleteProperty(e,n){return Qi(e.base_,n)!==void 0||n in e.base_?(e.assigned_[n]=!1,Zi(e),Ji(e)):delete e.assigned_[n],e.copy_&&delete e.copy_[n],!0},getOwnPropertyDescriptor(e,n){const t=nt(e),r=Reflect.getOwnPropertyDescriptor(t,n);return r&&{writable:!0,configurable:e.type_!==1||n!=="length",enumerable:r.enumerable,value:t[n]}},defineProperty(){un(11)},getPrototypeOf(e){return gt(e.base_)},setPrototypeOf(){un(12)}},Ht={};jr(Ki,(e,n)=>{Ht[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}}),Ht.deleteProperty=function(e,n){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(n))&&un(13),Ht.set.call(this,e,n,void 0)},Ht.set=function(e,n,t){return process.env.NODE_ENV!=="production"&&n!=="length"&&isNaN(parseInt(n))&&un(14),Ki.set.call(this,e[0],n,t,e[0])};function Qi(e,n){const t=e[dn];return(t?nt(t):e)[n]}function Qd(e,n,t){var i;const r=Cl(n,t);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Cl(e,n){if(!(n in e))return;let t=gt(e);for(;t;){const r=Object.getOwnPropertyDescriptor(t,n);if(r)return r;t=gt(t)}}function Ji(e){e.modified_||(e.modified_=!0,e.parent_&&Ji(e.parent_))}function Zi(e){e.copy_||(e.copy_=$i(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Jd=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,t,r)=>{if(typeof n=="function"&&typeof t!="function"){const a=t;t=n;const o=this;return function(s=a,...c){return o.produce(s,h=>t.call(this,h,...c))}}typeof t!="function"&&un(6),r!==void 0&&typeof r!="function"&&un(7);let i;if(_n(n)){const a=wl(this),o=Xi(n,void 0);let l=!0;try{i=t(o),l=!1}finally{l?Yi(a):Vi(a)}return xl(a,r),kl(i,a)}else if(!n||typeof n!="object"){if(i=t(n),i===void 0&&(i=n),i===yl&&(i=void 0),this.autoFreeze_&&Wi(i,!0),r){const a=[],o=[];tt("Patches").generateReplacementPatches_(n,i,a,o),r(a,o)}return i}else un(1,n)},this.produceWithPatches=(n,t)=>{if(typeof n=="function")return(o,...l)=>this.produceWithPatches(o,s=>n(s,...l));let r,i;return[this.produce(n,t,(o,l)=>{r=o,i=l}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){_n(e)||un(8),$n(e)&&(e=Sl(e));const n=wl(this),t=Xi(e,void 0);return t[dn].isManual_=!0,Vi(n),t}finishDraft(e,n){const t=e&&e[dn];(!t||!t.isManual_)&&un(9);const{scope_:r}=t;return xl(r,n),kl(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,n){let t;for(t=n.length-1;t>=0;t--){const i=n[t];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}t>-1&&(n=n.slice(t+1));const r=tt("Patches").applyPatches_;return $n(e)?r(e,n):this.produce(e,i=>r(i,n))}};function Xi(e,n){const t=Mr(e)?tt("MapSet").proxyMap_(e,n):zr(e)?tt("MapSet").proxySet_(e,n):Kd(e,n);return(n?n.scope_:vl()).drafts_.push(t),t}function Sl(e){return $n(e)||un(10,e),Bl(e)}function Bl(e){if(!_n(e)||Fr(e))return e;const n=e[dn];let t;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,t=$i(e,n.scope_.immer_.useStrictShallowCopy_)}else t=$i(e,!0);return jr(t,(r,i)=>{bl(t,r,Bl(i))}),n&&(n.finalized_=!1),t}var fn=new Jd,Il=fn.produce;fn.produceWithPatches.bind(fn),fn.setAutoFreeze.bind(fn),fn.setUseStrictShallowCopy.bind(fn),fn.applyPatches.bind(fn),fn.createDraft.bind(fn),fn.finishDraft.bind(fn);var Zd=(e,n,t)=>{if(n.length===1&&n[0]===t){let r=!1;try{const i={};e(i)===i&&(r=!0)}catch{}if(r){let i;try{throw new Error}catch(a){({stack:i}=a)}console.warn(`The result function returned its own inputs without modification. e.g
31
31
  \`createSelector([state => state.todos], todos => todos)\`
32
32
  This could lead to inefficient memoization and unnecessary re-renders.
33
- Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},Qd=(e,n,t)=>{const{memoize:r,memoizeOptions:i}=n,{inputSelectorResults:a,inputSelectorResultsCopy:o}=e,l=r(()=>({}),...i);if(!(l.apply(null,a)===l.apply(null,o))){let c;try{throw new Error}catch(h){({stack:c}=h)}console.warn(`An input selector returned a different result when passed same arguments.
33
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},Xd=(e,n,t)=>{const{memoize:r,memoizeOptions:i}=n,{inputSelectorResults:a,inputSelectorResultsCopy:o}=e,l=r(()=>({}),...i);if(!(l.apply(null,a)===l.apply(null,o))){let c;try{throw new Error}catch(h){({stack:c}=h)}console.warn(`An input selector returned a different result when passed same arguments.
34
34
  This means your output selector will likely run more frequently than intended.
35
35
  Avoid returning a new reference inside your input selector, e.g.
36
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:t,firstInputs:a,secondInputs:o,stack:c})}},Jd={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Zd(e,n=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(n)}function Xd(e,n=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(n)}function Gd(e,n="expected all items to be functions, instead received the following types: "){if(!e.every(t=>typeof t=="function")){const t=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${n}[${t}]`)}}var Ol=e=>Array.isArray(e)?e:[e];function ef(e){const n=Array.isArray(e[0])?e[0]:e;return Gd(n,"createSelector expects all input-selectors to be functions, but received the following types: "),n}function Pl(e,n){const t=[],{length:r}=e;for(let i=0;i<r;i++)t.push(e[i].apply(null,n));return t}var nf=(e,n)=>{const{identityFunctionCheck:t,inputStabilityCheck:r}={...Jd,...n};return{identityFunctionCheck:{shouldRun:t==="always"||t==="once"&&e,run:Kd},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:Qd}}},tf=class{constructor(e){this.value=e}deref(){return this.value}},rf=typeof WeakRef<"u"?WeakRef:tf,of=0,_l=1;function Nr(){return{s:of,v:void 0,o:null,p:null}}function Gi(e,n={}){let t=Nr();const{resultEqualityCheck:r}=n;let i,a=0;function o(){var u;let l=t;const{length:s}=arguments;for(let f=0,A=s;f<A;f++){const b=arguments[f];if(typeof b=="function"||typeof b=="object"&&b!==null){let v=l.o;v===null&&(l.o=v=new WeakMap);const S=v.get(b);S===void 0?(l=Nr(),v.set(b,l)):l=S}else{let v=l.p;v===null&&(l.p=v=new Map);const S=v.get(b);S===void 0?(l=Nr(),v.set(b,l)):l=S}}const c=l;let h;if(l.s===_l?h=l.v:(h=e.apply(null,arguments),a++),c.s=_l,r){const f=((u=i==null?void 0:i.deref)==null?void 0:u.call(i))??i;f!=null&&r(f,h)&&(h=f,a!==0&&a--),i=typeof h=="object"&&h!==null||typeof h=="function"?new rf(h):h}return c.v=h,h}return o.clearCache=()=>{t=Nr(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Tl(e,...n){const t=typeof e=="function"?{memoize:e,memoizeOptions:n}:e,r=(...i)=>{let a=0,o=0,l,s={},c=i.pop();typeof c=="object"&&(s=c,c=i.pop()),Zd(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const h={...t,...s},{memoize:u,memoizeOptions:f=[],argsMemoize:A=Gi,argsMemoizeOptions:b=[],devModeChecks:v={}}=h,S=Ol(f),O=Ol(b),B=ef(i),T=u(function(){return a++,c.apply(null,arguments)},...S);let j=!0;const M=A(function(){o++;const F=Pl(B,arguments);if(l=T.apply(null,F),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:W,inputStabilityCheck:ne}=nf(j,v);if(W.shouldRun&&W.run(c,F,l),ne.shouldRun){const L=Pl(B,arguments);ne.run({inputSelectorResults:F,inputSelectorResultsCopy:L},{memoize:u,memoizeOptions:S},arguments)}j&&(j=!1)}return l},...O);return Object.assign(M,{resultFunc:c,memoizedResultFunc:T,dependencies:B,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>l,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:u,argsMemoize:A})};return Object.assign(r,{withTypes:()=>r}),r}var af=Tl(Gi),lf=Object.assign((e,n=af)=>{Xd(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const t=Object.keys(e),r=t.map(a=>e[a]);return n(r,(...a)=>a.reduce((o,l,s)=>(o[t[s]]=l,o),{}))},{withTypes:()=>lf}),sf=(...e)=>{const n=Tl(...e),t=Object.assign((...r)=>{const i=n(...r),a=(o,...l)=>i($n(o)?Sl(o):o,...l);return Object.assign(a,i),a},{withTypes:()=>t});return t};sf(Gi);var uf=e=>e&&typeof e.match=="function";function Ln(e,n){function t(...r){if(n){let i=n(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?We(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return t.toString=()=>`${e}`,t.type=e,t.match=r=>zd(r)&&r.type===e,t}function Ll(e){return Tn(e)?Il(e,()=>{}):e}function jl(e,n,t){if(e.has(n)){let i=e.get(n);return t.update&&(i=t.update(i,n,e),e.set(n,i)),i}if(!t.insert)throw new Error(process.env.NODE_ENV==="production"?We(10):"No insert provided for key not already in map");const r=t.insert(n,e);return e.set(n,r),r}process.env.NODE_ENV;function Dl(e){const n={},t=[];let r;const i={addCase(a,o){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error(process.env.NODE_ENV==="production"?We(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?We(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof a=="string"?a:a.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?We(28):"`builder.addCase` cannot be called with an empty action type");if(l in n)throw new Error(process.env.NODE_ENV==="production"?We(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return n[l]=o,i},addMatcher(a,o){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?We(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:a,reducer:o}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?We(31):"`builder.addDefaultCase` can only be called once");return r=a,i}};return e(i),[n,t,r]}function cf(e){return typeof e=="function"}function pf(e,n){if(process.env.NODE_ENV!=="production"&&typeof n=="object")throw new Error(process.env.NODE_ENV==="production"?We(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[t,r,i]=Dl(n),a;if(cf(e))a=()=>Ll(e());else{const l=Ll(e);a=()=>l}function o(l=a(),s){let c=[t[s.type],...r.filter(({matcher:h})=>h(s)).map(({reducer:h})=>h)];return c.filter(h=>!!h).length===0&&(c=[i]),c.reduce((h,u)=>{if(u)if($n(h)){const A=u(h,s);return A===void 0?h:A}else{if(Tn(h))return Il(h,f=>u(f,s));{const f=u(h,s);if(f===void 0){if(h===null)return h;throw new Error(process.env.NODE_ENV==="production"?We(9):"A case reducer on a non-draftable value must not return undefined")}return f}}return h},l)}return o.getInitialState=a,o}var df="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ml=(e=21)=>{let n="",t=e;for(;t--;)n+=df[Math.random()*64|0];return n},ff=(e,n)=>uf(e)?e.match(n):e(n);function hf(...e){return n=>e.some(t=>ff(t,n))}var mf=["name","message","stack","code"],eo=class{constructor(e,n){Ea(this,"_type");this.payload=e,this.meta=n}},zl=class{constructor(e,n){Ea(this,"_type");this.payload=e,this.meta=n}},yf=e=>{if(typeof e=="object"&&e!==null){const n={};for(const t of mf)typeof e[t]=="string"&&(n[t]=e[t]);return n}return{message:String(e)}},Fl=(()=>{function e(n,t,r){const i=Ln(n+"/fulfilled",(s,c,h,u)=>({payload:s,meta:{...u||{},arg:h,requestId:c,requestStatus:"fulfilled"}})),a=Ln(n+"/pending",(s,c,h)=>({payload:void 0,meta:{...h||{},arg:c,requestId:s,requestStatus:"pending"}})),o=Ln(n+"/rejected",(s,c,h,u,f)=>({payload:u,error:(r&&r.serializeError||yf)(s||"Rejected"),meta:{...f||{},arg:h,requestId:c,rejectedWithValue:!!u,requestStatus:"rejected",aborted:(s==null?void 0:s.name)==="AbortError",condition:(s==null?void 0:s.name)==="ConditionError"}}));function l(s){return(c,h,u)=>{const f=r!=null&&r.idGenerator?r.idGenerator(s):Ml(),A=new AbortController;let b,v;function S(B){v=B,A.abort()}const O=async function(){var j,M;let B;try{let k=(j=r==null?void 0:r.condition)==null?void 0:j.call(r,s,{getState:h,extra:u});if(gf(k)&&(k=await k),k===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const F=new Promise((W,ne)=>{b=()=>{ne({name:"AbortError",message:v||"Aborted"})},A.signal.addEventListener("abort",b)});c(a(f,s,(M=r==null?void 0:r.getPendingMeta)==null?void 0:M.call(r,{requestId:f,arg:s},{getState:h,extra:u}))),B=await Promise.race([F,Promise.resolve(t(s,{dispatch:c,getState:h,extra:u,requestId:f,signal:A.signal,abort:S,rejectWithValue:(W,ne)=>new eo(W,ne),fulfillWithValue:(W,ne)=>new zl(W,ne)})).then(W=>{if(W instanceof eo)throw W;return W instanceof zl?i(W.payload,f,s,W.meta):i(W,f,s)})])}catch(k){B=k instanceof eo?o(null,f,s,k.payload,k.meta):o(k,f,s)}finally{b&&A.signal.removeEventListener("abort",b)}return r&&!r.dispatchConditionRejection&&o.match(B)&&B.meta.condition||c(B),B}();return Object.assign(O,{abort:S,requestId:f,arg:s,unwrap(){return O.then(Af)}})}}return Object.assign(l,{pending:a,rejected:o,fulfilled:i,settled:hf(o,i),typePrefix:n})}return e.withTypes=()=>e,e})();function Af(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function gf(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var bf=Symbol.for("rtk-slice-createasyncthunk");function vf(e,n){return`${e}/${n}`}function xf({creators:e}={}){var t;const n=(t=e==null?void 0:e.asyncThunk)==null?void 0:t[bf];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(process.env.NODE_ENV==="production"?We(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&i.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof i.reducers=="function"?i.reducers(kf()):i.reducers)||{},s=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(T,j){const M=typeof T=="string"?T:T.type;if(!M)throw new Error(process.env.NODE_ENV==="production"?We(12):"`context.addCase` cannot be called with an empty action type");if(M in c.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?We(13):"`context.addCase` cannot be called with two reducers for the same action type: "+M);return c.sliceCaseReducersByType[M]=j,h},addMatcher(T,j){return c.sliceMatchers.push({matcher:T,reducer:j}),h},exposeAction(T,j){return c.actionCreators[T]=j,h},exposeCaseReducer(T,j){return c.sliceCaseReducersByName[T]=j,h}};s.forEach(T=>{const j=l[T],M={reducerName:T,type:vf(a,T),createNotation:typeof i.reducers=="function"};Cf(j)?Bf(M,j,h,n):Ef(M,j,h)});function u(){if(process.env.NODE_ENV!=="production"&&typeof i.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?We(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[T={},j=[],M=void 0]=typeof i.extraReducers=="function"?Dl(i.extraReducers):[i.extraReducers],k={...T,...c.sliceCaseReducersByType};return pf(i.initialState,F=>{for(let W in k)F.addCase(W,k[W]);for(let W of c.sliceMatchers)F.addMatcher(W.matcher,W.reducer);for(let W of j)F.addMatcher(W.matcher,W.reducer);M&&F.addDefaultCase(M)})}const f=T=>T,A=new Map;let b;function v(T,j){return b||(b=u()),b(T,j)}function S(){return b||(b=u()),b.getInitialState()}function O(T,j=!1){function M(F){let W=F[T];if(typeof W>"u"){if(j)W=S();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?We(15):"selectSlice returned undefined for an uninjected slice reducer")}return W}function k(F=f){const W=jl(A,j,{insert:()=>new WeakMap});return jl(W,F,{insert:()=>{const ne={};for(const[L,Q]of Object.entries(i.selectors??{}))ne[L]=wf(Q,F,S,j);return ne}})}return{reducerPath:T,getSelectors:k,get selectors(){return k(M)},selectSlice:M}}const B={name:a,reducer:v,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:S,...O(o),injectInto(T,{reducerPath:j,...M}={}){const k=j??o;return T.inject({reducerPath:k,reducer:v},M),{...B,...O(k,!0)}}};return B}}function wf(e,n,t,r){function i(a,...o){let l=n(a);if(typeof l>"u"){if(r)l=t();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?We(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...o)}return i.unwrapped=e,i}var Rl=xf();function kf(){function e(n,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:n,...t}}return e.withTypes=()=>e,{reducer(n){return Object.assign({[n.name](...t){return n(...t)}}[n.name],{_reducerDefinitionType:"reducer"})},preparedReducer(n,t){return{_reducerDefinitionType:"reducerWithPrepare",prepare:n,reducer:t}},asyncThunk:e}}function Ef({type:e,reducerName:n,createNotation:t},r,i){let a,o;if("reducer"in r){if(t&&!Sf(r))throw new Error(process.env.NODE_ENV==="production"?We(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(n,a).exposeAction(n,o?Ln(e,o):Ln(e))}function Cf(e){return e._reducerDefinitionType==="asyncThunk"}function Sf(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Bf({type:e,reducerName:n},t,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?We(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:o,pending:l,rejected:s,settled:c,options:h}=t,u=i(e,a,h);r.exposeAction(n,u),o&&r.addCase(u.fulfilled,o),l&&r.addCase(u.pending,l),s&&r.addCase(u.rejected,s),c&&r.addMatcher(u.settled,c),r.exposeCaseReducer(n,{fulfilled:o||qr,pending:l||qr,rejected:s||qr,settled:c||qr})}function qr(){}var If=(e,n)=>{if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?We(32):`${n} is not a function`)},no="listenerMiddleware",Of=e=>{let{type:n,actionCreator:t,matcher:r,predicate:i,effect:a}=e;if(n)i=Ln(n).match;else if(t)n=t.type,i=t.match;else if(r)i=r;else if(!i)throw new Error(process.env.NODE_ENV==="production"?We(21):"Creating or removing a listener requires one of the known fields for matching an action");return If(a,"options.listener"),{predicate:i,type:n,effect:a}},Pf=Object.assign(e=>{const{type:n,predicate:t,effect:r}=Of(e);return{id:Ml(),effect:r,type:n,predicate:t,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?We(22):"Unsubscribe not initialized")}}},{withTypes:()=>Pf}),_f=Object.assign(Ln(`${no}/add`),{withTypes:()=>_f});Ln(`${no}/removeAll`);var Tf=Object.assign(Ln(`${no}/remove`),{withTypes:()=>Tf});function We(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Lf={showLogin:!1},to=Fl("user/getUserInfo",async()=>{if(localStorage.getItem("token"))return await cl()}),Nl=Rl({name:"user",initialState:Lf,reducers:{loginOut(e){localStorage.removeItem("token"),e.isLogin=!1,e.userInfo=void 0},showLogin(e){e.showLogin=!0},hideLogin(e){e.showLogin=!1}},extraReducers:e=>{e.addCase(to.fulfilled,(n,t)=>{t.payload!=null?(n.isLogin=!0,n.userInfo=t.payload):n.isLogin=!1}),e.addCase(to.rejected,n=>{n.isLogin=!1,n.userInfo=void 0})}}),jf=Nl.actions,Df=Nl.reducer,ro=(e,n)=>n.some(t=>e instanceof t);let ql,Ul;function Mf(){return ql||(ql=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function zf(){return Ul||(Ul=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const io=new WeakMap,oo=new WeakMap,Ur=new WeakMap;function Ff(e){const n=new Promise((t,r)=>{const i=()=>{e.removeEventListener("success",a),e.removeEventListener("error",o)},a=()=>{t(rt(e.result)),i()},o=()=>{r(e.error),i()};e.addEventListener("success",a),e.addEventListener("error",o)});return Ur.set(n,e),n}function Rf(e){if(io.has(e))return;const n=new Promise((t,r)=>{const i=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",o),e.removeEventListener("abort",o)},a=()=>{t(),i()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",a),e.addEventListener("error",o),e.addEventListener("abort",o)});io.set(e,n)}let ao={get(e,n,t){if(e instanceof IDBTransaction){if(n==="done")return io.get(e);if(n==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return rt(e[n])},set(e,n,t){return e[n]=t,!0},has(e,n){return e instanceof IDBTransaction&&(n==="done"||n==="store")?!0:n in e}};function Hl(e){ao=e(ao)}function Nf(e){return zf().includes(e)?function(...n){return e.apply(lo(this),n),rt(this.request)}:function(...n){return rt(e.apply(lo(this),n))}}function qf(e){return typeof e=="function"?Nf(e):(e instanceof IDBTransaction&&Rf(e),ro(e,Mf())?new Proxy(e,ao):e)}function rt(e){if(e instanceof IDBRequest)return Ff(e);if(oo.has(e))return oo.get(e);const n=qf(e);return n!==e&&(oo.set(e,n),Ur.set(n,e)),n}const lo=e=>Ur.get(e);function Uf(e,n,{blocked:t,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,n),l=rt(o);return r&&o.addEventListener("upgradeneeded",s=>{r(rt(o.result),s.oldVersion,s.newVersion,rt(o.transaction),s)}),t&&o.addEventListener("blocked",s=>t(s.oldVersion,s.newVersion,s)),l.then(s=>{a&&s.addEventListener("close",()=>a()),i&&s.addEventListener("versionchange",c=>i(c.oldVersion,c.newVersion,c))}).catch(()=>{}),l}const Hf=["get","getKey","getAll","getAllKeys","count"],$f=["put","add","delete","clear"],so=new Map;function $l(e,n){if(!(e instanceof IDBDatabase&&!(n in e)&&typeof n=="string"))return;if(so.get(n))return so.get(n);const t=n.replace(/FromIndex$/,""),r=n!==t,i=$f.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Hf.includes(t)))return;const a=async function(o,...l){const s=this.transaction(o,i?"readwrite":"readonly");let c=s.store;return r&&(c=c.index(l.shift())),(await Promise.all([c[t](...l),i&&s.done]))[0]};return so.set(n,a),a}Hl(e=>({...e,get:(n,t,r)=>$l(n,t)||e.get(n,t,r),has:(n,t)=>!!$l(n,t)||e.has(n,t)}));const Wf=["continue","continuePrimaryKey","advance"],Wl={},uo=new WeakMap,Yl=new WeakMap,Yf={get(e,n){if(!Wf.includes(n))return e[n];let t=Wl[n];return t||(t=Wl[n]=function(...r){uo.set(this,Yl.get(this)[n](...r))}),t}};async function*Vf(...e){let n=this;if(n instanceof IDBCursor||(n=await n.openCursor(...e)),!n)return;n=n;const t=new Proxy(n,Yf);for(Yl.set(t,n),Ur.set(t,lo(n));n;)yield t,n=await(uo.get(t)||n.continue()),uo.delete(t)}function Vl(e,n){return n===Symbol.asyncIterator&&ro(e,[IDBIndex,IDBObjectStore,IDBCursor])||n==="iterate"&&ro(e,[IDBIndex,IDBObjectStore])}Hl(e=>({...e,get(n,t,r){return Vl(n,t)?Vf:e.get(n,t,r)},has(n,t){return Vl(n,t)||e.has(n,t)}}));const bt="task",Ht=()=>Uf("zyjj",2,{upgrade(e){e.createObjectStore(bt)}}),Kf=async(e,n=bt)=>(await Ht()).put(n,e,e.id),Qf=async(e=bt)=>(await Ht()).getAll(e),Jf=async(e,n=bt)=>(await Ht()).get(n,e),Zf=async(e,n,t=bt)=>(await Ht()).put(t,n,e),Xf=async(e,n=bt)=>(await Ht()).delete(n,e),Gf={taskCallback:{},listenerCallback:[]},Kl=Fl("mqtt/initMqtt",async(e,{dispatch:n})=>{const t=await dl();console.log("[mqtt] mqtt info",t);const r=t.topic,i=mt.connect(`mqtt://${t.host}`,{keepalive:60,clientId:t.client_id,username:t.username,password:t.password,protocol:"wss",reconnectPeriod:3e3});return i.on("connect",a=>{console.log("[mqtt] connect success",a),i.subscribe(r,{qos:1})}),i.on("message",(a,o,l)=>{console.log("[mqtt] on message",a,o.toString(),l),a===r&&n(Jl.onMqttResponse(JSON.parse(o.toString())))}),i.on("error",a=>console.log("[mqtt] err",a)),i.on("close",()=>console.log("[mqtt] close")),i.on("disconnect",()=>console.log("[mqtt] disconnect")),i}),Ql=Rl({name:"mqtt",initialState:Gf,reducers:{onMqttResponse(e,n){const t=n.payload;t.task_id in e.taskCallback&&e.taskCallback[t.task_id](t)&&(delete e.taskCallback[t.task_id],console.log("[mqtt] delete callback",t.task_id)),e.listenerCallback.forEach(r=>r(t))},closeClient(e){var n;console.log("[mqtt] close client"),(n=e.client)==null||n.end()},addMqttCallback(e,n){e.taskCallback[n.payload.task_id]=n.payload.callback},addMqttEventCallback(e,n){const t=n.payload;e.taskCallback[t.task_id]=r=>{var i,a,o;return(i=t.on_detail)==null||i.call(t,r),r.event_type==et.Success?(a=t.on_finish)==null||a.call(t,r.data):r.event_type==et.Error&&((o=t.on_error)==null||o.call(t,r.data)),[et.Success,et.Error].includes(r.event_type)}},addMqttListener(e,n){e.listenerCallback.push(n.payload)}},extraReducers:e=>{e.addCase(Kl.fulfilled,(n,t)=>{n.client=t.payload})}}),Jl=Ql.actions,eh=Ql.reducer;var co;(function(e){e[e.MqttListener=0]="MqttListener",e[e.CloudFileUpload=1]="CloudFileUpload",e[e.CloudFileDownload=2]="CloudFileDownload",e[e.GetInitData=3]="GetInitData",e[e.NavigateTo=4]="NavigateTo",e[e.CloseWindow=5]="CloseWindow",e[e.TaskAction=6]="TaskAction",e[e.SendRequest=7]="SendRequest",e[e.FFMPEG=8]="FFMPEG",e[e.FileDownload=9]="FileDownload"})(co||(co={}));var po;(function(e){e[e.Add=0]="Add",e[e.Update=1]="Update",e[e.Output=2]="Output",e[e.Cancel=4]="Cancel",e[e.Restore=5]="Restore",e[e.Delete=6]="Delete"})(po||(po={}));var fo;(function(e){e[e.Create=0]="Create",e[e.Start=1]="Start",e[e.Cancel=2]="Cancel",e[e.Restore=3]="Restore",e[e.Delete=4]="Delete"})(fo||(fo={}));const Hr=60;function Zl(e){const[n,t]=re.useState(Hr),r=re.useRef();re.useEffect(()=>{n==0&&(clearInterval(r.current),t(Hr))},[n]);const i=()=>{e.callback().then(()=>{te.Message.success("获取验证码成功,请注意查收邮箱"),t(a=>a-1),r.current=setInterval(()=>{t(a=>a-1)},1e3)})};return q.jsxs(te.Space,{children:[q.jsx(te.Input,{onChange:e.onChange,placeholder:"输入验证码"}),q.jsx(te.Button,{disabled:n!=Hr,type:"primary",onClick:i,children:n!=Hr?`剩余${n}秒`:"获取验证码"})]})}const nh=e=>{const[n,t]=re.useState(""),[r,i]=re.useState(!0),a=l=>{r?dd(l).then(s=>{te.Message.success("登录成功"),localStorage.setItem("token",s),e.loginSuccess(s)}):hd(l).then(()=>{te.Message.success("注册成功,请登录"),i(!0)})},o=()=>ul(n);return q.jsxs(te.Form,{autoComplete:"off",onSubmit:a,children:[q.jsx(te.Form.Item,{rules:[{required:!0,type:"email",message:"输入正确的邮箱格式"}],field:"email",label:"邮箱",children:q.jsx(te.Input,{onChange:t,placeholder:"输入邮箱"})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],field:"password",label:"密码",children:q.jsx(te.Input.Password,{placeholder:"输入密码"})}),r?null:q.jsx(te.Form.Item,{label:"验证码",field:"token",rules:[{required:!0,message:"验证码必填"}],children:q.jsx(Zl,{callback:o})}),q.jsx(te.Form.Item,{wrapperCol:{offset:5},children:q.jsxs(te.Space,{children:[q.jsx(te.Button,{type:"primary",htmlType:"submit",children:r?"立即登录":"注册账号"}),q.jsx(te.Button,{type:"text",onClick:()=>i(l=>!l),children:r?"新用户?":"已有账号?"}),r?q.jsx(te.Button,{onClick:()=>e.onForget(),type:"text",children:"忘记密码?"}):null]})})]})};function th(e){const[n,t]=re.useState(""),r=a=>{if(a.password_repeat!=a.password){te.Message.error("新旧密码不一致");return}const{email:o,password:l,token:s}=a;md({email:o,password:l,token:s}).then(()=>{te.Message.success("密码重置成功,请登录"),e.onLogin()})},i=()=>ul(n);return q.jsx("div",{children:q.jsxs(te.Form,{style:{width:370},autoComplete:"off",onSubmit:r,children:[q.jsx(te.Form.Item,{rules:[{required:!0,type:"email",message:"输入正确的邮箱格式"}],label:"邮箱",field:"email",children:q.jsx(te.Input,{onChange:t,placeholder:"输入邮箱"})}),q.jsx(te.Form.Item,{label:"验证码",field:"token",rules:[{required:!0,message:"验证码必填"}],children:q.jsx(Zl,{callback:i})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],label:"新密码",field:"password",children:q.jsx(te.Input,{type:"password",placeholder:"输入新密码"})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],label:"重复",field:"password_repeat",children:q.jsx(te.Input,{type:"password",placeholder:"再输入一遍新密码"})}),q.jsx(te.Form.Item,{wrapperCol:{offset:5},children:q.jsxs(te.Space,{children:[q.jsx(te.Button,{type:"primary",htmlType:"submit",children:"立即重置"}),q.jsx(te.Button,{onClick:()=>e.onLogin(),type:"text",children:"重新登录"})]})})]})})}function rh(e){const[n,t]=re.useState(!1);return q.jsx(te.Modal,{onCancel:e.onCancel,visible:e.visible,title:"用户登录",footer:null,children:n?q.jsx(th,{onLogin:()=>t(!1)}):q.jsx(nh,{loginSuccess:e.loginSuccess,onForget:()=>t(!0)})})}function ih(e){const[n,t]=re.useState([]),[r,i]=re.useState(!1),[a,o]=re.useState({sizeCanChange:!0,showTotal:!0,total:0,pageSize:e.pageSize||10,current:1,pageSizeChangeResetCurrent:!0}),[l]=te.Form.useForm(),s=()=>{i(!0),e.data(a.current,a.pageSize,l.getFieldsValue()).then(c=>{t(c.list),o(h=>(h.total=c.total,h)),i(!1)})};return re.useEffect(()=>{s()},[a.current,a.pageSize]),re.useEffect(()=>{s(),e.refresh&&e.refresh(()=>s())},[]),q.jsxs(q.Fragment,{children:[e.search?q.jsxs(te.Form,{form:l,layout:"inline",onSubmit:s,children:[e.search.map(c=>{let h=q.jsx(q.Fragment,{});const u=c.data;return c.tp=="input"?h=q.jsx(te.Input,{allowClear:!0,placeholder:u.placeholder}):c.tp=="custom"&&(h=c.ele),q.jsx(te.Form.Item,{label:c.label,field:c.field,children:h},c.field)}),q.jsx(te.Form.Item,{children:q.jsx(te.Button,{htmlType:"submit",children:"搜索"})})]}):null,q.jsx(te.Table,{loading:r,pagination:a,onChange:c=>o({...a,current:(c==null?void 0:c.current)||a.current,pageSize:(c==null?void 0:c.pageSize)||a.pageSize}),rowKey:e.id||"id",columns:e.columns,data:n})]})}const oh=re.lazy(()=>Promise.resolve().then(()=>wh)),ah=re.lazy(()=>Promise.resolve().then(()=>Eh)),lh=re.lazy(()=>Promise.resolve().then(()=>Sh)),Xl=re.lazy(()=>Promise.resolve().then(()=>_A)),sh=re.lazy(()=>Promise.resolve().then(()=>LA)),uh=re.lazy(()=>Promise.resolve().then(()=>DA)),ch=re.lazy(()=>Promise.resolve().then(()=>Au)),ph=re.lazy(()=>Promise.resolve().then(()=>FA)),dh=re.lazy(()=>Promise.resolve().then(()=>NA)),fh=re.lazy(()=>Promise.resolve().then(()=>UA)),hh=re.lazy(()=>Promise.resolve().then(()=>$A)),mh=re.lazy(()=>Promise.resolve().then(()=>Au));function yh(e){const{tp:n,isInput:t,data:r,value:i,onChange:a}=e;switch(n){case on.Input:return q.jsx(oh,{value:i,onChange:a,data:r});case on.Select:return q.jsx(ah,{value:i,onChange:a,data:r});case on.TextArea:return t?q.jsx(lh,{value:i,onChange:a,data:r}):q.jsx(Xl,{value:i,onChange:a,data:r});case on.FileUpload:return q.jsx(uh,{value:i,onChange:a,data:r});case on.Slider:return q.jsx(mh,{value:i,onChange:a,data:r});case on.Audio:return q.jsx(sh,{value:i,onChange:a,data:r});case on.Number:return q.jsx(ch,{value:i,onChange:a,data:r});case on.ImageList:return q.jsx(ph,{value:i,onChange:a,data:r});case on.Image:return q.jsx(dh,{value:i,onChange:a,data:r});case on.Alert:return q.jsx(fh,{value:i,onChange:a,data:r});case on.Video:return q.jsx(hh,{value:i,onChange:a,data:r});case on.MarkDown:return q.jsx(Xl,{value:i,onChange:a,data:r});default:return q.jsx("div",{children:"组件不支持,请升级到最新版本!"})}}const Ah={GetAllTool:bd,ToolInc:xd,UpdateUserInfo:yd,GetAppInfo:fd,CostPoint:Ad,GetUserInfo:cl,UserDownloadMaterial:Sd,GetMqttTaskClientInfo:dl,AddTask:kd,GetTaskInfo:Ed,GetTencentCosInfo:pl,GetMaterialUrl:Bd,GetMaterialTagList:Cd,GetToolList:gd,GetToolTagList:wd,GetToolDetail:vd},gh={ToolType:zi,LocalActionReqType:Ti,LocalActionResType:Li,MQTTEventType:et,FileSource:_i,LocalTaskStatus:ji,LocalTaskEventType:Di,ToolTaskType:Ni,FfmpegActionType:qi,CloudTaskStatus:Fi,TaskType:Mi,LabElementType:on,ToolConfigType:Ri,ToolEventType:co,WorkActionType:fo,TaskActionType:po},bh={render:{renderTime:Ld,renderEllipsis:Dd,renderCopy:jd},utils:{file2ToolParamFile:ol,seconds2TimeStr:ld,getTencentInfo:sd,object2query:al,paramReplace:cd,object2urlParam:pd,convertFileSize:ad,downloadFile:ll,downloadFileDirect:sl},db:{addTask:Kf,getAllData:Qf,getData:Jf,updateData:Zf,deleteData:Xf}},vh={UserReducer:Df,UserAction:jf,GetUserInfo:to,MqttReducer:eh,MqttAction:Jl,InitMqtt:Kl};function xh(e){var n;return q.jsx(te.Input,{value:e.value,onChange:e.onChange,placeholder:(n=e.data)==null?void 0:n.placeholder})}const wh=Object.freeze(Object.defineProperty({__proto__:null,default:xh},Symbol.toStringTag,{value:"Module"}));function kh(e){var n;return q.jsx(te.Select,{value:e.value,onChange:e.onChange,children:(n=e.data)==null?void 0:n.data.map((t,r)=>q.jsx(te.Select.Option,{value:t.value,children:t.label},r))})}const Eh=Object.freeze(Object.defineProperty({__proto__:null,default:kh},Symbol.toStringTag,{value:"Module"}));function Ch(e){var n,t;return q.jsx(te.Input.TextArea,{value:e.value,onChange:e.onChange,rows:10,maxLength:(n=e.data)==null?void 0:n.max_len,showWordLimit:!0,placeholder:(t=e.data)==null?void 0:t.placeholder})}const Sh=Object.freeze(Object.defineProperty({__proto__:null,default:Ch},Symbol.toStringTag,{value:"Module"}));function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},xn.apply(this,arguments)}function $t(e){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$t(e)}function Bh(e,n){if($t(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n||"default");if($t(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Ih(e){var n=Bh(e,"string");return $t(n)=="symbol"?n:n+""}function jn(e,n,t){return n=Ih(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Dn=re.createContext({prefixCls:"arco"});function Gl(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function es(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Gl(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Gl(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Oh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=es(es({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-check-circle")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m15 22 7 7 11.5-11.5M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"}))}var ho=re.forwardRef(Oh);ho.defaultProps={isIcon:!0},ho.displayName="IconCheckCircle";function ns(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ts(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ns(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ns(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Ph(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ts(ts({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-close-circle")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m17.643 17.643 6.364 6.364m0 0 6.364 6.364m-6.364-6.364 6.364-6.364m-6.364 6.364-6.364 6.364M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"}))}var mo=re.forwardRef(Ph);mo.defaultProps={isIcon:!0},mo.displayName="IconCloseCircle";function rs(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function is(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?rs(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rs(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _h(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=is(is({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-download")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"}))}var yo=re.forwardRef(_h);yo.defaultProps={isIcon:!0},yo.displayName="IconDownload";function os(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function as(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?os(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):os(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Th(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=as(as({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-eye")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z",clipRule:"evenodd"}),re.createElement("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"}))}var Ao=re.forwardRef(Th);Ao.defaultProps={isIcon:!0},Ao.displayName="IconEye";function ls(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ss(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ls(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ls(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Lh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ss(ss({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-launch")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"}))}var go=re.forwardRef(Lh);go.defaultProps={isIcon:!0},go.displayName="IconLaunch";function us(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function cs(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?us(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):us(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function jh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=cs(cs({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-upload")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"}))}var bo=re.forwardRef(jh);bo.defaultProps={isIcon:!0},bo.displayName="IconUpload";function ps(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ds(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ps(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ps(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Dh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ds(ds({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-copy")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"}))}var vo=re.forwardRef(Dh);vo.defaultProps={isIcon:!0},vo.displayName="IconCopy";function fs(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function hs(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?fs(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fs(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Mh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=hs(hs({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-edit")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"}))}var xo=re.forwardRef(Mh);xo.defaultProps={isIcon:!0},xo.displayName="IconEdit";function ms(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ys(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ms(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ms(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function zh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ys(ys({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-loading")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"}))}var wo=re.forwardRef(zh);wo.defaultProps={isIcon:!0},wo.displayName="IconLoading";const $r=e=>{const[n,t]=re.useState(e.icon),[r,i]=re.useState(e.tip),[a,o]=re.useState(!1);re.useEffect(()=>{t(e.icon)},[e.icon]);const l=(c,h)=>{e.noSuccess||(i(c),t(h),setTimeout(()=>{t(e.icon),i(e.tip)},1e3))},s=()=>{e.onClick&&!a&&(l("执行中",q.jsx(wo,{})),o(!0),e.onClick().then(()=>l("成功",q.jsx(ho,{style:{color:"green"}}))).catch(c=>l(`${c}`,q.jsx(mo,{style:{color:"red"}}))).finally(()=>o(!1)))};return q.jsx(te.Tooltip,{content:r,children:q.jsx("div",{className:"zyjj-small-icon",onClick:s,children:n})})},Fh=e=>q.jsx($r,{icon:q.jsx(vo,{}),tip:"拷贝",onClick:()=>navigator.clipboard.writeText(e.value||"")}),As=e=>q.jsx($r,{icon:q.jsx(go,{}),tip:"新窗口打开",onClick:async()=>{window.open(e.value)}}),gs=e=>q.jsx($r,{icon:q.jsx(yo,{}),tip:"下载",onClick:async()=>ll(e.value||"")}),bs=e=>{const{link:n}=e;return n?q.jsxs(te.Space,{size:"mini",style:{marginLeft:5,width:"100%",justifyContent:"center"},align:"center",direction:"horizontal",children:[q.jsx(gs,{value:n}),q.jsx(As,{value:n})]}):q.jsx(q.Fragment,{})},vs=e=>q.jsx(te.Image,{style:{borderRadius:5},referrerPolicy:"no-referrer",width:"100%",src:e.src,previewProps:{actions:[{getContainer:()=>q.jsx(gs,{value:e.src},"download"),content:q.jsx(q.Fragment,{}),key:"download"},{getContainer:()=>q.jsx(As,{value:e.src},"launch"),content:q.jsx(q.Fragment,{}),key:"launch"}],actionsLayout:["download","launch"]}});function Rh(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Wr=function(e){if(e==null)return Hh;if(typeof e=="function")return Yr(e);if(typeof e=="object")return Array.isArray(e)?Nh(e):qh(e);if(typeof e=="string")return Uh(e);throw new Error("Expected function, string, or object as test")};function Nh(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Wr(e[t]);return Yr(r);function r(...i){let a=-1;for(;++a<n.length;)if(n[a].apply(this,i))return!0;return!1}}function qh(e){const n=e;return Yr(t);function t(r){const i=r;let a;for(a in e)if(i[a]!==n[a])return!1;return!0}}function Uh(e){return Yr(n);function n(t){return t&&t.type===e}}function Yr(e){return n;function n(t,r,i){return!!($h(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Hh(){return!0}function $h(e){return e!==null&&typeof e=="object"&&"type"in e}function Ox(e){return e}const xs=[],Wh=!0,ko=!1,Yh="skip";function ws(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const a=Wr(i),o=r?-1:1;l(e,void 0,[])();function l(s,c,h){const u=s&&typeof s=="object"?s:{};if(typeof u.type=="string"){const A=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(s.type+(A?"<"+A+">":""))+")"})}return f;function f(){let A=xs,b,v,S;if((!n||a(s,c,h[h.length-1]||void 0))&&(A=Vh(t(s,h)),A[0]===ko))return A;if("children"in s&&s.children){const O=s;if(O.children&&A[0]!==Yh)for(v=(r?O.children.length:-1)+o,S=h.concat(O);v>-1&&v<O.children.length;){const B=O.children[v];if(b=l(B,v,S)(),b[0]===ko)return b;v=typeof b[1]=="number"?b[1]:v+o}}return A}}}function Vh(e){return Array.isArray(e)?e:typeof e=="number"?[Wh,e]:e==null?xs:[e]}function ks(e,n,t){const i=Wr((t||{}).ignore||[]),a=Kh(n);let o=-1;for(;++o<a.length;)ws(e,"text",l);function l(c,h){let u=-1,f;for(;++u<h.length;){const A=h[u],b=f?f.children:void 0;if(i(A,b?b.indexOf(A):void 0,f))return;f=A}if(f)return s(c,h)}function s(c,h){const u=h[h.length-1],f=a[o][0],A=a[o][1];let b=0;const S=u.children.indexOf(c);let O=!1,B=[];f.lastIndex=0;let T=f.exec(c.value);for(;T;){const j=T.index,M={index:T.index,input:T.input,stack:[...h,c]};let k=A(...T,M);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?f.lastIndex=j+1:(b!==j&&B.push({type:"text",value:c.value.slice(b,j)}),Array.isArray(k)?B.push(...k):k&&B.push(k),b=j+T[0].length,O=!0),!f.global)break;T=f.exec(c.value)}return O?(b<c.value.length&&B.push({type:"text",value:c.value.slice(b)}),u.children.splice(S,1,...B)):B=[c],S+B.length}}function Kh(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([Qh(i[0]),Jh(i[1])])}return n}function Qh(e){return typeof e=="string"?new RegExp(Rh(e),"g"):e}function Jh(e){return typeof e=="function"?e:function(){return e}}function Zh(e){ks(e,[/\r?\n|\r/g,Xh])}function Xh(){return{type:"break"}}function Gh(){return function(e){Zh(e)}}function Es(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function Px(){}function _x(){}const an=Wn(/[A-Za-z]/),tn=Wn(/[\dA-Za-z]/),em=Wn(/[#-'*+\--9=?A-Z^-~]/);function Vr(e){return e!==null&&(e<32||e===127)}const Eo=Wn(/\d/),nm=Wn(/[\dA-Fa-f]/),tm=Wn(/[!-/:-@[-`{-~]/);function de(e){return e!==null&&e<-2}function Le(e){return e!==null&&(e<0||e===32)}function Ee(e){return e===-2||e===-1||e===32}const Kr=Wn(new RegExp("\\p{P}|\\p{S}","u")),it=Wn(/\s/);function Wn(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}const Co="phrasing",So=["autolink","link","image","label"];function rm(){return{transforms:[cm],enter:{literalAutolink:om,literalAutolinkEmail:Bo,literalAutolinkHttp:Bo,literalAutolinkWww:Bo},exit:{literalAutolink:um,literalAutolinkEmail:sm,literalAutolinkHttp:am,literalAutolinkWww:lm}}}function im(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Co,notInConstruct:So},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Co,notInConstruct:So},{character:":",before:"[ps]",after:"\\/",inConstruct:Co,notInConstruct:So}]}}function om(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bo(e){this.config.enter.autolinkProtocol.call(this,e)}function am(e){this.config.exit.autolinkProtocol.call(this,e)}function lm(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function sm(e){this.config.exit.autolinkEmail.call(this,e)}function um(e){this.exit(e)}function cm(e){ks(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,pm],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,dm]],{ignore:["link","linkReference"]})}function pm(e,n,t,r,i){let a="";if(!Cs(i)||(/^w/i.test(n)&&(t=n+t,n="",a="http://"),!fm(t)))return!1;const o=hm(t+r);if(!o[0])return!1;const l={type:"link",title:null,url:a+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function dm(e,n,t,r){return!Cs(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function fm(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function hm(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Es(e,"(");let a=Es(e,")");for(;r!==-1&&i>a;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),a++;return[e,t]}function Cs(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||it(t)||Kr(t))&&(!n||t!==47)}function wn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Ss.peek=Cm;function mm(){return{enter:{gfmFootnoteDefinition:Am,gfmFootnoteDefinitionLabelString:gm,gfmFootnoteCall:xm,gfmFootnoteCallString:wm},exit:{gfmFootnoteDefinition:vm,gfmFootnoteDefinitionLabelString:bm,gfmFootnoteCall:Em,gfmFootnoteCallString:km}}}function ym(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Sm,footnoteReference:Ss}}}function Am(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function gm(){this.buffer()}function bm(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.label=n,t.identifier=wn(this.sliceSerialize(e)).toLowerCase()}function vm(e){this.exit(e)}function xm(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function wm(){this.buffer()}function km(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.label=n,t.identifier=wn(this.sliceSerialize(e)).toLowerCase()}function Em(e){this.exit(e)}function Ss(e,n,t,r){const i=t.createTracker(r);let a=i.move("[^");const o=t.enter("footnoteReference"),l=t.enter("reference");return a+=i.move(t.safe(t.associationId(e),{...i.current(),before:a,after:"]"})),l(),o(),a+=i.move("]"),a}function Cm(){return"["}function Sm(e,n,t,r){const i=t.createTracker(r);let a=i.move("[^");const o=t.enter("footnoteDefinition"),l=t.enter("label");return a+=i.move(t.safe(t.associationId(e),{...i.current(),before:a,after:"]"})),l(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(t.indentLines(t.containerFlow(e,i.current()),Bm)),o(),a}function Bm(e,n,t){return n===0?e:(t?"":" ")+e}const Im=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Bs.peek=Lm;function Om(){return{canContainEols:["delete"],enter:{strikethrough:_m},exit:{strikethrough:Tm}}}function Pm(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Im}],handlers:{delete:Bs}}}function _m(e){this.enter({type:"delete",children:[]},e)}function Tm(e){this.exit(e)}function Bs(e,n,t,r){const i=t.createTracker(r),a=t.enter("strikethrough");let o=i.move("~~");return o+=t.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function Lm(){return"~"}function jm(e,n={}){const t=(n.align||[]).concat(),r=n.stringLength||Mm,i=[],a=[],o=[],l=[];let s=0,c=-1;for(;++c<e.length;){const b=[],v=[];let S=-1;for(e[c].length>s&&(s=e[c].length);++S<e[c].length;){const O=Dm(e[c][S]);if(n.alignDelimiters!==!1){const B=r(O);v[S]=B,(l[S]===void 0||B>l[S])&&(l[S]=B)}b.push(O)}a[c]=b,o[c]=v}let h=-1;if(typeof t=="object"&&"length"in t)for(;++h<s;)i[h]=Is(t[h]);else{const b=Is(t);for(;++h<s;)i[h]=b}h=-1;const u=[],f=[];for(;++h<s;){const b=i[h];let v="",S="";b===99?(v=":",S=":"):b===108?v=":":b===114&&(S=":");let O=n.alignDelimiters===!1?1:Math.max(1,l[h]-v.length-S.length);const B=v+"-".repeat(O)+S;n.alignDelimiters!==!1&&(O=v.length+O+S.length,O>l[h]&&(l[h]=O),f[h]=O),u[h]=B}a.splice(1,0,u),o.splice(1,0,f),c=-1;const A=[];for(;++c<a.length;){const b=a[c],v=o[c];h=-1;const S=[];for(;++h<s;){const O=b[h]||"";let B="",T="";if(n.alignDelimiters!==!1){const j=l[h]-(v[h]||0),M=i[h];M===114?B=" ".repeat(j):M===99?j%2?(B=" ".repeat(j/2+.5),T=" ".repeat(j/2-.5)):(B=" ".repeat(j/2),T=B):T=" ".repeat(j)}n.delimiterStart!==!1&&!h&&S.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&O==="")&&(n.delimiterStart!==!1||h)&&S.push(" "),n.alignDelimiters!==!1&&S.push(B),S.push(O),n.alignDelimiters!==!1&&S.push(T),n.padding!==!1&&S.push(" "),(n.delimiterEnd!==!1||h!==s-1)&&S.push("|")}A.push(n.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return A.join(`
37
- `)}function Dm(e){return e==null?"":String(e)}function Mm(e){return e.length}function Is(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function zm(e,n,t,r){const i=t.enter("blockquote"),a=t.createTracker(r);a.move("> "),a.shift(2);const o=t.indentLines(t.containerFlow(e,a.current()),Fm);return i(),o}function Fm(e,n,t){return">"+(t?"":" ")+e}function Rm(e,n){return Os(e,n.inConstruct,!0)&&!Os(e,n.notInConstruct,!1)}function Os(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function Ps(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
38
- `&&Rm(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
39
- `}function Nm(e,n){const t=String(e);let r=t.indexOf(n),i=r,a=0,o=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+n.length,r=t.indexOf(n,i);return o}function qm(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Um(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Hm(e,n,t,r){const i=Um(t),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(qm(e,t)){const u=t.enter("codeIndented"),f=t.indentLines(a,$m);return u(),f}const l=t.createTracker(r),s=i.repeat(Math.max(Nm(a,i)+1,3)),c=t.enter("codeFenced");let h=l.move(s);if(e.lang){const u=t.enter(`codeFencedLang${o}`);h+=l.move(t.safe(e.lang,{before:h,after:" ",encode:["`"],...l.current()})),u()}if(e.lang&&e.meta){const u=t.enter(`codeFencedMeta${o}`);h+=l.move(" "),h+=l.move(t.safe(e.meta,{before:h,after:`
36
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:t,firstInputs:a,secondInputs:o,stack:c})}},Gd={inputStabilityCheck:"once",identityFunctionCheck:"once"};function ef(e,n=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(n)}function nf(e,n=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(n)}function tf(e,n="expected all items to be functions, instead received the following types: "){if(!e.every(t=>typeof t=="function")){const t=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${n}[${t}]`)}}var Ol=e=>Array.isArray(e)?e:[e];function rf(e){const n=Array.isArray(e[0])?e[0]:e;return tf(n,"createSelector expects all input-selectors to be functions, but received the following types: "),n}function Pl(e,n){const t=[],{length:r}=e;for(let i=0;i<r;i++)t.push(e[i].apply(null,n));return t}var of=(e,n)=>{const{identityFunctionCheck:t,inputStabilityCheck:r}={...Gd,...n};return{identityFunctionCheck:{shouldRun:t==="always"||t==="once"&&e,run:Zd},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:Xd}}},af=class{constructor(e){this.value=e}deref(){return this.value}},lf=typeof WeakRef<"u"?WeakRef:af,sf=0,Tl=1;function qr(){return{s:sf,v:void 0,o:null,p:null}}function Gi(e,n={}){let t=qr();const{resultEqualityCheck:r}=n;let i,a=0;function o(){var u;let l=t;const{length:s}=arguments;for(let f=0,A=s;f<A;f++){const b=arguments[f];if(typeof b=="function"||typeof b=="object"&&b!==null){let v=l.o;v===null&&(l.o=v=new WeakMap);const S=v.get(b);S===void 0?(l=qr(),v.set(b,l)):l=S}else{let v=l.p;v===null&&(l.p=v=new Map);const S=v.get(b);S===void 0?(l=qr(),v.set(b,l)):l=S}}const c=l;let h;if(l.s===Tl?h=l.v:(h=e.apply(null,arguments),a++),c.s=Tl,r){const f=((u=i==null?void 0:i.deref)==null?void 0:u.call(i))??i;f!=null&&r(f,h)&&(h=f,a!==0&&a--),i=typeof h=="object"&&h!==null||typeof h=="function"?new lf(h):h}return c.v=h,h}return o.clearCache=()=>{t=qr(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function _l(e,...n){const t=typeof e=="function"?{memoize:e,memoizeOptions:n}:e,r=(...i)=>{let a=0,o=0,l,s={},c=i.pop();typeof c=="object"&&(s=c,c=i.pop()),ef(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const h={...t,...s},{memoize:u,memoizeOptions:f=[],argsMemoize:A=Gi,argsMemoizeOptions:b=[],devModeChecks:v={}}=h,S=Ol(f),O=Ol(b),B=rf(i),_=u(function(){return a++,c.apply(null,arguments)},...S);let j=!0;const M=A(function(){o++;const F=Pl(B,arguments);if(l=_.apply(null,F),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:W,inputStabilityCheck:ne}=of(j,v);if(W.shouldRun&&W.run(c,F,l),ne.shouldRun){const L=Pl(B,arguments);ne.run({inputSelectorResults:F,inputSelectorResultsCopy:L},{memoize:u,memoizeOptions:S},arguments)}j&&(j=!1)}return l},...O);return Object.assign(M,{resultFunc:c,memoizedResultFunc:_,dependencies:B,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>l,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:u,argsMemoize:A})};return Object.assign(r,{withTypes:()=>r}),r}var uf=_l(Gi),cf=Object.assign((e,n=uf)=>{nf(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const t=Object.keys(e),r=t.map(a=>e[a]);return n(r,(...a)=>a.reduce((o,l,s)=>(o[t[s]]=l,o),{}))},{withTypes:()=>cf}),pf=(...e)=>{const n=_l(...e),t=Object.assign((...r)=>{const i=n(...r),a=(o,...l)=>i($n(o)?Sl(o):o,...l);return Object.assign(a,i),a},{withTypes:()=>t});return t};pf(Gi);var df=e=>e&&typeof e.match=="function";function Ln(e,n){function t(...r){if(n){let i=n(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?We(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return t.toString=()=>`${e}`,t.type=e,t.match=r=>Nd(r)&&r.type===e,t}function Ll(e){return _n(e)?Il(e,()=>{}):e}function jl(e,n,t){if(e.has(n)){let i=e.get(n);return t.update&&(i=t.update(i,n,e),e.set(n,i)),i}if(!t.insert)throw new Error(process.env.NODE_ENV==="production"?We(10):"No insert provided for key not already in map");const r=t.insert(n,e);return e.set(n,r),r}process.env.NODE_ENV;function Dl(e){const n={},t=[];let r;const i={addCase(a,o){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error(process.env.NODE_ENV==="production"?We(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?We(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof a=="string"?a:a.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?We(28):"`builder.addCase` cannot be called with an empty action type");if(l in n)throw new Error(process.env.NODE_ENV==="production"?We(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return n[l]=o,i},addMatcher(a,o){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?We(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:a,reducer:o}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?We(31):"`builder.addDefaultCase` can only be called once");return r=a,i}};return e(i),[n,t,r]}function ff(e){return typeof e=="function"}function hf(e,n){if(process.env.NODE_ENV!=="production"&&typeof n=="object")throw new Error(process.env.NODE_ENV==="production"?We(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[t,r,i]=Dl(n),a;if(ff(e))a=()=>Ll(e());else{const l=Ll(e);a=()=>l}function o(l=a(),s){let c=[t[s.type],...r.filter(({matcher:h})=>h(s)).map(({reducer:h})=>h)];return c.filter(h=>!!h).length===0&&(c=[i]),c.reduce((h,u)=>{if(u)if($n(h)){const A=u(h,s);return A===void 0?h:A}else{if(_n(h))return Il(h,f=>u(f,s));{const f=u(h,s);if(f===void 0){if(h===null)return h;throw new Error(process.env.NODE_ENV==="production"?We(9):"A case reducer on a non-draftable value must not return undefined")}return f}}return h},l)}return o.getInitialState=a,o}var mf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ml=(e=21)=>{let n="",t=e;for(;t--;)n+=mf[Math.random()*64|0];return n},yf=(e,n)=>df(e)?e.match(n):e(n);function Af(...e){return n=>e.some(t=>yf(t,n))}var gf=["name","message","stack","code"],eo=class{constructor(e,n){Ea(this,"_type");this.payload=e,this.meta=n}},zl=class{constructor(e,n){Ea(this,"_type");this.payload=e,this.meta=n}},bf=e=>{if(typeof e=="object"&&e!==null){const n={};for(const t of gf)typeof e[t]=="string"&&(n[t]=e[t]);return n}return{message:String(e)}},Fl=(()=>{function e(n,t,r){const i=Ln(n+"/fulfilled",(s,c,h,u)=>({payload:s,meta:{...u||{},arg:h,requestId:c,requestStatus:"fulfilled"}})),a=Ln(n+"/pending",(s,c,h)=>({payload:void 0,meta:{...h||{},arg:c,requestId:s,requestStatus:"pending"}})),o=Ln(n+"/rejected",(s,c,h,u,f)=>({payload:u,error:(r&&r.serializeError||bf)(s||"Rejected"),meta:{...f||{},arg:h,requestId:c,rejectedWithValue:!!u,requestStatus:"rejected",aborted:(s==null?void 0:s.name)==="AbortError",condition:(s==null?void 0:s.name)==="ConditionError"}}));function l(s){return(c,h,u)=>{const f=r!=null&&r.idGenerator?r.idGenerator(s):Ml(),A=new AbortController;let b,v;function S(B){v=B,A.abort()}const O=async function(){var j,M;let B;try{let k=(j=r==null?void 0:r.condition)==null?void 0:j.call(r,s,{getState:h,extra:u});if(xf(k)&&(k=await k),k===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const F=new Promise((W,ne)=>{b=()=>{ne({name:"AbortError",message:v||"Aborted"})},A.signal.addEventListener("abort",b)});c(a(f,s,(M=r==null?void 0:r.getPendingMeta)==null?void 0:M.call(r,{requestId:f,arg:s},{getState:h,extra:u}))),B=await Promise.race([F,Promise.resolve(t(s,{dispatch:c,getState:h,extra:u,requestId:f,signal:A.signal,abort:S,rejectWithValue:(W,ne)=>new eo(W,ne),fulfillWithValue:(W,ne)=>new zl(W,ne)})).then(W=>{if(W instanceof eo)throw W;return W instanceof zl?i(W.payload,f,s,W.meta):i(W,f,s)})])}catch(k){B=k instanceof eo?o(null,f,s,k.payload,k.meta):o(k,f,s)}finally{b&&A.signal.removeEventListener("abort",b)}return r&&!r.dispatchConditionRejection&&o.match(B)&&B.meta.condition||c(B),B}();return Object.assign(O,{abort:S,requestId:f,arg:s,unwrap(){return O.then(vf)}})}}return Object.assign(l,{pending:a,rejected:o,fulfilled:i,settled:Af(o,i),typePrefix:n})}return e.withTypes=()=>e,e})();function vf(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function xf(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var wf=Symbol.for("rtk-slice-createasyncthunk");function kf(e,n){return`${e}/${n}`}function Ef({creators:e}={}){var t;const n=(t=e==null?void 0:e.asyncThunk)==null?void 0:t[wf];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(process.env.NODE_ENV==="production"?We(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&i.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof i.reducers=="function"?i.reducers(Sf()):i.reducers)||{},s=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(_,j){const M=typeof _=="string"?_:_.type;if(!M)throw new Error(process.env.NODE_ENV==="production"?We(12):"`context.addCase` cannot be called with an empty action type");if(M in c.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?We(13):"`context.addCase` cannot be called with two reducers for the same action type: "+M);return c.sliceCaseReducersByType[M]=j,h},addMatcher(_,j){return c.sliceMatchers.push({matcher:_,reducer:j}),h},exposeAction(_,j){return c.actionCreators[_]=j,h},exposeCaseReducer(_,j){return c.sliceCaseReducersByName[_]=j,h}};s.forEach(_=>{const j=l[_],M={reducerName:_,type:kf(a,_),createNotation:typeof i.reducers=="function"};If(j)?Pf(M,j,h,n):Bf(M,j,h)});function u(){if(process.env.NODE_ENV!=="production"&&typeof i.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?We(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[_={},j=[],M=void 0]=typeof i.extraReducers=="function"?Dl(i.extraReducers):[i.extraReducers],k={..._,...c.sliceCaseReducersByType};return hf(i.initialState,F=>{for(let W in k)F.addCase(W,k[W]);for(let W of c.sliceMatchers)F.addMatcher(W.matcher,W.reducer);for(let W of j)F.addMatcher(W.matcher,W.reducer);M&&F.addDefaultCase(M)})}const f=_=>_,A=new Map;let b;function v(_,j){return b||(b=u()),b(_,j)}function S(){return b||(b=u()),b.getInitialState()}function O(_,j=!1){function M(F){let W=F[_];if(typeof W>"u"){if(j)W=S();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?We(15):"selectSlice returned undefined for an uninjected slice reducer")}return W}function k(F=f){const W=jl(A,j,{insert:()=>new WeakMap});return jl(W,F,{insert:()=>{const ne={};for(const[L,Q]of Object.entries(i.selectors??{}))ne[L]=Cf(Q,F,S,j);return ne}})}return{reducerPath:_,getSelectors:k,get selectors(){return k(M)},selectSlice:M}}const B={name:a,reducer:v,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:S,...O(o),injectInto(_,{reducerPath:j,...M}={}){const k=j??o;return _.inject({reducerPath:k,reducer:v},M),{...B,...O(k,!0)}}};return B}}function Cf(e,n,t,r){function i(a,...o){let l=n(a);if(typeof l>"u"){if(r)l=t();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?We(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...o)}return i.unwrapped=e,i}var Rl=Ef();function Sf(){function e(n,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:n,...t}}return e.withTypes=()=>e,{reducer(n){return Object.assign({[n.name](...t){return n(...t)}}[n.name],{_reducerDefinitionType:"reducer"})},preparedReducer(n,t){return{_reducerDefinitionType:"reducerWithPrepare",prepare:n,reducer:t}},asyncThunk:e}}function Bf({type:e,reducerName:n,createNotation:t},r,i){let a,o;if("reducer"in r){if(t&&!Of(r))throw new Error(process.env.NODE_ENV==="production"?We(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(n,a).exposeAction(n,o?Ln(e,o):Ln(e))}function If(e){return e._reducerDefinitionType==="asyncThunk"}function Of(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Pf({type:e,reducerName:n},t,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?We(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:o,pending:l,rejected:s,settled:c,options:h}=t,u=i(e,a,h);r.exposeAction(n,u),o&&r.addCase(u.fulfilled,o),l&&r.addCase(u.pending,l),s&&r.addCase(u.rejected,s),c&&r.addMatcher(u.settled,c),r.exposeCaseReducer(n,{fulfilled:o||Ur,pending:l||Ur,rejected:s||Ur,settled:c||Ur})}function Ur(){}var Tf=(e,n)=>{if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?We(32):`${n} is not a function`)},no="listenerMiddleware",_f=e=>{let{type:n,actionCreator:t,matcher:r,predicate:i,effect:a}=e;if(n)i=Ln(n).match;else if(t)n=t.type,i=t.match;else if(r)i=r;else if(!i)throw new Error(process.env.NODE_ENV==="production"?We(21):"Creating or removing a listener requires one of the known fields for matching an action");return Tf(a,"options.listener"),{predicate:i,type:n,effect:a}},Lf=Object.assign(e=>{const{type:n,predicate:t,effect:r}=_f(e);return{id:Ml(),effect:r,type:n,predicate:t,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?We(22):"Unsubscribe not initialized")}}},{withTypes:()=>Lf}),jf=Object.assign(Ln(`${no}/add`),{withTypes:()=>jf});Ln(`${no}/removeAll`);var Df=Object.assign(Ln(`${no}/remove`),{withTypes:()=>Df});function We(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Mf={showLogin:!1},to=Fl("user/getUserInfo",async()=>{if(localStorage.getItem("token"))return await cl()}),Nl=Rl({name:"user",initialState:Mf,reducers:{loginOut(e){localStorage.removeItem("token"),e.isLogin=!1,e.userInfo=void 0},showLogin(e){e.showLogin=!0},hideLogin(e){e.showLogin=!1}},extraReducers:e=>{e.addCase(to.fulfilled,(n,t)=>{t.payload!=null?(n.isLogin=!0,n.userInfo=t.payload):n.isLogin=!1}),e.addCase(to.rejected,n=>{n.isLogin=!1,n.userInfo=void 0})}}),zf=Nl.actions,Ff=Nl.reducer,ro=(e,n)=>n.some(t=>e instanceof t);let ql,Ul;function Rf(){return ql||(ql=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Nf(){return Ul||(Ul=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const io=new WeakMap,oo=new WeakMap,Hr=new WeakMap;function qf(e){const n=new Promise((t,r)=>{const i=()=>{e.removeEventListener("success",a),e.removeEventListener("error",o)},a=()=>{t(rt(e.result)),i()},o=()=>{r(e.error),i()};e.addEventListener("success",a),e.addEventListener("error",o)});return Hr.set(n,e),n}function Uf(e){if(io.has(e))return;const n=new Promise((t,r)=>{const i=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",o),e.removeEventListener("abort",o)},a=()=>{t(),i()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",a),e.addEventListener("error",o),e.addEventListener("abort",o)});io.set(e,n)}let ao={get(e,n,t){if(e instanceof IDBTransaction){if(n==="done")return io.get(e);if(n==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return rt(e[n])},set(e,n,t){return e[n]=t,!0},has(e,n){return e instanceof IDBTransaction&&(n==="done"||n==="store")?!0:n in e}};function Hl(e){ao=e(ao)}function Hf(e){return Nf().includes(e)?function(...n){return e.apply(lo(this),n),rt(this.request)}:function(...n){return rt(e.apply(lo(this),n))}}function $f(e){return typeof e=="function"?Hf(e):(e instanceof IDBTransaction&&Uf(e),ro(e,Rf())?new Proxy(e,ao):e)}function rt(e){if(e instanceof IDBRequest)return qf(e);if(oo.has(e))return oo.get(e);const n=$f(e);return n!==e&&(oo.set(e,n),Hr.set(n,e)),n}const lo=e=>Hr.get(e);function Wf(e,n,{blocked:t,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,n),l=rt(o);return r&&o.addEventListener("upgradeneeded",s=>{r(rt(o.result),s.oldVersion,s.newVersion,rt(o.transaction),s)}),t&&o.addEventListener("blocked",s=>t(s.oldVersion,s.newVersion,s)),l.then(s=>{a&&s.addEventListener("close",()=>a()),i&&s.addEventListener("versionchange",c=>i(c.oldVersion,c.newVersion,c))}).catch(()=>{}),l}const Yf=["get","getKey","getAll","getAllKeys","count"],Vf=["put","add","delete","clear"],so=new Map;function $l(e,n){if(!(e instanceof IDBDatabase&&!(n in e)&&typeof n=="string"))return;if(so.get(n))return so.get(n);const t=n.replace(/FromIndex$/,""),r=n!==t,i=Vf.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Yf.includes(t)))return;const a=async function(o,...l){const s=this.transaction(o,i?"readwrite":"readonly");let c=s.store;return r&&(c=c.index(l.shift())),(await Promise.all([c[t](...l),i&&s.done]))[0]};return so.set(n,a),a}Hl(e=>({...e,get:(n,t,r)=>$l(n,t)||e.get(n,t,r),has:(n,t)=>!!$l(n,t)||e.has(n,t)}));const Kf=["continue","continuePrimaryKey","advance"],Wl={},uo=new WeakMap,Yl=new WeakMap,Qf={get(e,n){if(!Kf.includes(n))return e[n];let t=Wl[n];return t||(t=Wl[n]=function(...r){uo.set(this,Yl.get(this)[n](...r))}),t}};async function*Jf(...e){let n=this;if(n instanceof IDBCursor||(n=await n.openCursor(...e)),!n)return;n=n;const t=new Proxy(n,Qf);for(Yl.set(t,n),Hr.set(t,lo(n));n;)yield t,n=await(uo.get(t)||n.continue()),uo.delete(t)}function Vl(e,n){return n===Symbol.asyncIterator&&ro(e,[IDBIndex,IDBObjectStore,IDBCursor])||n==="iterate"&&ro(e,[IDBIndex,IDBObjectStore])}Hl(e=>({...e,get(n,t,r){return Vl(n,t)?Jf:e.get(n,t,r)},has(n,t){return Vl(n,t)||e.has(n,t)}}));const bt="task",$t=()=>Wf("zyjj",2,{upgrade(e){e.createObjectStore(bt)}}),Zf=async(e,n=bt)=>(await $t()).put(n,e,e.id),Xf=async(e=bt)=>(await $t()).getAll(e),Gf=async(e,n=bt)=>(await $t()).get(n,e),eh=async(e,n,t=bt)=>(await $t()).put(t,n,e),nh=async(e,n=bt)=>(await $t()).delete(n,e),th={taskCallback:{},listenerCallback:[]},Kl=Fl("mqtt/initMqtt",async(e,{dispatch:n})=>{const t=await dl();console.log("[mqtt] mqtt info",t);const r=t.topic,i=mt.connect(`mqtt://${t.host}`,{keepalive:60,clientId:t.client_id,username:t.username,password:t.password,protocol:"wss",reconnectPeriod:3e3});return i.on("connect",a=>{console.log("[mqtt] connect success",a),i.subscribe(r,{qos:1})}),i.on("message",(a,o,l)=>{console.log("[mqtt] on message",a,o.toString(),l),a===r&&n(Jl.onMqttResponse(JSON.parse(o.toString())))}),i.on("error",a=>console.log("[mqtt] err",a)),i.on("close",()=>console.log("[mqtt] close")),i.on("disconnect",()=>console.log("[mqtt] disconnect")),i}),Ql=Rl({name:"mqtt",initialState:th,reducers:{onMqttResponse(e,n){const t=n.payload;t.task_id in e.taskCallback&&e.taskCallback[t.task_id](t)&&(delete e.taskCallback[t.task_id],console.log("[mqtt] delete callback",t.task_id)),e.listenerCallback.forEach(r=>r(t))},closeClient(e){var n;console.log("[mqtt] close client"),(n=e.client)==null||n.end()},addMqttCallback(e,n){e.taskCallback[n.payload.task_id]=n.payload.callback},addMqttEventCallback(e,n){const t=n.payload;e.taskCallback[t.task_id]=r=>{var i,a,o;return(i=t.on_detail)==null||i.call(t,r),r.event_type==et.Success?(a=t.on_finish)==null||a.call(t,r.data):r.event_type==et.Error&&((o=t.on_error)==null||o.call(t,r.data)),[et.Success,et.Error].includes(r.event_type)}},addMqttListener(e,n){e.listenerCallback.push(n.payload)}},extraReducers:e=>{e.addCase(Kl.fulfilled,(n,t)=>{n.client=t.payload})}}),Jl=Ql.actions,rh=Ql.reducer;var co;(function(e){e[e.MqttListener=0]="MqttListener",e[e.CloudFileUpload=1]="CloudFileUpload",e[e.CloudFileDownload=2]="CloudFileDownload",e[e.GetInitData=3]="GetInitData",e[e.NavigateTo=4]="NavigateTo",e[e.CloseWindow=5]="CloseWindow",e[e.TaskAction=6]="TaskAction",e[e.SendRequest=7]="SendRequest",e[e.FFMPEG=8]="FFMPEG",e[e.FileDownload=9]="FileDownload"})(co||(co={}));var po;(function(e){e[e.Add=0]="Add",e[e.Update=1]="Update",e[e.Output=2]="Output",e[e.Cancel=4]="Cancel",e[e.Restore=5]="Restore",e[e.Delete=6]="Delete"})(po||(po={}));var fo;(function(e){e[e.Create=0]="Create",e[e.Start=1]="Start",e[e.Cancel=2]="Cancel",e[e.Restore=3]="Restore",e[e.Delete=4]="Delete"})(fo||(fo={}));const $r=60;function Zl(e){const[n,t]=re.useState($r),r=re.useRef();re.useEffect(()=>{n==0&&(clearInterval(r.current),t($r))},[n]);const i=()=>{e.callback().then(()=>{te.Message.success("获取验证码成功,请注意查收邮箱"),t(a=>a-1),r.current=setInterval(()=>{t(a=>a-1)},1e3)})};return q.jsxs(te.Space,{children:[q.jsx(te.Input,{onChange:e.onChange,placeholder:"输入验证码"}),q.jsx(te.Button,{disabled:n!=$r,type:"primary",onClick:i,children:n!=$r?`剩余${n}秒`:"获取验证码"})]})}const ih=e=>{const[n,t]=re.useState(""),[r,i]=re.useState(!0),a=l=>{r?hd(l).then(s=>{te.Message.success("登录成功"),localStorage.setItem("token",s),e.loginSuccess(s)}):yd(l).then(()=>{te.Message.success("注册成功,请登录"),i(!0)})},o=()=>ul(n);return q.jsxs(te.Form,{autoComplete:"off",onSubmit:a,children:[q.jsx(te.Form.Item,{rules:[{required:!0,type:"email",message:"输入正确的邮箱格式"}],field:"email",label:"邮箱",children:q.jsx(te.Input,{onChange:t,placeholder:"输入邮箱"})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],field:"password",label:"密码",children:q.jsx(te.Input.Password,{placeholder:"输入密码"})}),r?null:q.jsx(te.Form.Item,{label:"验证码",field:"token",rules:[{required:!0,message:"验证码必填"}],children:q.jsx(Zl,{callback:o})}),q.jsx(te.Form.Item,{wrapperCol:{offset:5},children:q.jsxs(te.Space,{children:[q.jsx(te.Button,{type:"primary",htmlType:"submit",children:r?"立即登录":"注册账号"}),q.jsx(te.Button,{type:"text",onClick:()=>i(l=>!l),children:r?"新用户?":"已有账号?"}),r?q.jsx(te.Button,{onClick:()=>e.onForget(),type:"text",children:"忘记密码?"}):null]})})]})};function oh(e){const[n,t]=re.useState(""),r=a=>{if(a.password_repeat!=a.password){te.Message.error("新旧密码不一致");return}const{email:o,password:l,token:s}=a;Ad({email:o,password:l,token:s}).then(()=>{te.Message.success("密码重置成功,请登录"),e.onLogin()})},i=()=>ul(n);return q.jsx("div",{children:q.jsxs(te.Form,{style:{width:370},autoComplete:"off",onSubmit:r,children:[q.jsx(te.Form.Item,{rules:[{required:!0,type:"email",message:"输入正确的邮箱格式"}],label:"邮箱",field:"email",children:q.jsx(te.Input,{onChange:t,placeholder:"输入邮箱"})}),q.jsx(te.Form.Item,{label:"验证码",field:"token",rules:[{required:!0,message:"验证码必填"}],children:q.jsx(Zl,{callback:i})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],label:"新密码",field:"password",children:q.jsx(te.Input,{type:"password",placeholder:"输入新密码"})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],label:"重复",field:"password_repeat",children:q.jsx(te.Input,{type:"password",placeholder:"再输入一遍新密码"})}),q.jsx(te.Form.Item,{wrapperCol:{offset:5},children:q.jsxs(te.Space,{children:[q.jsx(te.Button,{type:"primary",htmlType:"submit",children:"立即重置"}),q.jsx(te.Button,{onClick:()=>e.onLogin(),type:"text",children:"重新登录"})]})})]})})}function ah(e){const[n,t]=re.useState(!1);return q.jsx(te.Modal,{onCancel:e.onCancel,visible:e.visible,title:"用户登录",footer:null,children:n?q.jsx(oh,{onLogin:()=>t(!1)}):q.jsx(ih,{loginSuccess:e.loginSuccess,onForget:()=>t(!0)})})}function lh(e){const[n,t]=re.useState([]),[r,i]=re.useState(!1),[a,o]=re.useState({sizeCanChange:!0,showTotal:!0,total:0,pageSize:e.pageSize||10,current:1,pageSizeChangeResetCurrent:!0}),[l]=te.Form.useForm(),s=()=>{i(!0),e.data(a.current,a.pageSize,l.getFieldsValue()).then(c=>{t(c.list),o(h=>(h.total=c.total,h)),i(!1)})};return re.useEffect(()=>{s()},[a.current,a.pageSize]),re.useEffect(()=>{s(),e.refresh&&e.refresh(()=>s())},[]),q.jsxs(q.Fragment,{children:[e.search?q.jsxs(te.Form,{form:l,layout:"inline",onSubmit:s,children:[e.search.map(c=>{let h=q.jsx(q.Fragment,{});const u=c.data;return c.tp=="input"?h=q.jsx(te.Input,{allowClear:!0,placeholder:u.placeholder}):c.tp=="custom"&&(h=c.ele),q.jsx(te.Form.Item,{label:c.label,field:c.field,children:h},c.field)}),q.jsx(te.Form.Item,{children:q.jsx(te.Button,{htmlType:"submit",children:"搜索"})})]}):null,q.jsx(te.Table,{loading:r,pagination:a,onChange:c=>o({...a,current:(c==null?void 0:c.current)||a.current,pageSize:(c==null?void 0:c.pageSize)||a.pageSize}),rowKey:e.id||"id",columns:e.columns,data:n})]})}const sh=re.lazy(()=>Promise.resolve().then(()=>Ch)),uh=re.lazy(()=>Promise.resolve().then(()=>Bh)),ch=re.lazy(()=>Promise.resolve().then(()=>Oh)),Xl=re.lazy(()=>Promise.resolve().then(()=>jA)),ph=re.lazy(()=>Promise.resolve().then(()=>MA)),dh=re.lazy(()=>Promise.resolve().then(()=>FA)),fh=re.lazy(()=>Promise.resolve().then(()=>Au)),hh=re.lazy(()=>Promise.resolve().then(()=>qA)),mh=re.lazy(()=>Promise.resolve().then(()=>HA)),yh=re.lazy(()=>Promise.resolve().then(()=>WA)),Ah=re.lazy(()=>Promise.resolve().then(()=>VA)),gh=re.lazy(()=>Promise.resolve().then(()=>Au));function bh(e){const{tp:n,isInput:t,data:r,value:i,onChange:a}=e;switch(n){case on.Input:return q.jsx(sh,{value:i,onChange:a,data:r});case on.Select:return q.jsx(uh,{value:i,onChange:a,data:r});case on.TextArea:return t?q.jsx(ch,{value:i,onChange:a,data:r}):q.jsx(Xl,{value:i,onChange:a,data:r});case on.FileUpload:return q.jsx(dh,{value:i,onChange:a,data:r});case on.Slider:return q.jsx(gh,{value:i,onChange:a,data:r});case on.Audio:return q.jsx(ph,{value:i,onChange:a,data:r});case on.Number:return q.jsx(fh,{value:i,onChange:a,data:r});case on.ImageList:return q.jsx(hh,{value:i,onChange:a,data:r});case on.Image:return q.jsx(mh,{value:i,onChange:a,data:r});case on.Alert:return q.jsx(yh,{value:i,onChange:a,data:r});case on.Video:return q.jsx(Ah,{value:i,onChange:a,data:r});case on.MarkDown:return q.jsx(Xl,{value:i,onChange:a,data:r});default:return q.jsx("div",{children:"组件不支持,请升级到最新版本!"})}}const vh={GetAllTool:xd,ToolInc:kd,UpdateUserInfo:gd,GetAppInfo:md,CostPoint:bd,GetUserInfo:cl,UserDownloadMaterial:Od,GetMqttTaskClientInfo:dl,AddTask:Sd,GetTaskInfo:Bd,GetTencentCosInfo:pl,GetMaterialUrl:Pd,GetMaterialTagList:Id,GetToolList:vd,GetToolTagList:Ed,GetToolDetail:wd},xh={ToolType:zi,LocalActionReqType:_i,LocalActionResType:Li,MQTTEventType:et,FileSource:Rt,LocalTaskStatus:ji,LocalTaskEventType:Di,ToolTaskType:Ni,FfmpegActionType:qi,CloudTaskStatus:Fi,TaskType:Mi,LabElementType:on,ToolConfigType:Ri,ToolEventType:co,WorkActionType:fo,TaskActionType:po},wh={render:{renderTime:Md,renderEllipsis:Fd,renderCopy:zd},utils:{file2ToolParamFile:ol,seconds2TimeStr:sd,object2query:al,paramReplace:dd,object2urlParam:fd,convertFileSize:ld,downloadFile:ll,downloadFileDirect:sl},cloud:{getTencentCosInfo:ud,getAliYunOssInfo:cd},db:{addTask:Zf,getAllData:Xf,getData:Gf,updateData:eh,deleteData:nh}},kh={UserReducer:Ff,UserAction:zf,GetUserInfo:to,MqttReducer:rh,MqttAction:Jl,InitMqtt:Kl};function Eh(e){var n;return q.jsx(te.Input,{value:e.value,onChange:e.onChange,placeholder:(n=e.data)==null?void 0:n.placeholder})}const Ch=Object.freeze(Object.defineProperty({__proto__:null,default:Eh},Symbol.toStringTag,{value:"Module"}));function Sh(e){var n;return q.jsx(te.Select,{value:e.value,onChange:e.onChange,children:(n=e.data)==null?void 0:n.data.map((t,r)=>q.jsx(te.Select.Option,{value:t.value,children:t.label},r))})}const Bh=Object.freeze(Object.defineProperty({__proto__:null,default:Sh},Symbol.toStringTag,{value:"Module"}));function Ih(e){var n,t;return q.jsx(te.Input.TextArea,{value:e.value,onChange:e.onChange,rows:10,maxLength:(n=e.data)==null?void 0:n.max_len,showWordLimit:!0,placeholder:(t=e.data)==null?void 0:t.placeholder})}const Oh=Object.freeze(Object.defineProperty({__proto__:null,default:Ih},Symbol.toStringTag,{value:"Module"}));function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},xn.apply(this,arguments)}function Wt(e){"@babel/helpers - typeof";return Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wt(e)}function Ph(e,n){if(Wt(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n||"default");if(Wt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Th(e){var n=Ph(e,"string");return Wt(n)=="symbol"?n:n+""}function jn(e,n,t){return n=Th(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Dn=re.createContext({prefixCls:"arco"});function Gl(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function es(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Gl(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Gl(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _h(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=es(es({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-check-circle")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m15 22 7 7 11.5-11.5M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"}))}var ho=re.forwardRef(_h);ho.defaultProps={isIcon:!0},ho.displayName="IconCheckCircle";function ns(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ts(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ns(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ns(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Lh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ts(ts({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-close-circle")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m17.643 17.643 6.364 6.364m0 0 6.364 6.364m-6.364-6.364 6.364-6.364m-6.364 6.364-6.364 6.364M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"}))}var mo=re.forwardRef(Lh);mo.defaultProps={isIcon:!0},mo.displayName="IconCloseCircle";function rs(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function is(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?rs(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rs(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function jh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=is(is({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-download")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"}))}var yo=re.forwardRef(jh);yo.defaultProps={isIcon:!0},yo.displayName="IconDownload";function os(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function as(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?os(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):os(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Dh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=as(as({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-eye")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z",clipRule:"evenodd"}),re.createElement("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"}))}var Ao=re.forwardRef(Dh);Ao.defaultProps={isIcon:!0},Ao.displayName="IconEye";function ls(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ss(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ls(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ls(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Mh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ss(ss({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-launch")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"}))}var go=re.forwardRef(Mh);go.defaultProps={isIcon:!0},go.displayName="IconLaunch";function us(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function cs(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?us(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):us(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function zh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=cs(cs({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-upload")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"}))}var bo=re.forwardRef(zh);bo.defaultProps={isIcon:!0},bo.displayName="IconUpload";function ps(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ds(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ps(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ps(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Fh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ds(ds({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-copy")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"}))}var vo=re.forwardRef(Fh);vo.defaultProps={isIcon:!0},vo.displayName="IconCopy";function fs(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function hs(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?fs(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fs(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Rh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=hs(hs({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-edit")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"}))}var xo=re.forwardRef(Rh);xo.defaultProps={isIcon:!0},xo.displayName="IconEdit";function ms(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ys(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ms(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ms(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Nh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ys(ys({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-loading")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"}))}var wo=re.forwardRef(Nh);wo.defaultProps={isIcon:!0},wo.displayName="IconLoading";const Wr=e=>{const[n,t]=re.useState(e.icon),[r,i]=re.useState(e.tip),[a,o]=re.useState(!1);re.useEffect(()=>{t(e.icon)},[e.icon]);const l=(c,h)=>{e.noSuccess||(i(c),t(h),setTimeout(()=>{t(e.icon),i(e.tip)},1e3))},s=()=>{e.onClick&&!a&&(l("执行中",q.jsx(wo,{})),o(!0),e.onClick().then(()=>l("成功",q.jsx(ho,{style:{color:"green"}}))).catch(c=>l(`${c}`,q.jsx(mo,{style:{color:"red"}}))).finally(()=>o(!1)))};return q.jsx(te.Tooltip,{content:r,children:q.jsx("div",{className:"zyjj-small-icon",onClick:s,children:n})})},qh=e=>q.jsx(Wr,{icon:q.jsx(vo,{}),tip:"拷贝",onClick:()=>navigator.clipboard.writeText(e.value||"")}),As=e=>q.jsx(Wr,{icon:q.jsx(go,{}),tip:"新窗口打开",onClick:async()=>{window.open(e.value)}}),gs=e=>q.jsx(Wr,{icon:q.jsx(yo,{}),tip:"下载",onClick:async()=>ll(e.value||"")}),bs=e=>{const{link:n}=e;return n?q.jsxs(te.Space,{size:"mini",style:{marginLeft:5,width:"100%",justifyContent:"center"},align:"center",direction:"horizontal",children:[q.jsx(gs,{value:n}),q.jsx(As,{value:n})]}):q.jsx(q.Fragment,{})},vs=e=>q.jsx(te.Image,{style:{borderRadius:5},referrerPolicy:"no-referrer",width:"100%",src:e.src,previewProps:{actions:[{getContainer:()=>q.jsx(gs,{value:e.src},"download"),content:q.jsx(q.Fragment,{}),key:"download"},{getContainer:()=>q.jsx(As,{value:e.src},"launch"),content:q.jsx(q.Fragment,{}),key:"launch"}],actionsLayout:["download","launch"]}});function Uh(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Yr=function(e){if(e==null)return Yh;if(typeof e=="function")return Vr(e);if(typeof e=="object")return Array.isArray(e)?Hh(e):$h(e);if(typeof e=="string")return Wh(e);throw new Error("Expected function, string, or object as test")};function Hh(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Yr(e[t]);return Vr(r);function r(...i){let a=-1;for(;++a<n.length;)if(n[a].apply(this,i))return!0;return!1}}function $h(e){const n=e;return Vr(t);function t(r){const i=r;let a;for(a in e)if(i[a]!==n[a])return!1;return!0}}function Wh(e){return Vr(n);function n(t){return t&&t.type===e}}function Vr(e){return n;function n(t,r,i){return!!(Vh(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Yh(){return!0}function Vh(e){return e!==null&&typeof e=="object"&&"type"in e}function _x(e){return e}const xs=[],Kh=!0,ko=!1,Qh="skip";function ws(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const a=Yr(i),o=r?-1:1;l(e,void 0,[])();function l(s,c,h){const u=s&&typeof s=="object"?s:{};if(typeof u.type=="string"){const A=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(s.type+(A?"<"+A+">":""))+")"})}return f;function f(){let A=xs,b,v,S;if((!n||a(s,c,h[h.length-1]||void 0))&&(A=Jh(t(s,h)),A[0]===ko))return A;if("children"in s&&s.children){const O=s;if(O.children&&A[0]!==Qh)for(v=(r?O.children.length:-1)+o,S=h.concat(O);v>-1&&v<O.children.length;){const B=O.children[v];if(b=l(B,v,S)(),b[0]===ko)return b;v=typeof b[1]=="number"?b[1]:v+o}}return A}}}function Jh(e){return Array.isArray(e)?e:typeof e=="number"?[Kh,e]:e==null?xs:[e]}function ks(e,n,t){const i=Yr((t||{}).ignore||[]),a=Zh(n);let o=-1;for(;++o<a.length;)ws(e,"text",l);function l(c,h){let u=-1,f;for(;++u<h.length;){const A=h[u],b=f?f.children:void 0;if(i(A,b?b.indexOf(A):void 0,f))return;f=A}if(f)return s(c,h)}function s(c,h){const u=h[h.length-1],f=a[o][0],A=a[o][1];let b=0;const S=u.children.indexOf(c);let O=!1,B=[];f.lastIndex=0;let _=f.exec(c.value);for(;_;){const j=_.index,M={index:_.index,input:_.input,stack:[...h,c]};let k=A(..._,M);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?f.lastIndex=j+1:(b!==j&&B.push({type:"text",value:c.value.slice(b,j)}),Array.isArray(k)?B.push(...k):k&&B.push(k),b=j+_[0].length,O=!0),!f.global)break;_=f.exec(c.value)}return O?(b<c.value.length&&B.push({type:"text",value:c.value.slice(b)}),u.children.splice(S,1,...B)):B=[c],S+B.length}}function Zh(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([Xh(i[0]),Gh(i[1])])}return n}function Xh(e){return typeof e=="string"?new RegExp(Uh(e),"g"):e}function Gh(e){return typeof e=="function"?e:function(){return e}}function em(e){ks(e,[/\r?\n|\r/g,nm])}function nm(){return{type:"break"}}function tm(){return function(e){em(e)}}function Es(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function Lx(){}function jx(){}const an=Wn(/[A-Za-z]/),tn=Wn(/[\dA-Za-z]/),rm=Wn(/[#-'*+\--9=?A-Z^-~]/);function Kr(e){return e!==null&&(e<32||e===127)}const Eo=Wn(/\d/),im=Wn(/[\dA-Fa-f]/),om=Wn(/[!-/:-@[-`{-~]/);function de(e){return e!==null&&e<-2}function Le(e){return e!==null&&(e<0||e===32)}function Ee(e){return e===-2||e===-1||e===32}const Qr=Wn(new RegExp("\\p{P}|\\p{S}","u")),it=Wn(/\s/);function Wn(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}const Co="phrasing",So=["autolink","link","image","label"];function am(){return{transforms:[fm],enter:{literalAutolink:sm,literalAutolinkEmail:Bo,literalAutolinkHttp:Bo,literalAutolinkWww:Bo},exit:{literalAutolink:dm,literalAutolinkEmail:pm,literalAutolinkHttp:um,literalAutolinkWww:cm}}}function lm(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Co,notInConstruct:So},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Co,notInConstruct:So},{character:":",before:"[ps]",after:"\\/",inConstruct:Co,notInConstruct:So}]}}function sm(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bo(e){this.config.enter.autolinkProtocol.call(this,e)}function um(e){this.config.exit.autolinkProtocol.call(this,e)}function cm(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function pm(e){this.config.exit.autolinkEmail.call(this,e)}function dm(e){this.exit(e)}function fm(e){ks(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,hm],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,mm]],{ignore:["link","linkReference"]})}function hm(e,n,t,r,i){let a="";if(!Cs(i)||(/^w/i.test(n)&&(t=n+t,n="",a="http://"),!ym(t)))return!1;const o=Am(t+r);if(!o[0])return!1;const l={type:"link",title:null,url:a+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function mm(e,n,t,r){return!Cs(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function ym(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function Am(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Es(e,"(");let a=Es(e,")");for(;r!==-1&&i>a;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),a++;return[e,t]}function Cs(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||it(t)||Qr(t))&&(!n||t!==47)}function wn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Ss.peek=Im;function gm(){return{enter:{gfmFootnoteDefinition:vm,gfmFootnoteDefinitionLabelString:xm,gfmFootnoteCall:Em,gfmFootnoteCallString:Cm},exit:{gfmFootnoteDefinition:km,gfmFootnoteDefinitionLabelString:wm,gfmFootnoteCall:Bm,gfmFootnoteCallString:Sm}}}function bm(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Om,footnoteReference:Ss}}}function vm(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function xm(){this.buffer()}function wm(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.label=n,t.identifier=wn(this.sliceSerialize(e)).toLowerCase()}function km(e){this.exit(e)}function Em(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Cm(){this.buffer()}function Sm(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.label=n,t.identifier=wn(this.sliceSerialize(e)).toLowerCase()}function Bm(e){this.exit(e)}function Ss(e,n,t,r){const i=t.createTracker(r);let a=i.move("[^");const o=t.enter("footnoteReference"),l=t.enter("reference");return a+=i.move(t.safe(t.associationId(e),{...i.current(),before:a,after:"]"})),l(),o(),a+=i.move("]"),a}function Im(){return"["}function Om(e,n,t,r){const i=t.createTracker(r);let a=i.move("[^");const o=t.enter("footnoteDefinition"),l=t.enter("label");return a+=i.move(t.safe(t.associationId(e),{...i.current(),before:a,after:"]"})),l(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(t.indentLines(t.containerFlow(e,i.current()),Pm)),o(),a}function Pm(e,n,t){return n===0?e:(t?"":" ")+e}const Tm=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Bs.peek=Mm;function _m(){return{canContainEols:["delete"],enter:{strikethrough:jm},exit:{strikethrough:Dm}}}function Lm(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Tm}],handlers:{delete:Bs}}}function jm(e){this.enter({type:"delete",children:[]},e)}function Dm(e){this.exit(e)}function Bs(e,n,t,r){const i=t.createTracker(r),a=t.enter("strikethrough");let o=i.move("~~");return o+=t.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function Mm(){return"~"}function zm(e,n={}){const t=(n.align||[]).concat(),r=n.stringLength||Rm,i=[],a=[],o=[],l=[];let s=0,c=-1;for(;++c<e.length;){const b=[],v=[];let S=-1;for(e[c].length>s&&(s=e[c].length);++S<e[c].length;){const O=Fm(e[c][S]);if(n.alignDelimiters!==!1){const B=r(O);v[S]=B,(l[S]===void 0||B>l[S])&&(l[S]=B)}b.push(O)}a[c]=b,o[c]=v}let h=-1;if(typeof t=="object"&&"length"in t)for(;++h<s;)i[h]=Is(t[h]);else{const b=Is(t);for(;++h<s;)i[h]=b}h=-1;const u=[],f=[];for(;++h<s;){const b=i[h];let v="",S="";b===99?(v=":",S=":"):b===108?v=":":b===114&&(S=":");let O=n.alignDelimiters===!1?1:Math.max(1,l[h]-v.length-S.length);const B=v+"-".repeat(O)+S;n.alignDelimiters!==!1&&(O=v.length+O+S.length,O>l[h]&&(l[h]=O),f[h]=O),u[h]=B}a.splice(1,0,u),o.splice(1,0,f),c=-1;const A=[];for(;++c<a.length;){const b=a[c],v=o[c];h=-1;const S=[];for(;++h<s;){const O=b[h]||"";let B="",_="";if(n.alignDelimiters!==!1){const j=l[h]-(v[h]||0),M=i[h];M===114?B=" ".repeat(j):M===99?j%2?(B=" ".repeat(j/2+.5),_=" ".repeat(j/2-.5)):(B=" ".repeat(j/2),_=B):_=" ".repeat(j)}n.delimiterStart!==!1&&!h&&S.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&O==="")&&(n.delimiterStart!==!1||h)&&S.push(" "),n.alignDelimiters!==!1&&S.push(B),S.push(O),n.alignDelimiters!==!1&&S.push(_),n.padding!==!1&&S.push(" "),(n.delimiterEnd!==!1||h!==s-1)&&S.push("|")}A.push(n.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return A.join(`
37
+ `)}function Fm(e){return e==null?"":String(e)}function Rm(e){return e.length}function Is(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function Nm(e,n,t,r){const i=t.enter("blockquote"),a=t.createTracker(r);a.move("> "),a.shift(2);const o=t.indentLines(t.containerFlow(e,a.current()),qm);return i(),o}function qm(e,n,t){return">"+(t?"":" ")+e}function Um(e,n){return Os(e,n.inConstruct,!0)&&!Os(e,n.notInConstruct,!1)}function Os(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function Ps(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
38
+ `&&Um(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
39
+ `}function Hm(e,n){const t=String(e);let r=t.indexOf(n),i=r,a=0,o=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+n.length,r=t.indexOf(n,i);return o}function $m(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Wm(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Ym(e,n,t,r){const i=Wm(t),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if($m(e,t)){const u=t.enter("codeIndented"),f=t.indentLines(a,Vm);return u(),f}const l=t.createTracker(r),s=i.repeat(Math.max(Hm(a,i)+1,3)),c=t.enter("codeFenced");let h=l.move(s);if(e.lang){const u=t.enter(`codeFencedLang${o}`);h+=l.move(t.safe(e.lang,{before:h,after:" ",encode:["`"],...l.current()})),u()}if(e.lang&&e.meta){const u=t.enter(`codeFencedMeta${o}`);h+=l.move(" "),h+=l.move(t.safe(e.meta,{before:h,after:`
40
40
  `,encode:["`"],...l.current()})),u()}return h+=l.move(`
41
41
  `),a&&(h+=l.move(a+`
42
- `)),h+=l.move(s),c(),h}function $m(e,n,t){return(t?"":" ")+e}function Io(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function Wm(e,n,t,r){const i=Io(t),a=i==='"'?"Quote":"Apostrophe",o=t.enter("definition");let l=t.enter("label");const s=t.createTracker(r);let c=s.move("[");return c+=s.move(t.safe(t.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":`
43
- `,...s.current()}))),l(),e.title&&(l=t.enter(`title${a}`),c+=s.move(" "+i),c+=s.move(t.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),o(),c}function Ym(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}_s.peek=Vm;function _s(e,n,t,r){const i=Ym(t),a=t.enter("emphasis"),o=t.createTracker(r);let l=o.move(i);return l+=o.move(t.containerPhrasing(e,{before:l,after:i,...o.current()})),l+=o.move(i),a(),l}function Vm(e,n,t){return t.options.emphasis||"*"}function Oo(e,n,t,r){let i,a,o;typeof n=="function"&&typeof t!="function"?(a=void 0,o=n,i=t):(a=n,o=t,i=r),ws(e,a,l,i);function l(s,c){const h=c[c.length-1],u=h?h.children.indexOf(s):void 0;return o(s,u,h)}}const Km={};function Po(e,n){const t=Km,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Ts(e,r,i)}function Ts(e,n,t){if(Qm(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ls(e.children,n,t)}return Array.isArray(e)?Ls(e,n,t):""}function Ls(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ts(e[i],n,t);return r.join("")}function Qm(e){return!!(e&&typeof e=="object")}function Jm(e,n){let t=!1;return Oo(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,ko}),!!((!e.depth||e.depth<3)&&Po(e)&&(n.options.setext||t))}function Zm(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),a=t.createTracker(r);if(Jm(e,t)){const h=t.enter("headingSetext"),u=t.enter("phrasing"),f=t.containerPhrasing(e,{...a.current(),before:`
42
+ `)),h+=l.move(s),c(),h}function Vm(e,n,t){return(t?"":" ")+e}function Io(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function Km(e,n,t,r){const i=Io(t),a=i==='"'?"Quote":"Apostrophe",o=t.enter("definition");let l=t.enter("label");const s=t.createTracker(r);let c=s.move("[");return c+=s.move(t.safe(t.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":`
43
+ `,...s.current()}))),l(),e.title&&(l=t.enter(`title${a}`),c+=s.move(" "+i),c+=s.move(t.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),o(),c}function Qm(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}Ts.peek=Jm;function Ts(e,n,t,r){const i=Qm(t),a=t.enter("emphasis"),o=t.createTracker(r);let l=o.move(i);return l+=o.move(t.containerPhrasing(e,{before:l,after:i,...o.current()})),l+=o.move(i),a(),l}function Jm(e,n,t){return t.options.emphasis||"*"}function Oo(e,n,t,r){let i,a,o;typeof n=="function"&&typeof t!="function"?(a=void 0,o=n,i=t):(a=n,o=t,i=r),ws(e,a,l,i);function l(s,c){const h=c[c.length-1],u=h?h.children.indexOf(s):void 0;return o(s,u,h)}}const Zm={};function Po(e,n){const t=Zm,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return _s(e,r,i)}function _s(e,n,t){if(Xm(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ls(e.children,n,t)}return Array.isArray(e)?Ls(e,n,t):""}function Ls(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=_s(e[i],n,t);return r.join("")}function Xm(e){return!!(e&&typeof e=="object")}function Gm(e,n){let t=!1;return Oo(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,ko}),!!((!e.depth||e.depth<3)&&Po(e)&&(n.options.setext||t))}function ey(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),a=t.createTracker(r);if(Gm(e,t)){const h=t.enter("headingSetext"),u=t.enter("phrasing"),f=t.containerPhrasing(e,{...a.current(),before:`
44
44
  `,after:`
45
45
  `});return u(),h(),f+`
46
46
  `+(i===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
47
47
  `))+1))}const o="#".repeat(i),l=t.enter("headingAtx"),s=t.enter("phrasing");a.move(o+" ");let c=t.containerPhrasing(e,{before:"# ",after:`
48
- `,...a.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?o+" "+c:o,t.options.closeAtx&&(c+=" "+o),s(),l(),c}js.peek=Xm;function js(e){return e.value||""}function Xm(){return"<"}Ds.peek=Gm;function Ds(e,n,t,r){const i=Io(t),a=i==='"'?"Quote":"Apostrophe",o=t.enter("image");let l=t.enter("label");const s=t.createTracker(r);let c=s.move("![");return c+=s.move(t.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=t.enter(`title${a}`),c+=s.move(" "+i),c+=s.move(t.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),o(),c}function Gm(){return"!"}Ms.peek=ey;function Ms(e,n,t,r){const i=e.referenceType,a=t.enter("imageReference");let o=t.enter("label");const l=t.createTracker(r);let s=l.move("![");const c=t.safe(e.alt,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),o();const h=t.stack;t.stack=[],o=t.enter("reference");const u=t.safe(t.associationId(e),{before:s,after:"]",...l.current()});return o(),t.stack=h,a(),i==="full"||!c||c!==u?s+=l.move(u+"]"):i==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function ey(){return"!"}zs.peek=ny;function zs(e,n,t){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<t.unsafe.length;){const o=t.unsafe[a],l=t.compilePattern(o);let s;if(o.atBreak)for(;s=l.exec(r);){let c=s.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(s.index+1)}}return i+r+i}function ny(){return"`"}function Fs(e,n){const t=Po(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Rs.peek=ty;function Rs(e,n,t,r){const i=Io(t),a=i==='"'?"Quote":"Apostrophe",o=t.createTracker(r);let l,s;if(Fs(e,t)){const h=t.stack;t.stack=[],l=t.enter("autolink");let u=o.move("<");return u+=o.move(t.containerPhrasing(e,{before:u,after:">",...o.current()})),u+=o.move(">"),l(),t.stack=h,u}l=t.enter("link"),s=t.enter("label");let c=o.move("[");return c+=o.move(t.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(t.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(s=t.enter("destinationRaw"),c+=o.move(t.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=t.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(t.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),s()),c+=o.move(")"),l(),c}function ty(e,n,t){return Fs(e,t)?"<":"["}Ns.peek=ry;function Ns(e,n,t,r){const i=e.referenceType,a=t.enter("linkReference");let o=t.enter("label");const l=t.createTracker(r);let s=l.move("[");const c=t.containerPhrasing(e,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),o();const h=t.stack;t.stack=[],o=t.enter("reference");const u=t.safe(t.associationId(e),{before:s,after:"]",...l.current()});return o(),t.stack=h,a(),i==="full"||!c||c!==u?s+=l.move(u+"]"):i==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function ry(){return"["}function _o(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function iy(e){const n=_o(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function oy(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function qs(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function ay(e,n,t,r){const i=t.enter("list"),a=t.bulletCurrent;let o=e.ordered?oy(t):_o(t);const l=e.ordered?o==="."?")":".":iy(t);let s=n&&t.bulletLastUsed?o===t.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&h&&(!h.children||!h.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(s=!0),qs(t)===o&&h){let u=-1;for(;++u<e.children.length;){const f=e.children[u];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(o=l),t.bulletCurrent=o;const c=t.containerFlow(e,r);return t.bulletLastUsed=o,t.bulletCurrent=a,i(),c}function ly(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function sy(e,n,t,r){const i=ly(t);let a=t.bulletCurrent||_o(t);n&&n.type==="list"&&n.ordered&&(a=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=t.createTracker(r);l.move(a+" ".repeat(o-a.length)),l.shift(o);const s=t.enter("listItem"),c=t.indentLines(t.containerFlow(e,l.current()),h);return s(),c;function h(u,f,A){return f?(A?"":" ".repeat(o))+u:(A?a:a+" ".repeat(o-a.length))+u}}function uy(e,n,t,r){const i=t.enter("paragraph"),a=t.enter("phrasing"),o=t.containerPhrasing(e,r);return a(),i(),o}const cy=Wr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function py(e,n,t,r){return(e.children.some(function(o){return cy(o)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function dy(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Us.peek=fy;function Us(e,n,t,r){const i=dy(t),a=t.enter("strong"),o=t.createTracker(r);let l=o.move(i+i);return l+=o.move(t.containerPhrasing(e,{before:l,after:i,...o.current()})),l+=o.move(i+i),a(),l}function fy(e,n,t){return t.options.strong||"*"}function hy(e,n,t,r){return t.safe(e.value,r)}function my(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function yy(e,n,t){const r=(qs(t)+(t.options.ruleSpaces?" ":"")).repeat(my(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Hs={blockquote:zm,break:Ps,code:Hm,definition:Wm,emphasis:_s,hardBreak:Ps,heading:Zm,html:js,image:Ds,imageReference:Ms,inlineCode:zs,link:Rs,linkReference:Ns,list:ay,listItem:sy,paragraph:uy,root:py,strong:Us,text:hy,thematicBreak:yy},$s=document.createElement("i");function To(e){const n="&"+e+";";$s.innerHTML=n;const t=$s.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function Ws(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}const Ay=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function gy(e){return e.replace(Ay,by)}function by(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),a=i===120||i===88;return Ws(t.slice(a?2:1),a?16:10)}return To(t)||e}function vy(){return{enter:{table:xy,tableData:Ys,tableHeader:Ys,tableRow:ky},exit:{codeText:Ey,table:wy,tableData:Lo,tableHeader:Lo,tableRow:Lo}}}function xy(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function wy(e){this.exit(e),this.data.inTable=void 0}function ky(e){this.enter({type:"tableRow",children:[]},e)}function Lo(e){this.exit(e)}function Ys(e){this.enter({type:"tableCell",children:[]},e)}function Ey(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Cy));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Cy(e,n){return n==="|"?n:e}function Sy(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,a=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
48
+ `,...a.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?o+" "+c:o,t.options.closeAtx&&(c+=" "+o),s(),l(),c}js.peek=ny;function js(e){return e.value||""}function ny(){return"<"}Ds.peek=ty;function Ds(e,n,t,r){const i=Io(t),a=i==='"'?"Quote":"Apostrophe",o=t.enter("image");let l=t.enter("label");const s=t.createTracker(r);let c=s.move("![");return c+=s.move(t.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=t.enter(`title${a}`),c+=s.move(" "+i),c+=s.move(t.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),o(),c}function ty(){return"!"}Ms.peek=ry;function Ms(e,n,t,r){const i=e.referenceType,a=t.enter("imageReference");let o=t.enter("label");const l=t.createTracker(r);let s=l.move("![");const c=t.safe(e.alt,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),o();const h=t.stack;t.stack=[],o=t.enter("reference");const u=t.safe(t.associationId(e),{before:s,after:"]",...l.current()});return o(),t.stack=h,a(),i==="full"||!c||c!==u?s+=l.move(u+"]"):i==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function ry(){return"!"}zs.peek=iy;function zs(e,n,t){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<t.unsafe.length;){const o=t.unsafe[a],l=t.compilePattern(o);let s;if(o.atBreak)for(;s=l.exec(r);){let c=s.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(s.index+1)}}return i+r+i}function iy(){return"`"}function Fs(e,n){const t=Po(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Rs.peek=oy;function Rs(e,n,t,r){const i=Io(t),a=i==='"'?"Quote":"Apostrophe",o=t.createTracker(r);let l,s;if(Fs(e,t)){const h=t.stack;t.stack=[],l=t.enter("autolink");let u=o.move("<");return u+=o.move(t.containerPhrasing(e,{before:u,after:">",...o.current()})),u+=o.move(">"),l(),t.stack=h,u}l=t.enter("link"),s=t.enter("label");let c=o.move("[");return c+=o.move(t.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(t.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(s=t.enter("destinationRaw"),c+=o.move(t.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=t.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(t.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),s()),c+=o.move(")"),l(),c}function oy(e,n,t){return Fs(e,t)?"<":"["}Ns.peek=ay;function Ns(e,n,t,r){const i=e.referenceType,a=t.enter("linkReference");let o=t.enter("label");const l=t.createTracker(r);let s=l.move("[");const c=t.containerPhrasing(e,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),o();const h=t.stack;t.stack=[],o=t.enter("reference");const u=t.safe(t.associationId(e),{before:s,after:"]",...l.current()});return o(),t.stack=h,a(),i==="full"||!c||c!==u?s+=l.move(u+"]"):i==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function ay(){return"["}function To(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function ly(e){const n=To(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function sy(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function qs(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function uy(e,n,t,r){const i=t.enter("list"),a=t.bulletCurrent;let o=e.ordered?sy(t):To(t);const l=e.ordered?o==="."?")":".":ly(t);let s=n&&t.bulletLastUsed?o===t.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&h&&(!h.children||!h.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(s=!0),qs(t)===o&&h){let u=-1;for(;++u<e.children.length;){const f=e.children[u];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(o=l),t.bulletCurrent=o;const c=t.containerFlow(e,r);return t.bulletLastUsed=o,t.bulletCurrent=a,i(),c}function cy(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function py(e,n,t,r){const i=cy(t);let a=t.bulletCurrent||To(t);n&&n.type==="list"&&n.ordered&&(a=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=t.createTracker(r);l.move(a+" ".repeat(o-a.length)),l.shift(o);const s=t.enter("listItem"),c=t.indentLines(t.containerFlow(e,l.current()),h);return s(),c;function h(u,f,A){return f?(A?"":" ".repeat(o))+u:(A?a:a+" ".repeat(o-a.length))+u}}function dy(e,n,t,r){const i=t.enter("paragraph"),a=t.enter("phrasing"),o=t.containerPhrasing(e,r);return a(),i(),o}const fy=Yr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function hy(e,n,t,r){return(e.children.some(function(o){return fy(o)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function my(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Us.peek=yy;function Us(e,n,t,r){const i=my(t),a=t.enter("strong"),o=t.createTracker(r);let l=o.move(i+i);return l+=o.move(t.containerPhrasing(e,{before:l,after:i,...o.current()})),l+=o.move(i+i),a(),l}function yy(e,n,t){return t.options.strong||"*"}function Ay(e,n,t,r){return t.safe(e.value,r)}function gy(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function by(e,n,t){const r=(qs(t)+(t.options.ruleSpaces?" ":"")).repeat(gy(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Hs={blockquote:Nm,break:Ps,code:Ym,definition:Km,emphasis:Ts,hardBreak:Ps,heading:ey,html:js,image:Ds,imageReference:Ms,inlineCode:zs,link:Rs,linkReference:Ns,list:uy,listItem:py,paragraph:dy,root:hy,strong:Us,text:Ay,thematicBreak:by},$s=document.createElement("i");function _o(e){const n="&"+e+";";$s.innerHTML=n;const t=$s.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function Ws(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}const vy=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xy(e){return e.replace(vy,wy)}function wy(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),a=i===120||i===88;return Ws(t.slice(a?2:1),a?16:10)}return _o(t)||e}function ky(){return{enter:{table:Ey,tableData:Ys,tableHeader:Ys,tableRow:Sy},exit:{codeText:By,table:Cy,tableData:Lo,tableHeader:Lo,tableRow:Lo}}}function Ey(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function Cy(e){this.exit(e),this.data.inTable=void 0}function Sy(e){this.enter({type:"tableRow",children:[]},e)}function Lo(e){this.exit(e)}function Ys(e){this.enter({type:"tableCell",children:[]},e)}function By(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Iy));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Iy(e,n){return n==="|"?n:e}function Oy(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,a=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
49
49
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:o,tableCell:s,tableRow:l}};function o(A,b,v,S){return c(h(A,v,S),A.align)}function l(A,b,v,S){const O=u(A,v,S),B=c([O]);return B.slice(0,B.indexOf(`
50
- `))}function s(A,b,v,S){const O=v.enter("tableCell"),B=v.enter("phrasing"),T=v.containerPhrasing(A,{...S,before:a,after:a});return B(),O(),T}function c(A,b){return jm(A,{align:b,alignDelimiters:r,padding:t,stringLength:i})}function h(A,b,v){const S=A.children;let O=-1;const B=[],T=b.enter("table");for(;++O<S.length;)B[O]=u(S[O],b,v);return T(),B}function u(A,b,v){const S=A.children;let O=-1;const B=[],T=b.enter("tableRow");for(;++O<S.length;)B[O]=s(S[O],A,b,v);return T(),B}function f(A,b,v){let S=Hs.inlineCode(A,b,v);return v.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function By(){return{exit:{taskListCheckValueChecked:Vs,taskListCheckValueUnchecked:Vs,paragraph:Oy}}}function Iy(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Py}}}function Vs(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Oy(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let a=-1,o;for(;++a<i.length;){const l=i[a];if(l.type==="paragraph"){o=l;break}}o===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Py(e,n,t,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=t.createTracker(r);a&&l.move(o);let s=Hs.listItem(e,n,t,{...r,...l.current()});return a&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),s;function c(h){return h+o}}function _y(){return[rm(),mm(),Om(),vy(),By()]}function Ty(e){return{extensions:[im(),ym(),Pm(),Sy(e),Iy()]}}function An(e,n,t,r){const i=e.length;let a=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);a<r.length;)o=r.slice(a,a+1e4),o.unshift(n,0),e.splice(...o),a+=1e4,n+=1e4}function gn(e,n){return e.length>0?(An(e,e.length,0,n),e):n}const Ks={}.hasOwnProperty;function Qs(e){const n={};let t=-1;for(;++t<e.length;)Ly(n,e[t]);return n}function Ly(e,n){let t;for(t in n){const i=(Ks.call(e,t)?e[t]:void 0)||(e[t]={}),a=n[t];let o;if(a)for(o in a){Ks.call(i,o)||(i[o]=[]);const l=a[o];jy(i[o],Array.isArray(l)?l:l?[l]:[])}}}function jy(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);An(e,0,0,r)}const Dy={tokenize:qy,partial:!0},Js={tokenize:Uy,partial:!0},Zs={tokenize:Hy,partial:!0},Xs={tokenize:$y,partial:!0},My={tokenize:Wy,partial:!0},Gs={name:"wwwAutolink",tokenize:Ry,previous:nu},eu={name:"protocolAutolink",tokenize:Ny,previous:tu},Mn={name:"emailAutolink",tokenize:Fy,previous:ru},Bn={};function zy(){return{text:Bn}}let ot=48;for(;ot<123;)Bn[ot]=Mn,ot++,ot===58?ot=65:ot===91&&(ot=97);Bn[43]=Mn,Bn[45]=Mn,Bn[46]=Mn,Bn[95]=Mn,Bn[72]=[Mn,eu],Bn[104]=[Mn,eu],Bn[87]=[Mn,Gs],Bn[119]=[Mn,Gs];function Fy(e,n,t){const r=this;let i,a;return o;function o(u){return!jo(u)||!ru.call(r,r.previous)||Do(r.events)?t(u):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(u))}function l(u){return jo(u)?(e.consume(u),l):u===64?(e.consume(u),s):t(u)}function s(u){return u===46?e.check(My,h,c)(u):u===45||u===95||tn(u)?(a=!0,e.consume(u),s):h(u)}function c(u){return e.consume(u),i=!0,s}function h(u){return a&&i&&an(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(u)):t(u)}}function Ry(e,n,t){const r=this;return i;function i(o){return o!==87&&o!==119||!nu.call(r,r.previous)||Do(r.events)?t(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Dy,e.attempt(Js,e.attempt(Zs,a),t),t)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function Ny(e,n,t){const r=this;let i="",a=!1;return o;function o(u){return(u===72||u===104)&&tu.call(r,r.previous)&&!Do(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(u),e.consume(u),l):t(u)}function l(u){if(an(u)&&i.length<5)return i+=String.fromCodePoint(u),e.consume(u),l;if(u===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(u),s}return t(u)}function s(u){return u===47?(e.consume(u),a?c:(a=!0,s)):t(u)}function c(u){return u===null||Vr(u)||Le(u)||it(u)||Kr(u)?t(u):e.attempt(Js,e.attempt(Zs,h),t)(u)}function h(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(u)}}function qy(e,n,t){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):t(o)}function a(o){return o===null?t(o):n(o)}}function Uy(e,n,t){let r,i,a;return o;function o(c){return c===46||c===95?e.check(Xs,s,l)(c):c===null||Le(c)||it(c)||c!==45&&Kr(c)?s(c):(a=!0,e.consume(c),o)}function l(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function s(c){return i||r||!a?t(c):n(c)}}function Hy(e,n){let t=0,r=0;return i;function i(o){return o===40?(t++,e.consume(o),i):o===41&&r<t?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Xs,n,a)(o):o===null||Le(o)||it(o)?n(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function $y(e,n,t){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),a):l===93?(e.consume(l),i):l===60||l===null||Le(l)||it(l)?n(l):t(l)}function i(l){return l===null||l===40||l===91||Le(l)||it(l)?n(l):r(l)}function a(l){return an(l)?o(l):t(l)}function o(l){return l===59?(e.consume(l),r):an(l)?(e.consume(l),o):t(l)}}function Wy(e,n,t){return r;function r(a){return e.consume(a),i}function i(a){return tn(a)?t(a):n(a)}}function nu(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Le(e)}function tu(e){return!an(e)}function ru(e){return!(e===47||jo(e))}function jo(e){return e===43||e===45||e===46||e===95||tn(e)}function Do(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}function vt(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const a=e.charCodeAt(t);let o="";if(a===37&&tn(e.charCodeAt(t+1))&&tn(e.charCodeAt(t+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const l=e.charCodeAt(t+1);a<56320&&l>56319&&l<57344?(o=String.fromCharCode(a,l),i=1):o="�"}else o=String.fromCharCode(a);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function Qr(e){if(e===null||Le(e)||it(e))return 1;if(Kr(e))return 2}function Jr(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(n=a(n,t),r.push(a))}return n}const Mo={name:"attention",tokenize:Vy,resolveAll:Yy};function Yy(e,n){let t=-1,r,i,a,o,l,s,c,h;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const u=Object.assign({},e[r][1].end),f=Object.assign({},e[t][1].start);iu(u,-s),iu(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[r][1].end)},l={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[t][1].start),end:f},a={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[t][1].start)},i={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},l.end)},e[r][1].end=Object.assign({},o.start),e[t][1].start=Object.assign({},l.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=gn(c,[["enter",e[r][1],n],["exit",e[r][1],n]])),c=gn(c,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",a,n]]),c=gn(c,Jr(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),c=gn(c,[["exit",a,n],["enter",l,n],["exit",l,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(h=2,c=gn(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):h=0,An(e,r-1,t-r+3,c),t=r+c.length-h-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Vy(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Qr(r);let a;return o;function o(s){return a=s,e.enter("attentionSequence"),l(s)}function l(s){if(s===a)return e.consume(s),l;const c=e.exit("attentionSequence"),h=Qr(s),u=!h||h===2&&i||t.includes(s),f=!i||i===2&&h||t.includes(r);return c._open=!!(a===42?u:u&&(i||!f)),c._close=!!(a===42?f:f&&(h||!u)),n(s)}}function iu(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Ky={name:"autolink",tokenize:Qy};function Qy(e,n,t){let r=0;return i;function i(A){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(A),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(A){return an(A)?(e.consume(A),o):A===64?t(A):c(A)}function o(A){return A===43||A===45||A===46||tn(A)?(r=1,l(A)):c(A)}function l(A){return A===58?(e.consume(A),r=0,s):(A===43||A===45||A===46||tn(A))&&r++<32?(e.consume(A),l):(r=0,c(A))}function s(A){return A===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(A),e.exit("autolinkMarker"),e.exit("autolink"),n):A===null||A===32||A===60||Vr(A)?t(A):(e.consume(A),s)}function c(A){return A===64?(e.consume(A),h):em(A)?(e.consume(A),c):t(A)}function h(A){return tn(A)?u(A):t(A)}function u(A){return A===46?(e.consume(A),r=0,h):A===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(A),e.exit("autolinkMarker"),e.exit("autolink"),n):f(A)}function f(A){if((A===45||tn(A))&&r++<63){const b=A===45?f:u;return e.consume(A),b}return t(A)}}function Se(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(s){return Ee(s)?(e.enter(t),l(s)):n(s)}function l(s){return Ee(s)&&a++<i?(e.consume(s),l):(e.exit(t),n(s))}}const Wt={tokenize:Jy,partial:!0};function Jy(e,n,t){return r;function r(a){return Ee(a)?Se(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||de(a)?n(a):t(a)}}const ou={name:"blockQuote",tokenize:Zy,continuation:{tokenize:Xy},exit:Gy};function Zy(e,n,t){const r=this;return i;function i(o){if(o===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return t(o)}function a(o){return Ee(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function Xy(e,n,t){const r=this;return i;function i(o){return Ee(o)?Se(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(ou,n,t)(o)}}function Gy(e){e.exit("blockQuote")}const au={name:"characterEscape",tokenize:e0};function e0(e,n,t){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return tm(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(a)}}const lu={name:"characterReference",tokenize:n0};function n0(e,n,t){const r=this;let i=0,a,o;return l;function l(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),s}function s(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,o=tn,h(u))}function c(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=nm,h):(e.enter("characterReferenceValue"),a=7,o=Eo,h(u))}function h(u){if(u===59&&i){const f=e.exit("characterReferenceValue");return o===tn&&!To(r.sliceSerialize(f))?t(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(u)&&i++<a?(e.consume(u),h):t(u)}}const su={tokenize:r0,partial:!0},uu={name:"codeFenced",tokenize:t0,concrete:!0};function t0(e,n,t){const r=this,i={tokenize:M,partial:!0};let a=0,o=0,l;return s;function s(k){return c(k)}function c(k){const F=r.events[r.events.length-1];return a=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,l=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(k)}function h(k){return k===l?(o++,e.consume(k),h):o<3?t(k):(e.exit("codeFencedFenceSequence"),Ee(k)?Se(e,u,"whitespace")(k):u(k))}function u(k){return k===null||de(k)?(e.exit("codeFencedFence"),r.interrupt?n(k):e.check(su,v,j)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===null||de(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(k)):Ee(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Se(e,A,"whitespace")(k)):k===96&&k===l?t(k):(e.consume(k),f)}function A(k){return k===null||de(k)?u(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(k))}function b(k){return k===null||de(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(k)):k===96&&k===l?t(k):(e.consume(k),b)}function v(k){return e.attempt(i,j,S)(k)}function S(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),O}function O(k){return a>0&&Ee(k)?Se(e,B,"linePrefix",a+1)(k):B(k)}function B(k){return k===null||de(k)?e.check(su,v,j)(k):(e.enter("codeFlowValue"),T(k))}function T(k){return k===null||de(k)?(e.exit("codeFlowValue"),B(k)):(e.consume(k),T)}function j(k){return e.exit("codeFenced"),n(k)}function M(k,F,W){let ne=0;return L;function L(H){return k.enter("lineEnding"),k.consume(H),k.exit("lineEnding"),Q}function Q(H){return k.enter("codeFencedFence"),Ee(H)?Se(k,ue,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):ue(H)}function ue(H){return H===l?(k.enter("codeFencedFenceSequence"),ye(H)):W(H)}function ye(H){return H===l?(ne++,k.consume(H),ye):ne>=o?(k.exit("codeFencedFenceSequence"),Ee(H)?Se(k,ee,"whitespace")(H):ee(H)):W(H)}function ee(H){return H===null||de(H)?(k.exit("codeFencedFence"),F(H)):W(H)}}}function r0(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const zo={name:"codeIndented",tokenize:o0},i0={tokenize:a0,partial:!0};function o0(e,n,t){const r=this;return i;function i(c){return e.enter("codeIndented"),Se(e,a,"linePrefix",5)(c)}function a(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(c):t(c)}function o(c){return c===null?s(c):de(c)?e.attempt(i0,o,s)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||de(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),l)}function s(c){return e.exit("codeIndented"),n(c)}}function a0(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):de(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Se(e,a,"linePrefix",5)(o)}function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?n(o):de(o)?i(o):t(o)}}const l0={name:"codeText",tokenize:c0,resolve:s0,previous:u0};function s0(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function u0(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function c0(e,n,t){let r=0,i,a;return o;function o(u){return e.enter("codeText"),e.enter("codeTextSequence"),l(u)}function l(u){return u===96?(e.consume(u),r++,l):(e.exit("codeTextSequence"),s(u))}function s(u){return u===null?t(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),s):u===96?(a=e.enter("codeTextSequence"),i=0,h(u)):de(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(u))}function c(u){return u===null||u===32||u===96||de(u)?(e.exit("codeTextData"),s(u)):(e.consume(u),c)}function h(u){return u===96?(e.consume(u),i++,h):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(u)):(a.type="codeTextData",c(u))}}class p0{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Yt(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Yt(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Yt(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Yt(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Yt(this.left,t.reverse())}}}function Yt(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function cu(e){const n={};let t=-1,r,i,a,o,l,s,c;const h=new p0(e);for(;++t<h.length;){for(;t in n;)t=n[t];if(r=h.get(t),t&&r[1].type==="chunkFlow"&&h.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,a=0,a<s.length&&s[a][1].type==="lineEndingBlank"&&(a+=2),a<s.length&&s[a][1].type==="content"))for(;++a<s.length&&s[a][1].type!=="content";)s[a][1].type==="chunkText"&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,d0(h,t)),t=n[t],c=!0);else if(r[1]._container){for(a=t,i=void 0;a--&&(o=h.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);i&&(r[1].end=Object.assign({},h.get(i)[1].start),l=h.slice(i,t),l.unshift(r),h.splice(i,t-i+1,l))}}return An(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}function d0(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const a=[],o=t._tokenizer||r.parser[t.contentType](t.start),l=o.events,s=[],c={};let h,u,f=-1,A=t,b=0,v=0;const S=[v];for(;A;){for(;e.get(++i)[1]!==A;);a.push(i),A._tokenizer||(h=r.sliceStream(A),A.next||h.push(null),u&&o.defineSkip(A.start),A._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(h),A._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),u=A,A=A.next}for(A=t;++f<l.length;)l[f][0]==="exit"&&l[f-1][0]==="enter"&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(v=f+1,S.push(v),A._tokenizer=void 0,A.previous=void 0,A=A.next);for(o.events=[],A?(A._tokenizer=void 0,A.previous=void 0):S.pop(),f=S.length;f--;){const O=l.slice(S[f],S[f+1]),B=a.pop();s.push([B,B+O.length-1]),e.splice(B,2,O)}for(s.reverse(),f=-1;++f<s.length;)c[b+s[f][0]]=b+s[f][1],b+=s[f][1]-s[f][0]-1;return c}const f0={tokenize:y0,resolve:m0},h0={tokenize:A0,partial:!0};function m0(e){return cu(e),e}function y0(e,n){let t;return r;function r(l){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?a(l):de(l)?e.check(h0,o,a)(l):(e.consume(l),i)}function a(l){return e.exit("chunkContent"),e.exit("content"),n(l)}function o(l){return e.consume(l),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function A0(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Se(e,a,"linePrefix")}function a(o){if(o===null||de(o))return t(o);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function pu(e,n,t,r,i,a,o,l,s){const c=s||Number.POSITIVE_INFINITY;let h=0;return u;function u(O){return O===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(O),e.exit(a),f):O===null||O===32||O===41||Vr(O)?t(O):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),v(O))}function f(O){return O===62?(e.enter(a),e.consume(O),e.exit(a),e.exit(i),e.exit(r),n):(e.enter(l),e.enter("chunkString",{contentType:"string"}),A(O))}function A(O){return O===62?(e.exit("chunkString"),e.exit(l),f(O)):O===null||O===60||de(O)?t(O):(e.consume(O),O===92?b:A)}function b(O){return O===60||O===62||O===92?(e.consume(O),A):A(O)}function v(O){return!h&&(O===null||O===41||Le(O))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),n(O)):h<c&&O===40?(e.consume(O),h++,v):O===41?(e.consume(O),h--,v):O===null||O===32||O===40||Vr(O)?t(O):(e.consume(O),O===92?S:v)}function S(O){return O===40||O===41||O===92?(e.consume(O),v):v(O)}}function du(e,n,t,r,i,a){const o=this;let l=0,s;return c;function c(A){return e.enter(r),e.enter(i),e.consume(A),e.exit(i),e.enter(a),h}function h(A){return l>999||A===null||A===91||A===93&&!s||A===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?t(A):A===93?(e.exit(a),e.enter(i),e.consume(A),e.exit(i),e.exit(r),n):de(A)?(e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),u(A))}function u(A){return A===null||A===91||A===93||de(A)||l++>999?(e.exit("chunkString"),h(A)):(e.consume(A),s||(s=!Ee(A)),A===92?f:u)}function f(A){return A===91||A===92||A===93?(e.consume(A),l++,u):u(A)}}function fu(e,n,t,r,i,a){let o;return l;function l(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,s):t(f)}function s(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),n):(e.enter(a),c(f))}function c(f){return f===o?(e.exit(a),s(o)):f===null?t(f):de(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Se(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(f))}function h(f){return f===o||f===null||de(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?u:h)}function u(f){return f===o||f===92?(e.consume(f),h):h(f)}}function Vt(e,n){let t;return r;function r(i){return de(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):Ee(i)?Se(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const g0={name:"definition",tokenize:v0},b0={tokenize:x0,partial:!0};function v0(e,n,t){const r=this;let i;return a;function a(A){return e.enter("definition"),o(A)}function o(A){return du.call(r,e,l,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(A)}function l(A){return i=wn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),A===58?(e.enter("definitionMarker"),e.consume(A),e.exit("definitionMarker"),s):t(A)}function s(A){return Le(A)?Vt(e,c)(A):c(A)}function c(A){return pu(e,h,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(A)}function h(A){return e.attempt(b0,u,u)(A)}function u(A){return Ee(A)?Se(e,f,"whitespace")(A):f(A)}function f(A){return A===null||de(A)?(e.exit("definition"),r.parser.defined.push(i),n(A)):t(A)}}function x0(e,n,t){return r;function r(l){return Le(l)?Vt(e,i)(l):t(l)}function i(l){return fu(e,a,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return Ee(l)?Se(e,o,"whitespace")(l):o(l)}function o(l){return l===null||de(l)?n(l):t(l)}}const w0={name:"hardBreakEscape",tokenize:k0};function k0(e,n,t){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return de(a)?(e.exit("hardBreakEscape"),n(a)):t(a)}}const E0={name:"headingAtx",tokenize:S0,resolve:C0};function C0(e,n){let t=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},a={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},An(e,r,t-r+1,[["enter",i,n],["enter",a,n],["exit",a,n],["exit",i,n]])),e}function S0(e,n,t){let r=0;return i;function i(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&r++<6?(e.consume(h),o):h===null||Le(h)?(e.exit("atxHeadingSequence"),l(h)):t(h)}function l(h){return h===35?(e.enter("atxHeadingSequence"),s(h)):h===null||de(h)?(e.exit("atxHeading"),n(h)):Ee(h)?Se(e,l,"whitespace")(h):(e.enter("atxHeadingText"),c(h))}function s(h){return h===35?(e.consume(h),s):(e.exit("atxHeadingSequence"),l(h))}function c(h){return h===null||h===35||Le(h)?(e.exit("atxHeadingText"),l(h)):(e.consume(h),c)}}const B0=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hu=["pre","script","style","textarea"],I0={name:"htmlFlow",tokenize:T0,resolveTo:_0,concrete:!0},O0={tokenize:j0,partial:!0},P0={tokenize:L0,partial:!0};function _0(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function T0(e,n,t){const r=this;let i,a,o,l,s;return c;function c(P){return h(P)}function h(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),u}function u(P){return P===33?(e.consume(P),f):P===47?(e.consume(P),a=!0,v):P===63?(e.consume(P),i=3,r.interrupt?n:I):an(P)?(e.consume(P),o=String.fromCharCode(P),S):t(P)}function f(P){return P===45?(e.consume(P),i=2,A):P===91?(e.consume(P),i=5,l=0,b):an(P)?(e.consume(P),i=4,r.interrupt?n:I):t(P)}function A(P){return P===45?(e.consume(P),r.interrupt?n:I):t(P)}function b(P){const Be="CDATA[";return P===Be.charCodeAt(l++)?(e.consume(P),l===Be.length?r.interrupt?n:ue:b):t(P)}function v(P){return an(P)?(e.consume(P),o=String.fromCharCode(P),S):t(P)}function S(P){if(P===null||P===47||P===62||Le(P)){const Be=P===47,Me=o.toLowerCase();return!Be&&!a&&hu.includes(Me)?(i=1,r.interrupt?n(P):ue(P)):B0.includes(o.toLowerCase())?(i=6,Be?(e.consume(P),O):r.interrupt?n(P):ue(P)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(P):a?B(P):T(P))}return P===45||tn(P)?(e.consume(P),o+=String.fromCharCode(P),S):t(P)}function O(P){return P===62?(e.consume(P),r.interrupt?n:ue):t(P)}function B(P){return Ee(P)?(e.consume(P),B):L(P)}function T(P){return P===47?(e.consume(P),L):P===58||P===95||an(P)?(e.consume(P),j):Ee(P)?(e.consume(P),T):L(P)}function j(P){return P===45||P===46||P===58||P===95||tn(P)?(e.consume(P),j):M(P)}function M(P){return P===61?(e.consume(P),k):Ee(P)?(e.consume(P),M):T(P)}function k(P){return P===null||P===60||P===61||P===62||P===96?t(P):P===34||P===39?(e.consume(P),s=P,F):Ee(P)?(e.consume(P),k):W(P)}function F(P){return P===s?(e.consume(P),s=null,ne):P===null||de(P)?t(P):(e.consume(P),F)}function W(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||Le(P)?M(P):(e.consume(P),W)}function ne(P){return P===47||P===62||Ee(P)?T(P):t(P)}function L(P){return P===62?(e.consume(P),Q):t(P)}function Q(P){return P===null||de(P)?ue(P):Ee(P)?(e.consume(P),Q):t(P)}function ue(P){return P===45&&i===2?(e.consume(P),V):P===60&&i===1?(e.consume(P),ie):P===62&&i===4?(e.consume(P),fe):P===63&&i===3?(e.consume(P),I):P===93&&i===5?(e.consume(P),$):de(P)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(O0,we,ye)(P)):P===null||de(P)?(e.exit("htmlFlowData"),ye(P)):(e.consume(P),ue)}function ye(P){return e.check(P0,ee,we)(P)}function ee(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),H}function H(P){return P===null||de(P)?ye(P):(e.enter("htmlFlowData"),ue(P))}function V(P){return P===45?(e.consume(P),I):ue(P)}function ie(P){return P===47?(e.consume(P),o="",Z):ue(P)}function Z(P){if(P===62){const Be=o.toLowerCase();return hu.includes(Be)?(e.consume(P),fe):ue(P)}return an(P)&&o.length<8?(e.consume(P),o+=String.fromCharCode(P),Z):ue(P)}function $(P){return P===93?(e.consume(P),I):ue(P)}function I(P){return P===62?(e.consume(P),fe):P===45&&i===2?(e.consume(P),I):ue(P)}function fe(P){return P===null||de(P)?(e.exit("htmlFlowData"),we(P)):(e.consume(P),fe)}function we(P){return e.exit("htmlFlow"),n(P)}}function L0(e,n,t){const r=this;return i;function i(o){return de(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):t(o)}function a(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function j0(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Wt,n,t)}}const D0={name:"htmlText",tokenize:M0};function M0(e,n,t){const r=this;let i,a,o;return l;function l(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),s}function s(I){return I===33?(e.consume(I),c):I===47?(e.consume(I),M):I===63?(e.consume(I),T):an(I)?(e.consume(I),W):t(I)}function c(I){return I===45?(e.consume(I),h):I===91?(e.consume(I),a=0,b):an(I)?(e.consume(I),B):t(I)}function h(I){return I===45?(e.consume(I),A):t(I)}function u(I){return I===null?t(I):I===45?(e.consume(I),f):de(I)?(o=u,ie(I)):(e.consume(I),u)}function f(I){return I===45?(e.consume(I),A):u(I)}function A(I){return I===62?V(I):I===45?f(I):u(I)}function b(I){const fe="CDATA[";return I===fe.charCodeAt(a++)?(e.consume(I),a===fe.length?v:b):t(I)}function v(I){return I===null?t(I):I===93?(e.consume(I),S):de(I)?(o=v,ie(I)):(e.consume(I),v)}function S(I){return I===93?(e.consume(I),O):v(I)}function O(I){return I===62?V(I):I===93?(e.consume(I),O):v(I)}function B(I){return I===null||I===62?V(I):de(I)?(o=B,ie(I)):(e.consume(I),B)}function T(I){return I===null?t(I):I===63?(e.consume(I),j):de(I)?(o=T,ie(I)):(e.consume(I),T)}function j(I){return I===62?V(I):T(I)}function M(I){return an(I)?(e.consume(I),k):t(I)}function k(I){return I===45||tn(I)?(e.consume(I),k):F(I)}function F(I){return de(I)?(o=F,ie(I)):Ee(I)?(e.consume(I),F):V(I)}function W(I){return I===45||tn(I)?(e.consume(I),W):I===47||I===62||Le(I)?ne(I):t(I)}function ne(I){return I===47?(e.consume(I),V):I===58||I===95||an(I)?(e.consume(I),L):de(I)?(o=ne,ie(I)):Ee(I)?(e.consume(I),ne):V(I)}function L(I){return I===45||I===46||I===58||I===95||tn(I)?(e.consume(I),L):Q(I)}function Q(I){return I===61?(e.consume(I),ue):de(I)?(o=Q,ie(I)):Ee(I)?(e.consume(I),Q):ne(I)}function ue(I){return I===null||I===60||I===61||I===62||I===96?t(I):I===34||I===39?(e.consume(I),i=I,ye):de(I)?(o=ue,ie(I)):Ee(I)?(e.consume(I),ue):(e.consume(I),ee)}function ye(I){return I===i?(e.consume(I),i=void 0,H):I===null?t(I):de(I)?(o=ye,ie(I)):(e.consume(I),ye)}function ee(I){return I===null||I===34||I===39||I===60||I===61||I===96?t(I):I===47||I===62||Le(I)?ne(I):(e.consume(I),ee)}function H(I){return I===47||I===62||Le(I)?ne(I):t(I)}function V(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),n):t(I)}function ie(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),Z}function Z(I){return Ee(I)?Se(e,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):$(I)}function $(I){return e.enter("htmlTextData"),o(I)}}const Fo={name:"labelEnd",tokenize:U0,resolveTo:q0,resolveAll:N0},z0={tokenize:H0},F0={tokenize:$0},R0={tokenize:W0};function N0(e){let n=-1;for(;++n<e.length;){const t=e[n][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(e.splice(n+1,t.type==="labelImage"?4:2),t.type="data",n++)}return e}function q0(e,n){let t=e.length,r=0,i,a,o,l;for(;t--;)if(i=e[t][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const s={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[o][1].end)},h={type:"labelText",start:Object.assign({},e[a+r+2][1].end),end:Object.assign({},e[o-2][1].start)};return l=[["enter",s,n],["enter",c,n]],l=gn(l,e.slice(a+1,a+r+3)),l=gn(l,[["enter",h,n]]),l=gn(l,Jr(n.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),n)),l=gn(l,[["exit",h,n],e[o-2],e[o-1],["exit",c,n]]),l=gn(l,e.slice(o+1)),l=gn(l,[["exit",s,n]]),An(e,a,e.length,l),e}function U0(e,n,t){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return l;function l(f){return a?a._inactive?u(f):(o=r.parser.defined.includes(wn(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),s):t(f)}function s(f){return f===40?e.attempt(z0,h,o?h:u)(f):f===91?e.attempt(F0,h,o?c:u)(f):o?h(f):u(f)}function c(f){return e.attempt(R0,h,u)(f)}function h(f){return n(f)}function u(f){return a._balanced=!0,t(f)}}function H0(e,n,t){return r;function r(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),i}function i(u){return Le(u)?Vt(e,a)(u):a(u)}function a(u){return u===41?h(u):pu(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function o(u){return Le(u)?Vt(e,s)(u):h(u)}function l(u){return t(u)}function s(u){return u===34||u===39||u===40?fu(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):h(u)}function c(u){return Le(u)?Vt(e,h)(u):h(u)}function h(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),n):t(u)}}function $0(e,n,t){const r=this;return i;function i(l){return du.call(r,e,a,o,"reference","referenceMarker","referenceString")(l)}function a(l){return r.parser.defined.includes(wn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(l):t(l)}function o(l){return t(l)}}function W0(e,n,t){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),n):t(a)}}const Y0={name:"labelStartImage",tokenize:V0,resolveAll:Fo.resolveAll};function V0(e,n,t){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),a}function a(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):t(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const K0={name:"labelStartLink",tokenize:Q0,resolveAll:Fo.resolveAll};function Q0(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const Ro={name:"lineEnding",tokenize:J0};function J0(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Se(e,n,"linePrefix")}}const Zr={name:"thematicBreak",tokenize:Z0};function Z0(e,n,t){let r=0,i;return a;function a(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,l(c)}function l(c){return c===i?(e.enter("thematicBreakSequence"),s(c)):r>=3&&(c===null||de(c))?(e.exit("thematicBreak"),n(c)):t(c)}function s(c){return c===i?(e.consume(c),r++,s):(e.exit("thematicBreakSequence"),Ee(c)?Se(e,l,"whitespace")(c):l(c))}}const cn={name:"list",tokenize:eA,continuation:{tokenize:nA},exit:rA},X0={tokenize:iA,partial:!0},G0={tokenize:tA,partial:!0};function eA(e,n,t){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(A){const b=r.containerState.type||(A===42||A===43||A===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||A===r.containerState.marker:Eo(A)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),A===42||A===45?e.check(Zr,t,c)(A):c(A);if(!r.interrupt||A===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(A)}return t(A)}function s(A){return Eo(A)&&++o<10?(e.consume(A),s):(!r.interrupt||o<2)&&(r.containerState.marker?A===r.containerState.marker:A===41||A===46)?(e.exit("listItemValue"),c(A)):t(A)}function c(A){return e.enter("listItemMarker"),e.consume(A),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||A,e.check(Wt,r.interrupt?t:h,e.attempt(X0,f,u))}function h(A){return r.containerState.initialBlankLine=!0,a++,f(A)}function u(A){return Ee(A)?(e.enter("listItemPrefixWhitespace"),e.consume(A),e.exit("listItemPrefixWhitespace"),f):t(A)}function f(A){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(A)}}function nA(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Wt,i,a);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Se(e,n,"listItemIndent",r.containerState.size+1)(l)}function a(l){return r.containerState.furtherBlankLines||!Ee(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(G0,n,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,Se(e,e.attempt(cn,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function tA(e,n,t){const r=this;return Se(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(a):t(a)}}function rA(e){e.exit(this.containerState.type)}function iA(e,n,t){const r=this;return Se(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!Ee(a)&&o&&o[1].type==="listItemPrefixWhitespace"?n(a):t(a)}}const mu={name:"setextUnderline",tokenize:aA,resolveTo:oA};function oA(e,n){let t=e.length,r,i,a;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!a&&e[t][1].type==="definition"&&(a=t);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,n]),e.splice(a+1,0,["exit",e[r][1],n]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,n]),e}function aA(e,n,t){const r=this;let i;return a;function a(c){let h=r.events.length,u;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){u=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||u)?(e.enter("setextHeadingLine"),i=c,o(c)):t(c)}function o(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===i?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),Ee(c)?Se(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||de(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}const lA={tokenize:mA,partial:!0};function sA(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:dA,continuation:{tokenize:fA},exit:hA}},text:{91:{name:"gfmFootnoteCall",tokenize:pA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:uA,resolveTo:cA}}}}function uA(e,n,t){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return l;function l(s){if(!o||!o._balanced)return t(s);const c=wn(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),n(s))}}function cA(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",a,n],["enter",o,n],["exit",o,n],["exit",a,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...l),e}function pA(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return l;function l(u){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),s}function s(u){return u!==94?t(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){if(a>999||u===93&&!o||u===null||u===91||Le(u))return t(u);if(u===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(wn(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(u)}return Le(u)||(o=!0),a++,e.consume(u),u===92?h:c}function h(u){return u===91||u===92||u===93?(e.consume(u),a++,c):c(u)}}function dA(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,l;return s;function s(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):t(b)}function h(b){if(o>999||b===93&&!l||b===null||b===91||Le(b))return t(b);if(b===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return a=wn(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Le(b)||(l=!0),o++,e.consume(b),b===92?u:h}function u(b){return b===91||b===92||b===93?(e.consume(b),o++,h):h(b)}function f(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Se(e,A,"gfmFootnoteDefinitionWhitespace")):t(b)}function A(b){return n(b)}}function fA(e,n,t){return e.check(Wt,n,e.attempt(lA,n,t))}function hA(e){e.exit("gfmFootnoteDefinition")}function mA(e,n,t){const r=this;return Se(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(a):t(a)}}function yA(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,l){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let c=s;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[s][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[s][1].end)},u={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[s][1].start)},f=[["enter",h,l],["enter",o[c][1],l],["exit",o[c][1],l],["enter",u,l]],A=l.parser.constructs.insideSpan.null;A&&An(f,f.length,0,Jr(A,o.slice(c+1,s),l)),An(f,f.length,0,[["exit",u,l],["enter",o[s][1],l],["exit",o[s][1],l],["exit",h,l]]),An(o,c-1,s-c+3,f),s=c+f.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function a(o,l,s){const c=this.previous,h=this.events;let u=0;return f;function f(b){return c===126&&h[h.length-1][1].type!=="characterEscape"?s(b):(o.enter("strikethroughSequenceTemporary"),A(b))}function A(b){const v=Qr(c);if(b===126)return u>1?s(b):(o.consume(b),u++,A);if(u<2&&!t)return s(b);const S=o.exit("strikethroughSequenceTemporary"),O=Qr(b);return S._open=!O||O===2&&!!v,S._close=!v||v===2&&!!O,l(b)}}}class AA{constructor(){this.map=[]}add(n,t,r){gA(this,n,t,r)}consume(n){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push([...n]),n.length=0;let i=r.pop();for(;i;)n.push(...i),i=r.pop();this.map.length=0}}function gA(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function bA(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function vA(){return{flow:{null:{name:"table",tokenize:xA,resolveAll:wA}}}}function xA(e,n,t){const r=this;let i=0,a=0,o;return l;function l(L){let Q=r.events.length-1;for(;Q>-1;){const ee=r.events[Q][1].type;if(ee==="lineEnding"||ee==="linePrefix")Q--;else break}const ue=Q>-1?r.events[Q][1].type:null,ye=ue==="tableHead"||ue==="tableRow"?k:s;return ye===k&&r.parser.lazy[r.now().line]?t(L):ye(L)}function s(L){return e.enter("tableHead"),e.enter("tableRow"),c(L)}function c(L){return L===124||(o=!0,a+=1),h(L)}function h(L){return L===null?t(L):de(L)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),A):t(L):Ee(L)?Se(e,h,"whitespace")(L):(a+=1,o&&(o=!1,i+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),o=!0,h):(e.enter("data"),u(L)))}function u(L){return L===null||L===124||Le(L)?(e.exit("data"),h(L)):(e.consume(L),L===92?f:u)}function f(L){return L===92||L===124?(e.consume(L),u):u(L)}function A(L){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(L):(e.enter("tableDelimiterRow"),o=!1,Ee(L)?Se(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):b(L))}function b(L){return L===45||L===58?S(L):L===124?(o=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),v):M(L)}function v(L){return Ee(L)?Se(e,S,"whitespace")(L):S(L)}function S(L){return L===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),O):L===45?(a+=1,O(L)):L===null||de(L)?j(L):M(L)}function O(L){return L===45?(e.enter("tableDelimiterFiller"),B(L)):M(L)}function B(L){return L===45?(e.consume(L),B):L===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(L))}function T(L){return Ee(L)?Se(e,j,"whitespace")(L):j(L)}function j(L){return L===124?b(L):L===null||de(L)?!o||i!==a?M(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(L)):M(L)}function M(L){return t(L)}function k(L){return e.enter("tableRow"),F(L)}function F(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),F):L===null||de(L)?(e.exit("tableRow"),n(L)):Ee(L)?Se(e,F,"whitespace")(L):(e.enter("data"),W(L))}function W(L){return L===null||L===124||Le(L)?(e.exit("data"),F(L)):(e.consume(L),L===92?ne:W)}function ne(L){return L===92||L===124?(e.consume(L),W):W(L)}}function wA(e,n){let t=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],l=!1,s=0,c,h,u;const f=new AA;for(;++t<e.length;){const A=e[t],b=A[1];A[0]==="enter"?b.type==="tableHead"?(l=!1,s!==0&&(yu(f,n,s,c,h),h=void 0,s=0),c={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(t,0,[["enter",c,n]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,u=void 0,a=[0,0,0,0],o=[0,t+1,0,0],l&&(l=!1,h={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(t,0,[["enter",h,n]])),i=b.type==="tableDelimiterRow"?2:h?3:1):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],u=Xr(f,n,a,i,void 0,u),a=[0,0,0,0]),o[2]=t)):b.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],u=Xr(f,n,a,i,void 0,u)),a=o,o=[a[1],t,0,0])):b.type==="tableHead"?(l=!0,s=t):b.type==="tableRow"||b.type==="tableDelimiterRow"?(s=t,a[1]!==0?(o[0]=o[1],u=Xr(f,n,a,i,t,u)):o[1]!==0&&(u=Xr(f,n,o,i,t,u)),i=0):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(o[3]=t)}for(s!==0&&yu(f,n,s,c,h),f.consume(n.events),t=-1;++t<n.events.length;){const A=n.events[t];A[0]==="enter"&&A[1].type==="table"&&(A[1]._align=bA(n.events,t))}return e}function Xr(e,n,t,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";t[0]!==0&&(a.end=Object.assign({},xt(n.events,t[0])),e.add(t[0],0,[["exit",a,n]]));const s=xt(n.events,t[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",a,n]]),t[2]!==0){const c=xt(n.events,t[2]),h=xt(n.events,t[3]),u={type:l,start:Object.assign({},c),end:Object.assign({},h)};if(e.add(t[2],0,[["enter",u,n]]),r!==2){const f=n.events[t[2]],A=n.events[t[3]];if(f[1].end=Object.assign({},A[1].end),f[1].type="chunkText",f[1].contentType="text",t[3]>t[2]+1){const b=t[2]+1,v=t[3]-t[2]-1;e.add(b,v,[])}}e.add(t[3]+1,0,[["exit",u,n]])}return i!==void 0&&(a.end=Object.assign({},xt(n.events,i)),e.add(i,0,[["exit",a,n]]),a=void 0),a}function yu(e,n,t,r,i){const a=[],o=xt(n.events,t);i&&(i.end=Object.assign({},o),a.push(["exit",i,n])),r.end=Object.assign({},o),a.push(["exit",r,n]),e.add(t+1,0,a)}function xt(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const kA={name:"tasklistCheck",tokenize:CA};function EA(){return{text:{91:kA}}}function CA(e,n,t){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),a)}function a(s){return Le(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):t(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):t(s)}function l(s){return de(s)?n(s):Ee(s)?e.check({tokenize:SA},n,t)(s):t(s)}}function SA(e,n,t){return Se(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function BA(e){return Qs([zy(),sA(),yA(e),vA(),EA()])}const IA={};function OA(e){const n=this,t=e||IA,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(BA(t)),a.push(_y()),o.push(Ty(t))}function PA(e){const[n,t]=re.useState(!1),[r,i]=re.useState();return re.useEffect(()=>{Promise.resolve().then(()=>Cv).then(a=>{i(q.jsx(a.default,{remarkPlugins:[Gh,OA],children:e.value}))})},[e.value]),q.jsxs("div",{className:"zyjj-lab-markdown",style:{position:"relative"},children:[e.value?q.jsxs(te.Space,{style:{position:"absolute",right:0,margin:5,zIndex:99},children:[q.jsx($r,{noSuccess:!0,onClick:async()=>t(a=>!a),icon:n?q.jsx(Ao,{}):q.jsx(xo,{}),tip:n?"预览":"编辑"}),q.jsx(Fh,{value:e.value})]}):q.jsx(q.Fragment,{}),n?q.jsx(te.Input.TextArea,{style:{borderRadius:5,padding:10},autoSize:!0,value:e.value,onChange:e.onChange}):q.jsx("div",{style:{padding:10},children:r})]})}const _A=Object.freeze(Object.defineProperty({__proto__:null,default:PA},Symbol.toStringTag,{value:"Module"}));function TA(e){const[n,t]=re.useState(""),r=re.useCallback(i=>{if(!i||!e.value)return;let a={};typeof e.value=="string"?(t(e.value),a.url=e.value,a.name=e.value.split("/").pop()):(a=e.value,t(a.url)),Promise.resolve().then(()=>Sv).then(o=>{new o.default({container:i,loop:"none",lrcType:1,audio:[a]})})},[e.value]);return q.jsxs(te.Space,{direction:"vertical",children:[q.jsx("div",{style:{width:"99%",borderRadius:5},ref:r}),q.jsx(bs,{link:n})]})}const LA=Object.freeze(Object.defineProperty({__proto__:null,default:TA},Symbol.toStringTag,{value:"Module"}));function jA(e){const{value:n,data:t,onChange:r}=e,i=(t==null?void 0:t.max_size)||10*1024*1024,[a,o]=re.useState([]),l=s=>{console.log("custom upload",s);const{onSuccess:c,file:h}=s;if(h.size>i){te.Message.warning(`文件大小超过 ${i/1024/1024}M, 请重新上传!`),o([]);return}r&&r(ol(h,t==null?void 0:t.no_path)),c()};return re.useEffect(()=>{o(n?[{uid:n.uid,name:n.name}]:[])},[n]),q.jsx(te.Upload,{accept:t==null?void 0:t.accept,fileList:a,onChange:o,onRemove:()=>r(void 0),limit:1,customRequest:l,children:q.jsx(te.Button,{type:"outline",icon:q.jsx(bo,{}),children:"点击上传"})})}const DA=Object.freeze(Object.defineProperty({__proto__:null,default:jA},Symbol.toStringTag,{value:"Module"}));function MA(e){var n,t,r;return q.jsx(te.InputNumber,{value:e.value,onChange:e.onChange,mode:"button",max:(n=e.data)==null?void 0:n.max,min:(t=e.data)==null?void 0:t.min,step:(r=e.data)==null?void 0:r.step})}const Au=Object.freeze(Object.defineProperty({__proto__:null,default:MA},Symbol.toStringTag,{value:"Module"}));function zA(e){var n;return e.value?q.jsx(te.Image.PreviewGroup,{infinite:!0,children:q.jsx(te.Grid,{cols:4,colGap:5,rowGap:5,children:(n=e.value)==null?void 0:n.map((t,r)=>q.jsx(te.Grid.GridItem,{children:q.jsx(vs,{src:t})},r))})}):q.jsx(q.Fragment,{})}const FA=Object.freeze(Object.defineProperty({__proto__:null,default:zA},Symbol.toStringTag,{value:"Module"}));function RA(e){return e.value?q.jsx(te.Space,{children:q.jsx(vs,{src:e.value})}):q.jsx(q.Fragment,{})}const NA=Object.freeze(Object.defineProperty({__proto__:null,default:RA},Symbol.toStringTag,{value:"Module"}));function qA(e){var n,t;return q.jsx(te.Alert,{content:(n=e.data)==null?void 0:n.content,type:(t=e.data)==null?void 0:t.type})}const UA=Object.freeze(Object.defineProperty({__proto__:null,default:qA},Symbol.toStringTag,{value:"Module"}));function HA(e){var t;const n=re.useCallback(r=>{!r||!e.value||Promise.resolve().then(()=>Bv).then(i=>{var a;new i.default({container:r,screenshot:!0,video:{url:(a=e.value)==null?void 0:a.url}})})},[e.value]);return q.jsxs(te.Space,{direction:"vertical",children:[q.jsx("div",{style:{width:"100%",borderRadius:5},ref:n}),q.jsx(bs,{link:(t=e.value)==null?void 0:t.url})]})}const $A=Object.freeze(Object.defineProperty({__proto__:null,default:HA},Symbol.toStringTag,{value:"Module"}));function WA(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const YA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,KA={};function gu(e,n){return(KA.jsx?VA:YA).test(e)}const QA=/[ \t\n\f\r]/g;function JA(e){return typeof e=="object"?e.type==="text"?bu(e.value):!1:bu(e)}function bu(e){return e.replace(QA,"")===""}class Kt{constructor(n,t,r){this.property=n,this.normal=t,r&&(this.space=r)}}Kt.prototype.property={},Kt.prototype.normal={},Kt.prototype.space=null;function vu(e,n){const t={},r={};let i=-1;for(;++i<e.length;)Object.assign(t,e[i].property),Object.assign(r,e[i].normal);return new Kt(t,r,n)}function No(e){return e.toLowerCase()}class bn{constructor(n,t){this.property=n,this.attribute=t}}bn.prototype.space=null,bn.prototype.boolean=!1,bn.prototype.booleanish=!1,bn.prototype.overloadedBoolean=!1,bn.prototype.number=!1,bn.prototype.commaSeparated=!1,bn.prototype.spaceSeparated=!1,bn.prototype.commaOrSpaceSeparated=!1,bn.prototype.mustUseProperty=!1,bn.prototype.defined=!1;let ZA=0;const ge=at(),Ve=at(),xu=at(),K=at(),De=at(),wt=at(),hn=at();function at(){return 2**++ZA}const qo=Object.freeze(Object.defineProperty({__proto__:null,boolean:ge,booleanish:Ve,commaOrSpaceSeparated:hn,commaSeparated:wt,number:K,overloadedBoolean:xu,spaceSeparated:De},Symbol.toStringTag,{value:"Module"})),Uo=Object.keys(qo);class Ho extends bn{constructor(n,t,r,i){let a=-1;if(super(n,t),wu(this,"space",i),typeof r=="number")for(;++a<Uo.length;){const o=Uo[a];wu(this,Uo[a],(r&qo[o])===qo[o])}}}Ho.prototype.defined=!0;function wu(e,n,t){t&&(e[n]=t)}const XA={}.hasOwnProperty;function kt(e){const n={},t={};let r;for(r in e.properties)if(XA.call(e.properties,r)){const i=e.properties[r],a=new Ho(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),n[r]=a,t[No(r)]=r,t[No(a.attribute)]=r}return new Kt(n,t,e.space)}const ku=kt({space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Eu=kt({space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Cu(e,n){return n in e?e[n]:n}function Su(e,n){return Cu(e,n.toLowerCase())}const Bu=kt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Su,properties:{xmlns:null,xmlnsXLink:null}}),Iu=kt({transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ve,ariaAutoComplete:null,ariaBusy:Ve,ariaChecked:Ve,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:De,ariaCurrent:null,ariaDescribedBy:De,ariaDetails:null,ariaDisabled:Ve,ariaDropEffect:De,ariaErrorMessage:null,ariaExpanded:Ve,ariaFlowTo:De,ariaGrabbed:Ve,ariaHasPopup:null,ariaHidden:Ve,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:De,ariaLevel:K,ariaLive:null,ariaModal:Ve,ariaMultiLine:Ve,ariaMultiSelectable:Ve,ariaOrientation:null,ariaOwns:De,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:Ve,ariaReadOnly:Ve,ariaRelevant:null,ariaRequired:Ve,ariaRoleDescription:De,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:Ve,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null}}),GA=kt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Su,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wt,acceptCharset:De,accessKey:De,action:null,allow:null,allowFullScreen:ge,allowPaymentRequest:ge,allowUserMedia:ge,alt:null,as:null,async:ge,autoCapitalize:null,autoComplete:De,autoFocus:ge,autoPlay:ge,blocking:De,capture:null,charSet:null,checked:ge,cite:null,className:De,cols:K,colSpan:null,content:null,contentEditable:Ve,controls:ge,controlsList:De,coords:K|wt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ge,defer:ge,dir:null,dirName:null,disabled:ge,download:xu,draggable:Ve,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ge,formTarget:null,headers:De,height:K,hidden:ge,high:K,href:null,hrefLang:null,htmlFor:De,httpEquiv:De,id:null,imageSizes:null,imageSrcSet:null,inert:ge,inputMode:null,integrity:null,is:null,isMap:ge,itemId:null,itemProp:De,itemRef:De,itemScope:ge,itemType:De,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ge,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:ge,muted:ge,name:null,nonce:null,noModule:ge,noValidate:ge,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ge,optimum:K,pattern:null,ping:De,placeholder:null,playsInline:ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ge,referrerPolicy:null,rel:De,required:ge,reversed:ge,rows:K,rowSpan:K,sandbox:De,scope:null,scoped:ge,seamless:ge,selected:ge,shadowRootClonable:ge,shadowRootDelegatesFocus:ge,shadowRootMode:null,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:Ve,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:ge,useMap:null,value:Ve,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:De,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ge,declare:ge,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:ge,noHref:ge,noShade:ge,noWrap:ge,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:Ve,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ge,disableRemotePlayback:ge,prefix:null,property:null,results:K,security:null,unselectable:null}}),eg=kt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Cu,properties:{about:hn,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:De,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:wt,g2:wt,glyphName:wt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:K,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:De,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:hn,rev:hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:hn,requiredFeatures:hn,requiredFonts:hn,requiredFormats:hn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:hn,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ng=/^data[-\w.:]+$/i,Ou=/-[a-z]/g,tg=/[A-Z]/g;function rg(e,n){const t=No(n);let r=n,i=bn;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&ng.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(Ou,og);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!Ou.test(a)){let o=a.replace(tg,ig);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Ho}return new i(r,n)}function ig(e){return"-"+e.toLowerCase()}function og(e){return e.charAt(1).toUpperCase()}const ag={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},lg=vu([Eu,ku,Bu,Iu,GA],"html"),$o=vu([Eu,ku,Bu,Iu,eg],"svg");function sg(e){return e.join(" ").trim()}var Pu={},_u=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ug=/\n/g,cg=/^\s*/,pg=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,dg=/^:\s*/,fg=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,hg=/^[;\s]*/,mg=/^\s+|\s+$/g,yg=`
51
- `,Tu="/",Lu="*",lt="",Ag="comment",gg="declaration",bg=function(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(b){var v=b.match(ug);v&&(t+=v.length);var S=b.lastIndexOf(yg);r=~S?b.length-S:r+b.length}function a(){var b={line:t,column:r};return function(v){return v.position=new o(b),c(),v}}function o(b){this.start=b,this.end={line:t,column:r},this.source=n.source}o.prototype.content=e;function l(b){var v=new Error(n.source+":"+t+":"+r+": "+b);if(v.reason=b,v.filename=n.source,v.line=t,v.column=r,v.source=e,!n.silent)throw v}function s(b){var v=b.exec(e);if(v){var S=v[0];return i(S),e=e.slice(S.length),v}}function c(){s(cg)}function h(b){var v;for(b=b||[];v=u();)v!==!1&&b.push(v);return b}function u(){var b=a();if(!(Tu!=e.charAt(0)||Lu!=e.charAt(1))){for(var v=2;lt!=e.charAt(v)&&(Lu!=e.charAt(v)||Tu!=e.charAt(v+1));)++v;if(v+=2,lt===e.charAt(v-1))return l("End of comment missing");var S=e.slice(2,v-2);return r+=2,i(S),e=e.slice(v),r+=2,b({type:Ag,comment:S})}}function f(){var b=a(),v=s(pg);if(v){if(u(),!s(dg))return l("property missing ':'");var S=s(fg),O=b({type:gg,property:ju(v[0].replace(_u,lt)),value:S?ju(S[0].replace(_u,lt)):lt});return s(hg),O}}function A(){var b=[];h(b);for(var v;v=f();)v!==!1&&(b.push(v),h(b));return b}return c(),A()};function ju(e){return e?e.replace(mg,lt):lt}var vg=_r&&_r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pu,"__esModule",{value:!0});var xg=vg(bg);function wg(e,n){var t=null;if(!e||typeof e!="string")return t;var r=(0,xg.default)(e),i=typeof n=="function";return r.forEach(function(a){if(a.type==="declaration"){var o=a.property,l=a.value;i?n(o,l,a):l&&(t=t||{},t[o]=l)}}),t}var Du=Pu.default=wg;const kg=Du.default||Du,Mu=zu("end"),Wo=zu("start");function zu(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Eg(e){const n=Wo(e),t=Mu(e);if(n&&t)return{start:n,end:t}}function Qt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Fu(e.position):"start"in e||"end"in e?Fu(e):"line"in e||"column"in e?Yo(e):""}function Yo(e){return Ru(e&&e.line)+":"+Ru(e&&e.column)}function Fu(e){return Yo(e&&e.start)+"-"+Yo(e&&e.end)}function Ru(e){return e&&typeof e=="number"?e:1}class rn extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",a={},o=!1;if(t&&("line"in t&&"column"in t?a={place:t}:"start"in t&&"end"in t?a={place:t}:"type"in t?a={ancestors:[t],place:t.position}:a={...t}),typeof n=="string"?i=n:!a.cause&&n&&(o=!0,i=n.message,a.cause=n),!a.ruleId&&!a.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?a.ruleId=r:(a.source=r.slice(0,s),a.ruleId=r.slice(s+1))}if(!a.place&&a.ancestors&&a.ancestors){const s=a.ancestors[a.ancestors.length-1];s&&(a.place=s.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=l?l.line:void 0,this.name=Qt(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}rn.prototype.file="",rn.prototype.name="",rn.prototype.reason="",rn.prototype.message="",rn.prototype.stack="",rn.prototype.column=void 0,rn.prototype.line=void 0,rn.prototype.ancestors=void 0,rn.prototype.cause=void 0,rn.prototype.fatal=void 0,rn.prototype.place=void 0,rn.prototype.ruleId=void 0,rn.prototype.source=void 0;const Vo={}.hasOwnProperty,Cg=new Map,Sg=/[A-Z]/g,Bg=/-([a-z])/g,Ig=new Set(["table","tbody","thead","tfoot","tr"]),Og=new Set(["td","th"]),Nu="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Pg(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Fg(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=zg(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?$o:lg,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},a=qu(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function qu(e,n,t){if(n.type==="element")return _g(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Tg(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return jg(e,n,t);if(n.type==="mdxjsEsm")return Lg(e,n);if(n.type==="root")return Dg(e,n,t);if(n.type==="text")return Mg(e,n)}function _g(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=$o,e.schema=i),e.ancestors.push(n);const a=Hu(e,n.tagName,!1),o=Rg(e,n);let l=Qo(e,n);return Ig.has(n.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!JA(s):!0})),Uu(e,o,a,n),Ko(o,l),e.ancestors.pop(),e.schema=r,e.create(n,a,o,t)}function Tg(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Jt(e,n.position)}function Lg(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Jt(e,n.position)}function jg(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=$o,e.schema=i),e.ancestors.push(n);const a=n.name===null?e.Fragment:Hu(e,n.name,!0),o=Ng(e,n),l=Qo(e,n);return Uu(e,o,a,n),Ko(o,l),e.ancestors.pop(),e.schema=r,e.create(n,a,o,t)}function Dg(e,n,t){const r={};return Ko(r,Qo(e,n)),e.create(n,e.Fragment,r,t)}function Mg(e,n){return n.value}function Uu(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Ko(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function zg(e,n,t){return r;function r(i,a,o,l){const c=Array.isArray(o.children)?t:n;return l?c(a,o,l):c(a,o)}}function Fg(e,n){return t;function t(r,i,a,o){const l=Array.isArray(a.children),s=Wo(r);return n(i,a,o,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Rg(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Vo.call(n.properties,i)){const a=qg(e,i,n.properties[i]);if(a){const[o,l]=a;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&Og.has(n.tagName)?r=l:t[o]=l}}if(r){const a=t.style||(t.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Ng(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const l=o.properties[0];l.type,Object.assign(t,e.evaluater.evaluateExpression(l.argument))}else Jt(e,n.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,a=e.evaluater.evaluateExpression(l.expression)}else Jt(e,n.position);else a=r.value===null?!0:r.value;t[i]=a}return t}function Qo(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Cg;for(;++r<n.children.length;){const a=n.children[r];let o;if(e.passKeys){const s=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(s){const c=i.get(s)||0;o=s+"-"+c,i.set(s,c+1)}}const l=qu(e,a,o);l!==void 0&&t.push(l)}return t}function qg(e,n,t){const r=rg(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?WA(t):sg(t)),r.property==="style"){let i=typeof t=="object"?t:Ug(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Hg(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ag[r.property]||r.property:r.attribute,t]}}function Ug(e,n){const t={};try{kg(n,r)}catch(i){if(!e.ignoreInvalidStyle){const a=i,o=new rn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=Nu+"#cannot-parse-style-attribute",o}}return t;function r(i,a){let o=i;o.slice(0,2)!=="--"&&(o.slice(0,4)==="-ms-"&&(o="ms-"+o.slice(4)),o=o.replace(Bg,Wg)),t[o]=a}}function Hu(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let a=-1,o;for(;++a<i.length;){const l=gu(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:l,computed:!!(a&&l.type==="Literal"),optional:!1}:l}r=o}else r=gu(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Vo.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Jt(e)}function Jt(e,n){const t=new rn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Nu+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Hg(e){const n={};let t;for(t in e)Vo.call(e,t)&&(n[$g(t)]=e[t]);return n}function $g(e){let n=e.replace(Sg,Yg);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Wg(e,n){return n.toUpperCase()}function Yg(e){return"-"+e.toLowerCase()}const Jo={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Vg={tokenize:Kg};function Kg(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Se(e,n,"linePrefix")}function i(l){return e.enter("paragraph"),a(l)}function a(l){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,o(l)}function o(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return de(l)?(e.consume(l),e.exit("chunkText"),a):(e.consume(l),o)}}const Qg={tokenize:Jg},$u={tokenize:Zg};function Jg(e){const n=this,t=[];let r=0,i,a,o;return l;function l(T){if(r<t.length){const j=t[r];return n.containerState=j[1],e.attempt(j[0].continuation,s,c)(T)}return c(T)}function s(T){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&B();const j=n.events.length;let M=j,k;for(;M--;)if(n.events[M][0]==="exit"&&n.events[M][1].type==="chunkFlow"){k=n.events[M][1].end;break}O(r);let F=j;for(;F<n.events.length;)n.events[F][1].end=Object.assign({},k),F++;return An(n.events,M+1,0,n.events.slice(j)),n.events.length=F,c(T)}return l(T)}function c(T){if(r===t.length){if(!i)return f(T);if(i.currentConstruct&&i.currentConstruct.concrete)return b(T);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check($u,h,u)(T)}function h(T){return i&&B(),O(r),f(T)}function u(T){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,b(T)}function f(T){return n.containerState={},e.attempt($u,A,b)(T)}function A(T){return r++,t.push([n.currentConstruct,n.containerState]),f(T)}function b(T){if(T===null){i&&B(),O(0),e.consume(T);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),v(T)}function v(T){if(T===null){S(e.exit("chunkFlow"),!0),O(0),e.consume(T);return}return de(T)?(e.consume(T),S(e.exit("chunkFlow")),r=0,n.interrupt=void 0,l):(e.consume(T),v)}function S(T,j){const M=n.sliceStream(T);if(j&&M.push(null),T.previous=a,a&&(a.next=T),a=T,i.defineSkip(T.start),i.write(M),n.parser.lazy[T.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<o&&(!i.events[k][1].end||i.events[k][1].end.offset>o))return;const F=n.events.length;let W=F,ne,L;for(;W--;)if(n.events[W][0]==="exit"&&n.events[W][1].type==="chunkFlow"){if(ne){L=n.events[W][1].end;break}ne=!0}for(O(r),k=F;k<n.events.length;)n.events[k][1].end=Object.assign({},L),k++;An(n.events,W+1,0,n.events.slice(F)),n.events.length=k}}function O(T){let j=t.length;for(;j-- >T;){const M=t[j];n.containerState=M[1],M[0].exit.call(n,e)}t.length=T}function B(){i.write([null]),a=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Zg(e,n,t){return Se(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Xg={tokenize:Gg};function Gg(e){const n=this,t=e.attempt(Wt,r,e.attempt(this.parser.constructs.flowInitial,i,Se(e,e.attempt(this.parser.constructs.flow,i,e.attempt(f0,i)),"linePrefix")));return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const eb={resolveAll:Yu()},nb=Wu("string"),tb=Wu("text");function Wu(e){return{tokenize:n,resolveAll:Yu(e==="text"?rb:void 0)};function n(t){const r=this,i=this.parser.constructs[e],a=t.attempt(i,o,l);return o;function o(h){return c(h)?a(h):l(h)}function l(h){if(h===null){t.consume(h);return}return t.enter("data"),t.consume(h),s}function s(h){return c(h)?(t.exit("data"),a(h)):(t.consume(h),s)}function c(h){if(h===null)return!0;const u=i[h];let f=-1;if(u)for(;++f<u.length;){const A=u[f];if(!A.previous||A.previous.call(r,r.previous))return!0}return!1}}}function Yu(e){return n;function n(t,r){let i=-1,a;for(;++i<=t.length;)a===void 0?t[i]&&t[i][1].type==="data"&&(a=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==a+2&&(t[a][1].end=t[i-1][1].end,t.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(t,r):t}}function rb(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let a=i.length,o=-1,l=0,s;for(;a--;){const c=i[a];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(c===-2)s=!0,l++;else if(c!==-1){a++;break}}if(l){const c={type:t===e.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}function ib(e,n,t){let r=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let o=[],l=[];const s={consume:B,enter:T,exit:j,attempt:F(M),check:F(k),interrupt:F(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:A,sliceSerialize:f,now:b,defineSkip:v,write:u};let h=n.tokenize.call(c,s);return n.resolveAll&&a.push(n),c;function u(Q){return o=gn(o,Q),S(),o[o.length-1]!==null?[]:(W(n,0),c.events=Jr(a,c.events,c),c.events)}function f(Q,ue){return ab(A(Q),ue)}function A(Q){return ob(o,Q)}function b(){const{line:Q,column:ue,offset:ye,_index:ee,_bufferIndex:H}=r;return{line:Q,column:ue,offset:ye,_index:ee,_bufferIndex:H}}function v(Q){i[Q.line]=Q.column,L()}function S(){let Q;for(;r._index<o.length;){const ue=o[r._index];if(typeof ue=="string")for(Q=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===Q&&r._bufferIndex<ue.length;)O(ue.charCodeAt(r._bufferIndex));else O(ue)}}function O(Q){h=h(Q)}function B(Q){de(Q)?(r.line++,r.column=1,r.offset+=Q===-3?2:1,L()):Q!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=Q}function T(Q,ue){const ye=ue||{};return ye.type=Q,ye.start=b(),c.events.push(["enter",ye,c]),l.push(ye),ye}function j(Q){const ue=l.pop();return ue.end=b(),c.events.push(["exit",ue,c]),ue}function M(Q,ue){W(Q,ue.from)}function k(Q,ue){ue.restore()}function F(Q,ue){return ye;function ye(ee,H,V){let ie,Z,$,I;return Array.isArray(ee)?we(ee):"tokenize"in ee?we([ee]):fe(ee);function fe(ke){return Ue;function Ue(ze){const Re=ze!==null&&ke[ze],Pe=ze!==null&&ke.null,en=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(Pe)?Pe:Pe?[Pe]:[]];return we(en)(ze)}}function we(ke){return ie=ke,Z=0,ke.length===0?V:P(ke[Z])}function P(ke){return Ue;function Ue(ze){return I=ne(),$=ke,ke.partial||(c.currentConstruct=ke),ke.name&&c.parser.constructs.disable.null.includes(ke.name)?Me():ke.tokenize.call(ue?Object.assign(Object.create(c),ue):c,s,Be,Me)(ze)}}function Be(ke){return Q($,I),H}function Me(ke){return I.restore(),++Z<ie.length?P(ie[Z]):V}}}function W(Q,ue){Q.resolveAll&&!a.includes(Q)&&a.push(Q),Q.resolve&&An(c.events,ue,c.events.length-ue,Q.resolve(c.events.slice(ue),c)),Q.resolveTo&&(c.events=Q.resolveTo(c.events,c))}function ne(){const Q=b(),ue=c.previous,ye=c.currentConstruct,ee=c.events.length,H=Array.from(l);return{restore:V,from:ee};function V(){r=Q,c.previous=ue,c.currentConstruct=ye,c.events.length=ee,l=H,L()}}function L(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ob(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,a=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,a)];else{if(o=e.slice(t,i),r>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function ab(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const a=e[t];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
50
+ `))}function s(A,b,v,S){const O=v.enter("tableCell"),B=v.enter("phrasing"),_=v.containerPhrasing(A,{...S,before:a,after:a});return B(),O(),_}function c(A,b){return zm(A,{align:b,alignDelimiters:r,padding:t,stringLength:i})}function h(A,b,v){const S=A.children;let O=-1;const B=[],_=b.enter("table");for(;++O<S.length;)B[O]=u(S[O],b,v);return _(),B}function u(A,b,v){const S=A.children;let O=-1;const B=[],_=b.enter("tableRow");for(;++O<S.length;)B[O]=s(S[O],A,b,v);return _(),B}function f(A,b,v){let S=Hs.inlineCode(A,b,v);return v.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function Py(){return{exit:{taskListCheckValueChecked:Vs,taskListCheckValueUnchecked:Vs,paragraph:_y}}}function Ty(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ly}}}function Vs(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function _y(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let a=-1,o;for(;++a<i.length;){const l=i[a];if(l.type==="paragraph"){o=l;break}}o===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Ly(e,n,t,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=t.createTracker(r);a&&l.move(o);let s=Hs.listItem(e,n,t,{...r,...l.current()});return a&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),s;function c(h){return h+o}}function jy(){return[am(),gm(),_m(),ky(),Py()]}function Dy(e){return{extensions:[lm(),bm(),Lm(),Oy(e),Ty()]}}function An(e,n,t,r){const i=e.length;let a=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);a<r.length;)o=r.slice(a,a+1e4),o.unshift(n,0),e.splice(...o),a+=1e4,n+=1e4}function gn(e,n){return e.length>0?(An(e,e.length,0,n),e):n}const Ks={}.hasOwnProperty;function Qs(e){const n={};let t=-1;for(;++t<e.length;)My(n,e[t]);return n}function My(e,n){let t;for(t in n){const i=(Ks.call(e,t)?e[t]:void 0)||(e[t]={}),a=n[t];let o;if(a)for(o in a){Ks.call(i,o)||(i[o]=[]);const l=a[o];zy(i[o],Array.isArray(l)?l:l?[l]:[])}}}function zy(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);An(e,0,0,r)}const Fy={tokenize:$y,partial:!0},Js={tokenize:Wy,partial:!0},Zs={tokenize:Yy,partial:!0},Xs={tokenize:Vy,partial:!0},Ry={tokenize:Ky,partial:!0},Gs={name:"wwwAutolink",tokenize:Uy,previous:nu},eu={name:"protocolAutolink",tokenize:Hy,previous:tu},Mn={name:"emailAutolink",tokenize:qy,previous:ru},Bn={};function Ny(){return{text:Bn}}let ot=48;for(;ot<123;)Bn[ot]=Mn,ot++,ot===58?ot=65:ot===91&&(ot=97);Bn[43]=Mn,Bn[45]=Mn,Bn[46]=Mn,Bn[95]=Mn,Bn[72]=[Mn,eu],Bn[104]=[Mn,eu],Bn[87]=[Mn,Gs],Bn[119]=[Mn,Gs];function qy(e,n,t){const r=this;let i,a;return o;function o(u){return!jo(u)||!ru.call(r,r.previous)||Do(r.events)?t(u):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(u))}function l(u){return jo(u)?(e.consume(u),l):u===64?(e.consume(u),s):t(u)}function s(u){return u===46?e.check(Ry,h,c)(u):u===45||u===95||tn(u)?(a=!0,e.consume(u),s):h(u)}function c(u){return e.consume(u),i=!0,s}function h(u){return a&&i&&an(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(u)):t(u)}}function Uy(e,n,t){const r=this;return i;function i(o){return o!==87&&o!==119||!nu.call(r,r.previous)||Do(r.events)?t(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Fy,e.attempt(Js,e.attempt(Zs,a),t),t)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function Hy(e,n,t){const r=this;let i="",a=!1;return o;function o(u){return(u===72||u===104)&&tu.call(r,r.previous)&&!Do(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(u),e.consume(u),l):t(u)}function l(u){if(an(u)&&i.length<5)return i+=String.fromCodePoint(u),e.consume(u),l;if(u===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(u),s}return t(u)}function s(u){return u===47?(e.consume(u),a?c:(a=!0,s)):t(u)}function c(u){return u===null||Kr(u)||Le(u)||it(u)||Qr(u)?t(u):e.attempt(Js,e.attempt(Zs,h),t)(u)}function h(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(u)}}function $y(e,n,t){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):t(o)}function a(o){return o===null?t(o):n(o)}}function Wy(e,n,t){let r,i,a;return o;function o(c){return c===46||c===95?e.check(Xs,s,l)(c):c===null||Le(c)||it(c)||c!==45&&Qr(c)?s(c):(a=!0,e.consume(c),o)}function l(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function s(c){return i||r||!a?t(c):n(c)}}function Yy(e,n){let t=0,r=0;return i;function i(o){return o===40?(t++,e.consume(o),i):o===41&&r<t?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Xs,n,a)(o):o===null||Le(o)||it(o)?n(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function Vy(e,n,t){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),a):l===93?(e.consume(l),i):l===60||l===null||Le(l)||it(l)?n(l):t(l)}function i(l){return l===null||l===40||l===91||Le(l)||it(l)?n(l):r(l)}function a(l){return an(l)?o(l):t(l)}function o(l){return l===59?(e.consume(l),r):an(l)?(e.consume(l),o):t(l)}}function Ky(e,n,t){return r;function r(a){return e.consume(a),i}function i(a){return tn(a)?t(a):n(a)}}function nu(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Le(e)}function tu(e){return!an(e)}function ru(e){return!(e===47||jo(e))}function jo(e){return e===43||e===45||e===46||e===95||tn(e)}function Do(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}function vt(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const a=e.charCodeAt(t);let o="";if(a===37&&tn(e.charCodeAt(t+1))&&tn(e.charCodeAt(t+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const l=e.charCodeAt(t+1);a<56320&&l>56319&&l<57344?(o=String.fromCharCode(a,l),i=1):o="�"}else o=String.fromCharCode(a);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function Jr(e){if(e===null||Le(e)||it(e))return 1;if(Qr(e))return 2}function Zr(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(n=a(n,t),r.push(a))}return n}const Mo={name:"attention",tokenize:Jy,resolveAll:Qy};function Qy(e,n){let t=-1,r,i,a,o,l,s,c,h;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const u=Object.assign({},e[r][1].end),f=Object.assign({},e[t][1].start);iu(u,-s),iu(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[r][1].end)},l={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[t][1].start),end:f},a={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[t][1].start)},i={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},l.end)},e[r][1].end=Object.assign({},o.start),e[t][1].start=Object.assign({},l.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=gn(c,[["enter",e[r][1],n],["exit",e[r][1],n]])),c=gn(c,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",a,n]]),c=gn(c,Zr(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),c=gn(c,[["exit",a,n],["enter",l,n],["exit",l,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(h=2,c=gn(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):h=0,An(e,r-1,t-r+3,c),t=r+c.length-h-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Jy(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Jr(r);let a;return o;function o(s){return a=s,e.enter("attentionSequence"),l(s)}function l(s){if(s===a)return e.consume(s),l;const c=e.exit("attentionSequence"),h=Jr(s),u=!h||h===2&&i||t.includes(s),f=!i||i===2&&h||t.includes(r);return c._open=!!(a===42?u:u&&(i||!f)),c._close=!!(a===42?f:f&&(h||!u)),n(s)}}function iu(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Zy={name:"autolink",tokenize:Xy};function Xy(e,n,t){let r=0;return i;function i(A){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(A),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(A){return an(A)?(e.consume(A),o):A===64?t(A):c(A)}function o(A){return A===43||A===45||A===46||tn(A)?(r=1,l(A)):c(A)}function l(A){return A===58?(e.consume(A),r=0,s):(A===43||A===45||A===46||tn(A))&&r++<32?(e.consume(A),l):(r=0,c(A))}function s(A){return A===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(A),e.exit("autolinkMarker"),e.exit("autolink"),n):A===null||A===32||A===60||Kr(A)?t(A):(e.consume(A),s)}function c(A){return A===64?(e.consume(A),h):rm(A)?(e.consume(A),c):t(A)}function h(A){return tn(A)?u(A):t(A)}function u(A){return A===46?(e.consume(A),r=0,h):A===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(A),e.exit("autolinkMarker"),e.exit("autolink"),n):f(A)}function f(A){if((A===45||tn(A))&&r++<63){const b=A===45?f:u;return e.consume(A),b}return t(A)}}function Se(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(s){return Ee(s)?(e.enter(t),l(s)):n(s)}function l(s){return Ee(s)&&a++<i?(e.consume(s),l):(e.exit(t),n(s))}}const Yt={tokenize:Gy,partial:!0};function Gy(e,n,t){return r;function r(a){return Ee(a)?Se(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||de(a)?n(a):t(a)}}const ou={name:"blockQuote",tokenize:e0,continuation:{tokenize:n0},exit:t0};function e0(e,n,t){const r=this;return i;function i(o){if(o===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return t(o)}function a(o){return Ee(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function n0(e,n,t){const r=this;return i;function i(o){return Ee(o)?Se(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(ou,n,t)(o)}}function t0(e){e.exit("blockQuote")}const au={name:"characterEscape",tokenize:r0};function r0(e,n,t){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return om(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(a)}}const lu={name:"characterReference",tokenize:i0};function i0(e,n,t){const r=this;let i=0,a,o;return l;function l(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),s}function s(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,o=tn,h(u))}function c(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=im,h):(e.enter("characterReferenceValue"),a=7,o=Eo,h(u))}function h(u){if(u===59&&i){const f=e.exit("characterReferenceValue");return o===tn&&!_o(r.sliceSerialize(f))?t(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(u)&&i++<a?(e.consume(u),h):t(u)}}const su={tokenize:a0,partial:!0},uu={name:"codeFenced",tokenize:o0,concrete:!0};function o0(e,n,t){const r=this,i={tokenize:M,partial:!0};let a=0,o=0,l;return s;function s(k){return c(k)}function c(k){const F=r.events[r.events.length-1];return a=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,l=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(k)}function h(k){return k===l?(o++,e.consume(k),h):o<3?t(k):(e.exit("codeFencedFenceSequence"),Ee(k)?Se(e,u,"whitespace")(k):u(k))}function u(k){return k===null||de(k)?(e.exit("codeFencedFence"),r.interrupt?n(k):e.check(su,v,j)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===null||de(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(k)):Ee(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Se(e,A,"whitespace")(k)):k===96&&k===l?t(k):(e.consume(k),f)}function A(k){return k===null||de(k)?u(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(k))}function b(k){return k===null||de(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(k)):k===96&&k===l?t(k):(e.consume(k),b)}function v(k){return e.attempt(i,j,S)(k)}function S(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),O}function O(k){return a>0&&Ee(k)?Se(e,B,"linePrefix",a+1)(k):B(k)}function B(k){return k===null||de(k)?e.check(su,v,j)(k):(e.enter("codeFlowValue"),_(k))}function _(k){return k===null||de(k)?(e.exit("codeFlowValue"),B(k)):(e.consume(k),_)}function j(k){return e.exit("codeFenced"),n(k)}function M(k,F,W){let ne=0;return L;function L(H){return k.enter("lineEnding"),k.consume(H),k.exit("lineEnding"),Q}function Q(H){return k.enter("codeFencedFence"),Ee(H)?Se(k,ue,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):ue(H)}function ue(H){return H===l?(k.enter("codeFencedFenceSequence"),ye(H)):W(H)}function ye(H){return H===l?(ne++,k.consume(H),ye):ne>=o?(k.exit("codeFencedFenceSequence"),Ee(H)?Se(k,ee,"whitespace")(H):ee(H)):W(H)}function ee(H){return H===null||de(H)?(k.exit("codeFencedFence"),F(H)):W(H)}}}function a0(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const zo={name:"codeIndented",tokenize:s0},l0={tokenize:u0,partial:!0};function s0(e,n,t){const r=this;return i;function i(c){return e.enter("codeIndented"),Se(e,a,"linePrefix",5)(c)}function a(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(c):t(c)}function o(c){return c===null?s(c):de(c)?e.attempt(l0,o,s)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||de(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),l)}function s(c){return e.exit("codeIndented"),n(c)}}function u0(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):de(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Se(e,a,"linePrefix",5)(o)}function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?n(o):de(o)?i(o):t(o)}}const c0={name:"codeText",tokenize:f0,resolve:p0,previous:d0};function p0(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function d0(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function f0(e,n,t){let r=0,i,a;return o;function o(u){return e.enter("codeText"),e.enter("codeTextSequence"),l(u)}function l(u){return u===96?(e.consume(u),r++,l):(e.exit("codeTextSequence"),s(u))}function s(u){return u===null?t(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),s):u===96?(a=e.enter("codeTextSequence"),i=0,h(u)):de(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(u))}function c(u){return u===null||u===32||u===96||de(u)?(e.exit("codeTextData"),s(u)):(e.consume(u),c)}function h(u){return u===96?(e.consume(u),i++,h):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(u)):(a.type="codeTextData",c(u))}}class h0{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Vt(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Vt(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Vt(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Vt(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Vt(this.left,t.reverse())}}}function Vt(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function cu(e){const n={};let t=-1,r,i,a,o,l,s,c;const h=new h0(e);for(;++t<h.length;){for(;t in n;)t=n[t];if(r=h.get(t),t&&r[1].type==="chunkFlow"&&h.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,a=0,a<s.length&&s[a][1].type==="lineEndingBlank"&&(a+=2),a<s.length&&s[a][1].type==="content"))for(;++a<s.length&&s[a][1].type!=="content";)s[a][1].type==="chunkText"&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,m0(h,t)),t=n[t],c=!0);else if(r[1]._container){for(a=t,i=void 0;a--&&(o=h.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);i&&(r[1].end=Object.assign({},h.get(i)[1].start),l=h.slice(i,t),l.unshift(r),h.splice(i,t-i+1,l))}}return An(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}function m0(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const a=[],o=t._tokenizer||r.parser[t.contentType](t.start),l=o.events,s=[],c={};let h,u,f=-1,A=t,b=0,v=0;const S=[v];for(;A;){for(;e.get(++i)[1]!==A;);a.push(i),A._tokenizer||(h=r.sliceStream(A),A.next||h.push(null),u&&o.defineSkip(A.start),A._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(h),A._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),u=A,A=A.next}for(A=t;++f<l.length;)l[f][0]==="exit"&&l[f-1][0]==="enter"&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(v=f+1,S.push(v),A._tokenizer=void 0,A.previous=void 0,A=A.next);for(o.events=[],A?(A._tokenizer=void 0,A.previous=void 0):S.pop(),f=S.length;f--;){const O=l.slice(S[f],S[f+1]),B=a.pop();s.push([B,B+O.length-1]),e.splice(B,2,O)}for(s.reverse(),f=-1;++f<s.length;)c[b+s[f][0]]=b+s[f][1],b+=s[f][1]-s[f][0]-1;return c}const y0={tokenize:b0,resolve:g0},A0={tokenize:v0,partial:!0};function g0(e){return cu(e),e}function b0(e,n){let t;return r;function r(l){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?a(l):de(l)?e.check(A0,o,a)(l):(e.consume(l),i)}function a(l){return e.exit("chunkContent"),e.exit("content"),n(l)}function o(l){return e.consume(l),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function v0(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Se(e,a,"linePrefix")}function a(o){if(o===null||de(o))return t(o);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function pu(e,n,t,r,i,a,o,l,s){const c=s||Number.POSITIVE_INFINITY;let h=0;return u;function u(O){return O===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(O),e.exit(a),f):O===null||O===32||O===41||Kr(O)?t(O):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),v(O))}function f(O){return O===62?(e.enter(a),e.consume(O),e.exit(a),e.exit(i),e.exit(r),n):(e.enter(l),e.enter("chunkString",{contentType:"string"}),A(O))}function A(O){return O===62?(e.exit("chunkString"),e.exit(l),f(O)):O===null||O===60||de(O)?t(O):(e.consume(O),O===92?b:A)}function b(O){return O===60||O===62||O===92?(e.consume(O),A):A(O)}function v(O){return!h&&(O===null||O===41||Le(O))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),n(O)):h<c&&O===40?(e.consume(O),h++,v):O===41?(e.consume(O),h--,v):O===null||O===32||O===40||Kr(O)?t(O):(e.consume(O),O===92?S:v)}function S(O){return O===40||O===41||O===92?(e.consume(O),v):v(O)}}function du(e,n,t,r,i,a){const o=this;let l=0,s;return c;function c(A){return e.enter(r),e.enter(i),e.consume(A),e.exit(i),e.enter(a),h}function h(A){return l>999||A===null||A===91||A===93&&!s||A===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?t(A):A===93?(e.exit(a),e.enter(i),e.consume(A),e.exit(i),e.exit(r),n):de(A)?(e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),u(A))}function u(A){return A===null||A===91||A===93||de(A)||l++>999?(e.exit("chunkString"),h(A)):(e.consume(A),s||(s=!Ee(A)),A===92?f:u)}function f(A){return A===91||A===92||A===93?(e.consume(A),l++,u):u(A)}}function fu(e,n,t,r,i,a){let o;return l;function l(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,s):t(f)}function s(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),n):(e.enter(a),c(f))}function c(f){return f===o?(e.exit(a),s(o)):f===null?t(f):de(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Se(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(f))}function h(f){return f===o||f===null||de(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?u:h)}function u(f){return f===o||f===92?(e.consume(f),h):h(f)}}function Kt(e,n){let t;return r;function r(i){return de(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):Ee(i)?Se(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const x0={name:"definition",tokenize:k0},w0={tokenize:E0,partial:!0};function k0(e,n,t){const r=this;let i;return a;function a(A){return e.enter("definition"),o(A)}function o(A){return du.call(r,e,l,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(A)}function l(A){return i=wn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),A===58?(e.enter("definitionMarker"),e.consume(A),e.exit("definitionMarker"),s):t(A)}function s(A){return Le(A)?Kt(e,c)(A):c(A)}function c(A){return pu(e,h,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(A)}function h(A){return e.attempt(w0,u,u)(A)}function u(A){return Ee(A)?Se(e,f,"whitespace")(A):f(A)}function f(A){return A===null||de(A)?(e.exit("definition"),r.parser.defined.push(i),n(A)):t(A)}}function E0(e,n,t){return r;function r(l){return Le(l)?Kt(e,i)(l):t(l)}function i(l){return fu(e,a,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return Ee(l)?Se(e,o,"whitespace")(l):o(l)}function o(l){return l===null||de(l)?n(l):t(l)}}const C0={name:"hardBreakEscape",tokenize:S0};function S0(e,n,t){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return de(a)?(e.exit("hardBreakEscape"),n(a)):t(a)}}const B0={name:"headingAtx",tokenize:O0,resolve:I0};function I0(e,n){let t=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},a={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},An(e,r,t-r+1,[["enter",i,n],["enter",a,n],["exit",a,n],["exit",i,n]])),e}function O0(e,n,t){let r=0;return i;function i(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&r++<6?(e.consume(h),o):h===null||Le(h)?(e.exit("atxHeadingSequence"),l(h)):t(h)}function l(h){return h===35?(e.enter("atxHeadingSequence"),s(h)):h===null||de(h)?(e.exit("atxHeading"),n(h)):Ee(h)?Se(e,l,"whitespace")(h):(e.enter("atxHeadingText"),c(h))}function s(h){return h===35?(e.consume(h),s):(e.exit("atxHeadingSequence"),l(h))}function c(h){return h===null||h===35||Le(h)?(e.exit("atxHeadingText"),l(h)):(e.consume(h),c)}}const P0=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hu=["pre","script","style","textarea"],T0={name:"htmlFlow",tokenize:D0,resolveTo:j0,concrete:!0},_0={tokenize:z0,partial:!0},L0={tokenize:M0,partial:!0};function j0(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function D0(e,n,t){const r=this;let i,a,o,l,s;return c;function c(P){return h(P)}function h(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),u}function u(P){return P===33?(e.consume(P),f):P===47?(e.consume(P),a=!0,v):P===63?(e.consume(P),i=3,r.interrupt?n:I):an(P)?(e.consume(P),o=String.fromCharCode(P),S):t(P)}function f(P){return P===45?(e.consume(P),i=2,A):P===91?(e.consume(P),i=5,l=0,b):an(P)?(e.consume(P),i=4,r.interrupt?n:I):t(P)}function A(P){return P===45?(e.consume(P),r.interrupt?n:I):t(P)}function b(P){const Be="CDATA[";return P===Be.charCodeAt(l++)?(e.consume(P),l===Be.length?r.interrupt?n:ue:b):t(P)}function v(P){return an(P)?(e.consume(P),o=String.fromCharCode(P),S):t(P)}function S(P){if(P===null||P===47||P===62||Le(P)){const Be=P===47,Me=o.toLowerCase();return!Be&&!a&&hu.includes(Me)?(i=1,r.interrupt?n(P):ue(P)):P0.includes(o.toLowerCase())?(i=6,Be?(e.consume(P),O):r.interrupt?n(P):ue(P)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(P):a?B(P):_(P))}return P===45||tn(P)?(e.consume(P),o+=String.fromCharCode(P),S):t(P)}function O(P){return P===62?(e.consume(P),r.interrupt?n:ue):t(P)}function B(P){return Ee(P)?(e.consume(P),B):L(P)}function _(P){return P===47?(e.consume(P),L):P===58||P===95||an(P)?(e.consume(P),j):Ee(P)?(e.consume(P),_):L(P)}function j(P){return P===45||P===46||P===58||P===95||tn(P)?(e.consume(P),j):M(P)}function M(P){return P===61?(e.consume(P),k):Ee(P)?(e.consume(P),M):_(P)}function k(P){return P===null||P===60||P===61||P===62||P===96?t(P):P===34||P===39?(e.consume(P),s=P,F):Ee(P)?(e.consume(P),k):W(P)}function F(P){return P===s?(e.consume(P),s=null,ne):P===null||de(P)?t(P):(e.consume(P),F)}function W(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||Le(P)?M(P):(e.consume(P),W)}function ne(P){return P===47||P===62||Ee(P)?_(P):t(P)}function L(P){return P===62?(e.consume(P),Q):t(P)}function Q(P){return P===null||de(P)?ue(P):Ee(P)?(e.consume(P),Q):t(P)}function ue(P){return P===45&&i===2?(e.consume(P),V):P===60&&i===1?(e.consume(P),ie):P===62&&i===4?(e.consume(P),fe):P===63&&i===3?(e.consume(P),I):P===93&&i===5?(e.consume(P),$):de(P)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(_0,we,ye)(P)):P===null||de(P)?(e.exit("htmlFlowData"),ye(P)):(e.consume(P),ue)}function ye(P){return e.check(L0,ee,we)(P)}function ee(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),H}function H(P){return P===null||de(P)?ye(P):(e.enter("htmlFlowData"),ue(P))}function V(P){return P===45?(e.consume(P),I):ue(P)}function ie(P){return P===47?(e.consume(P),o="",Z):ue(P)}function Z(P){if(P===62){const Be=o.toLowerCase();return hu.includes(Be)?(e.consume(P),fe):ue(P)}return an(P)&&o.length<8?(e.consume(P),o+=String.fromCharCode(P),Z):ue(P)}function $(P){return P===93?(e.consume(P),I):ue(P)}function I(P){return P===62?(e.consume(P),fe):P===45&&i===2?(e.consume(P),I):ue(P)}function fe(P){return P===null||de(P)?(e.exit("htmlFlowData"),we(P)):(e.consume(P),fe)}function we(P){return e.exit("htmlFlow"),n(P)}}function M0(e,n,t){const r=this;return i;function i(o){return de(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):t(o)}function a(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function z0(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Yt,n,t)}}const F0={name:"htmlText",tokenize:R0};function R0(e,n,t){const r=this;let i,a,o;return l;function l(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),s}function s(I){return I===33?(e.consume(I),c):I===47?(e.consume(I),M):I===63?(e.consume(I),_):an(I)?(e.consume(I),W):t(I)}function c(I){return I===45?(e.consume(I),h):I===91?(e.consume(I),a=0,b):an(I)?(e.consume(I),B):t(I)}function h(I){return I===45?(e.consume(I),A):t(I)}function u(I){return I===null?t(I):I===45?(e.consume(I),f):de(I)?(o=u,ie(I)):(e.consume(I),u)}function f(I){return I===45?(e.consume(I),A):u(I)}function A(I){return I===62?V(I):I===45?f(I):u(I)}function b(I){const fe="CDATA[";return I===fe.charCodeAt(a++)?(e.consume(I),a===fe.length?v:b):t(I)}function v(I){return I===null?t(I):I===93?(e.consume(I),S):de(I)?(o=v,ie(I)):(e.consume(I),v)}function S(I){return I===93?(e.consume(I),O):v(I)}function O(I){return I===62?V(I):I===93?(e.consume(I),O):v(I)}function B(I){return I===null||I===62?V(I):de(I)?(o=B,ie(I)):(e.consume(I),B)}function _(I){return I===null?t(I):I===63?(e.consume(I),j):de(I)?(o=_,ie(I)):(e.consume(I),_)}function j(I){return I===62?V(I):_(I)}function M(I){return an(I)?(e.consume(I),k):t(I)}function k(I){return I===45||tn(I)?(e.consume(I),k):F(I)}function F(I){return de(I)?(o=F,ie(I)):Ee(I)?(e.consume(I),F):V(I)}function W(I){return I===45||tn(I)?(e.consume(I),W):I===47||I===62||Le(I)?ne(I):t(I)}function ne(I){return I===47?(e.consume(I),V):I===58||I===95||an(I)?(e.consume(I),L):de(I)?(o=ne,ie(I)):Ee(I)?(e.consume(I),ne):V(I)}function L(I){return I===45||I===46||I===58||I===95||tn(I)?(e.consume(I),L):Q(I)}function Q(I){return I===61?(e.consume(I),ue):de(I)?(o=Q,ie(I)):Ee(I)?(e.consume(I),Q):ne(I)}function ue(I){return I===null||I===60||I===61||I===62||I===96?t(I):I===34||I===39?(e.consume(I),i=I,ye):de(I)?(o=ue,ie(I)):Ee(I)?(e.consume(I),ue):(e.consume(I),ee)}function ye(I){return I===i?(e.consume(I),i=void 0,H):I===null?t(I):de(I)?(o=ye,ie(I)):(e.consume(I),ye)}function ee(I){return I===null||I===34||I===39||I===60||I===61||I===96?t(I):I===47||I===62||Le(I)?ne(I):(e.consume(I),ee)}function H(I){return I===47||I===62||Le(I)?ne(I):t(I)}function V(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),n):t(I)}function ie(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),Z}function Z(I){return Ee(I)?Se(e,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):$(I)}function $(I){return e.enter("htmlTextData"),o(I)}}const Fo={name:"labelEnd",tokenize:W0,resolveTo:$0,resolveAll:H0},N0={tokenize:Y0},q0={tokenize:V0},U0={tokenize:K0};function H0(e){let n=-1;for(;++n<e.length;){const t=e[n][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(e.splice(n+1,t.type==="labelImage"?4:2),t.type="data",n++)}return e}function $0(e,n){let t=e.length,r=0,i,a,o,l;for(;t--;)if(i=e[t][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const s={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[o][1].end)},h={type:"labelText",start:Object.assign({},e[a+r+2][1].end),end:Object.assign({},e[o-2][1].start)};return l=[["enter",s,n],["enter",c,n]],l=gn(l,e.slice(a+1,a+r+3)),l=gn(l,[["enter",h,n]]),l=gn(l,Zr(n.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),n)),l=gn(l,[["exit",h,n],e[o-2],e[o-1],["exit",c,n]]),l=gn(l,e.slice(o+1)),l=gn(l,[["exit",s,n]]),An(e,a,e.length,l),e}function W0(e,n,t){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return l;function l(f){return a?a._inactive?u(f):(o=r.parser.defined.includes(wn(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),s):t(f)}function s(f){return f===40?e.attempt(N0,h,o?h:u)(f):f===91?e.attempt(q0,h,o?c:u)(f):o?h(f):u(f)}function c(f){return e.attempt(U0,h,u)(f)}function h(f){return n(f)}function u(f){return a._balanced=!0,t(f)}}function Y0(e,n,t){return r;function r(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),i}function i(u){return Le(u)?Kt(e,a)(u):a(u)}function a(u){return u===41?h(u):pu(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function o(u){return Le(u)?Kt(e,s)(u):h(u)}function l(u){return t(u)}function s(u){return u===34||u===39||u===40?fu(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):h(u)}function c(u){return Le(u)?Kt(e,h)(u):h(u)}function h(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),n):t(u)}}function V0(e,n,t){const r=this;return i;function i(l){return du.call(r,e,a,o,"reference","referenceMarker","referenceString")(l)}function a(l){return r.parser.defined.includes(wn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(l):t(l)}function o(l){return t(l)}}function K0(e,n,t){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),n):t(a)}}const Q0={name:"labelStartImage",tokenize:J0,resolveAll:Fo.resolveAll};function J0(e,n,t){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),a}function a(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):t(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const Z0={name:"labelStartLink",tokenize:X0,resolveAll:Fo.resolveAll};function X0(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const Ro={name:"lineEnding",tokenize:G0};function G0(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Se(e,n,"linePrefix")}}const Xr={name:"thematicBreak",tokenize:eA};function eA(e,n,t){let r=0,i;return a;function a(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,l(c)}function l(c){return c===i?(e.enter("thematicBreakSequence"),s(c)):r>=3&&(c===null||de(c))?(e.exit("thematicBreak"),n(c)):t(c)}function s(c){return c===i?(e.consume(c),r++,s):(e.exit("thematicBreakSequence"),Ee(c)?Se(e,l,"whitespace")(c):l(c))}}const cn={name:"list",tokenize:rA,continuation:{tokenize:iA},exit:aA},nA={tokenize:lA,partial:!0},tA={tokenize:oA,partial:!0};function rA(e,n,t){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(A){const b=r.containerState.type||(A===42||A===43||A===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||A===r.containerState.marker:Eo(A)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),A===42||A===45?e.check(Xr,t,c)(A):c(A);if(!r.interrupt||A===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(A)}return t(A)}function s(A){return Eo(A)&&++o<10?(e.consume(A),s):(!r.interrupt||o<2)&&(r.containerState.marker?A===r.containerState.marker:A===41||A===46)?(e.exit("listItemValue"),c(A)):t(A)}function c(A){return e.enter("listItemMarker"),e.consume(A),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||A,e.check(Yt,r.interrupt?t:h,e.attempt(nA,f,u))}function h(A){return r.containerState.initialBlankLine=!0,a++,f(A)}function u(A){return Ee(A)?(e.enter("listItemPrefixWhitespace"),e.consume(A),e.exit("listItemPrefixWhitespace"),f):t(A)}function f(A){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(A)}}function iA(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Yt,i,a);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Se(e,n,"listItemIndent",r.containerState.size+1)(l)}function a(l){return r.containerState.furtherBlankLines||!Ee(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tA,n,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,Se(e,e.attempt(cn,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function oA(e,n,t){const r=this;return Se(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(a):t(a)}}function aA(e){e.exit(this.containerState.type)}function lA(e,n,t){const r=this;return Se(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!Ee(a)&&o&&o[1].type==="listItemPrefixWhitespace"?n(a):t(a)}}const mu={name:"setextUnderline",tokenize:uA,resolveTo:sA};function sA(e,n){let t=e.length,r,i,a;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!a&&e[t][1].type==="definition"&&(a=t);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,n]),e.splice(a+1,0,["exit",e[r][1],n]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,n]),e}function uA(e,n,t){const r=this;let i;return a;function a(c){let h=r.events.length,u;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){u=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||u)?(e.enter("setextHeadingLine"),i=c,o(c)):t(c)}function o(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===i?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),Ee(c)?Se(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||de(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}const cA={tokenize:gA,partial:!0};function pA(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:mA,continuation:{tokenize:yA},exit:AA}},text:{91:{name:"gfmFootnoteCall",tokenize:hA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dA,resolveTo:fA}}}}function dA(e,n,t){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return l;function l(s){if(!o||!o._balanced)return t(s);const c=wn(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),n(s))}}function fA(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",a,n],["enter",o,n],["exit",o,n],["exit",a,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...l),e}function hA(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return l;function l(u){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),s}function s(u){return u!==94?t(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){if(a>999||u===93&&!o||u===null||u===91||Le(u))return t(u);if(u===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(wn(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(u)}return Le(u)||(o=!0),a++,e.consume(u),u===92?h:c}function h(u){return u===91||u===92||u===93?(e.consume(u),a++,c):c(u)}}function mA(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,l;return s;function s(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):t(b)}function h(b){if(o>999||b===93&&!l||b===null||b===91||Le(b))return t(b);if(b===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return a=wn(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Le(b)||(l=!0),o++,e.consume(b),b===92?u:h}function u(b){return b===91||b===92||b===93?(e.consume(b),o++,h):h(b)}function f(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Se(e,A,"gfmFootnoteDefinitionWhitespace")):t(b)}function A(b){return n(b)}}function yA(e,n,t){return e.check(Yt,n,e.attempt(cA,n,t))}function AA(e){e.exit("gfmFootnoteDefinition")}function gA(e,n,t){const r=this;return Se(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(a):t(a)}}function bA(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,l){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let c=s;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[s][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[s][1].end)},u={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[s][1].start)},f=[["enter",h,l],["enter",o[c][1],l],["exit",o[c][1],l],["enter",u,l]],A=l.parser.constructs.insideSpan.null;A&&An(f,f.length,0,Zr(A,o.slice(c+1,s),l)),An(f,f.length,0,[["exit",u,l],["enter",o[s][1],l],["exit",o[s][1],l],["exit",h,l]]),An(o,c-1,s-c+3,f),s=c+f.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function a(o,l,s){const c=this.previous,h=this.events;let u=0;return f;function f(b){return c===126&&h[h.length-1][1].type!=="characterEscape"?s(b):(o.enter("strikethroughSequenceTemporary"),A(b))}function A(b){const v=Jr(c);if(b===126)return u>1?s(b):(o.consume(b),u++,A);if(u<2&&!t)return s(b);const S=o.exit("strikethroughSequenceTemporary"),O=Jr(b);return S._open=!O||O===2&&!!v,S._close=!v||v===2&&!!O,l(b)}}}class vA{constructor(){this.map=[]}add(n,t,r){xA(this,n,t,r)}consume(n){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push([...n]),n.length=0;let i=r.pop();for(;i;)n.push(...i),i=r.pop();this.map.length=0}}function xA(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function wA(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function kA(){return{flow:{null:{name:"table",tokenize:EA,resolveAll:CA}}}}function EA(e,n,t){const r=this;let i=0,a=0,o;return l;function l(L){let Q=r.events.length-1;for(;Q>-1;){const ee=r.events[Q][1].type;if(ee==="lineEnding"||ee==="linePrefix")Q--;else break}const ue=Q>-1?r.events[Q][1].type:null,ye=ue==="tableHead"||ue==="tableRow"?k:s;return ye===k&&r.parser.lazy[r.now().line]?t(L):ye(L)}function s(L){return e.enter("tableHead"),e.enter("tableRow"),c(L)}function c(L){return L===124||(o=!0,a+=1),h(L)}function h(L){return L===null?t(L):de(L)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),A):t(L):Ee(L)?Se(e,h,"whitespace")(L):(a+=1,o&&(o=!1,i+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),o=!0,h):(e.enter("data"),u(L)))}function u(L){return L===null||L===124||Le(L)?(e.exit("data"),h(L)):(e.consume(L),L===92?f:u)}function f(L){return L===92||L===124?(e.consume(L),u):u(L)}function A(L){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(L):(e.enter("tableDelimiterRow"),o=!1,Ee(L)?Se(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):b(L))}function b(L){return L===45||L===58?S(L):L===124?(o=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),v):M(L)}function v(L){return Ee(L)?Se(e,S,"whitespace")(L):S(L)}function S(L){return L===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),O):L===45?(a+=1,O(L)):L===null||de(L)?j(L):M(L)}function O(L){return L===45?(e.enter("tableDelimiterFiller"),B(L)):M(L)}function B(L){return L===45?(e.consume(L),B):L===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(L))}function _(L){return Ee(L)?Se(e,j,"whitespace")(L):j(L)}function j(L){return L===124?b(L):L===null||de(L)?!o||i!==a?M(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(L)):M(L)}function M(L){return t(L)}function k(L){return e.enter("tableRow"),F(L)}function F(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),F):L===null||de(L)?(e.exit("tableRow"),n(L)):Ee(L)?Se(e,F,"whitespace")(L):(e.enter("data"),W(L))}function W(L){return L===null||L===124||Le(L)?(e.exit("data"),F(L)):(e.consume(L),L===92?ne:W)}function ne(L){return L===92||L===124?(e.consume(L),W):W(L)}}function CA(e,n){let t=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],l=!1,s=0,c,h,u;const f=new vA;for(;++t<e.length;){const A=e[t],b=A[1];A[0]==="enter"?b.type==="tableHead"?(l=!1,s!==0&&(yu(f,n,s,c,h),h=void 0,s=0),c={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(t,0,[["enter",c,n]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,u=void 0,a=[0,0,0,0],o=[0,t+1,0,0],l&&(l=!1,h={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(t,0,[["enter",h,n]])),i=b.type==="tableDelimiterRow"?2:h?3:1):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],u=Gr(f,n,a,i,void 0,u),a=[0,0,0,0]),o[2]=t)):b.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],u=Gr(f,n,a,i,void 0,u)),a=o,o=[a[1],t,0,0])):b.type==="tableHead"?(l=!0,s=t):b.type==="tableRow"||b.type==="tableDelimiterRow"?(s=t,a[1]!==0?(o[0]=o[1],u=Gr(f,n,a,i,t,u)):o[1]!==0&&(u=Gr(f,n,o,i,t,u)),i=0):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(o[3]=t)}for(s!==0&&yu(f,n,s,c,h),f.consume(n.events),t=-1;++t<n.events.length;){const A=n.events[t];A[0]==="enter"&&A[1].type==="table"&&(A[1]._align=wA(n.events,t))}return e}function Gr(e,n,t,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";t[0]!==0&&(a.end=Object.assign({},xt(n.events,t[0])),e.add(t[0],0,[["exit",a,n]]));const s=xt(n.events,t[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",a,n]]),t[2]!==0){const c=xt(n.events,t[2]),h=xt(n.events,t[3]),u={type:l,start:Object.assign({},c),end:Object.assign({},h)};if(e.add(t[2],0,[["enter",u,n]]),r!==2){const f=n.events[t[2]],A=n.events[t[3]];if(f[1].end=Object.assign({},A[1].end),f[1].type="chunkText",f[1].contentType="text",t[3]>t[2]+1){const b=t[2]+1,v=t[3]-t[2]-1;e.add(b,v,[])}}e.add(t[3]+1,0,[["exit",u,n]])}return i!==void 0&&(a.end=Object.assign({},xt(n.events,i)),e.add(i,0,[["exit",a,n]]),a=void 0),a}function yu(e,n,t,r,i){const a=[],o=xt(n.events,t);i&&(i.end=Object.assign({},o),a.push(["exit",i,n])),r.end=Object.assign({},o),a.push(["exit",r,n]),e.add(t+1,0,a)}function xt(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const SA={name:"tasklistCheck",tokenize:IA};function BA(){return{text:{91:SA}}}function IA(e,n,t){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),a)}function a(s){return Le(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):t(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):t(s)}function l(s){return de(s)?n(s):Ee(s)?e.check({tokenize:OA},n,t)(s):t(s)}}function OA(e,n,t){return Se(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function PA(e){return Qs([Ny(),pA(),bA(e),kA(),BA()])}const TA={};function _A(e){const n=this,t=e||TA,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(PA(t)),a.push(jy()),o.push(Dy(t))}function LA(e){const[n,t]=re.useState(!1),[r,i]=re.useState();return re.useEffect(()=>{Promise.resolve().then(()=>Iv).then(a=>{i(q.jsx(a.default,{remarkPlugins:[tm,_A],children:e.value}))})},[e.value]),q.jsxs("div",{className:"zyjj-lab-markdown",style:{position:"relative"},children:[e.value?q.jsxs(te.Space,{style:{position:"absolute",right:0,margin:5,zIndex:99},children:[q.jsx(Wr,{noSuccess:!0,onClick:async()=>t(a=>!a),icon:n?q.jsx(Ao,{}):q.jsx(xo,{}),tip:n?"预览":"编辑"}),q.jsx(qh,{value:e.value})]}):q.jsx(q.Fragment,{}),n?q.jsx(te.Input.TextArea,{style:{borderRadius:5,padding:10},autoSize:!0,value:e.value,onChange:e.onChange}):q.jsx("div",{style:{padding:10},children:r})]})}const jA=Object.freeze(Object.defineProperty({__proto__:null,default:LA},Symbol.toStringTag,{value:"Module"}));function DA(e){const[n,t]=re.useState(""),r=re.useCallback(i=>{if(!i||!e.value)return;let a={};typeof e.value=="string"?(t(e.value),a.url=e.value,a.name=e.value.split("/").pop()):(a=e.value,t(a.url)),Promise.resolve().then(()=>Ov).then(o=>{new o.default({container:i,loop:"none",lrcType:1,audio:[a]})})},[e.value]);return q.jsxs(te.Space,{direction:"vertical",children:[q.jsx("div",{style:{width:"99%",borderRadius:5},ref:r}),q.jsx(bs,{link:n})]})}const MA=Object.freeze(Object.defineProperty({__proto__:null,default:DA},Symbol.toStringTag,{value:"Module"}));function zA(e){const{value:n,data:t,onChange:r}=e,i=(t==null?void 0:t.max_size)||10*1024*1024,[a,o]=re.useState([]),l=s=>{console.log("custom upload",s);const{onSuccess:c,file:h}=s;if(h.size>i){te.Message.warning(`文件大小超过 ${i/1024/1024}M, 请重新上传!`),o([]);return}r&&r(ol(h,t==null?void 0:t.no_path)),c()};return re.useEffect(()=>{o(n?[{uid:n.uid,name:n.name}]:[])},[n]),q.jsx(te.Upload,{accept:t==null?void 0:t.accept,fileList:a,onChange:o,onRemove:()=>r(void 0),limit:1,customRequest:l,children:q.jsx(te.Button,{type:"outline",icon:q.jsx(bo,{}),children:"点击上传"})})}const FA=Object.freeze(Object.defineProperty({__proto__:null,default:zA},Symbol.toStringTag,{value:"Module"}));function RA(e){var n,t,r;return q.jsx(te.InputNumber,{value:e.value,onChange:e.onChange,mode:"button",max:(n=e.data)==null?void 0:n.max,min:(t=e.data)==null?void 0:t.min,step:(r=e.data)==null?void 0:r.step})}const Au=Object.freeze(Object.defineProperty({__proto__:null,default:RA},Symbol.toStringTag,{value:"Module"}));function NA(e){var n;return e.value?q.jsx(te.Image.PreviewGroup,{infinite:!0,children:q.jsx(te.Grid,{cols:4,colGap:5,rowGap:5,children:(n=e.value)==null?void 0:n.map((t,r)=>q.jsx(te.Grid.GridItem,{children:q.jsx(vs,{src:t})},r))})}):q.jsx(q.Fragment,{})}const qA=Object.freeze(Object.defineProperty({__proto__:null,default:NA},Symbol.toStringTag,{value:"Module"}));function UA(e){return e.value?q.jsx(te.Space,{children:q.jsx(vs,{src:e.value})}):q.jsx(q.Fragment,{})}const HA=Object.freeze(Object.defineProperty({__proto__:null,default:UA},Symbol.toStringTag,{value:"Module"}));function $A(e){var n,t;return q.jsx(te.Alert,{content:(n=e.data)==null?void 0:n.content,type:(t=e.data)==null?void 0:t.type})}const WA=Object.freeze(Object.defineProperty({__proto__:null,default:$A},Symbol.toStringTag,{value:"Module"}));function YA(e){var t;const n=re.useCallback(r=>{!r||!e.value||Promise.resolve().then(()=>Pv).then(i=>{var a;new i.default({container:r,screenshot:!0,video:{url:(a=e.value)==null?void 0:a.url}})})},[e.value]);return q.jsxs(te.Space,{direction:"vertical",children:[q.jsx("div",{style:{width:"100%",borderRadius:5},ref:n}),q.jsx(bs,{link:(t=e.value)==null?void 0:t.url})]})}const VA=Object.freeze(Object.defineProperty({__proto__:null,default:YA},Symbol.toStringTag,{value:"Module"}));function KA(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const QA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,JA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZA={};function gu(e,n){return(ZA.jsx?JA:QA).test(e)}const XA=/[ \t\n\f\r]/g;function GA(e){return typeof e=="object"?e.type==="text"?bu(e.value):!1:bu(e)}function bu(e){return e.replace(XA,"")===""}class Qt{constructor(n,t,r){this.property=n,this.normal=t,r&&(this.space=r)}}Qt.prototype.property={},Qt.prototype.normal={},Qt.prototype.space=null;function vu(e,n){const t={},r={};let i=-1;for(;++i<e.length;)Object.assign(t,e[i].property),Object.assign(r,e[i].normal);return new Qt(t,r,n)}function No(e){return e.toLowerCase()}class bn{constructor(n,t){this.property=n,this.attribute=t}}bn.prototype.space=null,bn.prototype.boolean=!1,bn.prototype.booleanish=!1,bn.prototype.overloadedBoolean=!1,bn.prototype.number=!1,bn.prototype.commaSeparated=!1,bn.prototype.spaceSeparated=!1,bn.prototype.commaOrSpaceSeparated=!1,bn.prototype.mustUseProperty=!1,bn.prototype.defined=!1;let eg=0;const ge=at(),Ve=at(),xu=at(),K=at(),De=at(),wt=at(),hn=at();function at(){return 2**++eg}const qo=Object.freeze(Object.defineProperty({__proto__:null,boolean:ge,booleanish:Ve,commaOrSpaceSeparated:hn,commaSeparated:wt,number:K,overloadedBoolean:xu,spaceSeparated:De},Symbol.toStringTag,{value:"Module"})),Uo=Object.keys(qo);class Ho extends bn{constructor(n,t,r,i){let a=-1;if(super(n,t),wu(this,"space",i),typeof r=="number")for(;++a<Uo.length;){const o=Uo[a];wu(this,Uo[a],(r&qo[o])===qo[o])}}}Ho.prototype.defined=!0;function wu(e,n,t){t&&(e[n]=t)}const ng={}.hasOwnProperty;function kt(e){const n={},t={};let r;for(r in e.properties)if(ng.call(e.properties,r)){const i=e.properties[r],a=new Ho(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),n[r]=a,t[No(r)]=r,t[No(a.attribute)]=r}return new Qt(n,t,e.space)}const ku=kt({space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Eu=kt({space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Cu(e,n){return n in e?e[n]:n}function Su(e,n){return Cu(e,n.toLowerCase())}const Bu=kt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Su,properties:{xmlns:null,xmlnsXLink:null}}),Iu=kt({transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ve,ariaAutoComplete:null,ariaBusy:Ve,ariaChecked:Ve,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:De,ariaCurrent:null,ariaDescribedBy:De,ariaDetails:null,ariaDisabled:Ve,ariaDropEffect:De,ariaErrorMessage:null,ariaExpanded:Ve,ariaFlowTo:De,ariaGrabbed:Ve,ariaHasPopup:null,ariaHidden:Ve,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:De,ariaLevel:K,ariaLive:null,ariaModal:Ve,ariaMultiLine:Ve,ariaMultiSelectable:Ve,ariaOrientation:null,ariaOwns:De,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:Ve,ariaReadOnly:Ve,ariaRelevant:null,ariaRequired:Ve,ariaRoleDescription:De,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:Ve,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null}}),tg=kt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Su,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wt,acceptCharset:De,accessKey:De,action:null,allow:null,allowFullScreen:ge,allowPaymentRequest:ge,allowUserMedia:ge,alt:null,as:null,async:ge,autoCapitalize:null,autoComplete:De,autoFocus:ge,autoPlay:ge,blocking:De,capture:null,charSet:null,checked:ge,cite:null,className:De,cols:K,colSpan:null,content:null,contentEditable:Ve,controls:ge,controlsList:De,coords:K|wt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ge,defer:ge,dir:null,dirName:null,disabled:ge,download:xu,draggable:Ve,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ge,formTarget:null,headers:De,height:K,hidden:ge,high:K,href:null,hrefLang:null,htmlFor:De,httpEquiv:De,id:null,imageSizes:null,imageSrcSet:null,inert:ge,inputMode:null,integrity:null,is:null,isMap:ge,itemId:null,itemProp:De,itemRef:De,itemScope:ge,itemType:De,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ge,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:ge,muted:ge,name:null,nonce:null,noModule:ge,noValidate:ge,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ge,optimum:K,pattern:null,ping:De,placeholder:null,playsInline:ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ge,referrerPolicy:null,rel:De,required:ge,reversed:ge,rows:K,rowSpan:K,sandbox:De,scope:null,scoped:ge,seamless:ge,selected:ge,shadowRootClonable:ge,shadowRootDelegatesFocus:ge,shadowRootMode:null,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:Ve,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:ge,useMap:null,value:Ve,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:De,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ge,declare:ge,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:ge,noHref:ge,noShade:ge,noWrap:ge,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:Ve,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ge,disableRemotePlayback:ge,prefix:null,property:null,results:K,security:null,unselectable:null}}),rg=kt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Cu,properties:{about:hn,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:De,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:wt,g2:wt,glyphName:wt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:K,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:De,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:hn,rev:hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:hn,requiredFeatures:hn,requiredFonts:hn,requiredFormats:hn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:hn,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ig=/^data[-\w.:]+$/i,Ou=/-[a-z]/g,og=/[A-Z]/g;function ag(e,n){const t=No(n);let r=n,i=bn;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&ig.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(Ou,sg);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!Ou.test(a)){let o=a.replace(og,lg);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Ho}return new i(r,n)}function lg(e){return"-"+e.toLowerCase()}function sg(e){return e.charAt(1).toUpperCase()}const ug={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},cg=vu([Eu,ku,Bu,Iu,tg],"html"),$o=vu([Eu,ku,Bu,Iu,rg],"svg");function pg(e){return e.join(" ").trim()}var Pu={},Tu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,dg=/\n/g,fg=/^\s*/,hg=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,mg=/^:\s*/,yg=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ag=/^[;\s]*/,gg=/^\s+|\s+$/g,bg=`
51
+ `,_u="/",Lu="*",lt="",vg="comment",xg="declaration",wg=function(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(b){var v=b.match(dg);v&&(t+=v.length);var S=b.lastIndexOf(bg);r=~S?b.length-S:r+b.length}function a(){var b={line:t,column:r};return function(v){return v.position=new o(b),c(),v}}function o(b){this.start=b,this.end={line:t,column:r},this.source=n.source}o.prototype.content=e;function l(b){var v=new Error(n.source+":"+t+":"+r+": "+b);if(v.reason=b,v.filename=n.source,v.line=t,v.column=r,v.source=e,!n.silent)throw v}function s(b){var v=b.exec(e);if(v){var S=v[0];return i(S),e=e.slice(S.length),v}}function c(){s(fg)}function h(b){var v;for(b=b||[];v=u();)v!==!1&&b.push(v);return b}function u(){var b=a();if(!(_u!=e.charAt(0)||Lu!=e.charAt(1))){for(var v=2;lt!=e.charAt(v)&&(Lu!=e.charAt(v)||_u!=e.charAt(v+1));)++v;if(v+=2,lt===e.charAt(v-1))return l("End of comment missing");var S=e.slice(2,v-2);return r+=2,i(S),e=e.slice(v),r+=2,b({type:vg,comment:S})}}function f(){var b=a(),v=s(hg);if(v){if(u(),!s(mg))return l("property missing ':'");var S=s(yg),O=b({type:xg,property:ju(v[0].replace(Tu,lt)),value:S?ju(S[0].replace(Tu,lt)):lt});return s(Ag),O}}function A(){var b=[];h(b);for(var v;v=f();)v!==!1&&(b.push(v),h(b));return b}return c(),A()};function ju(e){return e?e.replace(gg,lt):lt}var kg=_r&&_r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pu,"__esModule",{value:!0});var Eg=kg(wg);function Cg(e,n){var t=null;if(!e||typeof e!="string")return t;var r=(0,Eg.default)(e),i=typeof n=="function";return r.forEach(function(a){if(a.type==="declaration"){var o=a.property,l=a.value;i?n(o,l,a):l&&(t=t||{},t[o]=l)}}),t}var Du=Pu.default=Cg;const Sg=Du.default||Du,Mu=zu("end"),Wo=zu("start");function zu(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Bg(e){const n=Wo(e),t=Mu(e);if(n&&t)return{start:n,end:t}}function Jt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Fu(e.position):"start"in e||"end"in e?Fu(e):"line"in e||"column"in e?Yo(e):""}function Yo(e){return Ru(e&&e.line)+":"+Ru(e&&e.column)}function Fu(e){return Yo(e&&e.start)+"-"+Yo(e&&e.end)}function Ru(e){return e&&typeof e=="number"?e:1}class rn extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",a={},o=!1;if(t&&("line"in t&&"column"in t?a={place:t}:"start"in t&&"end"in t?a={place:t}:"type"in t?a={ancestors:[t],place:t.position}:a={...t}),typeof n=="string"?i=n:!a.cause&&n&&(o=!0,i=n.message,a.cause=n),!a.ruleId&&!a.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?a.ruleId=r:(a.source=r.slice(0,s),a.ruleId=r.slice(s+1))}if(!a.place&&a.ancestors&&a.ancestors){const s=a.ancestors[a.ancestors.length-1];s&&(a.place=s.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=l?l.line:void 0,this.name=Jt(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}rn.prototype.file="",rn.prototype.name="",rn.prototype.reason="",rn.prototype.message="",rn.prototype.stack="",rn.prototype.column=void 0,rn.prototype.line=void 0,rn.prototype.ancestors=void 0,rn.prototype.cause=void 0,rn.prototype.fatal=void 0,rn.prototype.place=void 0,rn.prototype.ruleId=void 0,rn.prototype.source=void 0;const Vo={}.hasOwnProperty,Ig=new Map,Og=/[A-Z]/g,Pg=/-([a-z])/g,Tg=new Set(["table","tbody","thead","tfoot","tr"]),_g=new Set(["td","th"]),Nu="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Lg(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=qg(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Ng(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?$o:cg,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},a=qu(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function qu(e,n,t){if(n.type==="element")return jg(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Dg(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return zg(e,n,t);if(n.type==="mdxjsEsm")return Mg(e,n);if(n.type==="root")return Fg(e,n,t);if(n.type==="text")return Rg(e,n)}function jg(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=$o,e.schema=i),e.ancestors.push(n);const a=Hu(e,n.tagName,!1),o=Ug(e,n);let l=Qo(e,n);return Tg.has(n.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!GA(s):!0})),Uu(e,o,a,n),Ko(o,l),e.ancestors.pop(),e.schema=r,e.create(n,a,o,t)}function Dg(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Zt(e,n.position)}function Mg(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Zt(e,n.position)}function zg(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=$o,e.schema=i),e.ancestors.push(n);const a=n.name===null?e.Fragment:Hu(e,n.name,!0),o=Hg(e,n),l=Qo(e,n);return Uu(e,o,a,n),Ko(o,l),e.ancestors.pop(),e.schema=r,e.create(n,a,o,t)}function Fg(e,n,t){const r={};return Ko(r,Qo(e,n)),e.create(n,e.Fragment,r,t)}function Rg(e,n){return n.value}function Uu(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Ko(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Ng(e,n,t){return r;function r(i,a,o,l){const c=Array.isArray(o.children)?t:n;return l?c(a,o,l):c(a,o)}}function qg(e,n){return t;function t(r,i,a,o){const l=Array.isArray(a.children),s=Wo(r);return n(i,a,o,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Ug(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Vo.call(n.properties,i)){const a=$g(e,i,n.properties[i]);if(a){const[o,l]=a;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&_g.has(n.tagName)?r=l:t[o]=l}}if(r){const a=t.style||(t.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Hg(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const l=o.properties[0];l.type,Object.assign(t,e.evaluater.evaluateExpression(l.argument))}else Zt(e,n.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,a=e.evaluater.evaluateExpression(l.expression)}else Zt(e,n.position);else a=r.value===null?!0:r.value;t[i]=a}return t}function Qo(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Ig;for(;++r<n.children.length;){const a=n.children[r];let o;if(e.passKeys){const s=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(s){const c=i.get(s)||0;o=s+"-"+c,i.set(s,c+1)}}const l=qu(e,a,o);l!==void 0&&t.push(l)}return t}function $g(e,n,t){const r=ag(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?KA(t):pg(t)),r.property==="style"){let i=typeof t=="object"?t:Wg(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Yg(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ug[r.property]||r.property:r.attribute,t]}}function Wg(e,n){const t={};try{Sg(n,r)}catch(i){if(!e.ignoreInvalidStyle){const a=i,o=new rn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=Nu+"#cannot-parse-style-attribute",o}}return t;function r(i,a){let o=i;o.slice(0,2)!=="--"&&(o.slice(0,4)==="-ms-"&&(o="ms-"+o.slice(4)),o=o.replace(Pg,Kg)),t[o]=a}}function Hu(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let a=-1,o;for(;++a<i.length;){const l=gu(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:l,computed:!!(a&&l.type==="Literal"),optional:!1}:l}r=o}else r=gu(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Vo.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Zt(e)}function Zt(e,n){const t=new rn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Nu+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Yg(e){const n={};let t;for(t in e)Vo.call(e,t)&&(n[Vg(t)]=e[t]);return n}function Vg(e){let n=e.replace(Og,Qg);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Kg(e,n){return n.toUpperCase()}function Qg(e){return"-"+e.toLowerCase()}const Jo={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Jg={tokenize:Zg};function Zg(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Se(e,n,"linePrefix")}function i(l){return e.enter("paragraph"),a(l)}function a(l){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,o(l)}function o(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return de(l)?(e.consume(l),e.exit("chunkText"),a):(e.consume(l),o)}}const Xg={tokenize:Gg},$u={tokenize:eb};function Gg(e){const n=this,t=[];let r=0,i,a,o;return l;function l(_){if(r<t.length){const j=t[r];return n.containerState=j[1],e.attempt(j[0].continuation,s,c)(_)}return c(_)}function s(_){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&B();const j=n.events.length;let M=j,k;for(;M--;)if(n.events[M][0]==="exit"&&n.events[M][1].type==="chunkFlow"){k=n.events[M][1].end;break}O(r);let F=j;for(;F<n.events.length;)n.events[F][1].end=Object.assign({},k),F++;return An(n.events,M+1,0,n.events.slice(j)),n.events.length=F,c(_)}return l(_)}function c(_){if(r===t.length){if(!i)return f(_);if(i.currentConstruct&&i.currentConstruct.concrete)return b(_);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check($u,h,u)(_)}function h(_){return i&&B(),O(r),f(_)}function u(_){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,b(_)}function f(_){return n.containerState={},e.attempt($u,A,b)(_)}function A(_){return r++,t.push([n.currentConstruct,n.containerState]),f(_)}function b(_){if(_===null){i&&B(),O(0),e.consume(_);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),v(_)}function v(_){if(_===null){S(e.exit("chunkFlow"),!0),O(0),e.consume(_);return}return de(_)?(e.consume(_),S(e.exit("chunkFlow")),r=0,n.interrupt=void 0,l):(e.consume(_),v)}function S(_,j){const M=n.sliceStream(_);if(j&&M.push(null),_.previous=a,a&&(a.next=_),a=_,i.defineSkip(_.start),i.write(M),n.parser.lazy[_.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<o&&(!i.events[k][1].end||i.events[k][1].end.offset>o))return;const F=n.events.length;let W=F,ne,L;for(;W--;)if(n.events[W][0]==="exit"&&n.events[W][1].type==="chunkFlow"){if(ne){L=n.events[W][1].end;break}ne=!0}for(O(r),k=F;k<n.events.length;)n.events[k][1].end=Object.assign({},L),k++;An(n.events,W+1,0,n.events.slice(F)),n.events.length=k}}function O(_){let j=t.length;for(;j-- >_;){const M=t[j];n.containerState=M[1],M[0].exit.call(n,e)}t.length=_}function B(){i.write([null]),a=void 0,i=void 0,n.containerState._closeFlow=void 0}}function eb(e,n,t){return Se(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const nb={tokenize:tb};function tb(e){const n=this,t=e.attempt(Yt,r,e.attempt(this.parser.constructs.flowInitial,i,Se(e,e.attempt(this.parser.constructs.flow,i,e.attempt(y0,i)),"linePrefix")));return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const rb={resolveAll:Yu()},ib=Wu("string"),ob=Wu("text");function Wu(e){return{tokenize:n,resolveAll:Yu(e==="text"?ab:void 0)};function n(t){const r=this,i=this.parser.constructs[e],a=t.attempt(i,o,l);return o;function o(h){return c(h)?a(h):l(h)}function l(h){if(h===null){t.consume(h);return}return t.enter("data"),t.consume(h),s}function s(h){return c(h)?(t.exit("data"),a(h)):(t.consume(h),s)}function c(h){if(h===null)return!0;const u=i[h];let f=-1;if(u)for(;++f<u.length;){const A=u[f];if(!A.previous||A.previous.call(r,r.previous))return!0}return!1}}}function Yu(e){return n;function n(t,r){let i=-1,a;for(;++i<=t.length;)a===void 0?t[i]&&t[i][1].type==="data"&&(a=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==a+2&&(t[a][1].end=t[i-1][1].end,t.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(t,r):t}}function ab(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let a=i.length,o=-1,l=0,s;for(;a--;){const c=i[a];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(c===-2)s=!0,l++;else if(c!==-1){a++;break}}if(l){const c={type:t===e.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}function lb(e,n,t){let r=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let o=[],l=[];const s={consume:B,enter:_,exit:j,attempt:F(M),check:F(k),interrupt:F(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:A,sliceSerialize:f,now:b,defineSkip:v,write:u};let h=n.tokenize.call(c,s);return n.resolveAll&&a.push(n),c;function u(Q){return o=gn(o,Q),S(),o[o.length-1]!==null?[]:(W(n,0),c.events=Zr(a,c.events,c),c.events)}function f(Q,ue){return ub(A(Q),ue)}function A(Q){return sb(o,Q)}function b(){const{line:Q,column:ue,offset:ye,_index:ee,_bufferIndex:H}=r;return{line:Q,column:ue,offset:ye,_index:ee,_bufferIndex:H}}function v(Q){i[Q.line]=Q.column,L()}function S(){let Q;for(;r._index<o.length;){const ue=o[r._index];if(typeof ue=="string")for(Q=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===Q&&r._bufferIndex<ue.length;)O(ue.charCodeAt(r._bufferIndex));else O(ue)}}function O(Q){h=h(Q)}function B(Q){de(Q)?(r.line++,r.column=1,r.offset+=Q===-3?2:1,L()):Q!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=Q}function _(Q,ue){const ye=ue||{};return ye.type=Q,ye.start=b(),c.events.push(["enter",ye,c]),l.push(ye),ye}function j(Q){const ue=l.pop();return ue.end=b(),c.events.push(["exit",ue,c]),ue}function M(Q,ue){W(Q,ue.from)}function k(Q,ue){ue.restore()}function F(Q,ue){return ye;function ye(ee,H,V){let ie,Z,$,I;return Array.isArray(ee)?we(ee):"tokenize"in ee?we([ee]):fe(ee);function fe(ke){return $e;function $e(ze){const Ne=ze!==null&&ke[ze],Pe=ze!==null&&ke.null,en=[...Array.isArray(Ne)?Ne:Ne?[Ne]:[],...Array.isArray(Pe)?Pe:Pe?[Pe]:[]];return we(en)(ze)}}function we(ke){return ie=ke,Z=0,ke.length===0?V:P(ke[Z])}function P(ke){return $e;function $e(ze){return I=ne(),$=ke,ke.partial||(c.currentConstruct=ke),ke.name&&c.parser.constructs.disable.null.includes(ke.name)?Me():ke.tokenize.call(ue?Object.assign(Object.create(c),ue):c,s,Be,Me)(ze)}}function Be(ke){return Q($,I),H}function Me(ke){return I.restore(),++Z<ie.length?P(ie[Z]):V}}}function W(Q,ue){Q.resolveAll&&!a.includes(Q)&&a.push(Q),Q.resolve&&An(c.events,ue,c.events.length-ue,Q.resolve(c.events.slice(ue),c)),Q.resolveTo&&(c.events=Q.resolveTo(c.events,c))}function ne(){const Q=b(),ue=c.previous,ye=c.currentConstruct,ee=c.events.length,H=Array.from(l);return{restore:V,from:ee};function V(){r=Q,c.previous=ue,c.currentConstruct=ye,c.events.length=ee,l=H,L()}}function L(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function sb(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,a=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,a)];else{if(o=e.slice(t,i),r>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function ub(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const a=e[t];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
52
52
  `;break}case-3:{o=`\r
53
- `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}const lb=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:g0},disable:{null:[]},document:{42:cn,43:cn,45:cn,48:cn,49:cn,50:cn,51:cn,52:cn,53:cn,54:cn,55:cn,56:cn,57:cn,62:ou},flow:{35:E0,42:Zr,45:[mu,Zr],60:I0,61:mu,95:Zr,96:uu,126:uu},flowInitial:{[-2]:zo,[-1]:zo,32:zo},insideSpan:{null:[Mo,eb]},string:{38:lu,92:au},text:{[-5]:Ro,[-4]:Ro,[-3]:Ro,33:Y0,38:lu,42:Mo,60:[Ky,D0],91:K0,92:[w0,au],93:Fo,95:Mo,96:l0}},Symbol.toStringTag,{value:"Module"}));function sb(e){const t=Qs([lb,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:t,content:i(Vg),document:i(Qg),flow:i(Xg),string:i(nb),text:i(tb)};return r;function i(a){return o;function o(l){return ib(r,a,l)}}}function ub(e){for(;!cu(e););return e}const Vu=/[\0\t\n\r]/g;function cb(){let e=1,n="",t=!0,r;return i;function i(a,o,l){const s=[];let c,h,u,f,A;for(a=n+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),u=0,n="",t&&(a.charCodeAt(0)===65279&&u++,t=void 0);u<a.length;){if(Vu.lastIndex=u,c=Vu.exec(a),f=c&&c.index!==void 0?c.index:a.length,A=a.charCodeAt(f),!c){n=a.slice(u);break}if(A===10&&u===f&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),u<f&&(s.push(a.slice(u,f)),e+=f-u),A){case 0:{s.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,s.push(-2);e++<h;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}u=f+1}return l&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const Ku={}.hasOwnProperty;function pb(e,n,t){return typeof n!="string"&&(t=n,n=void 0),db(t)(ub(sb(t).document().write(cb()(e,n,!0))))}function db(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Fn),autolinkProtocol:ne,autolinkEmail:ne,atxHeading:a(vn),blockQuote:a(Pe),characterEscape:ne,characterReference:ne,codeFenced:a(en),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(en,o),codeText:a(Je,o),codeTextData:ne,data:ne,codeFlowValue:ne,definition:a(kn),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(st),hardBreakEscape:a(zn),hardBreakTrailing:a(zn),htmlFlow:a(ut,o),htmlFlowData:ne,htmlText:a(ut,o),htmlTextData:ne,image:a(Ct),label:o,link:a(Fn),listItem:a(Rn),listItemValue:f,listOrdered:a(St,u),listUnordered:a(St),paragraph:a(Vn),reference:P,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(vn),strong:a(ct),thematicBreak:a(pt)},exit:{atxHeading:s(),atxHeadingSequence:M,autolink:s(),autolinkEmail:Re,autolinkProtocol:ze,blockQuote:s(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:Me,characterReferenceMarkerNumeric:Me,characterReferenceValue:ke,characterReference:Ue,codeFenced:s(S),codeFencedFence:v,codeFencedFenceInfo:A,codeFencedFenceMeta:b,codeFlowValue:L,codeIndented:s(O),codeText:s(H),codeTextData:L,data:L,definition:s(),definitionDestinationString:j,definitionLabelString:B,definitionTitleString:T,emphasis:s(),hardBreakEscape:s(ue),hardBreakTrailing:s(ue),htmlFlow:s(ye),htmlFlowData:L,htmlText:s(ee),htmlTextData:L,image:s(ie),label:$,labelText:Z,lineEnding:Q,link:s(V),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:Be,resourceDestinationString:I,resourceTitleString:fe,resource:we,setextHeading:s(W),setextHeadingLineSequence:F,setextHeadingText:k,strong:s(),thematicBreak:s()}};Qu(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(N){let J={type:"root",children:[]};const he={stack:[J],tokenStack:[],config:n,enter:l,exit:c,buffer:o,resume:h,data:t},be=[];let Oe=-1;for(;++Oe<N.length;)if(N[Oe][1].type==="listOrdered"||N[Oe][1].type==="listUnordered")if(N[Oe][0]==="enter")be.push(Oe);else{const Ze=be.pop();Oe=i(N,Ze,Oe)}for(Oe=-1;++Oe<N.length;){const Ze=n[N[Oe][0]];Ku.call(Ze,N[Oe][1].type)&&Ze[N[Oe][1].type].call(Object.assign({sliceSerialize:N[Oe][2].sliceSerialize},he),N[Oe][1])}if(he.tokenStack.length>0){const Ze=he.tokenStack[he.tokenStack.length-1];(Ze[1]||Ju).call(he,void 0,Ze[0])}for(J.position={start:Yn(N.length>0?N[0][1].start:{line:1,column:1,offset:0}),end:Yn(N.length>0?N[N.length-2][1].end:{line:1,column:1,offset:0})},Oe=-1;++Oe<n.transforms.length;)J=n.transforms[Oe](J)||J;return J}function i(N,J,he){let be=J-1,Oe=-1,Ze=!1,R,Xe,On,Pn;for(;++be<=he;){const Ae=N[be];switch(Ae[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ae[0]==="enter"?Oe++:Oe--,Pn=void 0;break}case"lineEndingBlank":{Ae[0]==="enter"&&(R&&!Pn&&!Oe&&!On&&(On=be),Pn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Pn=void 0}if(!Oe&&Ae[0]==="enter"&&Ae[1].type==="listItemPrefix"||Oe===-1&&Ae[0]==="exit"&&(Ae[1].type==="listUnordered"||Ae[1].type==="listOrdered")){if(R){let _n=be;for(Xe=void 0;_n--;){const ln=N[_n];if(ln[1].type==="lineEnding"||ln[1].type==="lineEndingBlank"){if(ln[0]==="exit")continue;Xe&&(N[Xe][1].type="lineEndingBlank",Ze=!0),ln[1].type="lineEnding",Xe=_n}else if(!(ln[1].type==="linePrefix"||ln[1].type==="blockQuotePrefix"||ln[1].type==="blockQuotePrefixWhitespace"||ln[1].type==="blockQuoteMarker"||ln[1].type==="listItemIndent"))break}On&&(!Xe||On<Xe)&&(R._spread=!0),R.end=Object.assign({},Xe?N[Xe][1].start:Ae[1].end),N.splice(Xe||be,0,["exit",R,Ae[2]]),be++,he++}if(Ae[1].type==="listItemPrefix"){const _n={type:"listItem",_spread:!1,start:Object.assign({},Ae[1].start),end:void 0};R=_n,N.splice(be,0,["enter",_n,Ae[2]]),be++,he++,On=void 0,Pn=!0}}}return N[J][1]._spread=Ze,he}function a(N,J){return he;function he(be){l.call(this,N(be),be),J&&J.call(this,be)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(N,J,he){this.stack[this.stack.length-1].children.push(N),this.stack.push(N),this.tokenStack.push([J,he]),N.position={start:Yn(J.start),end:void 0}}function s(N){return J;function J(he){N&&N.call(this,he),c.call(this,he)}}function c(N,J){const he=this.stack.pop(),be=this.tokenStack.pop();if(be)be[0].type!==N.type&&(J?J.call(this,N,be[0]):(be[1]||Ju).call(this,N,be[0]));else throw new Error("Cannot close `"+N.type+"` ("+Qt({start:N.start,end:N.end})+"): it’s not open");he.position.end=Yn(N.end)}function h(){return Po(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function f(N){if(this.data.expectingFirstListItemValue){const J=this.stack[this.stack.length-2];J.start=Number.parseInt(this.sliceSerialize(N),10),this.data.expectingFirstListItemValue=void 0}}function A(){const N=this.resume(),J=this.stack[this.stack.length-1];J.lang=N}function b(){const N=this.resume(),J=this.stack[this.stack.length-1];J.meta=N}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const N=this.resume(),J=this.stack[this.stack.length-1];J.value=N.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function O(){const N=this.resume(),J=this.stack[this.stack.length-1];J.value=N.replace(/(\r?\n|\r)$/g,"")}function B(N){const J=this.resume(),he=this.stack[this.stack.length-1];he.label=J,he.identifier=wn(this.sliceSerialize(N)).toLowerCase()}function T(){const N=this.resume(),J=this.stack[this.stack.length-1];J.title=N}function j(){const N=this.resume(),J=this.stack[this.stack.length-1];J.url=N}function M(N){const J=this.stack[this.stack.length-1];if(!J.depth){const he=this.sliceSerialize(N).length;J.depth=he}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function F(N){const J=this.stack[this.stack.length-1];J.depth=this.sliceSerialize(N).codePointAt(0)===61?1:2}function W(){this.data.setextHeadingSlurpLineEnding=void 0}function ne(N){const he=this.stack[this.stack.length-1].children;let be=he[he.length-1];(!be||be.type!=="text")&&(be=Bt(),be.position={start:Yn(N.start),end:void 0},he.push(be)),this.stack.push(be)}function L(N){const J=this.stack.pop();J.value+=this.sliceSerialize(N),J.position.end=Yn(N.end)}function Q(N){const J=this.stack[this.stack.length-1];if(this.data.atHardBreak){const he=J.children[J.children.length-1];he.position.end=Yn(N.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(J.type)&&(ne.call(this,N),L.call(this,N))}function ue(){this.data.atHardBreak=!0}function ye(){const N=this.resume(),J=this.stack[this.stack.length-1];J.value=N}function ee(){const N=this.resume(),J=this.stack[this.stack.length-1];J.value=N}function H(){const N=this.resume(),J=this.stack[this.stack.length-1];J.value=N}function V(){const N=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";N.type+="Reference",N.referenceType=J,delete N.url,delete N.title}else delete N.identifier,delete N.label;this.data.referenceType=void 0}function ie(){const N=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";N.type+="Reference",N.referenceType=J,delete N.url,delete N.title}else delete N.identifier,delete N.label;this.data.referenceType=void 0}function Z(N){const J=this.sliceSerialize(N),he=this.stack[this.stack.length-2];he.label=gy(J),he.identifier=wn(J).toLowerCase()}function $(){const N=this.stack[this.stack.length-1],J=this.resume(),he=this.stack[this.stack.length-1];if(this.data.inReference=!0,he.type==="link"){const be=N.children;he.children=be}else he.alt=J}function I(){const N=this.resume(),J=this.stack[this.stack.length-1];J.url=N}function fe(){const N=this.resume(),J=this.stack[this.stack.length-1];J.title=N}function we(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function Be(N){const J=this.resume(),he=this.stack[this.stack.length-1];he.label=J,he.identifier=wn(this.sliceSerialize(N)).toLowerCase(),this.data.referenceType="full"}function Me(N){this.data.characterReferenceType=N.type}function ke(N){const J=this.sliceSerialize(N),he=this.data.characterReferenceType;let be;he?(be=Ws(J,he==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):be=To(J);const Oe=this.stack[this.stack.length-1];Oe.value+=be}function Ue(N){const J=this.stack.pop();J.position.end=Yn(N.end)}function ze(N){L.call(this,N);const J=this.stack[this.stack.length-1];J.url=this.sliceSerialize(N)}function Re(N){L.call(this,N);const J=this.stack[this.stack.length-1];J.url="mailto:"+this.sliceSerialize(N)}function Pe(){return{type:"blockquote",children:[]}}function en(){return{type:"code",lang:null,meta:null,value:""}}function Je(){return{type:"inlineCode",value:""}}function kn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function st(){return{type:"emphasis",children:[]}}function vn(){return{type:"heading",depth:0,children:[]}}function zn(){return{type:"break"}}function ut(){return{type:"html",value:""}}function Ct(){return{type:"image",title:null,url:"",alt:null}}function Fn(){return{type:"link",title:null,url:"",children:[]}}function St(N){return{type:"list",ordered:N.type==="listOrdered",start:null,spread:N._spread,children:[]}}function Rn(N){return{type:"listItem",spread:N._spread,checked:null,children:[]}}function Vn(){return{type:"paragraph",children:[]}}function ct(){return{type:"strong",children:[]}}function Bt(){return{type:"text",value:""}}function pt(){return{type:"thematicBreak"}}}function Yn(e){return{line:e.line,column:e.column,offset:e.offset}}function Qu(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Qu(e,r):fb(e,r)}}function fb(e,n){let t;for(t in n)if(Ku.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Ju(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Qt({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Qt({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Qt({start:n.start,end:n.end})+") is still open")}function hb(e){const n=this;n.parser=t;function t(r){return pb(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function mb(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function yb(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
54
- `}]}function Ab(e,n){const t=n.value?n.value+`
55
- `:"",r={};n.lang&&(r.className=["language-"+n.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(i.data={meta:n.meta}),e.patch(n,i),i=e.applyData(n,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(n,i),i}function gb(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function bb(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function vb(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=vt(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,l+=1,e.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(n,c),e.applyData(n,c)}function xb(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function wb(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Zu(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function kb(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Zu(e,n);const i={src:vt(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,a),e.applyData(n,a)}function Eb(e,n){const t={src:vt(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Cb(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Sb(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Zu(e,n);const i={href:vt(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function Bb(e,n){const t={href:vt(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Ib(e,n,t){const r=e.all(n),i=t?Ob(t):Xu(n),a={},o=[];if(typeof n.checked=="boolean"){const h=r[0];let u;h&&h.type==="element"&&h.tagName==="p"?u=h:(u={type:"element",tagName:"p",properties:{},children:[]},r.unshift(u)),u.children.length>0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const h=r[l];(i||l!==0||h.type!=="element"||h.tagName!=="p")&&o.push({type:"text",value:`
53
+ `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}const cb=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:x0},disable:{null:[]},document:{42:cn,43:cn,45:cn,48:cn,49:cn,50:cn,51:cn,52:cn,53:cn,54:cn,55:cn,56:cn,57:cn,62:ou},flow:{35:B0,42:Xr,45:[mu,Xr],60:T0,61:mu,95:Xr,96:uu,126:uu},flowInitial:{[-2]:zo,[-1]:zo,32:zo},insideSpan:{null:[Mo,rb]},string:{38:lu,92:au},text:{[-5]:Ro,[-4]:Ro,[-3]:Ro,33:Q0,38:lu,42:Mo,60:[Zy,F0],91:Z0,92:[C0,au],93:Fo,95:Mo,96:c0}},Symbol.toStringTag,{value:"Module"}));function pb(e){const t=Qs([cb,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:t,content:i(Jg),document:i(Xg),flow:i(nb),string:i(ib),text:i(ob)};return r;function i(a){return o;function o(l){return lb(r,a,l)}}}function db(e){for(;!cu(e););return e}const Vu=/[\0\t\n\r]/g;function fb(){let e=1,n="",t=!0,r;return i;function i(a,o,l){const s=[];let c,h,u,f,A;for(a=n+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),u=0,n="",t&&(a.charCodeAt(0)===65279&&u++,t=void 0);u<a.length;){if(Vu.lastIndex=u,c=Vu.exec(a),f=c&&c.index!==void 0?c.index:a.length,A=a.charCodeAt(f),!c){n=a.slice(u);break}if(A===10&&u===f&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),u<f&&(s.push(a.slice(u,f)),e+=f-u),A){case 0:{s.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,s.push(-2);e++<h;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}u=f+1}return l&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const Ku={}.hasOwnProperty;function hb(e,n,t){return typeof n!="string"&&(t=n,n=void 0),mb(t)(db(pb(t).document().write(fb()(e,n,!0))))}function mb(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Fn),autolinkProtocol:ne,autolinkEmail:ne,atxHeading:a(vn),blockQuote:a(Pe),characterEscape:ne,characterReference:ne,codeFenced:a(en),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(en,o),codeText:a(Je,o),codeTextData:ne,data:ne,codeFlowValue:ne,definition:a(kn),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(st),hardBreakEscape:a(zn),hardBreakTrailing:a(zn),htmlFlow:a(ut,o),htmlFlowData:ne,htmlText:a(ut,o),htmlTextData:ne,image:a(Ct),label:o,link:a(Fn),listItem:a(Rn),listItemValue:f,listOrdered:a(St,u),listUnordered:a(St),paragraph:a(Vn),reference:P,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(vn),strong:a(ct),thematicBreak:a(pt)},exit:{atxHeading:s(),atxHeadingSequence:M,autolink:s(),autolinkEmail:Ne,autolinkProtocol:ze,blockQuote:s(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:Me,characterReferenceMarkerNumeric:Me,characterReferenceValue:ke,characterReference:$e,codeFenced:s(S),codeFencedFence:v,codeFencedFenceInfo:A,codeFencedFenceMeta:b,codeFlowValue:L,codeIndented:s(O),codeText:s(H),codeTextData:L,data:L,definition:s(),definitionDestinationString:j,definitionLabelString:B,definitionTitleString:_,emphasis:s(),hardBreakEscape:s(ue),hardBreakTrailing:s(ue),htmlFlow:s(ye),htmlFlowData:L,htmlText:s(ee),htmlTextData:L,image:s(ie),label:$,labelText:Z,lineEnding:Q,link:s(V),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:Be,resourceDestinationString:I,resourceTitleString:fe,resource:we,setextHeading:s(W),setextHeadingLineSequence:F,setextHeadingText:k,strong:s(),thematicBreak:s()}};Qu(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(N){let J={type:"root",children:[]};const he={stack:[J],tokenStack:[],config:n,enter:l,exit:c,buffer:o,resume:h,data:t},be=[];let Oe=-1;for(;++Oe<N.length;)if(N[Oe][1].type==="listOrdered"||N[Oe][1].type==="listUnordered")if(N[Oe][0]==="enter")be.push(Oe);else{const Ze=be.pop();Oe=i(N,Ze,Oe)}for(Oe=-1;++Oe<N.length;){const Ze=n[N[Oe][0]];Ku.call(Ze,N[Oe][1].type)&&Ze[N[Oe][1].type].call(Object.assign({sliceSerialize:N[Oe][2].sliceSerialize},he),N[Oe][1])}if(he.tokenStack.length>0){const Ze=he.tokenStack[he.tokenStack.length-1];(Ze[1]||Ju).call(he,void 0,Ze[0])}for(J.position={start:Yn(N.length>0?N[0][1].start:{line:1,column:1,offset:0}),end:Yn(N.length>0?N[N.length-2][1].end:{line:1,column:1,offset:0})},Oe=-1;++Oe<n.transforms.length;)J=n.transforms[Oe](J)||J;return J}function i(N,J,he){let be=J-1,Oe=-1,Ze=!1,R,Xe,On,Pn;for(;++be<=he;){const Ae=N[be];switch(Ae[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ae[0]==="enter"?Oe++:Oe--,Pn=void 0;break}case"lineEndingBlank":{Ae[0]==="enter"&&(R&&!Pn&&!Oe&&!On&&(On=be),Pn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Pn=void 0}if(!Oe&&Ae[0]==="enter"&&Ae[1].type==="listItemPrefix"||Oe===-1&&Ae[0]==="exit"&&(Ae[1].type==="listUnordered"||Ae[1].type==="listOrdered")){if(R){let Tn=be;for(Xe=void 0;Tn--;){const ln=N[Tn];if(ln[1].type==="lineEnding"||ln[1].type==="lineEndingBlank"){if(ln[0]==="exit")continue;Xe&&(N[Xe][1].type="lineEndingBlank",Ze=!0),ln[1].type="lineEnding",Xe=Tn}else if(!(ln[1].type==="linePrefix"||ln[1].type==="blockQuotePrefix"||ln[1].type==="blockQuotePrefixWhitespace"||ln[1].type==="blockQuoteMarker"||ln[1].type==="listItemIndent"))break}On&&(!Xe||On<Xe)&&(R._spread=!0),R.end=Object.assign({},Xe?N[Xe][1].start:Ae[1].end),N.splice(Xe||be,0,["exit",R,Ae[2]]),be++,he++}if(Ae[1].type==="listItemPrefix"){const Tn={type:"listItem",_spread:!1,start:Object.assign({},Ae[1].start),end:void 0};R=Tn,N.splice(be,0,["enter",Tn,Ae[2]]),be++,he++,On=void 0,Pn=!0}}}return N[J][1]._spread=Ze,he}function a(N,J){return he;function he(be){l.call(this,N(be),be),J&&J.call(this,be)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(N,J,he){this.stack[this.stack.length-1].children.push(N),this.stack.push(N),this.tokenStack.push([J,he]),N.position={start:Yn(J.start),end:void 0}}function s(N){return J;function J(he){N&&N.call(this,he),c.call(this,he)}}function c(N,J){const he=this.stack.pop(),be=this.tokenStack.pop();if(be)be[0].type!==N.type&&(J?J.call(this,N,be[0]):(be[1]||Ju).call(this,N,be[0]));else throw new Error("Cannot close `"+N.type+"` ("+Jt({start:N.start,end:N.end})+"): it’s not open");he.position.end=Yn(N.end)}function h(){return Po(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function f(N){if(this.data.expectingFirstListItemValue){const J=this.stack[this.stack.length-2];J.start=Number.parseInt(this.sliceSerialize(N),10),this.data.expectingFirstListItemValue=void 0}}function A(){const N=this.resume(),J=this.stack[this.stack.length-1];J.lang=N}function b(){const N=this.resume(),J=this.stack[this.stack.length-1];J.meta=N}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const N=this.resume(),J=this.stack[this.stack.length-1];J.value=N.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function O(){const N=this.resume(),J=this.stack[this.stack.length-1];J.value=N.replace(/(\r?\n|\r)$/g,"")}function B(N){const J=this.resume(),he=this.stack[this.stack.length-1];he.label=J,he.identifier=wn(this.sliceSerialize(N)).toLowerCase()}function _(){const N=this.resume(),J=this.stack[this.stack.length-1];J.title=N}function j(){const N=this.resume(),J=this.stack[this.stack.length-1];J.url=N}function M(N){const J=this.stack[this.stack.length-1];if(!J.depth){const he=this.sliceSerialize(N).length;J.depth=he}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function F(N){const J=this.stack[this.stack.length-1];J.depth=this.sliceSerialize(N).codePointAt(0)===61?1:2}function W(){this.data.setextHeadingSlurpLineEnding=void 0}function ne(N){const he=this.stack[this.stack.length-1].children;let be=he[he.length-1];(!be||be.type!=="text")&&(be=Bt(),be.position={start:Yn(N.start),end:void 0},he.push(be)),this.stack.push(be)}function L(N){const J=this.stack.pop();J.value+=this.sliceSerialize(N),J.position.end=Yn(N.end)}function Q(N){const J=this.stack[this.stack.length-1];if(this.data.atHardBreak){const he=J.children[J.children.length-1];he.position.end=Yn(N.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(J.type)&&(ne.call(this,N),L.call(this,N))}function ue(){this.data.atHardBreak=!0}function ye(){const N=this.resume(),J=this.stack[this.stack.length-1];J.value=N}function ee(){const N=this.resume(),J=this.stack[this.stack.length-1];J.value=N}function H(){const N=this.resume(),J=this.stack[this.stack.length-1];J.value=N}function V(){const N=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";N.type+="Reference",N.referenceType=J,delete N.url,delete N.title}else delete N.identifier,delete N.label;this.data.referenceType=void 0}function ie(){const N=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";N.type+="Reference",N.referenceType=J,delete N.url,delete N.title}else delete N.identifier,delete N.label;this.data.referenceType=void 0}function Z(N){const J=this.sliceSerialize(N),he=this.stack[this.stack.length-2];he.label=xy(J),he.identifier=wn(J).toLowerCase()}function $(){const N=this.stack[this.stack.length-1],J=this.resume(),he=this.stack[this.stack.length-1];if(this.data.inReference=!0,he.type==="link"){const be=N.children;he.children=be}else he.alt=J}function I(){const N=this.resume(),J=this.stack[this.stack.length-1];J.url=N}function fe(){const N=this.resume(),J=this.stack[this.stack.length-1];J.title=N}function we(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function Be(N){const J=this.resume(),he=this.stack[this.stack.length-1];he.label=J,he.identifier=wn(this.sliceSerialize(N)).toLowerCase(),this.data.referenceType="full"}function Me(N){this.data.characterReferenceType=N.type}function ke(N){const J=this.sliceSerialize(N),he=this.data.characterReferenceType;let be;he?(be=Ws(J,he==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):be=_o(J);const Oe=this.stack[this.stack.length-1];Oe.value+=be}function $e(N){const J=this.stack.pop();J.position.end=Yn(N.end)}function ze(N){L.call(this,N);const J=this.stack[this.stack.length-1];J.url=this.sliceSerialize(N)}function Ne(N){L.call(this,N);const J=this.stack[this.stack.length-1];J.url="mailto:"+this.sliceSerialize(N)}function Pe(){return{type:"blockquote",children:[]}}function en(){return{type:"code",lang:null,meta:null,value:""}}function Je(){return{type:"inlineCode",value:""}}function kn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function st(){return{type:"emphasis",children:[]}}function vn(){return{type:"heading",depth:0,children:[]}}function zn(){return{type:"break"}}function ut(){return{type:"html",value:""}}function Ct(){return{type:"image",title:null,url:"",alt:null}}function Fn(){return{type:"link",title:null,url:"",children:[]}}function St(N){return{type:"list",ordered:N.type==="listOrdered",start:null,spread:N._spread,children:[]}}function Rn(N){return{type:"listItem",spread:N._spread,checked:null,children:[]}}function Vn(){return{type:"paragraph",children:[]}}function ct(){return{type:"strong",children:[]}}function Bt(){return{type:"text",value:""}}function pt(){return{type:"thematicBreak"}}}function Yn(e){return{line:e.line,column:e.column,offset:e.offset}}function Qu(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Qu(e,r):yb(e,r)}}function yb(e,n){let t;for(t in n)if(Ku.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Ju(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Jt({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Jt({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Jt({start:n.start,end:n.end})+") is still open")}function Ab(e){const n=this;n.parser=t;function t(r){return hb(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function gb(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function bb(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
54
+ `}]}function vb(e,n){const t=n.value?n.value+`
55
+ `:"",r={};n.lang&&(r.className=["language-"+n.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(i.data={meta:n.meta}),e.patch(n,i),i=e.applyData(n,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(n,i),i}function xb(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function wb(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function kb(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=vt(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,l+=1,e.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(n,c),e.applyData(n,c)}function Eb(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Cb(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Zu(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Sb(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Zu(e,n);const i={src:vt(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,a),e.applyData(n,a)}function Bb(e,n){const t={src:vt(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Ib(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Ob(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Zu(e,n);const i={href:vt(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function Pb(e,n){const t={href:vt(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Tb(e,n,t){const r=e.all(n),i=t?_b(t):Xu(n),a={},o=[];if(typeof n.checked=="boolean"){const h=r[0];let u;h&&h.type==="element"&&h.tagName==="p"?u=h:(u={type:"element",tagName:"p",properties:{},children:[]},r.unshift(u)),u.children.length>0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const h=r[l];(i||l!==0||h.type!=="element"||h.tagName!=="p")&&o.push({type:"text",value:`
56
56
  `}),h.type==="element"&&h.tagName==="p"&&!i?o.push(...h.children):o.push(h)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
57
- `});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(n,c),e.applyData(n,c)}function Ob(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=Xu(t[r])}return n}function Xu(e){const n=e.spread;return n??e.children.length>1}function Pb(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const a={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,a),e.applyData(n,a)}function _b(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Tb(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Lb(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function jb(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],o),i.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},l=Wo(n.children[1]),s=Mu(n.children[n.children.length-1]);l&&s&&(o.position={start:l,end:s}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,a),e.applyData(n,a)}function Db(e,n,t){const r=t?t.children:void 0,a=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,l=o?o.length:n.children.length;let s=-1;const c=[];for(;++s<l;){const u=n.children[s],f={},A=o?o[s]:void 0;A&&(f.align=A);let b={type:"element",tagName:a,properties:f,children:[]};u&&(b.children=e.all(u),e.patch(u,b),b=e.applyData(u,b)),c.push(b)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(n,h),e.applyData(n,h)}function Mb(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const Gu=9,ec=32;function zb(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const a=[];for(;r;)a.push(nc(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return a.push(nc(n.slice(i),i>0,!1)),a.join("")}function nc(e,n,t){let r=0,i=e.length;if(n){let a=e.codePointAt(r);for(;a===Gu||a===ec;)r++,a=e.codePointAt(r)}if(t){let a=e.codePointAt(i-1);for(;a===Gu||a===ec;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Fb(e,n){const t={type:"text",value:zb(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Rb(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Nb={blockquote:mb,break:yb,code:Ab,delete:gb,emphasis:bb,footnoteReference:vb,heading:xb,html:wb,imageReference:kb,image:Eb,inlineCode:Cb,linkReference:Sb,link:Bb,listItem:Ib,list:Pb,paragraph:_b,root:Tb,strong:Lb,table:jb,tableCell:Mb,tableRow:Db,text:Fb,thematicBreak:Rb,toml:Gr,yaml:Gr,definition:Gr,footnoteDefinition:Gr};function Gr(){}const tc=-1,ei=0,ni=1,ti=2,Zo=3,Xo=4,Go=5,ea=6,rc=7,ic=8,oc=typeof self=="object"?self:globalThis,qb=(e,n)=>{const t=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=n[i];switch(a){case ei:case tc:return t(o,i);case ni:{const l=t([],i);for(const s of o)l.push(r(s));return l}case ti:{const l=t({},i);for(const[s,c]of o)l[r(s)]=r(c);return l}case Zo:return t(new Date(o),i);case Xo:{const{source:l,flags:s}=o;return t(new RegExp(l,s),i)}case Go:{const l=t(new Map,i);for(const[s,c]of o)l.set(r(s),r(c));return l}case ea:{const l=t(new Set,i);for(const s of o)l.add(r(s));return l}case rc:{const{name:l,message:s}=o;return t(new oc[l](s),i)}case ic:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i)}return t(new oc[a](o),i)};return r},ac=e=>qb(new Map,e)(0),Et="",{toString:Ub}={},{keys:Hb}=Object,Zt=e=>{const n=typeof e;if(n!=="object"||!e)return[ei,n];const t=Ub.call(e).slice(8,-1);switch(t){case"Array":return[ni,Et];case"Object":return[ti,Et];case"Date":return[Zo,Et];case"RegExp":return[Xo,Et];case"Map":return[Go,Et];case"Set":return[ea,Et]}return t.includes("Array")?[ni,t]:t.includes("Error")?[rc,t]:[ti,t]},ri=([e,n])=>e===ei&&(n==="function"||n==="symbol"),$b=(e,n,t,r)=>{const i=(o,l)=>{const s=r.push(o)-1;return t.set(l,s),s},a=o=>{if(t.has(o))return t.get(o);let[l,s]=Zt(o);switch(l){case ei:{let h=o;switch(s){case"bigint":l=ic,h=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);h=null;break;case"undefined":return i([tc],o)}return i([l,h],o)}case ni:{if(s)return i([s,[...o]],o);const h=[],u=i([l,h],o);for(const f of o)h.push(a(f));return u}case ti:{if(s)switch(s){case"BigInt":return i([s,o.toString()],o);case"Boolean":case"Number":case"String":return i([s,o.valueOf()],o)}if(n&&"toJSON"in o)return a(o.toJSON());const h=[],u=i([l,h],o);for(const f of Hb(o))(e||!ri(Zt(o[f])))&&h.push([a(f),a(o[f])]);return u}case Zo:return i([l,o.toISOString()],o);case Xo:{const{source:h,flags:u}=o;return i([l,{source:h,flags:u}],o)}case Go:{const h=[],u=i([l,h],o);for(const[f,A]of o)(e||!(ri(Zt(f))||ri(Zt(A))))&&h.push([a(f),a(A)]);return u}case ea:{const h=[],u=i([l,h],o);for(const f of o)(e||!ri(Zt(f)))&&h.push(a(f));return u}}const{message:c}=o;return i([l,{name:s,message:c}],o)};return a},lc=(e,{json:n,lossy:t}={})=>{const r=[];return $b(!(n||t),!!n,new Map,r)(e),r},ii=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?ac(lc(e,n)):structuredClone(e):(e,n)=>ac(lc(e,n));function Wb(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Yb(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Vb(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Wb,r=e.options.footnoteBackLabel||Yb,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[s]);if(!c)continue;const h=e.all(c),u=String(c.identifier).toUpperCase(),f=vt(u.toLowerCase());let A=0;const b=[],v=e.footnoteCounts.get(u);for(;v!==void 0&&++A<=v;){b.length>0&&b.push({type:"text",value:" "});let B=typeof t=="string"?t:t(s,A);typeof B=="string"&&(B={type:"text",value:B}),b.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+f+(A>1?"-"+A:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,A),className:["data-footnote-backref"]},children:Array.isArray(B)?B:[B]})}const S=h[h.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const B=S.children[S.children.length-1];B&&B.type==="text"?B.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...b)}else h.push(...b);const O={type:"element",tagName:"li",properties:{id:n+"fn-"+f},children:e.wrap(h,!0)};e.patch(c,O),l.push(O)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...ii(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
57
+ `});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(n,c),e.applyData(n,c)}function _b(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=Xu(t[r])}return n}function Xu(e){const n=e.spread;return n??e.children.length>1}function Lb(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const a={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,a),e.applyData(n,a)}function jb(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Db(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Mb(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function zb(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],o),i.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},l=Wo(n.children[1]),s=Mu(n.children[n.children.length-1]);l&&s&&(o.position={start:l,end:s}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,a),e.applyData(n,a)}function Fb(e,n,t){const r=t?t.children:void 0,a=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,l=o?o.length:n.children.length;let s=-1;const c=[];for(;++s<l;){const u=n.children[s],f={},A=o?o[s]:void 0;A&&(f.align=A);let b={type:"element",tagName:a,properties:f,children:[]};u&&(b.children=e.all(u),e.patch(u,b),b=e.applyData(u,b)),c.push(b)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(n,h),e.applyData(n,h)}function Rb(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const Gu=9,ec=32;function Nb(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const a=[];for(;r;)a.push(nc(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return a.push(nc(n.slice(i),i>0,!1)),a.join("")}function nc(e,n,t){let r=0,i=e.length;if(n){let a=e.codePointAt(r);for(;a===Gu||a===ec;)r++,a=e.codePointAt(r)}if(t){let a=e.codePointAt(i-1);for(;a===Gu||a===ec;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function qb(e,n){const t={type:"text",value:Nb(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Ub(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Hb={blockquote:gb,break:bb,code:vb,delete:xb,emphasis:wb,footnoteReference:kb,heading:Eb,html:Cb,imageReference:Sb,image:Bb,inlineCode:Ib,linkReference:Ob,link:Pb,listItem:Tb,list:Lb,paragraph:jb,root:Db,strong:Mb,table:zb,tableCell:Rb,tableRow:Fb,text:qb,thematicBreak:Ub,toml:ei,yaml:ei,definition:ei,footnoteDefinition:ei};function ei(){}const tc=-1,ni=0,ti=1,ri=2,Zo=3,Xo=4,Go=5,ea=6,rc=7,ic=8,oc=typeof self=="object"?self:globalThis,$b=(e,n)=>{const t=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=n[i];switch(a){case ni:case tc:return t(o,i);case ti:{const l=t([],i);for(const s of o)l.push(r(s));return l}case ri:{const l=t({},i);for(const[s,c]of o)l[r(s)]=r(c);return l}case Zo:return t(new Date(o),i);case Xo:{const{source:l,flags:s}=o;return t(new RegExp(l,s),i)}case Go:{const l=t(new Map,i);for(const[s,c]of o)l.set(r(s),r(c));return l}case ea:{const l=t(new Set,i);for(const s of o)l.add(r(s));return l}case rc:{const{name:l,message:s}=o;return t(new oc[l](s),i)}case ic:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i)}return t(new oc[a](o),i)};return r},ac=e=>$b(new Map,e)(0),Et="",{toString:Wb}={},{keys:Yb}=Object,Xt=e=>{const n=typeof e;if(n!=="object"||!e)return[ni,n];const t=Wb.call(e).slice(8,-1);switch(t){case"Array":return[ti,Et];case"Object":return[ri,Et];case"Date":return[Zo,Et];case"RegExp":return[Xo,Et];case"Map":return[Go,Et];case"Set":return[ea,Et]}return t.includes("Array")?[ti,t]:t.includes("Error")?[rc,t]:[ri,t]},ii=([e,n])=>e===ni&&(n==="function"||n==="symbol"),Vb=(e,n,t,r)=>{const i=(o,l)=>{const s=r.push(o)-1;return t.set(l,s),s},a=o=>{if(t.has(o))return t.get(o);let[l,s]=Xt(o);switch(l){case ni:{let h=o;switch(s){case"bigint":l=ic,h=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);h=null;break;case"undefined":return i([tc],o)}return i([l,h],o)}case ti:{if(s)return i([s,[...o]],o);const h=[],u=i([l,h],o);for(const f of o)h.push(a(f));return u}case ri:{if(s)switch(s){case"BigInt":return i([s,o.toString()],o);case"Boolean":case"Number":case"String":return i([s,o.valueOf()],o)}if(n&&"toJSON"in o)return a(o.toJSON());const h=[],u=i([l,h],o);for(const f of Yb(o))(e||!ii(Xt(o[f])))&&h.push([a(f),a(o[f])]);return u}case Zo:return i([l,o.toISOString()],o);case Xo:{const{source:h,flags:u}=o;return i([l,{source:h,flags:u}],o)}case Go:{const h=[],u=i([l,h],o);for(const[f,A]of o)(e||!(ii(Xt(f))||ii(Xt(A))))&&h.push([a(f),a(A)]);return u}case ea:{const h=[],u=i([l,h],o);for(const f of o)(e||!ii(Xt(f)))&&h.push(a(f));return u}}const{message:c}=o;return i([l,{name:s,message:c}],o)};return a},lc=(e,{json:n,lossy:t}={})=>{const r=[];return Vb(!(n||t),!!n,new Map,r)(e),r},oi=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?ac(lc(e,n)):structuredClone(e):(e,n)=>ac(lc(e,n));function Kb(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Qb(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Jb(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Kb,r=e.options.footnoteBackLabel||Qb,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[s]);if(!c)continue;const h=e.all(c),u=String(c.identifier).toUpperCase(),f=vt(u.toLowerCase());let A=0;const b=[],v=e.footnoteCounts.get(u);for(;v!==void 0&&++A<=v;){b.length>0&&b.push({type:"text",value:" "});let B=typeof t=="string"?t:t(s,A);typeof B=="string"&&(B={type:"text",value:B}),b.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+f+(A>1?"-"+A:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,A),className:["data-footnote-backref"]},children:Array.isArray(B)?B:[B]})}const S=h[h.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const B=S.children[S.children.length-1];B&&B.type==="text"?B.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...b)}else h.push(...b);const O={type:"element",tagName:"li",properties:{id:n+"fn-"+f},children:e.wrap(h,!0)};e.patch(c,O),l.push(O)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...oi(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
58
58
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
59
- `}]}}const na={}.hasOwnProperty,Kb={};function Qb(e,n){const t=n||Kb,r=new Map,i=new Map,a=new Map,o={...Nb,...t.handlers},l={all:c,applyData:Zb,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:s,options:t,patch:Jb,wrap:Gb};return Oo(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const u=h.type==="definition"?r:i,f=String(h.identifier).toUpperCase();u.has(f)||u.set(f,h)}}),l;function s(h,u){const f=h.type,A=l.handlers[f];if(na.call(l.handlers,f)&&A)return A(l,h,u);if(l.options.passThrough&&l.options.passThrough.includes(f)){if("children"in h){const{children:v,...S}=h,O=ii(S);return O.children=l.all(h),O}return ii(h)}return(l.options.unknownHandler||Xb)(l,h,u)}function c(h){const u=[];if("children"in h){const f=h.children;let A=-1;for(;++A<f.length;){const b=l.one(f[A],h);if(b){if(A&&f[A-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=sc(b.value)),!Array.isArray(b)&&b.type==="element")){const v=b.children[0];v&&v.type==="text"&&(v.value=sc(v.value))}Array.isArray(b)?u.push(...b):u.push(b)}}}return u}}function Jb(e,n){e.position&&(n.position=Eg(e))}function Zb(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const o="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:o}}t.type==="element"&&a&&Object.assign(t.properties,ii(a)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function Xb(e,n){const t=n.data||{},r="value"in n&&!(na.call(t,"hProperties")||na.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Gb(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
59
+ `}]}}const na={}.hasOwnProperty,Zb={};function Xb(e,n){const t=n||Zb,r=new Map,i=new Map,a=new Map,o={...Hb,...t.handlers},l={all:c,applyData:ev,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:s,options:t,patch:Gb,wrap:tv};return Oo(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const u=h.type==="definition"?r:i,f=String(h.identifier).toUpperCase();u.has(f)||u.set(f,h)}}),l;function s(h,u){const f=h.type,A=l.handlers[f];if(na.call(l.handlers,f)&&A)return A(l,h,u);if(l.options.passThrough&&l.options.passThrough.includes(f)){if("children"in h){const{children:v,...S}=h,O=oi(S);return O.children=l.all(h),O}return oi(h)}return(l.options.unknownHandler||nv)(l,h,u)}function c(h){const u=[];if("children"in h){const f=h.children;let A=-1;for(;++A<f.length;){const b=l.one(f[A],h);if(b){if(A&&f[A-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=sc(b.value)),!Array.isArray(b)&&b.type==="element")){const v=b.children[0];v&&v.type==="text"&&(v.value=sc(v.value))}Array.isArray(b)?u.push(...b):u.push(b)}}}return u}}function Gb(e,n){e.position&&(n.position=Bg(e))}function ev(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const o="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:o}}t.type==="element"&&a&&Object.assign(t.properties,oi(a)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function nv(e,n){const t=n.data||{},r="value"in n&&!(na.call(t,"hProperties")||na.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function tv(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
60
60
  `});++r<e.length;)r&&t.push({type:"text",value:`
61
61
  `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
62
- `}),t}function sc(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function uc(e,n){const t=Qb(e,n),r=t.one(e,void 0),i=Vb(t),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
63
- `},i),a}function ev(e,n){return e&&"run"in e?async function(t,r){const i=uc(t,{file:r,...n});await e.run(i,r)}:function(t,r){return uc(t,{file:r,...n||e})}}function cc(e){if(e)throw e}var oi=Object.prototype.hasOwnProperty,pc=Object.prototype.toString,dc=Object.defineProperty,fc=Object.getOwnPropertyDescriptor,hc=function(n){return typeof Array.isArray=="function"?Array.isArray(n):pc.call(n)==="[object Array]"},mc=function(n){if(!n||pc.call(n)!=="[object Object]")return!1;var t=oi.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&oi.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||oi.call(n,i)},yc=function(n,t){dc&&t.name==="__proto__"?dc(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},Ac=function(n,t){if(t==="__proto__")if(oi.call(n,t)){if(fc)return fc(n,t).value}else return;return n[t]},nv=function e(){var n,t,r,i,a,o,l=arguments[0],s=1,c=arguments.length,h=!1;for(typeof l=="boolean"&&(h=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});s<c;++s)if(n=arguments[s],n!=null)for(t in n)r=Ac(l,t),i=Ac(n,t),l!==i&&(h&&i&&(mc(i)||(a=hc(i)))?(a?(a=!1,o=r&&hc(r)?r:[]):o=r&&mc(r)?r:{},yc(l,{name:t,newValue:e(h,o,i)})):typeof i<"u"&&yc(l,{name:t,newValue:i}));return l};const ta=Tr(nv);function ra(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function tv(){const e=[],n={run:t,use:r};return n;function t(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...i);function l(s,...c){const h=e[++a];let u=-1;if(s){o(s);return}for(;++u<i.length;)(c[u]===null||c[u]===void 0)&&(c[u]=i[u]);i=c,h?rv(h,l)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function rv(e,n){let t;return r;function r(...o){const l=e.length>o.length;let s;l&&o.push(i);try{s=e.apply(this,o)}catch(c){const h=c;if(l&&t)throw h;return i(h)}l||(s&&s.then&&typeof s.then=="function"?s.then(a,i):s instanceof Error?i(s):a(s))}function i(o,...l){t||(t=!0,n(o,...l))}function a(o){i(null,o)}}const In={basename:iv,dirname:ov,extname:av,join:lv,sep:"/"};function iv(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Xt(e);let t=0,r=-1,i=e.length,a;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){t=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,l=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){t=i+1;break}}else o<0&&(a=!0,o=i+1),l>-1&&(e.codePointAt(i)===n.codePointAt(l--)?l<0&&(r=i):(l=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function ov(e){if(Xt(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function av(e){Xt(e);let n=e.length,t=-1,r=0,i=-1,a=0,o;for(;n--;){const l=e.codePointAt(n);if(l===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),l===46?i<0?i=n:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||t<0||a===0||a===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function lv(...e){let n=-1,t;for(;++n<e.length;)Xt(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":sv(t)}function sv(e){Xt(e);const n=e.codePointAt(0)===47;let t=uv(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function uv(e,n){let t="",r=0,i=-1,a=0,o=-1,l,s;for(;++o<=e.length;){if(o<e.length)l=e.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",r=0):(t=t.slice(0,s),r=t.length-1-t.lastIndexOf("/")),i=o,a=0;continue}}else if(t.length>0){t="",r=0,i=o,a=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,a=0}else l===46&&a>-1?a++:a=-1}return t}function Xt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const cv={cwd:pv};function pv(){return"/"}function ia(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function dv(e){if(typeof e=="string")e=new URL(e);else if(!ia(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return fv(e)}function fv(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const oa=["history","path","basename","stem","extname","dirname"];class gc{constructor(n){let t;n?ia(n)?t={path:n}:typeof n=="string"||hv(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":cv.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<oa.length;){const a=oa[r];a in t&&t[a]!==void 0&&t[a]!==null&&(this[a]=a==="history"?[...t[a]]:t[a])}let i;for(i in t)oa.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?In.basename(this.path):void 0}set basename(n){la(n,"basename"),aa(n,"basename"),this.path=In.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?In.dirname(this.path):void 0}set dirname(n){bc(this.basename,"dirname"),this.path=In.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?In.extname(this.path):void 0}set extname(n){if(aa(n,"extname"),bc(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=In.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){ia(n)&&(n=dv(n)),la(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?In.basename(this.path,this.extname):void 0}set stem(n){la(n,"stem"),aa(n,"stem"),this.path=In.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new rn(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function aa(e,n){if(e&&e.includes(In.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+In.sep+"`")}function la(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function bc(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function hv(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const mv=function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a},yv={}.hasOwnProperty;class sa extends mv{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=tv()}copy(){const n=new sa;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(ta(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(pa("data",this.frozen),this.namespace[n]=t,this):yv.call(this.namespace,n)&&this.namespace[n]||void 0:n?(pa("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=ai(n),r=this.parser||this.Parser;return ua("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),ua("process",this.parser||this.Parser),ca("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(a,o){const l=ai(n),s=r.parse(l);r.run(s,l,function(h,u,f){if(h||!u||!f)return c(h);const A=u,b=r.stringify(A,f);bv(b)?f.value=b:f.result=b,c(h,f)});function c(h,u){h||!u?o(h):a?a(u):t(void 0,u)}}}processSync(n){let t=!1,r;return this.freeze(),ua("processSync",this.parser||this.Parser),ca("processSync",this.compiler||this.Compiler),this.process(n,i),xc("processSync","process",t),r;function i(a,o){t=!0,cc(a),r=o}}run(n,t,r){vc(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?a(void 0,r):new Promise(a);function a(o,l){const s=ai(t);i.run(n,s,c);function c(h,u,f){const A=u||n;h?l(h):o?o(A):r(void 0,A,f)}}}runSync(n,t){let r=!1,i;return this.run(n,t,a),xc("runSync","run",r),i;function a(o,l){cc(o),i=l,r=!0}}stringify(n,t){this.freeze();const r=ai(t),i=this.compiler||this.Compiler;return ca("stringify",i),vc(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(pa("use",this.frozen),n!=null)if(typeof n=="function")s(n,t);else if(typeof n=="object")Array.isArray(n)?l(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function a(c){if(typeof c=="function")s(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[h,...u]=c;s(h,u)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))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");l(c.plugins),c.settings&&(i.settings=ta(!0,i.settings,c.settings))}function l(c){let h=-1;if(c!=null)if(Array.isArray(c))for(;++h<c.length;){const u=c[h];a(u)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function s(c,h){let u=-1,f=-1;for(;++u<r.length;)if(r[u][0]===c){f=u;break}if(f===-1)r.push([c,...h]);else if(h.length>0){let[A,...b]=h;const v=r[f][1];ra(v)&&ra(A)&&(A=ta(!0,v,A)),r[f]=[c,A,...b]}}}}const Av=new sa().freeze();function ua(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ca(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function pa(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vc(e){if(!ra(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function xc(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function ai(e){return gv(e)?e:new gc(e)}function gv(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function bv(e){return typeof e=="string"||vv(e)}function vv(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const xv="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",wc=[],kc={allowDangerousHtml:!0},wv=/^(https?|ircs?|mailto|xmpp)$/i,kv=[{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 Ev(e){const n=e.allowedElements,t=e.allowElement,r=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,l=e.rehypePlugins||wc,s=e.remarkPlugins||wc,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...kc}:kc,h=e.skipHtml,u=e.unwrapDisallowed,f=e.urlTransform||Ec,A=Av().use(hb).use(s).use(ev,c).use(l),b=new gc;typeof r=="string"&&(b.value=r);for(const B of kv)Object.hasOwn(e,B.from)&&(""+B.from+(B.to?"use `"+B.to+"` instead":"remove it")+xv+B.id,void 0);const v=A.parse(b);let S=A.runSync(v,b);return i&&(S={type:"element",tagName:"div",properties:{className:i},children:S.type==="root"?S.children:[S]}),Oo(S,O),Pg(S,{Fragment:q.Fragment,components:a,ignoreInvalidStyle:!0,jsx:q.jsx,jsxs:q.jsxs,passKeys:!0,passNode:!0});function O(B,T,j){if(B.type==="raw"&&j&&typeof T=="number")return h?j.children.splice(T,1):j.children[T]={type:"text",value:B.value},T;if(B.type==="element"){let M;for(M in Jo)if(Object.hasOwn(Jo,M)&&Object.hasOwn(B.properties,M)){const k=B.properties[M],F=Jo[M];(F===null||F.includes(B.tagName))&&(B.properties[M]=f(String(k||""),M,B))}}if(B.type==="element"){let M=n?!n.includes(B.tagName):o?o.includes(B.tagName):!1;if(!M&&t&&typeof T=="number"&&(M=!t(B,T,j)),M&&j&&typeof T=="number")return u&&B.children?j.children.splice(T,1,...B.children):j.children.splice(T,1),T}}}function Ec(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n<0||i>-1&&n>i||t>-1&&n>t||r>-1&&n>r||wv.test(e.slice(0,n))?e:""}const Cv=Object.freeze(Object.defineProperty({__proto__:null,default:Ev,defaultUrlTransform:Ec},Symbol.toStringTag,{value:"Module"}));var Cc={exports:{}};(function(e,n){(function(t,r){e.exports=r()})(window,function(){return function(t){var r={};function i(a){if(r[a])return r[a].exports;var o=r[a]={i:a,l:!1,exports:{}};return t[a].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=r,i.d=function(a,o,l){i.o(a,o)||Object.defineProperty(a,o,{configurable:!1,enumerable:!0,get:l})},i.r=function(a){Object.defineProperty(a,"__esModule",{value:!0})},i.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(o,"a",o),o},i.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},i.p="/",i(i.s=41)}([function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=/mobile/i.test(window.navigator.userAgent),o={secondToTime:function(l){var s=Math.floor(l/3600),c=Math.floor((l-3600*s)/60),h=Math.floor(l-3600*s-60*c);return(s>0?[s,c,h]:[c,h]).map(function(u){return u<10?"0"+u:""+u}).join(":")},getElementViewLeft:function(l){var s=l.offsetLeft,c=l.offsetParent,h=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;c!==null&&c!==l;)s+=c.offsetLeft,c=c.offsetParent;else for(;c!==null;)s+=c.offsetLeft,c=c.offsetParent;return s-h},getElementViewTop:function(l,s){for(var c,h=l.offsetTop,u=l.offsetParent;u!==null;)h+=u.offsetTop,u=u.offsetParent;return c=document.body.scrollTop+document.documentElement.scrollTop,s?h:h-c},isMobile:a,storage:{set:function(l,s){localStorage.setItem(l,s)},get:function(l){return localStorage.getItem(l)}},nameMap:{dragStart:a?"touchstart":"mousedown",dragMove:a?"touchmove":"mousemove",dragEnd:a?"touchend":"mouseup"},randomOrder:function(l){return function(s){for(var c=s.length-1;c>=0;c--){var h=Math.floor(Math.random()*(c+1)),u=s[h];s[h]=s[c],s[c]=u}return s}([].concat(function(s){if(Array.isArray(s)){for(var c=0,h=Array(s.length);c<s.length;c++)h[c]=s[c];return h}return Array.from(s)}(Array(l))).map(function(s,c){return c}))}};r.default=o},function(t,r,i){var a=i(2);t.exports=function(o){o=o||{};var l="",s=a.$each,c=o.audio,h=(o.$value,o.$index,a.$escape),u=o.theme,f=o.index;return s(c,function(A,b){l+=`
62
+ `}),t}function sc(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function uc(e,n){const t=Xb(e,n),r=t.one(e,void 0),i=Jb(t),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
63
+ `},i),a}function rv(e,n){return e&&"run"in e?async function(t,r){const i=uc(t,{file:r,...n});await e.run(i,r)}:function(t,r){return uc(t,{file:r,...n||e})}}function cc(e){if(e)throw e}var ai=Object.prototype.hasOwnProperty,pc=Object.prototype.toString,dc=Object.defineProperty,fc=Object.getOwnPropertyDescriptor,hc=function(n){return typeof Array.isArray=="function"?Array.isArray(n):pc.call(n)==="[object Array]"},mc=function(n){if(!n||pc.call(n)!=="[object Object]")return!1;var t=ai.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&ai.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||ai.call(n,i)},yc=function(n,t){dc&&t.name==="__proto__"?dc(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},Ac=function(n,t){if(t==="__proto__")if(ai.call(n,t)){if(fc)return fc(n,t).value}else return;return n[t]},iv=function e(){var n,t,r,i,a,o,l=arguments[0],s=1,c=arguments.length,h=!1;for(typeof l=="boolean"&&(h=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});s<c;++s)if(n=arguments[s],n!=null)for(t in n)r=Ac(l,t),i=Ac(n,t),l!==i&&(h&&i&&(mc(i)||(a=hc(i)))?(a?(a=!1,o=r&&hc(r)?r:[]):o=r&&mc(r)?r:{},yc(l,{name:t,newValue:e(h,o,i)})):typeof i<"u"&&yc(l,{name:t,newValue:i}));return l};const ta=Lr(iv);function ra(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ov(){const e=[],n={run:t,use:r};return n;function t(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...i);function l(s,...c){const h=e[++a];let u=-1;if(s){o(s);return}for(;++u<i.length;)(c[u]===null||c[u]===void 0)&&(c[u]=i[u]);i=c,h?av(h,l)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function av(e,n){let t;return r;function r(...o){const l=e.length>o.length;let s;l&&o.push(i);try{s=e.apply(this,o)}catch(c){const h=c;if(l&&t)throw h;return i(h)}l||(s&&s.then&&typeof s.then=="function"?s.then(a,i):s instanceof Error?i(s):a(s))}function i(o,...l){t||(t=!0,n(o,...l))}function a(o){i(null,o)}}const In={basename:lv,dirname:sv,extname:uv,join:cv,sep:"/"};function lv(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Gt(e);let t=0,r=-1,i=e.length,a;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){t=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,l=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){t=i+1;break}}else o<0&&(a=!0,o=i+1),l>-1&&(e.codePointAt(i)===n.codePointAt(l--)?l<0&&(r=i):(l=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function sv(e){if(Gt(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function uv(e){Gt(e);let n=e.length,t=-1,r=0,i=-1,a=0,o;for(;n--;){const l=e.codePointAt(n);if(l===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),l===46?i<0?i=n:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||t<0||a===0||a===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function cv(...e){let n=-1,t;for(;++n<e.length;)Gt(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":pv(t)}function pv(e){Gt(e);const n=e.codePointAt(0)===47;let t=dv(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function dv(e,n){let t="",r=0,i=-1,a=0,o=-1,l,s;for(;++o<=e.length;){if(o<e.length)l=e.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",r=0):(t=t.slice(0,s),r=t.length-1-t.lastIndexOf("/")),i=o,a=0;continue}}else if(t.length>0){t="",r=0,i=o,a=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,a=0}else l===46&&a>-1?a++:a=-1}return t}function Gt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const fv={cwd:hv};function hv(){return"/"}function ia(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function mv(e){if(typeof e=="string")e=new URL(e);else if(!ia(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return yv(e)}function yv(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const oa=["history","path","basename","stem","extname","dirname"];class gc{constructor(n){let t;n?ia(n)?t={path:n}:typeof n=="string"||Av(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":fv.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<oa.length;){const a=oa[r];a in t&&t[a]!==void 0&&t[a]!==null&&(this[a]=a==="history"?[...t[a]]:t[a])}let i;for(i in t)oa.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?In.basename(this.path):void 0}set basename(n){la(n,"basename"),aa(n,"basename"),this.path=In.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?In.dirname(this.path):void 0}set dirname(n){bc(this.basename,"dirname"),this.path=In.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?In.extname(this.path):void 0}set extname(n){if(aa(n,"extname"),bc(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=In.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){ia(n)&&(n=mv(n)),la(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?In.basename(this.path,this.extname):void 0}set stem(n){la(n,"stem"),aa(n,"stem"),this.path=In.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new rn(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function aa(e,n){if(e&&e.includes(In.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+In.sep+"`")}function la(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function bc(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Av(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const gv=function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a},bv={}.hasOwnProperty;class sa extends gv{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=ov()}copy(){const n=new sa;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(ta(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(pa("data",this.frozen),this.namespace[n]=t,this):bv.call(this.namespace,n)&&this.namespace[n]||void 0:n?(pa("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=li(n),r=this.parser||this.Parser;return ua("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),ua("process",this.parser||this.Parser),ca("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(a,o){const l=li(n),s=r.parse(l);r.run(s,l,function(h,u,f){if(h||!u||!f)return c(h);const A=u,b=r.stringify(A,f);wv(b)?f.value=b:f.result=b,c(h,f)});function c(h,u){h||!u?o(h):a?a(u):t(void 0,u)}}}processSync(n){let t=!1,r;return this.freeze(),ua("processSync",this.parser||this.Parser),ca("processSync",this.compiler||this.Compiler),this.process(n,i),xc("processSync","process",t),r;function i(a,o){t=!0,cc(a),r=o}}run(n,t,r){vc(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?a(void 0,r):new Promise(a);function a(o,l){const s=li(t);i.run(n,s,c);function c(h,u,f){const A=u||n;h?l(h):o?o(A):r(void 0,A,f)}}}runSync(n,t){let r=!1,i;return this.run(n,t,a),xc("runSync","run",r),i;function a(o,l){cc(o),i=l,r=!0}}stringify(n,t){this.freeze();const r=li(t),i=this.compiler||this.Compiler;return ca("stringify",i),vc(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(pa("use",this.frozen),n!=null)if(typeof n=="function")s(n,t);else if(typeof n=="object")Array.isArray(n)?l(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function a(c){if(typeof c=="function")s(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[h,...u]=c;s(h,u)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))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");l(c.plugins),c.settings&&(i.settings=ta(!0,i.settings,c.settings))}function l(c){let h=-1;if(c!=null)if(Array.isArray(c))for(;++h<c.length;){const u=c[h];a(u)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function s(c,h){let u=-1,f=-1;for(;++u<r.length;)if(r[u][0]===c){f=u;break}if(f===-1)r.push([c,...h]);else if(h.length>0){let[A,...b]=h;const v=r[f][1];ra(v)&&ra(A)&&(A=ta(!0,v,A)),r[f]=[c,A,...b]}}}}const vv=new sa().freeze();function ua(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ca(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function pa(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vc(e){if(!ra(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function xc(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function li(e){return xv(e)?e:new gc(e)}function xv(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function wv(e){return typeof e=="string"||kv(e)}function kv(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ev="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",wc=[],kc={allowDangerousHtml:!0},Cv=/^(https?|ircs?|mailto|xmpp)$/i,Sv=[{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 Bv(e){const n=e.allowedElements,t=e.allowElement,r=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,l=e.rehypePlugins||wc,s=e.remarkPlugins||wc,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...kc}:kc,h=e.skipHtml,u=e.unwrapDisallowed,f=e.urlTransform||Ec,A=vv().use(Ab).use(s).use(rv,c).use(l),b=new gc;typeof r=="string"&&(b.value=r);for(const B of Sv)Object.hasOwn(e,B.from)&&(""+B.from+(B.to?"use `"+B.to+"` instead":"remove it")+Ev+B.id,void 0);const v=A.parse(b);let S=A.runSync(v,b);return i&&(S={type:"element",tagName:"div",properties:{className:i},children:S.type==="root"?S.children:[S]}),Oo(S,O),Lg(S,{Fragment:q.Fragment,components:a,ignoreInvalidStyle:!0,jsx:q.jsx,jsxs:q.jsxs,passKeys:!0,passNode:!0});function O(B,_,j){if(B.type==="raw"&&j&&typeof _=="number")return h?j.children.splice(_,1):j.children[_]={type:"text",value:B.value},_;if(B.type==="element"){let M;for(M in Jo)if(Object.hasOwn(Jo,M)&&Object.hasOwn(B.properties,M)){const k=B.properties[M],F=Jo[M];(F===null||F.includes(B.tagName))&&(B.properties[M]=f(String(k||""),M,B))}}if(B.type==="element"){let M=n?!n.includes(B.tagName):o?o.includes(B.tagName):!1;if(!M&&t&&typeof _=="number"&&(M=!t(B,_,j)),M&&j&&typeof _=="number")return u&&B.children?j.children.splice(_,1,...B.children):j.children.splice(_,1),_}}}function Ec(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n<0||i>-1&&n>i||t>-1&&n>t||r>-1&&n>r||Cv.test(e.slice(0,n))?e:""}const Iv=Object.freeze(Object.defineProperty({__proto__:null,default:Bv,defaultUrlTransform:Ec},Symbol.toStringTag,{value:"Module"}));var Cc={exports:{}};(function(e,n){(function(t,r){e.exports=r()})(window,function(){return function(t){var r={};function i(a){if(r[a])return r[a].exports;var o=r[a]={i:a,l:!1,exports:{}};return t[a].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=r,i.d=function(a,o,l){i.o(a,o)||Object.defineProperty(a,o,{configurable:!1,enumerable:!0,get:l})},i.r=function(a){Object.defineProperty(a,"__esModule",{value:!0})},i.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(o,"a",o),o},i.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},i.p="/",i(i.s=41)}([function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=/mobile/i.test(window.navigator.userAgent),o={secondToTime:function(l){var s=Math.floor(l/3600),c=Math.floor((l-3600*s)/60),h=Math.floor(l-3600*s-60*c);return(s>0?[s,c,h]:[c,h]).map(function(u){return u<10?"0"+u:""+u}).join(":")},getElementViewLeft:function(l){var s=l.offsetLeft,c=l.offsetParent,h=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;c!==null&&c!==l;)s+=c.offsetLeft,c=c.offsetParent;else for(;c!==null;)s+=c.offsetLeft,c=c.offsetParent;return s-h},getElementViewTop:function(l,s){for(var c,h=l.offsetTop,u=l.offsetParent;u!==null;)h+=u.offsetTop,u=u.offsetParent;return c=document.body.scrollTop+document.documentElement.scrollTop,s?h:h-c},isMobile:a,storage:{set:function(l,s){localStorage.setItem(l,s)},get:function(l){return localStorage.getItem(l)}},nameMap:{dragStart:a?"touchstart":"mousedown",dragMove:a?"touchmove":"mousemove",dragEnd:a?"touchend":"mouseup"},randomOrder:function(l){return function(s){for(var c=s.length-1;c>=0;c--){var h=Math.floor(Math.random()*(c+1)),u=s[h];s[h]=s[c],s[c]=u}return s}([].concat(function(s){if(Array.isArray(s)){for(var c=0,h=Array(s.length);c<s.length;c++)h[c]=s[c];return h}return Array.from(s)}(Array(l))).map(function(s,c){return c}))}};r.default=o},function(t,r,i){var a=i(2);t.exports=function(o){o=o||{};var l="",s=a.$each,c=o.audio,h=(o.$value,o.$index,a.$escape),u=o.theme,f=o.index;return s(c,function(A,b){l+=`
64
64
  <li>
65
65
  <span class="aplayer-list-cur" style="background-color: `,l+=h(A.theme||u),l+=`;"></span>
66
66
  <span class="aplayer-list-index">`,l+=h(b+f),l+=`</span>
67
67
  <span class="aplayer-list-title">`,l+=h(A.name),l+=`</span>
68
68
  <span class="aplayer-list-author">`,l+=h(A.artist),l+=`</span>
69
69
  </li>
70
- `}),l}},function(t,r,i){t.exports=i(15)},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=j(i(33)),o=j(i(32)),l=j(i(31)),s=j(i(30)),c=j(i(29)),h=j(i(28)),u=j(i(27)),f=j(i(26)),A=j(i(25)),b=j(i(24)),v=j(i(23)),S=j(i(22)),O=j(i(21)),B=j(i(20)),T=j(i(19));function j(k){return k&&k.__esModule?k:{default:k}}var M={play:a.default,pause:o.default,volumeUp:l.default,volumeDown:s.default,volumeOff:c.default,orderRandom:h.default,orderList:u.default,menu:f.default,loopAll:A.default,loopOne:b.default,loopNone:v.default,loading:S.default,right:O.default,skip:B.default,lrc:T.default};r.default=M},function(t,r,i){var a,o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};a=function(){return this}();try{a=a||Function("return this")()||(0,eval)("this")}catch{(typeof window>"u"?"undefined":o(window))==="object"&&(a=window)}t.exports=a},function(t,r,i){var a,o,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s};(o=typeof(a=function(){if((typeof window>"u"?"undefined":l(window))==="object"&&document.querySelectorAll!==void 0&&window.pageYOffset!==void 0&&history.pushState!==void 0){var s=function(u,f,A,b){return A>b?f:u+(f-u)*((v=A/b)<.5?4*v*v*v:(v-1)*(2*v-2)*(2*v-2)+1);var v},c=function(u,f,A,b){f=f||500;var v=(b=b||window).scrollTop||window.pageYOffset;if(typeof u=="number")var S=parseInt(u);else var S=function(T,j){return T.nodeName==="HTML"?-j:T.getBoundingClientRect().top+j}(u,v);var O=Date.now(),B=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(T){window.setTimeout(T,15)};(function T(){var j=Date.now()-O;b!==window?b.scrollTop=s(v,S,j,f):window.scroll(0,s(v,S,j,f)),j>f?typeof A=="function"&&A(u):B(T)})()},h=function(u){if(!u.defaultPrevented){u.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var f=document.getElementById(this.hash.substring(1));if(!f)return;c(f,500,function(A){location.replace("#"+A.id)})}};return document.addEventListener("DOMContentLoaded",function(){for(var u,f=document.querySelectorAll('a[href^="#"]:not([href="#"])'),A=f.length;u=f[--A];)u.addEventListener("click",h,!1)}),c}})=="function"?a.call(r,i,r,t):a)===void 0||(t.exports=o)},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function u(f,A){for(var b=0;b<A.length;b++){var v=A[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(f,v.key,v)}}return function(f,A,b){return A&&u(f.prototype,A),b&&u(f,b),f}}(),o=c(i(1)),l=c(i(0)),s=c(i(5));function c(u){return u&&u.__esModule?u:{default:u}}var h=function(){function u(f){(function(A,b){if(!(A instanceof b))throw new TypeError("Cannot call a class as a function")})(this,u),this.player=f,this.index=0,this.audios=this.player.options.audio,this.bindEvents()}return a(u,[{key:"bindEvents",value:function(){var f=this;this.player.template.list.addEventListener("click",function(A){var b=void 0;b=A.target.tagName.toUpperCase()==="LI"?A.target:A.target.parentElement;var v=parseInt(b.getElementsByClassName("aplayer-list-index")[0].innerHTML)-1;v!==f.index?(f.switch(v),f.player.play()):f.player.toggle()})}},{key:"show",value:function(){this.player.events.trigger("listshow"),this.player.template.list.classList.remove("aplayer-list-hide"),this.player.template.listOl.scrollTop=33*this.index}},{key:"hide",value:function(){this.player.events.trigger("listhide"),this.player.template.list.classList.add("aplayer-list-hide")}},{key:"toggle",value:function(){this.player.template.list.classList.contains("aplayer-list-hide")?this.show():this.hide()}},{key:"add",value:function(f){this.player.events.trigger("listadd",{audios:f}),Object.prototype.toString.call(f)!=="[object Array]"&&(f=[f]),f.map(function(v){return v.name=v.name||v.title||"Audio name",v.artist=v.artist||v.author||"Audio artist",v.cover=v.cover||v.pic,v.type=v.type||"normal",v});var A=!(this.audios.length>1),b=this.audios.length===0;this.player.template.listOl.innerHTML+=(0,o.default)({theme:this.player.options.theme,audio:f,index:this.audios.length+1}),this.audios=this.audios.concat(f),A&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=l.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=f.theme||this.player.options.theme,b&&(this.player.options.order==="random"?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(f){if(this.player.events.trigger("listremove",{index:f}),this.audios[f])if(this.audios.length>1){var A=this.player.container.querySelectorAll(".aplayer-list li");A[f].remove(),this.audios.splice(f,1),this.player.lrc&&this.player.lrc.remove(f),f===this.index&&(this.audios[f]?this.switch(f):this.switch(f-1)),this.index>f&&this.index--;for(var b=f;b<A.length;b++)A[b].getElementsByClassName("aplayer-list-index")[0].textContent=b;this.audios.length===1&&this.player.container.classList.remove("aplayer-withlist"),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur")}else this.clear()}},{key:"switch",value:function(f){if(this.player.events.trigger("listswitch",{index:f}),f!==void 0&&this.audios[f]){this.index=f;var A=this.audios[this.index];this.player.template.pic.style.backgroundImage=A.cover?"url('"+A.cover+"')":"",this.player.theme(this.audios[this.index].theme||this.player.options.theme,this.index,!1),this.player.template.title.innerHTML=A.name,this.player.template.author.innerHTML=A.artist?" - "+A.artist:"";var b=this.player.container.getElementsByClassName("aplayer-list-light")[0];b&&b.classList.remove("aplayer-list-light"),this.player.container.querySelectorAll(".aplayer-list li")[this.index].classList.add("aplayer-list-light"),(0,s.default)(33*this.index,500,null,this.player.template.listOl),this.player.setAudio(A),this.player.lrc&&this.player.lrc.switch(this.index),this.player.lrc&&this.player.lrc.update(0),this.player.duration!==1&&(this.player.template.dtime.innerHTML=l.default.secondToTime(this.player.duration))}}},{key:"clear",value:function(){this.player.events.trigger("listclear"),this.index=0,this.player.container.classList.remove("aplayer-withlist"),this.player.pause(),this.audios=[],this.player.lrc&&this.player.lrc.clear(),this.player.audio.src="",this.player.template.listOl.innerHTML="",this.player.template.pic.style.backgroundImage="",this.player.theme(this.player.options.theme,this.index,!1),this.player.template.title.innerHTML="No audio",this.player.template.author.innerHTML="",this.player.bar.set("loaded",0,"width"),this.player.template.dtime.innerHTML=l.default.secondToTime(0)}}]),u}();r.default=h},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function l(s,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,u.key,u)}}return function(s,c,h){return c&&l(s.prototype,c),h&&l(s,h),s}}(),o=function(){function l(){(function(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")})(this,l),this.events={},this.audioEvents=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],this.playerEvents=["destroy","listshow","listhide","listadd","listremove","listswitch","listclear","noticeshow","noticehide","lrcshow","lrchide"]}return a(l,[{key:"on",value:function(s,c){this.type(s)&&typeof c=="function"&&(this.events[s]||(this.events[s]=[]),this.events[s].push(c))}},{key:"trigger",value:function(s,c){if(this.events[s]&&this.events[s].length)for(var h=0;h<this.events[s].length;h++)this.events[s][h](c)}},{key:"type",value:function(s){return this.playerEvents.indexOf(s)!==-1?"player":this.audioEvents.indexOf(s)!==-1?"audio":(console.error("Unknown event name: "+s),null)}}]),l}();r.default=o},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function l(s,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,u.key,u)}}return function(s,c,h){return c&&l(s.prototype,c),h&&l(s,h),s}}(),o=function(){function l(s){(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,l),this.player=s,window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(c){window.setTimeout(c,1e3/60)},this.types=["loading"],this.init()}return a(l,[{key:"init",value:function(){var s=this;this.types.forEach(function(c){s["init"+c+"Checker"]()})}},{key:"initloadingChecker",value:function(){var s=this,c=0,h=0,u=!1;this.loadingChecker=setInterval(function(){s.enableloadingChecker&&(h=s.player.audio.currentTime,u||h!==c||s.player.audio.paused||(s.player.container.classList.add("aplayer-loading"),u=!0),u&&h>c&&!s.player.audio.paused&&(s.player.container.classList.remove("aplayer-loading"),u=!1),c=h)},100)}},{key:"enable",value:function(s){this["enable"+s+"Checker"]=!0,s==="fps"&&this.initfpsChecker()}},{key:"disable",value:function(s){this["enable"+s+"Checker"]=!1}},{key:"destroy",value:function(){var s=this;this.types.forEach(function(c){s["enable"+c+"Checker"]=!1,s[c+"Checker"]&&clearInterval(s[c+"Checker"])})}}]),l}();r.default=o},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function h(u,f){for(var A=0;A<f.length;A++){var b=f[A];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(u,b.key,b)}}return function(u,f,A){return f&&h(u.prototype,f),A&&h(u,A),u}}(),o=s(i(0)),l=s(i(3));function s(h){return h&&h.__esModule?h:{default:h}}var c=function(){function h(u){(function(f,A){if(!(f instanceof A))throw new TypeError("Cannot call a class as a function")})(this,h),this.player=u,this.initPlayButton(),this.initPlayBar(),this.initOrderButton(),this.initLoopButton(),this.initMenuButton(),o.default.isMobile||this.initVolumeButton(),this.initMiniSwitcher(),this.initSkipButton(),this.initLrcButton()}return a(h,[{key:"initPlayButton",value:function(){var u=this;this.player.template.pic.addEventListener("click",function(){u.player.toggle()})}},{key:"initPlayBar",value:function(){var u=this,f=function(b){var v=((b.clientX||b.changedTouches[0].clientX)-o.default.getElementViewLeft(u.player.template.barWrap))/u.player.template.barWrap.clientWidth;v=Math.max(v,0),v=Math.min(v,1),u.player.bar.set("played",v,"width"),u.player.lrc&&u.player.lrc.update(v*u.player.duration),u.player.template.ptime.innerHTML=o.default.secondToTime(v*u.player.duration)},A=function b(v){document.removeEventListener(o.default.nameMap.dragEnd,b),document.removeEventListener(o.default.nameMap.dragMove,f);var S=((v.clientX||v.changedTouches[0].clientX)-o.default.getElementViewLeft(u.player.template.barWrap))/u.player.template.barWrap.clientWidth;S=Math.max(S,0),S=Math.min(S,1),u.player.bar.set("played",S,"width"),u.player.seek(u.player.bar.get("played","width")*u.player.duration),u.player.disableTimeupdate=!1};this.player.template.barWrap.addEventListener(o.default.nameMap.dragStart,function(){u.player.disableTimeupdate=!0,document.addEventListener(o.default.nameMap.dragMove,f),document.addEventListener(o.default.nameMap.dragEnd,A)})}},{key:"initVolumeButton",value:function(){var u=this;this.player.template.volumeButton.addEventListener("click",function(){u.player.audio.muted?(u.player.audio.muted=!1,u.player.switchVolumeIcon(),u.player.bar.set("volume",u.player.volume(),"height")):(u.player.audio.muted=!0,u.player.switchVolumeIcon(),u.player.bar.set("volume",0,"height"))});var f=function(b){var v=1-((b.clientY||b.changedTouches[0].clientY)-o.default.getElementViewTop(u.player.template.volumeBar,u.player.options.fixed))/u.player.template.volumeBar.clientHeight;v=Math.max(v,0),v=Math.min(v,1),u.player.volume(v)},A=function b(v){u.player.template.volumeBarWrap.classList.remove("aplayer-volume-bar-wrap-active"),document.removeEventListener(o.default.nameMap.dragEnd,b),document.removeEventListener(o.default.nameMap.dragMove,f);var S=1-((v.clientY||v.changedTouches[0].clientY)-o.default.getElementViewTop(u.player.template.volumeBar,u.player.options.fixed))/u.player.template.volumeBar.clientHeight;S=Math.max(S,0),S=Math.min(S,1),u.player.volume(S)};this.player.template.volumeBarWrap.addEventListener(o.default.nameMap.dragStart,function(){u.player.template.volumeBarWrap.classList.add("aplayer-volume-bar-wrap-active"),document.addEventListener(o.default.nameMap.dragMove,f),document.addEventListener(o.default.nameMap.dragEnd,A)})}},{key:"initOrderButton",value:function(){var u=this;this.player.template.order.addEventListener("click",function(){u.player.options.order==="list"?(u.player.options.order="random",u.player.template.order.innerHTML=l.default.orderRandom):u.player.options.order==="random"&&(u.player.options.order="list",u.player.template.order.innerHTML=l.default.orderList)})}},{key:"initLoopButton",value:function(){var u=this;this.player.template.loop.addEventListener("click",function(){u.player.list.audios.length>1?u.player.options.loop==="one"?(u.player.options.loop="none",u.player.template.loop.innerHTML=l.default.loopNone):u.player.options.loop==="none"?(u.player.options.loop="all",u.player.template.loop.innerHTML=l.default.loopAll):u.player.options.loop==="all"&&(u.player.options.loop="one",u.player.template.loop.innerHTML=l.default.loopOne):u.player.options.loop==="one"||u.player.options.loop==="all"?(u.player.options.loop="none",u.player.template.loop.innerHTML=l.default.loopNone):u.player.options.loop==="none"&&(u.player.options.loop="all",u.player.template.loop.innerHTML=l.default.loopAll)})}},{key:"initMenuButton",value:function(){var u=this;this.player.template.menu.addEventListener("click",function(){u.player.list.toggle()})}},{key:"initMiniSwitcher",value:function(){var u=this;this.player.template.miniSwitcher.addEventListener("click",function(){u.player.setMode(u.player.mode==="mini"?"normal":"mini")})}},{key:"initSkipButton",value:function(){var u=this;this.player.template.skipBackButton.addEventListener("click",function(){u.player.skipBack()}),this.player.template.skipForwardButton.addEventListener("click",function(){u.player.skipForward()}),this.player.template.skipPlayButton.addEventListener("click",function(){u.player.toggle()})}},{key:"initLrcButton",value:function(){var u=this;this.player.template.lrcButton.addEventListener("click",function(){u.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(u.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),u.player.lrc&&u.player.lrc.show()):(u.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),u.player.lrc&&u.player.lrc.hide())})}}]),h}();r.default=c},function(t,r,i){var a=i(2);t.exports=function(o){o=o||{};var l="",s=a.$each,c=o.lyrics,h=(o.$value,o.$index,a.$escape);return s(c,function(u,f){l+=`
70
+ `}),l}},function(t,r,i){t.exports=i(15)},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=j(i(33)),o=j(i(32)),l=j(i(31)),s=j(i(30)),c=j(i(29)),h=j(i(28)),u=j(i(27)),f=j(i(26)),A=j(i(25)),b=j(i(24)),v=j(i(23)),S=j(i(22)),O=j(i(21)),B=j(i(20)),_=j(i(19));function j(k){return k&&k.__esModule?k:{default:k}}var M={play:a.default,pause:o.default,volumeUp:l.default,volumeDown:s.default,volumeOff:c.default,orderRandom:h.default,orderList:u.default,menu:f.default,loopAll:A.default,loopOne:b.default,loopNone:v.default,loading:S.default,right:O.default,skip:B.default,lrc:_.default};r.default=M},function(t,r,i){var a,o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};a=function(){return this}();try{a=a||Function("return this")()||(0,eval)("this")}catch{(typeof window>"u"?"undefined":o(window))==="object"&&(a=window)}t.exports=a},function(t,r,i){var a,o,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s};(o=typeof(a=function(){if((typeof window>"u"?"undefined":l(window))==="object"&&document.querySelectorAll!==void 0&&window.pageYOffset!==void 0&&history.pushState!==void 0){var s=function(u,f,A,b){return A>b?f:u+(f-u)*((v=A/b)<.5?4*v*v*v:(v-1)*(2*v-2)*(2*v-2)+1);var v},c=function(u,f,A,b){f=f||500;var v=(b=b||window).scrollTop||window.pageYOffset;if(typeof u=="number")var S=parseInt(u);else var S=function(_,j){return _.nodeName==="HTML"?-j:_.getBoundingClientRect().top+j}(u,v);var O=Date.now(),B=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(_){window.setTimeout(_,15)};(function _(){var j=Date.now()-O;b!==window?b.scrollTop=s(v,S,j,f):window.scroll(0,s(v,S,j,f)),j>f?typeof A=="function"&&A(u):B(_)})()},h=function(u){if(!u.defaultPrevented){u.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var f=document.getElementById(this.hash.substring(1));if(!f)return;c(f,500,function(A){location.replace("#"+A.id)})}};return document.addEventListener("DOMContentLoaded",function(){for(var u,f=document.querySelectorAll('a[href^="#"]:not([href="#"])'),A=f.length;u=f[--A];)u.addEventListener("click",h,!1)}),c}})=="function"?a.call(r,i,r,t):a)===void 0||(t.exports=o)},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function u(f,A){for(var b=0;b<A.length;b++){var v=A[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(f,v.key,v)}}return function(f,A,b){return A&&u(f.prototype,A),b&&u(f,b),f}}(),o=c(i(1)),l=c(i(0)),s=c(i(5));function c(u){return u&&u.__esModule?u:{default:u}}var h=function(){function u(f){(function(A,b){if(!(A instanceof b))throw new TypeError("Cannot call a class as a function")})(this,u),this.player=f,this.index=0,this.audios=this.player.options.audio,this.bindEvents()}return a(u,[{key:"bindEvents",value:function(){var f=this;this.player.template.list.addEventListener("click",function(A){var b=void 0;b=A.target.tagName.toUpperCase()==="LI"?A.target:A.target.parentElement;var v=parseInt(b.getElementsByClassName("aplayer-list-index")[0].innerHTML)-1;v!==f.index?(f.switch(v),f.player.play()):f.player.toggle()})}},{key:"show",value:function(){this.player.events.trigger("listshow"),this.player.template.list.classList.remove("aplayer-list-hide"),this.player.template.listOl.scrollTop=33*this.index}},{key:"hide",value:function(){this.player.events.trigger("listhide"),this.player.template.list.classList.add("aplayer-list-hide")}},{key:"toggle",value:function(){this.player.template.list.classList.contains("aplayer-list-hide")?this.show():this.hide()}},{key:"add",value:function(f){this.player.events.trigger("listadd",{audios:f}),Object.prototype.toString.call(f)!=="[object Array]"&&(f=[f]),f.map(function(v){return v.name=v.name||v.title||"Audio name",v.artist=v.artist||v.author||"Audio artist",v.cover=v.cover||v.pic,v.type=v.type||"normal",v});var A=!(this.audios.length>1),b=this.audios.length===0;this.player.template.listOl.innerHTML+=(0,o.default)({theme:this.player.options.theme,audio:f,index:this.audios.length+1}),this.audios=this.audios.concat(f),A&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=l.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=f.theme||this.player.options.theme,b&&(this.player.options.order==="random"?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(f){if(this.player.events.trigger("listremove",{index:f}),this.audios[f])if(this.audios.length>1){var A=this.player.container.querySelectorAll(".aplayer-list li");A[f].remove(),this.audios.splice(f,1),this.player.lrc&&this.player.lrc.remove(f),f===this.index&&(this.audios[f]?this.switch(f):this.switch(f-1)),this.index>f&&this.index--;for(var b=f;b<A.length;b++)A[b].getElementsByClassName("aplayer-list-index")[0].textContent=b;this.audios.length===1&&this.player.container.classList.remove("aplayer-withlist"),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur")}else this.clear()}},{key:"switch",value:function(f){if(this.player.events.trigger("listswitch",{index:f}),f!==void 0&&this.audios[f]){this.index=f;var A=this.audios[this.index];this.player.template.pic.style.backgroundImage=A.cover?"url('"+A.cover+"')":"",this.player.theme(this.audios[this.index].theme||this.player.options.theme,this.index,!1),this.player.template.title.innerHTML=A.name,this.player.template.author.innerHTML=A.artist?" - "+A.artist:"";var b=this.player.container.getElementsByClassName("aplayer-list-light")[0];b&&b.classList.remove("aplayer-list-light"),this.player.container.querySelectorAll(".aplayer-list li")[this.index].classList.add("aplayer-list-light"),(0,s.default)(33*this.index,500,null,this.player.template.listOl),this.player.setAudio(A),this.player.lrc&&this.player.lrc.switch(this.index),this.player.lrc&&this.player.lrc.update(0),this.player.duration!==1&&(this.player.template.dtime.innerHTML=l.default.secondToTime(this.player.duration))}}},{key:"clear",value:function(){this.player.events.trigger("listclear"),this.index=0,this.player.container.classList.remove("aplayer-withlist"),this.player.pause(),this.audios=[],this.player.lrc&&this.player.lrc.clear(),this.player.audio.src="",this.player.template.listOl.innerHTML="",this.player.template.pic.style.backgroundImage="",this.player.theme(this.player.options.theme,this.index,!1),this.player.template.title.innerHTML="No audio",this.player.template.author.innerHTML="",this.player.bar.set("loaded",0,"width"),this.player.template.dtime.innerHTML=l.default.secondToTime(0)}}]),u}();r.default=h},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function l(s,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,u.key,u)}}return function(s,c,h){return c&&l(s.prototype,c),h&&l(s,h),s}}(),o=function(){function l(){(function(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")})(this,l),this.events={},this.audioEvents=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],this.playerEvents=["destroy","listshow","listhide","listadd","listremove","listswitch","listclear","noticeshow","noticehide","lrcshow","lrchide"]}return a(l,[{key:"on",value:function(s,c){this.type(s)&&typeof c=="function"&&(this.events[s]||(this.events[s]=[]),this.events[s].push(c))}},{key:"trigger",value:function(s,c){if(this.events[s]&&this.events[s].length)for(var h=0;h<this.events[s].length;h++)this.events[s][h](c)}},{key:"type",value:function(s){return this.playerEvents.indexOf(s)!==-1?"player":this.audioEvents.indexOf(s)!==-1?"audio":(console.error("Unknown event name: "+s),null)}}]),l}();r.default=o},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function l(s,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,u.key,u)}}return function(s,c,h){return c&&l(s.prototype,c),h&&l(s,h),s}}(),o=function(){function l(s){(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,l),this.player=s,window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(c){window.setTimeout(c,1e3/60)},this.types=["loading"],this.init()}return a(l,[{key:"init",value:function(){var s=this;this.types.forEach(function(c){s["init"+c+"Checker"]()})}},{key:"initloadingChecker",value:function(){var s=this,c=0,h=0,u=!1;this.loadingChecker=setInterval(function(){s.enableloadingChecker&&(h=s.player.audio.currentTime,u||h!==c||s.player.audio.paused||(s.player.container.classList.add("aplayer-loading"),u=!0),u&&h>c&&!s.player.audio.paused&&(s.player.container.classList.remove("aplayer-loading"),u=!1),c=h)},100)}},{key:"enable",value:function(s){this["enable"+s+"Checker"]=!0,s==="fps"&&this.initfpsChecker()}},{key:"disable",value:function(s){this["enable"+s+"Checker"]=!1}},{key:"destroy",value:function(){var s=this;this.types.forEach(function(c){s["enable"+c+"Checker"]=!1,s[c+"Checker"]&&clearInterval(s[c+"Checker"])})}}]),l}();r.default=o},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function h(u,f){for(var A=0;A<f.length;A++){var b=f[A];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(u,b.key,b)}}return function(u,f,A){return f&&h(u.prototype,f),A&&h(u,A),u}}(),o=s(i(0)),l=s(i(3));function s(h){return h&&h.__esModule?h:{default:h}}var c=function(){function h(u){(function(f,A){if(!(f instanceof A))throw new TypeError("Cannot call a class as a function")})(this,h),this.player=u,this.initPlayButton(),this.initPlayBar(),this.initOrderButton(),this.initLoopButton(),this.initMenuButton(),o.default.isMobile||this.initVolumeButton(),this.initMiniSwitcher(),this.initSkipButton(),this.initLrcButton()}return a(h,[{key:"initPlayButton",value:function(){var u=this;this.player.template.pic.addEventListener("click",function(){u.player.toggle()})}},{key:"initPlayBar",value:function(){var u=this,f=function(b){var v=((b.clientX||b.changedTouches[0].clientX)-o.default.getElementViewLeft(u.player.template.barWrap))/u.player.template.barWrap.clientWidth;v=Math.max(v,0),v=Math.min(v,1),u.player.bar.set("played",v,"width"),u.player.lrc&&u.player.lrc.update(v*u.player.duration),u.player.template.ptime.innerHTML=o.default.secondToTime(v*u.player.duration)},A=function b(v){document.removeEventListener(o.default.nameMap.dragEnd,b),document.removeEventListener(o.default.nameMap.dragMove,f);var S=((v.clientX||v.changedTouches[0].clientX)-o.default.getElementViewLeft(u.player.template.barWrap))/u.player.template.barWrap.clientWidth;S=Math.max(S,0),S=Math.min(S,1),u.player.bar.set("played",S,"width"),u.player.seek(u.player.bar.get("played","width")*u.player.duration),u.player.disableTimeupdate=!1};this.player.template.barWrap.addEventListener(o.default.nameMap.dragStart,function(){u.player.disableTimeupdate=!0,document.addEventListener(o.default.nameMap.dragMove,f),document.addEventListener(o.default.nameMap.dragEnd,A)})}},{key:"initVolumeButton",value:function(){var u=this;this.player.template.volumeButton.addEventListener("click",function(){u.player.audio.muted?(u.player.audio.muted=!1,u.player.switchVolumeIcon(),u.player.bar.set("volume",u.player.volume(),"height")):(u.player.audio.muted=!0,u.player.switchVolumeIcon(),u.player.bar.set("volume",0,"height"))});var f=function(b){var v=1-((b.clientY||b.changedTouches[0].clientY)-o.default.getElementViewTop(u.player.template.volumeBar,u.player.options.fixed))/u.player.template.volumeBar.clientHeight;v=Math.max(v,0),v=Math.min(v,1),u.player.volume(v)},A=function b(v){u.player.template.volumeBarWrap.classList.remove("aplayer-volume-bar-wrap-active"),document.removeEventListener(o.default.nameMap.dragEnd,b),document.removeEventListener(o.default.nameMap.dragMove,f);var S=1-((v.clientY||v.changedTouches[0].clientY)-o.default.getElementViewTop(u.player.template.volumeBar,u.player.options.fixed))/u.player.template.volumeBar.clientHeight;S=Math.max(S,0),S=Math.min(S,1),u.player.volume(S)};this.player.template.volumeBarWrap.addEventListener(o.default.nameMap.dragStart,function(){u.player.template.volumeBarWrap.classList.add("aplayer-volume-bar-wrap-active"),document.addEventListener(o.default.nameMap.dragMove,f),document.addEventListener(o.default.nameMap.dragEnd,A)})}},{key:"initOrderButton",value:function(){var u=this;this.player.template.order.addEventListener("click",function(){u.player.options.order==="list"?(u.player.options.order="random",u.player.template.order.innerHTML=l.default.orderRandom):u.player.options.order==="random"&&(u.player.options.order="list",u.player.template.order.innerHTML=l.default.orderList)})}},{key:"initLoopButton",value:function(){var u=this;this.player.template.loop.addEventListener("click",function(){u.player.list.audios.length>1?u.player.options.loop==="one"?(u.player.options.loop="none",u.player.template.loop.innerHTML=l.default.loopNone):u.player.options.loop==="none"?(u.player.options.loop="all",u.player.template.loop.innerHTML=l.default.loopAll):u.player.options.loop==="all"&&(u.player.options.loop="one",u.player.template.loop.innerHTML=l.default.loopOne):u.player.options.loop==="one"||u.player.options.loop==="all"?(u.player.options.loop="none",u.player.template.loop.innerHTML=l.default.loopNone):u.player.options.loop==="none"&&(u.player.options.loop="all",u.player.template.loop.innerHTML=l.default.loopAll)})}},{key:"initMenuButton",value:function(){var u=this;this.player.template.menu.addEventListener("click",function(){u.player.list.toggle()})}},{key:"initMiniSwitcher",value:function(){var u=this;this.player.template.miniSwitcher.addEventListener("click",function(){u.player.setMode(u.player.mode==="mini"?"normal":"mini")})}},{key:"initSkipButton",value:function(){var u=this;this.player.template.skipBackButton.addEventListener("click",function(){u.player.skipBack()}),this.player.template.skipForwardButton.addEventListener("click",function(){u.player.skipForward()}),this.player.template.skipPlayButton.addEventListener("click",function(){u.player.toggle()})}},{key:"initLrcButton",value:function(){var u=this;this.player.template.lrcButton.addEventListener("click",function(){u.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(u.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),u.player.lrc&&u.player.lrc.show()):(u.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),u.player.lrc&&u.player.lrc.hide())})}}]),h}();r.default=c},function(t,r,i){var a=i(2);t.exports=function(o){o=o||{};var l="",s=a.$each,c=o.lyrics,h=(o.$value,o.$index,a.$escape);return s(c,function(u,f){l+=`
71
71
  <p`,f===0&&(l+=' class="aplayer-lrc-current"'),l+=">",l+=h(u[1]),l+=`</p>
72
72
  `}),l}},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a,o=function(){function h(u,f){for(var A=0;A<f.length;A++){var b=f[A];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(u,b.key,b)}}return function(u,f,A){return f&&h(u.prototype,f),A&&h(u,A),u}}(),l=i(10),s=(a=l)&&a.__esModule?a:{default:a},c=function(){function h(u){(function(f,A){if(!(f instanceof A))throw new TypeError("Cannot call a class as a function")})(this,h),this.container=u.container,this.async=u.async,this.player=u.player,this.parsed=[],this.index=0,this.current=[]}return o(h,[{key:"show",value:function(){this.player.events.trigger("lrcshow"),this.player.template.lrcWrap.classList.remove("aplayer-lrc-hide")}},{key:"hide",value:function(){this.player.events.trigger("lrchide"),this.player.template.lrcWrap.classList.add("aplayer-lrc-hide")}},{key:"toggle",value:function(){this.player.template.lrcWrap.classList.contains("aplayer-lrc-hide")?this.show():this.hide()}},{key:"update",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||u<this.current[this.index][0]||!this.current[this.index+1]||u>=this.current[this.index+1][0])for(var f=0;f<this.current.length;f++)u>=this.current[f][0]&&(!this.current[f+1]||u<this.current[f+1][0])&&(this.index=f,this.container.style.transform="translateY("+16*-this.index+"px)",this.container.style.webkitTransform="translateY("+16*-this.index+"px)",this.container.getElementsByClassName("aplayer-lrc-current")[0].classList.remove("aplayer-lrc-current"),this.container.getElementsByTagName("p")[f].classList.add("aplayer-lrc-current"))}},{key:"switch",value:function(u){var f=this;if(!this.parsed[u])if(this.async){this.parsed[u]=[["00:00","Loading"]];var A=new XMLHttpRequest;A.onreadystatechange=function(){u===f.player.list.index&&A.readyState===4&&(A.status>=200&&A.status<300||A.status===304?f.parsed[u]=f.parse(A.responseText):(f.player.notice("LRC file request fails: status "+A.status),f.parsed[u]=[["00:00","Not available"]]),f.container.innerHTML=(0,s.default)({lyrics:f.parsed[u]}),f.update(0),f.current=f.parsed[u])};var b=this.player.list.audios[u].lrc;A.open("get",b,!0),A.send(null)}else this.player.list.audios[u].lrc?this.parsed[u]=this.parse(this.player.list.audios[u].lrc):this.parsed[u]=[["00:00","Not available"]];this.container.innerHTML=(0,s.default)({lyrics:this.parsed[u]}),this.update(0),this.current=this.parsed[u]}},{key:"parse",value:function(u){if(u){for(var f=(u=u.replace(/([^\]^\n])\[/g,function(k,F){return F+`
73
73
  [`})).split(`
74
- `),A=[],b=f.length,v=0;v<b;v++){var S=f[v].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g),O=f[v].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(S)for(var B=S.length,T=0;T<B;T++){var j=/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/.exec(S[T]),M=60*j[1]+parseInt(j[2])+(j[4]?parseInt(j[4])/((j[4]+"").length===2?100:1e3):0);A.push([M,O])}}return(A=A.filter(function(k){return k[1]})).sort(function(k,F){return k[0]-F[0]}),A}return[]}},{key:"remove",value:function(u){this.parsed.splice(u,1)}},{key:"clear",value:function(){this.parsed=[],this.container.innerHTML=""}}]),h}();r.default=c},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a,o=function(){function h(u,f){for(var A=0;A<f.length;A++){var b=f[A];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(u,b.key,b)}}return function(u,f,A){return f&&h(u.prototype,f),A&&h(u,A),u}}(),l=i(0),s=(a=l)&&a.__esModule?a:{default:a},c=function(){function h(u){(function(f,A){if(!(f instanceof A))throw new TypeError("Cannot call a class as a function")})(this,h),this.storageName=u.options.storageName,this.data=JSON.parse(s.default.storage.get(this.storageName)),this.data||(this.data={}),this.data.volume=this.data.volume||u.options.volume}return o(h,[{key:"get",value:function(u){return this.data[u]}},{key:"set",value:function(u,f){this.data[u]=f,s.default.storage.set(this.storageName,JSON.stringify(this.data))}}]),h}();r.default=c},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function l(s,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,u.key,u)}}return function(s,c,h){return c&&l(s.prototype,c),h&&l(s,h),s}}(),o=function(){function l(s){(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,l),this.elements={},this.elements.volume=s.volume,this.elements.played=s.played,this.elements.loaded=s.loaded}return a(l,[{key:"set",value:function(s,c,h){c=Math.max(c,0),c=Math.min(c,1),this.elements[s].style[h]=100*c+"%"}},{key:"get",value:function(s,c){return parseFloat(this.elements[s].style[c])/100}}]),l}();r.default=o},function(t,r,i){(function(a){t.exports=!1;try{t.exports=Object.prototype.toString.call(a.process)==="[object process]"}catch{}}).call(this,i(4))},function(t,r,i){(function(a){var o=i(14),l=Object.create(o?a:window),s=/["&'<>]/;l.$escape=function(c){return function(h){var u=""+h,f=s.exec(u);if(!f)return h;var A="",b=void 0,v=void 0,S=void 0;for(b=f.index,v=0;b<u.length;b++){switch(u.charCodeAt(b)){case 34:S="&#34;";break;case 38:S="&#38;";break;case 39:S="&#39;";break;case 60:S="&#60;";break;case 62:S="&#62;";break;default:continue}v!==b&&(A+=u.substring(v,b)),v=b+1,A+=S}return v!==b?A+u.substring(v,b):A}(function h(u){return typeof u!="string"&&(u=u==null?"":typeof u=="function"?h(u.call(u)):JSON.stringify(u)),u}(c))},l.$each=function(c,h){if(Array.isArray(c))for(var u=0,f=c.length;u<f;u++)h(c[u],u);else for(var A in c)h(c[A],A)},t.exports=l}).call(this,i(4))},function(t,r,i){var a=i(2);t.exports=function(o){var l="",s=(o=o||{}).options,c=o.cover,h=a.$escape,u=o.icons,f=function(b){return l+=b},A=o.getObject;return o.theme,o.audio,o.index,s.fixed?(l+=`
74
+ `),A=[],b=f.length,v=0;v<b;v++){var S=f[v].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g),O=f[v].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(S)for(var B=S.length,_=0;_<B;_++){var j=/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/.exec(S[_]),M=60*j[1]+parseInt(j[2])+(j[4]?parseInt(j[4])/((j[4]+"").length===2?100:1e3):0);A.push([M,O])}}return(A=A.filter(function(k){return k[1]})).sort(function(k,F){return k[0]-F[0]}),A}return[]}},{key:"remove",value:function(u){this.parsed.splice(u,1)}},{key:"clear",value:function(){this.parsed=[],this.container.innerHTML=""}}]),h}();r.default=c},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a,o=function(){function h(u,f){for(var A=0;A<f.length;A++){var b=f[A];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(u,b.key,b)}}return function(u,f,A){return f&&h(u.prototype,f),A&&h(u,A),u}}(),l=i(0),s=(a=l)&&a.__esModule?a:{default:a},c=function(){function h(u){(function(f,A){if(!(f instanceof A))throw new TypeError("Cannot call a class as a function")})(this,h),this.storageName=u.options.storageName,this.data=JSON.parse(s.default.storage.get(this.storageName)),this.data||(this.data={}),this.data.volume=this.data.volume||u.options.volume}return o(h,[{key:"get",value:function(u){return this.data[u]}},{key:"set",value:function(u,f){this.data[u]=f,s.default.storage.set(this.storageName,JSON.stringify(this.data))}}]),h}();r.default=c},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function l(s,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,u.key,u)}}return function(s,c,h){return c&&l(s.prototype,c),h&&l(s,h),s}}(),o=function(){function l(s){(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,l),this.elements={},this.elements.volume=s.volume,this.elements.played=s.played,this.elements.loaded=s.loaded}return a(l,[{key:"set",value:function(s,c,h){c=Math.max(c,0),c=Math.min(c,1),this.elements[s].style[h]=100*c+"%"}},{key:"get",value:function(s,c){return parseFloat(this.elements[s].style[c])/100}}]),l}();r.default=o},function(t,r,i){(function(a){t.exports=!1;try{t.exports=Object.prototype.toString.call(a.process)==="[object process]"}catch{}}).call(this,i(4))},function(t,r,i){(function(a){var o=i(14),l=Object.create(o?a:window),s=/["&'<>]/;l.$escape=function(c){return function(h){var u=""+h,f=s.exec(u);if(!f)return h;var A="",b=void 0,v=void 0,S=void 0;for(b=f.index,v=0;b<u.length;b++){switch(u.charCodeAt(b)){case 34:S="&#34;";break;case 38:S="&#38;";break;case 39:S="&#39;";break;case 60:S="&#60;";break;case 62:S="&#62;";break;default:continue}v!==b&&(A+=u.substring(v,b)),v=b+1,A+=S}return v!==b?A+u.substring(v,b):A}(function h(u){return typeof u!="string"&&(u=u==null?"":typeof u=="function"?h(u.call(u)):JSON.stringify(u)),u}(c))},l.$each=function(c,h){if(Array.isArray(c))for(var u=0,f=c.length;u<f;u++)h(c[u],u);else for(var A in c)h(c[A],A)},t.exports=l}).call(this,i(4))},function(t,r,i){var a=i(2);t.exports=function(o){var l="",s=(o=o||{}).options,c=o.cover,h=a.$escape,u=o.icons,f=function(b){return l+=b},A=o.getObject;return o.theme,o.audio,o.index,s.fixed?(l+=`
75
75
  <div class="aplayer-list`,s.listFolded&&(l+=" aplayer-list-hide"),l+='"',s.listMaxHeight&&(l+=' style="max-height: ',l+=h(s.listMaxHeight),l+='"'),l+=`>
76
76
  <ol`,s.listMaxHeight&&(l+=' style="max-height: ',l+=h(s.listMaxHeight),l+='"'),l+=`>
77
77
  `,f(i(1)(A({theme:s.theme,audio:s.audio,index:1}))),l+=`
@@ -211,9 +211,9 @@ Avoid returning a new reference inside your input selector, e.g.
211
211
  `,f(i(1)(A({theme:s.theme,audio:s.audio,index:1}))),l+=`
212
212
  </ol>
213
213
  </div>
214
- `),l}},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function h(u,f){for(var A=0;A<f.length;A++){var b=f[A];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(u,b.key,b)}}return function(u,f,A){return f&&h(u.prototype,f),A&&h(u,A),u}}(),o=s(i(3)),l=s(i(16));function s(h){return h&&h.__esModule?h:{default:h}}var c=function(){function h(u){(function(f,A){if(!(f instanceof A))throw new TypeError("Cannot call a class as a function")})(this,h),this.container=u.container,this.options=u.options,this.randomOrder=u.randomOrder,this.init()}return a(h,[{key:"init",value:function(){var u="";this.options.audio.length&&(u=this.options.order==="random"?this.options.audio[this.randomOrder[0]].cover:this.options.audio[0].cover),this.container.innerHTML=(0,l.default)({options:this.options,icons:o.default,cover:u,getObject:function(f){return f}}),this.lrc=this.container.querySelector(".aplayer-lrc-contents"),this.lrcWrap=this.container.querySelector(".aplayer-lrc"),this.ptime=this.container.querySelector(".aplayer-ptime"),this.info=this.container.querySelector(".aplayer-info"),this.time=this.container.querySelector(".aplayer-time"),this.barWrap=this.container.querySelector(".aplayer-bar-wrap"),this.button=this.container.querySelector(".aplayer-button"),this.body=this.container.querySelector(".aplayer-body"),this.list=this.container.querySelector(".aplayer-list"),this.listOl=this.container.querySelector(".aplayer-list ol"),this.listCurs=this.container.querySelectorAll(".aplayer-list-cur"),this.played=this.container.querySelector(".aplayer-played"),this.loaded=this.container.querySelector(".aplayer-loaded"),this.thumb=this.container.querySelector(".aplayer-thumb"),this.volume=this.container.querySelector(".aplayer-volume"),this.volumeBar=this.container.querySelector(".aplayer-volume-bar"),this.volumeButton=this.container.querySelector(".aplayer-time button"),this.volumeBarWrap=this.container.querySelector(".aplayer-volume-bar-wrap"),this.loop=this.container.querySelector(".aplayer-icon-loop"),this.order=this.container.querySelector(".aplayer-icon-order"),this.menu=this.container.querySelector(".aplayer-icon-menu"),this.pic=this.container.querySelector(".aplayer-pic"),this.title=this.container.querySelector(".aplayer-title"),this.author=this.container.querySelector(".aplayer-author"),this.dtime=this.container.querySelector(".aplayer-dtime"),this.notice=this.container.querySelector(".aplayer-notice"),this.miniSwitcher=this.container.querySelector(".aplayer-miniswitcher"),this.skipBackButton=this.container.querySelector(".aplayer-icon-back"),this.skipForwardButton=this.container.querySelector(".aplayer-icon-forward"),this.skipPlayButton=this.container.querySelector(".aplayer-icon-play"),this.lrcButton=this.container.querySelector(".aplayer-icon-lrc")}}]),h}();r.default=c},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(a){var o={container:a.element||document.getElementsByClassName("aplayer")[0],mini:a.narrow||a.fixed||!1,fixed:!1,autoplay:!1,mutex:!0,lrcType:a.showlrc||a.lrc||0,preload:"auto",theme:"#b7daff",loop:"all",order:"list",volume:.7,listFolded:a.fixed,listMaxHeight:a.listmaxheight||"250px",audio:a.music||[],storageName:"aplayer-setting"};for(var l in o)o.hasOwnProperty(l)&&!a.hasOwnProperty(l)&&(a[l]=o[l]);return Object.prototype.toString.call(a.audio)!=="[object Array]"&&(a.audio=[a.audio]),a.audio.map(function(s){return s.name=s.name||s.title||"Audio name",s.artist=s.artist||s.author||"Audio artist",s.cover=s.cover||s.pic,s.type=s.type||"normal",s}),a.audio.length<=1&&a.loop==="one"&&(a.loop="all"),a}},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M26.667 5.333h-21.333c-0 0-0.001 0-0.001 0-1.472 0-2.666 1.194-2.666 2.666 0 0 0 0.001 0 0.001v-0 16c0 0 0 0.001 0 0.001 0 1.472 1.194 2.666 2.666 2.666 0 0 0.001 0 0.001 0h21.333c0 0 0.001 0 0.001 0 1.472 0 2.666-1.194 2.666-2.666 0-0 0-0.001 0-0.001v0-16c0-0 0-0.001 0-0.001 0-1.472-1.194-2.666-2.666-2.666-0 0-0.001 0-0.001 0h0zM5.333 16h5.333v2.667h-5.333v-2.667zM18.667 24h-13.333v-2.667h13.333v2.667zM26.667 24h-5.333v-2.667h5.333v2.667zM26.667 18.667h-13.333v-2.667h13.333v2.667z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M25.468 6.947c-0.326-0.172-0.724-0.151-1.030 0.057l-6.438 4.38v-3.553c0-0.371-0.205-0.71-0.532-0.884-0.326-0.172-0.724-0.151-1.030 0.057l-12 8.164c-0.274 0.186-0.438 0.496-0.438 0.827s0.164 0.641 0.438 0.827l12 8.168c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-3.556l6.438 4.382c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-16.333c0-0.371-0.205-0.71-0.532-0.884z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22 16l-10.105-10.6-1.895 1.987 8.211 8.613-8.211 8.612 1.895 1.988 8.211-8.613z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M4 16c0-6.6 5.4-12 12-12s12 5.4 12 12c0 1.2-0.8 2-2 2s-2-0.8-2-2c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8c1.2 0 2 0.8 2 2s-0.8 2-2 2c-6.6 0-12-5.4-12-12z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M2.667 7.027l1.707-1.693 22.293 22.293-1.693 1.707-4-4h-11.64v4l-5.333-5.333 5.333-5.333v4h8.973l-8.973-8.973v0.973h-2.667v-3.64l-4-4zM22.667 17.333h2.667v5.573l-2.667-2.667v-2.907zM22.667 6.667v-4l5.333 5.333-5.333 5.333v-4h-10.907l-2.667-2.667h13.573z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 33 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333zM17.333 20v-8h-1.333l-2.667 1.333v1.333h2v5.333h2z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 22 32"><path d="M20.8 14.4q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2zM1.6 11.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2zM20.8 20.8q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M0.622 18.334h19.54v7.55l11.052-9.412-11.052-9.413v7.549h-19.54v3.725z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22.667 4l7 6-7 6 7 6-7 6v-4h-3.653l-3.76-3.76 2.827-2.827 2.587 2.587h2v-8h-2l-12 12h-6v-4h4.347l12-12h3.653v-4zM2.667 8h6l3.76 3.76-2.827 2.827-2.587-2.587h-4.347v-4z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528zM25.152 16q0 2.72-1.536 5.056t-4 3.36q-0.256 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.704 0.672-1.056 1.024-0.512 1.376-0.8 1.312-0.96 2.048-2.4t0.736-3.104-0.736-3.104-2.048-2.4q-0.352-0.288-1.376-0.8-0.672-0.352-0.672-1.056 0-0.448 0.32-0.8t0.8-0.352q0.224 0 0.48 0.096 2.496 1.056 4 3.36t1.536 5.056zM29.728 16q0 4.096-2.272 7.552t-6.048 5.056q-0.224 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.64 0.704-1.056 0.128-0.064 0.384-0.192t0.416-0.192q0.8-0.448 1.44-0.896 2.208-1.632 3.456-4.064t1.216-5.152-1.216-5.152-3.456-4.064q-0.64-0.448-1.44-0.896-0.128-0.096-0.416-0.192t-0.384-0.192q-0.704-0.416-0.704-1.056 0-0.448 0.32-0.8t0.832-0.352q0.224 0 0.448 0.096 3.776 1.632 6.048 5.056t2.272 7.552z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 17 32"><path d="M14.080 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048zM2.88 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 31"><path d="M15.552 15.168q0.448 0.32 0.448 0.832 0 0.448-0.448 0.768l-13.696 8.512q-0.768 0.512-1.312 0.192t-0.544-1.28v-16.448q0-0.96 0.544-1.28t1.312 0.192z"></path></svg>'},function(t,r,i){var a,o,l=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function h(T){if(a===setTimeout)return setTimeout(T,0);if((a===s||!a)&&setTimeout)return a=setTimeout,setTimeout(T,0);try{return a(T,0)}catch{try{return a.call(null,T,0)}catch{return a.call(this,T,0)}}}(function(){try{a=typeof setTimeout=="function"?setTimeout:s}catch{a=s}try{o=typeof clearTimeout=="function"?clearTimeout:c}catch{o=c}})();var u,f=[],A=!1,b=-1;function v(){A&&u&&(A=!1,u.length?f=u.concat(f):b=-1,f.length&&S())}function S(){if(!A){var T=h(v);A=!0;for(var j=f.length;j;){for(u=f,f=[];++b<j;)u&&u[b].run();b=-1,j=f.length}u=null,A=!1,function(M){if(o===clearTimeout)return clearTimeout(M);if((o===c||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(M);try{o(M)}catch{try{return o.call(null,M)}catch{return o.call(this,M)}}}(T)}}function O(T,j){this.fun=T,this.array=j}function B(){}l.nextTick=function(T){var j=new Array(arguments.length-1);if(arguments.length>1)for(var M=1;M<arguments.length;M++)j[M-1]=arguments[M];f.push(new O(T,j)),f.length!==1||A||h(S)},O.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=B,l.addListener=B,l.once=B,l.off=B,l.removeListener=B,l.removeAllListeners=B,l.emit=B,l.prependListener=B,l.prependOnceListener=B,l.listeners=function(T){return[]},l.binding=function(T){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(T){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,r,i){(function(a,o){(function(l,s){if(!l.setImmediate){var c,h,u,f,A,b=1,v={},S=!1,O=l.document,B=Object.getPrototypeOf&&Object.getPrototypeOf(l);B=B&&B.setTimeout?B:l,{}.toString.call(l.process)==="[object process]"?c=function(M){o.nextTick(function(){j(M)})}:function(){if(l.postMessage&&!l.importScripts){var M=!0,k=l.onmessage;return l.onmessage=function(){M=!1},l.postMessage("","*"),l.onmessage=k,M}}()?(f="setImmediate$"+Math.random()+"$",A=function(M){M.source===l&&typeof M.data=="string"&&M.data.indexOf(f)===0&&j(+M.data.slice(f.length))},l.addEventListener?l.addEventListener("message",A,!1):l.attachEvent("onmessage",A),c=function(M){l.postMessage(f+M,"*")}):l.MessageChannel?((u=new MessageChannel).port1.onmessage=function(M){j(M.data)},c=function(M){u.port2.postMessage(M)}):O&&"onreadystatechange"in O.createElement("script")?(h=O.documentElement,c=function(M){var k=O.createElement("script");k.onreadystatechange=function(){j(M),k.onreadystatechange=null,h.removeChild(k),k=null},h.appendChild(k)}):c=function(M){setTimeout(j,0,M)},B.setImmediate=function(M){typeof M!="function"&&(M=new Function(""+M));for(var k=new Array(arguments.length-1),F=0;F<k.length;F++)k[F]=arguments[F+1];var W={callback:M,args:k};return v[b]=W,c(b),b++},B.clearImmediate=T}function T(M){delete v[M]}function j(M){if(S)setTimeout(j,0,M);else{var k=v[M];if(k){S=!0;try{(function(F){var W=F.callback,ne=F.args;switch(ne.length){case 0:W();break;case 1:W(ne[0]);break;case 2:W(ne[0],ne[1]);break;case 3:W(ne[0],ne[1],ne[2]);break;default:W.apply(s,ne)}})(k)}finally{T(M),S=!1}}}}})(typeof self>"u"?a===void 0?void 0:a:self)}).call(this,i(4),i(34))},function(t,r,i){var a=Function.prototype.apply;function o(l,s){this._id=l,this._clearFn=s}r.setTimeout=function(){return new o(a.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new o(a.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(l){l&&l.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(l,s){clearTimeout(l._idleTimeoutId),l._idleTimeout=s},r.unenroll=function(l){clearTimeout(l._idleTimeoutId),l._idleTimeout=-1},r._unrefActive=r.active=function(l){clearTimeout(l._idleTimeoutId);var s=l._idleTimeout;s>=0&&(l._idleTimeoutId=setTimeout(function(){l._onTimeout&&l._onTimeout()},s))},i(35),r.setImmediate=setImmediate,r.clearImmediate=clearImmediate},function(t,r,i){(function(a){var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},l=setTimeout;function s(){}function c(v){if(!(this instanceof c))throw new TypeError("Promises must be constructed via new");if(typeof v!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],b(v,this)}function h(v,S){for(;v._state===3;)v=v._value;v._state!==0?(v._handled=!0,c._immediateFn(function(){var O=v._state===1?S.onFulfilled:S.onRejected;if(O!==null){var B;try{B=O(v._value)}catch(T){return void f(S.promise,T)}u(S.promise,B)}else(v._state===1?u:f)(S.promise,v._value)})):v._deferreds.push(S)}function u(v,S){try{if(S===v)throw new TypeError("A promise cannot be resolved with itself.");if(S&&((S===void 0?"undefined":o(S))==="object"||typeof S=="function")){var O=S.then;if(S instanceof c)return v._state=3,v._value=S,void A(v);if(typeof O=="function")return void b((B=O,T=S,function(){B.apply(T,arguments)}),v)}v._state=1,v._value=S,A(v)}catch(j){f(v,j)}var B,T}function f(v,S){v._state=2,v._value=S,A(v)}function A(v){v._state===2&&v._deferreds.length===0&&c._immediateFn(function(){v._handled||c._unhandledRejectionFn(v._value)});for(var S=0,O=v._deferreds.length;S<O;S++)h(v,v._deferreds[S]);v._deferreds=null}function b(v,S){var O=!1;try{v(function(B){O||(O=!0,u(S,B))},function(B){O||(O=!0,f(S,B))})}catch(B){if(O)return;O=!0,f(S,B)}}c.prototype.catch=function(v){return this.then(null,v)},c.prototype.then=function(v,S){var O=new this.constructor(s);return h(this,new function(B,T,j){this.onFulfilled=typeof B=="function"?B:null,this.onRejected=typeof T=="function"?T:null,this.promise=j}(v,S,O)),O},c.prototype.finally=function(v){var S=this.constructor;return this.then(function(O){return S.resolve(v()).then(function(){return O})},function(O){return S.resolve(v()).then(function(){return S.reject(O)})})},c.all=function(v){return new c(function(S,O){if(!v||v.length===void 0)throw new TypeError("Promise.all accepts an array");var B=Array.prototype.slice.call(v);if(B.length===0)return S([]);var T=B.length;function j(k,F){try{if(F&&((F===void 0?"undefined":o(F))==="object"||typeof F=="function")){var W=F.then;if(typeof W=="function")return void W.call(F,function(ne){j(k,ne)},O)}B[k]=F,--T==0&&S(B)}catch(ne){O(ne)}}for(var M=0;M<B.length;M++)j(M,B[M])})},c.resolve=function(v){return v&&(v===void 0?"undefined":o(v))==="object"&&v.constructor===c?v:new c(function(S){S(v)})},c.reject=function(v){return new c(function(S,O){O(v)})},c.race=function(v){return new c(function(S,O){for(var B=0,T=v.length;B<T;B++)v[B].then(S,O)})},c._immediateFn=typeof a=="function"&&function(v){a(v)}||function(v){l(v,0)},c._unhandledRejectionFn=function(v){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",v)},t.exports=c}).call(this,i(36).setImmediate)},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function M(k,F){for(var W=0;W<F.length;W++){var ne=F[W];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(k,ne.key,ne)}}return function(k,F,W){return F&&M(k.prototype,F),W&&M(k,W),k}}(),o=B(i(37)),l=B(i(0)),s=B(i(3)),c=B(i(18)),h=B(i(17)),u=B(i(13)),f=B(i(12)),A=B(i(11)),b=B(i(9)),v=B(i(8)),S=B(i(7)),O=B(i(6));function B(M){return M&&M.__esModule?M:{default:M}}var T=[],j=function(){function M(k){if(function(ne,L){if(!(ne instanceof L))throw new TypeError("Cannot call a class as a function")}(this,M),this.options=(0,c.default)(k),this.container=this.options.container,this.paused=!0,this.playedPromise=o.default.resolve(),this.mode="normal",this.randomOrder=l.default.randomOrder(this.options.audio.length),this.container.classList.add("aplayer"),this.options.lrcType&&!this.options.fixed&&this.container.classList.add("aplayer-withlrc"),this.options.audio.length>1&&this.container.classList.add("aplayer-withlist"),l.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,this.options.lrcType===2||this.options.lrcType===!0)for(var F=this.container.getElementsByClassName("aplayer-lrc-content"),W=0;W<F.length;W++)this.options.audio[W]&&(this.options.audio[W].lrc=F[W].innerHTML);this.template=new h.default({container:this.container,options:this.options,randomOrder:this.randomOrder}),this.options.fixed&&(this.container.classList.add("aplayer-fixed"),this.template.body.style.width=this.template.body.offsetWidth-18+"px"),this.options.mini&&(this.setMode("mini"),this.template.info.style.display="block"),this.template.info.offsetWidth<200&&this.template.time.classList.add("aplayer-time-narrow"),this.options.lrcType&&(this.lrc=new A.default({container:this.template.lrc,async:this.options.lrcType===3,player:this})),this.events=new S.default,this.storage=new f.default(this),this.bar=new u.default(this.template),this.controller=new b.default(this),this.timer=new v.default(this),this.list=new O.default(this),this.initAudio(),this.bindEvents(),this.options.order==="random"?this.list.switch(this.randomOrder[0]):this.list.switch(0),this.options.autoplay&&this.play(),T.push(this)}return a(M,[{key:"initAudio",value:function(){var k=this;this.audio=document.createElement("audio"),this.audio.preload=this.options.preload;for(var F=function(ne){k.audio.addEventListener(k.events.audioEvents[ne],function(L){k.events.trigger(k.events.audioEvents[ne],L)})},W=0;W<this.events.audioEvents.length;W++)F(W);this.volume(this.storage.get("volume"),!0)}},{key:"bindEvents",value:function(){var k=this;this.on("play",function(){k.paused&&k.setUIPlaying()}),this.on("pause",function(){k.paused||k.setUIPaused()}),this.on("timeupdate",function(){if(!k.disableTimeupdate){k.bar.set("played",k.audio.currentTime/k.duration,"width"),k.lrc&&k.lrc.update();var W=l.default.secondToTime(k.audio.currentTime);k.template.ptime.innerHTML!==W&&(k.template.ptime.innerHTML=W)}}),this.on("durationchange",function(){k.duration!==1&&(k.template.dtime.innerHTML=l.default.secondToTime(k.duration))}),this.on("progress",function(){var W=k.audio.buffered.length?k.audio.buffered.end(k.audio.buffered.length-1)/k.duration:0;k.bar.set("loaded",W,"width")});var F=void 0;this.on("error",function(){k.list.audios.length>1?(k.notice("An audio error has occurred, player will skip forward in 2 seconds."),F=setTimeout(function(){k.skipForward(),k.paused||k.play()},2e3)):k.list.audios.length===1&&k.notice("An audio error has occurred.")}),this.events.on("listswitch",function(){F&&clearTimeout(F)}),this.on("ended",function(){k.options.loop==="none"?k.options.order==="list"?k.list.index<k.list.audios.length-1?(k.list.switch((k.list.index+1)%k.list.audios.length),k.play()):(k.list.switch((k.list.index+1)%k.list.audios.length),k.pause()):k.options.order==="random"&&(k.randomOrder.indexOf(k.list.index)<k.randomOrder.length-1?(k.list.switch(k.nextIndex()),k.play()):(k.list.switch(k.nextIndex()),k.pause())):k.options.loop==="one"?(k.list.switch(k.list.index),k.play()):k.options.loop==="all"&&(k.skipForward(),k.play())})}},{key:"setAudio",value:function(k){this.hls&&(this.hls.destroy(),this.hls=null);var F=k.type;this.options.customAudioType&&this.options.customAudioType[F]?Object.prototype.toString.call(this.options.customAudioType[F])==="[object Function]"?this.options.customAudioType[F](this.audio,k,this):console.error("Illegal customType: "+F):(F&&F!=="auto"||(F=/m3u8(#|\?|$)/i.exec(k.url)?"hls":"normal"),F==="hls"?Hls.isSupported()?(this.hls=new Hls,this.hls.loadSource(k.url),this.hls.attachMedia(this.audio)):this.audio.canPlayType("application/x-mpegURL")||this.audio.canPlayType("application/vnd.apple.mpegURL")?this.audio.src=k.url:this.notice("Error: HLS is not supported."):F==="normal"&&(this.audio.src=k.url)),this.seek(0),this.paused||this.audio.play()}},{key:"theme",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.list.index;(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])&&this.list.audios[F]&&(this.list.audios[F].theme=k),this.template.listCurs[F]&&(this.template.listCurs[F].style.backgroundColor=k),F===this.list.index&&(this.template.pic.style.backgroundColor=k,this.template.played.style.background=k,this.template.thumb.style.background=k,this.template.volume.style.background=k)}},{key:"seek",value:function(k){k=Math.max(k,0),k=Math.min(k,this.duration),this.audio.currentTime=k,this.bar.set("played",k/this.duration,"width"),this.template.ptime.innerHTML=l.default.secondToTime(k)}},{key:"setUIPlaying",value:function(){var k=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout(function(){k.template.button.innerHTML=s.default.pause},100),this.template.skipPlayButton.innerHTML=s.default.pause),this.timer.enable("loading"),this.options.mutex)for(var F=0;F<T.length;F++)this!==T[F]&&T[F].pause()}},{key:"play",value:function(){var k=this;this.setUIPlaying();var F=this.audio.play();F&&F.catch(function(W){console.warn(W),W.name==="NotAllowedError"&&k.setUIPaused()})}},{key:"setUIPaused",value:function(){var k=this;this.paused||(this.paused=!0,this.template.button.classList.remove("aplayer-pause"),this.template.button.classList.add("aplayer-play"),this.template.button.innerHTML="",setTimeout(function(){k.template.button.innerHTML=s.default.play},100),this.template.skipPlayButton.innerHTML=s.default.play),this.container.classList.remove("aplayer-loading"),this.timer.disable("loading")}},{key:"pause",value:function(){this.setUIPaused(),this.audio.pause()}},{key:"switchVolumeIcon",value:function(){this.volume()>=.95?this.template.volumeButton.innerHTML=s.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=s.default.volumeDown:this.template.volumeButton.innerHTML=s.default.volumeOff}},{key:"volume",value:function(k,F){return k=parseFloat(k),isNaN(k)||(k=Math.max(k,0),k=Math.min(k,1),this.bar.set("volume",k,"height"),F||this.storage.set("volume",k),this.audio.volume=k,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(k,F){this.events.on(k,F)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(k){this.list.switch(k)}},{key:"addAudio",value:function(k){this.list.add(k)}},{key:"removeAudio",value:function(k){this.list.remove(k)}},{key:"destroy",value:function(){T.splice(T.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"normal";this.mode=k,k==="mini"?this.container.classList.add("aplayer-narrow"):k==="normal"&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(k){var F=this,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2e3,ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.8;this.template.notice.innerHTML=k,this.template.notice.style.opacity=ne,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:k}),W&&(this.noticeTime=setTimeout(function(){F.template.notice.style.opacity=0,F.events.trigger("noticehide")},W))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if(this.options.order==="random"){var k=this.randomOrder.indexOf(this.list.index);return k===0?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[k-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return(this.list.index+1)%this.list.audios.length;if(this.options.order==="random"){var k=this.randomOrder.indexOf(this.list.index);return k===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[k+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),M}();r.default=j},,function(t,r,i){},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),i(40);var a,o=i(38),l=(a=o)&&a.__esModule?a:{default:a};console.log(`
214
+ `),l}},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function h(u,f){for(var A=0;A<f.length;A++){var b=f[A];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(u,b.key,b)}}return function(u,f,A){return f&&h(u.prototype,f),A&&h(u,A),u}}(),o=s(i(3)),l=s(i(16));function s(h){return h&&h.__esModule?h:{default:h}}var c=function(){function h(u){(function(f,A){if(!(f instanceof A))throw new TypeError("Cannot call a class as a function")})(this,h),this.container=u.container,this.options=u.options,this.randomOrder=u.randomOrder,this.init()}return a(h,[{key:"init",value:function(){var u="";this.options.audio.length&&(u=this.options.order==="random"?this.options.audio[this.randomOrder[0]].cover:this.options.audio[0].cover),this.container.innerHTML=(0,l.default)({options:this.options,icons:o.default,cover:u,getObject:function(f){return f}}),this.lrc=this.container.querySelector(".aplayer-lrc-contents"),this.lrcWrap=this.container.querySelector(".aplayer-lrc"),this.ptime=this.container.querySelector(".aplayer-ptime"),this.info=this.container.querySelector(".aplayer-info"),this.time=this.container.querySelector(".aplayer-time"),this.barWrap=this.container.querySelector(".aplayer-bar-wrap"),this.button=this.container.querySelector(".aplayer-button"),this.body=this.container.querySelector(".aplayer-body"),this.list=this.container.querySelector(".aplayer-list"),this.listOl=this.container.querySelector(".aplayer-list ol"),this.listCurs=this.container.querySelectorAll(".aplayer-list-cur"),this.played=this.container.querySelector(".aplayer-played"),this.loaded=this.container.querySelector(".aplayer-loaded"),this.thumb=this.container.querySelector(".aplayer-thumb"),this.volume=this.container.querySelector(".aplayer-volume"),this.volumeBar=this.container.querySelector(".aplayer-volume-bar"),this.volumeButton=this.container.querySelector(".aplayer-time button"),this.volumeBarWrap=this.container.querySelector(".aplayer-volume-bar-wrap"),this.loop=this.container.querySelector(".aplayer-icon-loop"),this.order=this.container.querySelector(".aplayer-icon-order"),this.menu=this.container.querySelector(".aplayer-icon-menu"),this.pic=this.container.querySelector(".aplayer-pic"),this.title=this.container.querySelector(".aplayer-title"),this.author=this.container.querySelector(".aplayer-author"),this.dtime=this.container.querySelector(".aplayer-dtime"),this.notice=this.container.querySelector(".aplayer-notice"),this.miniSwitcher=this.container.querySelector(".aplayer-miniswitcher"),this.skipBackButton=this.container.querySelector(".aplayer-icon-back"),this.skipForwardButton=this.container.querySelector(".aplayer-icon-forward"),this.skipPlayButton=this.container.querySelector(".aplayer-icon-play"),this.lrcButton=this.container.querySelector(".aplayer-icon-lrc")}}]),h}();r.default=c},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(a){var o={container:a.element||document.getElementsByClassName("aplayer")[0],mini:a.narrow||a.fixed||!1,fixed:!1,autoplay:!1,mutex:!0,lrcType:a.showlrc||a.lrc||0,preload:"auto",theme:"#b7daff",loop:"all",order:"list",volume:.7,listFolded:a.fixed,listMaxHeight:a.listmaxheight||"250px",audio:a.music||[],storageName:"aplayer-setting"};for(var l in o)o.hasOwnProperty(l)&&!a.hasOwnProperty(l)&&(a[l]=o[l]);return Object.prototype.toString.call(a.audio)!=="[object Array]"&&(a.audio=[a.audio]),a.audio.map(function(s){return s.name=s.name||s.title||"Audio name",s.artist=s.artist||s.author||"Audio artist",s.cover=s.cover||s.pic,s.type=s.type||"normal",s}),a.audio.length<=1&&a.loop==="one"&&(a.loop="all"),a}},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M26.667 5.333h-21.333c-0 0-0.001 0-0.001 0-1.472 0-2.666 1.194-2.666 2.666 0 0 0 0.001 0 0.001v-0 16c0 0 0 0.001 0 0.001 0 1.472 1.194 2.666 2.666 2.666 0 0 0.001 0 0.001 0h21.333c0 0 0.001 0 0.001 0 1.472 0 2.666-1.194 2.666-2.666 0-0 0-0.001 0-0.001v0-16c0-0 0-0.001 0-0.001 0-1.472-1.194-2.666-2.666-2.666-0 0-0.001 0-0.001 0h0zM5.333 16h5.333v2.667h-5.333v-2.667zM18.667 24h-13.333v-2.667h13.333v2.667zM26.667 24h-5.333v-2.667h5.333v2.667zM26.667 18.667h-13.333v-2.667h13.333v2.667z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M25.468 6.947c-0.326-0.172-0.724-0.151-1.030 0.057l-6.438 4.38v-3.553c0-0.371-0.205-0.71-0.532-0.884-0.326-0.172-0.724-0.151-1.030 0.057l-12 8.164c-0.274 0.186-0.438 0.496-0.438 0.827s0.164 0.641 0.438 0.827l12 8.168c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-3.556l6.438 4.382c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-16.333c0-0.371-0.205-0.71-0.532-0.884z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22 16l-10.105-10.6-1.895 1.987 8.211 8.613-8.211 8.612 1.895 1.988 8.211-8.613z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M4 16c0-6.6 5.4-12 12-12s12 5.4 12 12c0 1.2-0.8 2-2 2s-2-0.8-2-2c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8c1.2 0 2 0.8 2 2s-0.8 2-2 2c-6.6 0-12-5.4-12-12z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M2.667 7.027l1.707-1.693 22.293 22.293-1.693 1.707-4-4h-11.64v4l-5.333-5.333 5.333-5.333v4h8.973l-8.973-8.973v0.973h-2.667v-3.64l-4-4zM22.667 17.333h2.667v5.573l-2.667-2.667v-2.907zM22.667 6.667v-4l5.333 5.333-5.333 5.333v-4h-10.907l-2.667-2.667h13.573z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 33 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333zM17.333 20v-8h-1.333l-2.667 1.333v1.333h2v5.333h2z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 22 32"><path d="M20.8 14.4q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2zM1.6 11.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2zM20.8 20.8q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M0.622 18.334h19.54v7.55l11.052-9.412-11.052-9.413v7.549h-19.54v3.725z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22.667 4l7 6-7 6 7 6-7 6v-4h-3.653l-3.76-3.76 2.827-2.827 2.587 2.587h2v-8h-2l-12 12h-6v-4h4.347l12-12h3.653v-4zM2.667 8h6l3.76 3.76-2.827 2.827-2.587-2.587h-4.347v-4z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528zM25.152 16q0 2.72-1.536 5.056t-4 3.36q-0.256 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.704 0.672-1.056 1.024-0.512 1.376-0.8 1.312-0.96 2.048-2.4t0.736-3.104-0.736-3.104-2.048-2.4q-0.352-0.288-1.376-0.8-0.672-0.352-0.672-1.056 0-0.448 0.32-0.8t0.8-0.352q0.224 0 0.48 0.096 2.496 1.056 4 3.36t1.536 5.056zM29.728 16q0 4.096-2.272 7.552t-6.048 5.056q-0.224 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.64 0.704-1.056 0.128-0.064 0.384-0.192t0.416-0.192q0.8-0.448 1.44-0.896 2.208-1.632 3.456-4.064t1.216-5.152-1.216-5.152-3.456-4.064q-0.64-0.448-1.44-0.896-0.128-0.096-0.416-0.192t-0.384-0.192q-0.704-0.416-0.704-1.056 0-0.448 0.32-0.8t0.832-0.352q0.224 0 0.448 0.096 3.776 1.632 6.048 5.056t2.272 7.552z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 17 32"><path d="M14.080 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048zM2.88 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048z"></path></svg>'},function(t,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 31"><path d="M15.552 15.168q0.448 0.32 0.448 0.832 0 0.448-0.448 0.768l-13.696 8.512q-0.768 0.512-1.312 0.192t-0.544-1.28v-16.448q0-0.96 0.544-1.28t1.312 0.192z"></path></svg>'},function(t,r,i){var a,o,l=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function h(_){if(a===setTimeout)return setTimeout(_,0);if((a===s||!a)&&setTimeout)return a=setTimeout,setTimeout(_,0);try{return a(_,0)}catch{try{return a.call(null,_,0)}catch{return a.call(this,_,0)}}}(function(){try{a=typeof setTimeout=="function"?setTimeout:s}catch{a=s}try{o=typeof clearTimeout=="function"?clearTimeout:c}catch{o=c}})();var u,f=[],A=!1,b=-1;function v(){A&&u&&(A=!1,u.length?f=u.concat(f):b=-1,f.length&&S())}function S(){if(!A){var _=h(v);A=!0;for(var j=f.length;j;){for(u=f,f=[];++b<j;)u&&u[b].run();b=-1,j=f.length}u=null,A=!1,function(M){if(o===clearTimeout)return clearTimeout(M);if((o===c||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(M);try{o(M)}catch{try{return o.call(null,M)}catch{return o.call(this,M)}}}(_)}}function O(_,j){this.fun=_,this.array=j}function B(){}l.nextTick=function(_){var j=new Array(arguments.length-1);if(arguments.length>1)for(var M=1;M<arguments.length;M++)j[M-1]=arguments[M];f.push(new O(_,j)),f.length!==1||A||h(S)},O.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=B,l.addListener=B,l.once=B,l.off=B,l.removeListener=B,l.removeAllListeners=B,l.emit=B,l.prependListener=B,l.prependOnceListener=B,l.listeners=function(_){return[]},l.binding=function(_){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(_){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,r,i){(function(a,o){(function(l,s){if(!l.setImmediate){var c,h,u,f,A,b=1,v={},S=!1,O=l.document,B=Object.getPrototypeOf&&Object.getPrototypeOf(l);B=B&&B.setTimeout?B:l,{}.toString.call(l.process)==="[object process]"?c=function(M){o.nextTick(function(){j(M)})}:function(){if(l.postMessage&&!l.importScripts){var M=!0,k=l.onmessage;return l.onmessage=function(){M=!1},l.postMessage("","*"),l.onmessage=k,M}}()?(f="setImmediate$"+Math.random()+"$",A=function(M){M.source===l&&typeof M.data=="string"&&M.data.indexOf(f)===0&&j(+M.data.slice(f.length))},l.addEventListener?l.addEventListener("message",A,!1):l.attachEvent("onmessage",A),c=function(M){l.postMessage(f+M,"*")}):l.MessageChannel?((u=new MessageChannel).port1.onmessage=function(M){j(M.data)},c=function(M){u.port2.postMessage(M)}):O&&"onreadystatechange"in O.createElement("script")?(h=O.documentElement,c=function(M){var k=O.createElement("script");k.onreadystatechange=function(){j(M),k.onreadystatechange=null,h.removeChild(k),k=null},h.appendChild(k)}):c=function(M){setTimeout(j,0,M)},B.setImmediate=function(M){typeof M!="function"&&(M=new Function(""+M));for(var k=new Array(arguments.length-1),F=0;F<k.length;F++)k[F]=arguments[F+1];var W={callback:M,args:k};return v[b]=W,c(b),b++},B.clearImmediate=_}function _(M){delete v[M]}function j(M){if(S)setTimeout(j,0,M);else{var k=v[M];if(k){S=!0;try{(function(F){var W=F.callback,ne=F.args;switch(ne.length){case 0:W();break;case 1:W(ne[0]);break;case 2:W(ne[0],ne[1]);break;case 3:W(ne[0],ne[1],ne[2]);break;default:W.apply(s,ne)}})(k)}finally{_(M),S=!1}}}}})(typeof self>"u"?a===void 0?void 0:a:self)}).call(this,i(4),i(34))},function(t,r,i){var a=Function.prototype.apply;function o(l,s){this._id=l,this._clearFn=s}r.setTimeout=function(){return new o(a.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new o(a.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(l){l&&l.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(l,s){clearTimeout(l._idleTimeoutId),l._idleTimeout=s},r.unenroll=function(l){clearTimeout(l._idleTimeoutId),l._idleTimeout=-1},r._unrefActive=r.active=function(l){clearTimeout(l._idleTimeoutId);var s=l._idleTimeout;s>=0&&(l._idleTimeoutId=setTimeout(function(){l._onTimeout&&l._onTimeout()},s))},i(35),r.setImmediate=setImmediate,r.clearImmediate=clearImmediate},function(t,r,i){(function(a){var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},l=setTimeout;function s(){}function c(v){if(!(this instanceof c))throw new TypeError("Promises must be constructed via new");if(typeof v!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],b(v,this)}function h(v,S){for(;v._state===3;)v=v._value;v._state!==0?(v._handled=!0,c._immediateFn(function(){var O=v._state===1?S.onFulfilled:S.onRejected;if(O!==null){var B;try{B=O(v._value)}catch(_){return void f(S.promise,_)}u(S.promise,B)}else(v._state===1?u:f)(S.promise,v._value)})):v._deferreds.push(S)}function u(v,S){try{if(S===v)throw new TypeError("A promise cannot be resolved with itself.");if(S&&((S===void 0?"undefined":o(S))==="object"||typeof S=="function")){var O=S.then;if(S instanceof c)return v._state=3,v._value=S,void A(v);if(typeof O=="function")return void b((B=O,_=S,function(){B.apply(_,arguments)}),v)}v._state=1,v._value=S,A(v)}catch(j){f(v,j)}var B,_}function f(v,S){v._state=2,v._value=S,A(v)}function A(v){v._state===2&&v._deferreds.length===0&&c._immediateFn(function(){v._handled||c._unhandledRejectionFn(v._value)});for(var S=0,O=v._deferreds.length;S<O;S++)h(v,v._deferreds[S]);v._deferreds=null}function b(v,S){var O=!1;try{v(function(B){O||(O=!0,u(S,B))},function(B){O||(O=!0,f(S,B))})}catch(B){if(O)return;O=!0,f(S,B)}}c.prototype.catch=function(v){return this.then(null,v)},c.prototype.then=function(v,S){var O=new this.constructor(s);return h(this,new function(B,_,j){this.onFulfilled=typeof B=="function"?B:null,this.onRejected=typeof _=="function"?_:null,this.promise=j}(v,S,O)),O},c.prototype.finally=function(v){var S=this.constructor;return this.then(function(O){return S.resolve(v()).then(function(){return O})},function(O){return S.resolve(v()).then(function(){return S.reject(O)})})},c.all=function(v){return new c(function(S,O){if(!v||v.length===void 0)throw new TypeError("Promise.all accepts an array");var B=Array.prototype.slice.call(v);if(B.length===0)return S([]);var _=B.length;function j(k,F){try{if(F&&((F===void 0?"undefined":o(F))==="object"||typeof F=="function")){var W=F.then;if(typeof W=="function")return void W.call(F,function(ne){j(k,ne)},O)}B[k]=F,--_==0&&S(B)}catch(ne){O(ne)}}for(var M=0;M<B.length;M++)j(M,B[M])})},c.resolve=function(v){return v&&(v===void 0?"undefined":o(v))==="object"&&v.constructor===c?v:new c(function(S){S(v)})},c.reject=function(v){return new c(function(S,O){O(v)})},c.race=function(v){return new c(function(S,O){for(var B=0,_=v.length;B<_;B++)v[B].then(S,O)})},c._immediateFn=typeof a=="function"&&function(v){a(v)}||function(v){l(v,0)},c._unhandledRejectionFn=function(v){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",v)},t.exports=c}).call(this,i(36).setImmediate)},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function M(k,F){for(var W=0;W<F.length;W++){var ne=F[W];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(k,ne.key,ne)}}return function(k,F,W){return F&&M(k.prototype,F),W&&M(k,W),k}}(),o=B(i(37)),l=B(i(0)),s=B(i(3)),c=B(i(18)),h=B(i(17)),u=B(i(13)),f=B(i(12)),A=B(i(11)),b=B(i(9)),v=B(i(8)),S=B(i(7)),O=B(i(6));function B(M){return M&&M.__esModule?M:{default:M}}var _=[],j=function(){function M(k){if(function(ne,L){if(!(ne instanceof L))throw new TypeError("Cannot call a class as a function")}(this,M),this.options=(0,c.default)(k),this.container=this.options.container,this.paused=!0,this.playedPromise=o.default.resolve(),this.mode="normal",this.randomOrder=l.default.randomOrder(this.options.audio.length),this.container.classList.add("aplayer"),this.options.lrcType&&!this.options.fixed&&this.container.classList.add("aplayer-withlrc"),this.options.audio.length>1&&this.container.classList.add("aplayer-withlist"),l.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,this.options.lrcType===2||this.options.lrcType===!0)for(var F=this.container.getElementsByClassName("aplayer-lrc-content"),W=0;W<F.length;W++)this.options.audio[W]&&(this.options.audio[W].lrc=F[W].innerHTML);this.template=new h.default({container:this.container,options:this.options,randomOrder:this.randomOrder}),this.options.fixed&&(this.container.classList.add("aplayer-fixed"),this.template.body.style.width=this.template.body.offsetWidth-18+"px"),this.options.mini&&(this.setMode("mini"),this.template.info.style.display="block"),this.template.info.offsetWidth<200&&this.template.time.classList.add("aplayer-time-narrow"),this.options.lrcType&&(this.lrc=new A.default({container:this.template.lrc,async:this.options.lrcType===3,player:this})),this.events=new S.default,this.storage=new f.default(this),this.bar=new u.default(this.template),this.controller=new b.default(this),this.timer=new v.default(this),this.list=new O.default(this),this.initAudio(),this.bindEvents(),this.options.order==="random"?this.list.switch(this.randomOrder[0]):this.list.switch(0),this.options.autoplay&&this.play(),_.push(this)}return a(M,[{key:"initAudio",value:function(){var k=this;this.audio=document.createElement("audio"),this.audio.preload=this.options.preload;for(var F=function(ne){k.audio.addEventListener(k.events.audioEvents[ne],function(L){k.events.trigger(k.events.audioEvents[ne],L)})},W=0;W<this.events.audioEvents.length;W++)F(W);this.volume(this.storage.get("volume"),!0)}},{key:"bindEvents",value:function(){var k=this;this.on("play",function(){k.paused&&k.setUIPlaying()}),this.on("pause",function(){k.paused||k.setUIPaused()}),this.on("timeupdate",function(){if(!k.disableTimeupdate){k.bar.set("played",k.audio.currentTime/k.duration,"width"),k.lrc&&k.lrc.update();var W=l.default.secondToTime(k.audio.currentTime);k.template.ptime.innerHTML!==W&&(k.template.ptime.innerHTML=W)}}),this.on("durationchange",function(){k.duration!==1&&(k.template.dtime.innerHTML=l.default.secondToTime(k.duration))}),this.on("progress",function(){var W=k.audio.buffered.length?k.audio.buffered.end(k.audio.buffered.length-1)/k.duration:0;k.bar.set("loaded",W,"width")});var F=void 0;this.on("error",function(){k.list.audios.length>1?(k.notice("An audio error has occurred, player will skip forward in 2 seconds."),F=setTimeout(function(){k.skipForward(),k.paused||k.play()},2e3)):k.list.audios.length===1&&k.notice("An audio error has occurred.")}),this.events.on("listswitch",function(){F&&clearTimeout(F)}),this.on("ended",function(){k.options.loop==="none"?k.options.order==="list"?k.list.index<k.list.audios.length-1?(k.list.switch((k.list.index+1)%k.list.audios.length),k.play()):(k.list.switch((k.list.index+1)%k.list.audios.length),k.pause()):k.options.order==="random"&&(k.randomOrder.indexOf(k.list.index)<k.randomOrder.length-1?(k.list.switch(k.nextIndex()),k.play()):(k.list.switch(k.nextIndex()),k.pause())):k.options.loop==="one"?(k.list.switch(k.list.index),k.play()):k.options.loop==="all"&&(k.skipForward(),k.play())})}},{key:"setAudio",value:function(k){this.hls&&(this.hls.destroy(),this.hls=null);var F=k.type;this.options.customAudioType&&this.options.customAudioType[F]?Object.prototype.toString.call(this.options.customAudioType[F])==="[object Function]"?this.options.customAudioType[F](this.audio,k,this):console.error("Illegal customType: "+F):(F&&F!=="auto"||(F=/m3u8(#|\?|$)/i.exec(k.url)?"hls":"normal"),F==="hls"?Hls.isSupported()?(this.hls=new Hls,this.hls.loadSource(k.url),this.hls.attachMedia(this.audio)):this.audio.canPlayType("application/x-mpegURL")||this.audio.canPlayType("application/vnd.apple.mpegURL")?this.audio.src=k.url:this.notice("Error: HLS is not supported."):F==="normal"&&(this.audio.src=k.url)),this.seek(0),this.paused||this.audio.play()}},{key:"theme",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.list.index;(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])&&this.list.audios[F]&&(this.list.audios[F].theme=k),this.template.listCurs[F]&&(this.template.listCurs[F].style.backgroundColor=k),F===this.list.index&&(this.template.pic.style.backgroundColor=k,this.template.played.style.background=k,this.template.thumb.style.background=k,this.template.volume.style.background=k)}},{key:"seek",value:function(k){k=Math.max(k,0),k=Math.min(k,this.duration),this.audio.currentTime=k,this.bar.set("played",k/this.duration,"width"),this.template.ptime.innerHTML=l.default.secondToTime(k)}},{key:"setUIPlaying",value:function(){var k=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout(function(){k.template.button.innerHTML=s.default.pause},100),this.template.skipPlayButton.innerHTML=s.default.pause),this.timer.enable("loading"),this.options.mutex)for(var F=0;F<_.length;F++)this!==_[F]&&_[F].pause()}},{key:"play",value:function(){var k=this;this.setUIPlaying();var F=this.audio.play();F&&F.catch(function(W){console.warn(W),W.name==="NotAllowedError"&&k.setUIPaused()})}},{key:"setUIPaused",value:function(){var k=this;this.paused||(this.paused=!0,this.template.button.classList.remove("aplayer-pause"),this.template.button.classList.add("aplayer-play"),this.template.button.innerHTML="",setTimeout(function(){k.template.button.innerHTML=s.default.play},100),this.template.skipPlayButton.innerHTML=s.default.play),this.container.classList.remove("aplayer-loading"),this.timer.disable("loading")}},{key:"pause",value:function(){this.setUIPaused(),this.audio.pause()}},{key:"switchVolumeIcon",value:function(){this.volume()>=.95?this.template.volumeButton.innerHTML=s.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=s.default.volumeDown:this.template.volumeButton.innerHTML=s.default.volumeOff}},{key:"volume",value:function(k,F){return k=parseFloat(k),isNaN(k)||(k=Math.max(k,0),k=Math.min(k,1),this.bar.set("volume",k,"height"),F||this.storage.set("volume",k),this.audio.volume=k,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(k,F){this.events.on(k,F)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(k){this.list.switch(k)}},{key:"addAudio",value:function(k){this.list.add(k)}},{key:"removeAudio",value:function(k){this.list.remove(k)}},{key:"destroy",value:function(){_.splice(_.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"normal";this.mode=k,k==="mini"?this.container.classList.add("aplayer-narrow"):k==="normal"&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(k){var F=this,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2e3,ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.8;this.template.notice.innerHTML=k,this.template.notice.style.opacity=ne,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:k}),W&&(this.noticeTime=setTimeout(function(){F.template.notice.style.opacity=0,F.events.trigger("noticehide")},W))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if(this.options.order==="random"){var k=this.randomOrder.indexOf(this.list.index);return k===0?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[k-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return(this.list.index+1)%this.list.audios.length;if(this.options.order==="random"){var k=this.randomOrder.indexOf(this.list.index);return k===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[k+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),M}();r.default=j},,function(t,r,i){},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),i(40);var a,o=i(38),l=(a=o)&&a.__esModule?a:{default:a};console.log(`
215
215
  %c APlayer v1.10.1 af84efb %c http://aplayer.js.org
216
- `,"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),r.default=l.default}]).default})})(Cc);var Sc=Cc.exports;const Sv=Ca({__proto__:null,default:Tr(Sc)},[Sc]);var Bc={exports:{}};(function(e,n){(function(t,r){e.exports=r()})(self,()=>(()=>{var t={916:(o,l,s)=>{var c=s(471);o.exports=function(h){var u,f="",A=(h=h||{}).video,b=h.options,v=c.$escape,S=h.tran,O=h.icons,B=h.index,T=c.$each;return h.$value,h.$index,f+=`<div class="dplayer-mask"></div>
216
+ `,"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),r.default=l.default}]).default})})(Cc);var Sc=Cc.exports;const Ov=Ca({__proto__:null,default:Lr(Sc)},[Sc]);var Bc={exports:{}};(function(e,n){(function(t,r){e.exports=r()})(self,()=>(()=>{var t={916:(o,l,s)=>{var c=s(471);o.exports=function(h){var u,f="",A=(h=h||{}).video,b=h.options,v=c.$escape,S=h.tran,O=h.icons,B=h.index,_=c.$each;return h.$value,h.$index,f+=`<div class="dplayer-mask"></div>
217
217
  <div class="dplayer-video-wrap">
218
218
  `,u=s(568)(A),f+=u,f+=`
219
219
  `,b.logo&&(f+=`
@@ -318,7 +318,7 @@ Avoid returning a new reference inside your input selector, e.g.
318
318
  <button class="dplayer-icon dplayer-quality-icon">`,f+=v(b.video.quality[b.video.defaultQuality].name),f+=`</button>
319
319
  <div class="dplayer-quality-mask">
320
320
  <div class="dplayer-quality-list">
321
- `,T(b.video.quality,function(j,M){f+=`
321
+ `,_(b.video.quality,function(j,M){f+=`
322
322
  <div class="dplayer-quality-item" data-index="`,f+=v(M),f+='">',f+=v(j.name),f+=`</div>
323
323
  `}),f+=`
324
324
  </div>
@@ -359,7 +359,7 @@ Avoid returning a new reference inside your input selector, e.g.
359
359
  </button>
360
360
  <div class="dplayer-subtitles-box">
361
361
  <div class="dplayer-subtitles-panel">
362
- `,T(b.subtitle.url,function(j,M){f+=`
362
+ `,_(b.subtitle.url,function(j,M){f+=`
363
363
  <div class="dplayer-subtitles-item" data-subtitle="`,f+=v(j.url),f+=`">
364
364
  <!-- if lang, show tran(lang). if lang and name, show name + (tran(lang)). if name, show name. off option use lang for translation. -->
365
365
  <span class="dplayer-label">`,f+=v(j.lang?j.name?j.name+" ("+S(j.lang)+")":S(j.lang):j.name),f+=`</span>
@@ -413,7 +413,7 @@ Avoid returning a new reference inside your input selector, e.g.
413
413
  </div>
414
414
  </div>
415
415
  <div class="dplayer-setting-speed-panel">
416
- `,T(b.playbackSpeed,function(j,M){f+=`
416
+ `,_(b.playbackSpeed,function(j,M){f+=`
417
417
  <div class="dplayer-setting-speed-item" data-speed="`,f+=v(j),f+=`">
418
418
  <span class="dplayer-label">`,f+=v(j===1?S("normal"):j),f+=`</span>
419
419
  </div>
@@ -483,7 +483,7 @@ Avoid returning a new reference inside your input selector, e.g.
483
483
  `),f+=`
484
484
  </div>
485
485
  <div class="dplayer-menu">
486
- `,T(b.contextmenu,function(j,M){f+=`
486
+ `,_(b.contextmenu,function(j,M){f+=`
487
487
  <div class="dplayer-menu-item">
488
488
  <a`,j.link&&(f+=' target="_blank"'),f+=' href="',f+=v(j.link||"javascript:void(0);"),f+='">',j.key&&(f+=" ",f+=v(S(j.key))),j.text&&(f+=" ",f+=v(j.text)),f+=`</a>
489
489
  </div>
@@ -492,7 +492,7 @@ Avoid returning a new reference inside your input selector, e.g.
492
492
  <div class="dplayer-notice-list"></div>
493
493
  <button class="dplayer-mobile-play">
494
494
  `,f+=O.play,f+=`
495
- </button>`}},568:(o,l,s)=>{var c=s(471);o.exports=function(h){var u="",f=(h=h||{}).enableSubtitle,A=h.subtitle,b=h.current,v=h.airplay,S=h.pic,O=c.$escape,B=h.screenshot,T=h.preload,j=h.url;return f=A&&A.type==="webvtt",u+=`
495
+ </button>`}},568:(o,l,s)=>{var c=s(471);o.exports=function(h){var u="",f=(h=h||{}).enableSubtitle,A=h.subtitle,b=h.current,v=h.airplay,S=h.pic,O=c.$escape,B=h.screenshot,_=h.preload,j=h.url;return f=A&&A.type==="webvtt",u+=`
496
496
  <video
497
497
  class="dplayer-video `,b&&(u+="dplayer-video-current"),u+=`"
498
498
  webkit-playsinline
@@ -500,7 +500,7 @@ Avoid returning a new reference inside your input selector, e.g.
500
500
  playsinline
501
501
  `,S&&(u+='poster="',u+=O(S),u+='"'),u+=`
502
502
  `,(B||f)&&(u+='crossorigin="anonymous"'),u+=`
503
- `,T&&(u+='preload="',u+=O(T),u+='"'),u+=`
503
+ `,_&&(u+='preload="',u+=O(_),u+='"'),u+=`
504
504
  `,v?u+=`
505
505
  nosrc
506
506
  `:j&&(u+=`
@@ -794,7 +794,7 @@ button[aria-label][data-balloon-pos] {
794
794
  width: 90vw; } }
795
795
  [aria-label][data-balloon-pos][data-balloon-length="fit"]:after {
796
796
  width: 100%; }
797
- `],sourceRoot:""}]);const A=f},685:(o,l,s)=>{s.d(l,{Z:()=>T});var c=s(415),h=s.n(c),u=s(352),f=s.n(u),A=s(49),b=s(80),v=s.n(b),S=new URL(s(831),s.b),O=f()(h());O.i(A.Z);var B=v()(S);O.push([o.id,`@keyframes my-face {
797
+ `],sourceRoot:""}]);const A=f},685:(o,l,s)=>{s.d(l,{Z:()=>_});var c=s(415),h=s.n(c),u=s(352),f=s.n(u),A=s(49),b=s(80),v=s.n(b),S=new URL(s(831),s.b),O=f()(h());O.i(A.Z);var B=v()(S);O.push([o.id,`@keyframes my-face {
798
798
  2% {
799
799
  transform: translate(0, 1.5px) rotate(1.5deg);
800
800
  }
@@ -4817,14 +4817,14 @@ button[aria-label][data-balloon-pos] {
4817
4817
  .dplayer-info-panel-item-data {
4818
4818
  width: 260px;
4819
4819
  }
4820
- }`],sourceRoot:""}]);const T=O},856:o=>{var l=[];function s(u){for(var f=-1,A=0;A<l.length;A++)if(l[A].identifier===u){f=A;break}return f}function c(u,f){for(var A={},b=[],v=0;v<u.length;v++){var S=u[v],O=f.base?S[0]+f.base:S[0],B=A[O]||0,T="".concat(O," ").concat(B);A[O]=B+1;var j=s(T),M={css:S[1],media:S[2],sourceMap:S[3],supports:S[4],layer:S[5]};if(j!==-1)l[j].references++,l[j].updater(M);else{var k=h(M,f);f.byIndex=v,l.splice(v,0,{identifier:T,updater:k,references:1})}b.push(T)}return b}function h(u,f){var A=f.domAPI(f);return A.update(u),function(b){if(b){if(b.css===u.css&&b.media===u.media&&b.sourceMap===u.sourceMap&&b.supports===u.supports&&b.layer===u.layer)return;A.update(u=b)}else A.remove()}}o.exports=function(u,f){var A=c(u=u||[],f=f||{});return function(b){b=b||[];for(var v=0;v<A.length;v++){var S=s(A[v]);l[S].references--}for(var O=c(b,f),B=0;B<A.length;B++){var T=s(A[B]);l[T].references===0&&(l[T].updater(),l.splice(T,1))}A=O}}},370:o=>{var l={};o.exports=function(s,c){var h=function(u){if(l[u]===void 0){var f=document.querySelector(u);if(window.HTMLIFrameElement&&f instanceof window.HTMLIFrameElement)try{f=f.contentDocument.head}catch{f=null}l[u]=f}return l[u]}(s);if(!h)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");h.appendChild(c)}},278:o=>{o.exports=function(l){var s=document.createElement("style");return l.setAttributes(s,l.attributes),l.insert(s,l.options),s}},458:(o,l,s)=>{o.exports=function(c){var h=s.nc;h&&c.setAttribute("nonce",h)}},470:o=>{o.exports=function(l){var s=l.insertStyleElement(l);return{update:function(c){(function(h,u,f){var A="";f.supports&&(A+="@supports (".concat(f.supports,") {")),f.media&&(A+="@media ".concat(f.media," {"));var b=f.layer!==void 0;b&&(A+="@layer".concat(f.layer.length>0?" ".concat(f.layer):""," {")),A+=f.css,b&&(A+="}"),f.media&&(A+="}"),f.supports&&(A+="}");var v=f.sourceMap;v&&typeof btoa<"u"&&(A+=`
4821
- /*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(v))))," */")),u.styleTagTransform(A,h,u.options)})(s,l,c)},remove:function(){(function(c){if(c.parentNode===null)return!1;c.parentNode.removeChild(c)})(s)}}}},488:o=>{o.exports=function(l,s){if(s.styleSheet)s.styleSheet.cssText=l;else{for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(document.createTextNode(l))}}},251:o=>{o.exports='<svg viewBox="0 0 288 288" xmlns="http://www.w3.org/2000/svg"><path d="M288 90v96c0 20-16 36-36 36h-10c-16 0-16-24 0-24h10c7 0 12-5 12-12V90c0-7-5-12-12-12H36c-7 0-12 5-12 12v96c0 7 5 12 12 12h10c16 0 16 24 0 24H36c-20 0-36-16-36-36V90c0-20 16-36 36-36h216c20 0 36 16 36 36zm-120 62l48 68c14 20 1 38-20 38H92c-21 0-34-18-20-38l48-68c13-18 35-18 48 0z"></path></svg>'},113:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M16 23c-3.309 0-6-2.691-6-6s2.691-6 6-6 6 2.691 6 6-2.691 6-6 6zM16 13c-2.206 0-4 1.794-4 4s1.794 4 4 4c2.206 0 4-1.794 4-4s-1.794-4-4-4zM27 28h-22c-1.654 0-3-1.346-3-3v-16c0-1.654 1.346-3 3-3h3c0.552 0 1 0.448 1 1s-0.448 1-1 1h-3c-0.551 0-1 0.449-1 1v16c0 0.552 0.449 1 1 1h22c0.552 0 1-0.448 1-1v-16c0-0.551-0.448-1-1-1h-11c-0.552 0-1-0.448-1-1s0.448-1 1-1h11c1.654 0 3 1.346 3 3v16c0 1.654-1.346 3-3 3zM24 10.5c0 0.828 0.672 1.5 1.5 1.5s1.5-0.672 1.5-1.5c0-0.828-0.672-1.5-1.5-1.5s-1.5 0.672-1.5 1.5zM15 4c0 0.552-0.448 1-1 1h-4c-0.552 0-1-0.448-1-1v0c0-0.552 0.448-1 1-1h4c0.552 0 1 0.448 1 1v0z"></path></svg>'},193:o=>{o.exports='<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="chromecast" class="svg-inline--fa fa-chromecast fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M447.8,64H64c-23.6,0-42.7,19.1-42.7,42.7v63.9H64v-63.9h383.8v298.6H298.6V448H448c23.6,0,42.7-19.1,42.7-42.7V106.7 C490.7,83.1,471.4,64,447.8,64z M21.3,383.6L21.3,383.6l0,63.9h63.9C85.2,412.2,56.6,383.6,21.3,383.6L21.3,383.6z M21.3,298.6V341 c58.9,0,106.6,48.1,106.6,107h42.7C170.7,365.6,103.7,298.7,21.3,298.6z M213.4,448h42.7c-0.5-129.5-105.3-234.3-234.8-234.6l0,42.4 C127.3,255.6,213.3,342,213.4,448z"></path></svg>'},338:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M27.090 0.131h-22.731c-2.354 0-4.262 1.839-4.262 4.109v16.401c0 2.269 1.908 4.109 4.262 4.109h4.262v-2.706h8.469l-8.853 8.135 1.579 1.451 7.487-6.88h9.787c2.353 0 4.262-1.84 4.262-4.109v-16.401c0-2.27-1.909-4.109-4.262-4.109v0zM28.511 19.304c0 1.512-1.272 2.738-2.841 2.738h-8.425l-0.076-0.070-0.076 0.070h-11.311c-1.569 0-2.841-1.226-2.841-2.738v-13.696c0-1.513 1.272-2.739 2.841-2.739h19.889c1.569 0 2.841-0.142 2.841 1.37v15.064z"></path></svg>'},807:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M27.128 0.38h-22.553c-2.336 0-4.229 1.825-4.229 4.076v16.273c0 2.251 1.893 4.076 4.229 4.076h4.229v-2.685h8.403l-8.784 8.072 1.566 1.44 7.429-6.827h9.71c2.335 0 4.229-1.825 4.229-4.076v-16.273c0-2.252-1.894-4.076-4.229-4.076zM28.538 19.403c0 1.5-1.262 2.717-2.819 2.717h-8.36l-0.076-0.070-0.076 0.070h-11.223c-1.557 0-2.819-1.217-2.819-2.717v-13.589c0-1.501 1.262-2.718 2.819-2.718h19.734c1.557 0 2.819-0.141 2.819 1.359v14.947zM9.206 10.557c-1.222 0-2.215 0.911-2.215 2.036s0.992 2.035 2.215 2.035c1.224 0 2.216-0.911 2.216-2.035s-0.992-2.036-2.216-2.036zM22.496 10.557c-1.224 0-2.215 0.911-2.215 2.036s0.991 2.035 2.215 2.035c1.224 0 2.215-0.911 2.215-2.035s-0.991-2.036-2.215-2.036zM15.852 10.557c-1.224 0-2.215 0.911-2.215 2.036s0.991 2.035 2.215 2.035c1.222 0 2.215-0.911 2.215-2.035s-0.992-2.036-2.215-2.036z"></path></svg>'},300:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 33"><path d="M24.965 24.38h-18.132c-1.366 0-2.478-1.113-2.478-2.478v-11.806c0-1.364 1.111-2.478 2.478-2.478h18.132c1.366 0 2.478 1.113 2.478 2.478v11.806c0 1.364-1.11 2.478-2.478 2.478zM6.833 10.097v11.806h18.134l-0.002-11.806h-18.132zM2.478 28.928h5.952c0.684 0 1.238-0.554 1.238-1.239 0-0.684-0.554-1.238-1.238-1.238h-5.952v-5.802c0-0.684-0.554-1.239-1.238-1.239s-1.239 0.556-1.239 1.239v5.802c0 1.365 1.111 2.478 2.478 2.478zM30.761 19.412c-0.684 0-1.238 0.554-1.238 1.238v5.801h-5.951c-0.686 0-1.239 0.554-1.239 1.238 0 0.686 0.554 1.239 1.239 1.239h5.951c1.366 0 2.478-1.111 2.478-2.478v-5.801c0-0.683-0.554-1.238-1.239-1.238zM0 5.55v5.802c0 0.683 0.554 1.238 1.238 1.238s1.238-0.555 1.238-1.238v-5.802h5.952c0.684 0 1.238-0.554 1.238-1.238s-0.554-1.238-1.238-1.238h-5.951c-1.366-0.001-2.478 1.111-2.478 2.476zM32 11.35v-5.801c0-1.365-1.11-2.478-2.478-2.478h-5.951c-0.686 0-1.239 0.554-1.239 1.238s0.554 1.238 1.239 1.238h5.951v5.801c0 0.683 0.554 1.237 1.238 1.237 0.686 0.002 1.239-0.553 1.239-1.236z"></path></svg>'},574:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 33"><path d="M6.667 28h-5.333c-0.8 0-1.333-0.533-1.333-1.333v-5.333c0-0.8 0.533-1.333 1.333-1.333s1.333 0.533 1.333 1.333v4h4c0.8 0 1.333 0.533 1.333 1.333s-0.533 1.333-1.333 1.333zM30.667 28h-5.333c-0.8 0-1.333-0.533-1.333-1.333s0.533-1.333 1.333-1.333h4v-4c0-0.8 0.533-1.333 1.333-1.333s1.333 0.533 1.333 1.333v5.333c0 0.8-0.533 1.333-1.333 1.333zM30.667 12c-0.8 0-1.333-0.533-1.333-1.333v-4h-4c-0.8 0-1.333-0.533-1.333-1.333s0.533-1.333 1.333-1.333h5.333c0.8 0 1.333 0.533 1.333 1.333v5.333c0 0.8-0.533 1.333-1.333 1.333zM1.333 12c-0.8 0-1.333-0.533-1.333-1.333v-5.333c0-0.8 0.533-1.333 1.333-1.333h5.333c0.8 0 1.333 0.533 1.333 1.333s-0.533 1.333-1.333 1.333h-4v4c0 0.8-0.533 1.333-1.333 1.333z"></path></svg>'},182:o=>{o.exports='<svg version="1.1" viewBox="0 0 22 22"><svg x="7" y="1"><circle class="diplayer-loading-dot diplayer-loading-dot-0" cx="4" cy="4" r="2"></circle></svg><svg x="11" y="3"><circle class="diplayer-loading-dot diplayer-loading-dot-1" cx="4" cy="4" r="2"></circle></svg><svg x="13" y="7"><circle class="diplayer-loading-dot diplayer-loading-dot-2" cx="4" cy="4" r="2"></circle></svg><svg x="11" y="11"><circle class="diplayer-loading-dot diplayer-loading-dot-3" cx="4" cy="4" r="2"></circle></svg><svg x="7" y="13"><circle class="diplayer-loading-dot diplayer-loading-dot-4" cx="4" cy="4" r="2"></circle></svg><svg x="3" y="11"><circle class="diplayer-loading-dot diplayer-loading-dot-5" cx="4" cy="4" r="2"></circle></svg><svg x="1" y="7"><circle class="diplayer-loading-dot diplayer-loading-dot-6" cx="4" cy="4" r="2"></circle></svg><svg x="3" y="3"><circle class="diplayer-loading-dot diplayer-loading-dot-7" cx="4" cy="4" r="2"></circle></svg></svg>'},965:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M19.357 2.88c1.749 0 3.366 0.316 4.851 0.946 1.485 0.632 2.768 1.474 3.845 2.533s1.922 2.279 2.532 3.661c0.611 1.383 0.915 2.829 0.915 4.334 0 1.425-0.304 2.847-0.915 4.271-0.611 1.425-1.587 2.767-2.928 4.028-0.855 0.813-1.811 1.607-2.869 2.38s-2.136 1.465-3.233 2.075c-1.099 0.61-2.198 1.098-3.296 1.465-1.098 0.366-2.115 0.549-3.051 0.549-1.343 0-2.441-0.438-3.296-1.311-0.854-0.876-1.281-2.41-1.281-4.608 0-0.366 0.020-0.773 0.060-1.221s0.062-0.895 0.062-1.343c0-0.773-0.183-1.353-0.55-1.738-0.366-0.387-0.793-0.58-1.281-0.58-0.652 0-1.21 0.295-1.678 0.886s-0.926 1.23-1.373 1.921c-0.447 0.693-0.905 1.334-1.372 1.923s-1.028 0.886-1.679 0.886c-0.529 0-1.048-0.427-1.556-1.282s-0.763-2.259-0.763-4.212c0-2.197 0.529-4.241 1.587-6.133s2.462-3.529 4.21-4.912c1.75-1.383 3.762-2.471 6.041-3.264 2.277-0.796 4.617-1.212 7.018-1.253zM7.334 15.817c0.569 0 1.047-0.204 1.434-0.611s0.579-0.875 0.579-1.404c0-0.569-0.193-1.047-0.579-1.434s-0.864-0.579-1.434-0.579c-0.529 0-0.987 0.193-1.373 0.579s-0.58 0.864-0.58 1.434c0 0.53 0.194 0.998 0.58 1.404 0.388 0.407 0.845 0.611 1.373 0.611zM12.216 11.79c0.691 0 1.292-0.254 1.8-0.763s0.762-1.107 0.762-1.8c0-0.732-0.255-1.343-0.762-1.831-0.509-0.489-1.109-0.732-1.8-0.732-0.732 0-1.342 0.244-1.831 0.732-0.488 0.488-0.732 1.098-0.732 1.831 0 0.693 0.244 1.292 0.732 1.8s1.099 0.763 1.831 0.763zM16.366 25.947c0.692 0 1.282-0.214 1.77-0.64s0.732-0.987 0.732-1.678-0.244-1.261-0.732-1.709c-0.489-0.448-1.078-0.671-1.77-0.671-0.65 0-1.21 0.223-1.678 0.671s-0.702 1.018-0.702 1.709c0 0.692 0.234 1.25 0.702 1.678s1.027 0.64 1.678 0.64zM19.113 9.592c0.651 0 1.129-0.203 1.433-0.611 0.305-0.406 0.459-0.874 0.459-1.404 0-0.488-0.154-0.947-0.459-1.373-0.304-0.427-0.782-0.641-1.433-0.641-0.529 0-1.008 0.193-1.434 0.58s-0.64 0.865-0.64 1.434c0 0.571 0.213 1.049 0.64 1.434 0.427 0.389 0.905 0.581 1.434 0.581zM24.848 12.826c0.57 0 1.067-0.213 1.495-0.64 0.427-0.427 0.64-0.947 0.64-1.556 0-0.57-0.214-1.068-0.64-1.495-0.428-0.427-0.927-0.64-1.495-0.64-0.611 0-1.129 0.213-1.555 0.64-0.428 0.427-0.642 0.926-0.642 1.495 0 0.611 0.213 1.129 0.642 1.556s0.947 0.64 1.555 0.64z"></path></svg>'},74:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 17 32"><path d="M14.080 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048zM2.88 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048z"></path></svg>'},730:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 32"><path d="M15.552 15.168q0.448 0.32 0.448 0.832 0 0.448-0.448 0.768l-13.696 8.512q-0.768 0.512-1.312 0.192t-0.544-1.28v-16.448q0-0.96 0.544-1.28t1.312 0.192z"></path></svg>'},428:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22 16l-10.105-10.6-1.895 1.987 8.211 8.613-8.211 8.612 1.895 1.988 8.211-8.613z"></path></svg>'},254:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M13.725 30l3.9-5.325-3.9-1.125v6.45zM0 17.5l11.050 3.35 13.6-11.55-10.55 12.425 11.8 3.65 6.1-23.375-32 15.5z"></path></svg>'},934:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 28"><path d="M28.633 17.104c0.035 0.21 0.026 0.463-0.026 0.76s-0.14 0.598-0.262 0.904c-0.122 0.306-0.271 0.581-0.445 0.825s-0.367 0.419-0.576 0.524c-0.209 0.105-0.393 0.157-0.55 0.157s-0.332-0.035-0.524-0.105c-0.175-0.052-0.393-0.1-0.655-0.144s-0.528-0.052-0.799-0.026c-0.271 0.026-0.541 0.083-0.812 0.17s-0.502 0.236-0.694 0.445c-0.419 0.437-0.664 0.934-0.734 1.493s0.009 1.092 0.236 1.598c0.175 0.349 0.148 0.699-0.079 1.048-0.105 0.14-0.271 0.284-0.498 0.432s-0.476 0.284-0.747 0.406-0.555 0.218-0.851 0.288c-0.297 0.070-0.559 0.105-0.786 0.105-0.157 0-0.306-0.061-0.445-0.183s-0.236-0.253-0.288-0.393h-0.026c-0.192-0.541-0.52-1.009-0.982-1.402s-1-0.589-1.611-0.589c-0.594 0-1.131 0.197-1.611 0.589s-0.816 0.851-1.009 1.375c-0.087 0.21-0.218 0.362-0.393 0.458s-0.367 0.144-0.576 0.144c-0.244 0-0.52-0.044-0.825-0.131s-0.611-0.197-0.917-0.327c-0.306-0.131-0.581-0.284-0.825-0.458s-0.428-0.349-0.55-0.524c-0.087-0.122-0.135-0.266-0.144-0.432s0.057-0.397 0.197-0.694c0.192-0.402 0.266-0.86 0.223-1.375s-0.266-0.991-0.668-1.428c-0.244-0.262-0.541-0.432-0.891-0.511s-0.681-0.109-0.995-0.092c-0.367 0.017-0.742 0.087-1.127 0.21-0.244 0.070-0.489 0.052-0.734-0.052-0.192-0.070-0.371-0.231-0.537-0.485s-0.314-0.533-0.445-0.838c-0.131-0.306-0.231-0.62-0.301-0.943s-0.087-0.59-0.052-0.799c0.052-0.384 0.227-0.629 0.524-0.734 0.524-0.21 0.995-0.555 1.415-1.035s0.629-1.017 0.629-1.611c0-0.611-0.21-1.144-0.629-1.598s-0.891-0.786-1.415-0.996c-0.157-0.052-0.288-0.179-0.393-0.38s-0.157-0.406-0.157-0.616c0-0.227 0.035-0.48 0.105-0.76s0.162-0.55 0.275-0.812 0.244-0.502 0.393-0.72c0.148-0.218 0.31-0.38 0.485-0.485 0.14-0.087 0.275-0.122 0.406-0.105s0.275 0.052 0.432 0.105c0.524 0.21 1.070 0.275 1.637 0.197s1.070-0.327 1.506-0.747c0.21-0.209 0.362-0.467 0.458-0.773s0.157-0.607 0.183-0.904c0.026-0.297 0.026-0.568 0-0.812s-0.048-0.419-0.065-0.524c-0.035-0.105-0.066-0.227-0.092-0.367s-0.013-0.262 0.039-0.367c0.105-0.244 0.293-0.458 0.563-0.642s0.563-0.336 0.878-0.458c0.314-0.122 0.62-0.214 0.917-0.275s0.533-0.092 0.707-0.092c0.227 0 0.406 0.074 0.537 0.223s0.223 0.301 0.275 0.458c0.192 0.471 0.507 0.886 0.943 1.244s0.952 0.537 1.546 0.537c0.611 0 1.153-0.17 1.624-0.511s0.803-0.773 0.996-1.297c0.070-0.14 0.179-0.284 0.327-0.432s0.301-0.223 0.458-0.223c0.244 0 0.511 0.035 0.799 0.105s0.572 0.166 0.851 0.288c0.279 0.122 0.537 0.279 0.773 0.472s0.423 0.402 0.563 0.629c0.087 0.14 0.113 0.293 0.079 0.458s-0.070 0.284-0.105 0.354c-0.227 0.506-0.297 1.039-0.21 1.598s0.341 1.048 0.76 1.467c0.419 0.419 0.934 0.651 1.546 0.694s1.179-0.057 1.703-0.301c0.14-0.087 0.31-0.122 0.511-0.105s0.371 0.096 0.511 0.236c0.262 0.244 0.493 0.616 0.694 1.113s0.336 1 0.406 1.506c0.035 0.297-0.013 0.528-0.144 0.694s-0.266 0.275-0.406 0.327c-0.542 0.192-1.004 0.528-1.388 1.009s-0.576 1.026-0.576 1.637c0 0.594 0.162 1.113 0.485 1.559s0.747 0.764 1.27 0.956c0.122 0.070 0.227 0.14 0.314 0.21 0.192 0.157 0.323 0.358 0.393 0.602v0zM16.451 19.462c0.786 0 1.528-0.149 2.227-0.445s1.305-0.707 1.821-1.231c0.515-0.524 0.921-1.131 1.218-1.821s0.445-1.428 0.445-2.214c0-0.786-0.148-1.524-0.445-2.214s-0.703-1.292-1.218-1.808c-0.515-0.515-1.122-0.921-1.821-1.218s-1.441-0.445-2.227-0.445c-0.786 0-1.524 0.148-2.214 0.445s-1.292 0.703-1.808 1.218c-0.515 0.515-0.921 1.118-1.218 1.808s-0.445 1.428-0.445 2.214c0 0.786 0.149 1.524 0.445 2.214s0.703 1.297 1.218 1.821c0.515 0.524 1.118 0.934 1.808 1.231s1.428 0.445 2.214 0.445v0z"></path></svg>'},410:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M26.667 5.333h-21.333c-0 0-0.001 0-0.001 0-1.472 0-2.666 1.194-2.666 2.666 0 0 0 0.001 0 0.001v-0 16c0 0 0 0.001 0 0.001 0 1.472 1.194 2.666 2.666 2.666 0 0 0.001 0 0.001 0h21.333c0 0 0.001 0 0.001 0 1.472 0 2.666-1.194 2.666-2.666 0-0 0-0.001 0-0.001v0-16c0-0 0-0.001 0-0.001 0-1.472-1.194-2.666-2.666-2.666-0 0-0.001 0-0.001 0h0zM5.333 16h5.333v2.667h-5.333v-2.667zM18.667 24h-13.333v-2.667h13.333v2.667zM26.667 24h-5.333v-2.667h5.333v2.667zM26.667 18.667h-13.333v-2.667h13.333v2.667z"></path></svg>'},644:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 21 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528z"></path></svg>'},324:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 21 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8z"></path></svg>'},437:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 21 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528zM25.152 16q0 2.72-1.536 5.056t-4 3.36q-0.256 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.704 0.672-1.056 1.024-0.512 1.376-0.8 1.312-0.96 2.048-2.4t0.736-3.104-0.736-3.104-2.048-2.4q-0.352-0.288-1.376-0.8-0.672-0.352-0.672-1.056 0-0.448 0.32-0.8t0.8-0.352q0.224 0 0.48 0.096 2.496 1.056 4 3.36t1.536 5.056z"></path></svg>'},897:(o,l,s)=>{var c=typeof self<"u"?self:typeof window<"u"?window:s.g!==void 0?s.g:{},h=Object.create(c),u=/["&'<>]/;function f(A){return typeof A!="string"&&(A=A==null?"":typeof A=="function"?f(A.call(A)):JSON.stringify(A)),A}h.$escape=function(A){return function(b){var v=""+b,S=u.exec(v);if(!S)return b;var O="",B=void 0,T=void 0,j=void 0;for(B=S.index,T=0;B<v.length;B++){switch(v.charCodeAt(B)){case 34:j="&#34;";break;case 38:j="&#38;";break;case 39:j="&#39;";break;case 60:j="&#60;";break;case 62:j="&#62;";break;default:continue}T!==B&&(O+=v.substring(T,B)),T=B+1,O+=j}return T!==B?O+v.substring(T,B):O}(f(A))},h.$each=function(A,b){if(Array.isArray(A))for(var v=0,S=A.length;v<S;v++)b(A[v],v);else for(var O in A)b(A[O],O)},o.exports=h},471:(o,l,s)=>{o.exports=s(897)},352:o=>{o.exports=function(l){var s=[];return s.toString=function(){return this.map(function(c){var h="",u=c[5]!==void 0;return c[4]&&(h+="@supports (".concat(c[4],") {")),c[2]&&(h+="@media ".concat(c[2]," {")),u&&(h+="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {")),h+=l(c),u&&(h+="}"),c[2]&&(h+="}"),c[4]&&(h+="}"),h}).join("")},s.i=function(c,h,u,f,A){typeof c=="string"&&(c=[[null,c,void 0]]);var b={};if(u)for(var v=0;v<this.length;v++){var S=this[v][0];S!=null&&(b[S]=!0)}for(var O=0;O<c.length;O++){var B=[].concat(c[O]);u&&b[B[0]]||(A!==void 0&&(B[5]===void 0||(B[1]="@layer".concat(B[5].length>0?" ".concat(B[5]):""," {").concat(B[1],"}")),B[5]=A),h&&(B[2]&&(B[1]="@media ".concat(B[2]," {").concat(B[1],"}")),B[2]=h),f&&(B[4]?(B[1]="@supports (".concat(B[4],") {").concat(B[1],"}"),B[4]=f):B[4]="".concat(f)),s.push(B))}},s}},80:o=>{o.exports=function(l,s){return s||(s={}),l&&(l=String(l.__esModule?l.default:l),/^['"].*['"]$/.test(l)&&(l=l.slice(1,-1)),s.hash&&(l+=s.hash),/["'() \t\n]|(%20)/.test(l)||s.needQuotes?'"'.concat(l.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):l)}},415:o=>{o.exports=function(l){var s=l[1],c=l[3];if(!c)return s;if(typeof btoa=="function"){var h=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(h),f="/*# ".concat(u," */");return[s].concat([f]).join(`
4820
+ }`],sourceRoot:""}]);const _=O},856:o=>{var l=[];function s(u){for(var f=-1,A=0;A<l.length;A++)if(l[A].identifier===u){f=A;break}return f}function c(u,f){for(var A={},b=[],v=0;v<u.length;v++){var S=u[v],O=f.base?S[0]+f.base:S[0],B=A[O]||0,_="".concat(O," ").concat(B);A[O]=B+1;var j=s(_),M={css:S[1],media:S[2],sourceMap:S[3],supports:S[4],layer:S[5]};if(j!==-1)l[j].references++,l[j].updater(M);else{var k=h(M,f);f.byIndex=v,l.splice(v,0,{identifier:_,updater:k,references:1})}b.push(_)}return b}function h(u,f){var A=f.domAPI(f);return A.update(u),function(b){if(b){if(b.css===u.css&&b.media===u.media&&b.sourceMap===u.sourceMap&&b.supports===u.supports&&b.layer===u.layer)return;A.update(u=b)}else A.remove()}}o.exports=function(u,f){var A=c(u=u||[],f=f||{});return function(b){b=b||[];for(var v=0;v<A.length;v++){var S=s(A[v]);l[S].references--}for(var O=c(b,f),B=0;B<A.length;B++){var _=s(A[B]);l[_].references===0&&(l[_].updater(),l.splice(_,1))}A=O}}},370:o=>{var l={};o.exports=function(s,c){var h=function(u){if(l[u]===void 0){var f=document.querySelector(u);if(window.HTMLIFrameElement&&f instanceof window.HTMLIFrameElement)try{f=f.contentDocument.head}catch{f=null}l[u]=f}return l[u]}(s);if(!h)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");h.appendChild(c)}},278:o=>{o.exports=function(l){var s=document.createElement("style");return l.setAttributes(s,l.attributes),l.insert(s,l.options),s}},458:(o,l,s)=>{o.exports=function(c){var h=s.nc;h&&c.setAttribute("nonce",h)}},470:o=>{o.exports=function(l){var s=l.insertStyleElement(l);return{update:function(c){(function(h,u,f){var A="";f.supports&&(A+="@supports (".concat(f.supports,") {")),f.media&&(A+="@media ".concat(f.media," {"));var b=f.layer!==void 0;b&&(A+="@layer".concat(f.layer.length>0?" ".concat(f.layer):""," {")),A+=f.css,b&&(A+="}"),f.media&&(A+="}"),f.supports&&(A+="}");var v=f.sourceMap;v&&typeof btoa<"u"&&(A+=`
4821
+ /*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(v))))," */")),u.styleTagTransform(A,h,u.options)})(s,l,c)},remove:function(){(function(c){if(c.parentNode===null)return!1;c.parentNode.removeChild(c)})(s)}}}},488:o=>{o.exports=function(l,s){if(s.styleSheet)s.styleSheet.cssText=l;else{for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(document.createTextNode(l))}}},251:o=>{o.exports='<svg viewBox="0 0 288 288" xmlns="http://www.w3.org/2000/svg"><path d="M288 90v96c0 20-16 36-36 36h-10c-16 0-16-24 0-24h10c7 0 12-5 12-12V90c0-7-5-12-12-12H36c-7 0-12 5-12 12v96c0 7 5 12 12 12h10c16 0 16 24 0 24H36c-20 0-36-16-36-36V90c0-20 16-36 36-36h216c20 0 36 16 36 36zm-120 62l48 68c14 20 1 38-20 38H92c-21 0-34-18-20-38l48-68c13-18 35-18 48 0z"></path></svg>'},113:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M16 23c-3.309 0-6-2.691-6-6s2.691-6 6-6 6 2.691 6 6-2.691 6-6 6zM16 13c-2.206 0-4 1.794-4 4s1.794 4 4 4c2.206 0 4-1.794 4-4s-1.794-4-4-4zM27 28h-22c-1.654 0-3-1.346-3-3v-16c0-1.654 1.346-3 3-3h3c0.552 0 1 0.448 1 1s-0.448 1-1 1h-3c-0.551 0-1 0.449-1 1v16c0 0.552 0.449 1 1 1h22c0.552 0 1-0.448 1-1v-16c0-0.551-0.448-1-1-1h-11c-0.552 0-1-0.448-1-1s0.448-1 1-1h11c1.654 0 3 1.346 3 3v16c0 1.654-1.346 3-3 3zM24 10.5c0 0.828 0.672 1.5 1.5 1.5s1.5-0.672 1.5-1.5c0-0.828-0.672-1.5-1.5-1.5s-1.5 0.672-1.5 1.5zM15 4c0 0.552-0.448 1-1 1h-4c-0.552 0-1-0.448-1-1v0c0-0.552 0.448-1 1-1h4c0.552 0 1 0.448 1 1v0z"></path></svg>'},193:o=>{o.exports='<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="chromecast" class="svg-inline--fa fa-chromecast fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M447.8,64H64c-23.6,0-42.7,19.1-42.7,42.7v63.9H64v-63.9h383.8v298.6H298.6V448H448c23.6,0,42.7-19.1,42.7-42.7V106.7 C490.7,83.1,471.4,64,447.8,64z M21.3,383.6L21.3,383.6l0,63.9h63.9C85.2,412.2,56.6,383.6,21.3,383.6L21.3,383.6z M21.3,298.6V341 c58.9,0,106.6,48.1,106.6,107h42.7C170.7,365.6,103.7,298.7,21.3,298.6z M213.4,448h42.7c-0.5-129.5-105.3-234.3-234.8-234.6l0,42.4 C127.3,255.6,213.3,342,213.4,448z"></path></svg>'},338:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M27.090 0.131h-22.731c-2.354 0-4.262 1.839-4.262 4.109v16.401c0 2.269 1.908 4.109 4.262 4.109h4.262v-2.706h8.469l-8.853 8.135 1.579 1.451 7.487-6.88h9.787c2.353 0 4.262-1.84 4.262-4.109v-16.401c0-2.27-1.909-4.109-4.262-4.109v0zM28.511 19.304c0 1.512-1.272 2.738-2.841 2.738h-8.425l-0.076-0.070-0.076 0.070h-11.311c-1.569 0-2.841-1.226-2.841-2.738v-13.696c0-1.513 1.272-2.739 2.841-2.739h19.889c1.569 0 2.841-0.142 2.841 1.37v15.064z"></path></svg>'},807:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M27.128 0.38h-22.553c-2.336 0-4.229 1.825-4.229 4.076v16.273c0 2.251 1.893 4.076 4.229 4.076h4.229v-2.685h8.403l-8.784 8.072 1.566 1.44 7.429-6.827h9.71c2.335 0 4.229-1.825 4.229-4.076v-16.273c0-2.252-1.894-4.076-4.229-4.076zM28.538 19.403c0 1.5-1.262 2.717-2.819 2.717h-8.36l-0.076-0.070-0.076 0.070h-11.223c-1.557 0-2.819-1.217-2.819-2.717v-13.589c0-1.501 1.262-2.718 2.819-2.718h19.734c1.557 0 2.819-0.141 2.819 1.359v14.947zM9.206 10.557c-1.222 0-2.215 0.911-2.215 2.036s0.992 2.035 2.215 2.035c1.224 0 2.216-0.911 2.216-2.035s-0.992-2.036-2.216-2.036zM22.496 10.557c-1.224 0-2.215 0.911-2.215 2.036s0.991 2.035 2.215 2.035c1.224 0 2.215-0.911 2.215-2.035s-0.991-2.036-2.215-2.036zM15.852 10.557c-1.224 0-2.215 0.911-2.215 2.036s0.991 2.035 2.215 2.035c1.222 0 2.215-0.911 2.215-2.035s-0.992-2.036-2.215-2.036z"></path></svg>'},300:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 33"><path d="M24.965 24.38h-18.132c-1.366 0-2.478-1.113-2.478-2.478v-11.806c0-1.364 1.111-2.478 2.478-2.478h18.132c1.366 0 2.478 1.113 2.478 2.478v11.806c0 1.364-1.11 2.478-2.478 2.478zM6.833 10.097v11.806h18.134l-0.002-11.806h-18.132zM2.478 28.928h5.952c0.684 0 1.238-0.554 1.238-1.239 0-0.684-0.554-1.238-1.238-1.238h-5.952v-5.802c0-0.684-0.554-1.239-1.238-1.239s-1.239 0.556-1.239 1.239v5.802c0 1.365 1.111 2.478 2.478 2.478zM30.761 19.412c-0.684 0-1.238 0.554-1.238 1.238v5.801h-5.951c-0.686 0-1.239 0.554-1.239 1.238 0 0.686 0.554 1.239 1.239 1.239h5.951c1.366 0 2.478-1.111 2.478-2.478v-5.801c0-0.683-0.554-1.238-1.239-1.238zM0 5.55v5.802c0 0.683 0.554 1.238 1.238 1.238s1.238-0.555 1.238-1.238v-5.802h5.952c0.684 0 1.238-0.554 1.238-1.238s-0.554-1.238-1.238-1.238h-5.951c-1.366-0.001-2.478 1.111-2.478 2.476zM32 11.35v-5.801c0-1.365-1.11-2.478-2.478-2.478h-5.951c-0.686 0-1.239 0.554-1.239 1.238s0.554 1.238 1.239 1.238h5.951v5.801c0 0.683 0.554 1.237 1.238 1.237 0.686 0.002 1.239-0.553 1.239-1.236z"></path></svg>'},574:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 33"><path d="M6.667 28h-5.333c-0.8 0-1.333-0.533-1.333-1.333v-5.333c0-0.8 0.533-1.333 1.333-1.333s1.333 0.533 1.333 1.333v4h4c0.8 0 1.333 0.533 1.333 1.333s-0.533 1.333-1.333 1.333zM30.667 28h-5.333c-0.8 0-1.333-0.533-1.333-1.333s0.533-1.333 1.333-1.333h4v-4c0-0.8 0.533-1.333 1.333-1.333s1.333 0.533 1.333 1.333v5.333c0 0.8-0.533 1.333-1.333 1.333zM30.667 12c-0.8 0-1.333-0.533-1.333-1.333v-4h-4c-0.8 0-1.333-0.533-1.333-1.333s0.533-1.333 1.333-1.333h5.333c0.8 0 1.333 0.533 1.333 1.333v5.333c0 0.8-0.533 1.333-1.333 1.333zM1.333 12c-0.8 0-1.333-0.533-1.333-1.333v-5.333c0-0.8 0.533-1.333 1.333-1.333h5.333c0.8 0 1.333 0.533 1.333 1.333s-0.533 1.333-1.333 1.333h-4v4c0 0.8-0.533 1.333-1.333 1.333z"></path></svg>'},182:o=>{o.exports='<svg version="1.1" viewBox="0 0 22 22"><svg x="7" y="1"><circle class="diplayer-loading-dot diplayer-loading-dot-0" cx="4" cy="4" r="2"></circle></svg><svg x="11" y="3"><circle class="diplayer-loading-dot diplayer-loading-dot-1" cx="4" cy="4" r="2"></circle></svg><svg x="13" y="7"><circle class="diplayer-loading-dot diplayer-loading-dot-2" cx="4" cy="4" r="2"></circle></svg><svg x="11" y="11"><circle class="diplayer-loading-dot diplayer-loading-dot-3" cx="4" cy="4" r="2"></circle></svg><svg x="7" y="13"><circle class="diplayer-loading-dot diplayer-loading-dot-4" cx="4" cy="4" r="2"></circle></svg><svg x="3" y="11"><circle class="diplayer-loading-dot diplayer-loading-dot-5" cx="4" cy="4" r="2"></circle></svg><svg x="1" y="7"><circle class="diplayer-loading-dot diplayer-loading-dot-6" cx="4" cy="4" r="2"></circle></svg><svg x="3" y="3"><circle class="diplayer-loading-dot diplayer-loading-dot-7" cx="4" cy="4" r="2"></circle></svg></svg>'},965:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M19.357 2.88c1.749 0 3.366 0.316 4.851 0.946 1.485 0.632 2.768 1.474 3.845 2.533s1.922 2.279 2.532 3.661c0.611 1.383 0.915 2.829 0.915 4.334 0 1.425-0.304 2.847-0.915 4.271-0.611 1.425-1.587 2.767-2.928 4.028-0.855 0.813-1.811 1.607-2.869 2.38s-2.136 1.465-3.233 2.075c-1.099 0.61-2.198 1.098-3.296 1.465-1.098 0.366-2.115 0.549-3.051 0.549-1.343 0-2.441-0.438-3.296-1.311-0.854-0.876-1.281-2.41-1.281-4.608 0-0.366 0.020-0.773 0.060-1.221s0.062-0.895 0.062-1.343c0-0.773-0.183-1.353-0.55-1.738-0.366-0.387-0.793-0.58-1.281-0.58-0.652 0-1.21 0.295-1.678 0.886s-0.926 1.23-1.373 1.921c-0.447 0.693-0.905 1.334-1.372 1.923s-1.028 0.886-1.679 0.886c-0.529 0-1.048-0.427-1.556-1.282s-0.763-2.259-0.763-4.212c0-2.197 0.529-4.241 1.587-6.133s2.462-3.529 4.21-4.912c1.75-1.383 3.762-2.471 6.041-3.264 2.277-0.796 4.617-1.212 7.018-1.253zM7.334 15.817c0.569 0 1.047-0.204 1.434-0.611s0.579-0.875 0.579-1.404c0-0.569-0.193-1.047-0.579-1.434s-0.864-0.579-1.434-0.579c-0.529 0-0.987 0.193-1.373 0.579s-0.58 0.864-0.58 1.434c0 0.53 0.194 0.998 0.58 1.404 0.388 0.407 0.845 0.611 1.373 0.611zM12.216 11.79c0.691 0 1.292-0.254 1.8-0.763s0.762-1.107 0.762-1.8c0-0.732-0.255-1.343-0.762-1.831-0.509-0.489-1.109-0.732-1.8-0.732-0.732 0-1.342 0.244-1.831 0.732-0.488 0.488-0.732 1.098-0.732 1.831 0 0.693 0.244 1.292 0.732 1.8s1.099 0.763 1.831 0.763zM16.366 25.947c0.692 0 1.282-0.214 1.77-0.64s0.732-0.987 0.732-1.678-0.244-1.261-0.732-1.709c-0.489-0.448-1.078-0.671-1.77-0.671-0.65 0-1.21 0.223-1.678 0.671s-0.702 1.018-0.702 1.709c0 0.692 0.234 1.25 0.702 1.678s1.027 0.64 1.678 0.64zM19.113 9.592c0.651 0 1.129-0.203 1.433-0.611 0.305-0.406 0.459-0.874 0.459-1.404 0-0.488-0.154-0.947-0.459-1.373-0.304-0.427-0.782-0.641-1.433-0.641-0.529 0-1.008 0.193-1.434 0.58s-0.64 0.865-0.64 1.434c0 0.571 0.213 1.049 0.64 1.434 0.427 0.389 0.905 0.581 1.434 0.581zM24.848 12.826c0.57 0 1.067-0.213 1.495-0.64 0.427-0.427 0.64-0.947 0.64-1.556 0-0.57-0.214-1.068-0.64-1.495-0.428-0.427-0.927-0.64-1.495-0.64-0.611 0-1.129 0.213-1.555 0.64-0.428 0.427-0.642 0.926-0.642 1.495 0 0.611 0.213 1.129 0.642 1.556s0.947 0.64 1.555 0.64z"></path></svg>'},74:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 17 32"><path d="M14.080 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048zM2.88 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048z"></path></svg>'},730:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 32"><path d="M15.552 15.168q0.448 0.32 0.448 0.832 0 0.448-0.448 0.768l-13.696 8.512q-0.768 0.512-1.312 0.192t-0.544-1.28v-16.448q0-0.96 0.544-1.28t1.312 0.192z"></path></svg>'},428:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22 16l-10.105-10.6-1.895 1.987 8.211 8.613-8.211 8.612 1.895 1.988 8.211-8.613z"></path></svg>'},254:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M13.725 30l3.9-5.325-3.9-1.125v6.45zM0 17.5l11.050 3.35 13.6-11.55-10.55 12.425 11.8 3.65 6.1-23.375-32 15.5z"></path></svg>'},934:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 28"><path d="M28.633 17.104c0.035 0.21 0.026 0.463-0.026 0.76s-0.14 0.598-0.262 0.904c-0.122 0.306-0.271 0.581-0.445 0.825s-0.367 0.419-0.576 0.524c-0.209 0.105-0.393 0.157-0.55 0.157s-0.332-0.035-0.524-0.105c-0.175-0.052-0.393-0.1-0.655-0.144s-0.528-0.052-0.799-0.026c-0.271 0.026-0.541 0.083-0.812 0.17s-0.502 0.236-0.694 0.445c-0.419 0.437-0.664 0.934-0.734 1.493s0.009 1.092 0.236 1.598c0.175 0.349 0.148 0.699-0.079 1.048-0.105 0.14-0.271 0.284-0.498 0.432s-0.476 0.284-0.747 0.406-0.555 0.218-0.851 0.288c-0.297 0.070-0.559 0.105-0.786 0.105-0.157 0-0.306-0.061-0.445-0.183s-0.236-0.253-0.288-0.393h-0.026c-0.192-0.541-0.52-1.009-0.982-1.402s-1-0.589-1.611-0.589c-0.594 0-1.131 0.197-1.611 0.589s-0.816 0.851-1.009 1.375c-0.087 0.21-0.218 0.362-0.393 0.458s-0.367 0.144-0.576 0.144c-0.244 0-0.52-0.044-0.825-0.131s-0.611-0.197-0.917-0.327c-0.306-0.131-0.581-0.284-0.825-0.458s-0.428-0.349-0.55-0.524c-0.087-0.122-0.135-0.266-0.144-0.432s0.057-0.397 0.197-0.694c0.192-0.402 0.266-0.86 0.223-1.375s-0.266-0.991-0.668-1.428c-0.244-0.262-0.541-0.432-0.891-0.511s-0.681-0.109-0.995-0.092c-0.367 0.017-0.742 0.087-1.127 0.21-0.244 0.070-0.489 0.052-0.734-0.052-0.192-0.070-0.371-0.231-0.537-0.485s-0.314-0.533-0.445-0.838c-0.131-0.306-0.231-0.62-0.301-0.943s-0.087-0.59-0.052-0.799c0.052-0.384 0.227-0.629 0.524-0.734 0.524-0.21 0.995-0.555 1.415-1.035s0.629-1.017 0.629-1.611c0-0.611-0.21-1.144-0.629-1.598s-0.891-0.786-1.415-0.996c-0.157-0.052-0.288-0.179-0.393-0.38s-0.157-0.406-0.157-0.616c0-0.227 0.035-0.48 0.105-0.76s0.162-0.55 0.275-0.812 0.244-0.502 0.393-0.72c0.148-0.218 0.31-0.38 0.485-0.485 0.14-0.087 0.275-0.122 0.406-0.105s0.275 0.052 0.432 0.105c0.524 0.21 1.070 0.275 1.637 0.197s1.070-0.327 1.506-0.747c0.21-0.209 0.362-0.467 0.458-0.773s0.157-0.607 0.183-0.904c0.026-0.297 0.026-0.568 0-0.812s-0.048-0.419-0.065-0.524c-0.035-0.105-0.066-0.227-0.092-0.367s-0.013-0.262 0.039-0.367c0.105-0.244 0.293-0.458 0.563-0.642s0.563-0.336 0.878-0.458c0.314-0.122 0.62-0.214 0.917-0.275s0.533-0.092 0.707-0.092c0.227 0 0.406 0.074 0.537 0.223s0.223 0.301 0.275 0.458c0.192 0.471 0.507 0.886 0.943 1.244s0.952 0.537 1.546 0.537c0.611 0 1.153-0.17 1.624-0.511s0.803-0.773 0.996-1.297c0.070-0.14 0.179-0.284 0.327-0.432s0.301-0.223 0.458-0.223c0.244 0 0.511 0.035 0.799 0.105s0.572 0.166 0.851 0.288c0.279 0.122 0.537 0.279 0.773 0.472s0.423 0.402 0.563 0.629c0.087 0.14 0.113 0.293 0.079 0.458s-0.070 0.284-0.105 0.354c-0.227 0.506-0.297 1.039-0.21 1.598s0.341 1.048 0.76 1.467c0.419 0.419 0.934 0.651 1.546 0.694s1.179-0.057 1.703-0.301c0.14-0.087 0.31-0.122 0.511-0.105s0.371 0.096 0.511 0.236c0.262 0.244 0.493 0.616 0.694 1.113s0.336 1 0.406 1.506c0.035 0.297-0.013 0.528-0.144 0.694s-0.266 0.275-0.406 0.327c-0.542 0.192-1.004 0.528-1.388 1.009s-0.576 1.026-0.576 1.637c0 0.594 0.162 1.113 0.485 1.559s0.747 0.764 1.27 0.956c0.122 0.070 0.227 0.14 0.314 0.21 0.192 0.157 0.323 0.358 0.393 0.602v0zM16.451 19.462c0.786 0 1.528-0.149 2.227-0.445s1.305-0.707 1.821-1.231c0.515-0.524 0.921-1.131 1.218-1.821s0.445-1.428 0.445-2.214c0-0.786-0.148-1.524-0.445-2.214s-0.703-1.292-1.218-1.808c-0.515-0.515-1.122-0.921-1.821-1.218s-1.441-0.445-2.227-0.445c-0.786 0-1.524 0.148-2.214 0.445s-1.292 0.703-1.808 1.218c-0.515 0.515-0.921 1.118-1.218 1.808s-0.445 1.428-0.445 2.214c0 0.786 0.149 1.524 0.445 2.214s0.703 1.297 1.218 1.821c0.515 0.524 1.118 0.934 1.808 1.231s1.428 0.445 2.214 0.445v0z"></path></svg>'},410:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M26.667 5.333h-21.333c-0 0-0.001 0-0.001 0-1.472 0-2.666 1.194-2.666 2.666 0 0 0 0.001 0 0.001v-0 16c0 0 0 0.001 0 0.001 0 1.472 1.194 2.666 2.666 2.666 0 0 0.001 0 0.001 0h21.333c0 0 0.001 0 0.001 0 1.472 0 2.666-1.194 2.666-2.666 0-0 0-0.001 0-0.001v0-16c0-0 0-0.001 0-0.001 0-1.472-1.194-2.666-2.666-2.666-0 0-0.001 0-0.001 0h0zM5.333 16h5.333v2.667h-5.333v-2.667zM18.667 24h-13.333v-2.667h13.333v2.667zM26.667 24h-5.333v-2.667h5.333v2.667zM26.667 18.667h-13.333v-2.667h13.333v2.667z"></path></svg>'},644:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 21 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528z"></path></svg>'},324:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 21 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8z"></path></svg>'},437:o=>{o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 21 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528zM25.152 16q0 2.72-1.536 5.056t-4 3.36q-0.256 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.704 0.672-1.056 1.024-0.512 1.376-0.8 1.312-0.96 2.048-2.4t0.736-3.104-0.736-3.104-2.048-2.4q-0.352-0.288-1.376-0.8-0.672-0.352-0.672-1.056 0-0.448 0.32-0.8t0.8-0.352q0.224 0 0.48 0.096 2.496 1.056 4 3.36t1.536 5.056z"></path></svg>'},897:(o,l,s)=>{var c=typeof self<"u"?self:typeof window<"u"?window:s.g!==void 0?s.g:{},h=Object.create(c),u=/["&'<>]/;function f(A){return typeof A!="string"&&(A=A==null?"":typeof A=="function"?f(A.call(A)):JSON.stringify(A)),A}h.$escape=function(A){return function(b){var v=""+b,S=u.exec(v);if(!S)return b;var O="",B=void 0,_=void 0,j=void 0;for(B=S.index,_=0;B<v.length;B++){switch(v.charCodeAt(B)){case 34:j="&#34;";break;case 38:j="&#38;";break;case 39:j="&#39;";break;case 60:j="&#60;";break;case 62:j="&#62;";break;default:continue}_!==B&&(O+=v.substring(_,B)),_=B+1,O+=j}return _!==B?O+v.substring(_,B):O}(f(A))},h.$each=function(A,b){if(Array.isArray(A))for(var v=0,S=A.length;v<S;v++)b(A[v],v);else for(var O in A)b(A[O],O)},o.exports=h},471:(o,l,s)=>{o.exports=s(897)},352:o=>{o.exports=function(l){var s=[];return s.toString=function(){return this.map(function(c){var h="",u=c[5]!==void 0;return c[4]&&(h+="@supports (".concat(c[4],") {")),c[2]&&(h+="@media ".concat(c[2]," {")),u&&(h+="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {")),h+=l(c),u&&(h+="}"),c[2]&&(h+="}"),c[4]&&(h+="}"),h}).join("")},s.i=function(c,h,u,f,A){typeof c=="string"&&(c=[[null,c,void 0]]);var b={};if(u)for(var v=0;v<this.length;v++){var S=this[v][0];S!=null&&(b[S]=!0)}for(var O=0;O<c.length;O++){var B=[].concat(c[O]);u&&b[B[0]]||(A!==void 0&&(B[5]===void 0||(B[1]="@layer".concat(B[5].length>0?" ".concat(B[5]):""," {").concat(B[1],"}")),B[5]=A),h&&(B[2]&&(B[1]="@media ".concat(B[2]," {").concat(B[1],"}")),B[2]=h),f&&(B[4]?(B[1]="@supports (".concat(B[4],") {").concat(B[1],"}"),B[4]=f):B[4]="".concat(f)),s.push(B))}},s}},80:o=>{o.exports=function(l,s){return s||(s={}),l&&(l=String(l.__esModule?l.default:l),/^['"].*['"]$/.test(l)&&(l=l.slice(1,-1)),s.hash&&(l+=s.hash),/["'() \t\n]|(%20)/.test(l)||s.needQuotes?'"'.concat(l.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):l)}},415:o=>{o.exports=function(l){var s=l[1],c=l[3];if(!c)return s;if(typeof btoa=="function"){var h=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(h),f="/*# ".concat(u," */");return[s].concat([f]).join(`
4822
4822
  `)}return[s].join(`
4823
- `)}},937:o=>{function l(s){return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},l(s)}o.exports=(typeof self>"u"?"undefined":l(self))=="object"?self.FormData:window.FormData},831:o=>{o.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg=="}},r={};function i(o){var l=r[o];if(l!==void 0)return l.exports;var s=r[o]={id:o,exports:{}};return t[o](s,s.exports,i),s.exports}i.m=t,i.n=o=>{var l=o&&o.__esModule?()=>o.default:()=>o;return i.d(l,{a:l}),l},i.d=(o,l)=>{for(var s in l)i.o(l,s)&&!i.o(o,s)&&Object.defineProperty(o,s,{enumerable:!0,get:l[s]})},i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),i.o=(o,l)=>Object.prototype.hasOwnProperty.call(o,l),i.b=document.baseURI||self.location.href,i.nc=void 0;var a={};return(()=>{i.d(a,{default:()=>gx});var o=i(856),l=i.n(o),s=i(470),c=i.n(s),h=i(370),u=i.n(h),f=i(458),A=i.n(f),b=i(278),v=i.n(b),S=i(488),O=i.n(S),B=i(685),T={};T.styleTagTransform=O(),T.setAttributes=A(),T.insert=u().bind(null,"head"),T.domAPI=c(),T.insertStyleElement=v(),l()(B.Z,T),B.Z&&B.Z.locals&&B.Z.locals;function j(d){return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},j(d)}function M(d,m){this.name="AggregateError",this.errors=d,this.message=m||""}M.prototype=Error.prototype;function k(d){return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},k(d)}var F=setTimeout;function W(d){return!!(d&&d.length!==void 0)}function ne(){}function L(d){if(!(this instanceof L))throw new TypeError("Promises must be constructed via new");if(typeof d!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],V(d,this)}function Q(d,m){for(;d._state===3;)d=d._value;d._state!==0?(d._handled=!0,L._immediateFn(function(){var x=d._state===1?m.onFulfilled:m.onRejected;if(x!==null){var p;try{p=x(d._value)}catch(y){return void ye(m.promise,y)}ue(m.promise,p)}else(d._state===1?ue:ye)(m.promise,d._value)})):d._deferreds.push(m)}function ue(d,m){try{if(m===d)throw new TypeError("A promise cannot be resolved with itself.");if(m&&(k(m)==="object"||typeof m=="function")){var x=m.then;if(m instanceof L)return d._state=3,d._value=m,void ee(d);if(typeof x=="function")return void V((p=x,y=m,function(){p.apply(y,arguments)}),d)}d._state=1,d._value=m,ee(d)}catch(g){ye(d,g)}var p,y}function ye(d,m){d._state=2,d._value=m,ee(d)}function ee(d){d._state===2&&d._deferreds.length===0&&L._immediateFn(function(){d._handled||L._unhandledRejectionFn(d._value)});for(var m=0,x=d._deferreds.length;m<x;m++)Q(d,d._deferreds[m]);d._deferreds=null}function H(d,m,x){this.onFulfilled=typeof d=="function"?d:null,this.onRejected=typeof m=="function"?m:null,this.promise=x}function V(d,m){var x=!1;try{d(function(p){x||(x=!0,ue(m,p))},function(p){x||(x=!0,ye(m,p))})}catch(p){if(x)return;x=!0,ye(m,p)}}L.prototype.catch=function(d){return this.then(null,d)},L.prototype.then=function(d,m){var x=new this.constructor(ne);return Q(this,new H(d,m,x)),x},L.prototype.finally=function(d){var m=this.constructor;return this.then(function(x){return m.resolve(d()).then(function(){return x})},function(x){return m.resolve(d()).then(function(){return m.reject(x)})})},L.all=function(d){return new L(function(m,x){if(!W(d))return x(new TypeError("Promise.all accepts an array"));var p=Array.prototype.slice.call(d);if(p.length===0)return m([]);var y=p.length;function g(E,C){try{if(C&&(k(C)==="object"||typeof C=="function")){var D=C.then;if(typeof D=="function")return void D.call(C,function(z){g(E,z)},x)}p[E]=C,--y==0&&m(p)}catch(z){x(z)}}for(var w=0;w<p.length;w++)g(w,p[w])})},L.any=function(d){var m=this;return new m(function(x,p){if(!d||d.length===void 0)return p(new TypeError("Promise.any accepts an array"));var y=Array.prototype.slice.call(d);if(y.length===0)return p();for(var g=[],w=0;w<y.length;w++)try{m.resolve(y[w]).then(x).catch(function(E){g.push(E),g.length===y.length&&p(new M(g,"All promises were rejected"))})}catch(E){p(E)}})},L.allSettled=function(d){return new this(function(m,x){if(!d||d.length===void 0)return x(new TypeError(j(d)+" "+d+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var p=Array.prototype.slice.call(d);if(p.length===0)return m([]);var y=p.length;function g(E,C){if(C&&(j(C)==="object"||typeof C=="function")){var D=C.then;if(typeof D=="function")return void D.call(C,function(z){g(E,z)},function(z){p[E]={status:"rejected",reason:z},--y==0&&m(p)})}p[E]={status:"fulfilled",value:C},--y==0&&m(p)}for(var w=0;w<p.length;w++)g(w,p[w])})},L.resolve=function(d){return d&&k(d)==="object"&&d.constructor===L?d:new L(function(m){m(d)})},L.reject=function(d){return new L(function(m,x){x(d)})},L.race=function(d){return new L(function(m,x){if(!W(d))return x(new TypeError("Promise.race accepts an array"));for(var p=0,y=d.length;p<y;p++)L.resolve(d[p]).then(m,x)})},L._immediateFn=typeof setImmediate=="function"&&function(d){setImmediate(d)}||function(d){F(d,0)},L._unhandledRejectionFn=function(d){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",d)};const ie=L;var Z=/mobile/i.test(window.navigator.userAgent);const $={secondToTime:function(d){if((d=d||0)===0||d===1/0||d.toString()==="NaN")return"00:00";var m=Math.floor(d/3600),x=Math.floor((d-3600*m)/60),p=Math.floor(d-3600*m-60*x);return(m>0?[m,x,p]:[x,p]).map(function(y){return y<10?"0"+y:""+y}).join(":")},getElementViewLeft:function(d){var m=d.offsetLeft,x=d.offsetParent,p=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;x!==null&&x!==d;)m+=x.offsetLeft,x=x.offsetParent;else for(;x!==null;)m+=x.offsetLeft,x=x.offsetParent;return m-p},getBoundingClientRectViewLeft:function(d){var m=window.scrollY||window.pageYOffset||document.body.scrollTop+(document.documentElement&&document.documentElement.scrollTop||0);if(d.getBoundingClientRect){if(typeof this.getBoundingClientRectViewLeft.offset!="number"){var x=document.createElement("div");x.style.cssText="position:absolute;top:0;left:0;",document.body.appendChild(x),this.getBoundingClientRectViewLeft.offset=-x.getBoundingClientRect().top-m,document.body.removeChild(x),x=null}var p=d.getBoundingClientRect(),y=this.getBoundingClientRectViewLeft.offset;return p.left+y}return this.getElementViewLeft(d)},getScrollPosition:function(){return{left:window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},setScrollPosition:function(d){var m=d.left,x=m===void 0?0:m,p=d.top,y=p===void 0?0:p;this.isFirefox?(document.documentElement.scrollLeft=x,document.documentElement.scrollTop=y):window.scrollTo(x,y)},isMobile:Z,isFirefox:/firefox/i.test(window.navigator.userAgent),isChrome:/chrome/i.test(window.navigator.userAgent),isSafari:/safari/i.test(window.navigator.userAgent),storage:{set:function(d,m){localStorage.setItem(d,m)},get:function(d){return localStorage.getItem(d)}},nameMap:{dragStart:Z?"touchstart":"mousedown",dragMove:Z?"touchmove":"mousemove",dragEnd:Z?"touchend":"mouseup"},color2Number:function(d){return d[0]==="#"&&(d=d.substr(1)),d.length===3&&(d="".concat(d[0]).concat(d[0]).concat(d[1]).concat(d[1]).concat(d[2]).concat(d[2])),parseInt(d,16)+0&16777215},number2Color:function(d){return"#"+("00000"+d.toString(16)).slice(-6)},number2Type:function(d){switch(d){case 0:default:return"right";case 1:return"top";case 2:return"bottom"}}};function I(d,m){return function(){return d.apply(m,arguments)}}function fe(d){return fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},fe(d)}var we,P=Object.prototype.toString,Be=Object.getPrototypeOf,Me=(we=Object.create(null),function(d){var m=P.call(d);return we[m]||(we[m]=m.slice(8,-1).toLowerCase())}),ke=function(d){return d=d.toLowerCase(),function(m){return Me(m)===d}},Ue=function(d){return function(m){return fe(m)===d}},ze=Array.isArray,Re=Ue("undefined"),Pe=ke("ArrayBuffer"),en=Ue("string"),Je=Ue("function"),kn=Ue("number"),st=function(d){return d!==null&&fe(d)==="object"},vn=function(d){if(Me(d)!=="object")return!1;var m=Be(d);return!(m!==null&&m!==Object.prototype&&Object.getPrototypeOf(m)!==null||Symbol.toStringTag in d||Symbol.iterator in d)},zn=ke("Date"),ut=ke("File"),Ct=ke("Blob"),Fn=ke("FileList"),St=ke("URLSearchParams");function Rn(d,m){var x,p,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g=y.allOwnKeys,w=g!==void 0&&g;if(d!=null)if(fe(d)!=="object"&&(d=[d]),ze(d))for(x=0,p=d.length;x<p;x++)m.call(null,d[x],x,d);else{var E,C=w?Object.getOwnPropertyNames(d):Object.keys(d),D=C.length;for(x=0;x<D;x++)E=C[x],m.call(null,d[E],E,d)}}function Vn(d,m){m=m.toLowerCase();for(var x,p=Object.keys(d),y=p.length;y-- >0;)if(m===(x=p[y]).toLowerCase())return x;return null}var ct,Bt,pt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:_r,N=function(d){return!Re(d)&&d!==pt},J=(ct=typeof Uint8Array<"u"&&Be(Uint8Array),function(d){return ct&&d instanceof ct}),he=ke("HTMLFormElement"),be=(Bt=Object.prototype.hasOwnProperty,function(d,m){return Bt.call(d,m)}),Oe=ke("RegExp"),Ze=function(d,m){var x=Object.getOwnPropertyDescriptors(d),p={};Rn(x,function(y,g){m(y,g,d)!==!1&&(p[g]=y)}),Object.defineProperties(d,p)};const R={isArray:ze,isArrayBuffer:Pe,isBuffer:function(d){return d!==null&&!Re(d)&&d.constructor!==null&&!Re(d.constructor)&&Je(d.constructor.isBuffer)&&d.constructor.isBuffer(d)},isFormData:function(d){var m="[object FormData]";return d&&(typeof FormData=="function"&&d instanceof FormData||P.call(d)===m||Je(d.toString)&&d.toString()===m)},isArrayBufferView:function(d){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(d):d&&d.buffer&&Pe(d.buffer)},isString:en,isNumber:kn,isBoolean:function(d){return d===!0||d===!1},isObject:st,isPlainObject:vn,isUndefined:Re,isDate:zn,isFile:ut,isBlob:Ct,isRegExp:Oe,isFunction:Je,isStream:function(d){return st(d)&&Je(d.pipe)},isURLSearchParams:St,isTypedArray:J,isFileList:Fn,forEach:Rn,merge:function d(){for(var m=N(this)&&this||{},x=m.caseless,p={},y=function(E,C){var D=x&&Vn(p,C)||C;vn(p[D])&&vn(E)?p[D]=d(p[D],E):vn(E)?p[D]=d({},E):ze(E)?p[D]=E.slice():p[D]=E},g=0,w=arguments.length;g<w;g++)arguments[g]&&Rn(arguments[g],y);return p},extend:function(d,m,x){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=p.allOwnKeys;return Rn(m,function(g,w){x&&Je(g)?d[w]=I(g,x):d[w]=g},{allOwnKeys:y}),d},trim:function(d){return d.trim?d.trim():d.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(d){return d.charCodeAt(0)===65279&&(d=d.slice(1)),d},inherits:function(d,m,x,p){d.prototype=Object.create(m.prototype,p),d.prototype.constructor=d,Object.defineProperty(d,"super",{value:m.prototype}),x&&Object.assign(d.prototype,x)},toFlatObject:function(d,m,x,p){var y,g,w,E={};if(m=m||{},d==null)return m;do{for(g=(y=Object.getOwnPropertyNames(d)).length;g-- >0;)w=y[g],p&&!p(w,d,m)||E[w]||(m[w]=d[w],E[w]=!0);d=x!==!1&&Be(d)}while(d&&(!x||x(d,m))&&d!==Object.prototype);return m},kindOf:Me,kindOfTest:ke,endsWith:function(d,m,x){d=String(d),(x===void 0||x>d.length)&&(x=d.length),x-=m.length;var p=d.indexOf(m,x);return p!==-1&&p===x},toArray:function(d){if(!d)return null;if(ze(d))return d;var m=d.length;if(!kn(m))return null;for(var x=new Array(m);m-- >0;)x[m]=d[m];return x},forEachEntry:function(d,m){for(var x,p=(d&&d[Symbol.iterator]).call(d);(x=p.next())&&!x.done;){var y=x.value;m.call(d,y[0],y[1])}},matchAll:function(d,m){for(var x,p=[];(x=d.exec(m))!==null;)p.push(x);return p},isHTMLForm:he,hasOwnProperty:be,hasOwnProp:be,reduceDescriptors:Ze,freezeMethods:function(d){Ze(d,function(m,x){if(Je(d)&&["arguments","caller","callee"].indexOf(x)!==-1)return!1;var p=d[x];Je(p)&&(m.enumerable=!1,"writable"in m?m.writable=!1:m.set||(m.set=function(){throw Error("Can not rewrite read-only method '"+x+"'")}))})},toObjectSet:function(d,m){var x={},p=function(y){y.forEach(function(g){x[g]=!0})};return ze(d)?p(d):p(String(d).split(m)),x},toCamelCase:function(d){return d.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(m,x,p){return x.toUpperCase()+p})},noop:function(){},toFiniteNumber:function(d,m){return d=+d,Number.isFinite(d)?d:m},findKey:Vn,global:pt,isContextDefined:N,toJSONObject:function(d){var m=new Array(10);return function x(p,y){if(st(p)){if(m.indexOf(p)>=0)return;if(!("toJSON"in p)){m[y]=p;var g=ze(p)?[]:{};return Rn(p,function(w,E){var C=x(w,y+1);!Re(C)&&(g[E]=C)}),m[y]=void 0,g}}return p}(d,0)}};function Xe(d,m,x,p,y){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=d,this.name="AxiosError",m&&(this.code=m),x&&(this.config=x),p&&(this.request=p),y&&(this.response=y)}R.inherits(Xe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var On=Xe.prototype,Pn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(d){Pn[d]={value:d}}),Object.defineProperties(Xe,Pn),Object.defineProperty(On,"isAxiosError",{value:!0}),Xe.from=function(d,m,x,p,y,g){var w=Object.create(On);return R.toFlatObject(d,w,function(E){return E!==Error.prototype},function(E){return E!=="isAxiosError"}),Xe.call(w,d.message,m,x,p,y),w.cause=d,w.name=d.name,g&&Object.assign(w,g),w};const Ae=Xe,_n=i(937);function ln(d){return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},ln(d)}function dt(d){return R.isPlainObject(d)||R.isArray(d)}function Gt(d){return R.endsWith(d,"[]")?d.slice(0,-2):d}function Nn(d,m,x){return d?d.concat(m).map(function(p,y){return p=Gt(p),!x&&y?"["+p+"]":p}).join(x?".":""):m}var er=R.toFlatObject(R,{},null,function(d){return/^is[A-Z]/.test(d)});const Kn=function(d,m,x){if(!R.isObject(d))throw new TypeError("target must be an object");m=m||new(_n||FormData);var p,y=(x=R.toFlatObject(x,{metaTokens:!0,dots:!1,indexes:!1},!1,function(se,le){return!R.isUndefined(le[se])})).metaTokens,g=x.visitor||z,w=x.dots,E=x.indexes,C=(x.Blob||typeof Blob<"u"&&Blob)&&(p=m)&&R.isFunction(p.append)&&p[Symbol.toStringTag]==="FormData"&&p[Symbol.iterator];if(!R.isFunction(g))throw new TypeError("visitor must be a function");function D(se){if(se===null)return"";if(R.isDate(se))return se.toISOString();if(!C&&R.isBlob(se))throw new Ae("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(se)||R.isTypedArray(se)?C&&typeof Blob=="function"?new Blob([se]):Buffer.from(se):se}function z(se,le,G){var ce=se;if(se&&!G&&ln(se)==="object"){if(R.endsWith(le,"{}"))le=y?le:le.slice(0,-2),se=JSON.stringify(se);else if(R.isArray(se)&&function(me){return R.isArray(me)&&!me.some(dt)}(se)||R.isFileList(se)||R.endsWith(le,"[]")&&(ce=R.toArray(se)))return le=Gt(le),ce.forEach(function(me,Qe){!R.isUndefined(me)&&me!==null&&m.append(E===!0?Nn([le],Qe,w):E===null?le:le+"[]",D(me))}),!1}return!!dt(se)||(m.append(Nn(G,le,w),D(se)),!1)}var X=[],oe=Object.assign(er,{defaultVisitor:z,convertValue:D,isVisitable:dt});if(!R.isObject(d))throw new TypeError("data must be an object");return function se(le,G){if(!R.isUndefined(le)){if(X.indexOf(le)!==-1)throw Error("Circular reference detected in "+G.join("."));X.push(le),R.forEach(le,function(ce,me){(!(R.isUndefined(ce)||ce===null)&&g.call(m,ce,R.isString(me)?me.trim():me,G,oe))===!0&&se(ce,G?G.concat(me):[me])}),X.pop()}}(d),m};function nr(d){var m={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(d).replace(/[!'()~]|%20|%00/g,function(x){return m[x]})}function li(d,m){this._pairs=[],d&&Kn(d,this,m)}var tr=li.prototype;tr.append=function(d,m){this._pairs.push([d,m])},tr.toString=function(d){var m=d?function(x){return d.call(this,x,nr)}:nr;return this._pairs.map(function(x){return m(x[0])+"="+m(x[1])},"").join("&")};const si=li;function ui(d){return encodeURIComponent(d).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rr(d,m,x){if(!m)return d;var p,y=x&&x.encode||ui,g=x&&x.serialize;if(p=g?g(m,x):R.isURLSearchParams(m)?m.toString():new si(m,x).toString(y)){var w=d.indexOf("#");w!==-1&&(d=d.slice(0,w)),d+=(d.indexOf("?")===-1?"?":"&")+p}return d}function ft(d){return ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},ft(d)}function da(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(ft(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(ft(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),ft(y)==="symbol"?y:String(y)),p)}var y}var ci=function(){function d(){(function(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")})(this,d),this.handlers=[]}var m,x;return m=d,x=[{key:"use",value:function(p,y,g){return this.handlers.push({fulfilled:p,rejected:y,synchronous:!!g&&g.synchronous,runWhen:g?g.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(p){this.handlers[p]&&(this.handlers[p]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(p){R.forEach(this.handlers,function(y){y!==null&&p(y)})}}],x&&da(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const pi=ci,di={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fa=typeof URLSearchParams<"u"?URLSearchParams:si,ha=FormData;var _,Y=(typeof navigator>"u"||(_=navigator.product)!=="ReactNative"&&_!=="NativeScript"&&_!=="NS")&&typeof window<"u"&&typeof document<"u",ae=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";const pe={isBrowser:!0,classes:{URLSearchParams:fa,FormData:ha,Blob},isStandardBrowserEnv:Y,isStandardBrowserWebWorkerEnv:ae,protocols:["http","https","file","blob","url","data"]},Ie=function(d){function m(p,y,g,w){var E=p[w++],C=Number.isFinite(+E),D=w>=p.length;return E=!E&&R.isArray(g)?g.length:E,D?(R.hasOwnProp(g,E)?g[E]=[g[E],y]:g[E]=y,!C):(g[E]&&R.isObject(g[E])||(g[E]=[]),m(p,y,g[E],w)&&R.isArray(g[E])&&(g[E]=function(z){var X,oe,se={},le=Object.keys(z),G=le.length;for(X=0;X<G;X++)se[oe=le[X]]=z[oe];return se}(g[E])),!C)}if(R.isFormData(d)&&R.isFunction(d.entries)){var x={};return R.forEachEntry(d,function(p,y){m(function(g){return R.matchAll(/\w+|\[(\w*)]/g,g).map(function(w){return w[0]==="[]"?"":w[1]||w[0]})}(p),y,x,0)}),x}return null};var _e={"Content-Type":void 0},xe={transitional:di,adapter:["xhr","http"],transformRequest:[function(d,m){var x,p=m.getContentType()||"",y=p.indexOf("application/json")>-1,g=R.isObject(d);if(g&&R.isHTMLForm(d)&&(d=new FormData(d)),R.isFormData(d))return y&&y?JSON.stringify(Ie(d)):d;if(R.isArrayBuffer(d)||R.isBuffer(d)||R.isStream(d)||R.isFile(d)||R.isBlob(d))return d;if(R.isArrayBufferView(d))return d.buffer;if(R.isURLSearchParams(d))return m.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),d.toString();if(g){if(p.indexOf("application/x-www-form-urlencoded")>-1)return function(E,C){return Kn(E,new pe.classes.URLSearchParams,Object.assign({visitor:function(D,z,X,oe){return pe.isNode&&R.isBuffer(D)?(this.append(z,D.toString("base64")),!1):oe.defaultVisitor.apply(this,arguments)}},C))}(d,this.formSerializer).toString();if((x=R.isFileList(d))||p.indexOf("multipart/form-data")>-1){var w=this.env&&this.env.FormData;return Kn(x?{"files[]":d}:d,w&&new w,this.formSerializer)}}return g||y?(m.setContentType("application/json",!1),function(E,C,D){if(R.isString(E))try{return(0,JSON.parse)(E),R.trim(E)}catch(z){if(z.name!=="SyntaxError")throw z}return(0,JSON.stringify)(E)}(d)):d}],transformResponse:[function(d){var m=this.transitional||xe.transitional,x=m&&m.forcedJSONParsing,p=this.responseType==="json";if(d&&R.isString(d)&&(x&&!this.responseType||p)){var y=!(m&&m.silentJSONParsing)&&p;try{return JSON.parse(d)}catch(g){if(y)throw g.name==="SyntaxError"?Ae.from(g,Ae.ERR_BAD_RESPONSE,this,null,this.response):g}}return d}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(d){return d>=200&&d<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};R.forEach(["delete","get","head"],function(d){xe.headers[d]={}}),R.forEach(["post","put","patch"],function(d){xe.headers[d]=R.merge(_e)});const ve=xe;var nn=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);function je(d){return je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},je(d)}function qe(d,m){(m==null||m>d.length)&&(m=d.length);for(var x=0,p=new Array(m);x<m;x++)p[x]=d[x];return p}function sn(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(je(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(je(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),je(y)==="symbol"?y:String(y)),p)}var y}var qn=Symbol("internals");function Qn(d){return d&&String(d).trim().toLowerCase()}function pn(d){return d===!1||d==null?d:R.isArray(d)?d.map(pn):String(d)}function Oc(d,m,x,p){return R.isFunction(p)?p.call(this,m,x):R.isString(m)?R.isString(p)?m.indexOf(p)!==-1:R.isRegExp(p)?p.test(m):void 0:void 0}var fi=function(d,m){function x(w){(function(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")})(this,x),w&&this.set(w)}var p,y,g;return p=x,y=[{key:"set",value:function(w,E,C){var D=this;function z(me,Qe,Ye){var Te=Qn(Qe);if(!Te)throw new Error("header name must be a non-empty string");var Xn=R.findKey(D,Te);(!Xn||D[Xn]===void 0||Ye===!0||Ye===void 0&&D[Xn]!==!1)&&(D[Xn||Qe]=pn(me))}var X,oe,se,le,G,ce=function(me,Qe){return R.forEach(me,function(Ye,Te){return z(Ye,Te,Qe)})};return R.isPlainObject(w)||w instanceof this.constructor?ce(w,E):R.isString(w)&&(w=w.trim())&&!/^[-_a-zA-Z]+$/.test(w.trim())?ce((G={},(X=w)&&X.split(`
4824
- `).forEach(function(me){le=me.indexOf(":"),oe=me.substring(0,le).trim().toLowerCase(),se=me.substring(le+1).trim(),!oe||G[oe]&&nn[oe]||(oe==="set-cookie"?G[oe]?G[oe].push(se):G[oe]=[se]:G[oe]=G[oe]?G[oe]+", "+se:se)}),G),E):w!=null&&z(E,w,C),this}},{key:"get",value:function(w,E){if(w=Qn(w)){var C=R.findKey(this,w);if(C){var D=this[C];if(!E)return D;if(E===!0)return function(z){for(var X,oe=Object.create(null),se=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;X=se.exec(z);)oe[X[1]]=X[2];return oe}(D);if(R.isFunction(E))return E.call(this,D,C);if(R.isRegExp(E))return E.exec(D);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(w,E){if(w=Qn(w)){var C=R.findKey(this,w);return!(!C||E&&!Oc(0,this[C],C,E))}return!1}},{key:"delete",value:function(w,E){var C=this,D=!1;function z(X){if(X=Qn(X)){var oe=R.findKey(C,X);!oe||E&&!Oc(0,C[oe],oe,E)||(delete C[oe],D=!0)}}return R.isArray(w)?w.forEach(z):z(w),D}},{key:"clear",value:function(){return Object.keys(this).forEach(this.delete.bind(this))}},{key:"normalize",value:function(w){var E=this,C={};return R.forEach(this,function(D,z){var X=R.findKey(C,z);if(X)return E[X]=pn(D),void delete E[z];var oe=w?function(se){return se.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(le,G,ce){return G.toUpperCase()+ce})}(z):String(z).trim();oe!==z&&delete E[z],E[oe]=pn(D),C[oe]=!0}),this}},{key:"concat",value:function(){for(var w,E=arguments.length,C=new Array(E),D=0;D<E;D++)C[D]=arguments[D];return(w=this.constructor).concat.apply(w,[this].concat(C))}},{key:"toJSON",value:function(w){var E=Object.create(null);return R.forEach(this,function(C,D){C!=null&&C!==!1&&(E[D]=w&&R.isArray(C)?C.join(", "):C)}),E}},{key:Symbol.iterator,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map(function(w){var E,C,D=(C=2,function(z){if(Array.isArray(z))return z}(E=w)||function(z,X){var oe=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(oe!=null){var se,le,G,ce,me=[],Qe=!0,Ye=!1;try{if(G=(oe=oe.call(z)).next,X===0){if(Object(oe)!==oe)return;Qe=!1}else for(;!(Qe=(se=G.call(oe)).done)&&(me.push(se.value),me.length!==X);Qe=!0);}catch(Te){Ye=!0,le=Te}finally{try{if(!Qe&&oe.return!=null&&(ce=oe.return(),Object(ce)!==ce))return}finally{if(Ye)throw le}}return me}}(E,C)||function(z,X){if(z){if(typeof z=="string")return qe(z,X);var oe=Object.prototype.toString.call(z).slice(8,-1);return oe==="Object"&&z.constructor&&(oe=z.constructor.name),oe==="Map"||oe==="Set"?Array.from(z):oe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(oe)?qe(z,X):void 0}}(E,C)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4823
+ `)}},937:o=>{function l(s){return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},l(s)}o.exports=(typeof self>"u"?"undefined":l(self))=="object"?self.FormData:window.FormData},831:o=>{o.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg=="}},r={};function i(o){var l=r[o];if(l!==void 0)return l.exports;var s=r[o]={id:o,exports:{}};return t[o](s,s.exports,i),s.exports}i.m=t,i.n=o=>{var l=o&&o.__esModule?()=>o.default:()=>o;return i.d(l,{a:l}),l},i.d=(o,l)=>{for(var s in l)i.o(l,s)&&!i.o(o,s)&&Object.defineProperty(o,s,{enumerable:!0,get:l[s]})},i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),i.o=(o,l)=>Object.prototype.hasOwnProperty.call(o,l),i.b=document.baseURI||self.location.href,i.nc=void 0;var a={};return(()=>{i.d(a,{default:()=>xx});var o=i(856),l=i.n(o),s=i(470),c=i.n(s),h=i(370),u=i.n(h),f=i(458),A=i.n(f),b=i(278),v=i.n(b),S=i(488),O=i.n(S),B=i(685),_={};_.styleTagTransform=O(),_.setAttributes=A(),_.insert=u().bind(null,"head"),_.domAPI=c(),_.insertStyleElement=v(),l()(B.Z,_),B.Z&&B.Z.locals&&B.Z.locals;function j(d){return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},j(d)}function M(d,m){this.name="AggregateError",this.errors=d,this.message=m||""}M.prototype=Error.prototype;function k(d){return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},k(d)}var F=setTimeout;function W(d){return!!(d&&d.length!==void 0)}function ne(){}function L(d){if(!(this instanceof L))throw new TypeError("Promises must be constructed via new");if(typeof d!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],V(d,this)}function Q(d,m){for(;d._state===3;)d=d._value;d._state!==0?(d._handled=!0,L._immediateFn(function(){var x=d._state===1?m.onFulfilled:m.onRejected;if(x!==null){var p;try{p=x(d._value)}catch(y){return void ye(m.promise,y)}ue(m.promise,p)}else(d._state===1?ue:ye)(m.promise,d._value)})):d._deferreds.push(m)}function ue(d,m){try{if(m===d)throw new TypeError("A promise cannot be resolved with itself.");if(m&&(k(m)==="object"||typeof m=="function")){var x=m.then;if(m instanceof L)return d._state=3,d._value=m,void ee(d);if(typeof x=="function")return void V((p=x,y=m,function(){p.apply(y,arguments)}),d)}d._state=1,d._value=m,ee(d)}catch(g){ye(d,g)}var p,y}function ye(d,m){d._state=2,d._value=m,ee(d)}function ee(d){d._state===2&&d._deferreds.length===0&&L._immediateFn(function(){d._handled||L._unhandledRejectionFn(d._value)});for(var m=0,x=d._deferreds.length;m<x;m++)Q(d,d._deferreds[m]);d._deferreds=null}function H(d,m,x){this.onFulfilled=typeof d=="function"?d:null,this.onRejected=typeof m=="function"?m:null,this.promise=x}function V(d,m){var x=!1;try{d(function(p){x||(x=!0,ue(m,p))},function(p){x||(x=!0,ye(m,p))})}catch(p){if(x)return;x=!0,ye(m,p)}}L.prototype.catch=function(d){return this.then(null,d)},L.prototype.then=function(d,m){var x=new this.constructor(ne);return Q(this,new H(d,m,x)),x},L.prototype.finally=function(d){var m=this.constructor;return this.then(function(x){return m.resolve(d()).then(function(){return x})},function(x){return m.resolve(d()).then(function(){return m.reject(x)})})},L.all=function(d){return new L(function(m,x){if(!W(d))return x(new TypeError("Promise.all accepts an array"));var p=Array.prototype.slice.call(d);if(p.length===0)return m([]);var y=p.length;function g(E,C){try{if(C&&(k(C)==="object"||typeof C=="function")){var D=C.then;if(typeof D=="function")return void D.call(C,function(z){g(E,z)},x)}p[E]=C,--y==0&&m(p)}catch(z){x(z)}}for(var w=0;w<p.length;w++)g(w,p[w])})},L.any=function(d){var m=this;return new m(function(x,p){if(!d||d.length===void 0)return p(new TypeError("Promise.any accepts an array"));var y=Array.prototype.slice.call(d);if(y.length===0)return p();for(var g=[],w=0;w<y.length;w++)try{m.resolve(y[w]).then(x).catch(function(E){g.push(E),g.length===y.length&&p(new M(g,"All promises were rejected"))})}catch(E){p(E)}})},L.allSettled=function(d){return new this(function(m,x){if(!d||d.length===void 0)return x(new TypeError(j(d)+" "+d+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var p=Array.prototype.slice.call(d);if(p.length===0)return m([]);var y=p.length;function g(E,C){if(C&&(j(C)==="object"||typeof C=="function")){var D=C.then;if(typeof D=="function")return void D.call(C,function(z){g(E,z)},function(z){p[E]={status:"rejected",reason:z},--y==0&&m(p)})}p[E]={status:"fulfilled",value:C},--y==0&&m(p)}for(var w=0;w<p.length;w++)g(w,p[w])})},L.resolve=function(d){return d&&k(d)==="object"&&d.constructor===L?d:new L(function(m){m(d)})},L.reject=function(d){return new L(function(m,x){x(d)})},L.race=function(d){return new L(function(m,x){if(!W(d))return x(new TypeError("Promise.race accepts an array"));for(var p=0,y=d.length;p<y;p++)L.resolve(d[p]).then(m,x)})},L._immediateFn=typeof setImmediate=="function"&&function(d){setImmediate(d)}||function(d){F(d,0)},L._unhandledRejectionFn=function(d){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",d)};const ie=L;var Z=/mobile/i.test(window.navigator.userAgent);const $={secondToTime:function(d){if((d=d||0)===0||d===1/0||d.toString()==="NaN")return"00:00";var m=Math.floor(d/3600),x=Math.floor((d-3600*m)/60),p=Math.floor(d-3600*m-60*x);return(m>0?[m,x,p]:[x,p]).map(function(y){return y<10?"0"+y:""+y}).join(":")},getElementViewLeft:function(d){var m=d.offsetLeft,x=d.offsetParent,p=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;x!==null&&x!==d;)m+=x.offsetLeft,x=x.offsetParent;else for(;x!==null;)m+=x.offsetLeft,x=x.offsetParent;return m-p},getBoundingClientRectViewLeft:function(d){var m=window.scrollY||window.pageYOffset||document.body.scrollTop+(document.documentElement&&document.documentElement.scrollTop||0);if(d.getBoundingClientRect){if(typeof this.getBoundingClientRectViewLeft.offset!="number"){var x=document.createElement("div");x.style.cssText="position:absolute;top:0;left:0;",document.body.appendChild(x),this.getBoundingClientRectViewLeft.offset=-x.getBoundingClientRect().top-m,document.body.removeChild(x),x=null}var p=d.getBoundingClientRect(),y=this.getBoundingClientRectViewLeft.offset;return p.left+y}return this.getElementViewLeft(d)},getScrollPosition:function(){return{left:window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},setScrollPosition:function(d){var m=d.left,x=m===void 0?0:m,p=d.top,y=p===void 0?0:p;this.isFirefox?(document.documentElement.scrollLeft=x,document.documentElement.scrollTop=y):window.scrollTo(x,y)},isMobile:Z,isFirefox:/firefox/i.test(window.navigator.userAgent),isChrome:/chrome/i.test(window.navigator.userAgent),isSafari:/safari/i.test(window.navigator.userAgent),storage:{set:function(d,m){localStorage.setItem(d,m)},get:function(d){return localStorage.getItem(d)}},nameMap:{dragStart:Z?"touchstart":"mousedown",dragMove:Z?"touchmove":"mousemove",dragEnd:Z?"touchend":"mouseup"},color2Number:function(d){return d[0]==="#"&&(d=d.substr(1)),d.length===3&&(d="".concat(d[0]).concat(d[0]).concat(d[1]).concat(d[1]).concat(d[2]).concat(d[2])),parseInt(d,16)+0&16777215},number2Color:function(d){return"#"+("00000"+d.toString(16)).slice(-6)},number2Type:function(d){switch(d){case 0:default:return"right";case 1:return"top";case 2:return"bottom"}}};function I(d,m){return function(){return d.apply(m,arguments)}}function fe(d){return fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},fe(d)}var we,P=Object.prototype.toString,Be=Object.getPrototypeOf,Me=(we=Object.create(null),function(d){var m=P.call(d);return we[m]||(we[m]=m.slice(8,-1).toLowerCase())}),ke=function(d){return d=d.toLowerCase(),function(m){return Me(m)===d}},$e=function(d){return function(m){return fe(m)===d}},ze=Array.isArray,Ne=$e("undefined"),Pe=ke("ArrayBuffer"),en=$e("string"),Je=$e("function"),kn=$e("number"),st=function(d){return d!==null&&fe(d)==="object"},vn=function(d){if(Me(d)!=="object")return!1;var m=Be(d);return!(m!==null&&m!==Object.prototype&&Object.getPrototypeOf(m)!==null||Symbol.toStringTag in d||Symbol.iterator in d)},zn=ke("Date"),ut=ke("File"),Ct=ke("Blob"),Fn=ke("FileList"),St=ke("URLSearchParams");function Rn(d,m){var x,p,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g=y.allOwnKeys,w=g!==void 0&&g;if(d!=null)if(fe(d)!=="object"&&(d=[d]),ze(d))for(x=0,p=d.length;x<p;x++)m.call(null,d[x],x,d);else{var E,C=w?Object.getOwnPropertyNames(d):Object.keys(d),D=C.length;for(x=0;x<D;x++)E=C[x],m.call(null,d[E],E,d)}}function Vn(d,m){m=m.toLowerCase();for(var x,p=Object.keys(d),y=p.length;y-- >0;)if(m===(x=p[y]).toLowerCase())return x;return null}var ct,Bt,pt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:_r,N=function(d){return!Ne(d)&&d!==pt},J=(ct=typeof Uint8Array<"u"&&Be(Uint8Array),function(d){return ct&&d instanceof ct}),he=ke("HTMLFormElement"),be=(Bt=Object.prototype.hasOwnProperty,function(d,m){return Bt.call(d,m)}),Oe=ke("RegExp"),Ze=function(d,m){var x=Object.getOwnPropertyDescriptors(d),p={};Rn(x,function(y,g){m(y,g,d)!==!1&&(p[g]=y)}),Object.defineProperties(d,p)};const R={isArray:ze,isArrayBuffer:Pe,isBuffer:function(d){return d!==null&&!Ne(d)&&d.constructor!==null&&!Ne(d.constructor)&&Je(d.constructor.isBuffer)&&d.constructor.isBuffer(d)},isFormData:function(d){var m="[object FormData]";return d&&(typeof FormData=="function"&&d instanceof FormData||P.call(d)===m||Je(d.toString)&&d.toString()===m)},isArrayBufferView:function(d){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(d):d&&d.buffer&&Pe(d.buffer)},isString:en,isNumber:kn,isBoolean:function(d){return d===!0||d===!1},isObject:st,isPlainObject:vn,isUndefined:Ne,isDate:zn,isFile:ut,isBlob:Ct,isRegExp:Oe,isFunction:Je,isStream:function(d){return st(d)&&Je(d.pipe)},isURLSearchParams:St,isTypedArray:J,isFileList:Fn,forEach:Rn,merge:function d(){for(var m=N(this)&&this||{},x=m.caseless,p={},y=function(E,C){var D=x&&Vn(p,C)||C;vn(p[D])&&vn(E)?p[D]=d(p[D],E):vn(E)?p[D]=d({},E):ze(E)?p[D]=E.slice():p[D]=E},g=0,w=arguments.length;g<w;g++)arguments[g]&&Rn(arguments[g],y);return p},extend:function(d,m,x){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=p.allOwnKeys;return Rn(m,function(g,w){x&&Je(g)?d[w]=I(g,x):d[w]=g},{allOwnKeys:y}),d},trim:function(d){return d.trim?d.trim():d.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(d){return d.charCodeAt(0)===65279&&(d=d.slice(1)),d},inherits:function(d,m,x,p){d.prototype=Object.create(m.prototype,p),d.prototype.constructor=d,Object.defineProperty(d,"super",{value:m.prototype}),x&&Object.assign(d.prototype,x)},toFlatObject:function(d,m,x,p){var y,g,w,E={};if(m=m||{},d==null)return m;do{for(g=(y=Object.getOwnPropertyNames(d)).length;g-- >0;)w=y[g],p&&!p(w,d,m)||E[w]||(m[w]=d[w],E[w]=!0);d=x!==!1&&Be(d)}while(d&&(!x||x(d,m))&&d!==Object.prototype);return m},kindOf:Me,kindOfTest:ke,endsWith:function(d,m,x){d=String(d),(x===void 0||x>d.length)&&(x=d.length),x-=m.length;var p=d.indexOf(m,x);return p!==-1&&p===x},toArray:function(d){if(!d)return null;if(ze(d))return d;var m=d.length;if(!kn(m))return null;for(var x=new Array(m);m-- >0;)x[m]=d[m];return x},forEachEntry:function(d,m){for(var x,p=(d&&d[Symbol.iterator]).call(d);(x=p.next())&&!x.done;){var y=x.value;m.call(d,y[0],y[1])}},matchAll:function(d,m){for(var x,p=[];(x=d.exec(m))!==null;)p.push(x);return p},isHTMLForm:he,hasOwnProperty:be,hasOwnProp:be,reduceDescriptors:Ze,freezeMethods:function(d){Ze(d,function(m,x){if(Je(d)&&["arguments","caller","callee"].indexOf(x)!==-1)return!1;var p=d[x];Je(p)&&(m.enumerable=!1,"writable"in m?m.writable=!1:m.set||(m.set=function(){throw Error("Can not rewrite read-only method '"+x+"'")}))})},toObjectSet:function(d,m){var x={},p=function(y){y.forEach(function(g){x[g]=!0})};return ze(d)?p(d):p(String(d).split(m)),x},toCamelCase:function(d){return d.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(m,x,p){return x.toUpperCase()+p})},noop:function(){},toFiniteNumber:function(d,m){return d=+d,Number.isFinite(d)?d:m},findKey:Vn,global:pt,isContextDefined:N,toJSONObject:function(d){var m=new Array(10);return function x(p,y){if(st(p)){if(m.indexOf(p)>=0)return;if(!("toJSON"in p)){m[y]=p;var g=ze(p)?[]:{};return Rn(p,function(w,E){var C=x(w,y+1);!Ne(C)&&(g[E]=C)}),m[y]=void 0,g}}return p}(d,0)}};function Xe(d,m,x,p,y){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=d,this.name="AxiosError",m&&(this.code=m),x&&(this.config=x),p&&(this.request=p),y&&(this.response=y)}R.inherits(Xe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var On=Xe.prototype,Pn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(d){Pn[d]={value:d}}),Object.defineProperties(Xe,Pn),Object.defineProperty(On,"isAxiosError",{value:!0}),Xe.from=function(d,m,x,p,y,g){var w=Object.create(On);return R.toFlatObject(d,w,function(E){return E!==Error.prototype},function(E){return E!=="isAxiosError"}),Xe.call(w,d.message,m,x,p,y),w.cause=d,w.name=d.name,g&&Object.assign(w,g),w};const Ae=Xe,Tn=i(937);function ln(d){return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},ln(d)}function dt(d){return R.isPlainObject(d)||R.isArray(d)}function er(d){return R.endsWith(d,"[]")?d.slice(0,-2):d}function Nn(d,m,x){return d?d.concat(m).map(function(p,y){return p=er(p),!x&&y?"["+p+"]":p}).join(x?".":""):m}var nr=R.toFlatObject(R,{},null,function(d){return/^is[A-Z]/.test(d)});const Kn=function(d,m,x){if(!R.isObject(d))throw new TypeError("target must be an object");m=m||new(Tn||FormData);var p,y=(x=R.toFlatObject(x,{metaTokens:!0,dots:!1,indexes:!1},!1,function(se,le){return!R.isUndefined(le[se])})).metaTokens,g=x.visitor||z,w=x.dots,E=x.indexes,C=(x.Blob||typeof Blob<"u"&&Blob)&&(p=m)&&R.isFunction(p.append)&&p[Symbol.toStringTag]==="FormData"&&p[Symbol.iterator];if(!R.isFunction(g))throw new TypeError("visitor must be a function");function D(se){if(se===null)return"";if(R.isDate(se))return se.toISOString();if(!C&&R.isBlob(se))throw new Ae("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(se)||R.isTypedArray(se)?C&&typeof Blob=="function"?new Blob([se]):Buffer.from(se):se}function z(se,le,G){var ce=se;if(se&&!G&&ln(se)==="object"){if(R.endsWith(le,"{}"))le=y?le:le.slice(0,-2),se=JSON.stringify(se);else if(R.isArray(se)&&function(me){return R.isArray(me)&&!me.some(dt)}(se)||R.isFileList(se)||R.endsWith(le,"[]")&&(ce=R.toArray(se)))return le=er(le),ce.forEach(function(me,Qe){!R.isUndefined(me)&&me!==null&&m.append(E===!0?Nn([le],Qe,w):E===null?le:le+"[]",D(me))}),!1}return!!dt(se)||(m.append(Nn(G,le,w),D(se)),!1)}var X=[],oe=Object.assign(nr,{defaultVisitor:z,convertValue:D,isVisitable:dt});if(!R.isObject(d))throw new TypeError("data must be an object");return function se(le,G){if(!R.isUndefined(le)){if(X.indexOf(le)!==-1)throw Error("Circular reference detected in "+G.join("."));X.push(le),R.forEach(le,function(ce,me){(!(R.isUndefined(ce)||ce===null)&&g.call(m,ce,R.isString(me)?me.trim():me,G,oe))===!0&&se(ce,G?G.concat(me):[me])}),X.pop()}}(d),m};function tr(d){var m={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(d).replace(/[!'()~]|%20|%00/g,function(x){return m[x]})}function si(d,m){this._pairs=[],d&&Kn(d,this,m)}var rr=si.prototype;rr.append=function(d,m){this._pairs.push([d,m])},rr.toString=function(d){var m=d?function(x){return d.call(this,x,tr)}:tr;return this._pairs.map(function(x){return m(x[0])+"="+m(x[1])},"").join("&")};const ui=si;function ci(d){return encodeURIComponent(d).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ir(d,m,x){if(!m)return d;var p,y=x&&x.encode||ci,g=x&&x.serialize;if(p=g?g(m,x):R.isURLSearchParams(m)?m.toString():new ui(m,x).toString(y)){var w=d.indexOf("#");w!==-1&&(d=d.slice(0,w)),d+=(d.indexOf("?")===-1?"?":"&")+p}return d}function ft(d){return ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},ft(d)}function da(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(ft(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(ft(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),ft(y)==="symbol"?y:String(y)),p)}var y}var pi=function(){function d(){(function(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")})(this,d),this.handlers=[]}var m,x;return m=d,x=[{key:"use",value:function(p,y,g){return this.handlers.push({fulfilled:p,rejected:y,synchronous:!!g&&g.synchronous,runWhen:g?g.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(p){this.handlers[p]&&(this.handlers[p]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(p){R.forEach(this.handlers,function(y){y!==null&&p(y)})}}],x&&da(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const di=pi,fi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fa=typeof URLSearchParams<"u"?URLSearchParams:ui,ha=FormData;var T,Y=(typeof navigator>"u"||(T=navigator.product)!=="ReactNative"&&T!=="NativeScript"&&T!=="NS")&&typeof window<"u"&&typeof document<"u",ae=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";const pe={isBrowser:!0,classes:{URLSearchParams:fa,FormData:ha,Blob},isStandardBrowserEnv:Y,isStandardBrowserWebWorkerEnv:ae,protocols:["http","https","file","blob","url","data"]},Ie=function(d){function m(p,y,g,w){var E=p[w++],C=Number.isFinite(+E),D=w>=p.length;return E=!E&&R.isArray(g)?g.length:E,D?(R.hasOwnProp(g,E)?g[E]=[g[E],y]:g[E]=y,!C):(g[E]&&R.isObject(g[E])||(g[E]=[]),m(p,y,g[E],w)&&R.isArray(g[E])&&(g[E]=function(z){var X,oe,se={},le=Object.keys(z),G=le.length;for(X=0;X<G;X++)se[oe=le[X]]=z[oe];return se}(g[E])),!C)}if(R.isFormData(d)&&R.isFunction(d.entries)){var x={};return R.forEachEntry(d,function(p,y){m(function(g){return R.matchAll(/\w+|\[(\w*)]/g,g).map(function(w){return w[0]==="[]"?"":w[1]||w[0]})}(p),y,x,0)}),x}return null};var Te={"Content-Type":void 0},xe={transitional:fi,adapter:["xhr","http"],transformRequest:[function(d,m){var x,p=m.getContentType()||"",y=p.indexOf("application/json")>-1,g=R.isObject(d);if(g&&R.isHTMLForm(d)&&(d=new FormData(d)),R.isFormData(d))return y&&y?JSON.stringify(Ie(d)):d;if(R.isArrayBuffer(d)||R.isBuffer(d)||R.isStream(d)||R.isFile(d)||R.isBlob(d))return d;if(R.isArrayBufferView(d))return d.buffer;if(R.isURLSearchParams(d))return m.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),d.toString();if(g){if(p.indexOf("application/x-www-form-urlencoded")>-1)return function(E,C){return Kn(E,new pe.classes.URLSearchParams,Object.assign({visitor:function(D,z,X,oe){return pe.isNode&&R.isBuffer(D)?(this.append(z,D.toString("base64")),!1):oe.defaultVisitor.apply(this,arguments)}},C))}(d,this.formSerializer).toString();if((x=R.isFileList(d))||p.indexOf("multipart/form-data")>-1){var w=this.env&&this.env.FormData;return Kn(x?{"files[]":d}:d,w&&new w,this.formSerializer)}}return g||y?(m.setContentType("application/json",!1),function(E,C,D){if(R.isString(E))try{return(0,JSON.parse)(E),R.trim(E)}catch(z){if(z.name!=="SyntaxError")throw z}return(0,JSON.stringify)(E)}(d)):d}],transformResponse:[function(d){var m=this.transitional||xe.transitional,x=m&&m.forcedJSONParsing,p=this.responseType==="json";if(d&&R.isString(d)&&(x&&!this.responseType||p)){var y=!(m&&m.silentJSONParsing)&&p;try{return JSON.parse(d)}catch(g){if(y)throw g.name==="SyntaxError"?Ae.from(g,Ae.ERR_BAD_RESPONSE,this,null,this.response):g}}return d}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(d){return d>=200&&d<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};R.forEach(["delete","get","head"],function(d){xe.headers[d]={}}),R.forEach(["post","put","patch"],function(d){xe.headers[d]=R.merge(Te)});const ve=xe;var nn=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);function je(d){return je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},je(d)}function qe(d,m){(m==null||m>d.length)&&(m=d.length);for(var x=0,p=new Array(m);x<m;x++)p[x]=d[x];return p}function sn(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(je(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(je(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),je(y)==="symbol"?y:String(y)),p)}var y}var qn=Symbol("internals");function Qn(d){return d&&String(d).trim().toLowerCase()}function pn(d){return d===!1||d==null?d:R.isArray(d)?d.map(pn):String(d)}function Oc(d,m,x,p){return R.isFunction(p)?p.call(this,m,x):R.isString(m)?R.isString(p)?m.indexOf(p)!==-1:R.isRegExp(p)?p.test(m):void 0:void 0}var hi=function(d,m){function x(w){(function(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")})(this,x),w&&this.set(w)}var p,y,g;return p=x,y=[{key:"set",value:function(w,E,C){var D=this;function z(me,Qe,Ye){var _e=Qn(Qe);if(!_e)throw new Error("header name must be a non-empty string");var Xn=R.findKey(D,_e);(!Xn||D[Xn]===void 0||Ye===!0||Ye===void 0&&D[Xn]!==!1)&&(D[Xn||Qe]=pn(me))}var X,oe,se,le,G,ce=function(me,Qe){return R.forEach(me,function(Ye,_e){return z(Ye,_e,Qe)})};return R.isPlainObject(w)||w instanceof this.constructor?ce(w,E):R.isString(w)&&(w=w.trim())&&!/^[-_a-zA-Z]+$/.test(w.trim())?ce((G={},(X=w)&&X.split(`
4824
+ `).forEach(function(me){le=me.indexOf(":"),oe=me.substring(0,le).trim().toLowerCase(),se=me.substring(le+1).trim(),!oe||G[oe]&&nn[oe]||(oe==="set-cookie"?G[oe]?G[oe].push(se):G[oe]=[se]:G[oe]=G[oe]?G[oe]+", "+se:se)}),G),E):w!=null&&z(E,w,C),this}},{key:"get",value:function(w,E){if(w=Qn(w)){var C=R.findKey(this,w);if(C){var D=this[C];if(!E)return D;if(E===!0)return function(z){for(var X,oe=Object.create(null),se=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;X=se.exec(z);)oe[X[1]]=X[2];return oe}(D);if(R.isFunction(E))return E.call(this,D,C);if(R.isRegExp(E))return E.exec(D);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(w,E){if(w=Qn(w)){var C=R.findKey(this,w);return!(!C||E&&!Oc(0,this[C],C,E))}return!1}},{key:"delete",value:function(w,E){var C=this,D=!1;function z(X){if(X=Qn(X)){var oe=R.findKey(C,X);!oe||E&&!Oc(0,C[oe],oe,E)||(delete C[oe],D=!0)}}return R.isArray(w)?w.forEach(z):z(w),D}},{key:"clear",value:function(){return Object.keys(this).forEach(this.delete.bind(this))}},{key:"normalize",value:function(w){var E=this,C={};return R.forEach(this,function(D,z){var X=R.findKey(C,z);if(X)return E[X]=pn(D),void delete E[z];var oe=w?function(se){return se.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(le,G,ce){return G.toUpperCase()+ce})}(z):String(z).trim();oe!==z&&delete E[z],E[oe]=pn(D),C[oe]=!0}),this}},{key:"concat",value:function(){for(var w,E=arguments.length,C=new Array(E),D=0;D<E;D++)C[D]=arguments[D];return(w=this.constructor).concat.apply(w,[this].concat(C))}},{key:"toJSON",value:function(w){var E=Object.create(null);return R.forEach(this,function(C,D){C!=null&&C!==!1&&(E[D]=w&&R.isArray(C)?C.join(", "):C)}),E}},{key:Symbol.iterator,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map(function(w){var E,C,D=(C=2,function(z){if(Array.isArray(z))return z}(E=w)||function(z,X){var oe=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(oe!=null){var se,le,G,ce,me=[],Qe=!0,Ye=!1;try{if(G=(oe=oe.call(z)).next,X===0){if(Object(oe)!==oe)return;Qe=!1}else for(;!(Qe=(se=G.call(oe)).done)&&(me.push(se.value),me.length!==X);Qe=!0);}catch(_e){Ye=!0,le=_e}finally{try{if(!Qe&&oe.return!=null&&(ce=oe.return(),Object(ce)!==ce))return}finally{if(Ye)throw le}}return me}}(E,C)||function(z,X){if(z){if(typeof z=="string")return qe(z,X);var oe=Object.prototype.toString.call(z).slice(8,-1);return oe==="Object"&&z.constructor&&(oe=z.constructor.name),oe==="Map"||oe==="Set"?Array.from(z):oe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(oe)?qe(z,X):void 0}}(E,C)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4825
4825
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}());return D[0]+": "+D[1]}).join(`
4826
- `)}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],g=[{key:"from",value:function(w){return w instanceof this?w:new this(w)}},{key:"concat",value:function(w){for(var E=new this(w),C=arguments.length,D=new Array(C>1?C-1:0),z=1;z<C;z++)D[z-1]=arguments[z];return D.forEach(function(X){return E.set(X)}),E}},{key:"accessor",value:function(w){var E=(this[qn]=this[qn]={accessors:{}}).accessors,C=this.prototype;function D(z){var X=Qn(z);E[X]||(function(oe,se){var le=R.toCamelCase(" "+se);["get","set","has"].forEach(function(G){Object.defineProperty(oe,G+le,{value:function(ce,me,Qe){return this[G].call(this,se,ce,me,Qe)},configurable:!0})})}(C,z),E[X]=!0)}return R.isArray(w)?w.forEach(D):D(w),this}}],y&&sn(p.prototype,y),g&&sn(p,g),Object.defineProperty(p,"prototype",{writable:!1}),x}();fi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),R.freezeMethods(fi.prototype),R.freezeMethods(fi);const Un=fi;function ma(d,m){var x=this||ve,p=m||x,y=Un.from(p.headers),g=p.data;return R.forEach(d,function(w){g=w.call(x,g,y.normalize(),m?m.status:void 0)}),y.normalize(),g}function Pc(d){return!(!d||!d.__CANCEL__)}function _c(d,m,x){Ae.call(this,d??"canceled",Ae.ERR_CANCELED,m,x),this.name="CanceledError"}R.inherits(_c,Ae,{__CANCEL__:!0});const hi=_c,Iv=pe.isStandardBrowserEnv?{write:function(d,m,x,p,y,g){var w=[];w.push(d+"="+encodeURIComponent(m)),R.isNumber(x)&&w.push("expires="+new Date(x).toGMTString()),R.isString(p)&&w.push("path="+p),R.isString(y)&&w.push("domain="+y),g===!0&&w.push("secure"),document.cookie=w.join("; ")},read:function(d){var m=document.cookie.match(new RegExp("(^|;\\s*)("+d+")=([^;]*)"));return m?decodeURIComponent(m[3]):null},remove:function(d){this.write(d,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Tc(d,m){return d&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(m)?function(x,p){return p?x.replace(/\/+$/,"")+"/"+p.replace(/^\/+/,""):x}(d,m):m}const Ov=pe.isStandardBrowserEnv?function(){var d,m=/(msie|trident)/i.test(navigator.userAgent),x=document.createElement("a");function p(y){var g=y;return m&&(x.setAttribute("href",g),g=x.href),x.setAttribute("href",g),{href:x.href,protocol:x.protocol?x.protocol.replace(/:$/,""):"",host:x.host,search:x.search?x.search.replace(/^\?/,""):"",hash:x.hash?x.hash.replace(/^#/,""):"",hostname:x.hostname,port:x.port,pathname:x.pathname.charAt(0)==="/"?x.pathname:"/"+x.pathname}}return d=p(window.location.href),function(y){var g=R.isString(y)?p(y):y;return g.protocol===d.protocol&&g.host===d.host}}():function(){return!0};function Lc(d,m){var x=0,p=function(y,g){y=y||10;var w,E=new Array(y),C=new Array(y),D=0,z=0;return g=g!==void 0?g:1e3,function(X){var oe=Date.now(),se=C[z];w||(w=oe),E[D]=X,C[D]=oe;for(var le=z,G=0;le!==D;)G+=E[le++],le%=y;if((D=(D+1)%y)===z&&(z=(z+1)%y),!(oe-w<g)){var ce=se&&oe-se;return ce?Math.round(1e3*G/ce):void 0}}}(50,250);return function(y){var g=y.loaded,w=y.lengthComputable?y.total:void 0,E=g-x,C=p(E);x=g;var D={loaded:g,total:w,progress:w?g/w:void 0,bytes:E,rate:C||void 0,estimated:C&&w&&g<=w?(w-g)/C:void 0,event:y};D[m?"download":"upload"]=!0,d(D)}}var ya={http:null,xhr:typeof XMLHttpRequest<"u"&&function(d){return new Promise(function(m,x){var p,y=d.data,g=Un.from(d.headers).normalize(),w=d.responseType;function E(){d.cancelToken&&d.cancelToken.unsubscribe(p),d.signal&&d.signal.removeEventListener("abort",p)}R.isFormData(y)&&(pe.isStandardBrowserEnv||pe.isStandardBrowserWebWorkerEnv)&&g.setContentType(!1);var C=new XMLHttpRequest;if(d.auth){var D=d.auth.username||"",z=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";g.set("Authorization","Basic "+btoa(D+":"+z))}var X=Tc(d.baseURL,d.url);function oe(){if(C){var ce=Un.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders());(function(me,Qe,Ye){var Te=Ye.config.validateStatus;Ye.status&&Te&&!Te(Ye.status)?Qe(new Ae("Request failed with status code "+Ye.status,[Ae.ERR_BAD_REQUEST,Ae.ERR_BAD_RESPONSE][Math.floor(Ye.status/100)-4],Ye.config,Ye.request,Ye)):me(Ye)})(function(me){m(me),E()},function(me){x(me),E()},{data:w&&w!=="text"&&w!=="json"?C.response:C.responseText,status:C.status,statusText:C.statusText,headers:ce,config:d,request:C}),C=null}}if(C.open(d.method.toUpperCase(),rr(X,d.params,d.paramsSerializer),!0),C.timeout=d.timeout,"onloadend"in C?C.onloadend=oe:C.onreadystatechange=function(){C&&C.readyState===4&&(C.status!==0||C.responseURL&&C.responseURL.indexOf("file:")===0)&&setTimeout(oe)},C.onabort=function(){C&&(x(new Ae("Request aborted",Ae.ECONNABORTED,d,C)),C=null)},C.onerror=function(){x(new Ae("Network Error",Ae.ERR_NETWORK,d,C)),C=null},C.ontimeout=function(){var ce=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",me=d.transitional||di;d.timeoutErrorMessage&&(ce=d.timeoutErrorMessage),x(new Ae(ce,me.clarifyTimeoutError?Ae.ETIMEDOUT:Ae.ECONNABORTED,d,C)),C=null},pe.isStandardBrowserEnv){var se=(d.withCredentials||Ov(X))&&d.xsrfCookieName&&Iv.read(d.xsrfCookieName);se&&g.set(d.xsrfHeaderName,se)}y===void 0&&g.setContentType(null),"setRequestHeader"in C&&R.forEach(g.toJSON(),function(ce,me){C.setRequestHeader(me,ce)}),R.isUndefined(d.withCredentials)||(C.withCredentials=!!d.withCredentials),w&&w!=="json"&&(C.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&C.addEventListener("progress",Lc(d.onDownloadProgress,!0)),typeof d.onUploadProgress=="function"&&C.upload&&C.upload.addEventListener("progress",Lc(d.onUploadProgress)),(d.cancelToken||d.signal)&&(p=function(ce){C&&(x(!ce||ce.type?new hi(null,d,C):ce),C.abort(),C=null)},d.cancelToken&&d.cancelToken.subscribe(p),d.signal&&(d.signal.aborted?p():d.signal.addEventListener("abort",p)));var le,G=(le=/^([-+\w]{1,25})(:?\/\/|:)/.exec(X))&&le[1]||"";G&&pe.protocols.indexOf(G)===-1?x(new Ae("Unsupported protocol "+G+":",Ae.ERR_BAD_REQUEST,d)):C.send(y||null)})}};R.forEach(ya,function(d,m){if(d){try{Object.defineProperty(d,"name",{value:m})}catch{}Object.defineProperty(d,"adapterName",{value:m})}});function Aa(d){if(d.cancelToken&&d.cancelToken.throwIfRequested(),d.signal&&d.signal.aborted)throw new hi(null,d)}function jc(d){return Aa(d),d.headers=Un.from(d.headers),d.data=ma.call(d,d.transformRequest),["post","put","patch"].indexOf(d.method)!==-1&&d.headers.setContentType("application/x-www-form-urlencoded",!1),function(m){for(var x,p,y=(m=R.isArray(m)?m:[m]).length,g=0;g<y&&(x=m[g],!(p=R.isString(x)?ya[x.toLowerCase()]:x));g++);if(!p)throw p===!1?new Ae("Adapter ".concat(x," is not supported by the environment"),"ERR_NOT_SUPPORT"):new Error(R.hasOwnProp(ya,x)?"Adapter '".concat(x,"' is not available in the build"):"Unknown adapter '".concat(x,"'"));if(!R.isFunction(p))throw new TypeError("adapter is not a function");return p}(d.adapter||ve.adapter)(d).then(function(m){return Aa(d),m.data=ma.call(d,d.transformResponse,m),m.headers=Un.from(m.headers),m},function(m){return Pc(m)||(Aa(d),m&&m.response&&(m.response.data=ma.call(d,d.transformResponse,m.response),m.response.headers=Un.from(m.response.headers))),Promise.reject(m)})}var Dc=function(d){return d instanceof Un?d.toJSON():d};function It(d,m){m=m||{};var x={};function p(D,z,X){return R.isPlainObject(D)&&R.isPlainObject(z)?R.merge.call({caseless:X},D,z):R.isPlainObject(z)?R.merge({},z):R.isArray(z)?z.slice():z}function y(D,z,X){return R.isUndefined(z)?R.isUndefined(D)?void 0:p(void 0,D,X):p(D,z,X)}function g(D,z){if(!R.isUndefined(z))return p(void 0,z)}function w(D,z){return R.isUndefined(z)?R.isUndefined(D)?void 0:p(void 0,D):p(void 0,z)}function E(D,z,X){return X in m?p(D,z):X in d?p(void 0,D):void 0}var C={url:g,method:g,data:g,baseURL:w,transformRequest:w,transformResponse:w,paramsSerializer:w,timeout:w,timeoutMessage:w,withCredentials:w,adapter:w,responseType:w,xsrfCookieName:w,xsrfHeaderName:w,onUploadProgress:w,onDownloadProgress:w,decompress:w,maxContentLength:w,maxBodyLength:w,beforeRedirect:w,transport:w,httpAgent:w,httpsAgent:w,cancelToken:w,socketPath:w,responseEncoding:w,validateStatus:E,headers:function(D,z){return y(Dc(D),Dc(z),!0)}};return R.forEach(Object.keys(d).concat(Object.keys(m)),function(D){var z=C[D]||y,X=z(d[D],m[D],D);R.isUndefined(X)&&z!==E||(x[D]=X)}),x}function mi(d){return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},mi(d)}var ga={};["object","boolean","number","function","string","symbol"].forEach(function(d,m){ga[d]=function(x){return mi(x)===d||"a"+(m<1?"n ":" ")+d}});var Mc={};ga.transitional=function(d,m,x){function p(y,g){return"[Axios v1.2.3] Transitional option '"+y+"'"+g+(x?". "+x:"")}return function(y,g,w){if(d===!1)throw new Ae(p(g," has been removed"+(m?" in "+m:"")),Ae.ERR_DEPRECATED);return m&&!Mc[g]&&(Mc[g]=!0,console.warn(p(g," has been deprecated since v"+m+" and will be removed in the near future"))),!d||d(y,g,w)}};const ba={assertOptions:function(d,m,x){if(mi(d)!=="object")throw new Ae("options must be an object",Ae.ERR_BAD_OPTION_VALUE);for(var p=Object.keys(d),y=p.length;y-- >0;){var g=p[y],w=m[g];if(w){var E=d[g],C=E===void 0||w(E,g,d);if(C!==!0)throw new Ae("option "+g+" must be "+C,Ae.ERR_BAD_OPTION_VALUE)}else if(x!==!0)throw new Ae("Unknown option "+g,Ae.ERR_BAD_OPTION)}},validators:ga};function ir(d){return ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},ir(d)}function Pv(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(ir(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(ir(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),ir(y)==="symbol"?y:String(y)),p)}var y}var Jn=ba.validators,yi=function(){function d(p){(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,d),this.defaults=p,this.interceptors={request:new pi,response:new pi}}var m,x;return m=d,(x=[{key:"request",value:function(p,y){typeof p=="string"?(y=y||{}).url=p:y=p||{};var g,w=y=It(this.defaults,y),E=w.transitional,C=w.paramsSerializer,D=w.headers;E!==void 0&&ba.assertOptions(E,{silentJSONParsing:Jn.transitional(Jn.boolean),forcedJSONParsing:Jn.transitional(Jn.boolean),clarifyTimeoutError:Jn.transitional(Jn.boolean)},!1),C!==void 0&&ba.assertOptions(C,{encode:Jn.function,serialize:Jn.function},!0),y.method=(y.method||this.defaults.method||"get").toLowerCase(),(g=D&&R.merge(D.common,D[y.method]))&&R.forEach(["delete","get","head","post","put","patch","common"],function(Te){delete D[Te]}),y.headers=Un.concat(g,D);var z=[],X=!0;this.interceptors.request.forEach(function(Te){typeof Te.runWhen=="function"&&Te.runWhen(y)===!1||(X=X&&Te.synchronous,z.unshift(Te.fulfilled,Te.rejected))});var oe,se=[];this.interceptors.response.forEach(function(Te){se.push(Te.fulfilled,Te.rejected)});var le,G=0;if(!X){var ce=[jc.bind(this),void 0];for(ce.unshift.apply(ce,z),ce.push.apply(ce,se),le=ce.length,oe=Promise.resolve(y);G<le;)oe=oe.then(ce[G++],ce[G++]);return oe}le=z.length;var me=y;for(G=0;G<le;){var Qe=z[G++],Ye=z[G++];try{me=Qe(me)}catch(Te){Ye.call(this,Te);break}}try{oe=jc.call(this,me)}catch(Te){return Promise.reject(Te)}for(G=0,le=se.length;G<le;)oe=oe.then(se[G++],se[G++]);return oe}},{key:"getUri",value:function(p){return rr(Tc((p=It(this.defaults,p)).baseURL,p.url),p.params,p.paramsSerializer)}}])&&Pv(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();R.forEach(["delete","get","head","options"],function(d){yi.prototype[d]=function(m,x){return this.request(It(x||{},{method:d,url:m,data:(x||{}).data}))}}),R.forEach(["post","put","patch"],function(d){function m(x){return function(p,y,g){return this.request(It(g||{},{method:d,headers:x?{"Content-Type":"multipart/form-data"}:{},url:p,data:y}))}}yi.prototype[d]=m(),yi.prototype[d+"Form"]=m(!0)});const Ai=yi;function or(d){return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},or(d)}function zc(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(or(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(or(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),or(y)==="symbol"?y:String(y)),p)}var y}var _v=function(){function d(y){if(function(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}(this,d),typeof y!="function")throw new TypeError("executor must be a function.");var g;this.promise=new Promise(function(E){g=E});var w=this;this.promise.then(function(E){if(w._listeners){for(var C=w._listeners.length;C-- >0;)w._listeners[C](E);w._listeners=null}}),this.promise.then=function(E){var C,D=new Promise(function(z){w.subscribe(z),C=z}).then(E);return D.cancel=function(){w.unsubscribe(C)},D},y(function(E,C,D){w.reason||(w.reason=new hi(E,C,D),g(w.reason))})}var m,x,p;return m=d,x=[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(y){this.reason?y(this.reason):this._listeners?this._listeners.push(y):this._listeners=[y]}},{key:"unsubscribe",value:function(y){if(this._listeners){var g=this._listeners.indexOf(y);g!==-1&&this._listeners.splice(g,1)}}}],p=[{key:"source",value:function(){var y;return{token:new d(function(g){y=g}),cancel:y}}}],x&&zc(m.prototype,x),p&&zc(m,p),Object.defineProperty(m,"prototype",{writable:!1}),d}();const Tv=_v;function Fc(d,m){(m==null||m>d.length)&&(m=d.length);for(var x=0,p=new Array(m);x<m;x++)p[x]=d[x];return p}var va={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(va).forEach(function(d){var m,x,p=(x=2,function(w){if(Array.isArray(w))return w}(m=d)||function(w,E){var C=w==null?null:typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(C!=null){var D,z,X,oe,se=[],le=!0,G=!1;try{if(X=(C=C.call(w)).next,E===0){if(Object(C)!==C)return;le=!1}else for(;!(le=(D=X.call(C)).done)&&(se.push(D.value),se.length!==E);le=!0);}catch(ce){G=!0,z=ce}finally{try{if(!le&&C.return!=null&&(oe=C.return(),Object(oe)!==oe))return}finally{if(G)throw z}}return se}}(m,x)||function(w,E){if(w){if(typeof w=="string")return Fc(w,E);var C=Object.prototype.toString.call(w).slice(8,-1);return C==="Object"&&w.constructor&&(C=w.constructor.name),C==="Map"||C==="Set"?Array.from(w):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?Fc(w,E):void 0}}(m,x)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4827
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()),y=p[0],g=p[1];va[g]=y});const Lv=va;var Ke=function d(m){var x=new Ai(m),p=I(Ai.prototype.request,x);return R.extend(p,Ai.prototype,x,{allOwnKeys:!0}),R.extend(p,x,null,{allOwnKeys:!0}),p.create=function(y){return d(It(m,y))},p}(ve);Ke.Axios=Ai,Ke.CanceledError=hi,Ke.CancelToken=Tv,Ke.isCancel=Pc,Ke.VERSION="1.2.3",Ke.toFormData=Kn,Ke.AxiosError=Ae,Ke.Cancel=Ke.CanceledError,Ke.all=function(d){return Promise.all(d)},Ke.spread=function(d){return function(m){return d.apply(null,m)}},Ke.isAxiosError=function(d){return R.isObject(d)&&d.isAxiosError===!0},Ke.mergeConfig=It,Ke.AxiosHeaders=Un,Ke.formToJSON=function(d){return Ie(R.isHTMLForm(d)?new FormData(d):d)},Ke.HttpStatusCode=Lv,Ke.default=Ke;const Rc=Ke,jv={send:function(d){Rc.post(d.url,d.data).then(function(m){var x=m.data;x&&x.code===0?d.success&&d.success(x):d.error&&d.error(x&&x.msg)}).catch(function(m){console.error(m),d.error&&d.error()})},read:function(d){Rc.get(d.url).then(function(m){var x=m.data;x&&x.code===0?d.success&&d.success(x.data.map(function(p){return{time:p[0],type:p[1],color:p[2],author:p[3],text:p[4]}})):d.error&&d.error(x&&x.msg)}).catch(function(m){console.error(m),d.error&&d.error()})}};function xa(d){return xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},xa(d)}function Dv(d){var m=this;this.lang=d,this.fallbackLang=this.lang.includes("-")?this.lang.split("-")[0]:this.lang,this.tran=function(x){return x=x.toLowerCase(),Ot[m.lang]&&Ot[m.lang][x]?Ot[m.lang][x]:Ot[m.fallbackLang]&&Ot[m.fallbackLang][x]?Ot[m.fallbackLang][x]:wa[x]?wa[x]:x}}var wa={"danmaku-loading":"Danmaku is loading",top:"Top",bottom:"Bottom",rolling:"Rolling","input-danmaku-enter":"Input danmaku, hit Enter","about-author":"About author","dplayer-feedback":"DPlayer feedback","about-dplayer":"About DPlayer",loop:"Loop",speed:"Speed","opacity-danmaku":"Opacity for danmaku",normal:"Normal","please-input-danmaku":"Please input danmaku content!","set-danmaku-color":"Set danmaku color","set-danmaku-type":"Set danmaku type","show-danmaku":"Show danmaku","video-failed":"Video load failed","danmaku-failed":"Danmaku load failed","danmaku-send-failed":"Danmaku send failed","switching-quality":"Switching to %q quality","switched-quality":"Switched to %q quality",ff:"FF %s s",rew:"REW %s s","unlimited-danmaku":"Unlimited danmaku","send-danmaku":"Send danmaku",setting:"Setting",fullscreen:"Full screen","web-fullscreen":"Web full screen",send:"Send",screenshot:"Screenshot",airplay:"AirPlay",chromecast:"ChromeCast",subtitle:"Subtitle",off:"Off","show-subs":"Show subtitle","hide-subs":"Hide subtitle",volume:"Volume",live:"Live","video-info":"Video info"},Ot={en:wa,"zh-cn":{"danmaku-loading":"弹幕加载中",top:"顶部",bottom:"底部",rolling:"滚动","input-danmaku-enter":"输入弹幕,回车发送","about-author":"关于作者","dplayer-feedback":"播放器意见反馈","about-dplayer":"关于 DPlayer 播放器",loop:"洗脑循环",speed:"速度","opacity-danmaku":"弹幕透明度",normal:"正常","please-input-danmaku":"要输入弹幕内容啊喂!","set-danmaku-color":"设置弹幕颜色","set-danmaku-type":"设置弹幕类型","show-danmaku":"显示弹幕","video-failed":"视频加载失败","danmaku-failed":"弹幕加载失败","danmaku-send-failed":"弹幕发送失败","switching-quality":"正在切换至 %q 画质","switched-quality":"已经切换至 %q 画质",ff:"快进 %s 秒",rew:"快退 %s 秒","unlimited-danmaku":"海量弹幕","send-danmaku":"发送弹幕",setting:"设置",fullscreen:"全屏","web-fullscreen":"页面全屏",send:"发送",screenshot:"截图",airplay:"无线投屏",chromecast:"ChromeCast",subtitle:"字幕",off:"关闭","show-subs":"显示字幕","hide-subs":"隐藏字幕",volume:"音量",live:"直播","video-info":"视频统计信息"},"zh-tw":{"danmaku-loading":"彈幕載入中",top:"頂部",bottom:"底部",rolling:"滾動","input-danmaku-enter":"輸入彈幕,Enter 發送","about-author":"關於作者","dplayer-feedback":"播放器意見回饋","about-dplayer":"關於 DPlayer 播放器",loop:"循環播放",speed:"速度","opacity-danmaku":"彈幕透明度",normal:"正常","please-input-danmaku":"請輸入彈幕內容啊!","set-danmaku-color":"設定彈幕顏色","set-danmaku-type":"設定彈幕類型","show-danmaku":"顯示彈幕","video-failed":"影片載入失敗","danmaku-failed":"彈幕載入失敗","danmaku-send-failed":"彈幕發送失敗","switching-quality":"正在切換至 %q 畫質","switched-quality":"已經切換至 %q 畫質",ff:"快進 %s 秒",rew:"快退 %s 秒","unlimited-danmaku":"巨量彈幕","send-danmaku":"發送彈幕",setting:"設定",fullscreen:"全螢幕","web-fullscreen":"頁面全螢幕",send:"發送",screenshot:"截圖",airplay:"無線投屏",chromecast:"ChromeCast",subtitle:"字幕",off:"關閉","show-subs":"顯示字幕","hide-subs":"隱藏字幕",volume:"音量",live:"直播","video-info":"影片統計訊息"},"ko-kr":{"danmaku-loading":"Danmaku를 불러오는 중입니다.",top:"Top",bottom:"Bottom",rolling:"Rolling","input-danmaku-enter":"Danmaku를 입력하고 Enter를 누르세요.","about-author":"만든이","dplayer-feedback":"피드백 보내기","about-dplayer":"DPlayer 정보",loop:"반복",speed:"배속","opacity-danmaku":"Danmaku 불투명도",normal:"표준","please-input-danmaku":"Danmaku를 입력하세요!","set-danmaku-color":"Danmaku 색상","set-danmaku-type":"Danmaku 설정","show-danmaku":"Danmaku 표시","video-failed":"비디오를 불러오지 못했습니다.","danmaku-failed":"Danmaku를 불러오지 못했습니다.","danmaku-send-failed":"Danmaku 전송에 실패했습니다.","Switching to":"","Switched to":"","switching-quality":"전환 %q 화질","switched-quality":"전환 됨 %q 화질",ff:"앞으로 %s 초",rew:"뒤로 %s 초","unlimited-danmaku":"끝없는 Danmaku","send-danmaku":"Danmaku 보내기",setting:"설정",fullscreen:"전체 화면","web-fullscreen":"웹 내 전체화면",send:"보내기",screenshot:"화면 캡쳐",airplay:"에어플레이",chromecast:"ChromeCast",subtitle:"부제",off:"끄다","show-subs":"자막 보이기","hide-subs":"자막 숨기기",Volume:"볼륨",live:"생방송","video-info":"비디오 정보"},de:{"danmaku-loading":"Danmaku lädt...",top:"Oben",bottom:"Unten",rolling:"Rollend","input-danmaku-enter":"Drücke Enter nach dem Einfügen vom Danmaku","about-author":"Über den Autor","dplayer-feedback":"DPlayer Feedback","about-dplayer":"Über DPlayer",loop:"Wiederholen",speed:"Geschwindigkeit","opacity-danmaku":"Transparenz für Danmaku",normal:"Normal","please-input-danmaku":"Bitte Danmaku Inhalt eingeben!","set-danmaku-color":"Danmaku Farbe festlegen","set-danmaku-type":"Danmaku Typ festlegen","show-danmaku":"Zeige Danmaku","video-failed":"Das Video konnte nicht geladen werden","danmaku-failed":"Danmaku konnte nicht geladen werden","danmaku-send-failed":"Das senden von Danmaku ist fehgeschlagen","switching-quality":"Wechsle zur %q Qualität","switched-quality":"Zur %q Qualität gewechselt",ff:"%s s Vorwärts",rew:"%s s Zurück","unlimited-danmaku":"Unlimitiertes Danmaku","send-danmaku":"Sende Danmaku",setting:"Einstellungen",fullscreen:"Vollbild","web-fullscreen":"Browser Vollbild",send:"Senden",screenshot:"Screenshot",airplay:"AirPlay","show-subs":"Zeige Untertitel",chromecast:"ChromeCast",subtitle:"Untertitel",off:"Schließung","hide-subs":"Verstecke Untertitel",volume:"Lautstärke",live:"Live","video-info":"Video Info"}},Mv=i(730),zv=i.n(Mv),Fv=i(74),Rv=i.n(Fv),Nv=i(437),qv=i.n(Nv),Uv=i(644),Hv=i.n(Uv),$v=i(324),Wv=i.n($v),Yv=i(574),Vv=i.n(Yv),Kv=i(300),Qv=i.n(Kv),Jv=i(934),Zv=i.n(Jv),Xv=i(428),Gv=i.n(Xv),e1=i(807),n1=i.n(e1),t1=i(338),r1=i.n(t1),i1=i(254),o1=i.n(i1),a1=i(965),l1=i.n(a1),s1=i(113),u1=i.n(s1),c1=i(251),p1=i.n(c1),d1=i(410),f1=i.n(d1),h1=i(182),m1=i.n(h1),y1=i(193),A1=i.n(y1);const En={play:zv(),pause:Rv(),volumeUp:qv(),volumeDown:Hv(),volumeOff:Wv(),full:Vv(),fullWeb:Qv(),setting:Zv(),right:Gv(),comment:n1(),commentOff:r1(),send:o1(),pallette:l1(),camera:u1(),subtitle:f1(),loading:m1(),airplay:p1(),chromecast:A1()};var g1=i(916),b1=i.n(g1);function ar(d){return ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},ar(d)}function Nc(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(ar(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(ar(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),ar(y)==="symbol"?y:String(y)),p)}var y}var v1=function(){function d(y){(function(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")})(this,d),this.container=y.container,this.options=y.options,this.index=y.index,this.tran=y.tran,this.init()}var m,x,p;return m=d,p=[{key:"NewNotice",value:function(y,g,w){var E=document.createElement("div");return E.classList.add("dplayer-notice"),E.style.opacity=g,E.innerText=y,w&&(E.id="dplayer-notice-".concat(w)),E}}],(x=[{key:"init",value:function(){this.container.innerHTML=b1()({options:this.options,index:this.index,tran:this.tran,icons:En,mobile:$.isMobile,video:{current:!0,pic:this.options.video.pic,screenshot:this.options.screenshot,airplay:!(!$.isSafari||$.isChrome)&&this.options.airplay,chromecast:this.options.chromecast,preload:this.options.preload,url:this.options.video.url,subtitle:this.options.subtitle}}),this.volumeBar=this.container.querySelector(".dplayer-volume-bar-inner"),this.volumeBarWrap=this.container.querySelector(".dplayer-volume-bar"),this.volumeBarWrapWrap=this.container.querySelector(".dplayer-volume-bar-wrap"),this.volumeButton=this.container.querySelector(".dplayer-volume"),this.volumeButtonIcon=this.container.querySelector(".dplayer-volume-icon"),this.volumeIcon=this.container.querySelector(".dplayer-volume-icon .dplayer-icon-content"),this.playedBar=this.container.querySelector(".dplayer-played"),this.loadedBar=this.container.querySelector(".dplayer-loaded"),this.playedBarWrap=this.container.querySelector(".dplayer-bar-wrap"),this.playedBarTime=this.container.querySelector(".dplayer-bar-time"),this.danmaku=this.container.querySelector(".dplayer-danmaku"),this.danmakuLoading=this.container.querySelector(".dplayer-danloading"),this.video=this.container.querySelector(".dplayer-video-current"),this.bezel=this.container.querySelector(".dplayer-bezel-icon"),this.playButton=this.container.querySelector(".dplayer-play-icon"),this.mobilePlayButton=this.container.querySelector(".dplayer-mobile-play"),this.videoWrap=this.container.querySelector(".dplayer-video-wrap"),this.controllerMask=this.container.querySelector(".dplayer-controller-mask"),this.ptime=this.container.querySelector(".dplayer-ptime"),this.settingButton=this.container.querySelector(".dplayer-setting-icon"),this.settingBox=this.container.querySelector(".dplayer-setting-box"),this.mask=this.container.querySelector(".dplayer-mask"),this.loop=this.container.querySelector(".dplayer-setting-loop"),this.loopToggle=this.container.querySelector(".dplayer-setting-loop .dplayer-toggle-setting-input"),this.showDanmaku=this.container.querySelector(".dplayer-setting-showdan"),this.showDanmakuToggle=this.container.querySelector(".dplayer-showdan-setting-input"),this.unlimitDanmaku=this.container.querySelector(".dplayer-setting-danunlimit"),this.unlimitDanmakuToggle=this.container.querySelector(".dplayer-danunlimit-setting-input"),this.speed=this.container.querySelector(".dplayer-setting-speed"),this.speedItem=this.container.querySelectorAll(".dplayer-setting-speed-item"),this.danmakuOpacityBar=this.container.querySelector(".dplayer-danmaku-bar-inner"),this.danmakuOpacityBarWrap=this.container.querySelector(".dplayer-danmaku-bar"),this.danmakuOpacityBarWrapWrap=this.container.querySelector(".dplayer-danmaku-bar-wrap"),this.danmakuOpacityBox=this.container.querySelector(".dplayer-setting-danmaku"),this.dtime=this.container.querySelector(".dplayer-dtime"),this.controller=this.container.querySelector(".dplayer-controller"),this.commentInput=this.container.querySelector(".dplayer-comment-input"),this.commentButton=this.container.querySelector(".dplayer-comment-icon"),this.commentSettingBox=this.container.querySelector(".dplayer-comment-setting-box"),this.commentSettingButton=this.container.querySelector(".dplayer-comment-setting-icon"),this.commentSettingFill=this.container.querySelector(".dplayer-comment-setting-icon path"),this.commentSendButton=this.container.querySelector(".dplayer-send-icon"),this.commentSendFill=this.container.querySelector(".dplayer-send-icon path"),this.commentColorSettingBox=this.container.querySelector(".dplayer-comment-setting-color"),this.browserFullButton=this.container.querySelector(".dplayer-full-icon"),this.webFullButton=this.container.querySelector(".dplayer-full-in-icon"),this.menu=this.container.querySelector(".dplayer-menu"),this.menuItem=this.container.querySelectorAll(".dplayer-menu-item"),this.qualityList=this.container.querySelector(".dplayer-quality-list"),this.camareButton=this.container.querySelector(".dplayer-camera-icon"),this.airplayButton=this.container.querySelector(".dplayer-airplay-icon"),this.chromecastButton=this.container.querySelector(".dplayer-chromecast-icon"),this.subtitleButton=this.container.querySelector(".dplayer-subtitle-icon"),this.subtitleButtonInner=this.container.querySelector(".dplayer-subtitle-icon .dplayer-icon-content"),this.subtitlesButton=this.container.querySelector(".dplayer-subtitles-icon"),this.subtitlesBox=this.container.querySelector(".dplayer-subtitles-box"),this.subtitlesItem=this.container.querySelectorAll(".dplayer-subtitles-item"),this.subtitle=this.container.querySelector(".dplayer-subtitle"),this.subtrack=this.container.querySelector(".dplayer-subtrack"),this.qualityButton=this.container.querySelector(".dplayer-quality-icon"),this.barPreview=this.container.querySelector(".dplayer-bar-preview"),this.barWrap=this.container.querySelector(".dplayer-bar-wrap"),this.noticeList=this.container.querySelector(".dplayer-notice-list"),this.infoPanel=this.container.querySelector(".dplayer-info-panel"),this.infoPanelClose=this.container.querySelector(".dplayer-info-panel-close"),this.infoVersion=this.container.querySelector(".dplayer-info-panel-item-version .dplayer-info-panel-item-data"),this.infoFPS=this.container.querySelector(".dplayer-info-panel-item-fps .dplayer-info-panel-item-data"),this.infoType=this.container.querySelector(".dplayer-info-panel-item-type .dplayer-info-panel-item-data"),this.infoUrl=this.container.querySelector(".dplayer-info-panel-item-url .dplayer-info-panel-item-data"),this.infoResolution=this.container.querySelector(".dplayer-info-panel-item-resolution .dplayer-info-panel-item-data"),this.infoDuration=this.container.querySelector(".dplayer-info-panel-item-duration .dplayer-info-panel-item-data"),this.infoDanmakuId=this.container.querySelector(".dplayer-info-panel-item-danmaku-id .dplayer-info-panel-item-data"),this.infoDanmakuApi=this.container.querySelector(".dplayer-info-panel-item-danmaku-api .dplayer-info-panel-item-data"),this.infoDanmakuAmount=this.container.querySelector(".dplayer-info-panel-item-danmaku-amount .dplayer-info-panel-item-data")}}])&&Nc(m.prototype,x),p&&Nc(m,p),Object.defineProperty(m,"prototype",{writable:!1}),d}();const qc=v1;function Pt(d){return Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},Pt(d)}function x1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(Pt(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(Pt(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),Pt(y)==="symbol"?y:String(y)),p)}var y}var w1=function(){function d(p){(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,d),this.options=p,this.player=this.options.player,this.container=this.options.container,this.danTunnel={right:{},top:{},bottom:{}},this.danIndex=0,this.dan=[],this.showing=!0,this._opacity=this.options.opacity,this.events=this.options.events,this.unlimited=this.options.unlimited,this._measure(""),this.load()}var m,x;return m=d,x=[{key:"load",value:function(){var p,y=this;p=this.options.api.maximum?"".concat(this.options.api.address,"v3/?id=").concat(this.options.api.id,"&max=").concat(this.options.api.maximum):"".concat(this.options.api.address,"v3/?id=").concat(this.options.api.id);var g=(this.options.api.addition||[]).slice(0);g.push(p),this.events&&this.events.trigger("danmaku_load_start",g),this._readAllEndpoints(g,function(w){y.dan=[].concat.apply([],w).sort(function(E,C){return E.time-C.time}),window.requestAnimationFrame(function(){y.frame()}),y.options.callback(),y.events&&y.events.trigger("danmaku_load_end")})}},{key:"reload",value:function(p){this.options.api=p,this.dan=[],this.clear(),this.load()}},{key:"_readAllEndpoints",value:function(p,y){for(var g=this,w=[],E=0,C=function(z){g.options.apiBackend.read({url:p[z],success:function(X){w[z]=X,++E===p.length&&y(w)},error:function(X){g.options.error(X||g.options.tran("danmaku-failed")),w[z]=[],++E===p.length&&y(w)}})},D=0;D<p.length;++D)C(D)}},{key:"send",value:function(p,y){var g=this,w={token:this.options.api.token,id:this.options.api.id,author:this.options.api.user,time:this.options.time(),text:p.text,color:p.color,type:p.type};this.options.apiBackend.send({url:this.options.api.address+"v3/",data:w,success:y,error:function(C){g.options.error(C||g.options.tran("danmaku-failed"))}}),this.dan.splice(this.danIndex,0,w),this.danIndex++;var E={text:this.htmlEncode(w.text),color:w.color,type:w.type,border:"2px solid ".concat(this.options.borderColor)};this.draw(E),this.events&&this.events.trigger("danmaku_send",w)}},{key:"frame",value:function(){var p=this;if(this.dan.length&&!this.paused&&this.showing){for(var y=this.dan[this.danIndex],g=[];y&&this.options.time()>parseFloat(y.time);)g.push(y),y=this.dan[++this.danIndex];this.draw(g)}window.requestAnimationFrame(function(){p.frame()})}},{key:"opacity",value:function(p){if(p!==void 0){for(var y=this.container.getElementsByClassName("dplayer-danmaku-item"),g=0;g<y.length;g++)y[g].style.opacity=p;this._opacity=p,this.events&&this.events.trigger("danmaku_opacity",this._opacity)}return this._opacity}},{key:"draw",value:function(p){var y=this;if(this.showing){var g=this.options.height,w=this.container.offsetWidth,E=this.container.offsetHeight,C=parseInt(E/g),D=function(G){var ce=G.offsetWidth||parseInt(G.style.width),me=G.getBoundingClientRect().right||y.container.getBoundingClientRect().right+ce;return y.container.getBoundingClientRect().right-me},z=function(G){return(w+G)/5},X=function(G,ce,me){for(var Qe=w/z(me),Ye=function(ht){var Tt=y.danTunnel[ce][ht+""];if(!Tt||!Tt.length)return y.danTunnel[ce][ht+""]=[G],G.addEventListener("animationend",function(){y.danTunnel[ce][ht+""].splice(0,1)}),{v:ht%C};if(ce!=="right")return"continue";for(var kr=0;kr<Tt.length;kr++){var Vc=D(Tt[kr])-10;if(Vc<=w-Qe*z(parseInt(Tt[kr].style.width))||Vc<=0)break;if(kr===Tt.length-1)return y.danTunnel[ce][ht+""].push(G),G.addEventListener("animationend",function(){y.danTunnel[ce][ht+""].splice(0,1)}),{v:ht%C}}},Te=0;y.unlimited||Te<C;Te++){var Xn=Ye(Te);if(Xn!=="continue"&&Pt(Xn)==="object")return Xn.v}return-1};Object.prototype.toString.call(p)!=="[object Array]"&&(p=[p]);for(var oe=document.createDocumentFragment(),se=function(){p[le].type=$.number2Type(p[le].type),p[le].color||(p[le].color=16777215);var G=document.createElement("div");G.classList.add("dplayer-danmaku-item"),G.classList.add("dplayer-danmaku-".concat(p[le].type)),p[le].border?G.innerHTML='<span style="border:'.concat(p[le].border,'">').concat(p[le].text,"</span>"):G.innerHTML=p[le].text,G.style.opacity=y._opacity,G.style.color=$.number2Color(p[le].color),G.addEventListener("animationend",function(){y.container.removeChild(G)});var ce,me=y._measure(p[le].text);switch(p[le].type){case"right":(ce=X(G,p[le].type,me))>=0&&(G.style.width=me+1+"px",G.style.top=g*ce+"px",G.style.transform="translateX(-".concat(w,"px)"));break;case"top":(ce=X(G,p[le].type))>=0&&(G.style.top=g*ce+"px");break;case"bottom":(ce=X(G,p[le].type))>=0&&(G.style.bottom=g*ce+"px");break;default:console.error("Can't handled danmaku type: ".concat(p[le].type))}ce>=0&&(G.classList.add("dplayer-danmaku-move"),G.style.animationDuration=y._danAnimation(p[le].type),oe.appendChild(G))},le=0;le<p.length;le++)se();return this.container.appendChild(oe),oe}}},{key:"play",value:function(){this.paused=!1}},{key:"pause",value:function(){this.paused=!0}},{key:"_measure",value:function(p){if(!this.context){var y=getComputedStyle(this.container.getElementsByClassName("dplayer-danmaku-item")[0],null);this.context=document.createElement("canvas").getContext("2d"),this.context.font=y.getPropertyValue("font")}return this.context.measureText(p).width}},{key:"seek",value:function(){this.clear();for(var p=0;p<this.dan.length;p++){if(this.dan[p].time>=this.options.time()){this.danIndex=p;break}this.danIndex=this.dan.length}}},{key:"clear",value:function(){this.danTunnel={right:{},top:{},bottom:{}},this.danIndex=0,this.options.container.innerHTML="",this.events&&this.events.trigger("danmaku_clear")}},{key:"htmlEncode",value:function(p){return p.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2f;")}},{key:"resize",value:function(){for(var p=this.container.offsetWidth,y=this.container.getElementsByClassName("dplayer-danmaku-item"),g=0;g<y.length;g++)y[g].style.transform="translateX(-".concat(p,"px)")}},{key:"hide",value:function(){this.showing=!1,this.pause(),this.clear(),this.events&&this.events.trigger("danmaku_hide")}},{key:"show",value:function(){this.seek(),this.showing=!0,this.play(),this.events&&this.events.trigger("danmaku_show")}},{key:"unlimit",value:function(p){this.unlimited=p}},{key:"speed",value:function(p){this.options.api.speedRate=p}},{key:"_danAnimation",value:function(p){var y=this.options.api.speedRate||1,g=!!this.player.fullScreen.isFullScreen();return{top:"".concat((g?6:4)/y,"s"),right:"".concat((g?8:5)/y,"s"),bottom:"".concat((g?6:4)/y,"s")}[p]}}],x&&x1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const k1=w1;function lr(d){return lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},lr(d)}function E1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(lr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(lr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),lr(y)==="symbol"?y:String(y)),p)}var y}const C1=function(){function d(){(function(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")})(this,d),this.events={},this.videoEvents=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],this.playerEvents=["screenshot","thumbnails_show","thumbnails_hide","danmaku_show","danmaku_hide","danmaku_clear","danmaku_loaded","danmaku_send","danmaku_opacity","contextmenu_show","contextmenu_hide","notice_show","notice_hide","quality_start","quality_end","destroy","resize","fullscreen","fullscreen_cancel","webfullscreen","webfullscreen_cancel","subtitle_show","subtitle_hide","subtitle_change"]}var m,x;return m=d,(x=[{key:"on",value:function(p,y){this.type(p)&&typeof y=="function"&&(this.events[p]||(this.events[p]=[]),this.events[p].push(y))}},{key:"trigger",value:function(p,y){if(this.events[p]&&this.events[p].length)for(var g=0;g<this.events[p].length;g++)this.events[p][g](y)}},{key:"type",value:function(p){return this.playerEvents.indexOf(p)!==-1?"player":this.videoEvents.indexOf(p)!==-1?"video":(console.error("Unknown event name: ".concat(p)),null)}}])&&E1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();function sr(d){return sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},sr(d)}function S1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(sr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(sr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),sr(y)==="symbol"?y:String(y)),p)}var y}var B1=function(){function d(p){var y=this;(function(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")})(this,d),this.player=p,this.lastScrollPosition={left:0,top:0},this.player.events.on("webfullscreen",function(){y.player.resize()}),this.player.events.on("webfullscreen_cancel",function(){y.player.resize(),$.setScrollPosition(y.lastScrollPosition)}),this.fullscreenchange=function(){y.player.resize(),y.isFullScreen("browser")?y.player.events.trigger("fullscreen"):($.setScrollPosition(y.lastScrollPosition),y.player.events.trigger("fullscreen_cancel"))},this.docfullscreenchange=function(){var g=document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;g&&g!==y.player.container||(y.player.resize(),g?y.player.events.trigger("fullscreen"):($.setScrollPosition(y.lastScrollPosition),y.player.events.trigger("fullscreen_cancel")))},/Firefox/.test(navigator.userAgent)?(document.addEventListener("mozfullscreenchange",this.docfullscreenchange),document.addEventListener("fullscreenchange",this.docfullscreenchange)):(this.player.container.addEventListener("fullscreenchange",this.fullscreenchange),this.player.container.addEventListener("webkitfullscreenchange",this.fullscreenchange),document.addEventListener("msfullscreenchange",this.docfullscreenchange),document.addEventListener("MSFullscreenChange",this.docfullscreenchange))}var m,x;return m=d,x=[{key:"isFullScreen",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"browser";switch(p){case"browser":return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;case"web":return this.player.container.classList.contains("dplayer-fulled")}}},{key:"request",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"browser",y=p==="browser"?"web":"browser",g=this.isFullScreen(y);switch(g||(this.lastScrollPosition=$.getScrollPosition()),p){case"browser":this.player.container.requestFullscreen?this.player.container.requestFullscreen():this.player.container.mozRequestFullScreen?this.player.container.mozRequestFullScreen():this.player.container.webkitRequestFullscreen?this.player.container.webkitRequestFullscreen():this.player.video.webkitEnterFullscreen?this.player.video.webkitEnterFullscreen():this.player.video.webkitEnterFullScreen?this.player.video.webkitEnterFullScreen():this.player.container.msRequestFullscreen&&this.player.container.msRequestFullscreen();break;case"web":this.player.container.classList.add("dplayer-fulled"),document.body.classList.add("dplayer-web-fullscreen-fix"),this.player.events.trigger("webfullscreen")}g&&this.cancel(y)}},{key:"cancel",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"browser";switch(p){case"browser":document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.webkitCancelFullscreen?document.webkitCancelFullscreen():document.msCancelFullScreen?document.msCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen();break;case"web":this.player.container.classList.remove("dplayer-fulled"),document.body.classList.remove("dplayer-web-fullscreen-fix"),this.player.events.trigger("webfullscreen_cancel")}}},{key:"toggle",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"browser";this.isFullScreen(p)?this.cancel(p):this.request(p)}},{key:"destroy",value:function(){/Firefox/.test(navigator.userAgent)?(document.removeEventListener("mozfullscreenchange",this.docfullscreenchange),document.removeEventListener("fullscreenchange",this.docfullscreenchange)):(this.player.container.removeEventListener("fullscreenchange",this.fullscreenchange),this.player.container.removeEventListener("webkitfullscreenchange",this.fullscreenchange),document.removeEventListener("msfullscreenchange",this.docfullscreenchange),document.removeEventListener("MSFullscreenChange",this.docfullscreenchange))}}],x&&S1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const I1=B1;function ur(d){return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},ur(d)}function O1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(ur(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(ur(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),ur(y)==="symbol"?y:String(y)),p)}var y}var P1=function(){function d(p){(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,d),this.storageName={opacity:"dplayer-danmaku-opacity",volume:"dplayer-volume",unlimited:"dplayer-danmaku-unlimited",danmaku:"dplayer-danmaku-show",subtitle:"dplayer-subtitle-show"},this.default={opacity:.7,volume:p.options.hasOwnProperty("volume")?p.options.volume:.7,unlimited:(p.options.danmaku&&p.options.danmaku.unlimited?1:0)||0,danmaku:1,subtitle:1},this.data={},this.init()}var m,x;return m=d,(x=[{key:"init",value:function(){for(var p in this.storageName){var y=this.storageName[p];this.data[p]=parseFloat($.storage.get(y)||this.default[p])}}},{key:"get",value:function(p){return this.data[p]}},{key:"set",value:function(p,y){this.data[p]=y,$.storage.set(this.storageName[p],y)}}])&&O1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const _1=P1;function cr(d){return cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},cr(d)}function T1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(cr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(cr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),cr(y)==="symbol"?y:String(y)),p)}var y}var L1=function(){function d(p,y,g,w){(function(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")})(this,d),this.container=p,this.video=y,this.options=g,this.events=w,this.init()}var m,x;return m=d,x=[{key:"init",value:function(){var p=this;if(this.container.style.fontSize=this.options.fontSize,this.container.style.bottom=this.options.bottom,this.container.style.color=this.options.color,this.video.textTracks&&this.video.textTracks[0]){var y=this.video.textTracks[0];y.oncuechange=function(){var g=y.activeCues[y.activeCues.length-1];if(p.container.innerHTML="",g){var w=document.createElement("div");w.appendChild(g.getCueAsHTML());var E=w.innerHTML.split(/\r?\n/).map(function(C){return"<p>".concat(C,"</p>")}).join("");p.container.innerHTML=E}p.events.trigger("subtitle_change")}}}},{key:"show",value:function(){this.container.classList.remove("dplayer-subtitle-hide"),this.events.trigger("subtitle_show")}},{key:"hide",value:function(){this.container.classList.add("dplayer-subtitle-hide"),this.events.trigger("subtitle_hide")}},{key:"toggle",value:function(){this.container.classList.contains("dplayer-subtitle-hide")?this.show():this.hide()}}],x&&T1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const j1=L1;function pr(d){return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},pr(d)}function D1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(pr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(pr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),pr(y)==="symbol"?y:String(y)),p)}var y}var M1=function(){function d(p){var y=this;(function(C,D){if(!(C instanceof D))throw new TypeError("Cannot call a class as a function")})(this,d),this.player=p,this.player.template.mask.addEventListener("click",function(){y.hide()}),this.player.template.subtitlesButton.addEventListener("click",function(){y.adaptiveHeight(),y.show()});for(var g=this.player.template.subtitlesItem.length-1,w=function(C){y.player.template.subtitlesItem[C].addEventListener("click",function(){y.hide(),y.player.options.subtitle.index!==C&&(y.player.template.subtitle.innerHTML="<p></p>",y.player.template.subtrack.src=y.player.template.subtitlesItem[C].dataset.subtitle,y.player.options.subtitle.index=C,y.player.template.subtitle.classList.contains("dplayer-subtitle-hide")&&y.subContainerShow())})},E=0;E<g;E++)w(E);this.player.template.subtitlesItem[g].addEventListener("click",function(){y.hide(),y.player.options.subtitle.index!==g&&(y.player.template.subtitle.innerHTML="<p></p>",y.player.template.subtrack.src="",y.player.options.subtitle.index=g,y.subContainerHide())})}var m,x;return m=d,(x=[{key:"subContainerShow",value:function(){this.player.template.subtitle.classList.remove("dplayer-subtitle-hide"),this.player.events.trigger("subtitle_show")}},{key:"subContainerHide",value:function(){this.player.template.subtitle.classList.add("dplayer-subtitle-hide"),this.player.events.trigger("subtitle_hide")}},{key:"hide",value:function(){this.player.template.subtitlesBox.classList.remove("dplayer-subtitles-box-open"),this.player.template.mask.classList.remove("dplayer-mask-show"),this.player.controller.disableAutoHide=!1}},{key:"show",value:function(){this.player.template.subtitlesBox.classList.add("dplayer-subtitles-box-open"),this.player.template.mask.classList.add("dplayer-mask-show"),this.player.controller.disableAutoHide=!0}},{key:"adaptiveHeight",value:function(){var p=30*this.player.template.subtitlesItem.length+14,y=.8*this.player.template.videoWrap.offsetHeight;p>=y-50?(this.player.template.subtitlesBox.style.bottom="8px",this.player.template.subtitlesBox.style["max-height"]=y-8+"px"):(this.player.template.subtitlesBox.style.bottom="50px",this.player.template.subtitlesBox.style["max-height"]=y-50+"px")}}])&&D1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const z1=M1;function dr(d){return dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},dr(d)}function F1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(dr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(dr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),dr(y)==="symbol"?y:String(y)),p)}var y}var R1=function(){function d(p){(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,d),this.elements={},this.elements.volume=p.volumeBar,this.elements.played=p.playedBar,this.elements.loaded=p.loadedBar,this.elements.danmaku=p.danmakuOpacityBar}var m,x;return m=d,(x=[{key:"set",value:function(p,y,g){y=Math.max(y,0),y=Math.min(y,1),this.elements[p].style[g]=100*y+"%"}},{key:"get",value:function(p){return parseFloat(this.elements[p].style.width)/100}}])&&F1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const N1=R1;function fr(d){return fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},fr(d)}function q1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(fr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(fr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),fr(y)==="symbol"?y:String(y)),p)}var y}var U1=function(){function d(p){(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,d),this.player=p,window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(y){window.setTimeout(y,1e3/60)},this.types=["loading","info","fps"],this.init()}var m,x;return m=d,(x=[{key:"init",value:function(){var p=this;this.types.map(function(y){return y!=="fps"&&p["init".concat(y,"Checker")](),y})}},{key:"initloadingChecker",value:function(){var p=this,y=0,g=0,w=!1;this.loadingChecker=setInterval(function(){p.enableloadingChecker&&(g=p.player.video.currentTime,w||g!==y||p.player.video.paused||(p.player.container.classList.add("dplayer-loading"),w=!0),w&&g>y&&!p.player.video.paused&&(p.player.container.classList.remove("dplayer-loading"),w=!1),y=g)},100)}},{key:"initfpsChecker",value:function(){var p=this;window.requestAnimationFrame(function(){if(p.enablefpsChecker)if(p.initfpsChecker(),p.fpsStart){p.fpsIndex++;var y=new Date;y-p.fpsStart>1e3&&(p.player.infoPanel.fps(p.fpsIndex/(y-p.fpsStart)*1e3),p.fpsStart=new Date,p.fpsIndex=0)}else p.fpsStart=new Date,p.fpsIndex=0;else p.fpsStart=0,p.fpsIndex=0})}},{key:"initinfoChecker",value:function(){var p=this;this.infoChecker=setInterval(function(){p.enableinfoChecker&&p.player.infoPanel.update()},1e3)}},{key:"enable",value:function(p){this["enable".concat(p,"Checker")]=!0,p==="fps"&&this.initfpsChecker()}},{key:"disable",value:function(p){this["enable".concat(p,"Checker")]=!1}},{key:"destroy",value:function(){var p=this;this.types.map(function(y){return p["enable".concat(y,"Checker")]=!1,p["".concat(y,"Checker")]&&clearInterval(p["".concat(y,"Checker")]),y})}}])&&q1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const H1=U1;function hr(d){return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},hr(d)}function $1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(hr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(hr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),hr(y)==="symbol"?y:String(y)),p)}var y}const W1=function(){function d(p){var y=this;(function(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")})(this,d),this.container=p,this.container.addEventListener("animationend",function(){y.container.classList.remove("dplayer-bezel-transition")})}var m,x;return m=d,(x=[{key:"switch",value:function(p){this.container.innerHTML=p,this.container.classList.add("dplayer-bezel-transition")}}])&&$1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();function mr(d){return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},mr(d)}function Y1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(mr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(mr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),mr(y)==="symbol"?y:String(y)),p)}var y}var V1=function(){function d(p){(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,d),this.container=p.container,this.barWidth=p.barWidth,this.container.style.backgroundImage="url('".concat(p.url,"')"),this.events=p.events}var m,x;return m=d,(x=[{key:"resize",value:function(p,y,g){this.container.style.width="".concat(p,"px"),this.container.style.height="".concat(y,"px"),this.container.style.top="".concat(2-y,"px"),this.barWidth=g}},{key:"show",value:function(){this.container.style.display="block",this.events&&this.events.trigger("thumbnails_show")}},{key:"move",value:function(p){this.container.style.backgroundPosition="-".concat(160*(Math.ceil(p/this.barWidth*100)-1),"px 0"),this.container.style.left="".concat(Math.min(Math.max(p-this.container.offsetWidth/2,-10),this.barWidth-150),"px")}},{key:"hide",value:function(){this.container.style.display="none",this.events&&this.events.trigger("thumbnails_hide")}}])&&Y1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const K1=V1;function yr(d){return yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},yr(d)}function Q1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(yr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(yr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),yr(y)==="symbol"?y:String(y)),p)}var y}var Zn,Uc=!0,ka=!1,J1=function(){function d(p){(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,d),this.player=p,this.autoHideTimer=0,$.isMobile||(this.setAutoHideHandler=this.setAutoHide.bind(this),this.player.container.addEventListener("mousemove",this.setAutoHideHandler),this.player.container.addEventListener("click",this.setAutoHideHandler),this.player.on("play",this.setAutoHideHandler),this.player.on("pause",this.setAutoHideHandler)),this.initPlayButton(),this.initThumbnails(),this.initPlayedBar(),this.initFullButton(),this.initQualityButton(),this.initScreenshotButton(),this.player.options.subtitle&&typeof this.player.options.subtitle.url=="string"&&this.initSubtitleButton(),this.initHighlights(),this.initAirplayButton(),this.initChromecastButton(),$.isMobile||this.initVolumeButton()}var m,x;return m=d,(x=[{key:"initPlayButton",value:function(){var p=this;this.player.template.playButton.addEventListener("click",function(){p.player.toggle()}),this.player.template.mobilePlayButton.addEventListener("click",function(){p.player.toggle()}),$.isMobile?(this.player.template.videoWrap.addEventListener("click",function(){p.toggle()}),this.player.template.controllerMask.addEventListener("click",function(){p.toggle()})):this.player.options.preventClickToggle||(this.player.template.videoWrap.addEventListener("click",function(){p.player.toggle()}),this.player.template.controllerMask.addEventListener("click",function(){p.player.toggle()}))}},{key:"initHighlights",value:function(){var p=this;this.player.on("durationchange",function(){if(p.player.video.duration!==1&&p.player.video.duration!==1/0&&p.player.options.highlight){var y=p.player.template.playedBarWrap.querySelectorAll(".dplayer-highlight");[].slice.call(y,0).forEach(function(E){p.player.template.playedBarWrap.removeChild(E)});for(var g=0;g<p.player.options.highlight.length;g++)if(p.player.options.highlight[g].text&&p.player.options.highlight[g].time){var w=document.createElement("div");w.classList.add("dplayer-highlight"),w.style.left=p.player.options.highlight[g].time/p.player.video.duration*100+"%",w.innerHTML='<span class="dplayer-highlight-text">'+p.player.options.highlight[g].text+"</span>",p.player.template.playedBarWrap.insertBefore(w,p.player.template.playedBarTime)}}})}},{key:"initThumbnails",value:function(){var p=this;this.player.options.video.thumbnails&&(this.thumbnails=new K1({container:this.player.template.barPreview,barWidth:this.player.template.barWrap.offsetWidth,url:this.player.options.video.thumbnails,events:this.player.events}),this.player.on("loadedmetadata",function(){p.thumbnails.resize(160,p.player.video.videoHeight/p.player.video.videoWidth*160,p.player.template.barWrap.offsetWidth)}))}},{key:"initPlayedBar",value:function(){var p=this,y=function(w){var E=((w.clientX||w.changedTouches[0].clientX)-$.getBoundingClientRectViewLeft(p.player.template.playedBarWrap))/p.player.template.playedBarWrap.clientWidth;E=Math.max(E,0),E=Math.min(E,1),p.player.bar.set("played",E,"width"),p.player.template.ptime.innerHTML=$.secondToTime(E*p.player.video.duration)},g=function w(E){document.removeEventListener($.nameMap.dragEnd,w),document.removeEventListener($.nameMap.dragMove,y);var C=((E.clientX||E.changedTouches[0].clientX)-$.getBoundingClientRectViewLeft(p.player.template.playedBarWrap))/p.player.template.playedBarWrap.clientWidth;C=Math.max(C,0),C=Math.min(C,1),p.player.bar.set("played",C,"width"),p.player.seek(p.player.bar.get("played")*p.player.video.duration),p.player.timer.enable("progress")};this.player.template.playedBarWrap.addEventListener($.nameMap.dragStart,function(){p.player.timer.disable("progress"),document.addEventListener($.nameMap.dragMove,y),document.addEventListener($.nameMap.dragEnd,g)}),this.player.template.playedBarWrap.addEventListener($.nameMap.dragMove,function(w){if(p.player.video.duration){var E=p.player.template.playedBarWrap.getBoundingClientRect().left,C=(w.clientX||w.changedTouches[0].clientX)-E;if(C<0||C>p.player.template.playedBarWrap.offsetWidth)return;var D=p.player.video.duration*(C/p.player.template.playedBarWrap.offsetWidth);$.isMobile&&p.thumbnails&&p.thumbnails.show(),p.thumbnails&&p.thumbnails.move(C),p.player.template.playedBarTime.style.left="".concat(C-(D>=3600?25:20),"px"),p.player.template.playedBarTime.innerText=$.secondToTime(D),p.player.template.playedBarTime.classList.remove("hidden")}}),this.player.template.playedBarWrap.addEventListener($.nameMap.dragEnd,function(){$.isMobile&&p.thumbnails&&p.thumbnails.hide()}),$.isMobile||(this.player.template.playedBarWrap.addEventListener("mouseenter",function(){p.player.video.duration&&(p.thumbnails&&p.thumbnails.show(),p.player.template.playedBarTime.classList.remove("hidden"))}),this.player.template.playedBarWrap.addEventListener("mouseleave",function(){p.player.video.duration&&(p.thumbnails&&p.thumbnails.hide(),p.player.template.playedBarTime.classList.add("hidden"))}))}},{key:"initFullButton",value:function(){var p=this;this.player.template.browserFullButton.addEventListener("click",function(){p.player.fullScreen.toggle("browser")}),this.player.template.webFullButton.addEventListener("click",function(){p.player.fullScreen.toggle("web")})}},{key:"initVolumeButton",value:function(){var p=this,y=function(w){var E=w||window.event,C=((E.clientX||E.changedTouches[0].clientX)-$.getBoundingClientRectViewLeft(p.player.template.volumeBarWrap)-5.5)/35;p.player.volume(C)},g=function w(){document.removeEventListener($.nameMap.dragEnd,w),document.removeEventListener($.nameMap.dragMove,y),p.player.template.volumeButton.classList.remove("dplayer-volume-active")};this.player.template.volumeBarWrapWrap.addEventListener("click",function(w){var E=w||window.event,C=((E.clientX||E.changedTouches[0].clientX)-$.getBoundingClientRectViewLeft(p.player.template.volumeBarWrap)-5.5)/35;p.player.volume(C)}),this.player.template.volumeBarWrapWrap.addEventListener($.nameMap.dragStart,function(){document.addEventListener($.nameMap.dragMove,y),document.addEventListener($.nameMap.dragEnd,g),p.player.template.volumeButton.classList.add("dplayer-volume-active")}),this.player.template.volumeButtonIcon.addEventListener("click",function(){p.player.video.muted?(p.player.video.muted=!1,p.player.switchVolumeIcon(),p.player.bar.set("volume",p.player.volume(),"width")):(p.player.video.muted=!0,p.player.template.volumeIcon.innerHTML=En.volumeOff,p.player.bar.set("volume",0,"width"))})}},{key:"initQualityButton",value:function(){var p=this;this.player.options.video.quality&&this.player.template.qualityList.addEventListener("click",function(y){y.target.classList.contains("dplayer-quality-item")&&p.player.switchQuality(y.target.dataset.index)})}},{key:"initScreenshotButton",value:function(){var p=this;this.player.options.screenshot&&this.player.template.camareButton.addEventListener("click",function(){var y,g=document.createElement("canvas");g.width=p.player.video.videoWidth,g.height=p.player.video.videoHeight,g.getContext("2d").drawImage(p.player.video,0,0,g.width,g.height),g.toBlob(function(w){y=URL.createObjectURL(w);var E=document.createElement("a");E.href=y,E.download="DPlayer.png",E.style.display="none",document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(y),p.player.events.trigger("screenshot",y)})})}},{key:"initAirplayButton",value:function(){this.player.options.airplay&&(window.WebKitPlaybackTargetAvailabilityEvent?this.player.video.addEventListener("webkitplaybacktargetavailabilitychanged",(function(p){p.availability==="available"?this.template.airplayButton.disable=!1:this.template.airplayButton.disable=!0,this.template.airplayButton.addEventListener("click",(function(){this.video.webkitShowPlaybackTargetPicker()}).bind(this))}).bind(this.player)):this.player.template.airplayButton.style.display="none")}},{key:"initChromecast",value:function(){var p=window.document.createElement("script");p.setAttribute("type","text/javascript"),p.setAttribute("src","https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"),window.document.body.appendChild(p),window.__onGCastApiAvailable=function(y){if(y){var g=new(Zn=window.chrome.cast).SessionRequest(Zn.media.DEFAULT_MEDIA_RECEIVER_APP_ID),w=new Zn.ApiConfig(g,function(){},function(E){E===Zn.ReceiverAvailability.AVAILABLE&&console.log("chromecast: ",E)});Zn.initialize(w,function(){})}}}},{key:"initChromecastButton",value:function(){var p=this;if(this.player.options.chromecast){Uc&&(Uc=!1,this.initChromecast());var y=function(w,E){p.currentMedia=E},g=function(w){console.error("Error launching media",w)};this.player.template.chromecastButton.addEventListener("click",function(){ka?(ka=!1,p.currentMedia.stop(),p.session.stop(),p.initChromecast()):(ka=!0,Zn.requestSession(function(w){var E,C,D;p.session=w,E=p.player.options.video.url,C=new Zn.media.MediaInfo(E),D=new Zn.media.LoadRequest(C),p.session?p.session.loadMedia(D,y.bind(p,"loadMedia"),g).play():window.open(E)},function(w){w.code==="cancel"?p.session=void 0:console.error("Error selecting a cast device",w)}))})}}},{key:"initSubtitleButton",value:function(){var p=this;this.player.events.on("subtitle_show",function(){p.player.template.subtitleButton.dataset.balloon=p.player.tran("hide-subs"),p.player.template.subtitleButtonInner.style.opacity="",p.player.user.set("subtitle",1)}),this.player.events.on("subtitle_hide",function(){p.player.template.subtitleButton.dataset.balloon=p.player.tran("show-subs"),p.player.template.subtitleButtonInner.style.opacity="0.4",p.player.user.set("subtitle",0)}),this.player.template.subtitleButton.addEventListener("click",function(){p.player.subtitle.toggle()})}},{key:"setAutoHide",value:function(){var p=this;this.show(),clearTimeout(this.autoHideTimer),this.autoHideTimer=setTimeout(function(){!p.player.video.played.length||p.player.paused||p.disableAutoHide||p.hide()},3e3)}},{key:"show",value:function(){this.player.container.classList.remove("dplayer-hide-controller")}},{key:"hide",value:function(){this.player.container.classList.add("dplayer-hide-controller"),this.player.setting.hide(),this.player.comment&&this.player.comment.hide()}},{key:"isShow",value:function(){return!this.player.container.classList.contains("dplayer-hide-controller")}},{key:"toggle",value:function(){this.isShow()?this.hide():this.show()}},{key:"destroy",value:function(){$.isMobile||(this.player.container.removeEventListener("mousemove",this.setAutoHideHandler),this.player.container.removeEventListener("click",this.setAutoHideHandler)),clearTimeout(this.autoHideTimer)}}])&&Q1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const Z1=J1;function Ar(d){return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},Ar(d)}function X1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(Ar(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(Ar(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),Ar(y)==="symbol"?y:String(y)),p)}var y}var G1=function(){function d(p){var y=this;(function(D,z){if(!(D instanceof z))throw new TypeError("Cannot call a class as a function")})(this,d),this.player=p,this.player.template.mask.addEventListener("click",function(){y.hide()}),this.player.template.settingButton.addEventListener("click",function(){y.show()}),this.loop=this.player.options.loop,this.player.template.loopToggle.checked=this.loop,this.player.template.loop.addEventListener("click",function(){y.player.template.loopToggle.checked=!y.player.template.loopToggle.checked,y.player.template.loopToggle.checked?y.loop=!0:y.loop=!1,y.hide()}),this.showDanmaku=this.player.user.get("danmaku"),this.showDanmaku||this.player.danmaku&&this.player.danmaku.hide(),this.player.template.showDanmakuToggle.checked=this.showDanmaku,this.player.template.showDanmaku.addEventListener("click",function(){y.player.template.showDanmakuToggle.checked=!y.player.template.showDanmakuToggle.checked,y.player.template.showDanmakuToggle.checked?(y.showDanmaku=!0,y.player.danmaku.show()):(y.showDanmaku=!1,y.player.danmaku.hide()),y.player.user.set("danmaku",y.showDanmaku?1:0),y.hide()}),this.unlimitDanmaku=this.player.user.get("unlimited"),this.player.template.unlimitDanmakuToggle.checked=this.unlimitDanmaku,this.player.template.unlimitDanmaku.addEventListener("click",function(){y.player.template.unlimitDanmakuToggle.checked=!y.player.template.unlimitDanmakuToggle.checked,y.player.template.unlimitDanmakuToggle.checked?(y.unlimitDanmaku=!0,y.player.danmaku.unlimit(!0)):(y.unlimitDanmaku=!1,y.player.danmaku.unlimit(!1)),y.player.user.set("unlimited",y.unlimitDanmaku?1:0),y.hide()}),this.player.template.speed.addEventListener("click",function(){y.player.template.settingBox.classList.add("dplayer-setting-box-narrow"),y.player.template.settingBox.classList.add("dplayer-setting-box-speed")});for(var g=function(D){y.player.template.speedItem[D].addEventListener("click",function(){y.player.speed(y.player.template.speedItem[D].dataset.speed),y.hide()})},w=0;w<this.player.template.speedItem.length;w++)g(w);if(this.player.danmaku){this.player.on("danmaku_opacity",function(D){y.player.bar.set("danmaku",D,"width"),y.player.user.set("opacity",D)}),this.player.danmaku.opacity(this.player.user.get("opacity"));var E=function(D){var z=D||window.event,X=((z.clientX||z.changedTouches[0].clientX)-$.getBoundingClientRectViewLeft(y.player.template.danmakuOpacityBarWrap))/130;X=Math.max(X,0),X=Math.min(X,1),y.player.danmaku.opacity(X)},C=function D(){document.removeEventListener($.nameMap.dragEnd,D),document.removeEventListener($.nameMap.dragMove,E),y.player.template.danmakuOpacityBox.classList.remove("dplayer-setting-danmaku-active")};this.player.template.danmakuOpacityBarWrapWrap.addEventListener("click",function(D){var z=D||window.event,X=((z.clientX||z.changedTouches[0].clientX)-$.getBoundingClientRectViewLeft(y.player.template.danmakuOpacityBarWrap))/130;X=Math.max(X,0),X=Math.min(X,1),y.player.danmaku.opacity(X)}),this.player.template.danmakuOpacityBarWrapWrap.addEventListener($.nameMap.dragStart,function(){document.addEventListener($.nameMap.dragMove,E),document.addEventListener($.nameMap.dragEnd,C),y.player.template.danmakuOpacityBox.classList.add("dplayer-setting-danmaku-active")})}}var m,x;return m=d,(x=[{key:"hide",value:function(){var p=this;this.player.template.settingBox.classList.remove("dplayer-setting-box-open"),this.player.template.mask.classList.remove("dplayer-mask-show"),setTimeout(function(){p.player.template.settingBox.classList.remove("dplayer-setting-box-narrow"),p.player.template.settingBox.classList.remove("dplayer-setting-box-speed")},300),this.player.controller.disableAutoHide=!1}},{key:"show",value:function(){this.player.template.settingBox.classList.add("dplayer-setting-box-open"),this.player.template.mask.classList.add("dplayer-mask-show"),this.player.controller.disableAutoHide=!0}}])&&X1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const ex=G1;function gr(d){return gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},gr(d)}function nx(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(gr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(gr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),gr(y)==="symbol"?y:String(y)),p)}var y}var tx=function(){function d(p){var y=this;(function(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")})(this,d),this.player=p,this.player.template.mask.addEventListener("click",function(){y.hide()}),this.player.template.commentButton.addEventListener("click",function(){y.show()}),this.player.template.commentSettingButton.addEventListener("click",function(){y.toggleSetting()}),this.player.template.commentColorSettingBox.addEventListener("click",function(){if(y.player.template.commentColorSettingBox.querySelector("input:checked+span")){var g=y.player.template.commentColorSettingBox.querySelector("input:checked").value;y.player.template.commentSettingFill.style.fill=g,y.player.template.commentInput.style.color=g,y.player.template.commentSendFill.style.fill=g}}),this.player.template.commentInput.addEventListener("click",function(){y.hideSetting()}),this.player.template.commentInput.addEventListener("keydown",function(g){(g||window.event).keyCode===13&&y.send()}),this.player.template.commentSendButton.addEventListener("click",function(){y.send()})}var m,x;return m=d,(x=[{key:"show",value:function(){this.player.controller.disableAutoHide=!0,this.player.template.controller.classList.add("dplayer-controller-comment"),this.player.template.mask.classList.add("dplayer-mask-show"),this.player.container.classList.add("dplayer-show-controller"),this.player.template.commentInput.focus()}},{key:"hide",value:function(){this.player.template.controller.classList.remove("dplayer-controller-comment"),this.player.template.mask.classList.remove("dplayer-mask-show"),this.player.container.classList.remove("dplayer-show-controller"),this.player.controller.disableAutoHide=!1,this.hideSetting()}},{key:"showSetting",value:function(){this.player.template.commentSettingBox.classList.add("dplayer-comment-setting-open")}},{key:"hideSetting",value:function(){this.player.template.commentSettingBox.classList.remove("dplayer-comment-setting-open")}},{key:"toggleSetting",value:function(){this.player.template.commentSettingBox.classList.contains("dplayer-comment-setting-open")?this.hideSetting():this.showSetting()}},{key:"send",value:function(){var p=this;this.player.template.commentInput.blur(),this.player.template.commentInput.value.replace(/^\s+|\s+$/g,"")?this.player.danmaku.send({text:this.player.template.commentInput.value,color:$.color2Number(this.player.container.querySelector(".dplayer-comment-setting-color input:checked").value),type:parseInt(this.player.container.querySelector(".dplayer-comment-setting-type input:checked").value)},function(){p.player.template.commentInput.value="",p.hide()}):this.player.notice(this.player.tran("please-input-danmaku"))}}])&&nx(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const rx=tx;function br(d){return br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},br(d)}function ix(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(br(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(br(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),br(y)==="symbol"?y:String(y)),p)}var y}var ox=function(){function d(p){(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,d),this.player=p,this.doHotKeyHandler=this.doHotKey.bind(this),this.cancelFullScreenHandler=this.cancelFullScreen.bind(this),this.player.options.hotkey&&document.addEventListener("keydown",this.doHotKeyHandler),document.addEventListener("keydown",this.cancelFullScreenHandler)}var m,x;return m=d,(x=[{key:"doHotKey",value:function(p){if(this.player.focus){var y=document.activeElement.tagName.toUpperCase(),g=document.activeElement.getAttribute("contenteditable");if(y!=="INPUT"&&y!=="TEXTAREA"&&g!==""&&g!=="true"){var w,E=p||window.event;switch(E.keyCode){case 32:E.preventDefault(),this.player.toggle();break;case 37:if(E.preventDefault(),this.player.options.live)break;this.player.seek(this.player.video.currentTime-5),this.player.controller.setAutoHide();break;case 39:if(E.preventDefault(),this.player.options.live)break;this.player.seek(this.player.video.currentTime+5),this.player.controller.setAutoHide();break;case 38:E.preventDefault(),w=this.player.volume()+.1,this.player.volume(w);break;case 40:E.preventDefault(),w=this.player.volume()-.1,this.player.volume(w)}}}}},{key:"cancelFullScreen",value:function(p){(p||window.event).keyCode===27&&this.player.fullScreen.isFullScreen("web")&&this.player.fullScreen.cancel("web")}},{key:"destroy",value:function(){this.player.options.hotkey&&document.removeEventListener("keydown",this.doHotKeyHandler),document.removeEventListener("keydown",this.cancelFullScreenHandler)}}])&&ix(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const ax=ox;function vr(d){return vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},vr(d)}function lx(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(vr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(vr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),vr(y)==="symbol"?y:String(y)),p)}var y}var sx=function(){function d(p){var y=this;(function(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")})(this,d),this.player=p,this.shown=!1,Array.prototype.slice.call(this.player.template.menuItem).forEach(function(g,w){y.player.options.contextmenu[w].click&&g.addEventListener("click",function(){y.player.options.contextmenu[w].click(y.player),y.hide()})}),this.contextmenuHandler=function(g){if(y.shown)y.hide();else{var w=g||window.event;w.preventDefault();var E=y.player.container.getBoundingClientRect();y.show(w.clientX-E.left,w.clientY-E.top),y.player.template.mask.addEventListener("click",function(){y.hide()})}},this.player.container.addEventListener("contextmenu",this.contextmenuHandler)}var m,x;return m=d,(x=[{key:"show",value:function(p,y){this.player.template.menu.classList.add("dplayer-menu-show");var g=this.player.container.getBoundingClientRect();p+this.player.template.menu.offsetWidth>=g.width?(this.player.template.menu.style.right=g.width-p+"px",this.player.template.menu.style.left="initial"):(this.player.template.menu.style.left=p+"px",this.player.template.menu.style.right="initial"),y+this.player.template.menu.offsetHeight>=g.height?(this.player.template.menu.style.bottom=g.height-y+"px",this.player.template.menu.style.top="initial"):(this.player.template.menu.style.top=y+"px",this.player.template.menu.style.bottom="initial"),this.player.template.mask.classList.add("dplayer-mask-show"),this.shown=!0,this.player.events.trigger("contextmenu_show")}},{key:"hide",value:function(){this.player.template.mask.classList.remove("dplayer-mask-show"),this.player.template.menu.classList.remove("dplayer-menu-show"),this.shown=!1,this.player.events.trigger("contextmenu_hide")}},{key:"destroy",value:function(){this.player.container.removeEventListener("contextmenu",this.contextmenuHandler)}}])&&lx(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const ux=sx;function xr(d){return xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},xr(d)}function cx(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(xr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(xr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),xr(y)==="symbol"?y:String(y)),p)}var y}var px=function(){function d(p){var y=this;(function(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")})(this,d),this.container=p.template.infoPanel,this.template=p.template,this.video=p.video,this.player=p,this.template.infoPanelClose.addEventListener("click",function(){y.hide()})}var m,x;return m=d,(x=[{key:"show",value:function(){this.beginTime=Date.now(),this.update(),this.player.timer.enable("info"),this.player.timer.enable("fps"),this.container.classList.remove("dplayer-info-panel-hide")}},{key:"hide",value:function(){this.player.timer.disable("info"),this.player.timer.disable("fps"),this.container.classList.add("dplayer-info-panel-hide")}},{key:"triggle",value:function(){this.container.classList.contains("dplayer-info-panel-hide")?this.show():this.hide()}},{key:"update",value:function(){this.template.infoVersion.innerHTML="v".concat("1.27.1"," ").concat("v1.27.0-12-g4f61091"),this.template.infoType.innerHTML=this.player.type,this.template.infoUrl.innerHTML=this.player.options.video.url,this.template.infoResolution.innerHTML="".concat(this.player.video.videoWidth," x ").concat(this.player.video.videoHeight),this.template.infoDuration.innerHTML=this.player.video.duration,this.player.options.danmaku&&(this.template.infoDanmakuId.innerHTML=this.player.options.danmaku.id,this.template.infoDanmakuApi.innerHTML=this.player.options.danmaku.api,this.template.infoDanmakuAmount.innerHTML=this.player.danmaku.dan.length)}},{key:"fps",value:function(p){this.template.infoFPS.innerHTML="".concat(p.toFixed(1))}}])&&cx(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const dx=px;var fx=i(568),hx=i.n(fx);function wr(d){return wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},wr(d)}function Hc(d,m){var x=Object.keys(d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(d);m&&(p=p.filter(function(y){return Object.getOwnPropertyDescriptor(d,y).enumerable})),x.push.apply(x,p)}return x}function mx(d,m,x){return(m=Wc(m))in d?Object.defineProperty(d,m,{value:x,enumerable:!0,configurable:!0,writable:!0}):d[m]=x,d}function $c(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,Wc(p.key),p)}}function Wc(d){var m=function(x,p){if(wr(x)!=="object"||x===null)return x;var y=x[Symbol.toPrimitive];if(y!==void 0){var g=y.call(x,"string");if(wr(g)!=="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(x)}(d);return wr(m)==="symbol"?m:String(m)}var Yc=0,_t=[],yx=function(){function d(y){var g=this;(function(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")})(this,d),this.options=function(w){var E={container:w.element||document.getElementsByClassName("dplayer")[0],live:!1,autoplay:!1,theme:"#b7daff",loop:!1,lang:(navigator.language||navigator.browserLanguage).toLowerCase(),screenshot:!1,airplay:!0,chromecast:!1,hotkey:!0,preload:"metadata",volume:.7,playbackSpeed:[.5,.75,1,1.25,1.5,2],apiBackend:jv,video:{},contextmenu:[],mutex:!0,pluginOptions:{hls:{},flv:{},dash:{},webtorrent:{}},preventClickToggle:!1};for(var C in E)E.hasOwnProperty(C)&&!w.hasOwnProperty(C)&&(w[C]=E[C]);return w.video&&!w.video.type&&(w.video.type="auto"),xa(w.danmaku)==="object"&&w.danmaku&&!w.danmaku.user&&(w.danmaku.user="DIYgod"),w.subtitle&&(!w.subtitle.type&&(w.subtitle.type="webvtt"),!w.subtitle.fontSize&&(w.subtitle.fontSize="20px"),!w.subtitle.bottom&&(w.subtitle.bottom="40px"),!w.subtitle.color&&(w.subtitle.color="#fff")),w.video.quality&&(w.video.url=w.video.quality[w.video.defaultQuality].url),w.lang&&(w.lang=w.lang.toLowerCase()),w.contextmenu=w.contextmenu.concat([{key:"video-info",click:function(D){D.infoPanel.triggle()}},{key:"about-author",link:"https://diygod.me"},{text:"DPlayer v".concat("1.27.1"),link:"https://github.com/MoePlayer/DPlayer"}]),w}(function(w){for(var E=1;E<arguments.length;E++){var C=arguments[E]!=null?arguments[E]:{};E%2?Hc(Object(C),!0).forEach(function(D){mx(w,D,C[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(C)):Hc(Object(C)).forEach(function(D){Object.defineProperty(w,D,Object.getOwnPropertyDescriptor(C,D))})}return w}({preload:y.video.type==="webtorrent"?"none":"metadata"},y)),this.options.video.quality&&(this.qualityIndex=this.options.video.defaultQuality,this.quality=this.options.video.quality[this.options.video.defaultQuality]),this.tran=new Dv(this.options.lang).tran,this.events=new C1,this.user=new _1(this),this.container=this.options.container,this.noticeList={},this.container.classList.add("dplayer"),this.options.danmaku||this.container.classList.add("dplayer-no-danmaku"),this.options.live?this.container.classList.add("dplayer-live"):this.container.classList.remove("dplayer-live"),$.isMobile&&this.container.classList.add("dplayer-mobile"),this.arrow=this.container.offsetWidth<=500,this.arrow&&this.container.classList.add("dplayer-arrow"),this.options.subtitle&&Array.isArray(this.options.subtitle.url)&&(this.options.subtitle.url.push({subtitle:"",lang:"off"}),this.options.subtitle.defaultSubtitle&&(typeof this.options.subtitle.defaultSubtitle=="string"?this.options.subtitle.index=this.options.subtitle.url.findIndex(function(w){return w.lang===g.options.subtitle.defaultSubtitle||w.name===g.options.subtitle.defaultSubtitle}):typeof this.options.subtitle.defaultSubtitle=="number"&&(this.options.subtitle.index=this.options.subtitle.defaultSubtitle)),(this.options.subtitle.index===-1||!this.options.subtitle.index||this.options.subtitle.index>this.options.subtitle.url.length-1)&&(this.options.subtitle.index=this.options.subtitle.url.findIndex(function(w){return w.lang===g.options.lang})),this.options.subtitle.index===-1&&(this.options.subtitle.index=this.options.subtitle.url.length-1)),this.template=new qc({container:this.container,options:this.options,index:Yc,tran:this.tran}),this.video=this.template.video,this.bar=new N1(this.template),this.bezel=new W1(this.template.bezel),this.fullScreen=new I1(this),this.controller=new Z1(this),this.options.danmaku&&(this.danmaku=new k1({player:this,container:this.template.danmaku,opacity:this.user.get("opacity"),callback:function(){setTimeout(function(){g.template.danmakuLoading.style.display="none",g.options.autoplay&&g.play()},0)},error:function(w){g.notice(w)},apiBackend:this.options.apiBackend,borderColor:this.options.theme,height:this.arrow?24:30,time:function(){return g.video.currentTime},unlimited:this.user.get("unlimited"),api:{id:this.options.danmaku.id,address:this.options.danmaku.api,token:this.options.danmaku.token,maximum:this.options.danmaku.maximum,addition:this.options.danmaku.addition,user:this.options.danmaku.user,speedRate:this.options.danmaku.speedRate},events:this.events,tran:function(w){return g.tran(w)}}),this.comment=new rx(this)),this.setting=new ex(this),this.plugins={},this.docClickFun=function(){g.focus=!1},this.containerClickFun=function(){g.focus=!0},document.addEventListener("click",this.docClickFun,!0),this.container.addEventListener("click",this.containerClickFun,!0),this.paused=!0,this.timer=new H1(this),this.hotkey=new ax(this),this.contextmenu=new ux(this),this.initVideo(this.video,this.quality&&this.quality.type||this.options.video.type),this.infoPanel=new dx(this),!this.danmaku&&this.options.autoplay&&this.play(),Yc++,_t.push(this)}var m,x,p;return m=d,x=[{key:"seek",value:function(y){y=Math.max(y,0),this.video.duration&&(y=Math.min(y,this.video.duration)),this.video.currentTime<y?this.notice("".concat(this.tran("ff").replace("%s",(y-this.video.currentTime).toFixed(0)))):this.video.currentTime>y&&this.notice("".concat(this.tran("rew").replace("%s",(this.video.currentTime-y).toFixed(0)))),this.video.currentTime=y,this.danmaku&&this.danmaku.seek(),this.bar.set("played",y/this.video.duration,"width"),this.template.ptime.innerHTML=$.secondToTime(y)}},{key:"play",value:function(y){var g=this;if(this.paused=!1,this.video.paused&&!$.isMobile&&this.bezel.switch(En.play),this.template.playButton.innerHTML=En.pause,this.template.mobilePlayButton.innerHTML=En.pause,y||ie.resolve(this.video.play()).catch(function(){g.pause()}).then(function(){}),this.timer.enable("loading"),this.container.classList.remove("dplayer-paused"),this.container.classList.add("dplayer-playing"),this.danmaku&&this.danmaku.play(),this.options.mutex)for(var w=0;w<_t.length;w++)this!==_t[w]&&_t[w].pause()}},{key:"pause",value:function(y){this.paused=!0,this.container.classList.remove("dplayer-loading"),this.video.paused||$.isMobile||this.bezel.switch(En.pause),this.template.playButton.innerHTML=En.play,this.template.mobilePlayButton.innerHTML=En.play,y||this.video.pause(),this.timer.disable("loading"),this.container.classList.remove("dplayer-playing"),this.container.classList.add("dplayer-paused"),this.danmaku&&this.danmaku.pause()}},{key:"switchVolumeIcon",value:function(){this.volume()>=.95?this.template.volumeIcon.innerHTML=En.volumeUp:this.volume()>0?this.template.volumeIcon.innerHTML=En.volumeDown:this.template.volumeIcon.innerHTML=En.volumeOff}},{key:"volume",value:function(y,g,w){if(y=parseFloat(y),!isNaN(y)){y=Math.max(y,0),y=Math.min(y,1),this.bar.set("volume",y,"width");var E="".concat((100*y).toFixed(0),"%");this.template.volumeBarWrapWrap.dataset.balloon=E,g||this.user.set("volume",y),w||this.notice("".concat(this.tran("volume")," ").concat((100*y).toFixed(0),"%"),void 0,void 0,"volume"),this.video.volume=y,this.video.muted&&(this.video.muted=!1),this.switchVolumeIcon()}return this.video.volume}},{key:"toggle",value:function(){this.video.paused?this.play():this.pause()}},{key:"on",value:function(y,g){this.events.on(y,g)}},{key:"switchVideo",value:function(y,g){this.pause(),this.video.poster=y.pic?y.pic:"",this.video.src=y.url,this.initMSE(this.video,y.type||"auto"),g&&(this.template.danmakuLoading.style.display="block",this.bar.set("played",0,"width"),this.bar.set("loaded",0,"width"),this.template.ptime.innerHTML="00:00",this.template.danmaku.innerHTML="",this.danmaku&&this.danmaku.reload({id:g.id,address:g.api,token:g.token,maximum:g.maximum,addition:g.addition,user:g.user}))}},{key:"initMSE",value:function(y,g){var w=this;if(this.type=g,this.options.video.customType&&this.options.video.customType[g])Object.prototype.toString.call(this.options.video.customType[g])==="[object Function]"?this.options.video.customType[g](this.video,this):console.error("Illegal customType: ".concat(g));else switch(this.type==="auto"&&(/m3u8(#|\?|$)/i.exec(y.src)?this.type="hls":/.flv(#|\?|$)/i.exec(y.src)?this.type="flv":/.mpd(#|\?|$)/i.exec(y.src)?this.type="dash":this.type="normal"),this.type==="hls"&&(y.canPlayType("application/x-mpegURL")||y.canPlayType("application/vnd.apple.mpegURL"))&&(this.type="normal"),this.type){case"hls":if(window.Hls)if(window.Hls.isSupported()){var E=this.options.pluginOptions.hls,C=new window.Hls(E);this.plugins.hls=C,C.loadSource(y.src),C.attachMedia(y),this.events.on("destroy",function(){C.destroy(),delete w.plugins.hls})}else this.notice("Error: Hls is not supported.");else this.notice("Error: Can't find Hls.");break;case"flv":if(window.flvjs)if(window.flvjs.isSupported()){var D=window.flvjs.createPlayer(Object.assign(this.options.pluginOptions.flv.mediaDataSource||{},{type:"flv",url:y.src}),this.options.pluginOptions.flv.config);this.plugins.flvjs=D,D.attachMediaElement(y),D.load(),this.events.on("destroy",function(){D.unload(),D.detachMediaElement(),D.destroy(),delete w.plugins.flvjs})}else this.notice("Error: flvjs is not supported.");else this.notice("Error: Can't find flvjs.");break;case"dash":if(window.dashjs){var z=window.dashjs.MediaPlayer().create().initialize(y,y.src,!1),X=this.options.pluginOptions.dash;z.updateSettings(X),this.plugins.dash=z,this.events.on("destroy",function(){window.dashjs.MediaPlayer().reset(),delete w.plugins.dash})}else this.notice("Error: Can't find dashjs.");break;case"webtorrent":if(window.WebTorrent)if(window.WebTorrent.WEBRTC_SUPPORT){this.container.classList.add("dplayer-loading");var oe=this.options.pluginOptions.webtorrent,se=new window.WebTorrent(oe);this.plugins.webtorrent=se;var le=y.src;y.src="",y.preload="metadata",y.addEventListener("durationchange",function(){return w.container.classList.remove("dplayer-loading")},{once:!0}),se.add(le,function(G){G.files.find(function(ce){return ce.name.endsWith(".mp4")}).renderTo(w.video,{autoplay:w.options.autoplay,controls:!1})}),this.events.on("destroy",function(){se.remove(le),se.destroy(),delete w.plugins.webtorrent})}else this.notice("Error: Webtorrent is not supported.");else this.notice("Error: Can't find Webtorrent.")}}},{key:"initVideo",value:function(y,g){var w=this;this.initMSE(y,g),this.on("durationchange",function(){y.duration!==1&&y.duration!==1/0&&(w.template.dtime.innerHTML=$.secondToTime(y.duration))}),this.on("progress",function(){var D=y.buffered.length?y.buffered.end(y.buffered.length-1)/y.duration:0;w.bar.set("loaded",D,"width")}),this.on("error",function(){w.video.error&&w.tran&&w.notice&&w.type!=="webtorrent"&&w.notice(w.tran("video-failed"))}),this.on("ended",function(){w.bar.set("played",1,"width"),w.setting.loop?(w.seek(0),w.play()):w.pause(),w.danmaku&&(w.danmaku.danIndex=0)}),this.on("play",function(){w.paused&&w.play(!0)}),this.on("pause",function(){w.paused||w.pause(!0)}),this.on("timeupdate",function(){w.bar.set("played",w.video.currentTime/w.video.duration,"width");var D=$.secondToTime(w.video.currentTime);w.template.ptime.innerHTML!==D&&(w.template.ptime.innerHTML=D)});for(var E=function(D){y.addEventListener(w.events.videoEvents[D],function(z){w.events.trigger(w.events.videoEvents[D],z)})},C=0;C<this.events.videoEvents.length;C++)E(C);this.volume(this.user.get("volume"),!0,!0),this.options.subtitle&&(this.subtitle=new j1(this.template.subtitle,this.video,this.options.subtitle,this.events),Array.isArray(this.options.subtitle.url)&&(this.subtitles=new z1(this)),this.user.get("subtitle")||this.subtitle.hide())}},{key:"switchQuality",value:function(y){var g=this;if(y=typeof y=="string"?parseInt(y):y,this.qualityIndex!==y&&!this.switchingQuality){this.prevIndex=this.qualityIndex,this.qualityIndex=y,this.switchingQuality=!0,this.quality=this.options.video.quality[y],this.template.qualityButton.innerHTML=this.quality.name;var w=this.video.paused;this.video.pause();var E=hx()({current:!1,pic:null,screenshot:this.options.screenshot,preload:"auto",url:this.quality.url,subtitle:this.options.subtitle}),C=new DOMParser().parseFromString(E,"text/html").body.firstChild;this.template.videoWrap.insertBefore(C,this.template.videoWrap.getElementsByTagName("div")[0]),this.prevVideo=this.video,this.video=C,this.initVideo(this.video,this.quality.type||this.options.video.type),this.seek(this.prevVideo.currentTime),this.notice("".concat(this.tran("switching-quality").replace("%q",this.quality.name)),-1,void 0,"switch-quality"),this.events.trigger("quality_start",this.quality),this.on("canplay",function(){if(g.prevVideo){if(g.video.currentTime!==g.prevVideo.currentTime)return void g.seek(g.prevVideo.currentTime);g.template.videoWrap.removeChild(g.prevVideo),g.video.classList.add("dplayer-video-current"),w||g.video.play(),g.prevVideo=null,g.notice("".concat(g.tran("switched-quality").replace("%q",g.quality.name)),void 0,void 0,"switch-quality"),g.switchingQuality=!1,g.events.trigger("quality_end")}}),this.on("error",function(){g.video.error&&g.prevVideo&&(g.template.videoWrap.removeChild(g.video),g.video=g.prevVideo,w||g.video.play(),g.qualityIndex=g.prevIndex,g.quality=g.options.video.quality[g.qualityIndex],g.noticeTime=setTimeout(function(){g.template.notice.style.opacity=0,g.events.trigger("notice_hide")},3e3),g.prevVideo=null,g.switchingQuality=!1)})}}},{key:"notice",value:function(y){var g,w,E,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2e3,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.8,z=arguments.length>3?arguments[3]:void 0;if(z&&((g=document.getElementById("dplayer-notice-".concat(z)))&&(g.innerHTML=y),this.noticeList[z]&&(clearTimeout(this.noticeList[z]),this.noticeList[z]=null)),!g){var X=qc.NewNotice(y,D,z);this.template.noticeList.appendChild(X),g=X}this.events.trigger("notice_show",g),C>0&&(this.noticeList[z]=setTimeout((w=g,E=this,function(){w.addEventListener("animationend",function(){E.template.noticeList.removeChild(w)}),w.classList.add("remove-notice"),E.events.trigger("notice_hide"),E.noticeList[z]=null}),C))}},{key:"resize",value:function(){this.danmaku&&this.danmaku.resize(),this.controller.thumbnails&&this.controller.thumbnails.resize(160,this.video.videoHeight/this.video.videoWidth*160,this.template.barWrap.offsetWidth),this.events.trigger("resize")}},{key:"speed",value:function(y){this.video.playbackRate=y}},{key:"destroy",value:function(){_t.splice(_t.indexOf(this),1),this.pause(),document.removeEventListener("click",this.docClickFun,!0),this.container.removeEventListener("click",this.containerClickFun,!0),this.fullScreen.destroy(),this.hotkey.destroy(),this.contextmenu.destroy(),this.controller.destroy(),this.timer.destroy(),this.video.src="",this.container.innerHTML="",this.events.trigger("destroy")}}],p=[{key:"version",get:function(){return"1.27.1"}}],x&&$c(m.prototype,x),p&&$c(m,p),Object.defineProperty(m,"prototype",{writable:!1}),d}();const Ax=yx;console.log(`
4826
+ `)}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],g=[{key:"from",value:function(w){return w instanceof this?w:new this(w)}},{key:"concat",value:function(w){for(var E=new this(w),C=arguments.length,D=new Array(C>1?C-1:0),z=1;z<C;z++)D[z-1]=arguments[z];return D.forEach(function(X){return E.set(X)}),E}},{key:"accessor",value:function(w){var E=(this[qn]=this[qn]={accessors:{}}).accessors,C=this.prototype;function D(z){var X=Qn(z);E[X]||(function(oe,se){var le=R.toCamelCase(" "+se);["get","set","has"].forEach(function(G){Object.defineProperty(oe,G+le,{value:function(ce,me,Qe){return this[G].call(this,se,ce,me,Qe)},configurable:!0})})}(C,z),E[X]=!0)}return R.isArray(w)?w.forEach(D):D(w),this}}],y&&sn(p.prototype,y),g&&sn(p,g),Object.defineProperty(p,"prototype",{writable:!1}),x}();hi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),R.freezeMethods(hi.prototype),R.freezeMethods(hi);const Un=hi;function ma(d,m){var x=this||ve,p=m||x,y=Un.from(p.headers),g=p.data;return R.forEach(d,function(w){g=w.call(x,g,y.normalize(),m?m.status:void 0)}),y.normalize(),g}function Pc(d){return!(!d||!d.__CANCEL__)}function Tc(d,m,x){Ae.call(this,d??"canceled",Ae.ERR_CANCELED,m,x),this.name="CanceledError"}R.inherits(Tc,Ae,{__CANCEL__:!0});const mi=Tc,Tv=pe.isStandardBrowserEnv?{write:function(d,m,x,p,y,g){var w=[];w.push(d+"="+encodeURIComponent(m)),R.isNumber(x)&&w.push("expires="+new Date(x).toGMTString()),R.isString(p)&&w.push("path="+p),R.isString(y)&&w.push("domain="+y),g===!0&&w.push("secure"),document.cookie=w.join("; ")},read:function(d){var m=document.cookie.match(new RegExp("(^|;\\s*)("+d+")=([^;]*)"));return m?decodeURIComponent(m[3]):null},remove:function(d){this.write(d,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function _c(d,m){return d&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(m)?function(x,p){return p?x.replace(/\/+$/,"")+"/"+p.replace(/^\/+/,""):x}(d,m):m}const _v=pe.isStandardBrowserEnv?function(){var d,m=/(msie|trident)/i.test(navigator.userAgent),x=document.createElement("a");function p(y){var g=y;return m&&(x.setAttribute("href",g),g=x.href),x.setAttribute("href",g),{href:x.href,protocol:x.protocol?x.protocol.replace(/:$/,""):"",host:x.host,search:x.search?x.search.replace(/^\?/,""):"",hash:x.hash?x.hash.replace(/^#/,""):"",hostname:x.hostname,port:x.port,pathname:x.pathname.charAt(0)==="/"?x.pathname:"/"+x.pathname}}return d=p(window.location.href),function(y){var g=R.isString(y)?p(y):y;return g.protocol===d.protocol&&g.host===d.host}}():function(){return!0};function Lc(d,m){var x=0,p=function(y,g){y=y||10;var w,E=new Array(y),C=new Array(y),D=0,z=0;return g=g!==void 0?g:1e3,function(X){var oe=Date.now(),se=C[z];w||(w=oe),E[D]=X,C[D]=oe;for(var le=z,G=0;le!==D;)G+=E[le++],le%=y;if((D=(D+1)%y)===z&&(z=(z+1)%y),!(oe-w<g)){var ce=se&&oe-se;return ce?Math.round(1e3*G/ce):void 0}}}(50,250);return function(y){var g=y.loaded,w=y.lengthComputable?y.total:void 0,E=g-x,C=p(E);x=g;var D={loaded:g,total:w,progress:w?g/w:void 0,bytes:E,rate:C||void 0,estimated:C&&w&&g<=w?(w-g)/C:void 0,event:y};D[m?"download":"upload"]=!0,d(D)}}var ya={http:null,xhr:typeof XMLHttpRequest<"u"&&function(d){return new Promise(function(m,x){var p,y=d.data,g=Un.from(d.headers).normalize(),w=d.responseType;function E(){d.cancelToken&&d.cancelToken.unsubscribe(p),d.signal&&d.signal.removeEventListener("abort",p)}R.isFormData(y)&&(pe.isStandardBrowserEnv||pe.isStandardBrowserWebWorkerEnv)&&g.setContentType(!1);var C=new XMLHttpRequest;if(d.auth){var D=d.auth.username||"",z=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";g.set("Authorization","Basic "+btoa(D+":"+z))}var X=_c(d.baseURL,d.url);function oe(){if(C){var ce=Un.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders());(function(me,Qe,Ye){var _e=Ye.config.validateStatus;Ye.status&&_e&&!_e(Ye.status)?Qe(new Ae("Request failed with status code "+Ye.status,[Ae.ERR_BAD_REQUEST,Ae.ERR_BAD_RESPONSE][Math.floor(Ye.status/100)-4],Ye.config,Ye.request,Ye)):me(Ye)})(function(me){m(me),E()},function(me){x(me),E()},{data:w&&w!=="text"&&w!=="json"?C.response:C.responseText,status:C.status,statusText:C.statusText,headers:ce,config:d,request:C}),C=null}}if(C.open(d.method.toUpperCase(),ir(X,d.params,d.paramsSerializer),!0),C.timeout=d.timeout,"onloadend"in C?C.onloadend=oe:C.onreadystatechange=function(){C&&C.readyState===4&&(C.status!==0||C.responseURL&&C.responseURL.indexOf("file:")===0)&&setTimeout(oe)},C.onabort=function(){C&&(x(new Ae("Request aborted",Ae.ECONNABORTED,d,C)),C=null)},C.onerror=function(){x(new Ae("Network Error",Ae.ERR_NETWORK,d,C)),C=null},C.ontimeout=function(){var ce=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",me=d.transitional||fi;d.timeoutErrorMessage&&(ce=d.timeoutErrorMessage),x(new Ae(ce,me.clarifyTimeoutError?Ae.ETIMEDOUT:Ae.ECONNABORTED,d,C)),C=null},pe.isStandardBrowserEnv){var se=(d.withCredentials||_v(X))&&d.xsrfCookieName&&Tv.read(d.xsrfCookieName);se&&g.set(d.xsrfHeaderName,se)}y===void 0&&g.setContentType(null),"setRequestHeader"in C&&R.forEach(g.toJSON(),function(ce,me){C.setRequestHeader(me,ce)}),R.isUndefined(d.withCredentials)||(C.withCredentials=!!d.withCredentials),w&&w!=="json"&&(C.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&C.addEventListener("progress",Lc(d.onDownloadProgress,!0)),typeof d.onUploadProgress=="function"&&C.upload&&C.upload.addEventListener("progress",Lc(d.onUploadProgress)),(d.cancelToken||d.signal)&&(p=function(ce){C&&(x(!ce||ce.type?new mi(null,d,C):ce),C.abort(),C=null)},d.cancelToken&&d.cancelToken.subscribe(p),d.signal&&(d.signal.aborted?p():d.signal.addEventListener("abort",p)));var le,G=(le=/^([-+\w]{1,25})(:?\/\/|:)/.exec(X))&&le[1]||"";G&&pe.protocols.indexOf(G)===-1?x(new Ae("Unsupported protocol "+G+":",Ae.ERR_BAD_REQUEST,d)):C.send(y||null)})}};R.forEach(ya,function(d,m){if(d){try{Object.defineProperty(d,"name",{value:m})}catch{}Object.defineProperty(d,"adapterName",{value:m})}});function Aa(d){if(d.cancelToken&&d.cancelToken.throwIfRequested(),d.signal&&d.signal.aborted)throw new mi(null,d)}function jc(d){return Aa(d),d.headers=Un.from(d.headers),d.data=ma.call(d,d.transformRequest),["post","put","patch"].indexOf(d.method)!==-1&&d.headers.setContentType("application/x-www-form-urlencoded",!1),function(m){for(var x,p,y=(m=R.isArray(m)?m:[m]).length,g=0;g<y&&(x=m[g],!(p=R.isString(x)?ya[x.toLowerCase()]:x));g++);if(!p)throw p===!1?new Ae("Adapter ".concat(x," is not supported by the environment"),"ERR_NOT_SUPPORT"):new Error(R.hasOwnProp(ya,x)?"Adapter '".concat(x,"' is not available in the build"):"Unknown adapter '".concat(x,"'"));if(!R.isFunction(p))throw new TypeError("adapter is not a function");return p}(d.adapter||ve.adapter)(d).then(function(m){return Aa(d),m.data=ma.call(d,d.transformResponse,m),m.headers=Un.from(m.headers),m},function(m){return Pc(m)||(Aa(d),m&&m.response&&(m.response.data=ma.call(d,d.transformResponse,m.response),m.response.headers=Un.from(m.response.headers))),Promise.reject(m)})}var Dc=function(d){return d instanceof Un?d.toJSON():d};function It(d,m){m=m||{};var x={};function p(D,z,X){return R.isPlainObject(D)&&R.isPlainObject(z)?R.merge.call({caseless:X},D,z):R.isPlainObject(z)?R.merge({},z):R.isArray(z)?z.slice():z}function y(D,z,X){return R.isUndefined(z)?R.isUndefined(D)?void 0:p(void 0,D,X):p(D,z,X)}function g(D,z){if(!R.isUndefined(z))return p(void 0,z)}function w(D,z){return R.isUndefined(z)?R.isUndefined(D)?void 0:p(void 0,D):p(void 0,z)}function E(D,z,X){return X in m?p(D,z):X in d?p(void 0,D):void 0}var C={url:g,method:g,data:g,baseURL:w,transformRequest:w,transformResponse:w,paramsSerializer:w,timeout:w,timeoutMessage:w,withCredentials:w,adapter:w,responseType:w,xsrfCookieName:w,xsrfHeaderName:w,onUploadProgress:w,onDownloadProgress:w,decompress:w,maxContentLength:w,maxBodyLength:w,beforeRedirect:w,transport:w,httpAgent:w,httpsAgent:w,cancelToken:w,socketPath:w,responseEncoding:w,validateStatus:E,headers:function(D,z){return y(Dc(D),Dc(z),!0)}};return R.forEach(Object.keys(d).concat(Object.keys(m)),function(D){var z=C[D]||y,X=z(d[D],m[D],D);R.isUndefined(X)&&z!==E||(x[D]=X)}),x}function yi(d){return yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},yi(d)}var ga={};["object","boolean","number","function","string","symbol"].forEach(function(d,m){ga[d]=function(x){return yi(x)===d||"a"+(m<1?"n ":" ")+d}});var Mc={};ga.transitional=function(d,m,x){function p(y,g){return"[Axios v1.2.3] Transitional option '"+y+"'"+g+(x?". "+x:"")}return function(y,g,w){if(d===!1)throw new Ae(p(g," has been removed"+(m?" in "+m:"")),Ae.ERR_DEPRECATED);return m&&!Mc[g]&&(Mc[g]=!0,console.warn(p(g," has been deprecated since v"+m+" and will be removed in the near future"))),!d||d(y,g,w)}};const ba={assertOptions:function(d,m,x){if(yi(d)!=="object")throw new Ae("options must be an object",Ae.ERR_BAD_OPTION_VALUE);for(var p=Object.keys(d),y=p.length;y-- >0;){var g=p[y],w=m[g];if(w){var E=d[g],C=E===void 0||w(E,g,d);if(C!==!0)throw new Ae("option "+g+" must be "+C,Ae.ERR_BAD_OPTION_VALUE)}else if(x!==!0)throw new Ae("Unknown option "+g,Ae.ERR_BAD_OPTION)}},validators:ga};function or(d){return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},or(d)}function Lv(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(or(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(or(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),or(y)==="symbol"?y:String(y)),p)}var y}var Jn=ba.validators,Ai=function(){function d(p){(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,d),this.defaults=p,this.interceptors={request:new di,response:new di}}var m,x;return m=d,(x=[{key:"request",value:function(p,y){typeof p=="string"?(y=y||{}).url=p:y=p||{};var g,w=y=It(this.defaults,y),E=w.transitional,C=w.paramsSerializer,D=w.headers;E!==void 0&&ba.assertOptions(E,{silentJSONParsing:Jn.transitional(Jn.boolean),forcedJSONParsing:Jn.transitional(Jn.boolean),clarifyTimeoutError:Jn.transitional(Jn.boolean)},!1),C!==void 0&&ba.assertOptions(C,{encode:Jn.function,serialize:Jn.function},!0),y.method=(y.method||this.defaults.method||"get").toLowerCase(),(g=D&&R.merge(D.common,D[y.method]))&&R.forEach(["delete","get","head","post","put","patch","common"],function(_e){delete D[_e]}),y.headers=Un.concat(g,D);var z=[],X=!0;this.interceptors.request.forEach(function(_e){typeof _e.runWhen=="function"&&_e.runWhen(y)===!1||(X=X&&_e.synchronous,z.unshift(_e.fulfilled,_e.rejected))});var oe,se=[];this.interceptors.response.forEach(function(_e){se.push(_e.fulfilled,_e.rejected)});var le,G=0;if(!X){var ce=[jc.bind(this),void 0];for(ce.unshift.apply(ce,z),ce.push.apply(ce,se),le=ce.length,oe=Promise.resolve(y);G<le;)oe=oe.then(ce[G++],ce[G++]);return oe}le=z.length;var me=y;for(G=0;G<le;){var Qe=z[G++],Ye=z[G++];try{me=Qe(me)}catch(_e){Ye.call(this,_e);break}}try{oe=jc.call(this,me)}catch(_e){return Promise.reject(_e)}for(G=0,le=se.length;G<le;)oe=oe.then(se[G++],se[G++]);return oe}},{key:"getUri",value:function(p){return ir(_c((p=It(this.defaults,p)).baseURL,p.url),p.params,p.paramsSerializer)}}])&&Lv(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();R.forEach(["delete","get","head","options"],function(d){Ai.prototype[d]=function(m,x){return this.request(It(x||{},{method:d,url:m,data:(x||{}).data}))}}),R.forEach(["post","put","patch"],function(d){function m(x){return function(p,y,g){return this.request(It(g||{},{method:d,headers:x?{"Content-Type":"multipart/form-data"}:{},url:p,data:y}))}}Ai.prototype[d]=m(),Ai.prototype[d+"Form"]=m(!0)});const gi=Ai;function ar(d){return ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},ar(d)}function zc(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(ar(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(ar(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),ar(y)==="symbol"?y:String(y)),p)}var y}var jv=function(){function d(y){if(function(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}(this,d),typeof y!="function")throw new TypeError("executor must be a function.");var g;this.promise=new Promise(function(E){g=E});var w=this;this.promise.then(function(E){if(w._listeners){for(var C=w._listeners.length;C-- >0;)w._listeners[C](E);w._listeners=null}}),this.promise.then=function(E){var C,D=new Promise(function(z){w.subscribe(z),C=z}).then(E);return D.cancel=function(){w.unsubscribe(C)},D},y(function(E,C,D){w.reason||(w.reason=new mi(E,C,D),g(w.reason))})}var m,x,p;return m=d,x=[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(y){this.reason?y(this.reason):this._listeners?this._listeners.push(y):this._listeners=[y]}},{key:"unsubscribe",value:function(y){if(this._listeners){var g=this._listeners.indexOf(y);g!==-1&&this._listeners.splice(g,1)}}}],p=[{key:"source",value:function(){var y;return{token:new d(function(g){y=g}),cancel:y}}}],x&&zc(m.prototype,x),p&&zc(m,p),Object.defineProperty(m,"prototype",{writable:!1}),d}();const Dv=jv;function Fc(d,m){(m==null||m>d.length)&&(m=d.length);for(var x=0,p=new Array(m);x<m;x++)p[x]=d[x];return p}var va={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(va).forEach(function(d){var m,x,p=(x=2,function(w){if(Array.isArray(w))return w}(m=d)||function(w,E){var C=w==null?null:typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(C!=null){var D,z,X,oe,se=[],le=!0,G=!1;try{if(X=(C=C.call(w)).next,E===0){if(Object(C)!==C)return;le=!1}else for(;!(le=(D=X.call(C)).done)&&(se.push(D.value),se.length!==E);le=!0);}catch(ce){G=!0,z=ce}finally{try{if(!le&&C.return!=null&&(oe=C.return(),Object(oe)!==oe))return}finally{if(G)throw z}}return se}}(m,x)||function(w,E){if(w){if(typeof w=="string")return Fc(w,E);var C=Object.prototype.toString.call(w).slice(8,-1);return C==="Object"&&w.constructor&&(C=w.constructor.name),C==="Map"||C==="Set"?Array.from(w):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?Fc(w,E):void 0}}(m,x)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4827
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()),y=p[0],g=p[1];va[g]=y});const Mv=va;var Ke=function d(m){var x=new gi(m),p=I(gi.prototype.request,x);return R.extend(p,gi.prototype,x,{allOwnKeys:!0}),R.extend(p,x,null,{allOwnKeys:!0}),p.create=function(y){return d(It(m,y))},p}(ve);Ke.Axios=gi,Ke.CanceledError=mi,Ke.CancelToken=Dv,Ke.isCancel=Pc,Ke.VERSION="1.2.3",Ke.toFormData=Kn,Ke.AxiosError=Ae,Ke.Cancel=Ke.CanceledError,Ke.all=function(d){return Promise.all(d)},Ke.spread=function(d){return function(m){return d.apply(null,m)}},Ke.isAxiosError=function(d){return R.isObject(d)&&d.isAxiosError===!0},Ke.mergeConfig=It,Ke.AxiosHeaders=Un,Ke.formToJSON=function(d){return Ie(R.isHTMLForm(d)?new FormData(d):d)},Ke.HttpStatusCode=Mv,Ke.default=Ke;const Rc=Ke,zv={send:function(d){Rc.post(d.url,d.data).then(function(m){var x=m.data;x&&x.code===0?d.success&&d.success(x):d.error&&d.error(x&&x.msg)}).catch(function(m){console.error(m),d.error&&d.error()})},read:function(d){Rc.get(d.url).then(function(m){var x=m.data;x&&x.code===0?d.success&&d.success(x.data.map(function(p){return{time:p[0],type:p[1],color:p[2],author:p[3],text:p[4]}})):d.error&&d.error(x&&x.msg)}).catch(function(m){console.error(m),d.error&&d.error()})}};function xa(d){return xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},xa(d)}function Fv(d){var m=this;this.lang=d,this.fallbackLang=this.lang.includes("-")?this.lang.split("-")[0]:this.lang,this.tran=function(x){return x=x.toLowerCase(),Ot[m.lang]&&Ot[m.lang][x]?Ot[m.lang][x]:Ot[m.fallbackLang]&&Ot[m.fallbackLang][x]?Ot[m.fallbackLang][x]:wa[x]?wa[x]:x}}var wa={"danmaku-loading":"Danmaku is loading",top:"Top",bottom:"Bottom",rolling:"Rolling","input-danmaku-enter":"Input danmaku, hit Enter","about-author":"About author","dplayer-feedback":"DPlayer feedback","about-dplayer":"About DPlayer",loop:"Loop",speed:"Speed","opacity-danmaku":"Opacity for danmaku",normal:"Normal","please-input-danmaku":"Please input danmaku content!","set-danmaku-color":"Set danmaku color","set-danmaku-type":"Set danmaku type","show-danmaku":"Show danmaku","video-failed":"Video load failed","danmaku-failed":"Danmaku load failed","danmaku-send-failed":"Danmaku send failed","switching-quality":"Switching to %q quality","switched-quality":"Switched to %q quality",ff:"FF %s s",rew:"REW %s s","unlimited-danmaku":"Unlimited danmaku","send-danmaku":"Send danmaku",setting:"Setting",fullscreen:"Full screen","web-fullscreen":"Web full screen",send:"Send",screenshot:"Screenshot",airplay:"AirPlay",chromecast:"ChromeCast",subtitle:"Subtitle",off:"Off","show-subs":"Show subtitle","hide-subs":"Hide subtitle",volume:"Volume",live:"Live","video-info":"Video info"},Ot={en:wa,"zh-cn":{"danmaku-loading":"弹幕加载中",top:"顶部",bottom:"底部",rolling:"滚动","input-danmaku-enter":"输入弹幕,回车发送","about-author":"关于作者","dplayer-feedback":"播放器意见反馈","about-dplayer":"关于 DPlayer 播放器",loop:"洗脑循环",speed:"速度","opacity-danmaku":"弹幕透明度",normal:"正常","please-input-danmaku":"要输入弹幕内容啊喂!","set-danmaku-color":"设置弹幕颜色","set-danmaku-type":"设置弹幕类型","show-danmaku":"显示弹幕","video-failed":"视频加载失败","danmaku-failed":"弹幕加载失败","danmaku-send-failed":"弹幕发送失败","switching-quality":"正在切换至 %q 画质","switched-quality":"已经切换至 %q 画质",ff:"快进 %s 秒",rew:"快退 %s 秒","unlimited-danmaku":"海量弹幕","send-danmaku":"发送弹幕",setting:"设置",fullscreen:"全屏","web-fullscreen":"页面全屏",send:"发送",screenshot:"截图",airplay:"无线投屏",chromecast:"ChromeCast",subtitle:"字幕",off:"关闭","show-subs":"显示字幕","hide-subs":"隐藏字幕",volume:"音量",live:"直播","video-info":"视频统计信息"},"zh-tw":{"danmaku-loading":"彈幕載入中",top:"頂部",bottom:"底部",rolling:"滾動","input-danmaku-enter":"輸入彈幕,Enter 發送","about-author":"關於作者","dplayer-feedback":"播放器意見回饋","about-dplayer":"關於 DPlayer 播放器",loop:"循環播放",speed:"速度","opacity-danmaku":"彈幕透明度",normal:"正常","please-input-danmaku":"請輸入彈幕內容啊!","set-danmaku-color":"設定彈幕顏色","set-danmaku-type":"設定彈幕類型","show-danmaku":"顯示彈幕","video-failed":"影片載入失敗","danmaku-failed":"彈幕載入失敗","danmaku-send-failed":"彈幕發送失敗","switching-quality":"正在切換至 %q 畫質","switched-quality":"已經切換至 %q 畫質",ff:"快進 %s 秒",rew:"快退 %s 秒","unlimited-danmaku":"巨量彈幕","send-danmaku":"發送彈幕",setting:"設定",fullscreen:"全螢幕","web-fullscreen":"頁面全螢幕",send:"發送",screenshot:"截圖",airplay:"無線投屏",chromecast:"ChromeCast",subtitle:"字幕",off:"關閉","show-subs":"顯示字幕","hide-subs":"隱藏字幕",volume:"音量",live:"直播","video-info":"影片統計訊息"},"ko-kr":{"danmaku-loading":"Danmaku를 불러오는 중입니다.",top:"Top",bottom:"Bottom",rolling:"Rolling","input-danmaku-enter":"Danmaku를 입력하고 Enter를 누르세요.","about-author":"만든이","dplayer-feedback":"피드백 보내기","about-dplayer":"DPlayer 정보",loop:"반복",speed:"배속","opacity-danmaku":"Danmaku 불투명도",normal:"표준","please-input-danmaku":"Danmaku를 입력하세요!","set-danmaku-color":"Danmaku 색상","set-danmaku-type":"Danmaku 설정","show-danmaku":"Danmaku 표시","video-failed":"비디오를 불러오지 못했습니다.","danmaku-failed":"Danmaku를 불러오지 못했습니다.","danmaku-send-failed":"Danmaku 전송에 실패했습니다.","Switching to":"","Switched to":"","switching-quality":"전환 %q 화질","switched-quality":"전환 됨 %q 화질",ff:"앞으로 %s 초",rew:"뒤로 %s 초","unlimited-danmaku":"끝없는 Danmaku","send-danmaku":"Danmaku 보내기",setting:"설정",fullscreen:"전체 화면","web-fullscreen":"웹 내 전체화면",send:"보내기",screenshot:"화면 캡쳐",airplay:"에어플레이",chromecast:"ChromeCast",subtitle:"부제",off:"끄다","show-subs":"자막 보이기","hide-subs":"자막 숨기기",Volume:"볼륨",live:"생방송","video-info":"비디오 정보"},de:{"danmaku-loading":"Danmaku lädt...",top:"Oben",bottom:"Unten",rolling:"Rollend","input-danmaku-enter":"Drücke Enter nach dem Einfügen vom Danmaku","about-author":"Über den Autor","dplayer-feedback":"DPlayer Feedback","about-dplayer":"Über DPlayer",loop:"Wiederholen",speed:"Geschwindigkeit","opacity-danmaku":"Transparenz für Danmaku",normal:"Normal","please-input-danmaku":"Bitte Danmaku Inhalt eingeben!","set-danmaku-color":"Danmaku Farbe festlegen","set-danmaku-type":"Danmaku Typ festlegen","show-danmaku":"Zeige Danmaku","video-failed":"Das Video konnte nicht geladen werden","danmaku-failed":"Danmaku konnte nicht geladen werden","danmaku-send-failed":"Das senden von Danmaku ist fehgeschlagen","switching-quality":"Wechsle zur %q Qualität","switched-quality":"Zur %q Qualität gewechselt",ff:"%s s Vorwärts",rew:"%s s Zurück","unlimited-danmaku":"Unlimitiertes Danmaku","send-danmaku":"Sende Danmaku",setting:"Einstellungen",fullscreen:"Vollbild","web-fullscreen":"Browser Vollbild",send:"Senden",screenshot:"Screenshot",airplay:"AirPlay","show-subs":"Zeige Untertitel",chromecast:"ChromeCast",subtitle:"Untertitel",off:"Schließung","hide-subs":"Verstecke Untertitel",volume:"Lautstärke",live:"Live","video-info":"Video Info"}},Rv=i(730),Nv=i.n(Rv),qv=i(74),Uv=i.n(qv),Hv=i(437),$v=i.n(Hv),Wv=i(644),Yv=i.n(Wv),Vv=i(324),Kv=i.n(Vv),Qv=i(574),Jv=i.n(Qv),Zv=i(300),Xv=i.n(Zv),Gv=i(934),e1=i.n(Gv),n1=i(428),t1=i.n(n1),r1=i(807),i1=i.n(r1),o1=i(338),a1=i.n(o1),l1=i(254),s1=i.n(l1),u1=i(965),c1=i.n(u1),p1=i(113),d1=i.n(p1),f1=i(251),h1=i.n(f1),m1=i(410),y1=i.n(m1),A1=i(182),g1=i.n(A1),b1=i(193),v1=i.n(b1);const En={play:Nv(),pause:Uv(),volumeUp:$v(),volumeDown:Yv(),volumeOff:Kv(),full:Jv(),fullWeb:Xv(),setting:e1(),right:t1(),comment:i1(),commentOff:a1(),send:s1(),pallette:c1(),camera:d1(),subtitle:y1(),loading:g1(),airplay:h1(),chromecast:v1()};var x1=i(916),w1=i.n(x1);function lr(d){return lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},lr(d)}function Nc(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(lr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(lr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),lr(y)==="symbol"?y:String(y)),p)}var y}var k1=function(){function d(y){(function(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")})(this,d),this.container=y.container,this.options=y.options,this.index=y.index,this.tran=y.tran,this.init()}var m,x,p;return m=d,p=[{key:"NewNotice",value:function(y,g,w){var E=document.createElement("div");return E.classList.add("dplayer-notice"),E.style.opacity=g,E.innerText=y,w&&(E.id="dplayer-notice-".concat(w)),E}}],(x=[{key:"init",value:function(){this.container.innerHTML=w1()({options:this.options,index:this.index,tran:this.tran,icons:En,mobile:$.isMobile,video:{current:!0,pic:this.options.video.pic,screenshot:this.options.screenshot,airplay:!(!$.isSafari||$.isChrome)&&this.options.airplay,chromecast:this.options.chromecast,preload:this.options.preload,url:this.options.video.url,subtitle:this.options.subtitle}}),this.volumeBar=this.container.querySelector(".dplayer-volume-bar-inner"),this.volumeBarWrap=this.container.querySelector(".dplayer-volume-bar"),this.volumeBarWrapWrap=this.container.querySelector(".dplayer-volume-bar-wrap"),this.volumeButton=this.container.querySelector(".dplayer-volume"),this.volumeButtonIcon=this.container.querySelector(".dplayer-volume-icon"),this.volumeIcon=this.container.querySelector(".dplayer-volume-icon .dplayer-icon-content"),this.playedBar=this.container.querySelector(".dplayer-played"),this.loadedBar=this.container.querySelector(".dplayer-loaded"),this.playedBarWrap=this.container.querySelector(".dplayer-bar-wrap"),this.playedBarTime=this.container.querySelector(".dplayer-bar-time"),this.danmaku=this.container.querySelector(".dplayer-danmaku"),this.danmakuLoading=this.container.querySelector(".dplayer-danloading"),this.video=this.container.querySelector(".dplayer-video-current"),this.bezel=this.container.querySelector(".dplayer-bezel-icon"),this.playButton=this.container.querySelector(".dplayer-play-icon"),this.mobilePlayButton=this.container.querySelector(".dplayer-mobile-play"),this.videoWrap=this.container.querySelector(".dplayer-video-wrap"),this.controllerMask=this.container.querySelector(".dplayer-controller-mask"),this.ptime=this.container.querySelector(".dplayer-ptime"),this.settingButton=this.container.querySelector(".dplayer-setting-icon"),this.settingBox=this.container.querySelector(".dplayer-setting-box"),this.mask=this.container.querySelector(".dplayer-mask"),this.loop=this.container.querySelector(".dplayer-setting-loop"),this.loopToggle=this.container.querySelector(".dplayer-setting-loop .dplayer-toggle-setting-input"),this.showDanmaku=this.container.querySelector(".dplayer-setting-showdan"),this.showDanmakuToggle=this.container.querySelector(".dplayer-showdan-setting-input"),this.unlimitDanmaku=this.container.querySelector(".dplayer-setting-danunlimit"),this.unlimitDanmakuToggle=this.container.querySelector(".dplayer-danunlimit-setting-input"),this.speed=this.container.querySelector(".dplayer-setting-speed"),this.speedItem=this.container.querySelectorAll(".dplayer-setting-speed-item"),this.danmakuOpacityBar=this.container.querySelector(".dplayer-danmaku-bar-inner"),this.danmakuOpacityBarWrap=this.container.querySelector(".dplayer-danmaku-bar"),this.danmakuOpacityBarWrapWrap=this.container.querySelector(".dplayer-danmaku-bar-wrap"),this.danmakuOpacityBox=this.container.querySelector(".dplayer-setting-danmaku"),this.dtime=this.container.querySelector(".dplayer-dtime"),this.controller=this.container.querySelector(".dplayer-controller"),this.commentInput=this.container.querySelector(".dplayer-comment-input"),this.commentButton=this.container.querySelector(".dplayer-comment-icon"),this.commentSettingBox=this.container.querySelector(".dplayer-comment-setting-box"),this.commentSettingButton=this.container.querySelector(".dplayer-comment-setting-icon"),this.commentSettingFill=this.container.querySelector(".dplayer-comment-setting-icon path"),this.commentSendButton=this.container.querySelector(".dplayer-send-icon"),this.commentSendFill=this.container.querySelector(".dplayer-send-icon path"),this.commentColorSettingBox=this.container.querySelector(".dplayer-comment-setting-color"),this.browserFullButton=this.container.querySelector(".dplayer-full-icon"),this.webFullButton=this.container.querySelector(".dplayer-full-in-icon"),this.menu=this.container.querySelector(".dplayer-menu"),this.menuItem=this.container.querySelectorAll(".dplayer-menu-item"),this.qualityList=this.container.querySelector(".dplayer-quality-list"),this.camareButton=this.container.querySelector(".dplayer-camera-icon"),this.airplayButton=this.container.querySelector(".dplayer-airplay-icon"),this.chromecastButton=this.container.querySelector(".dplayer-chromecast-icon"),this.subtitleButton=this.container.querySelector(".dplayer-subtitle-icon"),this.subtitleButtonInner=this.container.querySelector(".dplayer-subtitle-icon .dplayer-icon-content"),this.subtitlesButton=this.container.querySelector(".dplayer-subtitles-icon"),this.subtitlesBox=this.container.querySelector(".dplayer-subtitles-box"),this.subtitlesItem=this.container.querySelectorAll(".dplayer-subtitles-item"),this.subtitle=this.container.querySelector(".dplayer-subtitle"),this.subtrack=this.container.querySelector(".dplayer-subtrack"),this.qualityButton=this.container.querySelector(".dplayer-quality-icon"),this.barPreview=this.container.querySelector(".dplayer-bar-preview"),this.barWrap=this.container.querySelector(".dplayer-bar-wrap"),this.noticeList=this.container.querySelector(".dplayer-notice-list"),this.infoPanel=this.container.querySelector(".dplayer-info-panel"),this.infoPanelClose=this.container.querySelector(".dplayer-info-panel-close"),this.infoVersion=this.container.querySelector(".dplayer-info-panel-item-version .dplayer-info-panel-item-data"),this.infoFPS=this.container.querySelector(".dplayer-info-panel-item-fps .dplayer-info-panel-item-data"),this.infoType=this.container.querySelector(".dplayer-info-panel-item-type .dplayer-info-panel-item-data"),this.infoUrl=this.container.querySelector(".dplayer-info-panel-item-url .dplayer-info-panel-item-data"),this.infoResolution=this.container.querySelector(".dplayer-info-panel-item-resolution .dplayer-info-panel-item-data"),this.infoDuration=this.container.querySelector(".dplayer-info-panel-item-duration .dplayer-info-panel-item-data"),this.infoDanmakuId=this.container.querySelector(".dplayer-info-panel-item-danmaku-id .dplayer-info-panel-item-data"),this.infoDanmakuApi=this.container.querySelector(".dplayer-info-panel-item-danmaku-api .dplayer-info-panel-item-data"),this.infoDanmakuAmount=this.container.querySelector(".dplayer-info-panel-item-danmaku-amount .dplayer-info-panel-item-data")}}])&&Nc(m.prototype,x),p&&Nc(m,p),Object.defineProperty(m,"prototype",{writable:!1}),d}();const qc=k1;function Pt(d){return Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},Pt(d)}function E1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(Pt(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(Pt(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),Pt(y)==="symbol"?y:String(y)),p)}var y}var C1=function(){function d(p){(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,d),this.options=p,this.player=this.options.player,this.container=this.options.container,this.danTunnel={right:{},top:{},bottom:{}},this.danIndex=0,this.dan=[],this.showing=!0,this._opacity=this.options.opacity,this.events=this.options.events,this.unlimited=this.options.unlimited,this._measure(""),this.load()}var m,x;return m=d,x=[{key:"load",value:function(){var p,y=this;p=this.options.api.maximum?"".concat(this.options.api.address,"v3/?id=").concat(this.options.api.id,"&max=").concat(this.options.api.maximum):"".concat(this.options.api.address,"v3/?id=").concat(this.options.api.id);var g=(this.options.api.addition||[]).slice(0);g.push(p),this.events&&this.events.trigger("danmaku_load_start",g),this._readAllEndpoints(g,function(w){y.dan=[].concat.apply([],w).sort(function(E,C){return E.time-C.time}),window.requestAnimationFrame(function(){y.frame()}),y.options.callback(),y.events&&y.events.trigger("danmaku_load_end")})}},{key:"reload",value:function(p){this.options.api=p,this.dan=[],this.clear(),this.load()}},{key:"_readAllEndpoints",value:function(p,y){for(var g=this,w=[],E=0,C=function(z){g.options.apiBackend.read({url:p[z],success:function(X){w[z]=X,++E===p.length&&y(w)},error:function(X){g.options.error(X||g.options.tran("danmaku-failed")),w[z]=[],++E===p.length&&y(w)}})},D=0;D<p.length;++D)C(D)}},{key:"send",value:function(p,y){var g=this,w={token:this.options.api.token,id:this.options.api.id,author:this.options.api.user,time:this.options.time(),text:p.text,color:p.color,type:p.type};this.options.apiBackend.send({url:this.options.api.address+"v3/",data:w,success:y,error:function(C){g.options.error(C||g.options.tran("danmaku-failed"))}}),this.dan.splice(this.danIndex,0,w),this.danIndex++;var E={text:this.htmlEncode(w.text),color:w.color,type:w.type,border:"2px solid ".concat(this.options.borderColor)};this.draw(E),this.events&&this.events.trigger("danmaku_send",w)}},{key:"frame",value:function(){var p=this;if(this.dan.length&&!this.paused&&this.showing){for(var y=this.dan[this.danIndex],g=[];y&&this.options.time()>parseFloat(y.time);)g.push(y),y=this.dan[++this.danIndex];this.draw(g)}window.requestAnimationFrame(function(){p.frame()})}},{key:"opacity",value:function(p){if(p!==void 0){for(var y=this.container.getElementsByClassName("dplayer-danmaku-item"),g=0;g<y.length;g++)y[g].style.opacity=p;this._opacity=p,this.events&&this.events.trigger("danmaku_opacity",this._opacity)}return this._opacity}},{key:"draw",value:function(p){var y=this;if(this.showing){var g=this.options.height,w=this.container.offsetWidth,E=this.container.offsetHeight,C=parseInt(E/g),D=function(G){var ce=G.offsetWidth||parseInt(G.style.width),me=G.getBoundingClientRect().right||y.container.getBoundingClientRect().right+ce;return y.container.getBoundingClientRect().right-me},z=function(G){return(w+G)/5},X=function(G,ce,me){for(var Qe=w/z(me),Ye=function(ht){var _t=y.danTunnel[ce][ht+""];if(!_t||!_t.length)return y.danTunnel[ce][ht+""]=[G],G.addEventListener("animationend",function(){y.danTunnel[ce][ht+""].splice(0,1)}),{v:ht%C};if(ce!=="right")return"continue";for(var Er=0;Er<_t.length;Er++){var Vc=D(_t[Er])-10;if(Vc<=w-Qe*z(parseInt(_t[Er].style.width))||Vc<=0)break;if(Er===_t.length-1)return y.danTunnel[ce][ht+""].push(G),G.addEventListener("animationend",function(){y.danTunnel[ce][ht+""].splice(0,1)}),{v:ht%C}}},_e=0;y.unlimited||_e<C;_e++){var Xn=Ye(_e);if(Xn!=="continue"&&Pt(Xn)==="object")return Xn.v}return-1};Object.prototype.toString.call(p)!=="[object Array]"&&(p=[p]);for(var oe=document.createDocumentFragment(),se=function(){p[le].type=$.number2Type(p[le].type),p[le].color||(p[le].color=16777215);var G=document.createElement("div");G.classList.add("dplayer-danmaku-item"),G.classList.add("dplayer-danmaku-".concat(p[le].type)),p[le].border?G.innerHTML='<span style="border:'.concat(p[le].border,'">').concat(p[le].text,"</span>"):G.innerHTML=p[le].text,G.style.opacity=y._opacity,G.style.color=$.number2Color(p[le].color),G.addEventListener("animationend",function(){y.container.removeChild(G)});var ce,me=y._measure(p[le].text);switch(p[le].type){case"right":(ce=X(G,p[le].type,me))>=0&&(G.style.width=me+1+"px",G.style.top=g*ce+"px",G.style.transform="translateX(-".concat(w,"px)"));break;case"top":(ce=X(G,p[le].type))>=0&&(G.style.top=g*ce+"px");break;case"bottom":(ce=X(G,p[le].type))>=0&&(G.style.bottom=g*ce+"px");break;default:console.error("Can't handled danmaku type: ".concat(p[le].type))}ce>=0&&(G.classList.add("dplayer-danmaku-move"),G.style.animationDuration=y._danAnimation(p[le].type),oe.appendChild(G))},le=0;le<p.length;le++)se();return this.container.appendChild(oe),oe}}},{key:"play",value:function(){this.paused=!1}},{key:"pause",value:function(){this.paused=!0}},{key:"_measure",value:function(p){if(!this.context){var y=getComputedStyle(this.container.getElementsByClassName("dplayer-danmaku-item")[0],null);this.context=document.createElement("canvas").getContext("2d"),this.context.font=y.getPropertyValue("font")}return this.context.measureText(p).width}},{key:"seek",value:function(){this.clear();for(var p=0;p<this.dan.length;p++){if(this.dan[p].time>=this.options.time()){this.danIndex=p;break}this.danIndex=this.dan.length}}},{key:"clear",value:function(){this.danTunnel={right:{},top:{},bottom:{}},this.danIndex=0,this.options.container.innerHTML="",this.events&&this.events.trigger("danmaku_clear")}},{key:"htmlEncode",value:function(p){return p.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2f;")}},{key:"resize",value:function(){for(var p=this.container.offsetWidth,y=this.container.getElementsByClassName("dplayer-danmaku-item"),g=0;g<y.length;g++)y[g].style.transform="translateX(-".concat(p,"px)")}},{key:"hide",value:function(){this.showing=!1,this.pause(),this.clear(),this.events&&this.events.trigger("danmaku_hide")}},{key:"show",value:function(){this.seek(),this.showing=!0,this.play(),this.events&&this.events.trigger("danmaku_show")}},{key:"unlimit",value:function(p){this.unlimited=p}},{key:"speed",value:function(p){this.options.api.speedRate=p}},{key:"_danAnimation",value:function(p){var y=this.options.api.speedRate||1,g=!!this.player.fullScreen.isFullScreen();return{top:"".concat((g?6:4)/y,"s"),right:"".concat((g?8:5)/y,"s"),bottom:"".concat((g?6:4)/y,"s")}[p]}}],x&&E1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const S1=C1;function sr(d){return sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},sr(d)}function B1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(sr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(sr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),sr(y)==="symbol"?y:String(y)),p)}var y}const I1=function(){function d(){(function(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")})(this,d),this.events={},this.videoEvents=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],this.playerEvents=["screenshot","thumbnails_show","thumbnails_hide","danmaku_show","danmaku_hide","danmaku_clear","danmaku_loaded","danmaku_send","danmaku_opacity","contextmenu_show","contextmenu_hide","notice_show","notice_hide","quality_start","quality_end","destroy","resize","fullscreen","fullscreen_cancel","webfullscreen","webfullscreen_cancel","subtitle_show","subtitle_hide","subtitle_change"]}var m,x;return m=d,(x=[{key:"on",value:function(p,y){this.type(p)&&typeof y=="function"&&(this.events[p]||(this.events[p]=[]),this.events[p].push(y))}},{key:"trigger",value:function(p,y){if(this.events[p]&&this.events[p].length)for(var g=0;g<this.events[p].length;g++)this.events[p][g](y)}},{key:"type",value:function(p){return this.playerEvents.indexOf(p)!==-1?"player":this.videoEvents.indexOf(p)!==-1?"video":(console.error("Unknown event name: ".concat(p)),null)}}])&&B1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();function ur(d){return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},ur(d)}function O1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(ur(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(ur(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),ur(y)==="symbol"?y:String(y)),p)}var y}var P1=function(){function d(p){var y=this;(function(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")})(this,d),this.player=p,this.lastScrollPosition={left:0,top:0},this.player.events.on("webfullscreen",function(){y.player.resize()}),this.player.events.on("webfullscreen_cancel",function(){y.player.resize(),$.setScrollPosition(y.lastScrollPosition)}),this.fullscreenchange=function(){y.player.resize(),y.isFullScreen("browser")?y.player.events.trigger("fullscreen"):($.setScrollPosition(y.lastScrollPosition),y.player.events.trigger("fullscreen_cancel"))},this.docfullscreenchange=function(){var g=document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;g&&g!==y.player.container||(y.player.resize(),g?y.player.events.trigger("fullscreen"):($.setScrollPosition(y.lastScrollPosition),y.player.events.trigger("fullscreen_cancel")))},/Firefox/.test(navigator.userAgent)?(document.addEventListener("mozfullscreenchange",this.docfullscreenchange),document.addEventListener("fullscreenchange",this.docfullscreenchange)):(this.player.container.addEventListener("fullscreenchange",this.fullscreenchange),this.player.container.addEventListener("webkitfullscreenchange",this.fullscreenchange),document.addEventListener("msfullscreenchange",this.docfullscreenchange),document.addEventListener("MSFullscreenChange",this.docfullscreenchange))}var m,x;return m=d,x=[{key:"isFullScreen",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"browser";switch(p){case"browser":return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;case"web":return this.player.container.classList.contains("dplayer-fulled")}}},{key:"request",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"browser",y=p==="browser"?"web":"browser",g=this.isFullScreen(y);switch(g||(this.lastScrollPosition=$.getScrollPosition()),p){case"browser":this.player.container.requestFullscreen?this.player.container.requestFullscreen():this.player.container.mozRequestFullScreen?this.player.container.mozRequestFullScreen():this.player.container.webkitRequestFullscreen?this.player.container.webkitRequestFullscreen():this.player.video.webkitEnterFullscreen?this.player.video.webkitEnterFullscreen():this.player.video.webkitEnterFullScreen?this.player.video.webkitEnterFullScreen():this.player.container.msRequestFullscreen&&this.player.container.msRequestFullscreen();break;case"web":this.player.container.classList.add("dplayer-fulled"),document.body.classList.add("dplayer-web-fullscreen-fix"),this.player.events.trigger("webfullscreen")}g&&this.cancel(y)}},{key:"cancel",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"browser";switch(p){case"browser":document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.webkitCancelFullscreen?document.webkitCancelFullscreen():document.msCancelFullScreen?document.msCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen();break;case"web":this.player.container.classList.remove("dplayer-fulled"),document.body.classList.remove("dplayer-web-fullscreen-fix"),this.player.events.trigger("webfullscreen_cancel")}}},{key:"toggle",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"browser";this.isFullScreen(p)?this.cancel(p):this.request(p)}},{key:"destroy",value:function(){/Firefox/.test(navigator.userAgent)?(document.removeEventListener("mozfullscreenchange",this.docfullscreenchange),document.removeEventListener("fullscreenchange",this.docfullscreenchange)):(this.player.container.removeEventListener("fullscreenchange",this.fullscreenchange),this.player.container.removeEventListener("webkitfullscreenchange",this.fullscreenchange),document.removeEventListener("msfullscreenchange",this.docfullscreenchange),document.removeEventListener("MSFullscreenChange",this.docfullscreenchange))}}],x&&O1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const T1=P1;function cr(d){return cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},cr(d)}function _1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(cr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(cr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),cr(y)==="symbol"?y:String(y)),p)}var y}var L1=function(){function d(p){(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,d),this.storageName={opacity:"dplayer-danmaku-opacity",volume:"dplayer-volume",unlimited:"dplayer-danmaku-unlimited",danmaku:"dplayer-danmaku-show",subtitle:"dplayer-subtitle-show"},this.default={opacity:.7,volume:p.options.hasOwnProperty("volume")?p.options.volume:.7,unlimited:(p.options.danmaku&&p.options.danmaku.unlimited?1:0)||0,danmaku:1,subtitle:1},this.data={},this.init()}var m,x;return m=d,(x=[{key:"init",value:function(){for(var p in this.storageName){var y=this.storageName[p];this.data[p]=parseFloat($.storage.get(y)||this.default[p])}}},{key:"get",value:function(p){return this.data[p]}},{key:"set",value:function(p,y){this.data[p]=y,$.storage.set(this.storageName[p],y)}}])&&_1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const j1=L1;function pr(d){return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},pr(d)}function D1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(pr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(pr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),pr(y)==="symbol"?y:String(y)),p)}var y}var M1=function(){function d(p,y,g,w){(function(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")})(this,d),this.container=p,this.video=y,this.options=g,this.events=w,this.init()}var m,x;return m=d,x=[{key:"init",value:function(){var p=this;if(this.container.style.fontSize=this.options.fontSize,this.container.style.bottom=this.options.bottom,this.container.style.color=this.options.color,this.video.textTracks&&this.video.textTracks[0]){var y=this.video.textTracks[0];y.oncuechange=function(){var g=y.activeCues[y.activeCues.length-1];if(p.container.innerHTML="",g){var w=document.createElement("div");w.appendChild(g.getCueAsHTML());var E=w.innerHTML.split(/\r?\n/).map(function(C){return"<p>".concat(C,"</p>")}).join("");p.container.innerHTML=E}p.events.trigger("subtitle_change")}}}},{key:"show",value:function(){this.container.classList.remove("dplayer-subtitle-hide"),this.events.trigger("subtitle_show")}},{key:"hide",value:function(){this.container.classList.add("dplayer-subtitle-hide"),this.events.trigger("subtitle_hide")}},{key:"toggle",value:function(){this.container.classList.contains("dplayer-subtitle-hide")?this.show():this.hide()}}],x&&D1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const z1=M1;function dr(d){return dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},dr(d)}function F1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(dr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(dr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),dr(y)==="symbol"?y:String(y)),p)}var y}var R1=function(){function d(p){var y=this;(function(C,D){if(!(C instanceof D))throw new TypeError("Cannot call a class as a function")})(this,d),this.player=p,this.player.template.mask.addEventListener("click",function(){y.hide()}),this.player.template.subtitlesButton.addEventListener("click",function(){y.adaptiveHeight(),y.show()});for(var g=this.player.template.subtitlesItem.length-1,w=function(C){y.player.template.subtitlesItem[C].addEventListener("click",function(){y.hide(),y.player.options.subtitle.index!==C&&(y.player.template.subtitle.innerHTML="<p></p>",y.player.template.subtrack.src=y.player.template.subtitlesItem[C].dataset.subtitle,y.player.options.subtitle.index=C,y.player.template.subtitle.classList.contains("dplayer-subtitle-hide")&&y.subContainerShow())})},E=0;E<g;E++)w(E);this.player.template.subtitlesItem[g].addEventListener("click",function(){y.hide(),y.player.options.subtitle.index!==g&&(y.player.template.subtitle.innerHTML="<p></p>",y.player.template.subtrack.src="",y.player.options.subtitle.index=g,y.subContainerHide())})}var m,x;return m=d,(x=[{key:"subContainerShow",value:function(){this.player.template.subtitle.classList.remove("dplayer-subtitle-hide"),this.player.events.trigger("subtitle_show")}},{key:"subContainerHide",value:function(){this.player.template.subtitle.classList.add("dplayer-subtitle-hide"),this.player.events.trigger("subtitle_hide")}},{key:"hide",value:function(){this.player.template.subtitlesBox.classList.remove("dplayer-subtitles-box-open"),this.player.template.mask.classList.remove("dplayer-mask-show"),this.player.controller.disableAutoHide=!1}},{key:"show",value:function(){this.player.template.subtitlesBox.classList.add("dplayer-subtitles-box-open"),this.player.template.mask.classList.add("dplayer-mask-show"),this.player.controller.disableAutoHide=!0}},{key:"adaptiveHeight",value:function(){var p=30*this.player.template.subtitlesItem.length+14,y=.8*this.player.template.videoWrap.offsetHeight;p>=y-50?(this.player.template.subtitlesBox.style.bottom="8px",this.player.template.subtitlesBox.style["max-height"]=y-8+"px"):(this.player.template.subtitlesBox.style.bottom="50px",this.player.template.subtitlesBox.style["max-height"]=y-50+"px")}}])&&F1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const N1=R1;function fr(d){return fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},fr(d)}function q1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(fr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(fr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),fr(y)==="symbol"?y:String(y)),p)}var y}var U1=function(){function d(p){(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,d),this.elements={},this.elements.volume=p.volumeBar,this.elements.played=p.playedBar,this.elements.loaded=p.loadedBar,this.elements.danmaku=p.danmakuOpacityBar}var m,x;return m=d,(x=[{key:"set",value:function(p,y,g){y=Math.max(y,0),y=Math.min(y,1),this.elements[p].style[g]=100*y+"%"}},{key:"get",value:function(p){return parseFloat(this.elements[p].style.width)/100}}])&&q1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const H1=U1;function hr(d){return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},hr(d)}function $1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(hr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(hr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),hr(y)==="symbol"?y:String(y)),p)}var y}var W1=function(){function d(p){(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,d),this.player=p,window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(y){window.setTimeout(y,1e3/60)},this.types=["loading","info","fps"],this.init()}var m,x;return m=d,(x=[{key:"init",value:function(){var p=this;this.types.map(function(y){return y!=="fps"&&p["init".concat(y,"Checker")](),y})}},{key:"initloadingChecker",value:function(){var p=this,y=0,g=0,w=!1;this.loadingChecker=setInterval(function(){p.enableloadingChecker&&(g=p.player.video.currentTime,w||g!==y||p.player.video.paused||(p.player.container.classList.add("dplayer-loading"),w=!0),w&&g>y&&!p.player.video.paused&&(p.player.container.classList.remove("dplayer-loading"),w=!1),y=g)},100)}},{key:"initfpsChecker",value:function(){var p=this;window.requestAnimationFrame(function(){if(p.enablefpsChecker)if(p.initfpsChecker(),p.fpsStart){p.fpsIndex++;var y=new Date;y-p.fpsStart>1e3&&(p.player.infoPanel.fps(p.fpsIndex/(y-p.fpsStart)*1e3),p.fpsStart=new Date,p.fpsIndex=0)}else p.fpsStart=new Date,p.fpsIndex=0;else p.fpsStart=0,p.fpsIndex=0})}},{key:"initinfoChecker",value:function(){var p=this;this.infoChecker=setInterval(function(){p.enableinfoChecker&&p.player.infoPanel.update()},1e3)}},{key:"enable",value:function(p){this["enable".concat(p,"Checker")]=!0,p==="fps"&&this.initfpsChecker()}},{key:"disable",value:function(p){this["enable".concat(p,"Checker")]=!1}},{key:"destroy",value:function(){var p=this;this.types.map(function(y){return p["enable".concat(y,"Checker")]=!1,p["".concat(y,"Checker")]&&clearInterval(p["".concat(y,"Checker")]),y})}}])&&$1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const Y1=W1;function mr(d){return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},mr(d)}function V1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(mr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(mr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),mr(y)==="symbol"?y:String(y)),p)}var y}const K1=function(){function d(p){var y=this;(function(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")})(this,d),this.container=p,this.container.addEventListener("animationend",function(){y.container.classList.remove("dplayer-bezel-transition")})}var m,x;return m=d,(x=[{key:"switch",value:function(p){this.container.innerHTML=p,this.container.classList.add("dplayer-bezel-transition")}}])&&V1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();function yr(d){return yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},yr(d)}function Q1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(yr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(yr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),yr(y)==="symbol"?y:String(y)),p)}var y}var J1=function(){function d(p){(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,d),this.container=p.container,this.barWidth=p.barWidth,this.container.style.backgroundImage="url('".concat(p.url,"')"),this.events=p.events}var m,x;return m=d,(x=[{key:"resize",value:function(p,y,g){this.container.style.width="".concat(p,"px"),this.container.style.height="".concat(y,"px"),this.container.style.top="".concat(2-y,"px"),this.barWidth=g}},{key:"show",value:function(){this.container.style.display="block",this.events&&this.events.trigger("thumbnails_show")}},{key:"move",value:function(p){this.container.style.backgroundPosition="-".concat(160*(Math.ceil(p/this.barWidth*100)-1),"px 0"),this.container.style.left="".concat(Math.min(Math.max(p-this.container.offsetWidth/2,-10),this.barWidth-150),"px")}},{key:"hide",value:function(){this.container.style.display="none",this.events&&this.events.trigger("thumbnails_hide")}}])&&Q1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const Z1=J1;function Ar(d){return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},Ar(d)}function X1(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(Ar(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(Ar(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),Ar(y)==="symbol"?y:String(y)),p)}var y}var Zn,Uc=!0,ka=!1,G1=function(){function d(p){(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,d),this.player=p,this.autoHideTimer=0,$.isMobile||(this.setAutoHideHandler=this.setAutoHide.bind(this),this.player.container.addEventListener("mousemove",this.setAutoHideHandler),this.player.container.addEventListener("click",this.setAutoHideHandler),this.player.on("play",this.setAutoHideHandler),this.player.on("pause",this.setAutoHideHandler)),this.initPlayButton(),this.initThumbnails(),this.initPlayedBar(),this.initFullButton(),this.initQualityButton(),this.initScreenshotButton(),this.player.options.subtitle&&typeof this.player.options.subtitle.url=="string"&&this.initSubtitleButton(),this.initHighlights(),this.initAirplayButton(),this.initChromecastButton(),$.isMobile||this.initVolumeButton()}var m,x;return m=d,(x=[{key:"initPlayButton",value:function(){var p=this;this.player.template.playButton.addEventListener("click",function(){p.player.toggle()}),this.player.template.mobilePlayButton.addEventListener("click",function(){p.player.toggle()}),$.isMobile?(this.player.template.videoWrap.addEventListener("click",function(){p.toggle()}),this.player.template.controllerMask.addEventListener("click",function(){p.toggle()})):this.player.options.preventClickToggle||(this.player.template.videoWrap.addEventListener("click",function(){p.player.toggle()}),this.player.template.controllerMask.addEventListener("click",function(){p.player.toggle()}))}},{key:"initHighlights",value:function(){var p=this;this.player.on("durationchange",function(){if(p.player.video.duration!==1&&p.player.video.duration!==1/0&&p.player.options.highlight){var y=p.player.template.playedBarWrap.querySelectorAll(".dplayer-highlight");[].slice.call(y,0).forEach(function(E){p.player.template.playedBarWrap.removeChild(E)});for(var g=0;g<p.player.options.highlight.length;g++)if(p.player.options.highlight[g].text&&p.player.options.highlight[g].time){var w=document.createElement("div");w.classList.add("dplayer-highlight"),w.style.left=p.player.options.highlight[g].time/p.player.video.duration*100+"%",w.innerHTML='<span class="dplayer-highlight-text">'+p.player.options.highlight[g].text+"</span>",p.player.template.playedBarWrap.insertBefore(w,p.player.template.playedBarTime)}}})}},{key:"initThumbnails",value:function(){var p=this;this.player.options.video.thumbnails&&(this.thumbnails=new Z1({container:this.player.template.barPreview,barWidth:this.player.template.barWrap.offsetWidth,url:this.player.options.video.thumbnails,events:this.player.events}),this.player.on("loadedmetadata",function(){p.thumbnails.resize(160,p.player.video.videoHeight/p.player.video.videoWidth*160,p.player.template.barWrap.offsetWidth)}))}},{key:"initPlayedBar",value:function(){var p=this,y=function(w){var E=((w.clientX||w.changedTouches[0].clientX)-$.getBoundingClientRectViewLeft(p.player.template.playedBarWrap))/p.player.template.playedBarWrap.clientWidth;E=Math.max(E,0),E=Math.min(E,1),p.player.bar.set("played",E,"width"),p.player.template.ptime.innerHTML=$.secondToTime(E*p.player.video.duration)},g=function w(E){document.removeEventListener($.nameMap.dragEnd,w),document.removeEventListener($.nameMap.dragMove,y);var C=((E.clientX||E.changedTouches[0].clientX)-$.getBoundingClientRectViewLeft(p.player.template.playedBarWrap))/p.player.template.playedBarWrap.clientWidth;C=Math.max(C,0),C=Math.min(C,1),p.player.bar.set("played",C,"width"),p.player.seek(p.player.bar.get("played")*p.player.video.duration),p.player.timer.enable("progress")};this.player.template.playedBarWrap.addEventListener($.nameMap.dragStart,function(){p.player.timer.disable("progress"),document.addEventListener($.nameMap.dragMove,y),document.addEventListener($.nameMap.dragEnd,g)}),this.player.template.playedBarWrap.addEventListener($.nameMap.dragMove,function(w){if(p.player.video.duration){var E=p.player.template.playedBarWrap.getBoundingClientRect().left,C=(w.clientX||w.changedTouches[0].clientX)-E;if(C<0||C>p.player.template.playedBarWrap.offsetWidth)return;var D=p.player.video.duration*(C/p.player.template.playedBarWrap.offsetWidth);$.isMobile&&p.thumbnails&&p.thumbnails.show(),p.thumbnails&&p.thumbnails.move(C),p.player.template.playedBarTime.style.left="".concat(C-(D>=3600?25:20),"px"),p.player.template.playedBarTime.innerText=$.secondToTime(D),p.player.template.playedBarTime.classList.remove("hidden")}}),this.player.template.playedBarWrap.addEventListener($.nameMap.dragEnd,function(){$.isMobile&&p.thumbnails&&p.thumbnails.hide()}),$.isMobile||(this.player.template.playedBarWrap.addEventListener("mouseenter",function(){p.player.video.duration&&(p.thumbnails&&p.thumbnails.show(),p.player.template.playedBarTime.classList.remove("hidden"))}),this.player.template.playedBarWrap.addEventListener("mouseleave",function(){p.player.video.duration&&(p.thumbnails&&p.thumbnails.hide(),p.player.template.playedBarTime.classList.add("hidden"))}))}},{key:"initFullButton",value:function(){var p=this;this.player.template.browserFullButton.addEventListener("click",function(){p.player.fullScreen.toggle("browser")}),this.player.template.webFullButton.addEventListener("click",function(){p.player.fullScreen.toggle("web")})}},{key:"initVolumeButton",value:function(){var p=this,y=function(w){var E=w||window.event,C=((E.clientX||E.changedTouches[0].clientX)-$.getBoundingClientRectViewLeft(p.player.template.volumeBarWrap)-5.5)/35;p.player.volume(C)},g=function w(){document.removeEventListener($.nameMap.dragEnd,w),document.removeEventListener($.nameMap.dragMove,y),p.player.template.volumeButton.classList.remove("dplayer-volume-active")};this.player.template.volumeBarWrapWrap.addEventListener("click",function(w){var E=w||window.event,C=((E.clientX||E.changedTouches[0].clientX)-$.getBoundingClientRectViewLeft(p.player.template.volumeBarWrap)-5.5)/35;p.player.volume(C)}),this.player.template.volumeBarWrapWrap.addEventListener($.nameMap.dragStart,function(){document.addEventListener($.nameMap.dragMove,y),document.addEventListener($.nameMap.dragEnd,g),p.player.template.volumeButton.classList.add("dplayer-volume-active")}),this.player.template.volumeButtonIcon.addEventListener("click",function(){p.player.video.muted?(p.player.video.muted=!1,p.player.switchVolumeIcon(),p.player.bar.set("volume",p.player.volume(),"width")):(p.player.video.muted=!0,p.player.template.volumeIcon.innerHTML=En.volumeOff,p.player.bar.set("volume",0,"width"))})}},{key:"initQualityButton",value:function(){var p=this;this.player.options.video.quality&&this.player.template.qualityList.addEventListener("click",function(y){y.target.classList.contains("dplayer-quality-item")&&p.player.switchQuality(y.target.dataset.index)})}},{key:"initScreenshotButton",value:function(){var p=this;this.player.options.screenshot&&this.player.template.camareButton.addEventListener("click",function(){var y,g=document.createElement("canvas");g.width=p.player.video.videoWidth,g.height=p.player.video.videoHeight,g.getContext("2d").drawImage(p.player.video,0,0,g.width,g.height),g.toBlob(function(w){y=URL.createObjectURL(w);var E=document.createElement("a");E.href=y,E.download="DPlayer.png",E.style.display="none",document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(y),p.player.events.trigger("screenshot",y)})})}},{key:"initAirplayButton",value:function(){this.player.options.airplay&&(window.WebKitPlaybackTargetAvailabilityEvent?this.player.video.addEventListener("webkitplaybacktargetavailabilitychanged",(function(p){p.availability==="available"?this.template.airplayButton.disable=!1:this.template.airplayButton.disable=!0,this.template.airplayButton.addEventListener("click",(function(){this.video.webkitShowPlaybackTargetPicker()}).bind(this))}).bind(this.player)):this.player.template.airplayButton.style.display="none")}},{key:"initChromecast",value:function(){var p=window.document.createElement("script");p.setAttribute("type","text/javascript"),p.setAttribute("src","https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"),window.document.body.appendChild(p),window.__onGCastApiAvailable=function(y){if(y){var g=new(Zn=window.chrome.cast).SessionRequest(Zn.media.DEFAULT_MEDIA_RECEIVER_APP_ID),w=new Zn.ApiConfig(g,function(){},function(E){E===Zn.ReceiverAvailability.AVAILABLE&&console.log("chromecast: ",E)});Zn.initialize(w,function(){})}}}},{key:"initChromecastButton",value:function(){var p=this;if(this.player.options.chromecast){Uc&&(Uc=!1,this.initChromecast());var y=function(w,E){p.currentMedia=E},g=function(w){console.error("Error launching media",w)};this.player.template.chromecastButton.addEventListener("click",function(){ka?(ka=!1,p.currentMedia.stop(),p.session.stop(),p.initChromecast()):(ka=!0,Zn.requestSession(function(w){var E,C,D;p.session=w,E=p.player.options.video.url,C=new Zn.media.MediaInfo(E),D=new Zn.media.LoadRequest(C),p.session?p.session.loadMedia(D,y.bind(p,"loadMedia"),g).play():window.open(E)},function(w){w.code==="cancel"?p.session=void 0:console.error("Error selecting a cast device",w)}))})}}},{key:"initSubtitleButton",value:function(){var p=this;this.player.events.on("subtitle_show",function(){p.player.template.subtitleButton.dataset.balloon=p.player.tran("hide-subs"),p.player.template.subtitleButtonInner.style.opacity="",p.player.user.set("subtitle",1)}),this.player.events.on("subtitle_hide",function(){p.player.template.subtitleButton.dataset.balloon=p.player.tran("show-subs"),p.player.template.subtitleButtonInner.style.opacity="0.4",p.player.user.set("subtitle",0)}),this.player.template.subtitleButton.addEventListener("click",function(){p.player.subtitle.toggle()})}},{key:"setAutoHide",value:function(){var p=this;this.show(),clearTimeout(this.autoHideTimer),this.autoHideTimer=setTimeout(function(){!p.player.video.played.length||p.player.paused||p.disableAutoHide||p.hide()},3e3)}},{key:"show",value:function(){this.player.container.classList.remove("dplayer-hide-controller")}},{key:"hide",value:function(){this.player.container.classList.add("dplayer-hide-controller"),this.player.setting.hide(),this.player.comment&&this.player.comment.hide()}},{key:"isShow",value:function(){return!this.player.container.classList.contains("dplayer-hide-controller")}},{key:"toggle",value:function(){this.isShow()?this.hide():this.show()}},{key:"destroy",value:function(){$.isMobile||(this.player.container.removeEventListener("mousemove",this.setAutoHideHandler),this.player.container.removeEventListener("click",this.setAutoHideHandler)),clearTimeout(this.autoHideTimer)}}])&&X1(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const ex=G1;function gr(d){return gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},gr(d)}function nx(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(gr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(gr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),gr(y)==="symbol"?y:String(y)),p)}var y}var tx=function(){function d(p){var y=this;(function(D,z){if(!(D instanceof z))throw new TypeError("Cannot call a class as a function")})(this,d),this.player=p,this.player.template.mask.addEventListener("click",function(){y.hide()}),this.player.template.settingButton.addEventListener("click",function(){y.show()}),this.loop=this.player.options.loop,this.player.template.loopToggle.checked=this.loop,this.player.template.loop.addEventListener("click",function(){y.player.template.loopToggle.checked=!y.player.template.loopToggle.checked,y.player.template.loopToggle.checked?y.loop=!0:y.loop=!1,y.hide()}),this.showDanmaku=this.player.user.get("danmaku"),this.showDanmaku||this.player.danmaku&&this.player.danmaku.hide(),this.player.template.showDanmakuToggle.checked=this.showDanmaku,this.player.template.showDanmaku.addEventListener("click",function(){y.player.template.showDanmakuToggle.checked=!y.player.template.showDanmakuToggle.checked,y.player.template.showDanmakuToggle.checked?(y.showDanmaku=!0,y.player.danmaku.show()):(y.showDanmaku=!1,y.player.danmaku.hide()),y.player.user.set("danmaku",y.showDanmaku?1:0),y.hide()}),this.unlimitDanmaku=this.player.user.get("unlimited"),this.player.template.unlimitDanmakuToggle.checked=this.unlimitDanmaku,this.player.template.unlimitDanmaku.addEventListener("click",function(){y.player.template.unlimitDanmakuToggle.checked=!y.player.template.unlimitDanmakuToggle.checked,y.player.template.unlimitDanmakuToggle.checked?(y.unlimitDanmaku=!0,y.player.danmaku.unlimit(!0)):(y.unlimitDanmaku=!1,y.player.danmaku.unlimit(!1)),y.player.user.set("unlimited",y.unlimitDanmaku?1:0),y.hide()}),this.player.template.speed.addEventListener("click",function(){y.player.template.settingBox.classList.add("dplayer-setting-box-narrow"),y.player.template.settingBox.classList.add("dplayer-setting-box-speed")});for(var g=function(D){y.player.template.speedItem[D].addEventListener("click",function(){y.player.speed(y.player.template.speedItem[D].dataset.speed),y.hide()})},w=0;w<this.player.template.speedItem.length;w++)g(w);if(this.player.danmaku){this.player.on("danmaku_opacity",function(D){y.player.bar.set("danmaku",D,"width"),y.player.user.set("opacity",D)}),this.player.danmaku.opacity(this.player.user.get("opacity"));var E=function(D){var z=D||window.event,X=((z.clientX||z.changedTouches[0].clientX)-$.getBoundingClientRectViewLeft(y.player.template.danmakuOpacityBarWrap))/130;X=Math.max(X,0),X=Math.min(X,1),y.player.danmaku.opacity(X)},C=function D(){document.removeEventListener($.nameMap.dragEnd,D),document.removeEventListener($.nameMap.dragMove,E),y.player.template.danmakuOpacityBox.classList.remove("dplayer-setting-danmaku-active")};this.player.template.danmakuOpacityBarWrapWrap.addEventListener("click",function(D){var z=D||window.event,X=((z.clientX||z.changedTouches[0].clientX)-$.getBoundingClientRectViewLeft(y.player.template.danmakuOpacityBarWrap))/130;X=Math.max(X,0),X=Math.min(X,1),y.player.danmaku.opacity(X)}),this.player.template.danmakuOpacityBarWrapWrap.addEventListener($.nameMap.dragStart,function(){document.addEventListener($.nameMap.dragMove,E),document.addEventListener($.nameMap.dragEnd,C),y.player.template.danmakuOpacityBox.classList.add("dplayer-setting-danmaku-active")})}}var m,x;return m=d,(x=[{key:"hide",value:function(){var p=this;this.player.template.settingBox.classList.remove("dplayer-setting-box-open"),this.player.template.mask.classList.remove("dplayer-mask-show"),setTimeout(function(){p.player.template.settingBox.classList.remove("dplayer-setting-box-narrow"),p.player.template.settingBox.classList.remove("dplayer-setting-box-speed")},300),this.player.controller.disableAutoHide=!1}},{key:"show",value:function(){this.player.template.settingBox.classList.add("dplayer-setting-box-open"),this.player.template.mask.classList.add("dplayer-mask-show"),this.player.controller.disableAutoHide=!0}}])&&nx(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const rx=tx;function br(d){return br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},br(d)}function ix(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(br(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(br(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),br(y)==="symbol"?y:String(y)),p)}var y}var ox=function(){function d(p){var y=this;(function(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")})(this,d),this.player=p,this.player.template.mask.addEventListener("click",function(){y.hide()}),this.player.template.commentButton.addEventListener("click",function(){y.show()}),this.player.template.commentSettingButton.addEventListener("click",function(){y.toggleSetting()}),this.player.template.commentColorSettingBox.addEventListener("click",function(){if(y.player.template.commentColorSettingBox.querySelector("input:checked+span")){var g=y.player.template.commentColorSettingBox.querySelector("input:checked").value;y.player.template.commentSettingFill.style.fill=g,y.player.template.commentInput.style.color=g,y.player.template.commentSendFill.style.fill=g}}),this.player.template.commentInput.addEventListener("click",function(){y.hideSetting()}),this.player.template.commentInput.addEventListener("keydown",function(g){(g||window.event).keyCode===13&&y.send()}),this.player.template.commentSendButton.addEventListener("click",function(){y.send()})}var m,x;return m=d,(x=[{key:"show",value:function(){this.player.controller.disableAutoHide=!0,this.player.template.controller.classList.add("dplayer-controller-comment"),this.player.template.mask.classList.add("dplayer-mask-show"),this.player.container.classList.add("dplayer-show-controller"),this.player.template.commentInput.focus()}},{key:"hide",value:function(){this.player.template.controller.classList.remove("dplayer-controller-comment"),this.player.template.mask.classList.remove("dplayer-mask-show"),this.player.container.classList.remove("dplayer-show-controller"),this.player.controller.disableAutoHide=!1,this.hideSetting()}},{key:"showSetting",value:function(){this.player.template.commentSettingBox.classList.add("dplayer-comment-setting-open")}},{key:"hideSetting",value:function(){this.player.template.commentSettingBox.classList.remove("dplayer-comment-setting-open")}},{key:"toggleSetting",value:function(){this.player.template.commentSettingBox.classList.contains("dplayer-comment-setting-open")?this.hideSetting():this.showSetting()}},{key:"send",value:function(){var p=this;this.player.template.commentInput.blur(),this.player.template.commentInput.value.replace(/^\s+|\s+$/g,"")?this.player.danmaku.send({text:this.player.template.commentInput.value,color:$.color2Number(this.player.container.querySelector(".dplayer-comment-setting-color input:checked").value),type:parseInt(this.player.container.querySelector(".dplayer-comment-setting-type input:checked").value)},function(){p.player.template.commentInput.value="",p.hide()}):this.player.notice(this.player.tran("please-input-danmaku"))}}])&&ix(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const ax=ox;function vr(d){return vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},vr(d)}function lx(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(vr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(vr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),vr(y)==="symbol"?y:String(y)),p)}var y}var sx=function(){function d(p){(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,d),this.player=p,this.doHotKeyHandler=this.doHotKey.bind(this),this.cancelFullScreenHandler=this.cancelFullScreen.bind(this),this.player.options.hotkey&&document.addEventListener("keydown",this.doHotKeyHandler),document.addEventListener("keydown",this.cancelFullScreenHandler)}var m,x;return m=d,(x=[{key:"doHotKey",value:function(p){if(this.player.focus){var y=document.activeElement.tagName.toUpperCase(),g=document.activeElement.getAttribute("contenteditable");if(y!=="INPUT"&&y!=="TEXTAREA"&&g!==""&&g!=="true"){var w,E=p||window.event;switch(E.keyCode){case 32:E.preventDefault(),this.player.toggle();break;case 37:if(E.preventDefault(),this.player.options.live)break;this.player.seek(this.player.video.currentTime-5),this.player.controller.setAutoHide();break;case 39:if(E.preventDefault(),this.player.options.live)break;this.player.seek(this.player.video.currentTime+5),this.player.controller.setAutoHide();break;case 38:E.preventDefault(),w=this.player.volume()+.1,this.player.volume(w);break;case 40:E.preventDefault(),w=this.player.volume()-.1,this.player.volume(w)}}}}},{key:"cancelFullScreen",value:function(p){(p||window.event).keyCode===27&&this.player.fullScreen.isFullScreen("web")&&this.player.fullScreen.cancel("web")}},{key:"destroy",value:function(){this.player.options.hotkey&&document.removeEventListener("keydown",this.doHotKeyHandler),document.removeEventListener("keydown",this.cancelFullScreenHandler)}}])&&lx(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const ux=sx;function xr(d){return xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},xr(d)}function cx(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(xr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(xr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),xr(y)==="symbol"?y:String(y)),p)}var y}var px=function(){function d(p){var y=this;(function(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")})(this,d),this.player=p,this.shown=!1,Array.prototype.slice.call(this.player.template.menuItem).forEach(function(g,w){y.player.options.contextmenu[w].click&&g.addEventListener("click",function(){y.player.options.contextmenu[w].click(y.player),y.hide()})}),this.contextmenuHandler=function(g){if(y.shown)y.hide();else{var w=g||window.event;w.preventDefault();var E=y.player.container.getBoundingClientRect();y.show(w.clientX-E.left,w.clientY-E.top),y.player.template.mask.addEventListener("click",function(){y.hide()})}},this.player.container.addEventListener("contextmenu",this.contextmenuHandler)}var m,x;return m=d,(x=[{key:"show",value:function(p,y){this.player.template.menu.classList.add("dplayer-menu-show");var g=this.player.container.getBoundingClientRect();p+this.player.template.menu.offsetWidth>=g.width?(this.player.template.menu.style.right=g.width-p+"px",this.player.template.menu.style.left="initial"):(this.player.template.menu.style.left=p+"px",this.player.template.menu.style.right="initial"),y+this.player.template.menu.offsetHeight>=g.height?(this.player.template.menu.style.bottom=g.height-y+"px",this.player.template.menu.style.top="initial"):(this.player.template.menu.style.top=y+"px",this.player.template.menu.style.bottom="initial"),this.player.template.mask.classList.add("dplayer-mask-show"),this.shown=!0,this.player.events.trigger("contextmenu_show")}},{key:"hide",value:function(){this.player.template.mask.classList.remove("dplayer-mask-show"),this.player.template.menu.classList.remove("dplayer-menu-show"),this.shown=!1,this.player.events.trigger("contextmenu_hide")}},{key:"destroy",value:function(){this.player.container.removeEventListener("contextmenu",this.contextmenuHandler)}}])&&cx(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const dx=px;function wr(d){return wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},wr(d)}function fx(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,(y=function(g,w){if(wr(g)!=="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var C=E.call(g,"string");if(wr(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(p.key),wr(y)==="symbol"?y:String(y)),p)}var y}var hx=function(){function d(p){var y=this;(function(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")})(this,d),this.container=p.template.infoPanel,this.template=p.template,this.video=p.video,this.player=p,this.template.infoPanelClose.addEventListener("click",function(){y.hide()})}var m,x;return m=d,(x=[{key:"show",value:function(){this.beginTime=Date.now(),this.update(),this.player.timer.enable("info"),this.player.timer.enable("fps"),this.container.classList.remove("dplayer-info-panel-hide")}},{key:"hide",value:function(){this.player.timer.disable("info"),this.player.timer.disable("fps"),this.container.classList.add("dplayer-info-panel-hide")}},{key:"triggle",value:function(){this.container.classList.contains("dplayer-info-panel-hide")?this.show():this.hide()}},{key:"update",value:function(){this.template.infoVersion.innerHTML="v".concat("1.27.1"," ").concat("v1.27.0-12-g4f61091"),this.template.infoType.innerHTML=this.player.type,this.template.infoUrl.innerHTML=this.player.options.video.url,this.template.infoResolution.innerHTML="".concat(this.player.video.videoWidth," x ").concat(this.player.video.videoHeight),this.template.infoDuration.innerHTML=this.player.video.duration,this.player.options.danmaku&&(this.template.infoDanmakuId.innerHTML=this.player.options.danmaku.id,this.template.infoDanmakuApi.innerHTML=this.player.options.danmaku.api,this.template.infoDanmakuAmount.innerHTML=this.player.danmaku.dan.length)}},{key:"fps",value:function(p){this.template.infoFPS.innerHTML="".concat(p.toFixed(1))}}])&&fx(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),d}();const mx=hx;var yx=i(568),Ax=i.n(yx);function kr(d){return kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},kr(d)}function Hc(d,m){var x=Object.keys(d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(d);m&&(p=p.filter(function(y){return Object.getOwnPropertyDescriptor(d,y).enumerable})),x.push.apply(x,p)}return x}function gx(d,m,x){return(m=Wc(m))in d?Object.defineProperty(d,m,{value:x,enumerable:!0,configurable:!0,writable:!0}):d[m]=x,d}function $c(d,m){for(var x=0;x<m.length;x++){var p=m[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,Wc(p.key),p)}}function Wc(d){var m=function(x,p){if(kr(x)!=="object"||x===null)return x;var y=x[Symbol.toPrimitive];if(y!==void 0){var g=y.call(x,"string");if(kr(g)!=="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(x)}(d);return kr(m)==="symbol"?m:String(m)}var Yc=0,Tt=[],bx=function(){function d(y){var g=this;(function(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")})(this,d),this.options=function(w){var E={container:w.element||document.getElementsByClassName("dplayer")[0],live:!1,autoplay:!1,theme:"#b7daff",loop:!1,lang:(navigator.language||navigator.browserLanguage).toLowerCase(),screenshot:!1,airplay:!0,chromecast:!1,hotkey:!0,preload:"metadata",volume:.7,playbackSpeed:[.5,.75,1,1.25,1.5,2],apiBackend:zv,video:{},contextmenu:[],mutex:!0,pluginOptions:{hls:{},flv:{},dash:{},webtorrent:{}},preventClickToggle:!1};for(var C in E)E.hasOwnProperty(C)&&!w.hasOwnProperty(C)&&(w[C]=E[C]);return w.video&&!w.video.type&&(w.video.type="auto"),xa(w.danmaku)==="object"&&w.danmaku&&!w.danmaku.user&&(w.danmaku.user="DIYgod"),w.subtitle&&(!w.subtitle.type&&(w.subtitle.type="webvtt"),!w.subtitle.fontSize&&(w.subtitle.fontSize="20px"),!w.subtitle.bottom&&(w.subtitle.bottom="40px"),!w.subtitle.color&&(w.subtitle.color="#fff")),w.video.quality&&(w.video.url=w.video.quality[w.video.defaultQuality].url),w.lang&&(w.lang=w.lang.toLowerCase()),w.contextmenu=w.contextmenu.concat([{key:"video-info",click:function(D){D.infoPanel.triggle()}},{key:"about-author",link:"https://diygod.me"},{text:"DPlayer v".concat("1.27.1"),link:"https://github.com/MoePlayer/DPlayer"}]),w}(function(w){for(var E=1;E<arguments.length;E++){var C=arguments[E]!=null?arguments[E]:{};E%2?Hc(Object(C),!0).forEach(function(D){gx(w,D,C[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(C)):Hc(Object(C)).forEach(function(D){Object.defineProperty(w,D,Object.getOwnPropertyDescriptor(C,D))})}return w}({preload:y.video.type==="webtorrent"?"none":"metadata"},y)),this.options.video.quality&&(this.qualityIndex=this.options.video.defaultQuality,this.quality=this.options.video.quality[this.options.video.defaultQuality]),this.tran=new Fv(this.options.lang).tran,this.events=new I1,this.user=new j1(this),this.container=this.options.container,this.noticeList={},this.container.classList.add("dplayer"),this.options.danmaku||this.container.classList.add("dplayer-no-danmaku"),this.options.live?this.container.classList.add("dplayer-live"):this.container.classList.remove("dplayer-live"),$.isMobile&&this.container.classList.add("dplayer-mobile"),this.arrow=this.container.offsetWidth<=500,this.arrow&&this.container.classList.add("dplayer-arrow"),this.options.subtitle&&Array.isArray(this.options.subtitle.url)&&(this.options.subtitle.url.push({subtitle:"",lang:"off"}),this.options.subtitle.defaultSubtitle&&(typeof this.options.subtitle.defaultSubtitle=="string"?this.options.subtitle.index=this.options.subtitle.url.findIndex(function(w){return w.lang===g.options.subtitle.defaultSubtitle||w.name===g.options.subtitle.defaultSubtitle}):typeof this.options.subtitle.defaultSubtitle=="number"&&(this.options.subtitle.index=this.options.subtitle.defaultSubtitle)),(this.options.subtitle.index===-1||!this.options.subtitle.index||this.options.subtitle.index>this.options.subtitle.url.length-1)&&(this.options.subtitle.index=this.options.subtitle.url.findIndex(function(w){return w.lang===g.options.lang})),this.options.subtitle.index===-1&&(this.options.subtitle.index=this.options.subtitle.url.length-1)),this.template=new qc({container:this.container,options:this.options,index:Yc,tran:this.tran}),this.video=this.template.video,this.bar=new H1(this.template),this.bezel=new K1(this.template.bezel),this.fullScreen=new T1(this),this.controller=new ex(this),this.options.danmaku&&(this.danmaku=new S1({player:this,container:this.template.danmaku,opacity:this.user.get("opacity"),callback:function(){setTimeout(function(){g.template.danmakuLoading.style.display="none",g.options.autoplay&&g.play()},0)},error:function(w){g.notice(w)},apiBackend:this.options.apiBackend,borderColor:this.options.theme,height:this.arrow?24:30,time:function(){return g.video.currentTime},unlimited:this.user.get("unlimited"),api:{id:this.options.danmaku.id,address:this.options.danmaku.api,token:this.options.danmaku.token,maximum:this.options.danmaku.maximum,addition:this.options.danmaku.addition,user:this.options.danmaku.user,speedRate:this.options.danmaku.speedRate},events:this.events,tran:function(w){return g.tran(w)}}),this.comment=new ax(this)),this.setting=new rx(this),this.plugins={},this.docClickFun=function(){g.focus=!1},this.containerClickFun=function(){g.focus=!0},document.addEventListener("click",this.docClickFun,!0),this.container.addEventListener("click",this.containerClickFun,!0),this.paused=!0,this.timer=new Y1(this),this.hotkey=new ux(this),this.contextmenu=new dx(this),this.initVideo(this.video,this.quality&&this.quality.type||this.options.video.type),this.infoPanel=new mx(this),!this.danmaku&&this.options.autoplay&&this.play(),Yc++,Tt.push(this)}var m,x,p;return m=d,x=[{key:"seek",value:function(y){y=Math.max(y,0),this.video.duration&&(y=Math.min(y,this.video.duration)),this.video.currentTime<y?this.notice("".concat(this.tran("ff").replace("%s",(y-this.video.currentTime).toFixed(0)))):this.video.currentTime>y&&this.notice("".concat(this.tran("rew").replace("%s",(this.video.currentTime-y).toFixed(0)))),this.video.currentTime=y,this.danmaku&&this.danmaku.seek(),this.bar.set("played",y/this.video.duration,"width"),this.template.ptime.innerHTML=$.secondToTime(y)}},{key:"play",value:function(y){var g=this;if(this.paused=!1,this.video.paused&&!$.isMobile&&this.bezel.switch(En.play),this.template.playButton.innerHTML=En.pause,this.template.mobilePlayButton.innerHTML=En.pause,y||ie.resolve(this.video.play()).catch(function(){g.pause()}).then(function(){}),this.timer.enable("loading"),this.container.classList.remove("dplayer-paused"),this.container.classList.add("dplayer-playing"),this.danmaku&&this.danmaku.play(),this.options.mutex)for(var w=0;w<Tt.length;w++)this!==Tt[w]&&Tt[w].pause()}},{key:"pause",value:function(y){this.paused=!0,this.container.classList.remove("dplayer-loading"),this.video.paused||$.isMobile||this.bezel.switch(En.pause),this.template.playButton.innerHTML=En.play,this.template.mobilePlayButton.innerHTML=En.play,y||this.video.pause(),this.timer.disable("loading"),this.container.classList.remove("dplayer-playing"),this.container.classList.add("dplayer-paused"),this.danmaku&&this.danmaku.pause()}},{key:"switchVolumeIcon",value:function(){this.volume()>=.95?this.template.volumeIcon.innerHTML=En.volumeUp:this.volume()>0?this.template.volumeIcon.innerHTML=En.volumeDown:this.template.volumeIcon.innerHTML=En.volumeOff}},{key:"volume",value:function(y,g,w){if(y=parseFloat(y),!isNaN(y)){y=Math.max(y,0),y=Math.min(y,1),this.bar.set("volume",y,"width");var E="".concat((100*y).toFixed(0),"%");this.template.volumeBarWrapWrap.dataset.balloon=E,g||this.user.set("volume",y),w||this.notice("".concat(this.tran("volume")," ").concat((100*y).toFixed(0),"%"),void 0,void 0,"volume"),this.video.volume=y,this.video.muted&&(this.video.muted=!1),this.switchVolumeIcon()}return this.video.volume}},{key:"toggle",value:function(){this.video.paused?this.play():this.pause()}},{key:"on",value:function(y,g){this.events.on(y,g)}},{key:"switchVideo",value:function(y,g){this.pause(),this.video.poster=y.pic?y.pic:"",this.video.src=y.url,this.initMSE(this.video,y.type||"auto"),g&&(this.template.danmakuLoading.style.display="block",this.bar.set("played",0,"width"),this.bar.set("loaded",0,"width"),this.template.ptime.innerHTML="00:00",this.template.danmaku.innerHTML="",this.danmaku&&this.danmaku.reload({id:g.id,address:g.api,token:g.token,maximum:g.maximum,addition:g.addition,user:g.user}))}},{key:"initMSE",value:function(y,g){var w=this;if(this.type=g,this.options.video.customType&&this.options.video.customType[g])Object.prototype.toString.call(this.options.video.customType[g])==="[object Function]"?this.options.video.customType[g](this.video,this):console.error("Illegal customType: ".concat(g));else switch(this.type==="auto"&&(/m3u8(#|\?|$)/i.exec(y.src)?this.type="hls":/.flv(#|\?|$)/i.exec(y.src)?this.type="flv":/.mpd(#|\?|$)/i.exec(y.src)?this.type="dash":this.type="normal"),this.type==="hls"&&(y.canPlayType("application/x-mpegURL")||y.canPlayType("application/vnd.apple.mpegURL"))&&(this.type="normal"),this.type){case"hls":if(window.Hls)if(window.Hls.isSupported()){var E=this.options.pluginOptions.hls,C=new window.Hls(E);this.plugins.hls=C,C.loadSource(y.src),C.attachMedia(y),this.events.on("destroy",function(){C.destroy(),delete w.plugins.hls})}else this.notice("Error: Hls is not supported.");else this.notice("Error: Can't find Hls.");break;case"flv":if(window.flvjs)if(window.flvjs.isSupported()){var D=window.flvjs.createPlayer(Object.assign(this.options.pluginOptions.flv.mediaDataSource||{},{type:"flv",url:y.src}),this.options.pluginOptions.flv.config);this.plugins.flvjs=D,D.attachMediaElement(y),D.load(),this.events.on("destroy",function(){D.unload(),D.detachMediaElement(),D.destroy(),delete w.plugins.flvjs})}else this.notice("Error: flvjs is not supported.");else this.notice("Error: Can't find flvjs.");break;case"dash":if(window.dashjs){var z=window.dashjs.MediaPlayer().create().initialize(y,y.src,!1),X=this.options.pluginOptions.dash;z.updateSettings(X),this.plugins.dash=z,this.events.on("destroy",function(){window.dashjs.MediaPlayer().reset(),delete w.plugins.dash})}else this.notice("Error: Can't find dashjs.");break;case"webtorrent":if(window.WebTorrent)if(window.WebTorrent.WEBRTC_SUPPORT){this.container.classList.add("dplayer-loading");var oe=this.options.pluginOptions.webtorrent,se=new window.WebTorrent(oe);this.plugins.webtorrent=se;var le=y.src;y.src="",y.preload="metadata",y.addEventListener("durationchange",function(){return w.container.classList.remove("dplayer-loading")},{once:!0}),se.add(le,function(G){G.files.find(function(ce){return ce.name.endsWith(".mp4")}).renderTo(w.video,{autoplay:w.options.autoplay,controls:!1})}),this.events.on("destroy",function(){se.remove(le),se.destroy(),delete w.plugins.webtorrent})}else this.notice("Error: Webtorrent is not supported.");else this.notice("Error: Can't find Webtorrent.")}}},{key:"initVideo",value:function(y,g){var w=this;this.initMSE(y,g),this.on("durationchange",function(){y.duration!==1&&y.duration!==1/0&&(w.template.dtime.innerHTML=$.secondToTime(y.duration))}),this.on("progress",function(){var D=y.buffered.length?y.buffered.end(y.buffered.length-1)/y.duration:0;w.bar.set("loaded",D,"width")}),this.on("error",function(){w.video.error&&w.tran&&w.notice&&w.type!=="webtorrent"&&w.notice(w.tran("video-failed"))}),this.on("ended",function(){w.bar.set("played",1,"width"),w.setting.loop?(w.seek(0),w.play()):w.pause(),w.danmaku&&(w.danmaku.danIndex=0)}),this.on("play",function(){w.paused&&w.play(!0)}),this.on("pause",function(){w.paused||w.pause(!0)}),this.on("timeupdate",function(){w.bar.set("played",w.video.currentTime/w.video.duration,"width");var D=$.secondToTime(w.video.currentTime);w.template.ptime.innerHTML!==D&&(w.template.ptime.innerHTML=D)});for(var E=function(D){y.addEventListener(w.events.videoEvents[D],function(z){w.events.trigger(w.events.videoEvents[D],z)})},C=0;C<this.events.videoEvents.length;C++)E(C);this.volume(this.user.get("volume"),!0,!0),this.options.subtitle&&(this.subtitle=new z1(this.template.subtitle,this.video,this.options.subtitle,this.events),Array.isArray(this.options.subtitle.url)&&(this.subtitles=new N1(this)),this.user.get("subtitle")||this.subtitle.hide())}},{key:"switchQuality",value:function(y){var g=this;if(y=typeof y=="string"?parseInt(y):y,this.qualityIndex!==y&&!this.switchingQuality){this.prevIndex=this.qualityIndex,this.qualityIndex=y,this.switchingQuality=!0,this.quality=this.options.video.quality[y],this.template.qualityButton.innerHTML=this.quality.name;var w=this.video.paused;this.video.pause();var E=Ax()({current:!1,pic:null,screenshot:this.options.screenshot,preload:"auto",url:this.quality.url,subtitle:this.options.subtitle}),C=new DOMParser().parseFromString(E,"text/html").body.firstChild;this.template.videoWrap.insertBefore(C,this.template.videoWrap.getElementsByTagName("div")[0]),this.prevVideo=this.video,this.video=C,this.initVideo(this.video,this.quality.type||this.options.video.type),this.seek(this.prevVideo.currentTime),this.notice("".concat(this.tran("switching-quality").replace("%q",this.quality.name)),-1,void 0,"switch-quality"),this.events.trigger("quality_start",this.quality),this.on("canplay",function(){if(g.prevVideo){if(g.video.currentTime!==g.prevVideo.currentTime)return void g.seek(g.prevVideo.currentTime);g.template.videoWrap.removeChild(g.prevVideo),g.video.classList.add("dplayer-video-current"),w||g.video.play(),g.prevVideo=null,g.notice("".concat(g.tran("switched-quality").replace("%q",g.quality.name)),void 0,void 0,"switch-quality"),g.switchingQuality=!1,g.events.trigger("quality_end")}}),this.on("error",function(){g.video.error&&g.prevVideo&&(g.template.videoWrap.removeChild(g.video),g.video=g.prevVideo,w||g.video.play(),g.qualityIndex=g.prevIndex,g.quality=g.options.video.quality[g.qualityIndex],g.noticeTime=setTimeout(function(){g.template.notice.style.opacity=0,g.events.trigger("notice_hide")},3e3),g.prevVideo=null,g.switchingQuality=!1)})}}},{key:"notice",value:function(y){var g,w,E,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2e3,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.8,z=arguments.length>3?arguments[3]:void 0;if(z&&((g=document.getElementById("dplayer-notice-".concat(z)))&&(g.innerHTML=y),this.noticeList[z]&&(clearTimeout(this.noticeList[z]),this.noticeList[z]=null)),!g){var X=qc.NewNotice(y,D,z);this.template.noticeList.appendChild(X),g=X}this.events.trigger("notice_show",g),C>0&&(this.noticeList[z]=setTimeout((w=g,E=this,function(){w.addEventListener("animationend",function(){E.template.noticeList.removeChild(w)}),w.classList.add("remove-notice"),E.events.trigger("notice_hide"),E.noticeList[z]=null}),C))}},{key:"resize",value:function(){this.danmaku&&this.danmaku.resize(),this.controller.thumbnails&&this.controller.thumbnails.resize(160,this.video.videoHeight/this.video.videoWidth*160,this.template.barWrap.offsetWidth),this.events.trigger("resize")}},{key:"speed",value:function(y){this.video.playbackRate=y}},{key:"destroy",value:function(){Tt.splice(Tt.indexOf(this),1),this.pause(),document.removeEventListener("click",this.docClickFun,!0),this.container.removeEventListener("click",this.containerClickFun,!0),this.fullScreen.destroy(),this.hotkey.destroy(),this.contextmenu.destroy(),this.controller.destroy(),this.timer.destroy(),this.video.src="",this.container.innerHTML="",this.events.trigger("destroy")}}],p=[{key:"version",get:function(){return"1.27.1"}}],x&&$c(m.prototype,x),p&&$c(m,p),Object.defineProperty(m,"prototype",{writable:!1}),d}();const vx=bx;console.log(`
4828
4828
  `.concat(" %c DPlayer v","1.27.1"," ").concat("v1.27.0-12-g4f61091"," %c https://dplayer.diygod.dev ",`
4829
4829
  `,`
4830
- `),"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;");const gx=Ax})(),a.default})())})(Bc);var Ic=Bc.exports;const Bv=Ca({__proto__:null,default:Tr(Ic)},[Ic]);Ne.Api=Ah,Ne.Enum=gh,Ne.LabElement=yh,Ne.PageTable=ih,Ne.SendCommonRequest=Id,Ne.Store=vh,Ne.Tool=bh,Ne.UserLoginModal=rh,Object.defineProperty(Ne,Symbol.toStringTag,{value:"Module"})});
4830
+ `),"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;");const xx=vx})(),a.default})())})(Bc);var Ic=Bc.exports;const Pv=Ca({__proto__:null,default:Lr(Ic)},[Ic]);Fe.Api=vh,Fe.Enum=xh,Fe.LabElement=bh,Fe.PageTable=lh,Fe.SendCommonRequest=Td,Fe.Store=kh,Fe.Tool=wh,Fe.UserLoginModal=ah,Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"})});