ocsjs/index.min.js
2022-05-08 12:56:22 +00:00

17 lines
179 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*!
* ocsjs 3.7.3 ( https://github.com/enncy/online-course-script#readme )
* ocs - online course script 在线网络课程辅助工具
* 版权所有 enncy
* 开源协议 MIT
*/
var F1=Object.defineProperty,C1=Object.defineProperties;var B1=Object.getOwnPropertyDescriptors;var sr=Object.getOwnPropertySymbols;var _s=Object.prototype.hasOwnProperty,Ss=Object.prototype.propertyIsEnumerable;var xs=(v,Ee,De)=>Ee in v?F1(v,Ee,{enumerable:!0,configurable:!0,writable:!0,value:De}):v[Ee]=De,Ie=(v,Ee)=>{for(var De in Ee||(Ee={}))_s.call(Ee,De)&&xs(v,De,Ee[De]);if(sr)for(var De of sr(Ee))Ss.call(Ee,De)&&xs(v,De,Ee[De]);return v},Ze=(v,Ee)=>C1(v,B1(Ee));var Ds=(v,Ee)=>{var De={};for(var Ne in v)_s.call(v,Ne)&&Ee.indexOf(Ne)<0&&(De[Ne]=v[Ne]);if(v!=null&&sr)for(var Ne of sr(v))Ee.indexOf(Ne)<0&&Ss.call(v,Ne)&&(De[Ne]=v[Ne]);return De};(function(v,Ee){typeof exports=="object"&&typeof module!="undefined"?Ee(exports):typeof define=="function"&&define.amd?define(["exports"],Ee):(v=typeof globalThis!="undefined"?globalThis:v||self,Ee(v.OCS={}))})(this,function(v){"use strict";function Ee(e,t){const n=Object.create(null),r=e.split(",");for(let u=0;u<r.length;u++)n[r[u]]=!0;return t?u=>!!n[u.toLowerCase()]:u=>!!n[u]}const Ne=Ee("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Au(e){return!!e||e===""}function ar(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],u=Ae(r)?Ps(r):ar(r);if(u)for(const i in u)t[i]=u[i]}return t}else{if(Ae(e))return e;if(Fe(e))return e}}const Ts=/;(?![^(]*\))/g,Os=/:(.+)/;function Ps(e){const t={};return e.split(Ts).forEach(n=>{if(n){const r=n.split(Os);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function wn(e){let t="";if(Ae(e))t=e;else if(ne(e))for(let n=0;n<e.length;n++){const r=wn(e[n]);r&&(t+=r+" ")}else if(Fe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Fu=e=>Ae(e)?e:e==null?"":ne(e)||Fe(e)&&(e.toString===_u||!ue(e.toString))?JSON.stringify(e,Cu,2):String(e),Cu=(e,t)=>t&&t.__v_isRef?Cu(e,t.value):xt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,u])=>(n[`${r} =>`]=u,n),{})}:Bu(t)?{[`Set(${t.size})`]:[...t.values()]}:Fe(t)&&!ne(t)&&!Su(t)?String(t):t,fe={},Bt=[],Ue=()=>{},$s=()=>!1,Is=/^on[^a-z]/,An=e=>Is.test(e),lr=e=>e.startsWith("onUpdate:"),Te=Object.assign,cr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ks=Object.prototype.hasOwnProperty,se=(e,t)=>ks.call(e,t),ne=Array.isArray,xt=e=>Fn(e)==="[object Map]",Bu=e=>Fn(e)==="[object Set]",ue=e=>typeof e=="function",Ae=e=>typeof e=="string",fr=e=>typeof e=="symbol",Fe=e=>e!==null&&typeof e=="object",xu=e=>Fe(e)&&ue(e.then)&&ue(e.catch),_u=Object.prototype.toString,Fn=e=>_u.call(e),Rs=e=>Fn(e).slice(8,-1),Su=e=>Fn(e)==="[object Object]",dr=e=>Ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Cn=Ee(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ls=/-(\w)/g,Ke=Bn(e=>e.replace(Ls,(t,n)=>n?n.toUpperCase():"")),Ms=/\B([A-Z])/g,_t=Bn(e=>e.replace(Ms,"-$1").toLowerCase()),xn=Bn(e=>e.charAt(0).toUpperCase()+e.slice(1)),hr=Bn(e=>e?`on${xn(e)}`:""),Kt=(e,t)=>!Object.is(e,t),pr=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},_n=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},js=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Du;const Ns=()=>Du||(Du=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let et;class Us{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&et&&(this.parent=et,this.index=(et.scopes||(et.scopes=[])).push(this)-1)}run(t){if(this.active)try{return et=this,t()}finally{et=this.parent}}on(){et=this}off(){et=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const u=this.parent.scopes.pop();u&&u!==this&&(this.parent.scopes[this.index]=u,u.index=this.index)}this.active=!1}}}function Ws(e,t=et){t&&t.active&&t.effects.push(e)}const gr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Tu=e=>(e.w&ut)>0,Ou=e=>(e.n&ut)>0,Hs=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ut},zs=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const u=t[r];Tu(u)&&!Ou(u)?u.delete(e):t[n++]=u,u.w&=~ut,u.n&=~ut}t.length=n}},mr=new WeakMap;let Qt=0,ut=1;const vr=30;let Qe;const ht=Symbol(""),yr=Symbol("");class Er{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Ws(this,r)}run(){if(!this.active)return this.fn();let t=Qe,n=it;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Qe,Qe=this,it=!0,ut=1<<++Qt,Qt<=vr?Hs(this):Pu(this),this.fn()}finally{Qt<=vr&&zs(this),ut=1<<--Qt,Qe=this.parent,it=n,this.parent=void 0}}stop(){this.active&&(Pu(this),this.onStop&&this.onStop(),this.active=!1)}}function Pu(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let it=!0;const $u=[];function St(){$u.push(it),it=!1}function Dt(){const e=$u.pop();it=e===void 0?!0:e}function Re(e,t,n){if(it&&Qe){let r=mr.get(e);r||mr.set(e,r=new Map);let u=r.get(n);u||r.set(n,u=gr()),Iu(u)}}function Iu(e,t){let n=!1;Qt<=vr?Ou(e)||(e.n|=ut,n=!Tu(e)):n=!e.has(Qe),n&&(e.add(Qe),Qe.deps.push(e))}function tt(e,t,n,r,u,i){const o=mr.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(n==="length"&&ne(e))o.forEach((a,l)=>{(l==="length"||l>=r)&&s.push(a)});else switch(n!==void 0&&s.push(o.get(n)),t){case"add":ne(e)?dr(n)&&s.push(o.get("length")):(s.push(o.get(ht)),xt(e)&&s.push(o.get(yr)));break;case"delete":ne(e)||(s.push(o.get(ht)),xt(e)&&s.push(o.get(yr)));break;case"set":xt(e)&&s.push(o.get(ht));break}if(s.length===1)s[0]&&br(s[0]);else{const a=[];for(const l of s)l&&a.push(...l);br(gr(a))}}function br(e,t){for(const n of ne(e)?e:[...e])(n!==Qe||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const Gs=Ee("__proto__,__v_isRef,__isVue"),ku=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(fr)),qs=wr(),Ks=wr(!1,!0),Qs=wr(!0),Ru=Js();function Js(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=le(this);for(let i=0,o=this.length;i<o;i++)Re(r,"get",i+"");const u=r[t](...n);return u===-1||u===!1?r[t](...n.map(le)):u}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){St();const r=le(this)[t].apply(this,n);return Dt(),r}}),e}function wr(e=!1,t=!1){return function(r,u,i){if(u==="__v_isReactive")return!e;if(u==="__v_isReadonly")return e;if(u==="__v_isShallow")return t;if(u==="__v_raw"&&i===(e?t?fa:Gu:t?zu:Hu).get(r))return r;const o=ne(r);if(!e&&o&&se(Ru,u))return Reflect.get(Ru,u,i);const s=Reflect.get(r,u,i);return(fr(u)?ku.has(u):Gs(u))||(e||Re(r,"get",u),t)?s:xe(s)?!o||!dr(u)?s.value:s:Fe(s)?e?qu(s):Jt(s):s}}const Vs=Lu(),Ys=Lu(!0);function Lu(e=!1){return function(n,r,u,i){let o=n[r];if(Vt(o)&&xe(o)&&!xe(u))return!1;if(!e&&!Vt(u)&&(Ku(u)||(u=le(u),o=le(o)),!ne(n)&&xe(o)&&!xe(u)))return o.value=u,!0;const s=ne(n)&&dr(r)?Number(r)<n.length:se(n,r),a=Reflect.set(n,r,u,i);return n===le(i)&&(s?Kt(u,o)&&tt(n,"set",r,u):tt(n,"add",r,u)),a}}function Xs(e,t){const n=se(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&tt(e,"delete",t,void 0),r}function Zs(e,t){const n=Reflect.has(e,t);return(!fr(t)||!ku.has(t))&&Re(e,"has",t),n}function ea(e){return Re(e,"iterate",ne(e)?"length":ht),Reflect.ownKeys(e)}const Mu={get:qs,set:Vs,deleteProperty:Xs,has:Zs,ownKeys:ea},ta={get:Qs,set(e,t){return!0},deleteProperty(e,t){return!0}},na=Te({},Mu,{get:Ks,set:Ys}),Ar=e=>e,Sn=e=>Reflect.getPrototypeOf(e);function Dn(e,t,n=!1,r=!1){e=e.__v_raw;const u=le(e),i=le(t);t!==i&&!n&&Re(u,"get",t),!n&&Re(u,"get",i);const{has:o}=Sn(u),s=r?Ar:n?Br:Yt;if(o.call(u,t))return s(e.get(t));if(o.call(u,i))return s(e.get(i));e!==u&&e.get(t)}function Tn(e,t=!1){const n=this.__v_raw,r=le(n),u=le(e);return e!==u&&!t&&Re(r,"has",e),!t&&Re(r,"has",u),e===u?n.has(e):n.has(e)||n.has(u)}function On(e,t=!1){return e=e.__v_raw,!t&&Re(le(e),"iterate",ht),Reflect.get(e,"size",e)}function ju(e){e=le(e);const t=le(this);return Sn(t).has.call(t,e)||(t.add(e),tt(t,"add",e,e)),this}function Nu(e,t){t=le(t);const n=le(this),{has:r,get:u}=Sn(n);let i=r.call(n,e);i||(e=le(e),i=r.call(n,e));const o=u.call(n,e);return n.set(e,t),i?Kt(t,o)&&tt(n,"set",e,t):tt(n,"add",e,t),this}function Uu(e){const t=le(this),{has:n,get:r}=Sn(t);let u=n.call(t,e);u||(e=le(e),u=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return u&&tt(t,"delete",e,void 0),i}function Wu(){const e=le(this),t=e.size!==0,n=e.clear();return t&&tt(e,"clear",void 0,void 0),n}function Pn(e,t){return function(r,u){const i=this,o=i.__v_raw,s=le(o),a=t?Ar:e?Br:Yt;return!e&&Re(s,"iterate",ht),o.forEach((l,c)=>r.call(u,a(l),a(c),i))}}function $n(e,t,n){return function(...r){const u=this.__v_raw,i=le(u),o=xt(i),s=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,l=u[e](...r),c=n?Ar:t?Br:Yt;return!t&&Re(i,"iterate",a?yr:ht),{next(){const{value:f,done:p}=l.next();return p?{value:f,done:p}:{value:s?[c(f[0]),c(f[1])]:c(f),done:p}},[Symbol.iterator](){return this}}}}function ot(e){return function(...t){return e==="delete"?!1:this}}function ra(){const e={get(i){return Dn(this,i)},get size(){return On(this)},has:Tn,add:ju,set:Nu,delete:Uu,clear:Wu,forEach:Pn(!1,!1)},t={get(i){return Dn(this,i,!1,!0)},get size(){return On(this)},has:Tn,add:ju,set:Nu,delete:Uu,clear:Wu,forEach:Pn(!1,!0)},n={get(i){return Dn(this,i,!0)},get size(){return On(this,!0)},has(i){return Tn.call(this,i,!0)},add:ot("add"),set:ot("set"),delete:ot("delete"),clear:ot("clear"),forEach:Pn(!0,!1)},r={get(i){return Dn(this,i,!0,!0)},get size(){return On(this,!0)},has(i){return Tn.call(this,i,!0)},add:ot("add"),set:ot("set"),delete:ot("delete"),clear:ot("clear"),forEach:Pn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=$n(i,!1,!1),n[i]=$n(i,!0,!1),t[i]=$n(i,!1,!0),r[i]=$n(i,!0,!0)}),[e,n,t,r]}const[ua,ia,oa,sa]=ra();function Fr(e,t){const n=t?e?sa:oa:e?ia:ua;return(r,u,i)=>u==="__v_isReactive"?!e:u==="__v_isReadonly"?e:u==="__v_raw"?r:Reflect.get(se(n,u)&&u in r?n:r,u,i)}const aa={get:Fr(!1,!1)},la={get:Fr(!1,!0)},ca={get:Fr(!0,!1)},Hu=new WeakMap,zu=new WeakMap,Gu=new WeakMap,fa=new WeakMap;function da(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ha(e){return e.__v_skip||!Object.isExtensible(e)?0:da(Rs(e))}function Jt(e){return Vt(e)?e:Cr(e,!1,Mu,aa,Hu)}function pa(e){return Cr(e,!1,na,la,zu)}function qu(e){return Cr(e,!0,ta,ca,Gu)}function Cr(e,t,n,r,u){if(!Fe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=u.get(e);if(i)return i;const o=ha(e);if(o===0)return e;const s=new Proxy(e,o===2?r:n);return u.set(e,s),s}function Tt(e){return Vt(e)?Tt(e.__v_raw):!!(e&&e.__v_isReactive)}function Vt(e){return!!(e&&e.__v_isReadonly)}function Ku(e){return!!(e&&e.__v_isShallow)}function Qu(e){return Tt(e)||Vt(e)}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function Ju(e){return _n(e,"__v_skip",!0),e}const Yt=e=>Fe(e)?Jt(e):e,Br=e=>Fe(e)?qu(e):e;function Vu(e){it&&Qe&&(e=le(e),Iu(e.dep||(e.dep=gr())))}function Yu(e,t){e=le(e),e.dep&&br(e.dep)}function xe(e){return!!(e&&e.__v_isRef===!0)}function xr(e){return ga(e,!1)}function ga(e,t){return xe(e)?e:new ma(e,t)}class ma{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:le(t),this._value=n?t:Yt(t)}get value(){return Vu(this),this._value}set value(t){t=this.__v_isShallow?t:le(t),Kt(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Yt(t),Yu(this))}}function Ot(e){return xe(e)?e.value:e}const va={get:(e,t,n)=>Ot(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const u=e[t];return xe(u)&&!xe(n)?(u.value=n,!0):Reflect.set(e,t,n,r)}};function Xu(e){return Tt(e)?e:new Proxy(e,va)}class ya{constructor(t,n,r,u){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Er(t,()=>{this._dirty||(this._dirty=!0,Yu(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!u,this.__v_isReadonly=r}get value(){const t=le(this);return Vu(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Zu(e,t,n=!1){let r,u;const i=ue(e);return i?(r=e,u=Ue):(r=e.get,u=e.set),new ya(r,u,i||!u,n)}Promise.resolve();function st(e,t,n,r){let u;try{u=r?e(...r):e()}catch(i){In(i,t,n)}return u}function We(e,t,n,r){if(ue(e)){const i=st(e,t,n,r);return i&&xu(i)&&i.catch(o=>{In(o,t,n)}),i}const u=[];for(let i=0;i<e.length;i++)u.push(We(e[i],t,n,r));return u}function In(e,t,n,r=!0){const u=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,s=n;for(;i;){const l=i.ec;if(l){for(let c=0;c<l.length;c++)if(l[c](e,o,s)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){st(a,null,10,[e,o,s]);return}}Ea(e,n,u,r)}function Ea(e,t,n,r=!0){console.error(e)}let kn=!1,_r=!1;const Le=[];let nt=0;const Xt=[];let Zt=null,Pt=0;const en=[];let at=null,$t=0;const ei=Promise.resolve();let Sr=null,Dr=null;function Tr(e){const t=Sr||ei;return e?t.then(this?e.bind(this):e):t}function ba(e){let t=nt+1,n=Le.length;for(;t<n;){const r=t+n>>>1;tn(Le[r])<e?t=r+1:n=r}return t}function ti(e){(!Le.length||!Le.includes(e,kn&&e.allowRecurse?nt+1:nt))&&e!==Dr&&(e.id==null?Le.push(e):Le.splice(ba(e.id),0,e),ni())}function ni(){!kn&&!_r&&(_r=!0,Sr=ei.then(ii))}function wa(e){const t=Le.indexOf(e);t>nt&&Le.splice(t,1)}function ri(e,t,n,r){ne(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?r+1:r))&&n.push(e),ni()}function Aa(e){ri(e,Zt,Xt,Pt)}function Fa(e){ri(e,at,en,$t)}function Or(e,t=null){if(Xt.length){for(Dr=t,Zt=[...new Set(Xt)],Xt.length=0,Pt=0;Pt<Zt.length;Pt++)Zt[Pt]();Zt=null,Pt=0,Dr=null,Or(e,t)}}function ui(e){if(en.length){const t=[...new Set(en)];if(en.length=0,at){at.push(...t);return}for(at=t,at.sort((n,r)=>tn(n)-tn(r)),$t=0;$t<at.length;$t++)at[$t]();at=null,$t=0}}const tn=e=>e.id==null?1/0:e.id;function ii(e){_r=!1,kn=!0,Or(e),Le.sort((n,r)=>tn(n)-tn(r));const t=Ue;try{for(nt=0;nt<Le.length;nt++){const n=Le[nt];n&&n.active!==!1&&st(n,null,14)}}finally{nt=0,Le.length=0,ui(),kn=!1,Sr=null,(Le.length||Xt.length||en.length)&&ii(e)}}function Ca(e,t,...n){const r=e.vnode.props||fe;let u=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in r){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:p}=r[c]||fe;p?u=n.map(m=>m.trim()):f&&(u=n.map(js))}let s,a=r[s=hr(t)]||r[s=hr(Ke(t))];!a&&i&&(a=r[s=hr(_t(t))]),a&&We(a,e,6,u);const l=r[s+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,We(l,e,6,u)}}function oi(e,t,n=!1){const r=t.emitsCache,u=r.get(e);if(u!==void 0)return u;const i=e.emits;let o={},s=!1;if(!ue(e)){const a=l=>{const c=oi(l,t,!0);c&&(s=!0,Te(o,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!s?(r.set(e,null),null):(ne(i)?i.forEach(a=>o[a]=null):Te(o,i),r.set(e,o),o)}function Pr(e,t){return!e||!An(t)?!1:(t=t.slice(2).replace(/Once$/,""),se(e,t[0].toLowerCase()+t.slice(1))||se(e,_t(t))||se(e,t))}let He=null,si=null;function Rn(e){const t=He;return He=e,si=e&&e.type.__scopeId||null,t}function Ba(e,t=He,n){if(!t||e._n)return e;const r=(...u)=>{r._d&&$i(-1);const i=Rn(t),o=e(...u);return Rn(i),r._d&&$i(1),o};return r._n=!0,r._c=!0,r._d=!0,r}function x1(){}function $r(e){const{type:t,vnode:n,proxy:r,withProxy:u,props:i,propsOptions:[o],slots:s,attrs:a,emit:l,render:c,renderCache:f,data:p,setupState:m,ctx:F,inheritAttrs:$}=e;let w,A;const j=Rn(e);try{if(n.shapeFlag&4){const z=u||r;w=Je(c.call(z,z,f,i,m,p,F)),A=a}else{const z=t;w=Je(z.length>1?z(i,{attrs:a,slots:s,emit:l}):z(i,null)),A=t.props?a:xa(a)}}catch(z){rn.length=0,In(z,e,1),w=h(nn)}let I=w;if(A&&$!==!1){const z=Object.keys(A),{shapeFlag:ve}=I;z.length&&ve&7&&(o&&z.some(lr)&&(A=_a(A,o)),I=sn(I,A))}return n.dirs&&(I.dirs=I.dirs?I.dirs.concat(n.dirs):n.dirs),n.transition&&(I.transition=n.transition),w=I,Rn(j),w}const xa=e=>{let t;for(const n in e)(n==="class"||n==="style"||An(n))&&((t||(t={}))[n]=e[n]);return t},_a=(e,t)=>{const n={};for(const r in e)(!lr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Sa(e,t,n){const{props:r,children:u,component:i}=e,{props:o,children:s,patchFlag:a}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?ai(r,o,l):!!o;if(a&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const p=c[f];if(o[p]!==r[p]&&!Pr(l,p))return!0}}}else return(u||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?ai(r,o,l):!0:!!o;return!1}function ai(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let u=0;u<r.length;u++){const i=r[u];if(t[i]!==e[i]&&!Pr(n,i))return!0}return!1}function Da({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Ta=e=>e.__isSuspense;function Oa(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):Fa(e)}function Pa(e,t){if(_e){let n=_e.provides;const r=_e.parent&&_e.parent.provides;r===n&&(n=_e.provides=Object.create(r)),n[e]=t}}function Ir(e,t,n=!1){const r=_e||He;if(r){const u=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(u&&e in u)return u[e];if(arguments.length>1)return n&&ue(t)?t.call(r.proxy):t}}const li={};function It(e,t,n){return ci(e,t,n)}function ci(e,t,{immediate:n,deep:r,flush:u,onTrack:i,onTrigger:o}=fe){const s=_e;let a,l=!1,c=!1;if(xe(e)?(a=()=>e.value,l=Ku(e)):Tt(e)?(a=()=>e,r=!0):ne(e)?(c=!0,l=e.some(Tt),a=()=>e.map(A=>{if(xe(A))return A.value;if(Tt(A))return pt(A);if(ue(A))return st(A,s,2)})):ue(e)?t?a=()=>st(e,s,2):a=()=>{if(!(s&&s.isUnmounted))return f&&f(),We(e,s,3,[p])}:a=Ue,t&&r){const A=a;a=()=>pt(A())}let f,p=A=>{f=w.onStop=()=>{st(A,s,4)}};if(an)return p=Ue,t?n&&We(t,s,3,[a(),c?[]:void 0,p]):a(),Ue;let m=c?[]:li;const F=()=>{if(!!w.active)if(t){const A=w.run();(r||l||(c?A.some((j,I)=>Kt(j,m[I])):Kt(A,m)))&&(f&&f(),We(t,s,3,[A,m===li?void 0:m,p]),m=A)}else w.run()};F.allowRecurse=!!t;let $;u==="sync"?$=F:u==="post"?$=()=>ke(F,s&&s.suspense):$=()=>{!s||s.isMounted?Aa(F):F()};const w=new Er(a,$);return t?n?F():m=w.run():u==="post"?ke(w.run.bind(w),s&&s.suspense):w.run(),()=>{w.stop(),s&&s.scope&&cr(s.scope.effects,w)}}function $a(e,t,n){const r=this.proxy,u=Ae(e)?e.includes(".")?fi(r,e):()=>r[e]:e.bind(r,r);let i;ue(t)?i=t:(i=t.handler,n=t);const o=_e;Rt(this);const s=ci(u,i.bind(r),n);return o?Rt(o):Et(),s}function fi(e,t){const n=t.split(".");return()=>{let r=e;for(let u=0;u<n.length&&r;u++)r=r[n[u]];return r}}function pt(e,t){if(!Fe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),xe(e))pt(e.value,t);else if(ne(e))for(let n=0;n<e.length;n++)pt(e[n],t);else if(Bu(e)||xt(e))e.forEach(n=>{pt(n,t)});else if(Su(e))for(const n in e)pt(e[n],t);return e}function ze(e){return ue(e)?{setup:e,name:e.name}:e}const kr=e=>!!e.type.__asyncLoader,di=e=>e.type.__isKeepAlive;function Ia(e,t){hi(e,"a",t)}function ka(e,t){hi(e,"da",t)}function hi(e,t,n=_e){const r=e.__wdc||(e.__wdc=()=>{let u=n;for(;u;){if(u.isDeactivated)return;u=u.parent}return e()});if(Ln(t,r,n),n){let u=n.parent;for(;u&&u.parent;)di(u.parent.vnode)&&Ra(r,t,n,u),u=u.parent}}function Ra(e,t,n,r){const u=Ln(t,e,r,!0);pi(()=>{cr(r[t],u)},n)}function Ln(e,t,n=_e,r=!1){if(n){const u=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;St(),Rt(n);const s=We(t,n,e,o);return Et(),Dt(),s});return r?u.unshift(i):u.push(i),i}}const rt=e=>(t,n=_e)=>(!an||e==="sp")&&Ln(e,t,n),La=rt("bm"),Rr=rt("m"),Ma=rt("bu"),ja=rt("u"),Na=rt("bum"),pi=rt("um"),Ua=rt("sp"),Wa=rt("rtg"),Ha=rt("rtc");function za(e,t=_e){Ln("ec",e,t)}let Lr=!0;function Ga(e){const t=vi(e),n=e.proxy,r=e.ctx;Lr=!1,t.beforeCreate&&gi(t.beforeCreate,e,"bc");const{data:u,computed:i,methods:o,watch:s,provide:a,inject:l,created:c,beforeMount:f,mounted:p,beforeUpdate:m,updated:F,activated:$,deactivated:w,beforeDestroy:A,beforeUnmount:j,destroyed:I,unmounted:z,render:ve,renderTracked:$e,renderTriggered:G,errorCaptured:x,serverPrefetch:_,expose:L,inheritAttrs:X,components:q,directives:J,filters:te}=t;if(l&&qa(l,r,null,e.appContext.config.unwrapInjectedRef),o)for(const Z in o){const E=o[Z];ue(E)&&(r[Z]=E.bind(n))}if(u){const Z=u.call(n,n);Fe(Z)&&(e.data=Jt(Z))}if(Lr=!0,i)for(const Z in i){const E=i[Z],b=ue(E)?E.bind(n,n):ue(E.get)?E.get.bind(n,n):Ue,D=!ue(E)&&ue(E.set)?E.set.bind(n):Ue,N=ln({get:b,set:D});Object.defineProperty(r,Z,{enumerable:!0,configurable:!0,get:()=>N.value,set:M=>N.value=M})}if(s)for(const Z in s)mi(s[Z],r,n,Z);if(a){const Z=ue(a)?a.call(n):a;Reflect.ownKeys(Z).forEach(E=>{Pa(E,Z[E])})}c&&gi(c,e,"c");function ce(Z,E){ne(E)?E.forEach(b=>Z(b.bind(n))):E&&Z(E.bind(n))}if(ce(La,f),ce(Rr,p),ce(Ma,m),ce(ja,F),ce(Ia,$),ce(ka,w),ce(za,x),ce(Ha,$e),ce(Wa,G),ce(Na,j),ce(pi,z),ce(Ua,_),ne(L))if(L.length){const Z=e.exposed||(e.exposed={});L.forEach(E=>{Object.defineProperty(Z,E,{get:()=>n[E],set:b=>n[E]=b})})}else e.exposed||(e.exposed={});ve&&e.render===Ue&&(e.render=ve),X!=null&&(e.inheritAttrs=X),q&&(e.components=q),J&&(e.directives=J)}function qa(e,t,n=Ue,r=!1){ne(e)&&(e=Mr(e));for(const u in e){const i=e[u];let o;Fe(i)?"default"in i?o=Ir(i.from||u,i.default,!0):o=Ir(i.from||u):o=Ir(i),xe(o)&&r?Object.defineProperty(t,u,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[u]=o}}function gi(e,t,n){We(ne(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function mi(e,t,n,r){const u=r.includes(".")?fi(n,r):()=>n[r];if(Ae(e)){const i=t[e];ue(i)&&It(u,i)}else if(ue(e))It(u,e.bind(n));else if(Fe(e))if(ne(e))e.forEach(i=>mi(i,t,n,r));else{const i=ue(e.handler)?e.handler.bind(n):t[e.handler];ue(i)&&It(u,i,e)}}function vi(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:u,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,s=i.get(t);let a;return s?a=s:!u.length&&!n&&!r?a=t:(a={},u.length&&u.forEach(l=>Mn(a,l,o,!0)),Mn(a,t,o)),i.set(t,a),a}function Mn(e,t,n,r=!1){const{mixins:u,extends:i}=t;i&&Mn(e,i,n,!0),u&&u.forEach(o=>Mn(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const s=Ka[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const Ka={data:yi,props:gt,emits:gt,methods:gt,computed:gt,beforeCreate:Oe,created:Oe,beforeMount:Oe,mounted:Oe,beforeUpdate:Oe,updated:Oe,beforeDestroy:Oe,beforeUnmount:Oe,destroyed:Oe,unmounted:Oe,activated:Oe,deactivated:Oe,errorCaptured:Oe,serverPrefetch:Oe,components:gt,directives:gt,watch:Ja,provide:yi,inject:Qa};function yi(e,t){return t?e?function(){return Te(ue(e)?e.call(this,this):e,ue(t)?t.call(this,this):t)}:t:e}function Qa(e,t){return gt(Mr(e),Mr(t))}function Mr(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Oe(e,t){return e?[...new Set([].concat(e,t))]:t}function gt(e,t){return e?Te(Te(Object.create(null),e),t):t}function Ja(e,t){if(!e)return t;if(!t)return e;const n=Te(Object.create(null),e);for(const r in t)n[r]=Oe(e[r],t[r]);return n}function Va(e,t,n,r=!1){const u={},i={};_n(i,Nn,1),e.propsDefaults=Object.create(null),Ei(e,t,u,i);for(const o in e.propsOptions[0])o in u||(u[o]=void 0);n?e.props=r?u:pa(u):e.type.props?e.props=u:e.props=i,e.attrs=i}function Ya(e,t,n,r){const{props:u,attrs:i,vnode:{patchFlag:o}}=e,s=le(u),[a]=e.propsOptions;let l=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let p=c[f];const m=t[p];if(a)if(se(i,p))m!==i[p]&&(i[p]=m,l=!0);else{const F=Ke(p);u[F]=jr(a,s,F,m,e,!1)}else m!==i[p]&&(i[p]=m,l=!0)}}}else{Ei(e,t,u,i)&&(l=!0);let c;for(const f in s)(!t||!se(t,f)&&((c=_t(f))===f||!se(t,c)))&&(a?n&&(n[f]!==void 0||n[c]!==void 0)&&(u[f]=jr(a,s,f,void 0,e,!0)):delete u[f]);if(i!==s)for(const f in i)(!t||!se(t,f)&&!0)&&(delete i[f],l=!0)}l&&tt(e,"set","$attrs")}function Ei(e,t,n,r){const[u,i]=e.propsOptions;let o=!1,s;if(t)for(let a in t){if(Cn(a))continue;const l=t[a];let c;u&&se(u,c=Ke(a))?!i||!i.includes(c)?n[c]=l:(s||(s={}))[c]=l:Pr(e.emitsOptions,a)||(!(a in r)||l!==r[a])&&(r[a]=l,o=!0)}if(i){const a=le(n),l=s||fe;for(let c=0;c<i.length;c++){const f=i[c];n[f]=jr(u,a,f,l[f],e,!se(l,f))}}return o}function jr(e,t,n,r,u,i){const o=e[n];if(o!=null){const s=se(o,"default");if(s&&r===void 0){const a=o.default;if(o.type!==Function&&ue(a)){const{propsDefaults:l}=u;n in l?r=l[n]:(Rt(u),r=l[n]=a.call(null,t),Et())}else r=a}o[0]&&(i&&!s?r=!1:o[1]&&(r===""||r===_t(n))&&(r=!0))}return r}function bi(e,t,n=!1){const r=t.propsCache,u=r.get(e);if(u)return u;const i=e.props,o={},s=[];let a=!1;if(!ue(e)){const c=f=>{a=!0;const[p,m]=bi(f,t,!0);Te(o,p),m&&s.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!a)return r.set(e,Bt),Bt;if(ne(i))for(let c=0;c<i.length;c++){const f=Ke(i[c]);wi(f)&&(o[f]=fe)}else if(i)for(const c in i){const f=Ke(c);if(wi(f)){const p=i[c],m=o[f]=ne(p)||ue(p)?{type:p}:p;if(m){const F=Ci(Boolean,m.type),$=Ci(String,m.type);m[0]=F>-1,m[1]=$<0||F<$,(F>-1||se(m,"default"))&&s.push(f)}}}const l=[o,s];return r.set(e,l),l}function wi(e){return e[0]!=="$"}function Ai(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Fi(e,t){return Ai(e)===Ai(t)}function Ci(e,t){return ne(t)?t.findIndex(n=>Fi(n,e)):ue(t)&&Fi(t,e)?0:-1}const Bi=e=>e[0]==="_"||e==="$stable",Nr=e=>ne(e)?e.map(Je):[Je(e)],Xa=(e,t,n)=>{const r=Ba((...u)=>Nr(t(...u)),n);return r._c=!1,r},xi=(e,t,n)=>{const r=e._ctx;for(const u in e){if(Bi(u))continue;const i=e[u];if(ue(i))t[u]=Xa(u,i,r);else if(i!=null){const o=Nr(i);t[u]=()=>o}}},_i=(e,t)=>{const n=Nr(t);e.slots.default=()=>n},Za=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=le(t),_n(t,"_",n)):xi(t,e.slots={})}else e.slots={},t&&_i(e,t);_n(e.slots,Nn,1)},el=(e,t,n)=>{const{vnode:r,slots:u}=e;let i=!0,o=fe;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(Te(u,t),!n&&s===1&&delete u._):(i=!t.$stable,xi(t,u)),o=t}else t&&(_i(e,t),o={default:1});if(i)for(const s in u)!Bi(s)&&!(s in o)&&delete u[s]};function tl(e,t){const n=He;if(n===null)return e;const r=n.proxy,u=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,a,l=fe]=t[i];ue(o)&&(o={mounted:o,updated:o}),o.deep&&pt(s),u.push({dir:o,instance:r,value:s,oldValue:void 0,arg:a,modifiers:l})}return e}function mt(e,t,n,r){const u=e.dirs,i=t&&t.dirs;for(let o=0;o<u.length;o++){const s=u[o];i&&(s.oldValue=i[o].value);let a=s.dir[r];a&&(St(),We(a,n,8,[e.el,s,e,t]),Dt())}}function Si(){return{app:null,config:{isNativeTag:$s,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let nl=0;function rl(e,t){return function(r,u=null){u!=null&&!Fe(u)&&(u=null);const i=Si(),o=new Set;let s=!1;const a=i.app={_uid:nl++,_component:r,_props:u,_container:null,_context:i,_instance:null,version:xl,get config(){return i.config},set config(l){},use(l,...c){return o.has(l)||(l&&ue(l.install)?(o.add(l),l.install(a,...c)):ue(l)&&(o.add(l),l(a,...c))),a},mixin(l){return i.mixins.includes(l)||i.mixins.push(l),a},component(l,c){return c?(i.components[l]=c,a):i.components[l]},directive(l,c){return c?(i.directives[l]=c,a):i.directives[l]},mount(l,c,f){if(!s){const p=h(r,u);return p.appContext=i,c&&t?t(p,l):e(p,l,f),s=!0,a._container=l,l.__vue_app__=a,Kr(p.component)||p.component.proxy}},unmount(){s&&(e(null,a._container),delete a._container.__vue_app__)},provide(l,c){return i.provides[l]=c,a}};return a}}function Ur(e,t,n,r,u=!1){if(ne(e)){e.forEach((p,m)=>Ur(p,t&&(ne(t)?t[m]:t),n,r,u));return}if(kr(r)&&!u)return;const i=r.shapeFlag&4?Kr(r.component)||r.component.proxy:r.el,o=u?null:i,{i:s,r:a}=e,l=t&&t.r,c=s.refs===fe?s.refs={}:s.refs,f=s.setupState;if(l!=null&&l!==a&&(Ae(l)?(c[l]=null,se(f,l)&&(f[l]=null)):xe(l)&&(l.value=null)),ue(a))st(a,s,12,[o,c]);else{const p=Ae(a),m=xe(a);if(p||m){const F=()=>{if(e.f){const $=p?c[a]:a.value;u?ne($)&&cr($,i):ne($)?$.includes(i)||$.push(i):p?c[a]=[i]:(a.value=[i],e.k&&(c[e.k]=a.value))}else p?(c[a]=o,se(f,a)&&(f[a]=o)):xe(a)&&(a.value=o,e.k&&(c[e.k]=o))};o?(F.id=-1,ke(F,n)):F()}}}const ke=Oa;function ul(e){return il(e)}function il(e,t){const n=Ns();n.__VUE__=!0;const{insert:r,remove:u,patchProp:i,createElement:o,createText:s,createComment:a,setText:l,setElementText:c,parentNode:f,nextSibling:p,setScopeId:m=Ue,cloneNode:F,insertStaticContent:$}=e,w=(d,g,y,B=null,C=null,O=null,R=!1,T=null,P=!!g.dynamicChildren)=>{if(d===g)return;d&&!on(d,g)&&(B=ie(d),re(d,C,O,!0),d=null),g.patchFlag===-2&&(P=!1,g.dynamicChildren=null);const{type:S,ref:K,shapeFlag:H}=g;switch(S){case Hr:A(d,g,y,B);break;case nn:j(d,g,y,B);break;case zr:d==null&&I(g,y,B,R);break;case Pe:J(d,g,y,B,C,O,R,T,P);break;default:H&1?$e(d,g,y,B,C,O,R,T,P):H&6?te(d,g,y,B,C,O,R,T,P):(H&64||H&128)&&S.process(d,g,y,B,C,O,R,T,P,ge)}K!=null&&C&&Ur(K,d&&d.ref,O,g||d,!g)},A=(d,g,y,B)=>{if(d==null)r(g.el=s(g.children),y,B);else{const C=g.el=d.el;g.children!==d.children&&l(C,g.children)}},j=(d,g,y,B)=>{d==null?r(g.el=a(g.children||""),y,B):g.el=d.el},I=(d,g,y,B)=>{[d.el,d.anchor]=$(d.children,g,y,B,d.el,d.anchor)},z=({el:d,anchor:g},y,B)=>{let C;for(;d&&d!==g;)C=p(d),r(d,y,B),d=C;r(g,y,B)},ve=({el:d,anchor:g})=>{let y;for(;d&&d!==g;)y=p(d),u(d),d=y;u(g)},$e=(d,g,y,B,C,O,R,T,P)=>{R=R||g.type==="svg",d==null?G(g,y,B,C,O,R,T,P):L(d,g,C,O,R,T,P)},G=(d,g,y,B,C,O,R,T)=>{let P,S;const{type:K,props:H,shapeFlag:Q,transition:ee,patchFlag:oe,dirs:ye}=d;if(d.el&&F!==void 0&&oe===-1)P=d.el=F(d.el);else{if(P=d.el=o(d.type,O,H&&H.is,H),Q&8?c(P,d.children):Q&16&&_(d.children,P,null,B,C,O&&K!=="foreignObject",R,T),ye&&mt(d,null,B,"created"),H){for(const me in H)me!=="value"&&!Cn(me)&&i(P,me,null,H[me],O,d.children,B,C,V);"value"in H&&i(P,"value",null,H.value),(S=H.onVnodeBeforeMount)&&Ve(S,B,d)}x(P,d,d.scopeId,R,B)}ye&&mt(d,null,B,"beforeMount");const he=(!C||C&&!C.pendingBranch)&&ee&&!ee.persisted;he&&ee.beforeEnter(P),r(P,g,y),((S=H&&H.onVnodeMounted)||he||ye)&&ke(()=>{S&&Ve(S,B,d),he&&ee.enter(P),ye&&mt(d,null,B,"mounted")},C)},x=(d,g,y,B,C)=>{if(y&&m(d,y),B)for(let O=0;O<B.length;O++)m(d,B[O]);if(C){let O=C.subTree;if(g===O){const R=C.vnode;x(d,R,R.scopeId,R.slotScopeIds,C.parent)}}},_=(d,g,y,B,C,O,R,T,P=0)=>{for(let S=P;S<d.length;S++){const K=d[S]=T?ct(d[S]):Je(d[S]);w(null,K,g,y,B,C,O,R,T)}},L=(d,g,y,B,C,O,R)=>{const T=g.el=d.el;let{patchFlag:P,dynamicChildren:S,dirs:K}=g;P|=d.patchFlag&16;const H=d.props||fe,Q=g.props||fe;let ee;y&&vt(y,!1),(ee=Q.onVnodeBeforeUpdate)&&Ve(ee,y,g,d),K&&mt(g,d,y,"beforeUpdate"),y&&vt(y,!0);const oe=C&&g.type!=="foreignObject";if(S?X(d.dynamicChildren,S,T,y,B,oe,O):R||b(d,g,T,null,y,B,oe,O,!1),P>0){if(P&16)q(T,g,H,Q,y,B,C);else if(P&2&&H.class!==Q.class&&i(T,"class",null,Q.class,C),P&4&&i(T,"style",H.style,Q.style,C),P&8){const ye=g.dynamicProps;for(let he=0;he<ye.length;he++){const me=ye[he],qe=H[me],qt=Q[me];(qt!==qe||me==="value")&&i(T,me,qe,qt,C,d.children,y,B,V)}}P&1&&d.children!==g.children&&c(T,g.children)}else!R&&S==null&&q(T,g,H,Q,y,B,C);((ee=Q.onVnodeUpdated)||K)&&ke(()=>{ee&&Ve(ee,y,g,d),K&&mt(g,d,y,"updated")},B)},X=(d,g,y,B,C,O,R)=>{for(let T=0;T<g.length;T++){const P=d[T],S=g[T],K=P.el&&(P.type===Pe||!on(P,S)||P.shapeFlag&70)?f(P.el):y;w(P,S,K,null,B,C,O,R,!0)}},q=(d,g,y,B,C,O,R)=>{if(y!==B){for(const T in B){if(Cn(T))continue;const P=B[T],S=y[T];P!==S&&T!=="value"&&i(d,T,S,P,R,g.children,C,O,V)}if(y!==fe)for(const T in y)!Cn(T)&&!(T in B)&&i(d,T,y[T],null,R,g.children,C,O,V);"value"in B&&i(d,"value",y.value,B.value)}},J=(d,g,y,B,C,O,R,T,P)=>{const S=g.el=d?d.el:s(""),K=g.anchor=d?d.anchor:s("");let{patchFlag:H,dynamicChildren:Q,slotScopeIds:ee}=g;ee&&(T=T?T.concat(ee):ee),d==null?(r(S,y,B),r(K,y,B),_(g.children,y,K,C,O,R,T,P)):H>0&&H&64&&Q&&d.dynamicChildren?(X(d.dynamicChildren,Q,y,C,O,R,T),(g.key!=null||C&&g===C.subTree)&&Di(d,g,!0)):b(d,g,y,K,C,O,R,T,P)},te=(d,g,y,B,C,O,R,T,P)=>{g.slotScopeIds=T,d==null?g.shapeFlag&512?C.ctx.activate(g,y,B,R,P):we(g,y,B,C,O,R,P):ce(d,g,P)},we=(d,g,y,B,C,O,R)=>{const T=d.component=El(d,B,C);if(di(d)&&(T.ctx.renderer=ge),bl(T),T.asyncDep){if(C&&C.registerDep(T,Z),!d.el){const P=T.subTree=h(nn);j(null,P,g,y)}return}Z(T,d,g,y,C,O,R)},ce=(d,g,y)=>{const B=g.component=d.component;if(Sa(d,g,y))if(B.asyncDep&&!B.asyncResolved){E(B,g,y);return}else B.next=g,wa(B.update),B.update();else g.component=d.component,g.el=d.el,B.vnode=g},Z=(d,g,y,B,C,O,R)=>{const T=()=>{if(d.isMounted){let{next:K,bu:H,u:Q,parent:ee,vnode:oe}=d,ye=K,he;vt(d,!1),K?(K.el=oe.el,E(d,K,R)):K=oe,H&&pr(H),(he=K.props&&K.props.onVnodeBeforeUpdate)&&Ve(he,ee,K,oe),vt(d,!0);const me=$r(d),qe=d.subTree;d.subTree=me,w(qe,me,f(qe.el),ie(qe),d,C,O),K.el=me.el,ye===null&&Da(d,me.el),Q&&ke(Q,C),(he=K.props&&K.props.onVnodeUpdated)&&ke(()=>Ve(he,ee,K,oe),C)}else{let K;const{el:H,props:Q}=g,{bm:ee,m:oe,parent:ye}=d,he=kr(g);if(vt(d,!1),ee&&pr(ee),!he&&(K=Q&&Q.onVnodeBeforeMount)&&Ve(K,ye,g),vt(d,!0),H&&Ct){const me=()=>{d.subTree=$r(d),Ct(H,d.subTree,d,C,null)};he?g.type.__asyncLoader().then(()=>!d.isUnmounted&&me()):me()}else{const me=d.subTree=$r(d);w(null,me,y,B,d,C,O),g.el=me.el}if(oe&&ke(oe,C),!he&&(K=Q&&Q.onVnodeMounted)){const me=g;ke(()=>Ve(K,ye,me),C)}g.shapeFlag&256&&d.a&&ke(d.a,C),d.isMounted=!0,g=y=B=null}},P=d.effect=new Er(T,()=>ti(d.update),d.scope),S=d.update=P.run.bind(P);S.id=d.uid,vt(d,!0),S()},E=(d,g,y)=>{g.component=d;const B=d.vnode.props;d.vnode=g,d.next=null,Ya(d,g.props,B,y),el(d,g.children,y),St(),Or(void 0,d.update),Dt()},b=(d,g,y,B,C,O,R,T,P=!1)=>{const S=d&&d.children,K=d?d.shapeFlag:0,H=g.children,{patchFlag:Q,shapeFlag:ee}=g;if(Q>0){if(Q&128){N(S,H,y,B,C,O,R,T,P);return}else if(Q&256){D(S,H,y,B,C,O,R,T,P);return}}ee&8?(K&16&&V(S,C,O),H!==S&&c(y,H)):K&16?ee&16?N(S,H,y,B,C,O,R,T,P):V(S,C,O,!0):(K&8&&c(y,""),ee&16&&_(H,y,B,C,O,R,T,P))},D=(d,g,y,B,C,O,R,T,P)=>{d=d||Bt,g=g||Bt;const S=d.length,K=g.length,H=Math.min(S,K);let Q;for(Q=0;Q<H;Q++){const ee=g[Q]=P?ct(g[Q]):Je(g[Q]);w(d[Q],ee,y,null,C,O,R,T,P)}S>K?V(d,C,O,!0,!1,H):_(g,y,B,C,O,R,T,P,H)},N=(d,g,y,B,C,O,R,T,P)=>{let S=0;const K=g.length;let H=d.length-1,Q=K-1;for(;S<=H&&S<=Q;){const ee=d[S],oe=g[S]=P?ct(g[S]):Je(g[S]);if(on(ee,oe))w(ee,oe,y,null,C,O,R,T,P);else break;S++}for(;S<=H&&S<=Q;){const ee=d[H],oe=g[Q]=P?ct(g[Q]):Je(g[Q]);if(on(ee,oe))w(ee,oe,y,null,C,O,R,T,P);else break;H--,Q--}if(S>H){if(S<=Q){const ee=Q+1,oe=ee<K?g[ee].el:B;for(;S<=Q;)w(null,g[S]=P?ct(g[S]):Je(g[S]),y,oe,C,O,R,T,P),S++}}else if(S>Q)for(;S<=H;)re(d[S],C,O,!0),S++;else{const ee=S,oe=S,ye=new Map;for(S=oe;S<=Q;S++){const Me=g[S]=P?ct(g[S]):Je(g[S]);Me.key!=null&&ye.set(Me.key,S)}let he,me=0;const qe=Q-oe+1;let qt=!1,Fs=0;const bn=new Array(qe);for(S=0;S<qe;S++)bn[S]=0;for(S=ee;S<=H;S++){const Me=d[S];if(me>=qe){re(Me,C,O,!0);continue}let Xe;if(Me.key!=null)Xe=ye.get(Me.key);else for(he=oe;he<=Q;he++)if(bn[he-oe]===0&&on(Me,g[he])){Xe=he;break}Xe===void 0?re(Me,C,O,!0):(bn[Xe-oe]=S+1,Xe>=Fs?Fs=Xe:qt=!0,w(Me,g[Xe],y,null,C,O,R,T,P),me++)}const Cs=qt?ol(bn):Bt;for(he=Cs.length-1,S=qe-1;S>=0;S--){const Me=oe+S,Xe=g[Me],Bs=Me+1<K?g[Me+1].el:B;bn[S]===0?w(null,Xe,y,Bs,C,O,R,T,P):qt&&(he<0||S!==Cs[he]?M(Xe,y,Bs,2):he--)}}},M=(d,g,y,B,C=null)=>{const{el:O,type:R,transition:T,children:P,shapeFlag:S}=d;if(S&6){M(d.component.subTree,g,y,B);return}if(S&128){d.suspense.move(g,y,B);return}if(S&64){R.move(d,g,y,ge);return}if(R===Pe){r(O,g,y);for(let H=0;H<P.length;H++)M(P[H],g,y,B);r(d.anchor,g,y);return}if(R===zr){z(d,g,y);return}if(B!==2&&S&1&&T)if(B===0)T.beforeEnter(O),r(O,g,y),ke(()=>T.enter(O),C);else{const{leave:H,delayLeave:Q,afterLeave:ee}=T,oe=()=>r(O,g,y),ye=()=>{H(O,()=>{oe(),ee&&ee()})};Q?Q(O,oe,ye):ye()}else r(O,g,y)},re=(d,g,y,B=!1,C=!1)=>{const{type:O,props:R,ref:T,children:P,dynamicChildren:S,shapeFlag:K,patchFlag:H,dirs:Q}=d;if(T!=null&&Ur(T,null,y,d,!0),K&256){g.ctx.deactivate(d);return}const ee=K&1&&Q,oe=!kr(d);let ye;if(oe&&(ye=R&&R.onVnodeBeforeUnmount)&&Ve(ye,g,d),K&6)Y(d.component,y,B);else{if(K&128){d.suspense.unmount(y,B);return}ee&&mt(d,null,g,"beforeUnmount"),K&64?d.type.remove(d,g,y,C,ge,B):S&&(O!==Pe||H>0&&H&64)?V(S,g,y,!1,!0):(O===Pe&&H&384||!C&&K&16)&&V(P,g,y),B&&de(d)}(oe&&(ye=R&&R.onVnodeUnmounted)||ee)&&ke(()=>{ye&&Ve(ye,g,d),ee&&mt(d,null,g,"unmounted")},y)},de=d=>{const{type:g,el:y,anchor:B,transition:C}=d;if(g===Pe){k(y,B);return}if(g===zr){ve(d);return}const O=()=>{u(y),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(d.shapeFlag&1&&C&&!C.persisted){const{leave:R,delayLeave:T}=C,P=()=>R(y,O);T?T(d.el,O,P):P()}else O()},k=(d,g)=>{let y;for(;d!==g;)y=p(d),u(d),d=y;u(g)},Y=(d,g,y)=>{const{bum:B,scope:C,update:O,subTree:R,um:T}=d;B&&pr(B),C.stop(),O&&(O.active=!1,re(R,d,g,y)),T&&ke(T,g),ke(()=>{d.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},V=(d,g,y,B=!1,C=!1,O=0)=>{for(let R=O;R<d.length;R++)re(d[R],g,y,B,C)},ie=d=>d.shapeFlag&6?ie(d.component.subTree):d.shapeFlag&128?d.suspense.next():p(d.anchor||d.el),be=(d,g,y)=>{d==null?g._vnode&&re(g._vnode,null,null,!0):w(g._vnode||null,d,g,null,null,null,y),ui(),g._vnode=d},ge={p:w,um:re,m:M,r:de,mt:we,mc:_,pc:b,pbc:X,n:ie,o:e};let Ft,Ct;return t&&([Ft,Ct]=t(ge)),{render:be,hydrate:Ft,createApp:rl(be,Ft)}}function vt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Di(e,t,n=!1){const r=e.children,u=t.children;if(ne(r)&&ne(u))for(let i=0;i<r.length;i++){const o=r[i];let s=u[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=u[i]=ct(u[i]),s.el=o.el),n||Di(o,s))}}function ol(e){const t=e.slice(),n=[0];let r,u,i,o,s;const a=e.length;for(r=0;r<a;r++){const l=e[r];if(l!==0){if(u=n[n.length-1],e[u]<l){t[r]=u,n.push(r);continue}for(i=0,o=n.length-1;i<o;)s=i+o>>1,e[n[s]]<l?i=s+1:o=s;l<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const sl=e=>e.__isTeleport,Wr="components";function al(e,t){return Oi(Wr,e,!0,t)||e}const Ti=Symbol();function ll(e){return Ae(e)?Oi(Wr,e,!1)||e:e||Ti}function Oi(e,t,n=!0,r=!1){const u=He||_e;if(u){const i=u.type;if(e===Wr){const s=Cl(i);if(s&&(s===t||s===Ke(t)||s===xn(Ke(t))))return i}const o=Pi(u[e]||i[e],t)||Pi(u.appContext[e],t);return!o&&r?i:o}}function Pi(e,t){return e&&(e[t]||e[Ke(t)]||e[xn(Ke(t))])}const Pe=Symbol(void 0),Hr=Symbol(void 0),nn=Symbol(void 0),zr=Symbol(void 0),rn=[];let yt=null;function kt(e=!1){rn.push(yt=e?null:[])}function cl(){rn.pop(),yt=rn[rn.length-1]||null}let jn=1;function $i(e){jn+=e}function Ii(e){return e.dynamicChildren=jn>0?yt||Bt:null,cl(),jn>0&&yt&&yt.push(e),e}function un(e,t,n,r,u,i){return Ii(lt(e,t,n,r,u,i,!0))}function fl(e,t,n,r,u){return Ii(h(e,t,n,r,u,!0))}function dl(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const Nn="__vInternal",ki=({key:e})=>e!=null?e:null,Un=({ref:e,ref_key:t,ref_for:n})=>e!=null?Ae(e)||xe(e)||ue(e)?{i:He,r:e,k:t,f:!!n}:e:null;function lt(e,t=null,n=null,r=0,u=null,i=e===Pe?0:1,o=!1,s=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ki(t),ref:t&&Un(t),scopeId:si,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:u,dynamicChildren:null,appContext:null};return s?(Gr(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Ae(n)?8:16),jn>0&&!o&&yt&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&yt.push(a),a}const h=hl;function hl(e,t=null,n=null,r=0,u=null,i=!1){if((!e||e===Ti)&&(e=nn),dl(e)){const s=sn(e,t,!0);return n&&Gr(s,n),s}if(Bl(e)&&(e=e.__vccOpts),t){t=pl(t);let{class:s,style:a}=t;s&&!Ae(s)&&(t.class=wn(s)),Fe(a)&&(Qu(a)&&!ne(a)&&(a=Te({},a)),t.style=ar(a))}const o=Ae(e)?1:Ta(e)?128:sl(e)?64:Fe(e)?4:ue(e)?2:0;return lt(e,t,n,r,u,o,i,!0)}function pl(e){return e?Qu(e)||Nn in e?Te({},e):e:null}function sn(e,t,n=!1){const{props:r,ref:u,patchFlag:i,children:o}=e,s=t?gl(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&ki(s),ref:t&&t.ref?n&&u?ne(u)?u.concat(Un(t)):[u,Un(t)]:Un(t):u,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&sn(e.ssContent),ssFallback:e.ssFallback&&sn(e.ssFallback),el:e.el,anchor:e.anchor}}function U(e=" ",t=0){return h(Hr,null,e,t)}function Je(e){return e==null||typeof e=="boolean"?h(nn):ne(e)?h(Pe,null,e.slice()):typeof e=="object"?ct(e):h(Hr,null,String(e))}function ct(e){return e.el===null||e.memo?e:sn(e)}function Gr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ne(t))n=16;else if(typeof t=="object")if(r&65){const u=t.default;u&&(u._c&&(u._d=!1),Gr(e,u()),u._c&&(u._d=!0));return}else{n=32;const u=t._;!u&&!(Nn in t)?t._ctx=He:u===3&&He&&(He.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ue(t)?(t={default:t,_ctx:He},n=32):(t=String(t),r&64?(n=16,t=[U(t)]):n=8);e.children=t,e.shapeFlag|=n}function gl(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const u in r)if(u==="class")t.class!==r.class&&(t.class=wn([t.class,r.class]));else if(u==="style")t.style=ar([t.style,r.style]);else if(An(u)){const i=t[u],o=r[u];o&&i!==o&&!(ne(i)&&i.includes(o))&&(t[u]=i?[].concat(i,o):o)}else u!==""&&(t[u]=r[u])}return t}function Ve(e,t,n,r=null){We(e,t,7,[n,r])}function Ri(e,t,n,r){let u;const i=n&&n[r];if(ne(e)||Ae(e)){u=new Array(e.length);for(let o=0,s=e.length;o<s;o++)u[o]=t(e[o],o,void 0,i&&i[o])}else if(typeof e=="number"){u=new Array(e);for(let o=0;o<e;o++)u[o]=t(o+1,o,void 0,i&&i[o])}else if(Fe(e))if(e[Symbol.iterator])u=Array.from(e,(o,s)=>t(o,s,void 0,i&&i[s]));else{const o=Object.keys(e);u=new Array(o.length);for(let s=0,a=o.length;s<a;s++){const l=o[s];u[s]=t(e[l],l,s,i&&i[s])}}else u=[];return n&&(n[r]=u),u}const qr=e=>e?Li(e)?Kr(e)||e.proxy:qr(e.parent):null,Wn=Te(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>qr(e.parent),$root:e=>qr(e.root),$emit:e=>e.emit,$options:e=>vi(e),$forceUpdate:e=>()=>ti(e.update),$nextTick:e=>Tr.bind(e.proxy),$watch:e=>$a.bind(e)}),ml={get({_:e},t){const{ctx:n,setupState:r,data:u,props:i,accessCache:o,type:s,appContext:a}=e;let l;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return u[t];case 4:return n[t];case 3:return i[t]}else{if(r!==fe&&se(r,t))return o[t]=1,r[t];if(u!==fe&&se(u,t))return o[t]=2,u[t];if((l=e.propsOptions[0])&&se(l,t))return o[t]=3,i[t];if(n!==fe&&se(n,t))return o[t]=4,n[t];Lr&&(o[t]=0)}}const c=Wn[t];let f,p;if(c)return t==="$attrs"&&Re(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==fe&&se(n,t))return o[t]=4,n[t];if(p=a.config.globalProperties,se(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:u,ctx:i}=e;return u!==fe&&se(u,t)?(u[t]=n,!0):r!==fe&&se(r,t)?(r[t]=n,!0):se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:u,propsOptions:i}},o){let s;return!!n[o]||e!==fe&&se(e,o)||t!==fe&&se(t,o)||(s=i[0])&&se(s,o)||se(r,o)||se(Wn,o)||se(u.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?this.set(e,t,n.get(),null):n.value!=null&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},vl=Si();let yl=0;function El(e,t,n){const r=e.type,u=(t?t.appContext:e.appContext)||vl,i={uid:yl++,vnode:e,type:r,parent:t,appContext:u,root:null,next:null,subTree:null,effect:null,update:null,scope:new Us(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(u.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bi(r,u),emitsOptions:oi(r,u),emit:null,emitted:null,propsDefaults:fe,inheritAttrs:r.inheritAttrs,ctx:fe,data:fe,props:fe,attrs:fe,slots:fe,refs:fe,setupState:fe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Ca.bind(null,i),e.ce&&e.ce(i),i}let _e=null;const Rt=e=>{_e=e,e.scope.on()},Et=()=>{_e&&_e.scope.off(),_e=null};function Li(e){return e.vnode.shapeFlag&4}let an=!1;function bl(e,t=!1){an=t;const{props:n,children:r}=e.vnode,u=Li(e);Va(e,n,u,t),Za(e,r);const i=u?wl(e,t):void 0;return an=!1,i}function wl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ju(new Proxy(e.ctx,ml));const{setup:r}=n;if(r){const u=e.setupContext=r.length>1?Fl(e):null;Rt(e),St();const i=st(r,e,0,[e.props,u]);if(Dt(),Et(),xu(i)){if(i.then(Et,Et),t)return i.then(o=>{Mi(e,o,t)}).catch(o=>{In(o,e,0)});e.asyncDep=i}else Mi(e,i,t)}else Ni(e,t)}function Mi(e,t,n){ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Fe(t)&&(e.setupState=Xu(t)),Ni(e,n)}let ji;function Ni(e,t,n){const r=e.type;if(!e.render){if(!t&&ji&&!r.render){const u=r.template;if(u){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:a}=r,l=Te(Te({isCustomElement:i,delimiters:s},o),a);r.render=ji(u,l)}}e.render=r.render||Ue}Rt(e),St(),Ga(e),Dt(),Et()}function Al(e){return new Proxy(e.attrs,{get(t,n){return Re(e,"get","$attrs"),t[n]}})}function Fl(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=Al(e))},slots:e.slots,emit:e.emit,expose:t}}function Kr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Xu(Ju(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Wn)return Wn[n](e)}}))}function Cl(e){return ue(e)&&e.displayName||e.name}function Bl(e){return ue(e)&&"__vccOpts"in e}const ln=(e,t)=>Zu(e,t,an),xl="3.2.31",_l="http://www.w3.org/2000/svg",bt=typeof document!="undefined"?document:null,Ui=bt&&bt.createElement("template"),Sl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const u=t?bt.createElementNS(_l,e):bt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&u.setAttribute("multiple",r.multiple),u},createText:e=>bt.createTextNode(e),createComment:e=>bt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>bt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,u,i){const o=n?n.previousSibling:t.lastChild;if(u&&(u===i||u.nextSibling))for(;t.insertBefore(u.cloneNode(!0),n),!(u===i||!(u=u.nextSibling)););else{Ui.innerHTML=r?`<svg>${e}</svg>`:e;const s=Ui.content;if(r){const a=s.firstChild;for(;a.firstChild;)s.appendChild(a.firstChild);s.removeChild(a)}t.insertBefore(s,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Dl(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Tl(e,t,n){const r=e.style,u=Ae(n);if(n&&!u){for(const i in n)Qr(r,i,n[i]);if(t&&!Ae(t))for(const i in t)n[i]==null&&Qr(r,i,"")}else{const i=r.display;u?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const Wi=/\s*!important$/;function Qr(e,t,n){if(ne(n))n.forEach(r=>Qr(e,t,r));else if(t.startsWith("--"))e.setProperty(t,n);else{const r=Ol(e,t);Wi.test(n)?e.setProperty(_t(r),n.replace(Wi,""),"important"):e[r]=n}}const Hi=["Webkit","Moz","ms"],Jr={};function Ol(e,t){const n=Jr[t];if(n)return n;let r=Ke(t);if(r!=="filter"&&r in e)return Jr[t]=r;r=xn(r);for(let u=0;u<Hi.length;u++){const i=Hi[u]+r;if(i in e)return Jr[t]=i}return t}const zi="http://www.w3.org/1999/xlink";function Pl(e,t,n,r,u){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(zi,t.slice(6,t.length)):e.setAttributeNS(zi,t,n);else{const i=Ne(t);n==null||i&&!Au(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function $l(e,t,n,r,u,i,o){if(t==="innerHTML"||t==="textContent"){r&&o(r,u,i),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const s=n==null?"":n;(e.value!==s||e.tagName==="OPTION")&&(e.value=s),n==null&&e.removeAttribute(t);return}if(n===""||n==null){const s=typeof e[t];if(s==="boolean"){e[t]=Au(n);return}else if(n==null&&s==="string"){e[t]="",e.removeAttribute(t);return}else if(s==="number"){try{e[t]=0}catch{}e.removeAttribute(t);return}}try{e[t]=n}catch{}}let Hn=Date.now,Gi=!1;if(typeof window!="undefined"){Hn()>document.createEvent("Event").timeStamp&&(Hn=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Gi=!!(e&&Number(e[1])<=53)}let Vr=0;const Il=Promise.resolve(),kl=()=>{Vr=0},Rl=()=>Vr||(Il.then(kl),Vr=Hn());function Ll(e,t,n,r){e.addEventListener(t,n,r)}function Ml(e,t,n,r){e.removeEventListener(t,n,r)}function jl(e,t,n,r,u=null){const i=e._vei||(e._vei={}),o=i[t];if(r&&o)o.value=r;else{const[s,a]=Nl(t);if(r){const l=i[t]=Ul(r,u);Ll(e,s,l,a)}else o&&(Ml(e,s,o,a),i[t]=void 0)}}const qi=/(?:Once|Passive|Capture)$/;function Nl(e){let t;if(qi.test(e)){t={};let n;for(;n=e.match(qi);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[_t(e.slice(2)),t]}function Ul(e,t){const n=r=>{const u=r.timeStamp||Hn();(Gi||u>=n.attached-1)&&We(Wl(r,n.value),t,5,[r])};return n.value=e,n.attached=Rl(),n}function Wl(e,t){if(ne(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>u=>!u._stopped&&r&&r(u))}else return t}const Ki=/^on[a-z]/,Hl=(e,t,n,r,u=!1,i,o,s,a)=>{t==="class"?Dl(e,r,u):t==="style"?Tl(e,n,r):An(t)?lr(t)||jl(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zl(e,t,r,u))?$l(e,t,r,i,o,s,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Pl(e,t,r,u))};function zl(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Ki.test(t)&&ue(n)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ki.test(t)&&Ae(n)?!1:t in e}const Gl={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):cn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),cn(e,!0),r.enter(e)):r.leave(e,()=>{cn(e,!1)}):cn(e,t))},beforeUnmount(e,{value:t}){cn(e,t)}};function cn(e,t){e.style.display=t?e._vod:"none"}const ql=Te({patchProp:Hl},Sl);let Qi;function Kl(){return Qi||(Qi=ul(ql))}const Ql=(...e)=>{const t=Kl().createApp(...e),{mount:n}=t;return t.mount=r=>{const u=Jl(r);if(!u)return;const i=t._component;!ue(i)&&!i.render&&!i.template&&(i.template=u.innerHTML),u.innerHTML="";const o=n(u,!1,u instanceof SVGElement);return u instanceof Element&&(u.removeAttribute("v-cloak"),u.setAttribute("data-v-app","")),o},t};function Jl(e){return Ae(e)?document.querySelector(e):e}var Lt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Vl(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function Yl(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Ji=Yl;function Xl(e){return e}var Vi=Xl,Zl=Ji,Yi=Math.max;function ec(e,t,n){return t=Yi(t===void 0?e.length-1:t,0),function(){for(var r=arguments,u=-1,i=Yi(r.length-t,0),o=Array(i);++u<i;)o[u]=r[t+u];u=-1;for(var s=Array(t+1);++u<t;)s[u]=r[u];return s[t]=n(o),Zl(e,this,s)}}var tc=ec;function nc(e){return function(){return e}}var rc=nc,uc=typeof Lt=="object"&&Lt&&Lt.Object===Object&&Lt,Xi=uc,ic=Xi,oc=typeof self=="object"&&self&&self.Object===Object&&self,sc=ic||oc||Function("return this")(),Mt=sc,ac=Mt,lc=ac.Symbol,Yr=lc,Zi=Yr,eo=Object.prototype,cc=eo.hasOwnProperty,fc=eo.toString,fn=Zi?Zi.toStringTag:void 0;function dc(e){var t=cc.call(e,fn),n=e[fn];try{e[fn]=void 0;var r=!0}catch{}var u=fc.call(e);return r&&(t?e[fn]=n:delete e[fn]),u}var hc=dc,pc=Object.prototype,gc=pc.toString;function mc(e){return gc.call(e)}var vc=mc,to=Yr,yc=hc,Ec=vc,bc="[object Null]",wc="[object Undefined]",no=to?to.toStringTag:void 0;function Ac(e){return e==null?e===void 0?wc:bc:no&&no in Object(e)?yc(e):Ec(e)}var dn=Ac;function Fc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ft=Fc,Cc=dn,Bc=ft,xc="[object AsyncFunction]",_c="[object Function]",Sc="[object GeneratorFunction]",Dc="[object Proxy]";function Tc(e){if(!Bc(e))return!1;var t=Cc(e);return t==_c||t==Sc||t==xc||t==Dc}var Xr=Tc,Oc=Mt,Pc=Oc["__core-js_shared__"],$c=Pc,Zr=$c,ro=function(){var e=/[^.]+$/.exec(Zr&&Zr.keys&&Zr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ic(e){return!!ro&&ro in e}var kc=Ic,Rc=Function.prototype,Lc=Rc.toString;function Mc(e){if(e!=null){try{return Lc.call(e)}catch{}try{return e+""}catch{}}return""}var jc=Mc,Nc=Xr,Uc=kc,Wc=ft,Hc=jc,zc=/[\\^$.*+?()[\]{}|]/g,Gc=/^\[object .+?Constructor\]$/,qc=Function.prototype,Kc=Object.prototype,Qc=qc.toString,Jc=Kc.hasOwnProperty,Vc=RegExp("^"+Qc.call(Jc).replace(zc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Yc(e){if(!Wc(e)||Uc(e))return!1;var t=Nc(e)?Vc:Gc;return t.test(Hc(e))}var Xc=Yc;function Zc(e,t){return e==null?void 0:e[t]}var ef=Zc,tf=Xc,nf=ef;function rf(e,t){var n=nf(e,t);return tf(n)?n:void 0}var eu=rf,uf=eu,of=function(){try{var e=uf(Object,"defineProperty");return e({},"",{}),e}catch{}}(),uo=of,sf=rc,io=uo,af=Vi,lf=io?function(e,t){return io(e,"toString",{configurable:!0,enumerable:!1,value:sf(t),writable:!0})}:af,cf=lf,ff=800,df=16,hf=Date.now;function pf(e){var t=0,n=0;return function(){var r=hf(),u=df-(r-n);if(n=r,u>0){if(++t>=ff)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var gf=pf,mf=cf,vf=gf,yf=vf(mf),Ef=yf,bf=Vi,wf=tc,Af=Ef;function Ff(e,t){return Af(wf(e,t,bf),e+"")}var tu=Ff;function Cf(){this.__data__=[],this.size=0}var Bf=Cf;function xf(e,t){return e===t||e!==e&&t!==t}var hn=xf,_f=hn;function Sf(e,t){for(var n=e.length;n--;)if(_f(e[n][0],t))return n;return-1}var zn=Sf,Df=zn,Tf=Array.prototype,Of=Tf.splice;function Pf(e){var t=this.__data__,n=Df(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Of.call(t,n,1),--this.size,!0}var $f=Pf,If=zn;function kf(e){var t=this.__data__,n=If(t,e);return n<0?void 0:t[n][1]}var Rf=kf,Lf=zn;function Mf(e){return Lf(this.__data__,e)>-1}var jf=Mf,Nf=zn;function Uf(e,t){var n=this.__data__,r=Nf(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Wf=Uf,Hf=Bf,zf=$f,Gf=Rf,qf=jf,Kf=Wf;function jt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}jt.prototype.clear=Hf,jt.prototype.delete=zf,jt.prototype.get=Gf,jt.prototype.has=qf,jt.prototype.set=Kf;var Gn=jt,Qf=Gn;function Jf(){this.__data__=new Qf,this.size=0}var Vf=Jf;function Yf(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var Xf=Yf;function Zf(e){return this.__data__.get(e)}var ed=Zf;function td(e){return this.__data__.has(e)}var nd=td,rd=eu,ud=Mt,id=rd(ud,"Map"),oo=id,od=eu,sd=od(Object,"create"),qn=sd,so=qn;function ad(){this.__data__=so?so(null):{},this.size=0}var ld=ad;function cd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fd=cd,dd=qn,hd="__lodash_hash_undefined__",pd=Object.prototype,gd=pd.hasOwnProperty;function md(e){var t=this.__data__;if(dd){var n=t[e];return n===hd?void 0:n}return gd.call(t,e)?t[e]:void 0}var vd=md,yd=qn,Ed=Object.prototype,bd=Ed.hasOwnProperty;function wd(e){var t=this.__data__;return yd?t[e]!==void 0:bd.call(t,e)}var Ad=wd,Fd=qn,Cd="__lodash_hash_undefined__";function Bd(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Fd&&t===void 0?Cd:t,this}var xd=Bd,_d=ld,Sd=fd,Dd=vd,Td=Ad,Od=xd;function Nt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Nt.prototype.clear=_d,Nt.prototype.delete=Sd,Nt.prototype.get=Dd,Nt.prototype.has=Td,Nt.prototype.set=Od;var Pd=Nt,ao=Pd,$d=Gn,Id=oo;function kd(){this.size=0,this.__data__={hash:new ao,map:new(Id||$d),string:new ao}}var Rd=kd;function Ld(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Md=Ld,jd=Md;function Nd(e,t){var n=e.__data__;return jd(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Kn=Nd,Ud=Kn;function Wd(e){var t=Ud(this,e).delete(e);return this.size-=t?1:0,t}var Hd=Wd,zd=Kn;function Gd(e){return zd(this,e).get(e)}var qd=Gd,Kd=Kn;function Qd(e){return Kd(this,e).has(e)}var Jd=Qd,Vd=Kn;function Yd(e,t){var n=Vd(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Xd=Yd,Zd=Rd,eh=Hd,th=qd,nh=Jd,rh=Xd;function Ut(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ut.prototype.clear=Zd,Ut.prototype.delete=eh,Ut.prototype.get=th,Ut.prototype.has=nh,Ut.prototype.set=rh;var lo=Ut,uh=Gn,ih=oo,oh=lo,sh=200;function ah(e,t){var n=this.__data__;if(n instanceof uh){var r=n.__data__;if(!ih||r.length<sh-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new oh(r)}return n.set(e,t),this.size=n.size,this}var lh=ah,ch=Gn,fh=Vf,dh=Xf,hh=ed,ph=nd,gh=lh;function Wt(e){var t=this.__data__=new ch(e);this.size=t.size}Wt.prototype.clear=fh,Wt.prototype.delete=dh,Wt.prototype.get=hh,Wt.prototype.has=ph,Wt.prototype.set=gh;var mh=Wt,co=uo;function vh(e,t,n){t=="__proto__"&&co?co(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var nu=vh,yh=nu,Eh=hn;function bh(e,t,n){(n!==void 0&&!Eh(e[t],n)||n===void 0&&!(t in e))&&yh(e,t,n)}var fo=bh;function wh(e){return function(t,n,r){for(var u=-1,i=Object(t),o=r(t),s=o.length;s--;){var a=o[e?s:++u];if(n(i[a],a,i)===!1)break}return t}}var Ah=wh,Fh=Ah,Ch=Fh(),Bh=Ch,ru={exports:{}};(function(e,t){var n=Mt,r=t&&!t.nodeType&&t,u=r&&!0&&e&&!e.nodeType&&e,i=u&&u.exports===r,o=i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function a(l,c){if(c)return l.slice();var f=l.length,p=s?s(f):new l.constructor(f);return l.copy(p),p}e.exports=a})(ru,ru.exports);var xh=Mt,_h=xh.Uint8Array,Sh=_h,ho=Sh;function Dh(e){var t=new e.constructor(e.byteLength);return new ho(t).set(new ho(e)),t}var Th=Dh,Oh=Th;function Ph(e,t){var n=t?Oh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var $h=Ph;function Ih(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var kh=Ih,Rh=ft,po=Object.create,Lh=function(){function e(){}return function(t){if(!Rh(t))return{};if(po)return po(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Mh=Lh;function jh(e,t){return function(n){return e(t(n))}}var Nh=jh,Uh=Nh,Wh=Uh(Object.getPrototypeOf,Object),go=Wh,Hh=Object.prototype;function zh(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Hh;return e===n}var mo=zh,Gh=Mh,qh=go,Kh=mo;function Qh(e){return typeof e.constructor=="function"&&!Kh(e)?Gh(qh(e)):{}}var Jh=Qh;function Vh(e){return e!=null&&typeof e=="object"}var Ht=Vh,Yh=dn,Xh=Ht,Zh="[object Arguments]";function ep(e){return Xh(e)&&Yh(e)==Zh}var tp=ep,vo=tp,np=Ht,yo=Object.prototype,rp=yo.hasOwnProperty,up=yo.propertyIsEnumerable,ip=vo(function(){return arguments}())?vo:function(e){return np(e)&&rp.call(e,"callee")&&!up.call(e,"callee")},Eo=ip,op=Array.isArray,pn=op,sp=9007199254740991;function ap(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=sp}var bo=ap,lp=Xr,cp=bo;function fp(e){return e!=null&&cp(e.length)&&!lp(e)}var uu=fp,dp=uu,hp=Ht;function pp(e){return hp(e)&&dp(e)}var gp=pp,Qn={exports:{}};function mp(){return!1}var vp=mp;(function(e,t){var n=Mt,r=vp,u=t&&!t.nodeType&&t,i=u&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===u,s=o?n.Buffer:void 0,a=s?s.isBuffer:void 0,l=a||r;e.exports=l})(Qn,Qn.exports);var yp=dn,Ep=go,bp=Ht,wp="[object Object]",Ap=Function.prototype,Fp=Object.prototype,wo=Ap.toString,Cp=Fp.hasOwnProperty,Bp=wo.call(Object);function xp(e){if(!bp(e)||yp(e)!=wp)return!1;var t=Ep(e);if(t===null)return!0;var n=Cp.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&wo.call(n)==Bp}var _p=xp,Sp=dn,Dp=bo,Tp=Ht,Op="[object Arguments]",Pp="[object Array]",$p="[object Boolean]",Ip="[object Date]",kp="[object Error]",Rp="[object Function]",Lp="[object Map]",Mp="[object Number]",jp="[object Object]",Np="[object RegExp]",Up="[object Set]",Wp="[object String]",Hp="[object WeakMap]",zp="[object ArrayBuffer]",Gp="[object DataView]",qp="[object Float32Array]",Kp="[object Float64Array]",Qp="[object Int8Array]",Jp="[object Int16Array]",Vp="[object Int32Array]",Yp="[object Uint8Array]",Xp="[object Uint8ClampedArray]",Zp="[object Uint16Array]",eg="[object Uint32Array]",pe={};pe[qp]=pe[Kp]=pe[Qp]=pe[Jp]=pe[Vp]=pe[Yp]=pe[Xp]=pe[Zp]=pe[eg]=!0,pe[Op]=pe[Pp]=pe[zp]=pe[$p]=pe[Gp]=pe[Ip]=pe[kp]=pe[Rp]=pe[Lp]=pe[Mp]=pe[jp]=pe[Np]=pe[Up]=pe[Wp]=pe[Hp]=!1;function tg(e){return Tp(e)&&Dp(e.length)&&!!pe[Sp(e)]}var ng=tg;function rg(e){return function(t){return e(t)}}var ug=rg,iu={exports:{}};(function(e,t){var n=Xi,r=t&&!t.nodeType&&t,u=r&&!0&&e&&!e.nodeType&&e,i=u&&u.exports===r,o=i&&n.process,s=function(){try{var a=u&&u.require&&u.require("util").types;return a||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(iu,iu.exports);var ig=ng,og=ug,Ao=iu.exports,Fo=Ao&&Ao.isTypedArray,sg=Fo?og(Fo):ig,Co=sg;function ag(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Bo=ag,lg=nu,cg=hn,fg=Object.prototype,dg=fg.hasOwnProperty;function hg(e,t,n){var r=e[t];(!(dg.call(e,t)&&cg(r,n))||n===void 0&&!(t in e))&&lg(e,t,n)}var pg=hg,gg=pg,mg=nu;function vg(e,t,n,r){var u=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],a=r?r(n[s],e[s],s,n,e):void 0;a===void 0&&(a=e[s]),u?mg(n,s,a):gg(n,s,a)}return n}var yg=vg;function Eg(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var bg=Eg,wg=9007199254740991,Ag=/^(?:0|[1-9]\d*)$/;function Fg(e,t){var n=typeof e;return t=t==null?wg:t,!!t&&(n=="number"||n!="symbol"&&Ag.test(e))&&e>-1&&e%1==0&&e<t}var xo=Fg,Cg=bg,Bg=Eo,xg=pn,_g=Qn.exports,Sg=xo,Dg=Co,Tg=Object.prototype,Og=Tg.hasOwnProperty;function Pg(e,t){var n=xg(e),r=!n&&Bg(e),u=!n&&!r&&_g(e),i=!n&&!r&&!u&&Dg(e),o=n||r||u||i,s=o?Cg(e.length,String):[],a=s.length;for(var l in e)(t||Og.call(e,l))&&!(o&&(l=="length"||u&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Sg(l,a)))&&s.push(l);return s}var $g=Pg;function Ig(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var kg=Ig,Rg=ft,Lg=mo,Mg=kg,jg=Object.prototype,Ng=jg.hasOwnProperty;function Ug(e){if(!Rg(e))return Mg(e);var t=Lg(e),n=[];for(var r in e)r=="constructor"&&(t||!Ng.call(e,r))||n.push(r);return n}var Wg=Ug,Hg=$g,zg=Wg,Gg=uu;function qg(e){return Gg(e)?Hg(e,!0):zg(e)}var ou=qg,Kg=yg,Qg=ou;function Jg(e){return Kg(e,Qg(e))}var Vg=Jg,_o=fo,Yg=ru.exports,Xg=$h,Zg=kh,e0=Jh,So=Eo,Do=pn,t0=gp,n0=Qn.exports,r0=Xr,u0=ft,i0=_p,o0=Co,To=Bo,s0=Vg;function a0(e,t,n,r,u,i,o){var s=To(e,n),a=To(t,n),l=o.get(a);if(l){_o(e,n,l);return}var c=i?i(s,a,n+"",e,t,o):void 0,f=c===void 0;if(f){var p=Do(a),m=!p&&n0(a),F=!p&&!m&&o0(a);c=a,p||m||F?Do(s)?c=s:t0(s)?c=Zg(s):m?(f=!1,c=Yg(a,!0)):F?(f=!1,c=Xg(a,!0)):c=[]:i0(a)||So(a)?(c=s,So(s)?c=s0(s):(!u0(s)||r0(s))&&(c=e0(a))):f=!1}f&&(o.set(a,c),u(c,a,r,i,o),o.delete(a)),_o(e,n,c)}var l0=a0,c0=mh,f0=fo,d0=Bh,h0=l0,p0=ft,g0=ou,m0=Bo;function Oo(e,t,n,r,u){e!==t&&d0(t,function(i,o){if(u||(u=new c0),p0(i))h0(e,t,o,n,Oo,r,u);else{var s=r?r(m0(e,o),i,o+"",e,t,u):void 0;s===void 0&&(s=i),f0(e,o,s)}},g0)}var Po=Oo,v0=Po,$o=ft;function Io(e,t,n,r,u,i){return $o(e)&&$o(t)&&(i.set(t,e),v0(e,t,void 0,Io,i),i.delete(t)),e}var y0=Io,E0=hn,b0=uu,w0=xo,A0=ft;function F0(e,t,n){if(!A0(n))return!1;var r=typeof t;return(r=="number"?b0(n)&&w0(t,n.length):r=="string"&&t in n)?E0(n[t],e):!1}var ko=F0,C0=tu,B0=ko;function x0(e){return C0(function(t,n){var r=-1,u=n.length,i=u>1?n[u-1]:void 0,o=u>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(u--,i):void 0,o&&B0(n[0],n[1],o)&&(i=u<3?void 0:i,u=1),t=Object(t);++r<u;){var s=n[r];s&&e(t,s,r,i)}return t})}var _0=x0,S0=Po,D0=_0,T0=D0(function(e,t,n,r){S0(e,t,n,r)}),O0=T0,P0=Ji,$0=tu,I0=y0,k0=O0,R0=$0(function(e){return e.push(void 0,I0),P0(k0,void 0,e)}),Ro=R0;const L0={zhs:wt(),cx:wt(),icve:wt(),answererWrappers:[]};function wt(){return{video:{watchTime:0,playbackRate:1,restudy:!1,volume:0,upload:"close"},work:{period:3,timeout:30,retry:1,stopWhenError:!1,upload:"save",waitForCheck:5},exam:{period:3,timeout:30,retry:1,stopWhenError:!1,upload:"save",waitForCheck:5}}}v.store={};function Lo(e){v.store=e}function M0(){const e=Ro(tr()?GM_getValue("store",{}):{},{logs:[],workResults:[],hide:!1,position:{x:0,y:0}}),t=Jt(Ie({setting:Ro(e.setting,L0)},e)),n=Jt({localStorage:t,VERSION:"3.7.3",setting:t.setting,currentMedia:null,videojs:null,workResults:[],isRecognizing:!1});return It(t,()=>{GM_setValue("store",JSON.parse(JSON.stringify(t)))}),n}function je(e,t=window.document){const n=Object.create({});return Reflect.ownKeys(e).forEach(r=>{Reflect.set(n,r,t.querySelector(e[r.toString()]))}),n}function Jn(e,t=window.document){const n=Object.create({});return Reflect.ownKeys(e).forEach(r=>{Reflect.set(n,r,Array.from(t.querySelectorAll(e[r.toString()])))}),n}function Vn(e,t,n,r=document){let u=0,i=0,o=0,s=0;const a=typeof e=="string"?r.querySelector(e):e,l=typeof t=="string"?r.querySelector(t):t;a?a.onmousedown=c:l.onmousedown=c;function c(m){m=m||window.event,m.preventDefault(),o=m.clientX,s=m.clientY,document.onmouseup=p,document.onmousemove=f}function f(m){m=m||window.event,m.preventDefault(),u=o-m.clientX,i=s-m.clientY,o=m.clientX,s=m.clientY,l.style.top=l.offsetTop-i+"px",l.style.left=l.offsetLeft-u+"px",n(l.offsetLeft-u,l.offsetTop-i),l.style.bottom="unset"}function p(m){document.onmouseup=null,document.onmousemove=null}}function Mo(e){var r,u;let t=Array.from(e.querySelectorAll("iframe"));const n=[];for(;t.length;){const i=t.shift();try{if(i&&((r=i==null?void 0:i.contentWindow)==null?void 0:r.document)){n.push(i);const o=(u=i==null?void 0:i.contentWindow)==null?void 0:u.document.querySelectorAll("iframe");t=t.concat(Array.from(o||[]))}}catch(o){console.log(o.message),console.log({frame:i})}}return n}function Yn(e,t=document){function n(){t.readyState==="complete"&&(e(),t.removeEventListener("readystatechange",n))}n(),t.addEventListener("readystatechange",n)}function su(e,t=document){function n(){t.readyState==="interactive"&&(t.removeEventListener("readystatechange",n),e())}n(),t.addEventListener("readystatechange",n)}function Xn(e){const{panel:t}=je({panel:"ocs-panel"});if(t){let n=function(){t&&u&&i&&o&&s&&a&&(t.classList.add("hide"),i.classList.add("hide"),o.classList.add("hide"),s.classList.add("hide"),u.style.display="block",a.innerHTML=a.innerHTML+l.join("<br>"),v.store.localStorage.hide=!0)},r=function(){t&&u&&i&&o&&s&&a&&(t.classList.remove("hide"),i.classList.remove("hide"),o.classList.remove("hide"),s.classList.remove("hide"),u.style.display="none",a.innerHTML=a.innerHTML.replace(l.join("<br>"),""),v.store.localStorage.hide=!1)};const{icon:u,header:i,container:o,footer:s,tip:a}=je({icon:".ocs-icon",tip:".ocs-tip",header:".ocs-panel-header",container:".ocs-panel-container",footer:".ocs-panel-footer"},t),l=["","\u8FDE\u7EED\u6309\u4E0Bocs\u91CD\u7F6E\u4F4D\u7F6E","\u53CC\u51FB\u5C55\u5F00"];e!==void 0?e?r():n():t.classList.contains("hide")?r():n()}}var j0={compareTwoStrings:jo,findBestMatch:N0};function jo(e,t){if(e=e.replace(/\s+/g,""),t=t.replace(/\s+/g,""),e===t)return 1;if(e.length<2||t.length<2)return 0;let n=new Map;for(let u=0;u<e.length-1;u++){const i=e.substring(u,u+2),o=n.has(i)?n.get(i)+1:1;n.set(i,o)}let r=0;for(let u=0;u<t.length-1;u++){const i=t.substring(u,u+2),o=n.has(i)?n.get(i):0;o>0&&(n.set(i,o-1),r++)}return 2*r/(e.length+t.length-2)}function N0(e,t){if(!U0(e,t))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");const n=[];let r=0;for(let i=0;i<t.length;i++){const o=t[i],s=jo(e,o);n.push({target:o,rating:s}),s>n[r].rating&&(r=i)}const u=n[r];return{ratings:n,bestMatch:u,bestMatchIndex:r}}function U0(e,t){return!(typeof e!="string"||!Array.isArray(t)||!t.length||t.find(function(n){return typeof n!="string"}))}function au(e,...t){return e.trim().toLocaleLowerCase().replace(RegExp(`[^\\u4e00-\\u9fa5A-Za-z0-9${t.join("")}]*`,"g"),"")}function lu(e,t){return e=e.map(Zn),t=t.map(Zn),e.length!==0?t.map(r=>j0.findBestMatch(r,e).bestMatch):t.map(r=>({rating:0,target:""}))}function Zn(e){return(e==null?void 0:e.trim().replace(/[A-Z]{1}[^A-Za-z0-9\u4e00-\u9fa5]+([A-Za-z0-9\u4e00-\u9fa5]+)/,"$1"))||""}class Se{constructor(t){this._text=t}static nowrap(t){return(t==null?void 0:t.replace(/\n/g,""))||""}nowrap(){return this._text=Se.nowrap(this._text),this}static noSpecialChar(t){return(t==null?void 0:t.replace(/[^\w\s]/gi,""))||""}noSpecialChar(){return this._text=Se.noSpecialChar(this._text),this}static max(t,n){return t.length>n?t.substring(0,n)+"...":t}max(t){return this._text=Se.max(this._text,t),this}static hide(t,n,r,u="*"){return t.substring(0,n)+t.substring(n,r).replace(/./g,u)+t.substring(r)}hide(t,n,r="*"){return this._text=Se.hide(this._text,t,n,r),this}static of(t){return new Se(t)}toString(){return this._text}}async function ae(e){return new Promise(t=>{setTimeout(t,e)})}function No(e,t=window.location.href){return new RegExp(e.replace(/([.?+^$[\]\\(){}|/-])/g,"\\$1").replace(/\*/g,".*")).test(t)}function cu(e,t=window.location.href){return(Array.isArray(e)?e:[e]).some(r=>typeof r=="string"?No(r):r.test(t))}function Uo(e){const t=[];for(const n of e)for(const r of n.routes||[])cu(r.url)&&t.push(r);return t}function er(e){let t=[];for(const n of e)for(const r of n.panels||[])cu(r.url)&&(t.push(r),r.children&&(t=t.concat(r.children)));return t}function fu(e,t){const n=e[t];return function(){const r=n.apply(this,arguments),u=new Event(t.toString());return u.arguments=arguments,window.dispatchEvent(u),r}}function du(...e){return e.map(t=>typeof t=="number"?t:void 0).find(t=>t!==void 0)}function tr(){return typeof window!="undefined"&&typeof window.document!="undefined"}function hu(){return new Promise(e=>{const t=setInterval(()=>{v.store.isRecognizing===!1&&(clearInterval(t),e())},100)})}function Wo(e){const t=top==null?void 0:top.document.querySelector("ocs-panel");t&&((e===void 0?t.classList.contains("hide"):e)?(t.style.top="unset",t.style.bottom="10%",t.style.left="5%"):(t.style.top="20%",t.style.bottom="unset",t.style.left="50%"))}var W0=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",domSearch:je,domSearchAll:Jn,dragElement:Vn,searchIFrame:Mo,onComplete:Yn,onInteractive:su,togglePanel:Xn,clearString:au,answerSimilar:lu,removeRedundant:Zn,StringUtils:Se,sleep:ae,urlGlob:No,urlMatch:cu,getCurrentRoutes:Uo,getCurrentPanels:er,addFunctionEventListener:fu,getNumber:du,isInBrowser:tr,waitForRecognize:hu,resetPanelPosition:Wo});const H0=ze({setup(){const e=ln(()=>v.store.workResults),t=ln(()=>e.value.length>0),n=xr(void 0),r=ln(()=>{var i,o;return(o=(i=n.value)==null?void 0:i.ctx)==null?void 0:o.searchResults}),u=ln(()=>{var i,o,s;return Se.of(((s=(o=(i=n.value)==null?void 0:i.ctx)==null?void 0:o.elements.title)==null?void 0:s[0].innerText)||"").nowrap().toString()});return Rr(()=>{v.store.workResults=[],document.addEventListener("click",()=>{n.value=void 0})}),()=>{var i,o,s,a,l,c,f,p;return h("div",{id:"search-results"},[t.value?h("div",null,[n.value?h("div",{class:"search-result-modal",onClick:m=>m.stopPropagation()},[h("div",null,[h("span",{style:{float:"right",cursor:"pointer"},onClick:()=>n.value=void 0},[U("\u274C")]),u.value]),h("hr",null,null),h("div",{class:"search-results-error",style:{color:"red",padding:"0px 0px 0px 8px"}},[h("span",null,[((i=n.value)==null?void 0:i.error)?(o=n.value)==null?void 0:o.error.message:((a=(s=n.value)==null?void 0:s.result)==null?void 0:a.finish)===!1?"\u672A\u5B8C\u6210, \u53EF\u80FD\u662F\u6CA1\u6709\u5339\u914D\u7684\u9009\u9879":((f=(c=(l=n.value)==null?void 0:l.ctx)==null?void 0:c.searchResults)==null?void 0:f.length)===0?"\u672A\u641C\u7D22\u5230\u7B54\u6848":""])]),(p=r.value)==null?void 0:p.map(m=>h("div",{class:"search-results-container"},[h("span",{class:"search-results-title"},[h("span",null,[U("\u9898\u5E93:")]),h("a",{href:m.homepage?m.homepage:"#",target:"_blank"},[m.name]),U("\u4E00\u5171\u6709 "),m.answers.length,U(" \u4E2A\u7B54\u6848")]),h("div",{style:{paddingLeft:"12px"}},[m.answers.map(F=>h("div",{class:"search-results-item"},[h("div",{title:F.question},[h("span",null,[h("span",{style:"color: #a7a7a7"},[U("\u9898\u76EE: ")]),Se.of(F.question).nowrap().max(50).toString()])]),h("div",{title:F.answer},[h("span",null,[h("span",{style:"color: #a7a7a7"},[U("\u56DE\u7B54: ")]),Se.of(F.answer).nowrap().max(50).toString()])])]))])]))]):h("div",null,null),h("div",{style:"text-align:center; padding-bottom: 4px"},[h("span",null,[U("\u{1F4E2} \u9F20\u6807\u79FB\u5230\u4EFB\u610F\u9898\u76EE\uFF0C\u53EF\u4EE5\u67E5\u770B\u641C\u7D22\u8BE6\u60C5 \u{1F4E2}")]),h("br",null,null),h("span",null,[U("\u2757\u5982\u679C\u9898\u76EE\u6587\u5B57\u53D8\u5927\uFF0C\u5219\u662F\u6B63\u5728\u5BF9\u6587\u672C\u8FDB\u884C\u6587\u5B57\u8BC6\u522B\uFF0C\u5C5E\u4E8E\u6B63\u5E38\u60C5\u51B5\u2757")])]),h("hr",null,null),h("div",null,[e.value.map((m,F)=>{var w,A,j,I,z;const $=(A=(w=m.ctx)==null?void 0:w.elements.title)==null?void 0:A[0];return h("div",{class:"search-results-title",onMouseenter:()=>n.value=m,style:{color:((j=m.result)==null?void 0:j.finish)?"":"red"},title:(z=(I=m.ctx)==null?void 0:I.elements.title)==null?void 0:z[0].innerText},[h("span",{style:{borderRight:"1px solid #cbcbcb",marginRight:"2px",paddingRight:"2px",color:"darkgrey"}},[F+1]),h("span",null,[Se.of(($==null?void 0:$.innerText)||"").nowrap().max(40).toString()])])})])]):h("div",{class:"search-results-empty",style:{textAlign:"center"}},[U("\u6682\u65E0\u641C\u7D22\u7ED3\u679C"),h("br",null,null),U("\u5982\u679C\u5F53\u524D\u4E3A\u5B66\u4E60\u9875\u9762\uFF0C\u8BF7\u7B49\u5F85\u89C6\u9891\uFF0Cppt\u7B49\u5B8C\u6210\u540E\u624D\u4F1A\u5F00\u59CB\u81EA\u52A8\u7B54\u9898")])])}}}),z0=ze({setup(){Rr(()=>{const{terminal:e}=je({terminal:".terminal"});It(()=>v.store.localStorage.logs,()=>Tr(()=>t())),Tr(()=>t());function t(){(e==null?void 0:e.scrollHeight)&&(e==null||e.scrollTo({behavior:"auto",top:e.scrollHeight}))}})},render(){return h("div",{class:"terminal"},[v.store.localStorage.logs.map(e=>h("div",null,[h("span",{style:{color:"gray"}},[new Date(e.time).toLocaleTimeString("zh-CN")]),h("span",null,[U(" ")]),h(al("level"),{class:e.level},{default:()=>[e.extra]}),h("span",null,[U(" ")]),h("span",{innerHTML:e.text},null)]))])}}),Ce=ze({props:{title:{default:"",type:String},type:{default:"dark",type:String}},data(){return{show:!1}},render(){var e,t,n;return h("div",{onMouseenter:()=>this.show=!0,onMouseleave:()=>this.show=!1,style:"width: 100%"},[h("span",{style:{display:this.show?"block":"none"},class:"tooltip "+this.type},[this.$slots.title?this.$slots.title():h("span",{innerHTML:(e=this.$props.title)==null?void 0:e.replace(/\n/g,"<br/>")},null)]),h("div",{style:"width: 100%"},[(n=(t=this.$slots).default)==null?void 0:n.call(t)])])}});function Be(...e){return ze({render(){return h("div",null,[h("ul",null,[e.map(t=>h("li",null,[t]))])])}})}function gn(e,t,n){let r=(t==null?void 0:t.options)?t.options:[{label:"\u5173\u95ED\u81EA\u52A8\u7B54\u9898",value:"close"},{label:"\u5B8C\u6210\u540E\u81EA\u52A8\u4FDD\u5B58",value:"save"},{label:"\u5B8C\u6210\u540E\u4E0D\u505A\u4EFB\u4F55\u52A8\u4F5C",value:"nomove"},...[10,20,30,40,50,60,70,80,90].map(u=>({label:`\u67E5\u5230\u5927\u4E8E${u}%\u7684\u9898\u76EE\u5219\u81EA\u52A8\u63D0\u4EA4`,value:u,attrs:{title:`\u4F8B\u5982: 100\u9898, \u641C\u7D22\u5230\u5927\u4E8E ${u} \u7684\u9898, \u5219\u4F1A\u81EA\u52A8\u63D0\u4EA4\u7B54\u6848\u3002`}})),{label:"\u6BCF\u4E2A\u9898\u76EE\u90FD\u67E5\u5230\u7B54\u6848\u624D\u81EA\u52A8\u63D0\u4EA4",value:100}];return r=r.map(u=>(t.selected=(t==null?void 0:t.selected)||"close",(u.value===t.selected||String(u.value)===t.selected)&&(u.selected=!0),u)),h(Pe,null,[h("label",null,[e]),h("div",null,[h("select",{title:"\u7B54\u9898\u8BBE\u7F6E",onChange:n},[r.map(u=>h("option",{value:u.value,selected:u.selected},[u.label]))])]),h("label",null,[U("\u9898\u5E93\u914D\u7F6E")]),h("div",null,[h(Ce,{title:"\u8BF7\u590D\u5236\u7C98\u8D34\u9898\u5E93\u914D\u7F6E, \u70B9\u51FB\u53F3\u4FA7\u95EE\u53F7\u67E5\u770B\u6559\u7A0B "},{default:()=>[h("input",{type:"text",placeholder:"\u70B9\u51FB\u53F3\u4FA7\u95EE\u53F7\u67E5\u770B\u6559\u7A0B => ",value:v.store.setting.answererWrappers.length===0?"":JSON.stringify(v.store.setting.answererWrappers),onPaste:u=>{var i;v.store.setting.answererWrappers=G0(((i=u.clipboardData)==null?void 0:i.getData("text"))||"")}},null)]}),h("span",{style:{color:v.store.setting.answererWrappers.length?"green":"red"}},[v.store.setting.answererWrappers.length?h(Ce,null,{default:()=>[h("span",{class:"pointer"},[U("\u2705")])],title:()=>h(Pe,null,[h("span",null,[U("\u89E3\u6790\u6210\u529F, \u4E00\u5171\u6709 "),v.store.setting.answererWrappers.length,U(" \u4E2A\u9898\u5E93")]),h("ol",null,[v.store.setting.answererWrappers.map(u=>h("li",null,[h("details",null,[h("summary",null,[u.name]),h("ul",null,[h("li",null,[U("\u4E3B\u9875:"),h("a",{href:u.homepage?u.homepage:"#"},[u.homepage])]),h("li",null,[U("\u63A5\u53E3: "),u.url]),h("li",null,[U("\u8BF7\u6C42\u65B9\u5F0F: "),u.method]),h("li",null,[U("\u6570\u636E\u7C7B\u578B: "),u.contentType]),h("li",null,[U("\u8BF7\u6C42\u6570\u636E:"),h("ul",{style:{paddingLeft:"12px"}},[Reflect.ownKeys(u.data||{}).map(i=>{var o;return h("li",null,[i.toString(),U(" ="),q0(((o=u.data)==null?void 0:o[i.toString()])||"")])})])]),h("li",null,[U("\u5904\u7406\u65B9\u6CD5: "),u.handler])])])]))])])}):h(Ce,{title:"\u9898\u5E93\u6CA1\u6709\u914D\u7F6E, \u81EA\u52A8\u7B54\u9898\u529F\u80FD\u5C06\u4E0D\u80FD\u4F7F\u7528 !"},{default:()=>[h("span",{class:"pointer"},[U("\u274C")])]})]),h("span",null,[h(Ce,{title:"\u70B9\u51FB\u67E5\u770B\u9898\u5E93\u914D\u7F6E\u6559\u7A0B"},{default:()=>[h("span",{class:"pointer",onClick:()=>{window.open("https://enncy.github.io/online-course-script/answerer-wrappers")}},[U("\u2753")])]})])])])}function G0(e){try{const t=JSON.parse(e);return t&&Array.isArray(t)?t:[]}catch{return[]}}function q0(e){return/[0-9a-f]{8}[0-9a-f]{4}[0-9a-f]{4}[0-9a-f]{4}[0-9a-f]{12}/.test(e)||/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(e)?Se.of(e).hide(4,e.length-4).toString():e}function dt(){return{name:"\u65E5\u5FD7",priority:-999,el:()=>z0}}function zt(){return{name:"\u641C\u9898\u7ED3\u679C",el:()=>H0}}function K0(e){return e}const nr=["*"],Q0={name:"\u9ED8\u8BA4\u811A\u672C",routes:[{name:"\u7981\u6B62\u5F39\u7A97\u811A\u672C",url:nr,start(){try{console.log("\u7981\u6B62\u5F39\u7A97\u811A\u672C\u542F\u52A8"),typeof unsafeWindow!="undefined"&&(unsafeWindow.alert=console.log),window.alert=self.alert=console.log}catch(e){console.error("\u7981\u6B62\u5F39\u7A97\u811A\u672C\u9519\u8BEF",e.message)}}},{name:"\u5F00\u542F\u9875\u9762\u53F3\u952E\u590D\u5236\u7C98\u8D34\u529F\u80FD",url:nr,start(){function e(){console.log("\u5F00\u542F\u9875\u9762\u53F3\u952E\u590D\u5236\u7C98\u8D34\u529F\u80FD");try{const t=document,n=document.body;t.onselectstart=t.oncopy=t.onpaste=t.onkeydown=t.oncontextmenu=()=>!0,n.onselectstart=n.oncopy=n.onpaste=n.onkeydown=n.oncontextmenu=()=>!0}catch(t){console.error("\u9875\u9762\u53F3\u952E\u590D\u5236\u7C98\u8D34\u529F\u80FD\u5F00\u542F\u5931\u8D25",t)}}su(()=>e()),Yn(()=>{e(),setTimeout(()=>e(),3e3)})}},{name:"OCS\u6837\u5F0F\u5207\u6362,\u4F4D\u7F6E\u5B9A\u4F4D\u811A\u672C",url:nr,onload(){const e=["o","c","s"];let t=[];onkeydown=n=>{e.includes(n.key)?(t.push(n.key),t.join("").includes(e.join(""))&&(Wo(),t=[])):t=[]}}}],panels:[{name:"OCS\u52A9\u624B",priority:100,default:!0,url:nr,el:()=>Be("\u63D0\u793A\uFF1A \u624B\u52A8\u70B9\u51FB\u8FDB\u5165\u89C6\u9891\uFF0C\u4F5C\u4E1A\uFF0C\u8003\u8BD5\u9875\u9762\uFF0C\u5373\u53EF\u81EA\u52A8\u8FD0\u884C","\u6CE8\u610F\uFF01 \u8BF7\u5C06\u6D4F\u89C8\u5668\u9875\u9762\u4FDD\u6301\u6700\u5927\u5316\uFF0C\u6216\u8005\u7F29\u5C0F\uFF0C\u4F46\u662F\u4E0D\u80FD\u6700\u5C0F\u5316\uFF0C\u53EF\u80FD\u5BFC\u81F4\u89C6\u9891\u64AD\u653E\u9519\u8BEF\uFF01","\u62D6\u52A8\u4E0A\u65B9\u6807\u9898\u680F\u53EF\u4EE5\u8FDB\u884C\u62D6\u62FD")}]},Ho=ze({setup(){const e=v.store.setting.cx.exam;return()=>h("div",{class:"ocs-setting-panel"},[h("div",{class:"ocs-setting-items"},[gn("\u81EA\u52A8\u7B54\u9898",{selected:"close",options:[{label:"\u8BF7\u81EA\u884C\u68C0\u67E5\u540E\u81EA\u884C\u70B9\u51FB\u63D0\u4EA4",value:"close"}]},t=>e.upload=t.target.value),h("label",null,[U("\u7B54\u9898\u95F4\u9694(\u79D2)")]),h("div",null,[h("input",{type:"number",value:e.period,min:"3",step:"1",onChange:t=>e.period=t.target.valueAsNumber,onInput:t=>e.period=t.target.valueAsNumber},null)]),h("label",null,[U("\u641C\u9898\u8BF7\u6C42\u8D85\u65F6\u65F6\u95F4(\u79D2)")]),h("div",null,[h(Ce,{title:"\u6BCF\u9053\u9898\u6700\u591A\u505An\u79D2, \u8D85\u8FC7\u5219\u8DF3\u8FC7\u6B64\u9898\u3002"},{default:()=>[h("input",{type:"number",value:e.timeout,min:"0",step:"1",onChange:t=>e.timeout=t.target.valueAsNumber,onInput:t=>e.timeout=t.target.valueAsNumber},null)]})]),h("label",null,[U("\u641C\u9898\u8D85\u65F6\u91CD\u8BD5\u6B21\u6570")]),h("div",null,[h("input",{type:"number",value:e.retry,min:"0",max:"2",step:"1",onChange:t=>e.retry=t.target.valueAsNumber,onInput:t=>e.retry=t.target.valueAsNumber},null)]),h("label",null,[U("\u7B54\u9898\u5B8C\u6210\u540E\u7B49\u5F85(\u79D2)")]),h("div",null,[h(Ce,{title:"\u81EA\u52A8\u7B54\u9898\u5B8C\u6210\u540E\u7684\u7B49\u5F85\u65F6\u95F4, \u53EF\u9002\u5F53\u5EF6\u957F\u65B9\u4FBF\u5BF9\u9898\u76EE\u68C0\u67E5\u6216\u8005\u4F7F\u7528\u7B2C\u4E09\u65B9\u5DE5\u5177\u7B54\u9898\u3002"},{default:()=>[h("input",{type:"number",value:e.waitForCheck,min:"5",step:"1",onChange:t=>e.waitForCheck=t.target.valueAsNumber,onInput:t=>e.waitForCheck=t.target.valueAsNumber},null)]})])])])}});var J0=tu,V0=hn,Y0=ko,X0=ou,zo=Object.prototype,Z0=zo.hasOwnProperty,em=J0(function(e,t){e=Object(e);var n=-1,r=t.length,u=r>2?t[2]:void 0;for(u&&Y0(t[0],t[1],u)&&(r=1);++n<r;)for(var i=t[n],o=X0(i),s=-1,a=o.length;++s<a;){var l=o[s],c=e[l];(c===void 0||V0(c,zo[l])&&!Z0.call(e,l))&&(e[l]=i[l])}return e}),Go=em;function tm(e){function t(n){let r=0;for(const u of e.elements.options||[])u.querySelector(n)!==null&&r++;return r}return t('[type="radio"]')===2?"judgement":t('[type="radio"]')>2?"single":t('[type="checkbox"]')>2?"multiple":t("textarea")>=1?"completion":void 0}function qo(e){if(e.length>8||!/[A-Z]/.test(e))return!1;const t={};let n=0;for(let r=0;r<e.length;r++){if(e.charCodeAt(r)<n)return!1;n=e.charCodeAt(r),t[n]=(t[n]||0)+1}for(const r in t)if(t[r]!==1)return!1;return!0}function nm(e){const t=["===","#","---","###","|"];for(const n of t)if(e.split(n).length>1)return e.split(n);return[e]}function rm(e){return{single(t,n,r){for(const s of t)for(const a of s.answers){const l=Se.nowrap(a.answer).trim();if(l.length===1&&qo(l)){const c=l.charCodeAt(0)-65;return r("single",n[c].innerText,n[c],e),{finish:!0,option:n[c]}}}const u=lu(t.map(s=>s.answers.map(a=>a.answer)).flat(),n.map(s=>s.innerText));let i=-1,o=0;return u.forEach((s,a)=>{s.rating>o&&(o=s.rating,i=a)}),i!==-1&&o>.6?(r("single",n[i].innerText,n[i],e),{finish:!0,ratings:u.map(s=>s.rating)}):{finish:!1}},multiple(t,n,r){const u=[],i=[];let o=0;for(const l of t.map(c=>c.answers.map(f=>f.answer))){u[o]=[],i[o]=[],n.forEach((c,f)=>{l.some(p=>p.includes(Zn(c.innerText)))&&(u[o][f]=c.innerText,i[o][f]=c)});for(const c of l){const f=Se.nowrap(c).trim();if(qo(f))for(let p=0;p<f.length;p++){const m=f.charCodeAt(p)-65;u[o][p]=n[m].innerText,i[o][p]=n[m]}}if(u[o].length===0){const c=lu(l,n.map(f=>f.innerText)).sort((f,p)=>p.rating-f.rating);c.some(f=>f.rating>.6)&&n.forEach((f,p)=>{c[p].rating>.6&&(u[o][p]=f.innerText,i[o][p]=f)})}o++}let s=0,a=-1;for(let l=0;l<i.length;l++){const c=u[l].filter(f=>f!==void 0).length;c>s&&(s=c,a=l)}return a===-1?{finish:!1}:(u[a]=u[a].filter(l=>l!==void 0),i[a]=i[a].filter(l=>l!==void 0),i[a].forEach((l,c)=>{setTimeout(()=>{r("multiple",u[a][c],i[a][c],e)},500*c)}),{finish:!0,targetOptions:i,targetAnswers:u})},judgement(t,n,r){for(const u of t.map(i=>i.answers.map(o=>o.answer))){let i=function(c,f){return f.some(p=>RegExp(au(p,"\u221A","\xD7")).test(au(c,"\u221A","\xD7")))};const o=["\u662F","\u5BF9","\u6B63\u786E","\u221A","\u5BF9\u7684","\u662F\u7684","\u6B63\u786E\u7684","true","yes","1"],s=["\u975E","\u5426","\u9519","\u9519\u8BEF","\xD7","X","\u9519\u7684","\u4E0D\u5BF9","\u4E0D\u6B63\u786E\u7684","\u4E0D\u6B63\u786E","\u4E0D\u662F","\u4E0D\u662F\u7684","false","no","0"],a=u.find(c=>i(c,o)),l=u.find(c=>i(c,s));if(a||l){let c;for(const f of n){const p=i(f.innerText,o),m=i(f.innerText,s);if(a&&p){c=f,r("judgement",a,f,e);break}if(l&&m){c=f,r("judgement",l,f,e);break}}return{finish:!0,option:c}}}return{finish:!1}},completion:function(t,n,r){for(const u of t.map(i=>i.answers.map(o=>o.answer))){let i=u;if(i.length===1&&(i=nm(i[0])),i.length!==0&&i.length===n.length)return n.forEach((o,s)=>{setTimeout(()=>{r("completion",i[s],o,e)},500*s)}),{finish:!0}}return{finish:!1}}}}class mn{constructor(t){this.opts=t}async doWork(){var o,s,a,l,c,f;const t=[];let n,r,u;const i=typeof this.opts.root=="string"?Array.from(document.querySelectorAll(this.opts.root)):this.opts.root;for(const p of i){const m=Date.now();n={finish:!1},u=void 0,r=void 0;try{const w=Jn(this.opts.elements,p);(s=(o=this.opts).onElementSearched)==null||s.call(o,w),this.currentContext={searchResults:[],root:p,elements:w},typeof this.opts.work=="object"&&(r=this.opts.work.type===void 0?tm(this.currentContext):typeof this.opts.work.type=="string"?this.opts.work.type:this.opts.work.type(this.currentContext));const A=await this.doAnswer(w,r);if(A){const j=A.map(I=>I.answers.map(z=>z.answer)).flat().filter(I=>I);if(A.forEach(I=>{I.answers=I.answers.map(z=>(z.answer=z.answer?z.answer:"",z))}),this.currentContext={searchResults:A,root:p,elements:w},A.length===0||j.length===0)throw new Error("\u641C\u7D22\u4E0D\u5230\u7B54\u6848, \u8BF7\u91CD\u65B0\u8FD0\u884C, \u6216\u8005\u5FFD\u7565\u6B64\u9898\u3002")}else throw new Error("\u7B54\u6848\u83B7\u53D6\u5931\u8D25, \u8BF7\u91CD\u65B0\u8FD0\u884C, \u6216\u8005\u5FFD\u7565\u6B64\u9898\u3002");if(typeof this.opts.work=="object")if(w.options)if(r)n=rm(this.currentContext)[r](A,w.options,this.opts.work.handler);else throw new Error("\u9898\u76EE\u7C7B\u578B\u89E3\u6790\u5931\u8D25, \u8BF7\u81EA\u884C\u63D0\u4F9B\u89E3\u6790\u5668, \u6216\u8005\u5FFD\u7565\u6B64\u9898\u3002");else throw new Error("elements.options \u4E3A\u7A7A ! \u4F7F\u7528\u9ED8\u8BA4\u5904\u7406\u5668, \u5FC5\u987B\u63D0\u4F9B\u9898\u76EE\u9009\u9879\u7684\u9009\u62E9\u5668\u3002");else n=this.opts.work(this.currentContext)}catch(w){if(u=w,console.error(w),(l=(a=this.opts).onError)==null||l.call(a,w,this.currentContext),this.opts.stopWhenError)return t}const F={time:m,ctx:this.currentContext,result:n,consume:Date.now()-m,error:u,type:r};(f=(c=this.opts).onResult)==null||f.call(c,F),t.push(F);const{period:$=3*1e3}=this.opts;await ae($)}return t}async doAnswer(t,n){let{timeout:r=60*1e3,retry:u=2}=this.opts;const i=async()=>await Promise.race([this.opts.answerer(t,n),ae(r)]);let o=await i();if(!o)for(;u;)o=await i(),u--;return o}async uploadHandler(t){var s;const{results:n,uploadRate:r,callback:u}=t;let i=0;for(const a of n)((s=a.result)==null?void 0:s.finish)&&i++;const o=n.length===0?0:i/n.length*100;r!=="nomove"&&await u(o,r==="save"?!1:o>=parseFloat(r))}}var um=dn,im=Ht,om="[object Symbol]";function sm(e){return typeof e=="symbol"||im(e)&&um(e)==om}var pu=sm,am=pn,lm=pu,cm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fm=/^\w*$/;function dm(e,t){if(am(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||lm(e)?!0:fm.test(e)||!cm.test(e)||t!=null&&e in Object(t)}var hm=dm,Ko=lo,pm="Expected a function";function gu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(pm);var n=function(){var r=arguments,u=t?t.apply(this,r):r[0],i=n.cache;if(i.has(u))return i.get(u);var o=e.apply(this,r);return n.cache=i.set(u,o)||i,o};return n.cache=new(gu.Cache||Ko),n}gu.Cache=Ko;var gm=gu,mm=gm,vm=500;function ym(e){var t=mm(e,function(r){return n.size===vm&&n.clear(),r}),n=t.cache;return t}var Em=ym,bm=Em,wm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Am=/\\(\\)?/g,Fm=bm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(wm,function(n,r,u,i){t.push(u?i.replace(Am,"$1"):r||n)}),t}),Cm=Fm;function Bm(e,t){for(var n=-1,r=e==null?0:e.length,u=Array(r);++n<r;)u[n]=t(e[n],n,e);return u}var xm=Bm,Qo=Yr,_m=xm,Sm=pn,Dm=pu,Tm=1/0,Jo=Qo?Qo.prototype:void 0,Vo=Jo?Jo.toString:void 0;function Yo(e){if(typeof e=="string")return e;if(Sm(e))return _m(e,Yo)+"";if(Dm(e))return Vo?Vo.call(e):"";var t=e+"";return t=="0"&&1/e==-Tm?"-0":t}var Om=Yo,Pm=Om;function $m(e){return e==null?"":Pm(e)}var Im=$m,km=pn,Rm=hm,Lm=Cm,Mm=Im;function jm(e,t){return km(e)?e:Rm(e,t)?[e]:Lm(Mm(e))}var Nm=jm,Um=pu,Wm=1/0;function Hm(e){if(typeof e=="string"||Um(e))return e;var t=e+"";return t=="0"&&1/e==-Wm?"-0":t}var zm=Hm,Gm=Nm,qm=zm;function Km(e,t){t=Gm(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[qm(t[n++])];return n&&n==r?e:void 0}var Qm=Km,Jm=Qm;function Vm(e,t,n){var r=e==null?void 0:Jm(e,t);return r===void 0?n:r}var Ym=Vm;async function vn(e,t,n){const r=[];for(const i of e){let o=[],s,a="";const l=Object.create({});i.data=i.data||{},Reflect.ownKeys(i.data).forEach(f=>{i.data&&Reflect.set(l,f,u(i.data[f.toString()]))});const c=u(i.url);if(i.method==="post")s=await fetch(c,{method:i.method,body:JSON.stringify(l)});else{const f=new URLSearchParams;Reflect.ownKeys(l).forEach(p=>f.set(p.toString(),l[p.toString()])),s=await(tr()?fetch:require("node-fetch").default)(c+"?"+f.toString(),{method:i.method})}if(i.handler){i.contentType==="json"?a=await s.json():a=await s.text();const f=Function(i.handler)()(a);f&&(f.every(p=>Array.isArray(p))?o=o.concat(f.map(p=>({question:p[0],answer:p[1]}))):o.push({question:f[0],answer:f[1]}))}r.push({url:i.url,name:i.name,homepage:i.homepage,answers:o,response:s,data:a})}function u(i){return(i.match(/\${(.*?)}/g)||[]).forEach(s=>{const a=Ym({type:t,title:n},s.replace(/\${(.*)}/,"$1"));i=i.replace(s,a)}),i}return r}function Xm(e){const t=e==="error"?"[\u9519\u8BEF]":e==="warn"?"[\u8B66\u544A]":void 0;if(typeof window=="undefined")return[`[OCS][${new Date().toLocaleTimeString()}]${t||""}`];{const n=e==="info"?"#2196f3a3":e==="debug"?"#9e9e9ec4":e==="warn"?"#ffc107db":"#f36c71cc";return[`%c[OCS][${new Date().toLocaleTimeString()}]${t||""}`,`background:${n};color:white;padding:2px;border-radius:2px`]}}function Xo(e,...t){return Xm(e).concat(...t)}function W(e,...t){if(e==="error"?console.error(...Xo(e,t)):console.log(...Xo(e,t)),document){const n=e==="info"?"\u4FE1\u606F":e==="error"?"\u9519\u8BEF":e==="warn"?"\u8B66\u544A":e==="debug"?"\u8C03\u8BD5":"",r=t.map(i=>{const o=typeof i;return o==="function"?"[Function]":o==="object"?"[Object]":o==="undefined"?"\u65E0":i}),u=v.store.localStorage.logs;u.length>50&&u.shift(),u.push({time:Date.now(),level:e,extra:n,text:r.join(" ")})}}const yn={isInBreakingMode(){return Array.from((top==null?void 0:top.document.querySelectorAll(".catalog_points_sa"))||[]).length!==0},isStuckInBreakingMode(){if(this.isInBreakingMode()){const e=top==null?void 0:top.document.querySelector(".posCatalog_active");if(e&&(e.finish_count=e.finish_count?e.finish_count+1:1,e.finish_count>=2))return e.finish_count=1,!0}return!1},isInFinalTab(){const e=Array.from((top==null?void 0:top.document.querySelectorAll(".prev_ul li"))||[]);return e.length&&e[e.length-1].classList.contains("active")},isInFinalChapter(){var e;return(e=Array.from((top==null?void 0:top.document.querySelectorAll(".posCatalog_select"))||[]).pop())==null?void 0:e.classList.contains("posCatalog_active")},getChapterInfos(){return Array.from((top==null?void 0:top.document.querySelectorAll('[onclick^="getTeacherAjax"]'))||[]).map(e=>{var t,n,r;return{chapterId:(n=(t=e.getAttribute("onclick"))==null?void 0:t.match(/\('(.*)','(.*)','(.*)'\)/))==null?void 0:n[3],unFinishCount:parseInt(((r=e.parentElement.querySelector(".jobUnfinishCount"))==null?void 0:r.value)||"0")}})},getSecretFont(e=document){return Array.from(e.querySelectorAll(".font-cxsecret"))}};async function Zm(e){W("debug","\u5373\u5C06\u5F00\u59CB");const t=ev(e);for(const r of t)try{await ae(3e3),await r()}catch(u){W("error","\u672A\u77E5\u9519\u8BEF:",u)}const{next:n}=je({next:'.next[onclick^="PCount.next"]'},top==null?void 0:top.document);if(n&&n.style.display==="block"){if(yn.isInFinalTab()&&yn.isStuckInBreakingMode()){W("warn","\u68C0\u6D4B\u5230\u6B64\u7AE0\u8282\u91CD\u590D\u8FDB\u5165, \u4E3A\u4E86\u907F\u514D\u65E0\u9650\u91CD\u590D, \u8BF7\u81EA\u884C\u624B\u52A8\u5B8C\u6210\u540E\u624B\u52A8\u70B9\u51FB\u4E0B\u4E00\u7AE0, \u6216\u8005\u5237\u65B0\u91CD\u8BD5\u3002");return}W("debug","\u5B8C\u6210, \u5373\u5C06\u8DF3\u8F6C, \u5982\u5361\u6B7B\u8BF7\u81EA\u884C\u70B9\u51FB\u4E0B\u4E00\u7AE0\u3002"),await ae(3e3),n.click()}else yn.isInFinalChapter()?confirm("OCS\u52A9\u624B\uFF1A \u5168\u90E8\u4EFB\u52A1\u70B9\u5DF2\u5B8C\u6210\uFF01"):W("error","\u4E0B\u4E00\u7AE0\u6309\u94AE\u4E0D\u5B58\u5728\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u6216\u8005\u624B\u52A8\u5207\u6362\u4E0B\u4E00\u7AE0\u3002")}function ev(e){return Mo(document).map(t=>{const{media:n,ppt:r,chapterTest:u}=je({media:"video,audio",chapterTest:".TiMu",ppt:"#img.imglook"},t.contentDocument||document);function i(){return n?tv(e,n,t):r?nv(t):u?rv(v.store.setting.cx.work,t):void 0}if(n||r||u)return()=>{var a,l,c,f,p;let o=t.contentWindow,s=du((a=t.contentWindow)==null?void 0:a._jobindex,o._jobindex);for(;o;){s=du(s,(l=t.contentWindow)==null?void 0:l._jobindex,o._jobindex);const m=((c=o==null?void 0:o.JC)==null?void 0:c.attachments)||o.attachments;if(m&&typeof s=="number"){const{name:F,title:$,bookname:w,author:A}=((f=m[s])==null?void 0:f.property)||{},j=F||$||(w?w+A:void 0)||"\u672A\u77E5\u4EFB\u52A1";if(e.restudy&&!u)return W("debug",j,"\u5373\u5C06\u91CD\u65B0\u5B66\u4E60\u3002"),i();if(((p=m[s])==null?void 0:p.job)===!0)return W("debug",j,"\u5373\u5C06\u5F00\u59CB\u3002"),i();W("debug",j,"\u5DF2\u7ECF\u5B8C\u6210\uFF0C\u5373\u5C06\u8DF3\u8FC7\u3002");break}if(o.parent===o)break;o=o.parent}}}).filter(t=>t)}function Zo(e,t,n,r){const{playbackRate:u=1}=e;if(t==null?void 0:t.player){let i=function(a){var l;for(const c of s)if((l=c.textContent)==null?void 0:l.includes(a)){c.click(),e.line=a,setTimeout(()=>n.playbackRate=u,3e3);break}};const o=Array.from(t.player.controlBar.options_.playerOptions.playlines),s=Array.from(t.player.controlBar.videoJsPlayLine.querySelectorAll("ul li"));e.playlines=o,W("info","\u5207\u6362\u8DEF\u7EBF\u4E2D\uFF1A "+r),i(r)}}function tv(e,t,n){const{playbackRate:r=1,volume:u=0}=e,{videojs:i}=je({videojs:"#video"},n.contentDocument||document);return v.store.videojs=i,v.store.currentMedia=t,i&&e.line&&setTimeout(()=>Zo(e,i,t,e.line),3e3),new Promise(o=>{if(t){let s=function(){!t.ended&&!t.__played__?setTimeout(()=>t.play(),1e3):(t.__played__=!0,W("info","\u89C6\u9891\u64AD\u653E\u5B8C\u6BD5"),t.removeEventListener("pause",s))};t.volume=u,t.play(),t.playbackRate=r,t.addEventListener("pause",s),t.addEventListener("ended",()=>o())}})}async function nv(e){var n;const t=(n=e==null?void 0:e.contentWindow)==null?void 0:n.finishJob;t&&t(),await ae(3e3)}async function rv(e,t){const{period:n,timeout:r,retry:u}=Go(e,wt().work);if(v.store.setting.cx.video.upload==="close")W("warn","\u81EA\u52A8\u7B54\u9898\u5DF2\u88AB\u5173\u95ED\uFF01");else if(v.store.setting.answererWrappers.length===0)W("warn","\u9898\u5E93\u914D\u7F6E\u4E3A\u7A7A\uFF0C\u8BF7\u8BBE\u7F6E\u3002");else if(!t.contentWindow)W("warn","\u5143\u7D20\u4E0D\u53EF\u8BBF\u95EE");else{W("info","\u5F00\u59CB\u81EA\u52A8\u7B54\u9898"),await hu();const{window:i}=t.contentWindow,{TiMu:o}=Jn({TiMu:".TiMu"},i.document);v.store.workResults=[];const s=new mn({root:o,elements:{title:".Zy_TItle .clearfix",options:"ul li .after,ul li textarea,ul textarea,ul li label:not(.before)",type:'input[id^="answertype"]'},answerer:(l,c)=>{const f=Se.nowrap(l.title[0].innerText).replace(/(\d+)?【.*?题】/,"").replace(/\d+.0分)/,"").trim();if(f)return vn(v.store.setting.answererWrappers,c,f);throw new Error("\u9898\u76EE\u4E3A\u7A7A\uFF0C\u8BF7\u67E5\u770B\u9898\u76EE\u662F\u5426\u4E3A\u7A7A\uFF0C\u6216\u8005\u5FFD\u7565\u6B64\u9898")},onElementSearched(l){const c=l.type[0];parseInt(c.value)===3&&l.options.forEach(p=>{const m=p.querySelector(".ri"),F=document.createElement("span");F.innerText=m?"\u221A":"\xD7",p.appendChild(F)})},work:{type({elements:l}){const c=l.type[0],f=parseInt(c.value);return f===0?"single":f===1?"multiple":f===2?"completion":f===3?"judgement":l.options[0].querySelector("textarea")?"completion":void 0},handler(l,c,f){var p,m,F,$,w,A;if(l==="judgement"||l==="single"||l==="multiple")((m=(p=f.parentElement)==null?void 0:p.querySelector("input"))==null?void 0:m.checked)||($=(F=f.parentElement)==null?void 0:F.querySelector("a,label"))==null||$.click();else if(l==="completion"&&c.trim()){const j=(w=f.parentElement)==null?void 0:w.querySelector("textarea"),I=(A=f.parentElement)==null?void 0:A.querySelector("iframe");j&&(j.value=c),(I==null?void 0:I.contentDocument)&&(I.contentDocument.body.innerHTML=c)}}},onResult:l=>{var c;l.ctx&&v.store.workResults.push(l),console.log(l),W("info","\u9898\u76EE\u5B8C\u6210\u7ED3\u679C : ",((c=l.result)==null?void 0:c.finish)?"\u5B8C\u6210":"\u672A\u5B8C\u6210")},period:(n||3)*1e3,timeout:(r||30)*1e3,retry:u,stopWhenError:!1}),a=await s.doWork();W("info","\u505A\u9898\u5B8C\u6BD5",a),await s.uploadHandler({uploadRate:v.store.setting.cx.video.upload,results:a,async callback(l,c){W("info","\u5B8C\u6210\u7387 : ",l," , ",c?"5\u79D2\u540E\u5C06\u81EA\u52A8\u63D0\u4EA4":" 5\u79D2\u540E\u5C06\u81EA\u52A8\u4FDD\u5B58"),await ae(5e3),c?(i.btnBlueSubmit(),await ae(3e3),i.submitCheckTimes()):(i.alert=()=>{},i.noSubmit())}})}e.waitForCheck&&(W("debug",`\u6B63\u5728\u7B49\u5F85\u7B54\u9898\u68C0\u67E5: \u4E00\u5171 ${e.waitForCheck} \u79D2`),await ae(e.waitForCheck*1e3))}const uv=ze({setup(){const e=v.store.setting.cx.video;return()=>h("div",{class:"ocs-setting-panel"},[h("div",{class:"ocs-setting-items"},[h("label",null,[U("\u89C6\u9891\u500D\u901F ")]),h("div",null,[h(Ce,{title:`\u9AD8\u500D\u901F(\u5927\u4E8E2\u500D)\u53EF\u80FD\u5BFC\u81F4:
- \u8BB0\u5F55\u6E05\u7A7A
- \u9891\u7E41\u9A8C\u8BC1\u7801
\u8D85\u661F\u540E\u53F0\u53EF\u4EE5\u770B\u5230\u5B66\u4E60\u65F6\u957F
\u8BF7\u8C28\u614E\u8BBE\u7F6E\u2757
\u5982\u679C\u8BBE\u7F6E\u540E\u65E0\u6548\u5219\u662F\u8D85\u661F\u4E0D\u5141\u8BB8\u4F7F\u7528\u500D\u901F\u3002`},{default:()=>[h("input",{style:{color:e.playbackRate>2?"red":""},type:"number",value:e.playbackRate,min:"1",max:"16",step:"1",onChange:t=>{e.playbackRate=t.target.valueAsNumber,v.store.currentMedia&&(v.store.currentMedia.playbackRate=t.target.valueAsNumber)}},null)]})]),h("label",null,[U("\u64AD\u653E\u8DEF\u7EBF")]),h("div",null,[h(Ce,{title:"\u5982\u679C\u5F53\u524D\u89C6\u9891\u5361\u987F\u4E25\u91CD\uFF0C\u53EF\u4EE5\u5C1D\u8BD5\u5207\u6362\u8DEF\u7EBF\u3002"},{default:()=>[h("select",{id:"video-line",value:e.line||"",onChange:t=>{e.line=t.target.value,v.store.videojs&&v.store.currentMedia&&Zo(e,v.store.videojs,v.store.currentMedia,t.target.value)}},[e.line?h("option",{value:e.line},[U("\u6307\u5B9A-"),e.line]):h("option",{value:""},[U("\u8BF7\u6307\u5B9A\u8DEF\u7EBF(\u64AD\u653E\u89C6\u9891\u540E\u624D\u53EF\u9009\u62E9, \u65E0\u9700\u4FDD\u5B58)")]),Array.from(e.playlines||[{label:"\u516C\u7F511"},{label:"\u516C\u7F512"}]).map(t=>h("option",{value:t.label},[t.label]))])]})]),h("label",null,[U("\u97F3\u91CF\u8C03\u8282")]),h("div",null,[h("input",{class:"ocs-setting-item",type:"range",min:"0",max:"1",step:"0.05",value:e.volume,onInput:t=>{e.volume=t.target.valueAsNumber,v.store.currentMedia&&(v.store.currentMedia.volume=t.target.valueAsNumber)}},null),h("span",null,[U(" "),Math.round(e.volume*100),U("% ")])]),h("label",null,[U("\u590D\u4E60\u6A21\u5F0F")]),h("div",null,[h(Ce,{title:"\u9047\u5230\u770B\u8FC7\u7684\u89C6\u9891,\u97F3\u9891,ppt\u4F1A\u91CD\u65B0\u64AD\u653E\uFF0C\u5E76\u4E14\u4ECE\u7B2C\u4E00\u4E2A\u7AE0\u8282\u5F00\u59CB\u3002"},{default:()=>[h("input",{class:"ocs-setting-item",type:"checkbox",checked:e.restudy,onChange:t=>{e.restudy=t.target.checked}},null)]})]),h("hr",null,null),h("hr",null,null),gn("\u81EA\u52A8\u7B54\u9898",{selected:e.upload},t=>e.upload=t.target.value),h("label",null,[U("\u7B54\u9898\u95F4\u9694(\u79D2)")]),h("div",null,[h("input",{type:"number",value:v.store.setting.cx.work.period,min:"3",step:"1",onChange:t=>v.store.setting.cx.work.period=t.target.valueAsNumber,onInput:t=>v.store.setting.cx.work.period=t.target.valueAsNumber},null)]),h("label",null,[U("\u641C\u9898\u8BF7\u6C42\u8D85\u65F6\u65F6\u95F4(\u79D2)")]),h("div",null,[h(Ce,{title:"\u6BCF\u9053\u9898\u6700\u591A\u505An\u79D2, \u8D85\u8FC7\u5219\u8DF3\u8FC7\u6B64\u9898\u3002"},{default:()=>[h("input",{type:"number",value:v.store.setting.cx.work.timeout,min:"0",step:"1",onChange:t=>v.store.setting.cx.work.timeout=t.target.valueAsNumber,onInput:t=>v.store.setting.cx.work.timeout=t.target.valueAsNumber},null)]})]),h("label",null,[U("\u641C\u9898\u8D85\u65F6\u91CD\u8BD5\u6B21\u6570")]),h("div",null,[h("input",{type:"number",value:v.store.setting.cx.work.retry,min:"0",max:"2",step:"1",onChange:t=>v.store.setting.cx.work.retry=t.target.valueAsNumber,onInput:t=>v.store.setting.cx.work.retry=t.target.valueAsNumber},null)]),h("label",null,[U("\u7B54\u9898\u5B8C\u6210\u540E\u7B49\u5F85(\u79D2)")]),h("div",null,[h(Ce,{title:"\u81EA\u52A8\u7B54\u9898\u5B8C\u6210\u540E\u7684\u7B49\u5F85\u65F6\u95F4, \u53EF\u9002\u5F53\u5EF6\u957F\u65B9\u4FBF\u5BF9\u9898\u76EE\u68C0\u67E5\u6216\u8005\u4F7F\u7528\u7B2C\u4E09\u65B9\u5DE5\u5177\u7B54\u9898\u3002"},{default:()=>[h("input",{type:"number",value:v.store.setting.cx.work.waitForCheck,min:"5",step:"1",onChange:t=>v.store.setting.cx.work.waitForCheck=t.target.valueAsNumber,onInput:t=>v.store.setting.cx.work.waitForCheck=t.target.valueAsNumber},null)]})])])])}}),iv=ze({setup(){const e=v.store.setting.cx.work;return()=>h("div",{class:"ocs-setting-panel"},[h("div",{class:"ocs-setting-items"},[gn("\u81EA\u52A8\u7B54\u9898",{selected:e.upload},t=>e.upload=t.target.value),h("label",null,[U("\u7B54\u9898\u95F4\u9694(\u79D2)")]),h("div",null,[h("input",{type:"number",value:e.period,min:"3",step:"1",onChange:t=>e.period=t.target.valueAsNumber,onInput:t=>e.period=t.target.valueAsNumber},null)]),h("label",null,[U("\u641C\u9898\u8BF7\u6C42\u8D85\u65F6\u65F6\u95F4(\u79D2)")]),h("div",null,[h(Ce,{title:"\u6BCF\u9053\u9898\u6700\u591A\u505An\u79D2, \u8D85\u8FC7\u5219\u8DF3\u8FC7\u6B64\u9898\u3002"},{default:()=>[h("input",{type:"number",value:e.timeout,min:"0",step:"1",onChange:t=>e.timeout=t.target.valueAsNumber,onInput:t=>e.timeout=t.target.valueAsNumber},null)]})]),h("label",null,[U("\u641C\u9898\u8D85\u65F6\u91CD\u8BD5\u6B21\u6570")]),h("div",null,[h("input",{type:"number",value:e.retry,min:"0",max:"2",step:"1",onChange:t=>e.retry=t.target.valueAsNumber,onInput:t=>e.retry=t.target.valueAsNumber},null)]),h("label",null,[U("\u7B54\u9898\u5B8C\u6210\u540E\u7B49\u5F85(\u79D2)")]),h("div",null,[h(Ce,{title:"\u81EA\u52A8\u7B54\u9898\u5B8C\u6210\u540E\u7684\u7B49\u5F85\u65F6\u95F4, \u53EF\u9002\u5F53\u5EF6\u957F\u65B9\u4FBF\u5BF9\u9898\u76EE\u68C0\u67E5\u6216\u8005\u4F7F\u7528\u7B2C\u4E09\u65B9\u5DE5\u5177\u7B54\u9898\u3002"},{default:()=>[h("input",{type:"number",value:e.waitForCheck,min:"5",step:"1",onChange:t=>e.waitForCheck=t.target.valueAsNumber,onInput:t=>e.waitForCheck=t.target.valueAsNumber},null)]})])])])}});var es={exports:{}};(function(e){(function(t){var n=I(),r=z(),u=ve(),i=$e(),o={imagePlaceholder:void 0,cacheBust:!1},s={toSvg:a,toPng:c,toJpeg:f,toBlob:p,toPixelData:l,impl:{fontFaces:u,images:i,util:n,inliner:r,options:{}}};e.exports=s;function a(G,x){return x=x||{},m(x),Promise.resolve(G).then(function(L){return $(L,x.filter,!0)}).then(w).then(A).then(_).then(function(L){return j(L,x.width||n.width(G),x.height||n.height(G))});function _(L){return x.bgcolor&&(L.style.backgroundColor=x.bgcolor),x.width&&(L.style.width=x.width+"px"),x.height&&(L.style.height=x.height+"px"),x.style&&Object.keys(x.style).forEach(function(X){L.style[X]=x.style[X]}),L}}function l(G,x){return F(G,x||{}).then(function(_){return _.getContext("2d").getImageData(0,0,n.width(G),n.height(G)).data})}function c(G,x){return F(G,x||{}).then(function(_){return _.toDataURL()})}function f(G,x){return x=x||{},F(G,x).then(function(_){return _.toDataURL("image/jpeg",x.quality||1)})}function p(G,x){return F(G,x||{}).then(n.canvasToBlob)}function m(G){typeof G.imagePlaceholder=="undefined"?s.impl.options.imagePlaceholder=o.imagePlaceholder:s.impl.options.imagePlaceholder=G.imagePlaceholder,typeof G.cacheBust=="undefined"?s.impl.options.cacheBust=o.cacheBust:s.impl.options.cacheBust=G.cacheBust}function F(G,x){return a(G,x).then(n.makeImage).then(n.delay(100)).then(function(L){var X=_(G);return X.getContext("2d").drawImage(L,0,0),X});function _(L){var X=document.createElement("canvas");if(X.width=x.width||n.width(L),X.height=x.height||n.height(L),x.bgcolor){var q=X.getContext("2d");q.fillStyle=x.bgcolor,q.fillRect(0,0,X.width,X.height)}return X}}function $(G,x,_){if(!_&&x&&!x(G))return Promise.resolve();return Promise.resolve(G).then(L).then(function(J){return X(G,J,x)}).then(function(J){return q(G,J)});function L(J){return J instanceof HTMLCanvasElement?n.makeImage(J.toDataURL()):J.cloneNode(!1)}function X(J,te,we){var ce=J.childNodes;if(ce.length===0)return Promise.resolve(te);return Z(te,n.asArray(ce),we).then(function(){return te});function Z(E,b,D){var N=Promise.resolve();return b.forEach(function(M){N=N.then(function(){return $(M,D)}).then(function(re){re&&E.appendChild(re)})}),N}}function q(J,te){if(!(te instanceof Element))return te;return Promise.resolve().then(we).then(ce).then(Z).then(E).then(function(){return te});function we(){b(window.getComputedStyle(J),te.style);function b(D,N){D.cssText?N.cssText=D.cssText:M(D,N);function M(re,de){n.asArray(re).forEach(function(k){de.setProperty(k,re.getPropertyValue(k),re.getPropertyPriority(k))})}}}function ce(){[":before",":after"].forEach(function(D){b(D)});function b(D){var N=window.getComputedStyle(J,D),M=N.getPropertyValue("content");if(M===""||M==="none")return;var re=n.uid();te.className=te.className+" "+re;var de=document.createElement("style");de.appendChild(k(re,D,N)),te.appendChild(de);function k(Y,V,ie){var be="."+Y+":"+V,ge=ie.cssText?Ft(ie):Ct(ie);return document.createTextNode(be+"{"+ge+"}");function Ft(d){var g=d.getPropertyValue("content");return d.cssText+" content: "+g+";"}function Ct(d){return n.asArray(d).map(g).join("; ")+";";function g(y){return y+": "+d.getPropertyValue(y)+(d.getPropertyPriority(y)?" !important":"")}}}}}function Z(){J instanceof HTMLTextAreaElement&&(te.innerHTML=J.value),J instanceof HTMLInputElement&&te.setAttribute("value",J.value)}function E(){te instanceof SVGElement&&(te.setAttribute("xmlns","http://www.w3.org/2000/svg"),te instanceof SVGRectElement&&["width","height"].forEach(function(b){var D=te.getAttribute(b);!D||te.style.setProperty(b,D)}))}}}function w(G){return u.resolveAll().then(function(x){var _=document.createElement("style");return G.appendChild(_),_.appendChild(document.createTextNode(x)),G})}function A(G){return i.inlineAll(G).then(function(){return G})}function j(G,x,_){return Promise.resolve(G).then(function(L){return L.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(L)}).then(n.escapeXhtml).then(function(L){return'<foreignObject x="0" y="0" width="100%" height="100%">'+L+"</foreignObject>"}).then(function(L){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+x+'" height="'+_+'">'+L+"</svg>"}).then(function(L){return"data:image/svg+xml;charset=utf-8,"+L})}function I(){return{escape:E,parseExtension:x,mimeType:_,dataAsUrl:Z,isDataUrl:L,canvasToBlob:q,resolveUrl:J,getAndEncode:ce,uid:te(),delay:b,asArray:D,escapeXhtml:N,makeImage:we,width:M,height:re};function G(){var k="application/font-woff",Y="image/jpeg";return{woff:k,woff2:k,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Y,jpeg:Y,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function x(k){var Y=/\.([^\.\/]*?)$/g.exec(k);return Y?Y[1]:""}function _(k){var Y=x(k).toLowerCase();return G()[Y]||""}function L(k){return k.search(/^(data:)/)!==-1}function X(k){return new Promise(function(Y){for(var V=window.atob(k.toDataURL().split(",")[1]),ie=V.length,be=new Uint8Array(ie),ge=0;ge<ie;ge++)be[ge]=V.charCodeAt(ge);Y(new Blob([be],{type:"image/png"}))})}function q(k){return k.toBlob?new Promise(function(Y){k.toBlob(Y)}):X(k)}function J(k,Y){var V=document.implementation.createHTMLDocument(),ie=V.createElement("base");V.head.appendChild(ie);var be=V.createElement("a");return V.body.appendChild(be),ie.href=Y,be.href=k,be.href}function te(){var k=0;return function(){return"u"+Y()+k++;function Y(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function we(k){return new Promise(function(Y,V){var ie=new Image;ie.onload=function(){Y(ie)},ie.onerror=V,ie.src=k})}function ce(k){var Y=3e4;return s.impl.options.cacheBust&&(k+=(/\?/.test(k)?"&":"?")+new Date().getTime()),new Promise(function(V){var ie=new XMLHttpRequest;ie.onreadystatechange=Ft,ie.ontimeout=Ct,ie.responseType="blob",ie.timeout=Y,ie.open("GET",k,!0),ie.send();var be;if(s.impl.options.imagePlaceholder){var ge=s.impl.options.imagePlaceholder.split(/,/);ge&&ge[1]&&(be=ge[1])}function Ft(){if(ie.readyState===4){if(ie.status!==200){be?V(be):d("cannot fetch resource: "+k+", status: "+ie.status);return}var g=new FileReader;g.onloadend=function(){var y=g.result.split(/,/)[1];V(y)},g.readAsDataURL(ie.response)}}function Ct(){be?V(be):d("timeout of "+Y+"ms occured while fetching resource: "+k)}function d(g){console.error(g),V("")}})}function Z(k,Y){return"data:"+Y+";base64,"+k}function E(k){return k.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function b(k){return function(Y){return new Promise(function(V){setTimeout(function(){V(Y)},k)})}}function D(k){for(var Y=[],V=k.length,ie=0;ie<V;ie++)Y.push(k[ie]);return Y}function N(k){return k.replace(/#/g,"%23").replace(/\n/g,"%0A")}function M(k){var Y=de(k,"border-left-width"),V=de(k,"border-right-width");return k.scrollWidth+Y+V}function re(k){var Y=de(k,"border-top-width"),V=de(k,"border-bottom-width");return k.scrollHeight+Y+V}function de(k,Y){var V=window.getComputedStyle(k).getPropertyValue(Y);return parseFloat(V.replace("px",""))}}function z(){var G=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:X,shouldProcess:x,impl:{readUrls:_,inline:L}};function x(q){return q.search(G)!==-1}function _(q){for(var J=[],te;(te=G.exec(q))!==null;)J.push(te[1]);return J.filter(function(we){return!n.isDataUrl(we)})}function L(q,J,te,we){return Promise.resolve(J).then(function(Z){return te?n.resolveUrl(Z,te):Z}).then(we||n.getAndEncode).then(function(Z){return n.dataAsUrl(Z,n.mimeType(J))}).then(function(Z){return q.replace(ce(J),"$1"+Z+"$3")});function ce(Z){return new RegExp(`(url\\(['"]?)(`+n.escape(Z)+`)(['"]?\\))`,"g")}}function X(q,J,te){if(we())return Promise.resolve(q);return Promise.resolve(q).then(_).then(function(ce){var Z=Promise.resolve(q);return ce.forEach(function(E){Z=Z.then(function(b){return L(b,E,J,te)})}),Z});function we(){return!x(q)}}}function ve(){return{resolveAll:G,impl:{readAll:x}};function G(){return x().then(function(_){return Promise.all(_.map(function(L){return L.resolve()}))}).then(function(_){return _.join(`
`)})}function x(){return Promise.resolve(n.asArray(document.styleSheets)).then(L).then(_).then(function(q){return q.map(X)});function _(q){return q.filter(function(J){return J.type===CSSRule.FONT_FACE_RULE}).filter(function(J){return r.shouldProcess(J.style.getPropertyValue("src"))})}function L(q){var J=[];return q.forEach(function(te){try{n.asArray(te.cssRules||[]).forEach(J.push.bind(J))}catch(we){console.log("Error while reading CSS rules from "+te.href,we.toString())}}),J}function X(q){return{resolve:function(){var te=(q.parentStyleSheet||{}).href;return r.inlineAll(q.cssText,te)},src:function(){return q.style.getPropertyValue("src")}}}}}function $e(){return{inlineAll:x,impl:{newImage:G}};function G(_){return{inline:L};function L(X){return n.isDataUrl(_.src)?Promise.resolve():Promise.resolve(_.src).then(X||n.getAndEncode).then(function(q){return n.dataAsUrl(q,n.mimeType(_.src))}).then(function(q){return new Promise(function(J,te){_.onload=J,_.onerror=te,_.src=q})})}}function x(_){if(!(_ instanceof Element))return Promise.resolve(_);return L(_).then(function(){return _ instanceof HTMLImageElement?G(_).inline():Promise.all(n.asArray(_.childNodes).map(function(X){return x(X)}))});function L(X){var q=X.style.getPropertyValue("background");return q?r.inlineAll(q).then(function(J){X.style.setProperty("background",J,X.style.getPropertyPriority("background"))}).then(function(){return X}):Promise.resolve(X)}}}})()})(es);var ov=es.exports,sv={exports:{}};(function(e){var t=function(n){var r=Object.prototype,u=r.hasOwnProperty,i,o=typeof Symbol=="function"?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(E,b,D){return Object.defineProperty(E,b,{value:D,enumerable:!0,configurable:!0,writable:!0}),E[b]}try{c({},"")}catch{c=function(b,D,N){return b[D]=N}}function f(E,b,D,N){var M=b&&b.prototype instanceof j?b:j,re=Object.create(M.prototype),de=new we(N||[]);return re._invoke=X(E,D,de),re}n.wrap=f;function p(E,b,D){try{return{type:"normal",arg:E.call(b,D)}}catch(N){return{type:"throw",arg:N}}}var m="suspendedStart",F="suspendedYield",$="executing",w="completed",A={};function j(){}function I(){}function z(){}var ve={};c(ve,s,function(){return this});var $e=Object.getPrototypeOf,G=$e&&$e($e(ce([])));G&&G!==r&&u.call(G,s)&&(ve=G);var x=z.prototype=j.prototype=Object.create(ve);I.prototype=z,c(x,"constructor",z),c(z,"constructor",I),I.displayName=c(z,l,"GeneratorFunction");function _(E){["next","throw","return"].forEach(function(b){c(E,b,function(D){return this._invoke(b,D)})})}n.isGeneratorFunction=function(E){var b=typeof E=="function"&&E.constructor;return b?b===I||(b.displayName||b.name)==="GeneratorFunction":!1},n.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,z):(E.__proto__=z,c(E,l,"GeneratorFunction")),E.prototype=Object.create(x),E},n.awrap=function(E){return{__await:E}};function L(E,b){function D(re,de,k,Y){var V=p(E[re],E,de);if(V.type==="throw")Y(V.arg);else{var ie=V.arg,be=ie.value;return be&&typeof be=="object"&&u.call(be,"__await")?b.resolve(be.__await).then(function(ge){D("next",ge,k,Y)},function(ge){D("throw",ge,k,Y)}):b.resolve(be).then(function(ge){ie.value=ge,k(ie)},function(ge){return D("throw",ge,k,Y)})}}var N;function M(re,de){function k(){return new b(function(Y,V){D(re,de,Y,V)})}return N=N?N.then(k,k):k()}this._invoke=M}_(L.prototype),c(L.prototype,a,function(){return this}),n.AsyncIterator=L,n.async=function(E,b,D,N,M){M===void 0&&(M=Promise);var re=new L(f(E,b,D,N),M);return n.isGeneratorFunction(b)?re:re.next().then(function(de){return de.done?de.value:re.next()})};function X(E,b,D){var N=m;return function(re,de){if(N===$)throw new Error("Generator is already running");if(N===w){if(re==="throw")throw de;return Z()}for(D.method=re,D.arg=de;;){var k=D.delegate;if(k){var Y=q(k,D);if(Y){if(Y===A)continue;return Y}}if(D.method==="next")D.sent=D._sent=D.arg;else if(D.method==="throw"){if(N===m)throw N=w,D.arg;D.dispatchException(D.arg)}else D.method==="return"&&D.abrupt("return",D.arg);N=$;var V=p(E,b,D);if(V.type==="normal"){if(N=D.done?w:F,V.arg===A)continue;return{value:V.arg,done:D.done}}else V.type==="throw"&&(N=w,D.method="throw",D.arg=V.arg)}}}function q(E,b){var D=E.iterator[b.method];if(D===i){if(b.delegate=null,b.method==="throw"){if(E.iterator.return&&(b.method="return",b.arg=i,q(E,b),b.method==="throw"))return A;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var N=p(D,E.iterator,b.arg);if(N.type==="throw")return b.method="throw",b.arg=N.arg,b.delegate=null,A;var M=N.arg;if(!M)return b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,A;if(M.done)b[E.resultName]=M.value,b.next=E.nextLoc,b.method!=="return"&&(b.method="next",b.arg=i);else return M;return b.delegate=null,A}_(x),c(x,l,"Generator"),c(x,s,function(){return this}),c(x,"toString",function(){return"[object Generator]"});function J(E){var b={tryLoc:E[0]};1 in E&&(b.catchLoc=E[1]),2 in E&&(b.finallyLoc=E[2],b.afterLoc=E[3]),this.tryEntries.push(b)}function te(E){var b=E.completion||{};b.type="normal",delete b.arg,E.completion=b}function we(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(J,this),this.reset(!0)}n.keys=function(E){var b=[];for(var D in E)b.push(D);return b.reverse(),function N(){for(;b.length;){var M=b.pop();if(M in E)return N.value=M,N.done=!1,N}return N.done=!0,N}};function ce(E){if(E){var b=E[s];if(b)return b.call(E);if(typeof E.next=="function")return E;if(!isNaN(E.length)){var D=-1,N=function M(){for(;++D<E.length;)if(u.call(E,D))return M.value=E[D],M.done=!1,M;return M.value=i,M.done=!0,M};return N.next=N}}return{next:Z}}n.values=ce;function Z(){return{value:i,done:!0}}return we.prototype={constructor:we,reset:function(E){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(te),!E)for(var b in this)b.charAt(0)==="t"&&u.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=i)},stop:function(){this.done=!0;var E=this.tryEntries[0],b=E.completion;if(b.type==="throw")throw b.arg;return this.rval},dispatchException:function(E){if(this.done)throw E;var b=this;function D(Y,V){return re.type="throw",re.arg=E,b.next=Y,V&&(b.method="next",b.arg=i),!!V}for(var N=this.tryEntries.length-1;N>=0;--N){var M=this.tryEntries[N],re=M.completion;if(M.tryLoc==="root")return D("end");if(M.tryLoc<=this.prev){var de=u.call(M,"catchLoc"),k=u.call(M,"finallyLoc");if(de&&k){if(this.prev<M.catchLoc)return D(M.catchLoc,!0);if(this.prev<M.finallyLoc)return D(M.finallyLoc)}else if(de){if(this.prev<M.catchLoc)return D(M.catchLoc,!0)}else if(k){if(this.prev<M.finallyLoc)return D(M.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(E,b){for(var D=this.tryEntries.length-1;D>=0;--D){var N=this.tryEntries[D];if(N.tryLoc<=this.prev&&u.call(N,"finallyLoc")&&this.prev<N.finallyLoc){var M=N;break}}M&&(E==="break"||E==="continue")&&M.tryLoc<=b&&b<=M.finallyLoc&&(M=null);var re=M?M.completion:{};return re.type=E,re.arg=b,M?(this.method="next",this.next=M.finallyLoc,A):this.complete(re)},complete:function(E,b){if(E.type==="throw")throw E.arg;return E.type==="break"||E.type==="continue"?this.next=E.arg:E.type==="return"?(this.rval=this.arg=E.arg,this.method="return",this.next="end"):E.type==="normal"&&b&&(this.next=b),A},finish:function(E){for(var b=this.tryEntries.length-1;b>=0;--b){var D=this.tryEntries[b];if(D.finallyLoc===E)return this.complete(D.completion,D.afterLoc),te(D),A}},catch:function(E){for(var b=this.tryEntries.length-1;b>=0;--b){var D=this.tryEntries[b];if(D.tryLoc===E){var N=D.completion;if(N.type==="throw"){var M=N.arg;te(D)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(E,b,D){return this.delegate={iterator:ce(E),resultName:b,nextLoc:D},this.method==="next"&&(this.arg=i),A}},n}(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(sv);var mu=(e,t)=>`${e}-${t}-${Math.random().toString(16).slice(3,8)}`;const av=mu;let ts=0;var ns=({id:e,action:t,payload:n={}})=>{let r=e;return typeof r=="undefined"&&(r=av("Job",ts),ts+=1),{id:r,action:t,payload:n}},Gt={};let vu=!1;Gt.logging=vu,Gt.setLogging=e=>{vu=e},Gt.log=(...e)=>vu?console.log.apply(globalThis,e):null;const lv=ns,{log:rr}=Gt,cv=mu;let rs=0;var fv=()=>{const e=cv("Scheduler",rs),t={},n={};let r=[];rs+=1;const u=()=>r.length,i=()=>Object.keys(t).length,o=()=>{if(r.length!==0){const f=Object.keys(t);for(let p=0;p<f.length;p+=1)if(typeof n[f[p]]=="undefined"){r[0](t[f[p]]);break}}},s=(f,p)=>new Promise((m,F)=>{const $=lv({action:f,payload:p});r.push(async w=>{r.shift(),n[w.id]=$;try{m(await w[f].apply(globalThis,[...p,$.id]))}catch(A){F(A)}finally{delete n[w.id],o()}}),rr(`[${e}]: Add ${$.id} to JobQueue`),rr(`[${e}]: JobQueue length=${r.length}`),o()});return{addWorker:f=>(t[f.id]=f,rr(`[${e}]: Add ${f.id}`),rr(`[${e}]: Number of workers=${i()}`),o(),f.id),addJob:async(f,...p)=>{if(i()===0)throw Error(`[${e}]: You need to have at least one worker before adding jobs`);return s(f,p)},terminate:async()=>{Object.keys(t).forEach(async f=>{await t[f].terminate()}),r=[]},getQueueLen:u,getNumWorkers:i}};function dv(){return typeof window!="undefined"&&typeof window.process=="object"&&window.process.type==="renderer"||typeof process!="undefined"&&typeof process.versions=="object"&&!!process.versions.electron||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0}var hv=dv;const pv=hv;var gv=e=>{const t={};return typeof WorkerGlobalScope!="undefined"?t.type="webworker":pv()?t.type="electron":typeof window=="object"?t.type="browser":typeof process=="object"&&typeof Vl=="function"&&(t.type="node"),typeof e=="undefined"?t:t[e]},ur={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Lt,function(){function n(){var r=arguments.length;if(r===0)throw new Error("resolveUrl requires at least one argument; got none.");var u=document.createElement("base");if(u.href=arguments[0],r===1)return u.href;var i=document.getElementsByTagName("head")[0];i.insertBefore(u,i.firstChild);for(var o=document.createElement("a"),s,a=1;a<r;a++)o.href=arguments[a],s=o.href,u.href=s;return i.removeChild(u),s}return n})})(ur);const mv=gv("type")==="browser"?ur.exports:e=>e;var vv=e=>{const t=Ie({},e);return["corePath","workerPath","langPath"].forEach(n=>{typeof e[n]!="undefined"&&(t[n]=mv(t[n]))}),t},yv=e=>{const t=[],n=[],r=[],u=[],i=[];return e.blocks.forEach(o=>{o.paragraphs.forEach(s=>{s.lines.forEach(a=>{a.words.forEach(l=>{l.symbols.forEach(c=>{i.push(Ze(Ie({},c),{page:e,block:o,paragraph:s,line:a,word:l}))}),u.push(Ze(Ie({},l),{page:e,block:o,paragraph:s,line:a}))}),r.push(Ze(Ie({},a),{page:e,block:o,paragraph:s}))}),n.push(Ze(Ie({},s),{page:e,block:o}))}),t.push(Ze(Ie({},o),{page:e}))}),Ze(Ie({},e),{blocks:t,paragraphs:n,lines:r,words:u,symbols:i})},us={TESSERACT_ONLY:0,LSTM_ONLY:1,TESSERACT_LSTM_COMBINED:2,DEFAULT:3},Ev={defaultOEM:us.DEFAULT},bv={name:"tesseract.js",version:"2.1.5",description:"Pure Javascript Multilingual OCR",main:"src/index.js",types:"src/index.d.ts",unpkg:"dist/tesseract.min.js",jsdelivr:"dist/tesseract.min.js",scripts:{start:"node scripts/server.js",build:"rimraf dist && webpack --config scripts/webpack.config.prod.js","profile:tesseract":"webpack-bundle-analyzer dist/tesseract-stats.json","profile:worker":"webpack-bundle-analyzer dist/worker-stats.json",prepublishOnly:"npm run build",wait:"rimraf dist && wait-on http://localhost:3000/dist/tesseract.dev.js",test:"npm-run-all -p -r start test:all","test:all":"npm-run-all wait test:browser:* test:node:all","test:node":"nyc mocha --exit --bail --require ./scripts/test-helper.js","test:node:all":"npm run test:node -- ./tests/*.test.js","test:browser-tpl":"mocha-headless-chrome -a incognito -a no-sandbox -a disable-setuid-sandbox -a disable-logging -t 300000","test:browser:detect":"npm run test:browser-tpl -- -f ./tests/detect.test.html","test:browser:recognize":"npm run test:browser-tpl -- -f ./tests/recognize.test.html","test:browser:scheduler":"npm run test:browser-tpl -- -f ./tests/scheduler.test.html","test:browser:FS":"npm run test:browser-tpl -- -f ./tests/FS.test.html",lint:"eslint src","lint:fix":"eslint --fix src",postinstall:"opencollective-postinstall || true"},browser:{"./src/worker/node/index.js":"./src/worker/browser/index.js"},author:"",contributors:["jeromewu"],license:"Apache-2.0",devDependencies:{"@babel/core":"^7.7.7","@babel/preset-env":"^7.7.7",acorn:"^6.4.0","babel-loader":"^8.1.0",cors:"^2.8.5",eslint:"^7.2.0","eslint-config-airbnb-base":"^14.2.0","eslint-plugin-import":"^2.22.1","expect.js":"^0.3.1",express:"^4.17.1",mocha:"^8.1.3","mocha-headless-chrome":"^2.0.3","npm-run-all":"^4.1.5",nyc:"^15.1.0",rimraf:"^2.7.1","wait-on":"^3.3.0",webpack:"^4.44.2","webpack-bundle-analyzer":"^3.6.0","webpack-cli":"^3.3.12","webpack-dev-middleware":"^3.7.2"},dependencies:{"blueimp-load-image":"^3.0.0","bmp-js":"^0.1.0","file-type":"^12.4.1","idb-keyval":"^3.2.0","is-electron":"^2.2.0","is-url":"^1.2.4","jpeg-autorotate":"^7.1.1","node-fetch":"^2.6.0","opencollective-postinstall":"^2.0.2","regenerator-runtime":"^0.13.3","resolve-url":"^0.2.1","tesseract.js-core":"^2.2.0",zlibjs:"^0.3.1"},repository:{type:"git",url:"https://github.com/naptha/tesseract.js.git"},bugs:{url:"https://github.com/naptha/tesseract.js/issues"},homepage:"https://github.com/naptha/tesseract.js",collective:{type:"opencollective",url:"https://opencollective.com/tesseractjs"}},wv={langPath:"https://tessdata.projectnaptha.com/4.0.0",workerBlobURL:!0,logger:()=>{}};const Av=ur.exports,{version:Fv,dependencies:Cv}=bv;var Bv=Ze(Ie({},wv),{workerPath:typeof process!="undefined"&&{}.TESS_ENV==="development"?Av(`/dist/worker.dev.js?nocache=${Math.random().toString(36).slice(3)}`):`https://unpkg.com/tesseract.js@v${Fv}/dist/worker.min.js`,corePath:`https://unpkg.com/tesseract.js-core@v${Cv["tesseract.js-core"].substring(1)}/tesseract-core.${typeof WebAssembly=="object"?"wasm":"asm"}.js`}),xv=({workerPath:e,workerBlobURL:t})=>{let n;if(Blob&&URL&&t){const r=new Blob([`importScripts("${e}");`],{type:"application/javascript"});n=new Worker(URL.createObjectURL(r))}else n=new Worker(e);return n},_v=e=>{e.terminate()},Sv=(e,t)=>{e.onmessage=({data:n})=>{t(n)}},Dv=async(e,t)=>{e.postMessage(t)},Ye={exports:{}};(function(e){(function(t){function n(i,o,s){var a=document.createElement("img"),l;function c(f,p){p&&console.log(p),f&&n.isInstanceOf("Blob",f)?(i=f,l=n.createObjectURL(i)):(l=i,s&&s.crossOrigin&&(a.crossOrigin=s.crossOrigin)),a.src=l}if(a.onerror=function(f){return n.onerror(a,f,i,l,o,s)},a.onload=function(f){return n.onload(a,f,i,l,o,s)},typeof i=="string")return n.hasMetaOption(s)?n.fetchBlob(i,c,s):c(),a;if(n.isInstanceOf("Blob",i)||n.isInstanceOf("File",i))return l=n.createObjectURL(i),l?(a.src=l,a):n.readFile(i,function(f){var p=f.target;p&&p.result?a.src=p.result:o&&o(f)})}var r=t.createObjectURL&&t||t.URL&&URL.revokeObjectURL&&URL||t.webkitURL&&webkitURL;function u(i,o){i&&i.slice(0,5)==="blob:"&&!(o&&o.noRevoke)&&n.revokeObjectURL(i)}n.hasMetaOption=function(i){return i&&i.meta},n.fetchBlob=function(i,o){o()},n.isInstanceOf=function(i,o){return Object.prototype.toString.call(o)==="[object "+i+"]"},n.transform=function(i,o,s,a,l){s(i,l)},n.onerror=function(i,o,s,a,l,c){u(a,c),l&&l.call(i,o)},n.onload=function(i,o,s,a,l,c){u(a,c),l&&n.transform(i,c,l,s,{originalWidth:i.naturalWidth||i.width,originalHeight:i.naturalHeight||i.height})},n.createObjectURL=function(i){return r?r.createObjectURL(i):!1},n.revokeObjectURL=function(i){return r?r.revokeObjectURL(i):!1},n.readFile=function(i,o,s){if(t.FileReader){var a=new FileReader;if(a.onload=a.onerror=o,s=s||"readAsDataURL",a[s])return a[s](i),a}return!1},e.exports?e.exports=n:t.loadImage=n})(typeof window!="undefined"&&window||Lt)})(Ye);var is={exports:{}};(function(e){(function(t){e.exports?t(Ye.exports):t(window.loadImage)})(function(t){var n=t.transform;t.transform=function(r,u,i,o,s){n.call(t,t.scale(r,u,s),u,i,o,s)},t.transformCoordinates=function(){},t.getTransformedOptions=function(r,u){var i=u.aspectRatio,o,s,a,l;if(!i)return u;o={};for(s in u)Object.prototype.hasOwnProperty.call(u,s)&&(o[s]=u[s]);return o.crop=!0,a=r.naturalWidth||r.width,l=r.naturalHeight||r.height,a/l>i?(o.maxWidth=l*i,o.maxHeight=l):(o.maxWidth=a,o.maxHeight=a/i),o},t.renderImageToCanvas=function(r,u,i,o,s,a,l,c,f,p,m){var F=r.getContext("2d");return m.imageSmoothingEnabled===!1?F.imageSmoothingEnabled=!1:m.imageSmoothingQuality&&(F.imageSmoothingQuality=m.imageSmoothingQuality),F.drawImage(u,i,o,s,a,l,c,f,p),r},t.hasCanvasOption=function(r){return r.canvas||r.crop||!!r.aspectRatio},t.scale=function(r,u,i){u=u||{};var o=document.createElement("canvas"),s=r.getContext||t.hasCanvasOption(u)&&o.getContext,a=r.naturalWidth||r.width,l=r.naturalHeight||r.height,c=a,f=l,p,m,F,$,w,A,j,I,z,ve,$e;function G(){var _=Math.max((F||c)/c,($||f)/f);_>1&&(c*=_,f*=_)}function x(){var _=Math.min((p||c)/c,(m||f)/f);_<1&&(c*=_,f*=_)}if(s&&(u=t.getTransformedOptions(r,u,i),j=u.left||0,I=u.top||0,u.sourceWidth?(w=u.sourceWidth,u.right!==void 0&&u.left===void 0&&(j=a-w-u.right)):w=a-j-(u.right||0),u.sourceHeight?(A=u.sourceHeight,u.bottom!==void 0&&u.top===void 0&&(I=l-A-u.bottom)):A=l-I-(u.bottom||0),c=w,f=A),p=u.maxWidth,m=u.maxHeight,F=u.minWidth,$=u.minHeight,s&&p&&m&&u.crop?(c=p,f=m,$e=w/A-p/m,$e<0?(A=m*w/p,u.top===void 0&&u.bottom===void 0&&(I=(l-A)/2)):$e>0&&(w=p*A/m,u.left===void 0&&u.right===void 0&&(j=(a-w)/2))):((u.contain||u.cover)&&(F=p=p||F,$=m=m||$),u.cover?(x(),G()):(G(),x())),s){if(z=u.pixelRatio,z>1&&(o.style.width=c+"px",o.style.height=f+"px",c*=z,f*=z,o.getContext("2d").scale(z,z)),ve=u.downsamplingRatio,ve>0&&ve<1&&c<w&&f<A)for(;w*ve>c;)o.width=w*ve,o.height=A*ve,t.renderImageToCanvas(o,r,j,I,w,A,0,0,o.width,o.height,u),j=0,I=0,w=o.width,A=o.height,r=document.createElement("canvas"),r.width=w,r.height=A,t.renderImageToCanvas(r,o,0,0,w,A,0,0,w,A,u);return o.width=c,o.height=f,t.transformCoordinates(o,u),t.renderImageToCanvas(o,r,j,I,w,A,0,0,c,f,u)}return r.width=c,r.height=f,r}})})(is);var ir={exports:{}};(function(e){(function(t){e.exports?t(Ye.exports):t(window.loadImage)})(function(t){var n=typeof Blob!="undefined"&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice);t.blobSlice=n&&function(){var u=this.slice||this.webkitSlice||this.mozSlice;return u.apply(this,arguments)},t.metaDataParsers={jpeg:{65505:[],65517:[]}},t.parseMetaData=function(u,i,o,s){o=o||{},s=s||{};var a=this,l=o.maxMetaDataSize||262144,c=!(typeof DataView!="undefined"&&u&&u.size>=12&&u.type==="image/jpeg"&&t.blobSlice);(c||!t.readFile(t.blobSlice.call(u,0,l),function(f){if(f.target.error){console.log(f.target.error),i(s);return}var p=f.target.result,m=new DataView(p),F=2,$=m.byteLength-4,w=F,A,j,I,z;if(m.getUint16(0)===65496){for(;F<$&&(A=m.getUint16(F),A>=65504&&A<=65519||A===65534);){if(j=m.getUint16(F+2)+2,F+j>m.byteLength){console.log("Invalid meta data: Invalid segment size.");break}if(I=t.metaDataParsers.jpeg[A],I&&!o.disableMetaDataParsers)for(z=0;z<I.length;z+=1)I[z].call(a,m,F,j,s,o);F+=j,w=F}!o.disableImageHead&&w>6&&(p.slice?s.imageHead=p.slice(0,w):s.imageHead=new Uint8Array(p).subarray(0,w))}else console.log("Invalid JPEG file: Missing JPEG marker.");i(s)},"readAsArrayBuffer"))&&i(s)},t.replaceHead=function(u,i,o){t.parseMetaData(u,function(s){o(new Blob([i,t.blobSlice.call(u,s.imageHead.byteLength)],{type:"image/jpeg"}))},{maxMetaDataSize:256,disableMetaDataParsers:!0})};var r=t.transform;t.transform=function(u,i,o,s,a){t.hasMetaOption(i)?t.parseMetaData(s,function(l){r.call(t,u,i,o,s,l)},i,a):r.apply(t,arguments)}})})(ir);var Tv={exports:{}};(function(e){(function(t){e.exports?t(Ye.exports):t(window.loadImage)})(function(t){typeof fetch!="undefined"&&typeof Request!="undefined"?t.fetchBlob=function(n,r,u){fetch(new Request(n,u)).then(function(i){return i.blob()}).then(r).catch(function(i){r(null,i)})}:typeof XMLHttpRequest!="undefined"&&typeof ProgressEvent!="undefined"&&(t.fetchBlob=function(n,r,u){u=u||{};var i=new XMLHttpRequest;i.open(u.method||"GET",n),u.headers&&Object.keys(u.headers).forEach(function(o){i.setRequestHeader(o,u.headers[o])}),i.withCredentials=u.credentials==="include",i.responseType="blob",i.onload=function(){r(i.response)},i.onerror=i.onabort=i.ontimeout=function(o){r(null,o)},i.send(u.body)})})})(Tv);var os={exports:{}};(function(e){(function(t){e.exports?t(Ye.exports,ir.exports):t(window.loadImage)})(function(t){function n(a){a&&(Object.defineProperty(this,"map",{value:this.privateIFDs[a].map}),Object.defineProperty(this,"tags",{value:this.tags&&this.tags[a]||{}}))}n.prototype.map={Orientation:274,Thumbnail:513,Exif:34665,GPSInfo:34853,Interoperability:40965},n.prototype.privateIFDs={34665:{name:"Exif",map:{}},34853:{name:"GPSInfo",map:{}},40965:{name:"Interoperability",map:{}}},n.prototype.get=function(a){return this[a]||this[this.map[a]]};function r(a,l,c){if(!c||l+c>a.byteLength){console.log("Invalid Exif data: Invalid thumbnail data.");return}return new Blob([a.buffer.slice(l,l+c)],{type:"image/jpeg"})}var u={1:{getValue:function(a,l){return a.getUint8(l)},size:1},2:{getValue:function(a,l){return String.fromCharCode(a.getUint8(l))},size:1,ascii:!0},3:{getValue:function(a,l,c){return a.getUint16(l,c)},size:2},4:{getValue:function(a,l,c){return a.getUint32(l,c)},size:4},5:{getValue:function(a,l,c){return a.getUint32(l,c)/a.getUint32(l+4,c)},size:8},9:{getValue:function(a,l,c){return a.getInt32(l,c)},size:4},10:{getValue:function(a,l,c){return a.getInt32(l,c)/a.getInt32(l+4,c)},size:8}};u[7]=u[1];function i(a,l,c,f,p,m){var F=u[f],$,w,A,j,I,z;if(!F){console.log("Invalid Exif data: Invalid tag type.");return}if($=F.size*p,w=$>4?l+a.getUint32(c+8,m):c+8,w+$>a.byteLength){console.log("Invalid Exif data: Invalid data offset.");return}if(p===1)return F.getValue(a,w,m);for(A=[],j=0;j<p;j+=1)A[j]=F.getValue(a,w+j*F.size,m);if(F.ascii){for(I="",j=0;j<A.length&&(z=A[j],z!=="\0");j+=1)I+=z;return I}return A}function o(a,l,c,f,p,m,F,$){var w,A,j,I,z,ve;if(c+6>a.byteLength){console.log("Invalid Exif data: Invalid directory offset.");return}if(w=a.getUint16(c,f),A=c+2+12*w,A+4>a.byteLength){console.log("Invalid Exif data: Invalid directory size.");return}for(j=0;j<w;j+=1)I=c+2+12*j,z=a.getUint16(I,f),!(F&&!F[z])&&($&&$[z]===!0||(ve=i(a,l,I,a.getUint16(I+2,f),a.getUint32(I+4,f),f),p[z]=ve,m&&(m[z]=I)));return a.getUint32(A,f)}function s(a,l,c,f,p,m,F){var $=a.exif[l];$&&(a.exif[l]=new n(l),a.exifOffsets&&(a.exifOffsets[l]=new n(l)),o(c,f,f+$,p,a.exif[l],a.exifOffsets&&a.exifOffsets[l],m&&m[l],F&&F[l]))}t.parseExifData=function(a,l,c,f,p){if(!p.disableExif){var m=p.includeExifTags,F=p.excludeExifTags||{34665:{37500:!0}},$=l+10,w,A,j;if(a.getUint32(l+4)===1165519206){if($+8>a.byteLength){console.log("Invalid Exif data: Invalid segment size.");return}if(a.getUint16(l+8)!==0){console.log("Invalid Exif data: Missing byte alignment offset.");return}switch(a.getUint16($)){case 18761:w=!0;break;case 19789:w=!1;break;default:console.log("Invalid Exif data: Invalid byte alignment marker.");return}if(a.getUint16($+2,w)!==42){console.log("Invalid Exif data: Missing TIFF marker.");return}A=a.getUint32($+4,w),f.exif=new n,p.disableExifOffsets||(f.exifOffsets=new n,f.exifTiffOffset=$,f.exifLittleEndian=w),A=o(a,$,$+A,w,f.exif,f.exifOffsets,m,F),A&&!p.disableExifThumbnail&&(A=o(a,$,$+A,w,f.exif,f.exifOffsets,m,F),f.exif[513]&&f.exif[514]&&(f.exif[513]=r(a,$+f.exif[513],f.exif[514]))),j=Object.keys(f.exif.privateIFDs),j.forEach(function(I){s(f,I,a,$,w,m,F)})}}},t.metaDataParsers.jpeg[65505].push(t.parseExifData),t.exifWriters={274:function(a,l,c){var f=new DataView(a,l.exifOffsets[274]+8,2);return f.setUint16(0,c,l.exifLittleEndian),a}},t.writeExifData=function(a,l,c,f){t.exifWriters[l.exif.map[c]](a,l,f)},t.ExifMap=n})})(os);var Ov={exports:{}};(function(e){(function(t){e.exports?t(Ye.exports,os.exports):t(window.loadImage)})(function(t){var n=t.ExifMap.prototype;n.tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright",34665:{36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",42240:"Gamma",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"PhotographicSensitivity",34856:"OECF",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:"LensSpecification",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber"},34853:{0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"},40965:{1:"InteroperabilityIndex"}},n.stringValues={ExposureProgram:{0:"Undefined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Undefined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},ComponentsConfiguration:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"},Orientation:{1:"top-left",2:"top-right",3:"bottom-right",4:"bottom-left",5:"left-top",6:"right-top",7:"right-bottom",8:"left-bottom"}},n.getText=function(r){var u=this.get(r);switch(r){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":case"Orientation":return this.stringValues[r][u];case"ExifVersion":case"FlashpixVersion":return u?String.fromCharCode(u[0],u[1],u[2],u[3]):void 0;case"ComponentsConfiguration":return u?this.stringValues[r][u[0]]+this.stringValues[r][u[1]]+this.stringValues[r][u[2]]+this.stringValues[r][u[3]]:void 0;case"GPSVersionID":return u?u[0]+"."+u[1]+"."+u[2]+"."+u[3]:void 0}return String(u)},n.getAll=function(){var r={},u,i,o;for(u in this)Object.prototype.hasOwnProperty.call(this,u)&&(i=this[u],i&&i.getAll?r[this.privateIFDs[u].name]=i.getAll():(o=this.tags[u],o&&(r[o]=this.getText(o))));return r},n.getName=function(r){var u=this.tags[r];return typeof u=="object"?this.privateIFDs[r].name:u},function(){var r=n.tags,u,i,o;for(u in r)if(Object.prototype.hasOwnProperty.call(r,u))if(i=n.privateIFDs[u],i){o=r[u];for(u in o)Object.prototype.hasOwnProperty.call(o,u)&&(i.map[o[u]]=Number(u))}else n.map[r[u]]=Number(u)}()})})(Ov);var ss={exports:{}};(function(e){(function(t){e.exports?t(Ye.exports,ir.exports):t(window.loadImage)})(function(t){function n(){}n.prototype.map={ObjectName:5},n.prototype.types={0:"Uint16",200:"Uint16",201:"Uint16",202:"binary"},n.prototype.get=function(l){return this[l]||this[this.map[l]]};function r(l,c,f){for(var p="",m=c+f,F=c;F<m;F+=1)p+=String.fromCharCode(l.getUint8(F));return p}function u(l,c,f,p,m){return c.types[l]==="binary"?new Blob([f.buffer.slice(p,p+m)]):c.types[l]==="Uint16"?f.getUint16(p):r(f,p,m)}function i(l,c){return l===void 0?c:l instanceof Array?(l.push(c),l):[l,c]}function o(l,c,f,p,m,F){for(var $,w,A,j=c+f,I=c;I<j;)l.getUint8(I)===28&&l.getUint8(I+1)===2&&(A=l.getUint8(I+2),(!m||m[A])&&(!F||!F[A])&&(w=l.getInt16(I+3),$=u(A,p.iptc,l,I+5,w),p.iptc[A]=i(p.iptc[A],$),p.iptcOffsets&&(p.iptcOffsets[A]=I))),I+=1}function s(l,c){return l.getUint32(c)===943868237&&l.getUint16(c+4)===1028}function a(l,c){var f=l.getUint8(c+7);return f%2!==0&&(f+=1),f===0&&(f=4),f}t.parseIptcData=function(l,c,f,p,m){if(!m.disableIptc)for(var F=c+f;c+8<F;){if(s(l,c)){var $=a(l,c),w=c+8+$;if(w>F){console.log("Invalid IPTC data: Invalid segment offset.");break}var A=l.getUint16(c+6+$);if(c+A>F){console.log("Invalid IPTC data: Invalid segment size.");break}p.iptc=new n,m.disableIptcOffsets||(p.iptcOffsets=new n),o(l,w,A,p,m.includeIptcTags,m.excludeIptcTags||{202:!0});return}c+=1}},t.metaDataParsers.jpeg[65517].push(t.parseIptcData),t.IptcMap=n})})(ss);var Pv={exports:{}};(function(e){(function(t){e.exports?t(Ye.exports,ss.exports):t(window.loadImage)})(function(t){var n=t.IptcMap.prototype;n.tags={0:"ApplicationRecordVersion",3:"ObjectTypeReference",4:"ObjectAttributeReference",5:"ObjectName",7:"EditStatus",8:"EditorialUpdate",10:"Urgency",12:"SubjectReference",15:"Category",20:"SupplementalCategories",22:"FixtureIdentifier",25:"Keywords",26:"ContentLocationCode",27:"ContentLocationName",30:"ReleaseDate",35:"ReleaseTime",37:"ExpirationDate",38:"ExpirationTime",40:"SpecialInstructions",42:"ActionAdvised",45:"ReferenceService",47:"ReferenceDate",50:"ReferenceNumber",55:"DateCreated",60:"TimeCreated",62:"DigitalCreationDate",63:"DigitalCreationTime",65:"OriginatingProgram",70:"ProgramVersion",75:"ObjectCycle",80:"Byline",85:"BylineTitle",90:"City",92:"Sublocation",95:"State",100:"CountryCode",101:"Country",103:"OriginalTransmissionReference",105:"Headline",110:"Credit",115:"Source",116:"CopyrightNotice",118:"Contact",120:"Caption",121:"LocalCaption",122:"Writer",125:"RasterizedCaption",130:"ImageType",131:"ImageOrientation",135:"LanguageIdentifier",150:"AudioType",151:"AudioSamplingRate",152:"AudioSamplingResolution",153:"AudioDuration",154:"AudioOutcue",184:"JobID",185:"MasterDocumentID",186:"ShortDocumentID",187:"UniqueDocumentID",188:"OwnerID",200:"ObjectPreviewFileFormat",201:"ObjectPreviewFileVersion",202:"ObjectPreviewData",221:"Prefs",225:"ClassifyState",228:"SimilarityIndex",230:"DocumentNotes",231:"DocumentHistory",232:"ExifCameraInfo",255:"CatalogSets"},n.stringValues={10:{0:"0 (reserved)",1:"1 (most urgent)",2:"2",3:"3",4:"4",5:"5 (normal urgency)",6:"6",7:"7",8:"8 (least urgent)",9:"9 (user-defined priority)"},75:{a:"Morning",b:"Both Morning and Evening",p:"Evening"},131:{L:"Landscape",P:"Portrait",S:"Square"}},n.getText=function(r){var u=this.get(r),i=this.map[r],o=this.stringValues[i];return o?o[u]:String(u)},n.getAll=function(){var r={},u,i;for(u in this)Object.prototype.hasOwnProperty.call(this,u)&&(i=this.tags[u],i&&(r[i]=this.getText(i)));return r},n.getName=function(r){return this.tags[r]},function(){var r=n.tags,u=n.map||{},i;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(u[r[i]]=Number(i))}()})})(Pv);var $v={exports:{}};(function(e){(function(t){e.exports?t(Ye.exports,is.exports,ir.exports):t(window.loadImage)})(function(t){var n=t.hasCanvasOption,r=t.hasMetaOption,u=t.transformCoordinates,i=t.getTransformedOptions;(function(){var o="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==",s=document.createElement("img");s.onload=function(){t.orientation=s.width===1&&s.height===2},s.src=o})(),t.hasCanvasOption=function(o){return!!o.orientation&&!t.orientation||o.orientation>1&&o.orientation<9||n.call(t,o)},t.hasMetaOption=function(o){return o&&o.orientation===!0&&!t.orientation||r.call(t,o)},t.transformCoordinates=function(o,s){u.call(t,o,s);var a=o.getContext("2d"),l=o.width,c=o.height,f=o.style.width,p=o.style.height,m=s.orientation;if(m>1&&m<9)switch(m>4&&(o.width=c,o.height=l,o.style.width=p,o.style.height=f),m){case 2:a.translate(l,0),a.scale(-1,1);break;case 3:a.translate(l,c),a.rotate(Math.PI);break;case 4:a.translate(0,c),a.scale(1,-1);break;case 5:a.rotate(.5*Math.PI),a.scale(1,-1);break;case 6:a.rotate(.5*Math.PI),a.translate(0,-c);break;case 7:a.rotate(.5*Math.PI),a.translate(l,-c),a.scale(-1,1);break;case 8:a.rotate(-.5*Math.PI),a.translate(-l,0);break}},t.getTransformedOptions=function(o,s,a){var l=i.call(t,o,s),c=l.orientation,f,p;if(c===!0){if(t.orientation)return l;c=a&&a.exif&&a.exif.get("Orientation")}if(!(c>1&&c<9))return l;f={};for(p in l)Object.prototype.hasOwnProperty.call(l,p)&&(f[p]=l[p]);switch(f.orientation=c,c){case 2:f.left=l.right,f.right=l.left;break;case 3:f.left=l.right,f.top=l.bottom,f.right=l.left,f.bottom=l.top;break;case 4:f.top=l.bottom,f.bottom=l.top;break;case 5:f.left=l.top,f.top=l.left,f.right=l.bottom,f.bottom=l.right;break;case 6:f.left=l.top,f.top=l.right,f.right=l.bottom,f.bottom=l.left;break;case 7:f.left=l.bottom,f.top=l.right,f.right=l.top,f.bottom=l.left;break;case 8:f.left=l.bottom,f.top=l.left,f.right=l.top,f.bottom=l.right;break}return f.orientation>4&&(f.maxWidth=l.maxHeight,f.maxHeight=l.maxWidth,f.minWidth=l.minHeight,f.minHeight=l.minWidth,f.sourceWidth=l.sourceHeight,f.sourceHeight=l.sourceWidth),f}})})($v);var Iv=Ye.exports;const as=ur.exports,kv=Iv,yu=e=>new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{t(r.result)},r.onerror=({target:{error:{code:u}}})=>{n(Error(`File could not be read! Code=${u}`))},r.readAsArrayBuffer(e)}),ls=e=>new Promise(t=>{kv(e,n=>n.toBlob(t),{orientation:!0,canvas:!0})}),Eu=async e=>{let t=e;if(typeof e=="undefined")return"undefined";if(typeof e=="string")if(e.endsWith(".pbm"))t=await(await fetch(as(e))).arrayBuffer();else{let n=e;/data:image\/([a-zA-Z]*);base64,([^"]*)/.test(e)||(n=as(e)),t=await yu(await ls(n))}else if(e instanceof HTMLElement)e.tagName==="IMG"&&(t=await Eu(e.src)),e.tagName==="VIDEO"&&(t=await Eu(e.poster)),e.tagName==="CANVAS"&&await new Promise(n=>{e.toBlob(async r=>{t=await yu(r),n()})});else if(e instanceof File||e instanceof Blob){let n=e;e.name.endsWith(".pbm")||(n=await ls(n)),t=await yu(n)}return new Uint8Array(t)};var Rv=Eu,Lv={defaultOptions:Bv,spawnWorker:xv,terminateWorker:_v,onMessage:Sv,send:Dv,loadImage:Rv};const Mv=vv,jv=yv,Ge=ns,{log:cs}=Gt,Nv=mu,{defaultOEM:Uv}=Ev,{defaultOptions:Wv,spawnWorker:Hv,terminateWorker:zv,onMessage:Gv,loadImage:fs,send:qv}=Lv;let ds=0;var hs=(e={})=>{const t=Nv("Worker",ds),G=Mv(Ie(Ie({},Wv),e)),{logger:n,errorHandler:r}=G,u=Ds(G,["logger","errorHandler"]),i={},o={};let s=Hv(u);ds+=1;const a=(x,_)=>{i[x]=_},l=(x,_)=>{o[x]=_},c=({id:x,action:_,payload:L})=>new Promise((X,q)=>{cs(`[${t}]: Start ${x}, action=${_}`),a(_,X),l(_,q),qv(s,{workerId:t,jobId:x,action:_,payload:L})}),f=x=>c(Ge({id:x,action:"load",payload:{options:u}})),p=(x,_,L)=>c(Ge({id:L,action:"FS",payload:{method:"writeFile",args:[x,_]}})),m=(x,_)=>c(Ge({id:_,action:"FS",payload:{method:"readFile",args:[x,{encoding:"utf8"}]}})),F=(x,_)=>c(Ge({id:_,action:"FS",payload:{method:"unlink",args:[x]}})),$=(x,_,L)=>c(Ge({id:L,action:"FS",payload:{method:x,args:_}})),w=(x="eng",_)=>c(Ge({id:_,action:"loadLanguage",payload:{langs:x,options:u}})),A=(x="eng",_=Uv,L)=>c(Ge({id:L,action:"initialize",payload:{langs:x,oem:_}})),j=(x={},_)=>c(Ge({id:_,action:"setParameters",payload:{params:x}})),I=async(x,_={},L)=>c(Ge({id:L,action:"recognize",payload:{image:await fs(x),options:_}})),z=(x="Tesseract OCR Result",_=!1,L)=>c(Ge({id:L,action:"getPDF",payload:{title:x,textonly:_}})),ve=async(x,_)=>c(Ge({id:_,action:"detect",payload:{image:await fs(x)}})),$e=async()=>(s!==null&&(zv(s),s=null),Promise.resolve());return Gv(s,({workerId:x,jobId:_,status:L,action:X,data:q})=>{if(L==="resolve"){cs(`[${x}]: Complete ${_}`);let J=q;X==="recognize"?J=jv(q):X==="getPDF"&&(J=Array.from(Ze(Ie({},q),{length:Object.keys(q).length}))),i[X]({jobId:_,data:J})}else if(L==="reject")if(o[X](q),r)r(q);else throw Error(q);else L==="progress"&&n(Ze(Ie({},q),{userJobId:_}))}),{id:t,worker:s,setResolve:a,setReject:l,load:f,writeText:p,readText:m,removeFile:F,FS:$,loadLanguage:w,initialize:A,setParameters:j,recognize:I,getPDF:z,detect:ve,terminate:$e}};const ps=hs;var Kv={recognize:async(e,t,n)=>{const r=ps(n);return await r.load(),await r.loadLanguage(t),await r.initialize(t),r.recognize(e).finally(async()=>{await r.terminate()})},detect:async(e,t)=>{const n=ps(t);return await n.load(),await n.loadLanguage("osd"),await n.initialize("osd"),n.detect(e).finally(async()=>{await n.terminate()})}},Qv={AFR:"afr",AMH:"amh",ARA:"ara",ASM:"asm",AZE:"aze",AZE_CYRL:"aze_cyrl",BEL:"bel",BEN:"ben",BOD:"bod",BOS:"bos",BUL:"bul",CAT:"cat",CEB:"ceb",CES:"ces",CHI_SIM:"chi_sim",CHI_TRA:"chi_tra",CHR:"chr",CYM:"cym",DAN:"dan",DEU:"deu",DZO:"dzo",ELL:"ell",ENG:"eng",ENM:"enm",EPO:"epo",EST:"est",EUS:"eus",FAS:"fas",FIN:"fin",FRA:"fra",FRK:"frk",FRM:"frm",GLE:"gle",GLG:"glg",GRC:"grc",GUJ:"guj",HAT:"hat",HEB:"heb",HIN:"hin",HRV:"hrv",HUN:"hun",IKU:"iku",IND:"ind",ISL:"isl",ITA:"ita",ITA_OLD:"ita_old",JAV:"jav",JPN:"jpn",KAN:"kan",KAT:"kat",KAT_OLD:"kat_old",KAZ:"kaz",KHM:"khm",KIR:"kir",KOR:"kor",KUR:"kur",LAO:"lao",LAT:"lat",LAV:"lav",LIT:"lit",MAL:"mal",MAR:"mar",MKD:"mkd",MLT:"mlt",MSA:"msa",MYA:"mya",NEP:"nep",NLD:"nld",NOR:"nor",ORI:"ori",PAN:"pan",POL:"pol",POR:"por",PUS:"pus",RON:"ron",RUS:"rus",SAN:"san",SIN:"sin",SLK:"slk",SLV:"slv",SPA:"spa",SPA_OLD:"spa_old",SQI:"sqi",SRP:"srp",SRP_LATN:"srp_latn",SWA:"swa",SWE:"swe",SYR:"syr",TAM:"tam",TEL:"tel",TGK:"tgk",TGL:"tgl",THA:"tha",TIR:"tir",TUR:"tur",UIG:"uig",UKR:"ukr",URD:"urd",UZB:"uzb",UZB_CYRL:"uzb_cyrl",VIE:"vie",YID:"yid"},Jv={OSD_ONLY:"0",AUTO_OSD:"1",AUTO_ONLY:"2",AUTO:"3",SINGLE_COLUMN:"4",SINGLE_BLOCK_VERT_TEXT:"5",SINGLE_BLOCK:"6",SINGLE_LINE:"7",SINGLE_WORD:"8",CIRCLE_WORD:"9",SINGLE_CHAR:"10",SPARSE_TEXT:"11",SPARSE_TEXT_OSD:"12"};const Vv=fv,Yv=hs,Xv=Kv,Zv=Qv,e1=us,t1=Jv,{setLogging:n1}=Gt;var r1=Ie({languages:Zv,OEM:e1,PSM:t1,createScheduler:Vv,createWorker:Yv,setLogging:n1},Xv);const or=class{constructor(e={}){this.worker=r1.createWorker(e)}async load(e){await this.worker.load(),await this.worker.loadLanguage(e||or.DEFAULT_LANG),await this.worker.initialize(e||or.DEFAULT_LANG)}static suit(e,t){this.changeStyle(e,t);let n=Array.from(e.childNodes);for(;n.length;){const r=n.shift();r&&r.style&&(this.changeStyle(r,t),n=n.concat(Array.from(r.childNodes)))}return e}static unsuit(e){this.restoreStyle(e);let t=Array.from(e.childNodes);for(;t.length;){const n=t.shift();n&&n.style&&(this.restoreStyle(n),t=t.concat(Array.from(n.childNodes)))}return e}static changeStyle(e,t){const{fontSize:n,letterSpacing:r,lineHeight:u,fontWeight:i}=t||or.DEFAULT_STYLE;e.__fontSize__=e.style.fontSize||"inherit",e.__letterSpacing__=e.style.letterSpacing||"inherit",e.__lineHeight__=e.style.lineHeight||"inherit",e.__fontWeight__=e.style.fontWeight||"inherit",e.style.fontWeight=i,e.style.fontSize=n,e.style.letterSpacing=r,e.style.lineHeight=u}static restoreStyle(e){e.__fontSize__&&(e.style.fontSize=e.__fontSize__),e.__letterSpacing__&&(e.style.letterSpacing=e.__letterSpacing__),e.__lineHeight__&&(e.style.lineHeight=e.__lineHeight__),e.__fontWeight__&&(e.style.fontWeight=e.__fontWeight__),delete e.__fontSize__,delete e.__letterSpacing__,delete e.__lineHeight__,delete e.__fontWeight__}async recognize(e){const t=await ov.toPng(e),{data:{text:n}}=await this.worker.recognize(t);return n.replace(/\n/g,"").replace(/([^ ]) /g,"$1")}async terminate(){await this.worker.terminate()}};let At=or;At.DEFAULT_LANG="eng+chi_sim",At.DEFAULT_WRAPPER="div",At.DEFAULT_STYLE={padding:"12px",fontSize:"36px",lineHeight:"48px",letterSpacing:"8px",fontWeight:"bold"};function u1(){try{bu(),window.document.addEventListener("readystatechange",bu),window.addEventListener("load",bu)}catch(e){console.error(e.message)}}function bu(){typeof videojs!="undefined"&&typeof Ext!="undefined"&&(W("debug","\u500D\u901F\u7834\u89E3\u542F\u52A8"),Ext.define("ans.VideoJs",{override:"ans.VideoJs",constructor:function(e){e=e||{};const t=this;t.addEvents(["seekstart"]),t.mixins.observable.constructor.call(t,e);const n=videojs(e.videojs,t.params2VideoOpt(e.params),function(){});Ext.fly(e.videojs).on("contextmenu",function(r){r.preventDefault()}),Ext.fly(e.videojs).on("keydown",function(r){(r.keyCode===32||r.keyCode===37||r.keyCode===39||r.keyCode===107)&&r.preventDefault()}),n.videoJsResolutionSwitcher&&n.on("resolutionchange",function(){const r=n.currentResolution(),u=r.sources?r.sources[0].res:!1;Ext.setCookie("resolution",u)})}}))}async function gs(e,t="work"){const{period:n,timeout:r,retry:u}=Go(e,wt().work);if(e.upload==="close")W("warn","\u81EA\u52A8\u7B54\u9898\u5DF2\u88AB\u5173\u95ED\uFF01");else if(v.store.setting.answererWrappers.length===0)W("warn","\u9898\u5E93\u914D\u7F6E\u4E3A\u7A7A\uFF0C\u8BF7\u8BBE\u7F6E\u3002");else{v.store.workResults=[],await hu();const i=new mn({root:".questionLi",elements:{title:"h3",options:".answerBg .answer_p, .textDIV, .eidtDiv",type:t==="exam"?'input[name^="type"]':'input[id^="answertype"]'},answerer:(s,a)=>{const l=Se.nowrap(s.title[0].innerText).replace(/\d+\. \(.*?(题|分)\)/,"").trim();if(l)return vn(v.store.setting.answererWrappers,a,l);throw new Error("\u9898\u76EE\u4E3A\u7A7A\uFF0C\u8BF7\u67E5\u770B\u9898\u76EE\u662F\u5426\u4E3A\u7A7A\uFF0C\u6216\u8005\u5FFD\u7565\u6B64\u9898")},work:{type({elements:s}){const a=s.type[0],l=parseInt(a.value);return l===0?"single":l===1?"multiple":l===2?"completion":l===3?"judgement":l===4?"completion":void 0},handler(s,a,l){var c;if(s==="judgement"||s==="single"||s==="multiple")((c=l.parentElement)==null?void 0:c.querySelector(".check_answer,.check_answer_dx"))===null&&l.click();else if(s==="completion"&&a.trim()){const f=l.querySelector("textarea"),p=l.querySelector("iframe");f&&(f.value=a),(p==null?void 0:p.contentDocument)&&(p.contentDocument.body.innerHTML=a)}}},onResult:s=>{var a;s.ctx&&v.store.workResults.push(s),console.log(s),W("info","\u9898\u76EE\u5B8C\u6210\u7ED3\u679C : ",((a=s.result)==null?void 0:a.finish)?"\u5B8C\u6210":"\u672A\u5B8C\u6210")},period:(n||3)*1e3,timeout:(r||30)*1e3,retry:u,stopWhenError:!1}),o=await i.doWork();W("info","\u505A\u9898\u5B8C\u6BD5",o),t==="exam"?W("info","\u4E3A\u4E86\u5B89\u5168\u8003\u8651\uFF0C\u8BF7\u81EA\u884C\u68C0\u67E5\u540E\u81EA\u884C\u70B9\u51FB\u63D0\u4EA4\uFF01"):await i.uploadHandler({uploadRate:e.upload,results:o,async callback(s,a){var l;W("info","\u5B8C\u6210\u7387 : ",s," , ",a?"5\u79D2\u540E\u5C06\u81EA\u52A8\u63D0\u4EA4":"5\u79D2\u540E\u5C06\u81EA\u52A8\u4FDD\u5B58"),await ae(5e3),a?((l=je({submit:".completeBtn"}).submit)==null||l.click(),await ae(2e3),submitWork()):saveWork()}})}e.waitForCheck&&(W("debug",`\u6B63\u5728\u7B49\u5F85\u7B54\u9898\u68C0\u67E5: \u4E00\u5171 ${e.waitForCheck} \u79D2`),await ae(e.waitForCheck*1e3))}const ms=["**mooc2=0**","**/mycourse/studentcourse**","**/work/getAllWork**","**/work/doHomeWorkNew**","**/exam/test?**","**exam/test/reVersionTestStartNew**examsystem**"],i1={name:"\u8D85\u661F\u5B66\u4E60\u901A",routes:[{name:"\u7248\u672C\u5207\u6362\u811A\u672C",url:ms,async onload(){if(top===window&&confirm("OCS\u7F51\u8BFE\u52A9\u624B\u4E0D\u652F\u6301\u65E7\u7248\u8D85\u661F, \u70B9\u51FB `\u786E\u5B9A` \u5207\u6362\u5230\u8D85\u661F\u65B0\u7248\u3002")){await ae(1e3);const e=document.querySelector(".experience");if(e)e.click();else{const t=new URLSearchParams(window.location.href);t.set("mooc2","1"),t.set("newMooc","true"),t.delete("examsystem"),window.location.replace(decodeURIComponent(t.toString()))}}}},{name:"\u5C4F\u853D\u500D\u901F\u9650\u5236",url:"**/ananas/modules/video/**",start(){console.log("\u5C4F\u853D\u500D\u901F\u9650\u5236\u542F\u52A8"),u1()}},{name:"\u4EFB\u52A1\u5207\u6362\u811A\u672C",url:"**/mycourse/studentstudy**",onload(){const{restudy:e}=v.store.setting.cx.video,t=new URLSearchParams(window.location.href);if(t.get("mooc2")===null){t.set("mooc2","1"),window.location.replace(decodeURIComponent(t.toString()));return}let r=yn.getChapterInfos();if(console.log("chapters",r),e||(r=r.filter(u=>u.unFinishCount!==0)),r.length===0)W("warn","\u9875\u9762\u4EFB\u52A1\u70B9\u6570\u91CF\u4E3A\u7A7A! \u8BF7\u5237\u65B0\u91CD\u8BD5!");else{const u=new URLSearchParams(window.location.href),i=u.get("courseId"),o=u.get("clazzid");setTimeout(()=>{getTeacherAjax(i,o,r[0].chapterId)},1e3)}}},{name:"\u5B66\u4E60\u811A\u672C",url:"**/knowledge/cards**",async onload(e=v.store.setting.cx.video){W("info","\u5F00\u59CB\u5B66\u4E60"),await ae(5e3),await Zm(e)}},{name:"\u9605\u8BFB\u811A\u672C",url:"**/readsvr/book/mooc**",onload(){console.log("\u9605\u8BFB\u811A\u672C\u542F\u52A8"),setTimeout(()=>{readweb.goto(epage)},5e3)}},{name:"\u4F5C\u4E1A\u811A\u672C",url:"**/mooc2/work/dowork**",async onload(e=v.store.setting.cx.work){await ae(5e3),v.store.setting.answererWrappers.length===0?(W("error","\u672A\u8BBE\u7F6E\u9898\u5E93\u914D\u7F6E\uFF01"),confirm("\u672A\u8BBE\u7F6E\u9898\u5E93\u914D\u7F6E\uFF01\u8BF7\u5728\u8BBE\u7F6E\u9762\u677F\u8BBE\u7F6E\u540E\u5237\u65B0\u91CD\u8BD5\uFF01")):await gs(e,"work")}},{name:"\u6574\u5377\u9884\u89C8\u811A\u672C",url:"**/exam/test/reVersionTestStartNew**",async onload(){alert("\u5373\u5C06\u81EA\u52A8\u5207\u6362\u5230\u6574\u5377\u9884\u89C8\u3002\u3002\u3002"),await ae(3e3),topreview()}},{name:"\u8003\u8BD5\u811A\u672C",url:"**/mooc2/exam/preview**",async onload(e=v.store.setting.cx.exam){await ae(5e3),v.store.setting.answererWrappers.length===0?(W("error","\u672A\u8BBE\u7F6E\u9898\u5E93\u914D\u7F6E\uFF01"),confirm("\u672A\u8BBE\u7F6E\u9898\u5E93\u914D\u7F6E\uFF01\u8BF7\u5728\u8BBE\u7F6E\u9762\u677F\u8BBE\u7F6E\u540E\u5237\u65B0\u91CD\u8BD5\uFF01")):await gs(e,"exam")}},{name:"\u5C4F\u853D\u4F5C\u4E1A\u8003\u8BD5\u586B\u7A7A\u7B80\u7B54\u9898\u7C98\u8D34\u9650\u5236",url:["**/mooc2/exam/preview**","**/mooc2/work/dowork**","**/work/doHomeWorkNew/**"],onload(){try{const e=$EDITORUI;for(const t in e){const n=e[t];n.__proto__.uiName==="editor"&&n.editor.removeListener("beforepaste",editorPaste)}}catch(e){console.log("\u5C4F\u853D\u4F5C\u4E1A\u8003\u8BD5\u7C98\u8D34\u9650\u5236\u9519\u8BEF",e)}}},{name:"\u6587\u5B57\u8BC6\u522B\u811A\u672C",url:["**/mycourse/studentstudy**","**/work/doHomeWorkNew**","**/mooc2/exam/preview**","**/mooc2/work/dowork**"],async onload(){const e=new At({langPath:"https://cdn.ocs.enncy.cn/resources/tessdata",corePath:"https://cdn.ocs.enncy.cn/resources/tesseract/tesseract-core.wasm.js",workerPath:"https://cdn.ocs.enncy.cn/resources/tesseract/worker.min.js"});window===top&&(v.store.isRecognizing=!1,W("debug","\u52A0\u8F7D\u6587\u5B57\u8BC6\u522B\u529F\u80FD, \u5982\u679C\u662F\u521D\u59CB\u5316\u8BF7\u8010\u5FC3\u7B49\u5F85..., \u5927\u7EA6\u9700\u8981\u4E0B\u8F7D20mb\u7684\u6570\u636E\u6587\u4EF6"),await e.load(),W("info","\u6587\u5B57\u8BC6\u522B\u529F\u80FD\u52A0\u8F7D\u6210\u529F"));const t=yn.getSecretFont();if(t.length){W("info","\u6587\u5B57\u8BC6\u522B\u529F\u80FD\u542F\u52A8"),v.store.isRecognizing=!0,await e.load();for(let n=0;n<t.length;n++)try{const r=await e.recognize(At.suit(t[n]));t[n].innerHTML=r,At.unsuit(t[n])}catch(r){console.log("\u6587\u5B57\u8BC6\u522B\u9519\u8BEF",r)}v.store.isRecognizing=!1,W("info","\u6587\u5B57\u8BC6\u522B\u5B8C\u6210")}}}],panels:[{name:"\u7248\u672C\u5207\u6362\u52A9\u624B",url:ms,el:()=>Be("\u5FC5\u987B\u5207\u6362\u5230\u6700\u65B0\u7248\u672C\u624D\u80FD\u4F7F\u7528\u6B64\u811A\u672C","\u8BF7\u5BFB\u627E `\u4F53\u9A8C\u65B0\u7248` \u7684\u6309\u94AE, \u5E76\u70B9\u51FB\u3002")},{name:"\u8D85\u661F\u52A9\u624B",url:"**/space/index**",el:()=>Be("\u63D0\u793A\u60A8:","\u8BF7\u70B9\u51FB\u4EFB\u610F\u7684\u8BFE\u7A0B\u8FDB\u5165\u3002")},{name:"\u5B66\u4E60\u52A9\u624B",url:"**/mycourse/**pageHeader=1**",el:()=>Be("\u63D0\u793A\u60A8:","\u8BF7\u70B9\u51FB\u4EFB\u610F\u7684\u7AE0\u8282\u8FDB\u5165\u5B66\u4E60\u3002")},{name:"\u4F5C\u4E1A\u52A9\u624B",url:"**/mycourse/**pageHeader=8**",el:()=>Be("\u63D0\u793A\u60A8:","\u8BF7\u70B9\u51FB\u4EFB\u610F\u7684\u4F5C\u4E1A\u8FDB\u5165\u3002")},{name:"\u8003\u8BD5\u52A9\u624B",url:"**/mycourse/**pageHeader=9**",el:()=>Be("\u63D0\u793A\u60A8:","\u8BF7\u70B9\u51FB\u4EFB\u610F\u7684\u8003\u8BD5\u8FDB\u5165\u3002")},{name:"\u5B66\u4E60\u52A9\u624B",url:"**/mycourse/studentstudy**",el:()=>Be("\u{1F4E2} \u8FDB\u5165\u8BBE\u7F6E\u9762\u677F\u53EF\u4EE5\u8C03\u6574\u5B66\u4E60\u8BBE\u7F6E","\u7AE0\u8282\u680F\u4F60\u968F\u4FBF\u70B9, \u811A\u672C\u5361\u4E86\u7B97\u6211\u8F93\u3002","5\u79D2\u540E\u5C06\u81EA\u52A8\u5F00\u59CB..."),children:[{name:"\u5B66\u4E60\u8BBE\u7F6E",el:()=>uv},dt(),zt()]},{name:"\u4F5C\u4E1A\u52A9\u624B",url:"**/mooc2/work/dowork**",el:()=>Be("\u8FDB\u5165\u8BBE\u7F6E\u9762\u677F\u53EF\u4EE5\u8C03\u6574\u4F5C\u4E1A\u8BBE\u7F6E","5\u79D2\u540E\u5C06\u81EA\u52A8\u5F00\u59CB..."),children:[{name:"\u4F5C\u4E1A\u8BBE\u7F6E",el:()=>iv},dt(),zt()]},{name:"\u8003\u8BD5\u52A9\u624B",url:"**/mooc2/exam/preview**",el:()=>Be("\u8FDB\u5165\u8BBE\u7F6E\u9762\u677F\u53EF\u4EE5\u8C03\u6574\u8003\u8BD5\u8BBE\u7F6E","5\u79D2\u540E\u5C06\u81EA\u52A8\u5F00\u59CB..."),children:[{name:"\u8003\u8BD5\u8BBE\u7F6E",el:()=>Ho},dt(),zt()]},{name:"\u8003\u8BD5\u52A9\u624B",url:"**/exam/test/reVersionTestStartNew**",el:()=>Be("\u6CE8\u610F\uFF01 \u5373\u5C06\u5207\u6362\u5230\u6574\u5377\u9884\u89C8\u9875\u9762\uFF0C \u7136\u540E\u624D\u53EF\u4EE5\u81EA\u52A8\u8003\u8BD5\uFF01")}]};let wu=!1;async function o1(e){var u,i;const{watchTime:t=30,restudy:n=!1}=e||{};W("info","zhs \u5B66\u4E60\u4EFB\u52A1\u5F00\u59CB");let r=Array.from(document.querySelectorAll("li.clearfix.video"));if(n||(r=r.filter(o=>o.querySelector(".time_icofinish")===null)),r.length===0)W("warn","\u89C6\u9891\u4EFB\u52A1\u6570\u91CF\u4E3A 0 !");else{console.log(r),W("info","\u89C6\u9891\u4EFB\u52A1\u6570\u91CF",r.length),setInterval(()=>s1(),3e3),ys(t);for(const o of r)try{if(wu)break;W("debug",`\u5373\u5C06\u64AD\u653E -- ${(u=o.querySelector('[class="catalogue_title"]'))==null?void 0:u.getAttribute("title")} : ${(i=o.querySelector(".time"))==null?void 0:i.textContent}`),o.click(),await ae(5e3),await vs(e)}catch(s){W("error",s)}}W("info","zhs \u5B66\u4E60\u4EFB\u52A1\u7ED3\u675F")}async function vs(e){const{volume:t=0,playbackRate:n}=e||{};return new Promise((r,u)=>{try{const i=document.querySelector("video");v.store.currentMedia=i,i.currentTime=0,i.volume=t,Promise.resolve(async()=>{await ae(1e3),i.play(),await ae(1e3);const{btn:o,rate:s}=je({btn:".speedBox",rate:`[rate="${n}"]`});console.log({btn:o,rate:s}),o==null||o.click(),await ae(1e3),s==null||s.click(),i.onpause=function(){i.ended||(wu?r():i.play())},i.onended=function(){r()}}).then(o=>{o()}).catch(o=>{W("error",o)})}catch(i){u(i)}})}async function s1(){const{items:e}=Jn({items:".topic-item"});if(e.length!==0){const{item:t,btn:n}=je({item:".topic-item",btn:'[aria-label="\u5F39\u9898\u6D4B\u9A8C"] .btn'});t==null||t.click(),await ae(1e3),n==null||n.click(),await ae(1e3)}}async function a1(e){const{restudy:t=!1}=e||{};let n=Array.from(document.querySelectorAll(".file-item"));t||(n=n.filter(u=>u.querySelector(".icon-finish")===null)),console.log(n);const r=n[0];r&&(r.classList.contains("active")?(await vs({volume:(e==null?void 0:e.volume)||0,playbackRate:1}),n[1]&&n[1].click()):r.click())}function ys(e){if(e!==0){let t=0;clearInterval(v.store.setting.zhs.video.interval),v.store.setting.zhs.video.interval=setInterval(()=>{t>=e*60*60*1e3?(clearInterval(v.store.setting.zhs.video.interval),document.querySelector("video").pause(),wu=!0):t+=1e3},1e3)}else clearInterval(v.store.setting.zhs.video.interval)}const Es=ze({setup(){const e=v.store.setting.zhs.video,t=new Date;return t.setMinutes(t.getMinutes()+e.watchTime*60),e.closeDate=t,()=>h("div",{class:"ocs-setting-panel"},[h("div",{class:"ocs-setting-items"},[e.creditStudy===!1?[h("label",null,[U("\u81EA\u52A8\u6682\u505C")]),h("div",null,[h(Ce,{title:`\u64AD\u653E\u65F6\u95F4\u5230\u540E, \u5C06\u4F1A\u81EA\u52A8\u6682\u505C\u3002
\u5982\u8BBE\u7F6E\u4E3A0, \u5219\u4E0D\u4F1A\u81EA\u52A8\u6682\u505C
\u81EA\u52A8\u6682\u505C\u53EF\u4EE5\u5E2E\u52A9\u4F60\u83B7\u53D6\u667A\u6167\u6811\u7684\u5E73\u65F6\u5206\uFF0C\u6BCF\u5929\u5B66\u4E60\u8D85\u8FC7\u534A\u5C0F\u65F6\u5C31\u7B97\u4E00\u6B21\u5E73\u65F6\u5206\u3002`},{default:()=>[h("input",{type:"number",value:e.watchTime,min:"0",max:"24",step:"0.5",onChange:n=>{e.watchTime=n.target.valueAsNumber;const r=new Date;r.setMinutes(r.getMinutes()+e.watchTime*60),e.closeDate=r,ys(n.target.valueAsNumber)}},null)]}),h("span",null,[U("\u5C0F\u65F6")])]),h("label",null,[U("\u6682\u505C\u65F6\u95F4")]),h("div",null,[e.watchTime===0?h("span",null,[U("\u8BBE\u7F6E\u4E3A0\u5C06\u4E0D\u4F1A\u81EA\u52A8\u6682\u505C")]):h("span",null,[U("\u5C06\u5728 "),e.closeDate.toLocaleString(),U(" \u6682\u505C")])])]:[],e.creditStudy===!0?h(Pe,null,[h("label",null,[U("\u89C6\u9891\u500D\u901F ")]),h("div",null,[h(Ce,{title:"\u5B66\u5206\u8BFE\u4E0D\u5141\u8BB8\u500D\u901F\uFF01"},{default:()=>[h("input",{type:"number",value:"1"},null)]})])]):h(Pe,null,[h("label",null,[U("\u89C6\u9891\u500D\u901F ")]),h("div",null,[h(Ce,{title:"\u667A\u6167\u6811\u6700\u9AD81.5\u500D\u901F, \u8D85\u8FC71.5\u5BB9\u6613\u5C01\u53F7\uFF01"},{default:()=>[h("input",{type:"number",step:"0.25",max:"1.5",min:"1",value:e.playbackRate,onChange:n=>{e.playbackRate=n.target.valueAsNumber}},null)]})])]),h("label",null,[U("\u97F3\u91CF\u8C03\u8282")]),h("div",null,[h("input",{type:"range",min:"0",max:"1",step:"0.05",value:e.volume,onInput:n=>{e.volume=n.target.valueAsNumber,v.store.currentMedia&&(v.store.currentMedia.volume=n.target.valueAsNumber)}},null),h("span",null,[U(" "),Math.round(e.volume*100),U("% ")])]),h("label",null,[U("\u590D\u4E60\u6A21\u5F0F")]),h("div",null,[h(Ce,{title:"\u5C06\u64AD\u653E\u8FC7\u7684\u89C6\u9891\u518D\u64AD\u653E\u4E00\u904D\u3002"},{default:()=>[h("input",{type:"checkbox",checked:e.restudy,onChange:n=>e.restudy=n.target.checked},null)]})])])])}}),bs=ze({setup(e,{slots:t}){const n=v.store.setting.zhs.work;return()=>h("div",{class:"ocs-setting-panel"},[h("div",{class:"ocs-setting-items"},[t.upload?t.upload():gn("\u81EA\u52A8\u7B54\u9898",{selected:n.upload},r=>n.upload=r.target.value),h("label",null,[U("\u7B54\u9898\u95F4\u9694(\u79D2)")]),h("div",null,[h("input",{type:"number",onChange:r=>n.period=r.target.valueAsNumber,onInput:r=>n.period=r.target.valueAsNumber,value:n.period,min:"3",step:"1"},null)]),h("label",null,[U("\u641C\u9898\u8BF7\u6C42\u8D85\u65F6\u65F6\u95F4(\u79D2)")]),h("div",null,[h(Ce,{title:"\u6BCF\u9053\u9898\u6700\u591A\u505An\u79D2, \u8D85\u8FC7\u5219\u8DF3\u8FC7\u6B64\u9898\u3002"},{default:()=>[h("input",{type:"number",onChange:r=>n.timeout=r.target.valueAsNumber,onInput:r=>n.timeout=r.target.valueAsNumber,value:n.timeout,min:"0",step:"1"},null)]})]),h("label",null,[U("\u641C\u9898\u8D85\u65F6\u91CD\u8BD5\u6B21\u6570")]),h("div",null,[h("input",{type:"number",onChange:r=>n.retry=r.target.valueAsNumber,onInput:r=>n.retry=r.target.valueAsNumber,value:n.retry,min:"0",max:"2",step:"1"},null)])])])}}),l1=ze({setup(){const e=v.store.setting.zhs.work;return()=>h(bs,null,{upload:gn("\u81EA\u52A8\u7B54\u9898",{selected:e.upload,options:[{value:"nomove",label:"\u5B8C\u6210\u540E\u8BF7\u81EA\u884C\u68C0\u67E5\u5E76\u63D0\u4EA4"}]},t=>e.upload=t.target.value)})}});async function ws(e,t="work"){const{period:n,timeout:r,retry:u}=e;if(e.upload==="close")W("warn","\u81EA\u52A8\u7B54\u9898\u5DF2\u88AB\u5173\u95ED\uFF01");else if(v.store.setting.answererWrappers.length===0)W("warn","\u9898\u5E93\u914D\u7F6E\u4E3A\u7A7A\uFF0C\u8BF7\u8BBE\u7F6E\u3002");else{v.store.workResults=[];const i=new mn({root:".examPaper_subject",elements:{title:".subject_describe,.smallStem_describe",options:".subject_node .nodeLab"},answerer:(s,a)=>vn(v.store.setting.answererWrappers,a,s.title[0].innerText),work:{handler(s,a,l){var c;if(s==="judgement"||s==="single"||s==="multiple")((c=l.querySelector("input"))==null?void 0:c.checked)||l.click();else if(s==="completion"&&a.trim()){const f=l.querySelector("textarea");f&&(f.value=a)}}},onResult:s=>{var a;s.ctx&&v.store.workResults.push(s),console.log(s),W("info","\u9898\u76EE\u5B8C\u6210\u7ED3\u679C : ",((a=s.result)==null?void 0:a.finish)?"\u5B8C\u6210":"\u672A\u5B8C\u6210")},period:(n||3)*1e3,timeout:(r||30)*1e3,retry:u,stopWhenError:!1}),o=await i.doWork();W("info","\u505A\u9898\u5B8C\u6BD5",o),t==="exam"?W("info","\u4E3A\u4E86\u5B89\u5168\u8003\u8651\uFF0C\u8BF7\u81EA\u884C\u68C0\u67E5\u540E\u81EA\u884C\u70B9\u51FB\u63D0\u4EA4\uFF01"):await i.uploadHandler({uploadRate:e.upload,results:o,async callback(s,a){W("info","\u5B8C\u6210\u7387 : ",s," , ",a?"5\u79D2\u540E\u5C06\u81EA\u52A8\u63D0\u4EA4":"5\u79D2\u540E\u5C06\u81EA\u52A8\u4FDD\u5B58"),await ae(5e3);const{saveBtn:l,uploadBtn:c}=je({saveBtn:".btnStyleX:not(.btnStyleXSumit)",uploadBtn:".btnStyleXSumit"});a?c==null||c.click():l==null||l.click(),await ae(2e3);const{confirmBtn:f}=je({confirmBtn:"[role='dialog'] .el-button--primary"});f==null||f.click()}})}}async function c1(e){const{period:t,timeout:n,retry:r,stopWhenError:u}=e;if(e.upload==="close")W("warn","\u81EA\u52A8\u7B54\u9898\u5DF2\u88AB\u5173\u95ED\uFF01");else if(v.store.setting.answererWrappers.length===0)W("warn","\u9898\u5E93\u914D\u7F6E\u4E3A\u7A7A\uFF0C\u8BF7\u8BBE\u7F6E\u3002");else{W("info","\u5373\u5C06\u5F00\u59CB\u505A\u9898...");const i=new mn({root:".questionBox",elements:{title:".questionContent",options:".optionUl label",questionTit:".questionTit"},answerer:(a,l)=>{const c=Se.nowrap(a.title[0].innerText).trim();if(c)return vn(v.store.setting.answererWrappers,l,c);throw new Error("\u9898\u76EE\u4E3A\u7A7A\uFF0C\u8BF7\u67E5\u770B\u9898\u76EE\u662F\u5426\u4E3A\u7A7A\uFF0C\u6216\u8005\u5FFD\u7565\u6B64\u9898")},work:{handler(a,l,c,f){var p;if(a==="judgement"||a==="single"||a==="multiple")((p=c.querySelector("input"))==null?void 0:p.checked)===!1&&c.click();else if(a==="completion"&&l.trim()){const m=c.querySelector("textarea");m&&(m.value=l)}}},onResult:a=>{var l,c,f;a.ctx&&(a.ctx.elements.title[0]&&(a.ctx.elements.title[0]={innerText:((l=a.ctx.elements.questionTit[0])==null?void 0:l.innerText)+((c=a.ctx.elements.title[0])==null?void 0:c.innerText)}),v.store.workResults.push(a)),console.log(a),W("info","\u9898\u76EE\u5B8C\u6210\u7ED3\u679C : ",((f=a.result)==null?void 0:f.finish)?"\u5B8C\u6210":"\u672A\u5B8C\u6210")},period:(t||3)*1e3,timeout:(n||30)*1e3,retry:r,stopWhenError:u}),o=()=>document.querySelector("span.Topicswitchingbtn:nth-child(2)");let s=o();for(;s;)await i.doWork(),await ae((t||3)*1e3),s=o(),s==null||s.click(),await ae((t||3)*1e3)}}const f1={name:"\u77E5\u9053\u667A\u6167\u6811",routes:[{name:"\u5171\u4EAB\u8BFE\u89C6\u9891\u811A\u672C",url:"**zhihuishu.com/videoStudy.html**",async onload(e=v.store.setting.zhs.video){await ae(5e3),e.creditStudy=!1,W("info","\u5F00\u59CB\u667A\u6167\u6811\u5171\u4EAB\u8BFE\u89C6\u9891\u5B66\u4E60"),await o1(e||wt().video)}},{name:"\u5171\u4EAB\u8BFE\u4F5C\u4E1A\u811A\u672C",url:"**zhihuishu.com/stuExamWeb.html#/webExamList/dohomework**",async onload(e=v.store.setting.zhs.work){await ae(5e3),v.store.setting.answererWrappers.length===0?(W("error","\u672A\u8BBE\u7F6E\u9898\u5E93\u914D\u7F6E\uFF01"),confirm("\u672A\u8BBE\u7F6E\u9898\u5E93\u914D\u7F6E\uFF01\u8BF7\u5728\u8BBE\u7F6E\u9762\u677F\u8BBE\u7F6E\u540E\u5237\u65B0\u91CD\u8BD5\uFF01")):await ws(e,"work")}},{name:"\u5171\u4EAB\u8BFE\u8003\u8BD5\u811A\u672C",url:"**zhihuishu.com/stuExamWeb.html#/webExamList/doexamination*",async onload(e=v.store.setting.zhs.exam){await ae(5e3),v.store.setting.answererWrappers.length===0?(W("error","\u672A\u8BBE\u7F6E\u9898\u5E93\u914D\u7F6E\uFF01"),confirm("\u672A\u8BBE\u7F6E\u9898\u5E93\u914D\u7F6E\uFF01\u8BF7\u5728\u8BBE\u7F6E\u9762\u677F\u8BBE\u7F6E\u540E\u5237\u65B0\u91CD\u8BD5\uFF01")):await ws(e,"exam")}},{name:"\u5B66\u5206\u8BFE\u89C6\u9891\u811A\u672C",url:"**zhihuishu.com/aidedteaching/sourceLearning/**",async onload(e=v.store.setting.zhs.video){await ae(5e3),e.creditStudy=!0,W("info","\u5F00\u59CB\u667A\u6167\u6811\u5B66\u5206\u8BFE\u89C6\u9891\u5B66\u4E60"),await a1(e||wt().video)}},{name:"\u5B66\u5206\u8BFE\u4F5C\u4E1A\u811A\u672C",url:"**zhihuishu.com/atHomeworkExam/stu/homeworkQ/exerciseList**",async onload(e=v.store.setting.zhs.work){await ae(5e3),v.store.setting.answererWrappers.length===0?(W("error","\u672A\u8BBE\u7F6E\u9898\u5E93\u914D\u7F6E\uFF01"),confirm("\u672A\u8BBE\u7F6E\u9898\u5E93\u914D\u7F6E\uFF01\u8BF7\u5728\u8BBE\u7F6E\u9762\u677F\u8BBE\u7F6E\u540E\u5237\u65B0\u91CD\u8BD5\uFF01")):await c1(e)}},{name:"\u6587\u672C\u8BC6\u522B\u811A\u672C",url:["**zhihuishu.com/stuExamWeb.html#/webExamList/dohomework**","**zhihuishu.com/stuExamWeb.html#/webExamList/doexamination*","**zhihuishu.com/atHomeworkExam/stu/homeworkQ/exerciseList**"],start(){window.Element.prototype.attachShadow=void 0,unsafeWindow.Element.prototype.attachShadow=void 0}},{name:"\u5C4F\u853D\u89C6\u9891\u68C0\u6D4B\u811A\u672C",url:"**zhihuishu.com/videoStudy.html**",start(){Element.prototype._addEventListener=Element.prototype.addEventListener,Element.prototype.addEventListener=function(){const e=[...arguments],t=e[1];return e[1]=function(){const n=[...arguments];return n[0]=new Proxy(n[0],{get(r,u){return u==="isTrusted"?!0:r[u]}}),t(...n)},this._addEventListener(...e)}}}],panels:[{name:"\u667A\u6167\u6811\u52A9\u624B",url:"https://www.zhihuishu.com/",el:()=>Be("\u63D0\u793A\u60A8:","\u70B9\u51FB\u767B\u5F55\u540E, \u8FDB\u5165\u4E2A\u4EBA\u9875\u9762\u624D\u80FD\u4F7F\u7528\u5176\u4ED6\u7684\u529F\u80FD\u54E6\u3002")},{name:"\u667A\u6167\u6811\u52A9\u624B",url:"https://onlineweb.zhihuishu.com/onlinestuh5",el:()=>Be("\u63D0\u793A\u60A8:","\u8BF7\u70B9\u51FB\u4EFB\u610F\u7684\u8BFE\u7A0B\u8FDB\u5165\u3002")},{name:"\u5171\u4EAB\u8BFE\u89C6\u9891\u52A9\u624B",url:"**zhihuishu.com/videoStudy.html**",el:()=>Be("\u8FDB\u5165 \u89C6\u9891\u8BBE\u7F6E\u9762\u677F \u53EF\u4EE5\u8C03\u6574\u89C6\u9891\u8BBE\u7F6E","\u70B9\u51FB\u53F3\u4FA7 \u4F5C\u4E1A\u8003\u8BD5 \u53EF\u4EE5\u4F7F\u7528\u4F5C\u4E1A\u529F\u80FD","5\u79D2\u540E\u81EA\u52A8\u5F00\u59CB\u64AD\u653E\u89C6\u9891..."),children:[{name:"\u5B66\u4E60\u8BBE\u7F6E",el:()=>Es},dt()]},{name:"\u5171\u4EAB\u8BFE\u4F5C\u4E1A\u52A9\u624B",url:"**zhihuishu.com/stuExamWeb.html#/webExamList/dohomework**",el:()=>Be("\u8FDB\u5165 \u4F5C\u4E1A\u8BBE\u7F6E\u9762\u677F \u53EF\u4EE5\u8C03\u6574\u4F5C\u4E1A\u8BBE\u7F6E","5\u79D2\u540E\u81EA\u52A8\u5F00\u59CB\u4F5C\u4E1A..."),children:[{name:"\u4F5C\u4E1A\u8BBE\u7F6E",el:()=>bs},dt(),zt()]},{name:"\u5171\u4EAB\u8BFE\u8003\u8BD5\u52A9\u624B",url:"**zhihuishu.com/stuExamWeb.html#/webExamList/doexamination*",el:()=>Be("\u8FDB\u5165 \u8003\u8BD5\u8BBE\u7F6E\u9762\u677F \u53EF\u4EE5\u8C03\u6574\u8003\u8BD5\u8BBE\u7F6E","5\u79D2\u540E\u81EA\u52A8\u5F00\u59CB\u4F5C\u4E1A..."),children:[{name:"\u8003\u8BD5\u8BBE\u7F6E",el:()=>Ho},dt(),zt()]},{name:"\u5B66\u5206\u8BFE\u89C6\u9891\u52A9\u624B",url:"**zhihuishu.com/aidedteaching/sourceLearning/**",el:()=>Be("\u8FDB\u5165 \u89C6\u9891\u8BBE\u7F6E\u9762\u677F \u53EF\u4EE5\u8C03\u6574\u89C6\u9891\u8BBE\u7F6E","\u5B66\u5206\u8BFE\u9ED8\u8BA41\u500D\u901F, \u4E0D\u53EF\u4FEE\u6539","5\u79D2\u540E\u81EA\u52A8\u5F00\u59CB\u64AD\u653E\u89C6\u9891..."),children:[{name:"\u5B66\u4E60\u8BBE\u7F6E",el:()=>Es},dt()]},{name:"\u5B66\u5206\u8BFE\u4F5C\u4E1A\u52A9\u624B",url:"**zhihuishu.com/atHomeworkExam/stu/homeworkQ/exerciseList**",el:()=>Be("\u8FDB\u5165 \u4F5C\u4E1A\u8BBE\u7F6E\u9762\u677F \u53EF\u4EE5\u8C03\u6574\u4F5C\u4E1A\u8BBE\u7F6E","5\u79D2\u540E\u81EA\u52A8\u5F00\u59CB\u4F5C\u4E1A..."),children:[{name:"\u4F5C\u4E1A\u8BBE\u7F6E",el:()=>l1},dt(),zt()]},{name:"\u4F5C\u4E1A\u8003\u8BD5\u52A9\u624B",url:"**zhihuishu.com/stuExamWeb.html#/webExamList?**",el:()=>Be("\u70B9\u51FB\u4EFB\u610F\u4F5C\u4E1A\u53EF\u4EE5\u4F7F\u7528\u4F5C\u4E1A\u529F\u80FD","\u8003\u8BD5\u53EF\u80FD\u4E0D\u7A33\u5B9A\uFF0C\u8BF7\u5927\u5BB6\u9884\u7559\u5176\u4ED6\u641C\u9898\u65B9\u5F0F")}]};var ny="";const d1={class:"ocs-panel-header draggable"},h1=["panel-title","onClick"],p1={class:"ocs-panel-container"},g1=["panel"],m1={class:"ocs-panel-footer draggable"},v1={class:"ocs-tip"},y1=ze({setup(e){var u;const t=xr(er(En)),n=Zu(()=>(t.value.every(i=>i.default===!0)?t.value:t.value.filter(i=>!i.default)).sort((i,o)=>(o.priority||0)-(i.priority||0))),r=xr((u=n.value[0])==null?void 0:u.name);return history.pushState=fu(history,"pushState"),history.replaceState=fu(history,"replaceState"),window.addEventListener("pushState",()=>t.value=er(En)),window.addEventListener("replaceState",()=>t.value=er(En)),It(n,()=>{n.value.find(o=>o.name===r.value)||(r.value=n.value[0].name)}),(i,o)=>(kt(),un("div",null,[lt("div",d1,[(kt(!0),un(Pe,null,Ri(Ot(n),(s,a)=>(kt(),un("div",{key:a,"panel-title":s.name,class:wn(["title",s.name===r.value?"active":""]),onClick:l=>r.value=s.name},Fu(s.name),11,h1))),128))]),lt("div",p1,[(kt(!0),un(Pe,null,Ri(Ot(n),(s,a)=>tl((kt(),un("div",{key:a,panel:s.name},[(kt(),fl(ll(s.el())))],8,g1)),[[Gl,s.name===r.value]])),128))]),lt("div",m1,[lt("span",{class:"hide-btn",onClick:o[0]||(o[0]=s=>Ot(Xn)())}," \u70B9\u51FB\u9690\u85CF "),lt("span",v1," OCS \u7F51\u8BFE\u52A9\u624B "+Fu(Ot(v.store).VERSION),1),lt("img",{class:"ocs-icon",src:"https://cdn.ocs.enncy.cn/logo.png",title:"\u53CC\u51FB\u5C55\u5F00",onDblclick:o[1]||(o[1]=s=>Ot(Xn)()),onClick:o[2]||(o[2]=s=>s.stopPropagation())},null,32)])]))}});v.panel=void 0,v.app=void 0,v.loaded=!1;function E1(e){b1(),top===window&&(Yn(()=>{v.loaded||(v.loaded=!0,As(e))}),su(()=>{v.loaded||(v.loaded=!0,As(e))})),w1((e==null?void 0:e.scripts)||En)}function b1(){tr()&&(typeof unsafeWindow!="undefined"&&Lo(M0()),Yn(()=>{var e;typeof unsafeWindow!="undefined"?Lo(((e=unsafeWindow.top)==null?void 0:e.OCS.store)||v.store):W("warn","\u4E3A\u4E86\u786E\u4FDD\u529F\u80FD\u6B63\u5E38\u4F7F\u7528, \u8BF7\u5728\u6CB9\u7334\u73AF\u5883\u4E0B\u8FD0\u884C https://www.tampermonkey.net/")}))}function As(e){const{draggable:t}=e||{};if(v.app=Ql(y1),v.panel=document.createElement("ocs-panel"),document.body.appendChild(v.panel),v.app.mount(v.panel),t){let n=function(r,u){v.store.localStorage.position.x=r,v.store.localStorage.position.y=u};Vn("ocs-panel .ocs-panel-header",v.panel,n),Vn("ocs-panel .ocs-panel-footer",v.panel,n),Vn(".ocs-icon",v.panel,n)}v.store.localStorage.position.x&&v.store.localStorage.position.y&&(v.panel.style.left=`${v.store.localStorage.position.x}px`,v.panel.style.top=`${v.store.localStorage.position.y}px`),v.store.localStorage.hide&&Xn(!1),W("info",`OCS ${v.store.VERSION} \u52A0\u8F7D\u6210\u529F`)}function w1(e){var t;window.addEventListener("unhandledrejection",n=>{W("error",n.reason.toString()),console.error(n.reason)});try{let n=function(){var u;for(const i of r.filter(o=>o.onload))(u=i.onload)==null||u.call(i)};const r=Uo(e);window.document.readyState==="complete"?n():window.addEventListener("load",n);for(const u of r.filter(i=>i.start))(t=u.start)==null||t.call(u)}catch(n){W("error",n),console.error(n)}}const A1="3.7.3",En=[Q0,i1,f1];v.OCR=At,v.OCSWorker=mn,v.VERSION=A1,v.defaultAnswerWrapperHandler=vn,v.defineScript=K0,v.definedScripts=En,v.logger=W,v.start=E1,v.utils=W0,Object.defineProperty(v,"__esModule",{value:!0}),v[Symbol.toStringTag]="Module"});