@pusdn/pgz-comp-elep 0.2.11 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/lib/adaptive-page/index.d.ts +0 -17096
- package/lib/adaptive-page/src/index.vue.d.ts +0 -5731
- package/lib/adaptive-page/src/type.d.ts +0 -9
- package/lib/button/index.d.ts +0 -134
- package/lib/button/src/index.vue.d.ts +0 -67
- package/lib/button/src/type.d.ts +0 -10
- package/lib/chart/index.d.ts +0 -164
- package/lib/chart/src/index.vue.d.ts +0 -77
- package/lib/chart/src/type.d.ts +0 -7
- package/lib/checkbox/index.d.ts +0 -206
- package/lib/checkbox/src/checkbox.d.ts +0 -5
- package/lib/checkbox/src/index.vue.d.ts +0 -91
- package/lib/components.d.ts +0 -57
- package/lib/date-picker/index.d.ts +0 -170
- package/lib/date-picker/src/index.vue.d.ts +0 -77
- package/lib/date-picker/src/type.d.ts +0 -10
- package/lib/detail/index.d.ts +0 -182
- package/lib/detail/src/index.vue.d.ts +0 -88
- package/lib/detail/src/renderLabel.vue.d.ts +0 -8
- package/lib/detail/src/renderTooltip.vue.d.ts +0 -8
- package/lib/detail/src/type.d.ts +0 -27
- package/lib/favicon.ico +0 -0
- package/lib/form/index.d.ts +0 -308
- package/lib/form/src/index.vue.d.ts +0 -125
- package/lib/form/src/renderBtn.vue.d.ts +0 -8
- package/lib/form/src/renderComp.vue.d.ts +0 -8
- package/lib/form/src/type.d.ts +0 -26
- package/lib/index.d.ts +0 -42
- package/lib/input/index.d.ts +0 -215
- package/lib/input/src/index.vue.d.ts +0 -109
- package/lib/input/src/type.d.ts +0 -13
- package/lib/layout-page/index.d.ts +0 -114
- package/lib/layout-page/src/index.vue.d.ts +0 -62
- package/lib/layout-page-item/index.d.ts +0 -35
- package/lib/layout-page-item/src/index.vue.d.ts +0 -14
- package/lib/module-form/index.d.ts +0 -530
- package/lib/module-form/src/index.vue.d.ts +0 -243
- package/lib/module-form/src/moduleDetail.vue.d.ts +0 -30
- package/lib/module-form/src/moduleForm.vue.d.ts +0 -36
- package/lib/module-form/src/type.d.ts +0 -19
- package/lib/pgz-checkbox/index.d.ts +0 -149
- package/lib/pgz-checkbox/src/index.vue.d.ts +0 -65
- package/lib/pgz-checkbox/src/type.d.ts +0 -12
- package/lib/pgz-comp-elep.es.js +0 -39717
- package/lib/pgz-comp-elep.es.js.gz +0 -0
- package/lib/pgz-comp-elep.umd.js +0 -261
- package/lib/pgz-comp-elep.umd.js.gz +0 -0
- package/lib/pgz-html-preview-modal/index.d.ts +0 -77
- package/lib/pgz-html-preview-modal/src/index.vue.d.ts +0 -22
- package/lib/pgz-html-preview-modal/src/type.d.ts +0 -7
- package/lib/pgz-search-select/index.d.ts +0 -5
- package/lib/pgz-search-select/src/index.vue.d.ts +0 -194
- package/lib/pgz-search-select/src/type.d.ts +0 -16
- package/lib/pgz-tdt-mark/index.d.ts +0 -407
- package/lib/pgz-tdt-mark/src/env.d.ts +0 -7
- package/lib/pgz-tdt-mark/src/index.vue.d.ts +0 -167
- package/lib/pgz-tdt-mark/src/props.d.ts +0 -63
- package/lib/pgz-tdt-mark/src/types/index.d.ts +0 -1
- package/lib/pgz-tdt-mark/src/types/tdt.d.ts +0 -88
- package/lib/pgz-tdt-ploygon/index.d.ts +0 -401
- package/lib/pgz-tdt-ploygon/src/env.d.ts +0 -7
- package/lib/pgz-tdt-ploygon/src/index.vue.d.ts +0 -164
- package/lib/pgz-tdt-ploygon/src/props.d.ts +0 -35
- package/lib/pgz-tdt-ploygon/src/tmp-fix.d.ts +0 -10
- package/lib/pgz-tdt-ploygon/src/types/index.d.ts +0 -1
- package/lib/pgz-tdt-ploygon/src/types/tdt.d.ts +0 -120
- package/lib/pgz-tdt-ploygon/src/types.d.ts +0 -27
- package/lib/pgz-video-xg-modal/index.d.ts +0 -181
- package/lib/pgz-video-xg-modal/src/env.d.ts +0 -7
- package/lib/pgz-video-xg-modal/src/index.vue.d.ts +0 -73
- package/lib/pgz-video-xg-modal/src/types/xgplayer.d.ts +0 -59
- package/lib/query-condition/index.d.ts +0 -701
- package/lib/query-condition/src/index.vue.d.ts +0 -326
- package/lib/query-condition/src/moreChoose.vue.d.ts +0 -37
- package/lib/query-condition/src/renderComp.vue.d.ts +0 -8
- package/lib/query-condition/src/type.d.ts +0 -21
- package/lib/query-condition/src/useComputed.d.ts +0 -27
- package/lib/radio/index.d.ts +0 -206
- package/lib/radio/src/index.vue.d.ts +0 -91
- package/lib/radio/src/radio.d.ts +0 -12
- package/lib/select/index.d.ts +0 -371
- package/lib/select/src/index.vue.d.ts +0 -200
- package/lib/select/src/type.d.ts +0 -42
- package/lib/select-icon/index.d.ts +0 -174
- package/lib/select-icon/src/index.vue.d.ts +0 -89
- package/lib/select-table/index.d.ts +0 -2165
- package/lib/select-table/src/index.vue.d.ts +0 -963
- package/lib/select-table/src/renderCol.vue.d.ts +0 -20
- package/lib/select-table/src/type.d.ts +0 -56
- package/lib/select-table/src/useVirtualized.d.ts +0 -11
- package/lib/step-wizard/index.d.ts +0 -146
- package/lib/step-wizard/src/index.vue.d.ts +0 -71
- package/lib/step-wizard/src/type.d.ts +0 -25
- package/lib/style.css +0 -1
- package/lib/style.css.gz +0 -0
- package/lib/table/index.d.ts +0 -2540
- package/lib/table/src/ColumnSet.vue.d.ts +0 -148
- package/lib/table/src/TTableColumn.vue.d.ts +0 -173
- package/lib/table/src/index.vue.d.ts +0 -941
- package/lib/table/src/operator.vue.d.ts +0 -80
- package/lib/table/src/renderCol.vue.d.ts +0 -20
- package/lib/table/src/renderHeader.vue.d.ts +0 -16
- package/lib/table/src/singleEdit.vue.d.ts +0 -122
- package/lib/table/src/singleEditCell.vue.d.ts +0 -120
- package/lib/table/src/tableProps.d.ts +0 -100
- package/lib/table/src/useExpose.d.ts +0 -16
- package/lib/table/src/useVirtualized.d.ts +0 -9
- package/lib/tabs/index.d.ts +0 -69
- package/lib/tabs/src/index.vue.d.ts +0 -34
- package/lib/timer-btn/index.d.ts +0 -92
- package/lib/timer-btn/src/index.vue.d.ts +0 -43
- package/lib/utils/directives/click-outside/index.d.ts +0 -3
- package/lib/utils/http/api.d.ts +0 -76
- package/lib/utils/http/index.d.ts +0 -79
- package/lib/utils/http/types.d.ts +0 -13
- package/lib/utils/index.d.ts +0 -40
- package/lib/weixin.jpg +0 -0
- package/lib/withInstall.d.ts +0 -4
- package/lib/wocwin.jpg +0 -0
package/lib/pgz-comp-elep.umd.js
DELETED
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
(function(Ue,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],s):(Ue=typeof globalThis<"u"?globalThis:Ue||self,s(Ue.TuiPlus={},Ue.Vue,Ue.ElementPlus))})(this,function(Ue,s,_t){"use strict";const Yh=(o=>o&&typeof o=="object"&&"default"in o?o:{default:o})(s);function nc(o,r){return function(){return o.apply(r,arguments)}}const{toString:Xh}=Object.prototype,{getPrototypeOf:Gi}=Object,fr=(o=>r=>{const n=Xh.call(r);return o[n]||(o[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Dn=o=>(o=o.toLowerCase(),r=>fr(r)===o),hr=o=>r=>typeof r===o,{isArray:Ka}=Array,Eo=hr("undefined");function Jh(o){return o!==null&&!Eo(o)&&o.constructor!==null&&!Eo(o.constructor)&&vn(o.constructor.isBuffer)&&o.constructor.isBuffer(o)}const ac=Dn("ArrayBuffer");function Qh(o){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(o):r=o&&o.buffer&&ac(o.buffer),r}const Zh=hr("string"),vn=hr("function"),oc=hr("number"),pr=o=>o!==null&&typeof o=="object",qh=o=>o===!0||o===!1,vr=o=>{if(fr(o)!=="object")return!1;const r=Gi(o);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in o)&&!(Symbol.iterator in o)},$h=Dn("Date"),ep=Dn("File"),tp=Dn("Blob"),np=Dn("FileList"),ap=o=>pr(o)&&vn(o.pipe),op=o=>{let r;return o&&(typeof FormData=="function"&&o instanceof FormData||vn(o.append)&&((r=fr(o))==="formdata"||r==="object"&&vn(o.toString)&&o.toString()==="[object FormData]"))},rp=Dn("URLSearchParams"),[ip,sp,lp,cp]=["ReadableStream","Request","Response","Headers"].map(Dn),up=o=>o.trim?o.trim():o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Co(o,r,{allOwnKeys:n=!1}={}){if(o===null||typeof o>"u")return;let t,e;if(typeof o!="object"&&(o=[o]),Ka(o))for(t=0,e=o.length;t<e;t++)r.call(null,o[t],t,o);else{const a=n?Object.getOwnPropertyNames(o):Object.keys(o),i=a.length;let l;for(t=0;t<i;t++)l=a[t],r.call(null,o[l],l,o)}}function rc(o,r){r=r.toLowerCase();const n=Object.keys(o);let t=n.length,e;for(;t-- >0;)if(e=n[t],r===e.toLowerCase())return e;return null}const Ta=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ic=o=>!Eo(o)&&o!==Ta;function Wi(){const{caseless:o}=ic(this)&&this||{},r={},n=(t,e)=>{const a=o&&rc(r,e)||e;vr(r[a])&&vr(t)?r[a]=Wi(r[a],t):vr(t)?r[a]=Wi({},t):Ka(t)?r[a]=t.slice():r[a]=t};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&Co(arguments[t],n);return r}const dp=(o,r,n,{allOwnKeys:t}={})=>(Co(r,(e,a)=>{n&&vn(e)?o[a]=nc(e,n):o[a]=e},{allOwnKeys:t}),o),fp=o=>(o.charCodeAt(0)===65279&&(o=o.slice(1)),o),hp=(o,r,n,t)=>{o.prototype=Object.create(r.prototype,t),o.prototype.constructor=o,Object.defineProperty(o,"super",{value:r.prototype}),n&&Object.assign(o.prototype,n)},pp=(o,r,n,t)=>{let e,a,i;const l={};if(r=r||{},o==null)return r;do{for(e=Object.getOwnPropertyNames(o),a=e.length;a-- >0;)i=e[a],(!t||t(i,o,r))&&!l[i]&&(r[i]=o[i],l[i]=!0);o=n!==!1&&Gi(o)}while(o&&(!n||n(o,r))&&o!==Object.prototype);return r},vp=(o,r,n)=>{o=String(o),(n===void 0||n>o.length)&&(n=o.length),n-=r.length;const t=o.indexOf(r,n);return t!==-1&&t===n},mp=o=>{if(!o)return null;if(Ka(o))return o;let r=o.length;if(!oc(r))return null;const n=new Array(r);for(;r-- >0;)n[r]=o[r];return n},gp=(o=>r=>o&&r instanceof o)(typeof Uint8Array<"u"&&Gi(Uint8Array)),yp=(o,r)=>{const t=(o&&o[Symbol.iterator]).call(o);let e;for(;(e=t.next())&&!e.done;){const a=e.value;r.call(o,a[0],a[1])}},_p=(o,r)=>{let n;const t=[];for(;(n=o.exec(r))!==null;)t.push(n);return t},wp=Dn("HTMLFormElement"),bp=o=>o.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,t,e){return t.toUpperCase()+e}),sc=(({hasOwnProperty:o})=>(r,n)=>o.call(r,n))(Object.prototype),Ep=Dn("RegExp"),lc=(o,r)=>{const n=Object.getOwnPropertyDescriptors(o),t={};Co(n,(e,a)=>{let i;(i=r(e,a,o))!==!1&&(t[a]=i||e)}),Object.defineProperties(o,t)},Cp=o=>{lc(o,(r,n)=>{if(vn(o)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const t=o[n];if(!!vn(t)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Sp=(o,r)=>{const n={},t=e=>{e.forEach(a=>{n[a]=!0})};return Ka(o)?t(o):t(String(o).split(r)),n},kp=()=>{},Tp=(o,r)=>o!=null&&Number.isFinite(o=+o)?o:r,Ki="abcdefghijklmnopqrstuvwxyz",cc="0123456789",uc={DIGIT:cc,ALPHA:Ki,ALPHA_DIGIT:Ki+Ki.toUpperCase()+cc},xp=(o=16,r=uc.ALPHA_DIGIT)=>{let n="";const{length:t}=r;for(;o--;)n+=r[Math.random()*t|0];return n};function Bp(o){return!!(o&&vn(o.append)&&o[Symbol.toStringTag]==="FormData"&&o[Symbol.iterator])}const Ap=o=>{const r=new Array(10),n=(t,e)=>{if(pr(t)){if(r.indexOf(t)>=0)return;if(!("toJSON"in t)){r[e]=t;const a=Ka(t)?[]:{};return Co(t,(i,l)=>{const c=n(i,e+1);!Eo(c)&&(a[l]=c)}),r[e]=void 0,a}}return t};return n(o,0)},Dp=Dn("AsyncFunction"),Pp=o=>o&&(pr(o)||vn(o))&&vn(o.then)&&vn(o.catch),dc=((o,r)=>o?setImmediate:r?((n,t)=>(Ta.addEventListener("message",({source:e,data:a})=>{e===Ta&&a===n&&t.length&&t.shift()()},!1),e=>{t.push(e),Ta.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",vn(Ta.postMessage)),Op=typeof queueMicrotask<"u"?queueMicrotask.bind(Ta):typeof process<"u"&&process.nextTick||dc,Y={isArray:Ka,isArrayBuffer:ac,isBuffer:Jh,isFormData:op,isArrayBufferView:Qh,isString:Zh,isNumber:oc,isBoolean:qh,isObject:pr,isPlainObject:vr,isReadableStream:ip,isRequest:sp,isResponse:lp,isHeaders:cp,isUndefined:Eo,isDate:$h,isFile:ep,isBlob:tp,isRegExp:Ep,isFunction:vn,isStream:ap,isURLSearchParams:rp,isTypedArray:gp,isFileList:np,forEach:Co,merge:Wi,extend:dp,trim:up,stripBOM:fp,inherits:hp,toFlatObject:pp,kindOf:fr,kindOfTest:Dn,endsWith:vp,toArray:mp,forEachEntry:yp,matchAll:_p,isHTMLForm:wp,hasOwnProperty:sc,hasOwnProp:sc,reduceDescriptors:lc,freezeMethods:Cp,toObjectSet:Sp,toCamelCase:bp,noop:kp,toFiniteNumber:Tp,findKey:rc,global:Ta,isContextDefined:ic,ALPHABET:uc,generateString:xp,isSpecCompliantForm:Bp,toJSONObject:Ap,isAsyncFn:Dp,isThenable:Pp,setImmediate:dc,asap:Op};function Me(o,r,n,t,e){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=o,this.name="AxiosError",r&&(this.code=r),n&&(this.config=n),t&&(this.request=t),e&&(this.response=e,this.status=e.status?e.status:null)}Y.inherits(Me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});const fc=Me.prototype,hc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(o=>{hc[o]={value:o}}),Object.defineProperties(Me,hc),Object.defineProperty(fc,"isAxiosError",{value:!0}),Me.from=(o,r,n,t,e,a)=>{const i=Object.create(fc);return Y.toFlatObject(o,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Me.call(i,o.message,r,n,t,e),i.cause=o,i.name=o.name,a&&Object.assign(i,a),i};const Lp=null;function Yi(o){return Y.isPlainObject(o)||Y.isArray(o)}function pc(o){return Y.endsWith(o,"[]")?o.slice(0,-2):o}function vc(o,r,n){return o?o.concat(r).map(function(e,a){return e=pc(e),!n&&a?"["+e+"]":e}).join(n?".":""):r}function Ip(o){return Y.isArray(o)&&!o.some(Yi)}const Mp=Y.toFlatObject(Y,{},null,function(r){return/^is[A-Z]/.test(r)});function mr(o,r,n){if(!Y.isObject(o))throw new TypeError("target must be an object");r=r||new FormData,n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!Y.isUndefined(m[g])});const t=n.metaTokens,e=n.visitor||d,a=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Y.isSpecCompliantForm(r);if(!Y.isFunction(e))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(Y.isDate(v))return v.toISOString();if(!c&&Y.isBlob(v))throw new Me("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(v)||Y.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,g,m){let _=v;if(v&&!m&&typeof v=="object"){if(Y.endsWith(g,"{}"))g=t?g:g.slice(0,-2),v=JSON.stringify(v);else if(Y.isArray(v)&&Ip(v)||(Y.isFileList(v)||Y.endsWith(g,"[]"))&&(_=Y.toArray(v)))return g=pc(g),_.forEach(function(y,w){!(Y.isUndefined(y)||y===null)&&r.append(i===!0?vc([g],w,a):i===null?g:g+"[]",u(y))}),!1}return Yi(v)?!0:(r.append(vc(m,g,a),u(v)),!1)}const f=[],h=Object.assign(Mp,{defaultVisitor:d,convertValue:u,isVisitable:Yi});function p(v,g){if(!Y.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(v),Y.forEach(v,function(_,b){(!(Y.isUndefined(_)||_===null)&&e.call(r,_,Y.isString(b)?b.trim():b,g,h))===!0&&p(_,g?g.concat(b):[b])}),f.pop()}}if(!Y.isObject(o))throw new TypeError("data must be an object");return p(o),r}function mc(o){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(o).replace(/[!'()~]|%20|%00/g,function(t){return r[t]})}function Xi(o,r){this._pairs=[],o&&mr(o,this,r)}const gc=Xi.prototype;gc.append=function(r,n){this._pairs.push([r,n])},gc.toString=function(r){const n=r?function(t){return r.call(this,t,mc)}:mc;return this._pairs.map(function(e){return n(e[0])+"="+n(e[1])},"").join("&")};function Np(o){return encodeURIComponent(o).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yc(o,r,n){if(!r)return o;const t=n&&n.encode||Np;Y.isFunction(n)&&(n={serialize:n});const e=n&&n.serialize;let a;if(e?a=e(r,n):a=Y.isURLSearchParams(r)?r.toString():new Xi(r,n).toString(t),a){const i=o.indexOf("#");i!==-1&&(o=o.slice(0,i)),o+=(o.indexOf("?")===-1?"?":"&")+a}return o}class Rp{constructor(){this.handlers=[]}use(r,n,t){return this.handlers.push({fulfilled:r,rejected:n,synchronous:t?t.synchronous:!1,runWhen:t?t.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){Y.forEach(this.handlers,function(t){t!==null&&r(t)})}}const _c=Rp,wc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Vp={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Xi,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ji=typeof window<"u"&&typeof document<"u",Qi=typeof navigator=="object"&&navigator||void 0,Fp=Ji&&(!Qi||["ReactNative","NativeScript","NS"].indexOf(Qi.product)<0),Hp=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),zp=Ji&&window.location.href||"http://localhost",jt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ji,hasStandardBrowserWebWorkerEnv:Hp,hasStandardBrowserEnv:Fp,navigator:Qi,origin:zp},Symbol.toStringTag,{value:"Module"})),...Vp};function Up(o,r){return mr(o,new jt.classes.URLSearchParams,Object.assign({visitor:function(n,t,e,a){return jt.isNode&&Y.isBuffer(n)?(this.append(t,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},r))}function jp(o){return Y.matchAll(/\w+|\[(\w*)]/g,o).map(r=>r[0]==="[]"?"":r[1]||r[0])}function Gp(o){const r={},n=Object.keys(o);let t;const e=n.length;let a;for(t=0;t<e;t++)a=n[t],r[a]=o[a];return r}function bc(o){function r(n,t,e,a){let i=n[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=a>=n.length;return i=!i&&Y.isArray(e)?e.length:i,c?(Y.hasOwnProp(e,i)?e[i]=[e[i],t]:e[i]=t,!l):((!e[i]||!Y.isObject(e[i]))&&(e[i]=[]),r(n,t,e[i],a)&&Y.isArray(e[i])&&(e[i]=Gp(e[i])),!l)}if(Y.isFormData(o)&&Y.isFunction(o.entries)){const n={};return Y.forEachEntry(o,(t,e)=>{r(jp(t),e,n,0)}),n}return null}function Wp(o,r,n){if(Y.isString(o))try{return(r||JSON.parse)(o),Y.trim(o)}catch(t){if(t.name!=="SyntaxError")throw t}return(n||JSON.stringify)(o)}const Zi={transitional:wc,adapter:["xhr","http","fetch"],transformRequest:[function(r,n){const t=n.getContentType()||"",e=t.indexOf("application/json")>-1,a=Y.isObject(r);if(a&&Y.isHTMLForm(r)&&(r=new FormData(r)),Y.isFormData(r))return e?JSON.stringify(bc(r)):r;if(Y.isArrayBuffer(r)||Y.isBuffer(r)||Y.isStream(r)||Y.isFile(r)||Y.isBlob(r)||Y.isReadableStream(r))return r;if(Y.isArrayBufferView(r))return r.buffer;if(Y.isURLSearchParams(r))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let l;if(a){if(t.indexOf("application/x-www-form-urlencoded")>-1)return Up(r,this.formSerializer).toString();if((l=Y.isFileList(r))||t.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return mr(l?{"files[]":r}:r,c&&new c,this.formSerializer)}}return a||e?(n.setContentType("application/json",!1),Wp(r)):r}],transformResponse:[function(r){const n=this.transitional||Zi.transitional,t=n&&n.forcedJSONParsing,e=this.responseType==="json";if(Y.isResponse(r)||Y.isReadableStream(r))return r;if(r&&Y.isString(r)&&(t&&!this.responseType||e)){const i=!(n&&n.silentJSONParsing)&&e;try{return JSON.parse(r)}catch(l){if(i)throw l.name==="SyntaxError"?Me.from(l,Me.ERR_BAD_RESPONSE,this,null,this.response):l}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jt.classes.FormData,Blob:jt.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],o=>{Zi.headers[o]={}});const qi=Zi,Kp=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Yp=o=>{const r={};let n,t,e;return o&&o.split(`
|
|
2
|
-
`).forEach(function(i){e=i.indexOf(":"),n=i.substring(0,e).trim().toLowerCase(),t=i.substring(e+1).trim(),!(!n||r[n]&&Kp[n])&&(n==="set-cookie"?r[n]?r[n].push(t):r[n]=[t]:r[n]=r[n]?r[n]+", "+t:t)}),r},Ec=Symbol("internals");function So(o){return o&&String(o).trim().toLowerCase()}function gr(o){return o===!1||o==null?o:Y.isArray(o)?o.map(gr):String(o)}function Xp(o){const r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let t;for(;t=n.exec(o);)r[t[1]]=t[2];return r}const Jp=o=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim());function $i(o,r,n,t,e){if(Y.isFunction(t))return t.call(this,r,n);if(e&&(r=n),!!Y.isString(r)){if(Y.isString(t))return r.indexOf(t)!==-1;if(Y.isRegExp(t))return t.test(r)}}function Qp(o){return o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,n,t)=>n.toUpperCase()+t)}function Zp(o,r){const n=Y.toCamelCase(" "+r);["get","set","has"].forEach(t=>{Object.defineProperty(o,t+n,{value:function(e,a,i){return this[t].call(this,r,e,a,i)},configurable:!0})})}class yr{constructor(r){r&&this.set(r)}set(r,n,t){const e=this;function a(l,c,u){const d=So(c);if(!d)throw new Error("header name must be a non-empty string");const f=Y.findKey(e,d);(!f||e[f]===void 0||u===!0||u===void 0&&e[f]!==!1)&&(e[f||c]=gr(l))}const i=(l,c)=>Y.forEach(l,(u,d)=>a(u,d,c));if(Y.isPlainObject(r)||r instanceof this.constructor)i(r,n);else if(Y.isString(r)&&(r=r.trim())&&!Jp(r))i(Yp(r),n);else if(Y.isHeaders(r))for(const[l,c]of r.entries())a(c,l,t);else r!=null&&a(n,r,t);return this}get(r,n){if(r=So(r),r){const t=Y.findKey(this,r);if(t){const e=this[t];if(!n)return e;if(n===!0)return Xp(e);if(Y.isFunction(n))return n.call(this,e,t);if(Y.isRegExp(n))return n.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,n){if(r=So(r),r){const t=Y.findKey(this,r);return!!(t&&this[t]!==void 0&&(!n||$i(this,this[t],t,n)))}return!1}delete(r,n){const t=this;let e=!1;function a(i){if(i=So(i),i){const l=Y.findKey(t,i);l&&(!n||$i(t,t[l],l,n))&&(delete t[l],e=!0)}}return Y.isArray(r)?r.forEach(a):a(r),e}clear(r){const n=Object.keys(this);let t=n.length,e=!1;for(;t--;){const a=n[t];(!r||$i(this,this[a],a,r,!0))&&(delete this[a],e=!0)}return e}normalize(r){const n=this,t={};return Y.forEach(this,(e,a)=>{const i=Y.findKey(t,a);if(i){n[i]=gr(e),delete n[a];return}const l=r?Qp(a):String(a).trim();l!==a&&delete n[a],n[l]=gr(e),t[l]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const n=Object.create(null);return Y.forEach(this,(t,e)=>{t!=null&&t!==!1&&(n[e]=r&&Y.isArray(t)?t.join(", "):t)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,n])=>r+": "+n).join(`
|
|
3
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...n){const t=new this(r);return n.forEach(e=>t.set(e)),t}static accessor(r){const t=(this[Ec]=this[Ec]={accessors:{}}).accessors,e=this.prototype;function a(i){const l=So(i);t[l]||(Zp(e,i),t[l]=!0)}return Y.isArray(r)?r.forEach(a):a(r),this}}yr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(yr.prototype,({value:o},r)=>{let n=r[0].toUpperCase()+r.slice(1);return{get:()=>o,set(t){this[n]=t}}}),Y.freezeMethods(yr);const Pn=yr;function es(o,r){const n=this||qi,t=r||n,e=Pn.from(t.headers);let a=t.data;return Y.forEach(o,function(l){a=l.call(n,a,e.normalize(),r?r.status:void 0)}),e.normalize(),a}function Cc(o){return!!(o&&o.__CANCEL__)}function Ya(o,r,n){Me.call(this,o==null?"canceled":o,Me.ERR_CANCELED,r,n),this.name="CanceledError"}Y.inherits(Ya,Me,{__CANCEL__:!0});function Sc(o,r,n){const t=n.config.validateStatus;!n.status||!t||t(n.status)?o(n):r(new Me("Request failed with status code "+n.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function qp(o){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return r&&r[1]||""}function $p(o,r){o=o||10;const n=new Array(o),t=new Array(o);let e=0,a=0,i;return r=r!==void 0?r:1e3,function(c){const u=Date.now(),d=t[a];i||(i=u),n[e]=c,t[e]=u;let f=a,h=0;for(;f!==e;)h+=n[f++],f=f%o;if(e=(e+1)%o,e===a&&(a=(a+1)%o),u-i<r)return;const p=d&&u-d;return p?Math.round(h*1e3/p):void 0}}function e2(o,r){let n=0,t=1e3/r,e,a;const i=(u,d=Date.now())=>{n=d,e=null,a&&(clearTimeout(a),a=null),o.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=t?i(u,d):(e=u,a||(a=setTimeout(()=>{a=null,i(e)},t-f)))},()=>e&&i(e)]}const _r=(o,r,n=3)=>{let t=0;const e=$p(50,250);return e2(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,c=i-t,u=e(c),d=i<=l;t=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-i)/u:void 0,event:a,lengthComputable:l!=null,[r?"download":"upload"]:!0};o(f)},n)},kc=(o,r)=>{const n=o!=null;return[t=>r[0]({lengthComputable:n,total:o,loaded:t}),r[1]]},Tc=o=>(...r)=>Y.asap(()=>o(...r)),t2=jt.hasStandardBrowserEnv?((o,r)=>n=>(n=new URL(n,jt.origin),o.protocol===n.protocol&&o.host===n.host&&(r||o.port===n.port)))(new URL(jt.origin),jt.navigator&&/(msie|trident)/i.test(jt.navigator.userAgent)):()=>!0,n2=jt.hasStandardBrowserEnv?{write(o,r,n,t,e,a){const i=[o+"="+encodeURIComponent(r)];Y.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Y.isString(t)&&i.push("path="+t),Y.isString(e)&&i.push("domain="+e),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(o){const r=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function a2(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function o2(o,r){return r?o.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):o}function xc(o,r){return o&&!a2(r)?o2(o,r):r}const Bc=o=>o instanceof Pn?{...o}:o;function xa(o,r){r=r||{};const n={};function t(u,d,f,h){return Y.isPlainObject(u)&&Y.isPlainObject(d)?Y.merge.call({caseless:h},u,d):Y.isPlainObject(d)?Y.merge({},d):Y.isArray(d)?d.slice():d}function e(u,d,f,h){if(Y.isUndefined(d)){if(!Y.isUndefined(u))return t(void 0,u,f,h)}else return t(u,d,f,h)}function a(u,d){if(!Y.isUndefined(d))return t(void 0,d)}function i(u,d){if(Y.isUndefined(d)){if(!Y.isUndefined(u))return t(void 0,u)}else return t(void 0,d)}function l(u,d,f){if(f in r)return t(u,d);if(f in o)return t(void 0,u)}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,d,f)=>e(Bc(u),Bc(d),f,!0)};return Y.forEach(Object.keys(Object.assign({},o,r)),function(d){const f=c[d]||e,h=f(o[d],r[d],d);Y.isUndefined(h)&&f!==l||(n[d]=h)}),n}const Ac=o=>{const r=xa({},o);let{data:n,withXSRFToken:t,xsrfHeaderName:e,xsrfCookieName:a,headers:i,auth:l}=r;r.headers=i=Pn.from(i),r.url=yc(xc(r.baseURL,r.url),o.params,o.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(Y.isFormData(n)){if(jt.hasStandardBrowserEnv||jt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(jt.hasStandardBrowserEnv&&(t&&Y.isFunction(t)&&(t=t(r)),t||t!==!1&&t2(r.url))){const u=e&&a&&n2.read(a);u&&i.set(e,u)}return r},r2=typeof XMLHttpRequest<"u"&&function(o){return new Promise(function(n,t){const e=Ac(o);let a=e.data;const i=Pn.from(e.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=e,d,f,h,p,v;function g(){p&&p(),v&&v(),e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}let m=new XMLHttpRequest;m.open(e.method.toUpperCase(),e.url,!0),m.timeout=e.timeout;function _(){if(!m)return;const y=Pn.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:y,config:o,request:m};Sc(function(C){n(C),g()},function(C){t(C),g()},S),m=null}"onloadend"in m?m.onloadend=_:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(_)},m.onabort=function(){!m||(t(new Me("Request aborted",Me.ECONNABORTED,o,m)),m=null)},m.onerror=function(){t(new Me("Network Error",Me.ERR_NETWORK,o,m)),m=null},m.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const S=e.transitional||wc;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),t(new Me(w,S.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,o,m)),m=null},a===void 0&&i.setContentType(null),"setRequestHeader"in m&&Y.forEach(i.toJSON(),function(w,S){m.setRequestHeader(S,w)}),Y.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),l&&l!=="json"&&(m.responseType=e.responseType),u&&([h,v]=_r(u,!0),m.addEventListener("progress",h)),c&&m.upload&&([f,p]=_r(c),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",p)),(e.cancelToken||e.signal)&&(d=y=>{!m||(t(!y||y.type?new Ya(null,o,m):y),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d)));const b=qp(e.url);if(b&&jt.protocols.indexOf(b)===-1){t(new Me("Unsupported protocol "+b+":",Me.ERR_BAD_REQUEST,o));return}m.send(a||null)})},i2=(o,r)=>{const{length:n}=o=o?o.filter(Boolean):[];if(r||n){let t=new AbortController,e;const a=function(u){if(!e){e=!0,l();const d=u instanceof Error?u:this.reason;t.abort(d instanceof Me?d:new Ya(d instanceof Error?d.message:d))}};let i=r&&setTimeout(()=>{i=null,a(new Me(`timeout ${r} of ms exceeded`,Me.ETIMEDOUT))},r);const l=()=>{o&&(i&&clearTimeout(i),i=null,o.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),o=null)};o.forEach(u=>u.addEventListener("abort",a));const{signal:c}=t;return c.unsubscribe=()=>Y.asap(l),c}},s2=function*(o,r){let n=o.byteLength;if(!r||n<r){yield o;return}let t=0,e;for(;t<n;)e=t+r,yield o.slice(t,e),t=e},l2=async function*(o,r){for await(const n of c2(o))yield*s2(n,r)},c2=async function*(o){if(o[Symbol.asyncIterator]){yield*o;return}const r=o.getReader();try{for(;;){const{done:n,value:t}=await r.read();if(n)break;yield t}}finally{await r.cancel()}},Dc=(o,r,n,t)=>{const e=l2(o,r);let a=0,i,l=c=>{i||(i=!0,t&&t(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await e.next();if(u){l(),c.close();return}let f=d.byteLength;if(n){let h=a+=f;n(h)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),e.return()}},{highWaterMark:2})},wr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Pc=wr&&typeof ReadableStream=="function",u2=wr&&(typeof TextEncoder=="function"?(o=>r=>o.encode(r))(new TextEncoder):async o=>new Uint8Array(await new Response(o).arrayBuffer())),Oc=(o,...r)=>{try{return!!o(...r)}catch{return!1}},d2=Pc&&Oc(()=>{let o=!1;const r=new Request(jt.origin,{body:new ReadableStream,method:"POST",get duplex(){return o=!0,"half"}}).headers.has("Content-Type");return o&&!r}),Lc=64*1024,ts=Pc&&Oc(()=>Y.isReadableStream(new Response("").body)),br={stream:ts&&(o=>o.body)};wr&&(o=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!br[r]&&(br[r]=Y.isFunction(o[r])?n=>n[r]():(n,t)=>{throw new Me(`Response type '${r}' is not supported`,Me.ERR_NOT_SUPPORT,t)})})})(new Response);const f2=async o=>{if(o==null)return 0;if(Y.isBlob(o))return o.size;if(Y.isSpecCompliantForm(o))return(await new Request(jt.origin,{method:"POST",body:o}).arrayBuffer()).byteLength;if(Y.isArrayBufferView(o)||Y.isArrayBuffer(o))return o.byteLength;if(Y.isURLSearchParams(o)&&(o=o+""),Y.isString(o))return(await u2(o)).byteLength},h2=async(o,r)=>{const n=Y.toFiniteNumber(o.getContentLength());return n==null?f2(r):n},ns={http:Lp,xhr:r2,fetch:wr&&(async o=>{let{url:r,method:n,data:t,signal:e,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:h}=Ac(o);u=u?(u+"").toLowerCase():"text";let p=i2([e,a&&a.toAbortSignal()],i),v;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let m;try{if(c&&d2&&n!=="get"&&n!=="head"&&(m=await h2(d,t))!==0){let S=new Request(r,{method:"POST",body:t,duplex:"half"}),D;if(Y.isFormData(t)&&(D=S.headers.get("content-type"))&&d.setContentType(D),S.body){const[C,B]=kc(m,_r(Tc(c)));t=Dc(S.body,Lc,C,B)}}Y.isString(f)||(f=f?"include":"omit");const _="credentials"in Request.prototype;v=new Request(r,{...h,signal:p,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:t,duplex:"half",credentials:_?f:void 0});let b=await fetch(v);const y=ts&&(u==="stream"||u==="response");if(ts&&(l||y&&g)){const S={};["status","statusText","headers"].forEach(A=>{S[A]=b[A]});const D=Y.toFiniteNumber(b.headers.get("content-length")),[C,B]=l&&kc(D,_r(Tc(l),!0))||[];b=new Response(Dc(b.body,Lc,C,()=>{B&&B(),g&&g()}),S)}u=u||"text";let w=await br[Y.findKey(br,u)||"text"](b,o);return!y&&g&&g(),await new Promise((S,D)=>{Sc(S,D,{data:w,headers:Pn.from(b.headers),status:b.status,statusText:b.statusText,config:o,request:v})})}catch(_){throw g&&g(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new Me("Network Error",Me.ERR_NETWORK,o,v),{cause:_.cause||_}):Me.from(_,_&&_.code,o,v)}})};Y.forEach(ns,(o,r)=>{if(o){try{Object.defineProperty(o,"name",{value:r})}catch{}Object.defineProperty(o,"adapterName",{value:r})}});const Ic=o=>`- ${o}`,p2=o=>Y.isFunction(o)||o===null||o===!1,Mc={getAdapter:o=>{o=Y.isArray(o)?o:[o];const{length:r}=o;let n,t;const e={};for(let a=0;a<r;a++){n=o[a];let i;if(t=n,!p2(n)&&(t=ns[(i=String(n)).toLowerCase()],t===void 0))throw new Me(`Unknown adapter '${i}'`);if(t)break;e[i||"#"+a]=t}if(!t){const a=Object.entries(e).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=r?a.length>1?`since :
|
|
4
|
-
`+a.map(Ic).join(`
|
|
5
|
-
`):" "+Ic(a[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return t},adapters:ns};function as(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new Ya(null,o)}function Nc(o){return as(o),o.headers=Pn.from(o.headers),o.data=es.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),Mc.getAdapter(o.adapter||qi.adapter)(o).then(function(t){return as(o),t.data=es.call(o,o.transformResponse,t),t.headers=Pn.from(t.headers),t},function(t){return Cc(t)||(as(o),t&&t.response&&(t.response.data=es.call(o,o.transformResponse,t.response),t.response.headers=Pn.from(t.response.headers))),Promise.reject(t)})}const Rc="1.7.9",Er={};["object","boolean","number","function","string","symbol"].forEach((o,r)=>{Er[o]=function(t){return typeof t===o||"a"+(r<1?"n ":" ")+o}});const Vc={};Er.transitional=function(r,n,t){function e(a,i){return"[Axios v"+Rc+"] Transitional option '"+a+"'"+i+(t?". "+t:"")}return(a,i,l)=>{if(r===!1)throw new Me(e(i," has been removed"+(n?" in "+n:"")),Me.ERR_DEPRECATED);return n&&!Vc[i]&&(Vc[i]=!0,console.warn(e(i," has been deprecated since v"+n+" and will be removed in the near future"))),r?r(a,i,l):!0}},Er.spelling=function(r){return(n,t)=>(console.warn(`${t} is likely a misspelling of ${r}`),!0)};function v2(o,r,n){if(typeof o!="object")throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE);const t=Object.keys(o);let e=t.length;for(;e-- >0;){const a=t[e],i=r[a];if(i){const l=o[a],c=l===void 0||i(l,a,o);if(c!==!0)throw new Me("option "+a+" must be "+c,Me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Me("Unknown option "+a,Me.ERR_BAD_OPTION)}}const Cr={assertOptions:v2,validators:Er},Vn=Cr.validators;class Sr{constructor(r){this.defaults=r,this.interceptors={request:new _c,response:new _c}}async request(r,n){try{return await this._request(r,n)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const a=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?a&&!String(t.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(t.stack+=`
|
|
6
|
-
`+a):t.stack=a}catch{}}throw t}}_request(r,n){typeof r=="string"?(n=n||{},n.url=r):n=r||{},n=xa(this.defaults,n);const{transitional:t,paramsSerializer:e,headers:a}=n;t!==void 0&&Cr.assertOptions(t,{silentJSONParsing:Vn.transitional(Vn.boolean),forcedJSONParsing:Vn.transitional(Vn.boolean),clarifyTimeoutError:Vn.transitional(Vn.boolean)},!1),e!=null&&(Y.isFunction(e)?n.paramsSerializer={serialize:e}:Cr.assertOptions(e,{encode:Vn.function,serialize:Vn.function},!0)),Cr.assertOptions(n,{baseUrl:Vn.spelling("baseURL"),withXsrfToken:Vn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&Y.merge(a.common,a[n.method]);a&&Y.forEach(["delete","get","head","post","put","patch","common"],v=>{delete a[v]}),n.headers=Pn.concat(i,a);const l=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let d,f=0,h;if(!c){const v=[Nc.bind(this),void 0];for(v.unshift.apply(v,l),v.push.apply(v,u),h=v.length,d=Promise.resolve(n);f<h;)d=d.then(v[f++],v[f++]);return d}h=l.length;let p=n;for(f=0;f<h;){const v=l[f++],g=l[f++];try{p=v(p)}catch(m){g.call(this,m);break}}try{d=Nc.call(this,p)}catch(v){return Promise.reject(v)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(r){r=xa(this.defaults,r);const n=xc(r.baseURL,r.url);return yc(n,r.params,r.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(r){Sr.prototype[r]=function(n,t){return this.request(xa(t||{},{method:r,url:n,data:(t||{}).data}))}}),Y.forEach(["post","put","patch"],function(r){function n(t){return function(a,i,l){return this.request(xa(l||{},{method:r,headers:t?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Sr.prototype[r]=n(),Sr.prototype[r+"Form"]=n(!0)});const kr=Sr;class os{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const t=this;this.promise.then(e=>{if(!t._listeners)return;let a=t._listeners.length;for(;a-- >0;)t._listeners[a](e);t._listeners=null}),this.promise.then=e=>{let a;const i=new Promise(l=>{t.subscribe(l),a=l}).then(e);return i.cancel=function(){t.unsubscribe(a)},i},r(function(a,i,l){t.reason||(t.reason=new Ya(a,i,l),n(t.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const n=this._listeners.indexOf(r);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const r=new AbortController,n=t=>{r.abort(t)};return this.subscribe(n),r.signal.unsubscribe=()=>this.unsubscribe(n),r.signal}static source(){let r;return{token:new os(function(e){r=e}),cancel:r}}}const m2=os;function g2(o){return function(n){return o.apply(null,n)}}function y2(o){return Y.isObject(o)&&o.isAxiosError===!0}const rs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rs).forEach(([o,r])=>{rs[r]=o});const _2=rs;function Fc(o){const r=new kr(o),n=nc(kr.prototype.request,r);return Y.extend(n,kr.prototype,r,{allOwnKeys:!0}),Y.extend(n,r,null,{allOwnKeys:!0}),n.create=function(e){return Fc(xa(o,e))},n}const kt=Fc(qi);kt.Axios=kr,kt.CanceledError=Ya,kt.CancelToken=m2,kt.isCancel=Cc,kt.VERSION=Rc,kt.toFormData=mr,kt.AxiosError=Me,kt.Cancel=kt.CanceledError,kt.all=function(r){return Promise.all(r)},kt.spread=g2,kt.isAxiosError=y2,kt.mergeConfig=xa,kt.AxiosHeaders=Pn,kt.formToJSON=o=>bc(Y.isHTMLForm(o)?new FormData(o):o),kt.getAdapter=Mc.getAdapter,kt.HttpStatusCode=_2,kt.default=kt;const Hc=kt;var zc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function w2(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function b2(o){var r=o.default;if(typeof r=="function"){var n=function(){return r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(o).forEach(function(t){var e=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(n,t,e.get?e:{enumerable:!0,get:function(){return o[t]}})}),n}var Uc={exports:{}},jc={exports:{}};(function(){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(n,t){return n<<t|n>>>32-t},rotr:function(n,t){return n<<32-t|n>>>t},endian:function(n){if(n.constructor==Number)return r.rotl(n,8)&16711935|r.rotl(n,24)&4278255360;for(var t=0;t<n.length;t++)n[t]=r.endian(n[t]);return n},randomBytes:function(n){for(var t=[];n>0;n--)t.push(Math.floor(Math.random()*256));return t},bytesToWords:function(n){for(var t=[],e=0,a=0;e<n.length;e++,a+=8)t[a>>>5]|=n[e]<<24-a%32;return t},wordsToBytes:function(n){for(var t=[],e=0;e<n.length*32;e+=8)t.push(n[e>>>5]>>>24-e%32&255);return t},bytesToHex:function(n){for(var t=[],e=0;e<n.length;e++)t.push((n[e]>>>4).toString(16)),t.push((n[e]&15).toString(16));return t.join("")},hexToBytes:function(n){for(var t=[],e=0;e<n.length;e+=2)t.push(parseInt(n.substr(e,2),16));return t},bytesToBase64:function(n){for(var t=[],e=0;e<n.length;e+=3)for(var a=n[e]<<16|n[e+1]<<8|n[e+2],i=0;i<4;i++)e*8+i*6<=n.length*8?t.push(o.charAt(a>>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var t=[],e=0,a=0;e<n.length;a=++e%4)a!=0&&t.push((o.indexOf(n.charAt(e-1))&Math.pow(2,-2*a+8)-1)<<a*2|o.indexOf(n.charAt(e))>>>6-a*2);return t}};jc.exports=r})();var is={utf8:{stringToBytes:function(o){return is.bin.stringToBytes(unescape(encodeURIComponent(o)))},bytesToString:function(o){return decodeURIComponent(escape(is.bin.bytesToString(o)))}},bin:{stringToBytes:function(o){for(var r=[],n=0;n<o.length;n++)r.push(o.charCodeAt(n)&255);return r},bytesToString:function(o){for(var r=[],n=0;n<o.length;n++)r.push(String.fromCharCode(o[n]));return r.join("")}}},Gc=is;/*!
|
|
7
|
-
* Determine if an object is a Buffer
|
|
8
|
-
*
|
|
9
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
10
|
-
* @license MIT
|
|
11
|
-
*/var E2=function(o){return o!=null&&(Wc(o)||C2(o)||!!o._isBuffer)};function Wc(o){return!!o.constructor&&typeof o.constructor.isBuffer=="function"&&o.constructor.isBuffer(o)}function C2(o){return typeof o.readFloatLE=="function"&&typeof o.slice=="function"&&Wc(o.slice(0,0))}(function(){var o=jc.exports,r=Gc.utf8,n=E2,t=Gc.bin,e=function(a,i){a.constructor==String?i&&i.encoding==="binary"?a=t.stringToBytes(a):a=r.stringToBytes(a):n(a)?a=Array.prototype.slice.call(a,0):!Array.isArray(a)&&a.constructor!==Uint8Array&&(a=a.toString());for(var l=o.bytesToWords(a),c=a.length*8,u=1732584193,d=-271733879,f=-1732584194,h=271733878,p=0;p<l.length;p++)l[p]=(l[p]<<8|l[p]>>>24)&16711935|(l[p]<<24|l[p]>>>8)&4278255360;l[c>>>5]|=128<<c%32,l[(c+64>>>9<<4)+14]=c;for(var v=e._ff,g=e._gg,m=e._hh,_=e._ii,p=0;p<l.length;p+=16){var b=u,y=d,w=f,S=h;u=v(u,d,f,h,l[p+0],7,-680876936),h=v(h,u,d,f,l[p+1],12,-389564586),f=v(f,h,u,d,l[p+2],17,606105819),d=v(d,f,h,u,l[p+3],22,-1044525330),u=v(u,d,f,h,l[p+4],7,-176418897),h=v(h,u,d,f,l[p+5],12,1200080426),f=v(f,h,u,d,l[p+6],17,-1473231341),d=v(d,f,h,u,l[p+7],22,-45705983),u=v(u,d,f,h,l[p+8],7,1770035416),h=v(h,u,d,f,l[p+9],12,-1958414417),f=v(f,h,u,d,l[p+10],17,-42063),d=v(d,f,h,u,l[p+11],22,-1990404162),u=v(u,d,f,h,l[p+12],7,1804603682),h=v(h,u,d,f,l[p+13],12,-40341101),f=v(f,h,u,d,l[p+14],17,-1502002290),d=v(d,f,h,u,l[p+15],22,1236535329),u=g(u,d,f,h,l[p+1],5,-165796510),h=g(h,u,d,f,l[p+6],9,-1069501632),f=g(f,h,u,d,l[p+11],14,643717713),d=g(d,f,h,u,l[p+0],20,-373897302),u=g(u,d,f,h,l[p+5],5,-701558691),h=g(h,u,d,f,l[p+10],9,38016083),f=g(f,h,u,d,l[p+15],14,-660478335),d=g(d,f,h,u,l[p+4],20,-405537848),u=g(u,d,f,h,l[p+9],5,568446438),h=g(h,u,d,f,l[p+14],9,-1019803690),f=g(f,h,u,d,l[p+3],14,-187363961),d=g(d,f,h,u,l[p+8],20,1163531501),u=g(u,d,f,h,l[p+13],5,-1444681467),h=g(h,u,d,f,l[p+2],9,-51403784),f=g(f,h,u,d,l[p+7],14,1735328473),d=g(d,f,h,u,l[p+12],20,-1926607734),u=m(u,d,f,h,l[p+5],4,-378558),h=m(h,u,d,f,l[p+8],11,-2022574463),f=m(f,h,u,d,l[p+11],16,1839030562),d=m(d,f,h,u,l[p+14],23,-35309556),u=m(u,d,f,h,l[p+1],4,-1530992060),h=m(h,u,d,f,l[p+4],11,1272893353),f=m(f,h,u,d,l[p+7],16,-155497632),d=m(d,f,h,u,l[p+10],23,-1094730640),u=m(u,d,f,h,l[p+13],4,681279174),h=m(h,u,d,f,l[p+0],11,-358537222),f=m(f,h,u,d,l[p+3],16,-722521979),d=m(d,f,h,u,l[p+6],23,76029189),u=m(u,d,f,h,l[p+9],4,-640364487),h=m(h,u,d,f,l[p+12],11,-421815835),f=m(f,h,u,d,l[p+15],16,530742520),d=m(d,f,h,u,l[p+2],23,-995338651),u=_(u,d,f,h,l[p+0],6,-198630844),h=_(h,u,d,f,l[p+7],10,1126891415),f=_(f,h,u,d,l[p+14],15,-1416354905),d=_(d,f,h,u,l[p+5],21,-57434055),u=_(u,d,f,h,l[p+12],6,1700485571),h=_(h,u,d,f,l[p+3],10,-1894986606),f=_(f,h,u,d,l[p+10],15,-1051523),d=_(d,f,h,u,l[p+1],21,-2054922799),u=_(u,d,f,h,l[p+8],6,1873313359),h=_(h,u,d,f,l[p+15],10,-30611744),f=_(f,h,u,d,l[p+6],15,-1560198380),d=_(d,f,h,u,l[p+13],21,1309151649),u=_(u,d,f,h,l[p+4],6,-145523070),h=_(h,u,d,f,l[p+11],10,-1120210379),f=_(f,h,u,d,l[p+2],15,718787259),d=_(d,f,h,u,l[p+9],21,-343485551),u=u+b>>>0,d=d+y>>>0,f=f+w>>>0,h=h+S>>>0}return o.endian([u,d,f,h])};e._ff=function(a,i,l,c,u,d,f){var h=a+(i&l|~i&c)+(u>>>0)+f;return(h<<d|h>>>32-d)+i},e._gg=function(a,i,l,c,u,d,f){var h=a+(i&c|l&~c)+(u>>>0)+f;return(h<<d|h>>>32-d)+i},e._hh=function(a,i,l,c,u,d,f){var h=a+(i^l^c)+(u>>>0)+f;return(h<<d|h>>>32-d)+i},e._ii=function(a,i,l,c,u,d,f){var h=a+(l^(i|~c))+(u>>>0)+f;return(h<<d|h>>>32-d)+i},e._blocksize=16,e._digestsize=16,Uc.exports=function(a,i){if(a==null)throw new Error("Illegal argument "+a);var l=o.wordsToBytes(e(a,i));return i&&i.asBytes?l:i&&i.asString?t.bytesToString(l):o.bytesToHex(l)}})();const S2="dd05f1c54d63749eda95f9fa6d49v442a";class Kc{static sortAsc(r){const n=new Array;let t=0;for(const i in r)n[t]=i,t++;const e=n.sort(),a={};for(const i in e)a[e[i]]=r[e[i]];return a}static getSign(r,n){const t=this.parseQueryString(r),e=this.mergeObject(t,n),a=this.sortAsc(e);return Uc.exports(JSON.stringify(a)+S2).toUpperCase()}static parseQueryString(r){const n=/^[^\?]+\?([\w\W]+)$/,t=/([^&=]+)=([\w\W]*?)(&|$|#)/g,e=n.exec(r),a={};let i=r.substring(r.lastIndexOf("/")+1);if(i.includes(",")&&(i.includes("?")&&(i=i.substring(0,i.indexOf("?"))),a["x-path-variable"]=decodeURIComponent(i)),e&&e[1]){const l=e[1];let c;for(;(c=t.exec(l))!=null;)this.myIsNaN(c[2])&&(c[2]=c[2].toString()),a[c[1]]=c[2]}return a}static mergeObject(r,n){if(n&&Object.keys(n).length>0)for(const t in n)n.hasOwnProperty(t)===!0&&(this.myIsNaN(n[t])&&(n[t]=n[t].toString()),r[t]=n[t]);return r}static urlEncode(r,n,t){if(r==null)return"";let e="";const a=typeof r;if(a=="string"||a=="number"||a=="boolean")e+="&"+n+"="+(t==null||t?encodeURIComponent(r):r);else for(const i in r){const l=n==null?i:n+(r instanceof Array?"["+i+"]":"."+i);e+=this.urlEncode(r[i],l,t)}return e}static getDateTimeToString(){const r=new Date,n=r.getFullYear();let t=r.getMonth()+1,e=r.getDate();t<10&&(t="0"+t),e<10&&(e="0"+e);let a=r.getHours(),i=r.getMinutes(),l=r.getSeconds();const c=r.getMilliseconds();return a<10&&(a="0"+a),i<10&&(i="0"+i),l<10&&(l="0"+l),c<10&&(l="0"+c),n+""+t+e+a+i+l}static myIsNaN(r){return typeof r=="number"&&!isNaN(r)}}var Yc;const ss=typeof window<"u",k2=o=>typeof o=="function",T2=o=>typeof o=="string",ls=()=>{};ss&&((Yc=window==null?void 0:window.navigator)==null?void 0:Yc.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ko(o){return typeof o=="function"?o():s.unref(o)}function Xc(o,r){function n(...t){return new Promise((e,a)=>{Promise.resolve(o(()=>r.apply(this,t),{fn:r,thisArg:this,args:t})).then(e).catch(a)})}return n}const Jc=o=>o();function x2(o,r={}){let n,t,e=ls;const a=l=>{clearTimeout(l),e(),e=ls};return l=>{const c=ko(o),u=ko(r.maxWait);return n&&a(n),c<=0||u!==void 0&&u<=0?(t&&(a(t),t=null),Promise.resolve(l())):new Promise((d,f)=>{e=r.rejectOnCancel?f:d,u&&!t&&(t=setTimeout(()=>{n&&a(n),t=null,d(l())},u)),n=setTimeout(()=>{t&&a(t),t=null,d(l())},c)})}}function B2(o=Jc){const r=s.ref(!0);function n(){r.value=!1}function t(){r.value=!0}const e=(...a)=>{r.value&&o(...a)};return{isActive:s.readonly(r),pause:n,resume:t,eventFilter:e}}function A2(o){return o}function Qc(o){return s.getCurrentScope()?(s.onScopeDispose(o),!0):!1}function D2(o,r=200,n={}){return Xc(x2(r,n),o)}function P2(o,r=!0){s.getCurrentInstance()?s.onMounted(o):r?o():s.nextTick(o)}var Zc=Object.getOwnPropertySymbols,O2=Object.prototype.hasOwnProperty,L2=Object.prototype.propertyIsEnumerable,I2=(o,r)=>{var n={};for(var t in o)O2.call(o,t)&&r.indexOf(t)<0&&(n[t]=o[t]);if(o!=null&&Zc)for(var t of Zc(o))r.indexOf(t)<0&&L2.call(o,t)&&(n[t]=o[t]);return n};function M2(o,r,n={}){const t=n,{eventFilter:e=Jc}=t,a=I2(t,["eventFilter"]);return s.watch(o,Xc(e,r),a)}var N2=Object.defineProperty,R2=Object.defineProperties,V2=Object.getOwnPropertyDescriptors,Tr=Object.getOwnPropertySymbols,qc=Object.prototype.hasOwnProperty,$c=Object.prototype.propertyIsEnumerable,eu=(o,r,n)=>r in o?N2(o,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[r]=n,F2=(o,r)=>{for(var n in r||(r={}))qc.call(r,n)&&eu(o,n,r[n]);if(Tr)for(var n of Tr(r))$c.call(r,n)&&eu(o,n,r[n]);return o},H2=(o,r)=>R2(o,V2(r)),z2=(o,r)=>{var n={};for(var t in o)qc.call(o,t)&&r.indexOf(t)<0&&(n[t]=o[t]);if(o!=null&&Tr)for(var t of Tr(o))r.indexOf(t)<0&&$c.call(o,t)&&(n[t]=o[t]);return n};function U2(o,r,n={}){const t=n,{eventFilter:e}=t,a=z2(t,["eventFilter"]),{eventFilter:i,pause:l,resume:c,isActive:u}=B2(e);return{stop:M2(o,r,H2(F2({},a),{eventFilter:i})),pause:l,resume:c,isActive:u}}function tu(o){var r;const n=ko(o);return(r=n==null?void 0:n.$el)!=null?r:n}const xr=ss?window:void 0;function nu(...o){let r,n,t,e;if(T2(o[0])||Array.isArray(o[0])?([n,t,e]=o,r=xr):[r,n,t,e]=o,!r)return ls;Array.isArray(n)||(n=[n]),Array.isArray(t)||(t=[t]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},l=(d,f,h,p)=>(d.addEventListener(f,h,p),()=>d.removeEventListener(f,h,p)),c=s.watch(()=>[tu(r),ko(e)],([d,f])=>{i(),d&&a.push(...n.flatMap(h=>t.map(p=>l(d,h,p,f))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return Qc(u),u}function j2(o,r=!1){const n=s.ref(),t=()=>n.value=Boolean(o());return t(),P2(t,r),n}const cs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},us="__vueuse_ssr_handlers__";cs[us]=cs[us]||{};const G2=cs[us];function W2(o,r){return G2[o]||r}function K2(o){return o==null?"any":o instanceof Set?"set":o instanceof Map?"map":o instanceof Date?"date":typeof o=="boolean"?"boolean":typeof o=="string"?"string":typeof o=="object"?"object":Number.isNaN(o)?"any":"number"}var Y2=Object.defineProperty,au=Object.getOwnPropertySymbols,X2=Object.prototype.hasOwnProperty,J2=Object.prototype.propertyIsEnumerable,ou=(o,r,n)=>r in o?Y2(o,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[r]=n,ru=(o,r)=>{for(var n in r||(r={}))X2.call(r,n)&&ou(o,n,r[n]);if(au)for(var n of au(r))J2.call(r,n)&&ou(o,n,r[n]);return o};const Q2={boolean:{read:o=>o==="true",write:o=>String(o)},object:{read:o=>JSON.parse(o),write:o=>JSON.stringify(o)},number:{read:o=>Number.parseFloat(o),write:o=>String(o)},any:{read:o=>o,write:o=>String(o)},string:{read:o=>o,write:o=>String(o)},map:{read:o=>new Map(JSON.parse(o)),write:o=>JSON.stringify(Array.from(o.entries()))},set:{read:o=>new Set(JSON.parse(o)),write:o=>JSON.stringify(Array.from(o))},date:{read:o=>new Date(o),write:o=>o.toISOString()}},iu="vueuse-storage";function Z2(o,r,n,t={}){var e;const{flush:a="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:d,window:f=xr,eventFilter:h,onError:p=B=>{console.error(B)}}=t,v=(d?s.shallowRef:s.ref)(r);if(!n)try{n=W2("getDefaultStorage",()=>{var B;return(B=xr)==null?void 0:B.localStorage})()}catch(B){p(B)}if(!n)return v;const g=ko(r),m=K2(g),_=(e=t.serializer)!=null?e:Q2[m],{pause:b,resume:y}=U2(v,()=>w(v.value),{flush:a,deep:i,eventFilter:h});return f&&l&&(nu(f,"storage",C),nu(f,iu,D)),C(),v;function w(B){try{if(B==null)n.removeItem(o);else{const A=_.write(B),L=n.getItem(o);L!==A&&(n.setItem(o,A),f&&f.dispatchEvent(new CustomEvent(iu,{detail:{key:o,oldValue:L,newValue:A,storageArea:n}})))}}catch(A){p(A)}}function S(B){const A=B?B.newValue:n.getItem(o);if(A==null)return c&&g!==null&&n.setItem(o,_.write(g)),g;if(!B&&u){const L=_.read(A);return k2(u)?u(L,g):m==="object"&&!Array.isArray(L)?ru(ru({},g),L):L}else return typeof A!="string"?A:_.read(A)}function D(B){C(B.detail)}function C(B){if(!(B&&B.storageArea!==n)){if(B&&B.key==null){v.value=g;return}if(!(B&&B.key!==o)){b();try{v.value=S(B)}catch(A){p(A)}finally{B?s.nextTick(y):y()}}}}}var su=Object.getOwnPropertySymbols,q2=Object.prototype.hasOwnProperty,$2=Object.prototype.propertyIsEnumerable,e0=(o,r)=>{var n={};for(var t in o)q2.call(o,t)&&r.indexOf(t)<0&&(n[t]=o[t]);if(o!=null&&su)for(var t of su(o))r.indexOf(t)<0&&$2.call(o,t)&&(n[t]=o[t]);return n};function t0(o,r,n={}){const t=n,{window:e=xr}=t,a=e0(t,["window"]);let i;const l=j2(()=>e&&"ResizeObserver"in e),c=()=>{i&&(i.disconnect(),i=void 0)},u=s.watch(()=>tu(o),f=>{c(),l.value&&e&&f&&(i=new ResizeObserver(r),i.observe(f,a))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return Qc(d),{isSupported:l,stop:d}}var lu;(function(o){o.UP="UP",o.RIGHT="RIGHT",o.DOWN="DOWN",o.LEFT="LEFT",o.NONE="NONE"})(lu||(lu={}));var n0=Object.defineProperty,cu=Object.getOwnPropertySymbols,a0=Object.prototype.hasOwnProperty,o0=Object.prototype.propertyIsEnumerable,uu=(o,r,n)=>r in o?n0(o,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[r]=n,r0=(o,r)=>{for(var n in r||(r={}))a0.call(r,n)&&uu(o,n,r[n]);if(cu)for(var n of cu(r))o0.call(r,n)&&uu(o,n,r[n]);return o};r0({linear:A2},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]}),Hc.defaults.headers["Content-Type"]="application/json;charset=utf-8";const du=Z2("Admin-Token",null),fu=()=>du.value,i0=()=>du.value=null,s0=()=>localStorage.getItem("language")||"zh_CN";let Ba={baseURL:"/dev-api",timeout:5e4,clientId:""};function l0(o){o.baseURL&&(Ba.baseURL=o.baseURL),o.timeout&&(Ba.timeout=o.timeout),o.clientId&&(Ba.clientId=o.clientId),hu()}let ds;function hu(){ds=Hc.create({baseURL:Ba.baseURL,timeout:Ba.timeout}),c0(ds)}function c0(o){o.interceptors.request.use(r=>{var t,e,a,i;r.headers["Content-Language"]=s0(),(t=window.pgzHttpConfig)!=null&&t.clientId?r.headers.clientid=window.pgzHttpConfig.clientId:Ba.clientId&&(r.headers.clientid=Ba.clientId);const n=((e=r.headers)==null?void 0:e.isToken)===!1;return(a=r.headers)==null||a.repeatSubmit,(i=r.headers)==null||i.isEncrypt,fu()&&!n&&(r.headers.Authorization="Bearer "+fu()),localStorage.getItem("tenantId")&&(r.headers["X-Tenant-Id"]=localStorage.getItem("tenantId")),r},r=>(console.log(r),Promise.reject(r))),o.interceptors.response.use(r=>{const n=r.data;if(r.request.responseType==="blob"||r.request.responseType==="arraybuffer")return n;const t=n.code||200,e=n.msg||"\u7CFB\u7EDF\u672A\u77E5\u9519\u8BEF\uFF0C\u8BF7\u53CD\u9988\u7ED9\u7BA1\u7406\u5458";return t===401?(console.log("\u767B\u5F55\u72B6\u6001\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),i0(),Promise.reject("\u767B\u5F55\u72B6\u6001\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55")):t===500?(console.error(e),Promise.reject(new Error(e))):t!==200?(console.error(e),Promise.reject(e)):n},r=>{console.log("err"+r);let{message:n}=r;return n==="Network Error"?n="\u540E\u7AEF\u63A5\u53E3\u8FDE\u63A5\u5F02\u5E38":n.includes("timeout")?n="\u7CFB\u7EDF\u63A5\u53E3\u8BF7\u6C42\u8D85\u65F6":n.includes("Request failed with status code")&&(n="\u7CFB\u7EDF\u63A5\u53E3"+n.substring(n.length-3)+"\u5F02\u5E38"),console.error(n),Promise.reject(r)})}hu();function To(o,r){const t={"X-Sign":Kc.getSign(o,r),"X-TIMESTAMP":Kc.getDateTimeToString()},e=o.includes("?"),a={url:o,method:"get",params:e?void 0:r,headers:t};return(o.startsWith("http://")||o.startsWith("https://"))&&(a.baseURL=""),ds(a)}function fs(o,r=500,n,t){let e=null,a=!1;const i=function(...l){return new Promise((c,u)=>{if(e&&clearTimeout(e),n&&!a){try{const d=o.apply(this,l);t&&t(d),c(d)}catch(d){u(d)}a=!0}else e=setTimeout(()=>{try{const d=o.apply(this,l);t&&t(d),c(d)}catch(d){u(d)}a=!1,e=null},r)})};return i.cancel=function(){e&&clearTimeout(e),a=!1,e=null},i}function u0(o,r,n={leading:!1,trailing:!0}){let t=null,e=0;const{leading:a,trailing:i}=n,l=function(...c){const u=Date.now();!e&&!a&&(e=u);const d=r-(u-e);d<=0&&(t&&(clearTimeout(t),t=null),e=u,o.apply(this,c)),i&&!t&&(t=setTimeout(()=>{e=a?Date.now():0,t=null,o.apply(this,c)},d))};return l.cancel=function(){t&&clearTimeout(t),t=null,e=0},l}function d0(o){return o.replace(/([A-Z])/g,"_$1").toLowerCase()}function f0(o,r=2,n=",",t=".",e="",a=""){if(Number(o)===0)return Number(o).toFixed(r);if(!o)return"";o=Number(o).toFixed(r),o+="";const i=o.split(".");let l=i[0];const c=i.length>1?t+i[1]:"",u=/(\d+)(\d{3})/;function d(f){return Object.prototype.toString.call(f)==="[object Number]"}if(n&&!d(n))for(;u.test(l);)l=l.replace(u,"$1"+n+"$2");return e+l+c+a}/*! Element Plus Icons Vue v2.3.1 */var h0=s.defineComponent({name:"AddLocation",__name:"add-location",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),s.createElementVNode("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),p0=h0,v0=s.defineComponent({name:"Aim",__name:"aim",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),m0=v0,g0=s.defineComponent({name:"AlarmClock",__name:"alarm-clock",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),s.createElementVNode("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),y0=g0,_0=s.defineComponent({name:"Apple",__name:"apple",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z"})]))}}),w0=_0,b0=s.defineComponent({name:"ArrowDownBold",__name:"arrow-down-bold",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"})]))}}),E0=b0,C0=s.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),Br=C0,S0=s.defineComponent({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"})]))}}),k0=S0,T0=s.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),x0=T0,B0=s.defineComponent({name:"ArrowRightBold",__name:"arrow-right-bold",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"})]))}}),A0=B0,D0=s.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),P0=D0,O0=s.defineComponent({name:"ArrowUpBold",__name:"arrow-up-bold",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"})]))}}),L0=O0,I0=s.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),pu=I0,M0=s.defineComponent({name:"Avatar",__name:"avatar",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),N0=M0,R0=s.defineComponent({name:"Back",__name:"back",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),s.createElementVNode("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),V0=R0,F0=s.defineComponent({name:"Baseball",__name:"baseball",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6zm45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),s.createElementVNode("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896zM108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1736.64 1736.64 0 0 1-11.392-65.728z"})]))}}),H0=F0,z0=s.defineComponent({name:"Basketball",__name:"basketball",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M778.752 788.224a382.464 382.464 0 0 0 116.032-245.632 256.512 256.512 0 0 0-241.728-13.952 762.88 762.88 0 0 1 125.696 259.584zm-55.04 44.224a699.648 699.648 0 0 0-125.056-269.632 256.128 256.128 0 0 0-56.064 331.968 382.72 382.72 0 0 0 181.12-62.336m-254.08 61.248A320.128 320.128 0 0 1 557.76 513.6a715.84 715.84 0 0 0-48.192-48.128 320.128 320.128 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.128 256.128 0 0 0 331.072-56.448 699.648 699.648 0 0 0-268.8-124.352 382.656 382.656 0 0 0-62.272 180.8m106.56-235.84a762.88 762.88 0 0 1 258.688 125.056 256.512 256.512 0 0 0-13.44-241.088A382.464 382.464 0 0 0 235.84 245.248zm318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a779.84 779.84 0 0 1 66.176 66.112 320.832 320.832 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),U0=z0,j0=s.defineComponent({name:"BellFilled",__name:"bell-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),G0=j0,W0=s.defineComponent({name:"Bell",__name:"bell",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),s.createElementVNode("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),s.createElementVNode("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),K0=W0,Y0=s.defineComponent({name:"Bicycle",__name:"bicycle",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),s.createElementVNode("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),s.createElementVNode("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),s.createElementVNode("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),X0=Y0,J0=s.defineComponent({name:"BottomLeft",__name:"bottom-left",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),s.createElementVNode("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z"})]))}}),Q0=J0,Z0=s.defineComponent({name:"BottomRight",__name:"bottom-right",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),s.createElementVNode("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),q0=Z0,$0=s.defineComponent({name:"Bottom",__name:"bottom",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),ev=$0,tv=s.defineComponent({name:"Bowl",__name:"bowl",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M714.432 704a351.744 351.744 0 0 0 148.16-256H161.408a351.744 351.744 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),nv=tv,av=s.defineComponent({name:"Box",__name:"box",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64z"}),s.createElementVNode("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),s.createElementVNode("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),ov=av,rv=s.defineComponent({name:"Briefcase",__name:"briefcase",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),iv=rv,sv=s.defineComponent({name:"BrushFilled",__name:"brush-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),lv=sv,cv=s.defineComponent({name:"Brush",__name:"brush",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z"})]))}}),uv=cv,dv=s.defineComponent({name:"Burger",__name:"burger",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),fv=dv,hv=s.defineComponent({name:"Calendar",__name:"calendar",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),pv=hv,vv=s.defineComponent({name:"CameraFilled",__name:"camera-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),mv=vv,gv=s.defineComponent({name:"Camera",__name:"camera",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),yv=gv,_v=s.defineComponent({name:"CaretBottom",__name:"caret-bottom",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),wv=_v,bv=s.defineComponent({name:"CaretLeft",__name:"caret-left",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),Ev=bv,Cv=s.defineComponent({name:"CaretRight",__name:"caret-right",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),Sv=Cv,kv=s.defineComponent({name:"CaretTop",__name:"caret-top",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),vu=kv,Tv=s.defineComponent({name:"Cellphone",__name:"cellphone",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),xv=Tv,Bv=s.defineComponent({name:"ChatDotRound",__name:"chat-dot-round",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),Av=Bv,Dv=s.defineComponent({name:"ChatDotSquare",__name:"chat-dot-square",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"})]))}}),Pv=Dv,Ov=s.defineComponent({name:"ChatLineRound",__name:"chat-line-round",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"}),s.createElementVNode("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),Lv=Ov,Iv=s.defineComponent({name:"ChatLineSquare",__name:"chat-line-square",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),s.createElementVNode("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),Mv=Iv,Nv=s.defineComponent({name:"ChatRound",__name:"chat-round",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),Rv=Nv,Vv=s.defineComponent({name:"ChatSquare",__name:"chat-square",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),Fv=Vv,Hv=s.defineComponent({name:"Check",__name:"check",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),zv=Hv,Uv=s.defineComponent({name:"Checked",__name:"checked",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),jv=Uv,Gv=s.defineComponent({name:"Cherry",__name:"cherry",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6zM288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),Wv=Gv,Kv=s.defineComponent({name:"Chicken",__name:"chicken",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.688 106.688 0 0 1-26.176-19.072 106.688 106.688 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112zm57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52-3.52 56.32z"})]))}}),Yv=Kv,Xv=s.defineComponent({name:"ChromeFilled",__name:"chrome-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.372 212.372 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67z"}),s.createElementVNode("path",{fill:"currentColor",d:"M576.79 401.63a127.92 127.92 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128.005 128.005 0 0 0-2.16 127.44l1.24 2.13a127.906 127.906 0 0 0 46.36 46.61 127.907 127.907 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.984 127.984 0 0 0 .29-127.46 127.957 127.957 0 0 0-46.36-46.91"}),s.createElementVNode("path",{fill:"currentColor",d:"M394.45 333.96A213.336 213.336 0 0 1 512 298.67h369.58A426.503 426.503 0 0 0 512 85.34a425.598 425.598 0 0 0-171.74 35.98 425.644 425.644 0 0 0-142.62 102.22l118.14 204.63a213.397 213.397 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.284 213.284 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.315 213.315 0 0 1-122.77-21.91z"})]))}}),Jv=Xv,Qv=s.defineComponent({name:"CircleCheckFilled",__name:"circle-check-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Zv=Qv,qv=s.defineComponent({name:"CircleCheck",__name:"circle-check",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),s.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),mu=qv,$v=s.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),e1=$v,t1=s.defineComponent({name:"CircleClose",__name:"circle-close",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),n1=t1,a1=s.defineComponent({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0v147.2z"})]))}}),o1=a1,r1=s.defineComponent({name:"CirclePlus",__name:"circle-plus",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),s.createElementVNode("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),i1=r1,s1=s.defineComponent({name:"Clock",__name:"clock",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),s.createElementVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),l1=s1,c1=s.defineComponent({name:"CloseBold",__name:"close-bold",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"})]))}}),u1=c1,d1=s.defineComponent({name:"Close",__name:"close",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),f1=d1,h1=s.defineComponent({name:"Cloudy",__name:"cloudy",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),p1=h1,v1=s.defineComponent({name:"CoffeeCup",__name:"coffee-cup",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),m1=v1,g1=s.defineComponent({name:"Coffee",__name:"coffee",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64h493.184m-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784m68.736 64 36.544 512H708.16l36.544-512z"})]))}}),y1=g1,_1=s.defineComponent({name:"Coin",__name:"coin",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"}),s.createElementVNode("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),w1=_1,b1=s.defineComponent({name:"ColdDrink",__name:"cold-drink",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.064 192.064 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),E1=b1,C1=s.defineComponent({name:"CollectionTag",__name:"collection-tag",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),S1=C1,k1=s.defineComponent({name:"Collection",__name:"collection",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),s.createElementVNode("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),T1=k1,x1=s.defineComponent({name:"Comment",__name:"comment",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),B1=x1,A1=s.defineComponent({name:"Compass",__name:"compass",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),s.createElementVNode("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),D1=A1,P1=s.defineComponent({name:"Connection",__name:"connection",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),s.createElementVNode("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.064 192.064 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),O1=P1,L1=s.defineComponent({name:"Coordinate",__name:"coordinate",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),s.createElementVNode("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),I1=L1,M1=s.defineComponent({name:"CopyDocument",__name:"copy-document",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),s.createElementVNode("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),N1=M1,R1=s.defineComponent({name:"Cpu",__name:"cpu",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),V1=R1,F1=s.defineComponent({name:"CreditCard",__name:"credit-card",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.352 52.352 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.352 52.352 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.352 52.352 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.352 52.352 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448-20.864 11.136-41.6 17.088-98.56 17.088H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.288 116.288 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448 20.864-11.136 41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384 11.136 20.864 17.088 41.6 17.088 98.56z"}),s.createElementVNode("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),H1=F1,z1=s.defineComponent({name:"Crop",__name:"crop",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),s.createElementVNode("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),U1=z1,j1=s.defineComponent({name:"DArrowLeft",__name:"d-arrow-left",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),G1=j1,W1=s.defineComponent({name:"DArrowRight",__name:"d-arrow-right",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),K1=W1,Y1=s.defineComponent({name:"DCaret",__name:"d-caret",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),X1=Y1,J1=s.defineComponent({name:"DataAnalysis",__name:"data-analysis",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),Q1=J1,Z1=s.defineComponent({name:"DataBoard",__name:"data-board",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),s.createElementVNode("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),s.createElementVNode("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),q1=Z1,$1=s.defineComponent({name:"DataLine",__name:"data-line",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),em=$1,tm=s.defineComponent({name:"DeleteFilled",__name:"delete-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),nm=tm,am=s.defineComponent({name:"DeleteLocation",__name:"delete-location",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),s.createElementVNode("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),om=am,rm=s.defineComponent({name:"Delete",__name:"delete",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),im=rm,sm=s.defineComponent({name:"Dessert",__name:"dessert",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.808 143.808 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.808 143.808 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0h140.48m339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),lm=sm,cm=s.defineComponent({name:"Discount",__name:"discount",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),um=cm,dm=s.defineComponent({name:"DishDot",__name:"dish-dot",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.192 448.192 0 0 1 955.392 768H68.544A448.192 448.192 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),fm=dm,hm=s.defineComponent({name:"Dish",__name:"dish",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),pm=hm,vm=s.defineComponent({name:"DocumentAdd",__name:"document-add",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),mm=vm,gm=s.defineComponent({name:"DocumentChecked",__name:"document-checked",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),ym=gm,_m=s.defineComponent({name:"DocumentCopy",__name:"document-copy",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),wm=_m,bm=s.defineComponent({name:"DocumentDelete",__name:"document-delete",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z"})]))}}),Em=bm,Cm=s.defineComponent({name:"DocumentRemove",__name:"document-remove",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),Sm=Cm,km=s.defineComponent({name:"Document",__name:"document",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Tm=km,xm=s.defineComponent({name:"Download",__name:"download",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),Bm=xm,Am=s.defineComponent({name:"Drizzling",__name:"drizzling",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),Dm=Am,Pm=s.defineComponent({name:"EditPen",__name:"edit-pen",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64h-448z"})]))}}),Om=Pm,Lm=s.defineComponent({name:"Edit",__name:"edit",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),s.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),gu=Lm,Im=s.defineComponent({name:"ElemeFilled",__name:"eleme-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.688 330.688 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.552 47.552 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.304 234.304 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.552 47.552 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),Mm=Im,Nm=s.defineComponent({name:"Eleme",__name:"eleme",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24zm526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.232 63.232 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8l71.04-46.08z"})]))}}),Rm=Nm,Vm=s.defineComponent({name:"ElementPlus",__name:"element-plus",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6c12.8-5.1 25.6-5.1 38.4 0 0 0 279 161.3 309.8 179.2 17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4l220.1-128zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64l-2.5-38.4z"})]))}}),Fm=Vm,Hm=s.defineComponent({name:"Expand",__name:"expand",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),zm=Hm,Um=s.defineComponent({name:"Failed",__name:"failed",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),jm=Um,Gm=s.defineComponent({name:"Female",__name:"female",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),Wm=Gm,Km=s.defineComponent({name:"Files",__name:"files",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),Ym=Km,Xm=s.defineComponent({name:"Film",__name:"film",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),Jm=Xm,Qm=s.defineComponent({name:"Filter",__name:"filter",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),Zm=Qm,qm=s.defineComponent({name:"Finished",__name:"finished",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),$m=qm,eg=s.defineComponent({name:"FirstAidKit",__name:"first-aid-kit",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),s.createElementVNode("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),tg=eg,ng=s.defineComponent({name:"Flag",__name:"flag",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),ag=ng,og=s.defineComponent({name:"Fold",__name:"fold",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),rg=og,ig=s.defineComponent({name:"FolderAdd",__name:"folder-add",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),sg=ig,lg=s.defineComponent({name:"FolderChecked",__name:"folder-checked",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),cg=lg,ug=s.defineComponent({name:"FolderDelete",__name:"folder-delete",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),dg=ug,fg=s.defineComponent({name:"FolderOpened",__name:"folder-opened",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),hg=fg,pg=s.defineComponent({name:"FolderRemove",__name:"folder-remove",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),vg=pg,mg=s.defineComponent({name:"Folder",__name:"folder",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),gg=mg,yg=s.defineComponent({name:"Food",__name:"food",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),_g=yg,wg=s.defineComponent({name:"Football",__name:"football",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),s.createElementVNode("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a385.984 385.984 0 0 1-80.448-91.648zm653.696-5.312a385.92 385.92 0 0 1-83.776 96.96l-32.512-56.384a322.923 322.923 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184zM465.984 445.248l11.136-63.104a323.584 323.584 0 0 0 69.76 0l11.136 63.104a387.968 387.968 0 0 1-92.032 0m-62.72-12.8A381.824 381.824 0 0 1 320 396.544l32-55.424a319.885 319.885 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.824 381.824 0 0 1-83.328 35.84l-11.2-63.552A319.885 319.885 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.92 385.92 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072zm657.536.128a1442.759 1442.759 0 0 1-49.024 43.072 321.408 321.408 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408zM465.92 578.752a387.968 387.968 0 0 1 92.032 0l-11.136 63.104a323.584 323.584 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a319.885 319.885 0 0 0-62.464 27.712L320 627.392a381.824 381.824 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.272 318.272 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),bg=wg,Eg=s.defineComponent({name:"ForkSpoon",__name:"fork-spoon",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56zM672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),Cg=Eg,Sg=s.defineComponent({name:"Fries",__name:"fries",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.744 95.744 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128.128 128.128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132.405 132.405 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),kg=Sg,Tg=s.defineComponent({name:"FullScreen",__name:"full-screen",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),xg=Tg,Bg=s.defineComponent({name:"GobletFull",__name:"goblet-full",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0zM544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),Ag=Bg,Dg=s.defineComponent({name:"GobletSquareFull",__name:"goblet-square-full",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256v142.912zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952.32 952.32 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),Pg=Dg,Og=s.defineComponent({name:"GobletSquare",__name:"goblet-square",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),Lg=Og,Ig=s.defineComponent({name:"Goblet",__name:"goblet",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),Mg=Ig,Ng=s.defineComponent({name:"GoldMedal",__name:"gold-medal",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16zM640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128h.01zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a359.844 359.844 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98z"}),s.createElementVNode("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),Rg=Ng,Vg=s.defineComponent({name:"GoodsFilled",__name:"goods-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),Fg=Vg,Hg=s.defineComponent({name:"Goods",__name:"goods",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),zg=Hg,Ug=s.defineComponent({name:"Grape",__name:"grape",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),jg=Ug,Gg=s.defineComponent({name:"Grid",__name:"grid",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),Wg=Gg,Kg=s.defineComponent({name:"Guide",__name:"guide",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),s.createElementVNode("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),Yg=Kg,Xg=s.defineComponent({name:"Handbag",__name:"handbag",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),Jg=Xg,Qg=s.defineComponent({name:"Headset",__name:"headset",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),Zg=Qg,qg=s.defineComponent({name:"HelpFilled",__name:"help-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M926.784 480H701.312A192.512 192.512 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.512 192.512 0 0 0 701.312 544zM97.28 544h225.472A192.512 192.512 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.512 192.512 0 0 0 322.688 480H97.216z"})]))}}),$g=qg,e4=s.defineComponent({name:"Help",__name:"help",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),t4=e4,n4=s.defineComponent({name:"Hide",__name:"hide",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),s.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),a4=n4,o4=s.defineComponent({name:"Histogram",__name:"histogram",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),r4=o4,i4=s.defineComponent({name:"HomeFilled",__name:"home-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),s4=i4,l4=s.defineComponent({name:"HotWater",__name:"hot-water",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2H273.067zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134zM512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133zM375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267z"})]))}}),c4=l4,u4=s.defineComponent({name:"House",__name:"house",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),d4=u4,f4=s.defineComponent({name:"IceCreamRound",__name:"ice-cream-round",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0z"})]))}}),h4=f4,p4=s.defineComponent({name:"IceCreamSquare",__name:"ice-cream-square",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),v4=p4,m4=s.defineComponent({name:"IceCream",__name:"ice-cream",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.128 208.128 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0zm351.36 0h286.272a144 144 0 0 0-286.272 0zm-294.848 64 271.808 396.608L778.24 512H249.408zM511.68 352.64a207.872 207.872 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),g4=m4,y4=s.defineComponent({name:"IceDrink",__name:"ice-drink",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.128 256.128 0 0 0 512 192.64m-64 8.064A256.448 256.448 0 0 0 264.256 384H448zm64-72.064A320.128 320.128 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.384 320.384 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),_4=y4,w4=s.defineComponent({name:"IceTea",__name:"ice-tea",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),b4=w4,E4=s.defineComponent({name:"InfoFilled",__name:"info-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),C4=E4,S4=s.defineComponent({name:"Iphone",__name:"iphone",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),k4=S4,T4=s.defineComponent({name:"Key",__name:"key",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),x4=T4,B4=s.defineComponent({name:"KnifeFork",__name:"knife-fork",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256 21.312 81.152 32 177.152 32 288z"})]))}}),A4=B4,D4=s.defineComponent({name:"Lightning",__name:"lightning",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M288 671.36v64.128A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),s.createElementVNode("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),P4=D4,O4=s.defineComponent({name:"Link",__name:"link",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),L4=O4,I4=s.defineComponent({name:"List",__name:"list",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),M4=I4,N4=s.defineComponent({name:"Loading",__name:"loading",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),R4=N4,V4=s.defineComponent({name:"LocationFilled",__name:"location-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),F4=V4,H4=s.defineComponent({name:"LocationInformation",__name:"location-information",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),z4=H4,U4=s.defineComponent({name:"Location",__name:"location",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),j4=U4,G4=s.defineComponent({name:"Lock",__name:"lock",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),W4=G4,K4=s.defineComponent({name:"Lollipop",__name:"lollipop",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),Y4=K4,X4=s.defineComponent({name:"MagicStick",__name:"magic-stick",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),J4=X4,Q4=s.defineComponent({name:"Magnet",__name:"magnet",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),Z4=Q4,q4=s.defineComponent({name:"Male",__name:"male",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),s.createElementVNode("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),s.createElementVNode("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),$4=q4,e6=s.defineComponent({name:"Management",__name:"management",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),t6=e6,n6=s.defineComponent({name:"MapLocation",__name:"map-location",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),a6=n6,o6=s.defineComponent({name:"Medal",__name:"medal",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),s.createElementVNode("path",{fill:"currentColor",d:"M576 128H448v200a286.72 286.72 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92V128zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96-56.896 0-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),r6=o6,i6=s.defineComponent({name:"Memo",__name:"memo",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),s.createElementVNode("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),s.createElementVNode("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),s6=i6,l6=s.defineComponent({name:"Menu",__name:"menu",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),c6=l6,u6=s.defineComponent({name:"MessageBox",__name:"message-box",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128z"})]))}}),d6=u6,f6=s.defineComponent({name:"Message",__name:"message",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),s.createElementVNode("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056"})]))}}),h6=f6,p6=s.defineComponent({name:"Mic",__name:"mic",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),v6=p6,m6=s.defineComponent({name:"Microphone",__name:"microphone",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),g6=m6,y6=s.defineComponent({name:"MilkTea",__name:"milk-tea",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),_6=y6,w6=s.defineComponent({name:"Minus",__name:"minus",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),b6=w6,E6=s.defineComponent({name:"Money",__name:"money",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),s.createElementVNode("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),s.createElementVNode("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),C6=E6,S6=s.defineComponent({name:"Monitor",__name:"monitor",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),k6=S6,T6=s.defineComponent({name:"MoonNight",__name:"moon-night",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),s.createElementVNode("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),x6=T6,B6=s.defineComponent({name:"Moon",__name:"moon",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),A6=B6,D6=s.defineComponent({name:"MoreFilled",__name:"more-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),P6=D6,O6=s.defineComponent({name:"More",__name:"more",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),L6=O6,I6=s.defineComponent({name:"MostlyCloudy",__name:"mostly-cloudy",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.808 207.808 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.808 271.808 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),M6=I6,N6=s.defineComponent({name:"Mouse",__name:"mouse",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112-20.096 10.752-35.52 26.176-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76 10.752 20.096 26.176 35.52 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112 20.096-10.752 35.52-26.176 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.464 110.464 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.464 174.464 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.464 174.464 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.464 174.464 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),R6=N6,V6=s.defineComponent({name:"Mug",__name:"mug",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),F6=V6,H6=s.defineComponent({name:"MuteNotification",__name:"mute-notification",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.128 320.128 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.552 319.552 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),s.createElementVNode("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"})]))}}),z6=H6,U6=s.defineComponent({name:"Mute",__name:"mute",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.232 191.232 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A222.976 222.976 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.976 286.976 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),s.createElementVNode("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"})]))}}),j6=U6,G6=s.defineComponent({name:"NoSmoking",__name:"no-smoking",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),W6=G6,K6=s.defineComponent({name:"Notebook",__name:"notebook",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),Y6=K6,X6=s.defineComponent({name:"Notification",__name:"notification",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),s.createElementVNode("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),J6=X6,Q6=s.defineComponent({name:"Odometer",__name:"odometer",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),s.createElementVNode("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),s.createElementVNode("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),Z6=Q6,q6=s.defineComponent({name:"OfficeBuilding",__name:"office-building",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),s.createElementVNode("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),$6=q6,e3=s.defineComponent({name:"Open",__name:"open",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"}),s.createElementVNode("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),t3=e3,n3=s.defineComponent({name:"Operation",__name:"operation",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),a3=n3,o3=s.defineComponent({name:"Opportunity",__name:"opportunity",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),r3=o3,i3=s.defineComponent({name:"Orange",__name:"orange",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M544 894.72a382.336 382.336 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.336 382.336 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024l182.976 182.912zM894.656 480a382.336 382.336 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024h258.688zm-134.72-261.248A382.336 382.336 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.336 382.336 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.336 382.336 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.336 382.336 0 0 0 89.408 215.936l182.976-182.912A127.232 127.232 0 0 1 388.032 544zm134.72 261.248A382.336 382.336 0 0 0 480 894.656V635.968a127.232 127.232 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),s3=i3,l3=s.defineComponent({name:"Paperclip",__name:"paperclip",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"})]))}}),c3=l3,u3=s.defineComponent({name:"PartlyCloudy",__name:"partly-cloudy",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),s.createElementVNode("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6003.84 6003.84 0 0 0-49.28 41.408z"})]))}}),d3=u3,f3=s.defineComponent({name:"Pear",__name:"pear",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M542.336 258.816a443.255 443.255 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.688 162.688 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.688 162.688 0 0 0-130.112-133.12zm-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a316.608 316.608 0 0 0-9.792 15.104 226.688 226.688 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),h3=f3,p3=s.defineComponent({name:"PhoneFilled",__name:"phone-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048z"})]))}}),v3=p3,m3=s.defineComponent({name:"Phone",__name:"phone",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472L139.84 402.304zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),g3=m3,y3=s.defineComponent({name:"PictureFilled",__name:"picture-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),_3=y3,w3=s.defineComponent({name:"PictureRounded",__name:"picture-rounded",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"}),s.createElementVNode("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64q-64 0-64-64t64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),b3=w3,E3=s.defineComponent({name:"Picture",__name:"picture",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),C3=E3,S3=s.defineComponent({name:"PieChart",__name:"pie-chart",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.128 384.128 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.128 448.128 0 0 1 448 68.48z"}),s.createElementVNode("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28zM512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),k3=S3,T3=s.defineComponent({name:"Place",__name:"place",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),x3=T3,B3=s.defineComponent({name:"Platform",__name:"platform",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),A3=B3,D3=s.defineComponent({name:"Plus",__name:"plus",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),P3=D3,O3=s.defineComponent({name:"Pointer",__name:"pointer",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.272 94.272 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.272 158.272 0 0 1 185.984 8.32z"})]))}}),L3=O3,I3=s.defineComponent({name:"Position",__name:"position",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"})]))}}),M3=I3,N3=s.defineComponent({name:"Postcard",__name:"postcard",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),s.createElementVNode("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),R3=N3,V3=s.defineComponent({name:"Pouring",__name:"pouring",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),F3=V3,H3=s.defineComponent({name:"Present",__name:"present",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),s.createElementVNode("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),s.createElementVNode("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),z3=H3,U3=s.defineComponent({name:"PriceTag",__name:"price-tag",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),j3=U3,G3=s.defineComponent({name:"Printer",__name:"printer",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),W3=G3,K3=s.defineComponent({name:"Promotion",__name:"promotion",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),Y3=K3,X3=s.defineComponent({name:"QuartzWatch",__name:"quartz-watch",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51-8.67.32-16.17 3.66-22.5 10.02-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5c3.01-11.65.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01-.32-8.67-3.66-16.16-10.02-22.5-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01 3.35 11.99 10.85 19.49 22.5 22.5zm242.94 0c11.67-3.03 19.01-10.37 22.02-22.02 3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5c-6.36 6.34-9.7 13.84-10.02 22.5-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),s.createElementVNode("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01 0 9.35 3 17.02 8.99 23.01 6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01 0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),J3=X3,Q3=s.defineComponent({name:"QuestionFilled",__name:"question-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),yu=Q3,Z3=s.defineComponent({name:"Rank",__name:"rank",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544H186.496z"})]))}}),_u=Z3,q3=s.defineComponent({name:"ReadingLamp",__name:"reading-lamp",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),s.createElementVNode("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),$3=q3,e8=s.defineComponent({name:"Reading",__name:"reading",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36z"}),s.createElementVNode("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),t8=e8,n8=s.defineComponent({name:"RefreshLeft",__name:"refresh-left",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),a8=n8,o8=s.defineComponent({name:"RefreshRight",__name:"refresh-right",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),r8=o8,i8=s.defineComponent({name:"Refresh",__name:"refresh",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),s8=i8,l8=s.defineComponent({name:"Refrigerator",__name:"refrigerator",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),c8=l8,u8=s.defineComponent({name:"RemoveFilled",__name:"remove-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),d8=u8,f8=s.defineComponent({name:"Remove",__name:"remove",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),h8=f8,p8=s.defineComponent({name:"Right",__name:"right",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),v8=p8,m8=s.defineComponent({name:"ScaleToOriginal",__name:"scale-to-original",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),g8=m8,y8=s.defineComponent({name:"School",__name:"school",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),s.createElementVNode("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),_8=y8,w8=s.defineComponent({name:"Scissor",__name:"scissor",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),b8=w8,E8=s.defineComponent({name:"Search",__name:"search",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),wu=E8,C8=s.defineComponent({name:"Select",__name:"select",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496z"})]))}}),S8=C8,k8=s.defineComponent({name:"Sell",__name:"sell",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248z"})]))}}),T8=k8,x8=s.defineComponent({name:"SemiSelect",__name:"semi-select",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),B8=x8,A8=s.defineComponent({name:"Service",__name:"service",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),D8=A8,P8=s.defineComponent({name:"SetUp",__name:"set-up",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),s.createElementVNode("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),s.createElementVNode("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),s.createElementVNode("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),O8=P8,L8=s.defineComponent({name:"Setting",__name:"setting",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),I8=L8,M8=s.defineComponent({name:"Share",__name:"share",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),N8=M8,R8=s.defineComponent({name:"Ship",__name:"ship",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2H185.408"})]))}}),V8=R8,F8=s.defineComponent({name:"Shop",__name:"shop",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),H8=F8,z8=s.defineComponent({name:"ShoppingBag",__name:"shopping-bag",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),s.createElementVNode("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),U8=z8,j8=s.defineComponent({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44l76.8 384z"}),s.createElementVNode("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256h183.296zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648l179.2-215.04"})]))}}),G8=j8,W8=s.defineComponent({name:"ShoppingCart",__name:"shopping-cart",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44l76.8 384z"})]))}}),K8=W8,Y8=s.defineComponent({name:"ShoppingTrolley",__name:"shopping-trolley",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),X8=Y8,J8=s.defineComponent({name:"Smoking",__name:"smoking",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),Q8=J8,Z8=s.defineComponent({name:"Soccer",__name:"soccer",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.056 573.056 0 0 0 224.832-137.216 573.12 573.12 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.68 567.68 0 0 0 170.432 532.48l320.384 320.384zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944-199.936 199.936-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248l45.248 45.248z"})]))}}),q8=Z8,$8=s.defineComponent({name:"SoldOut",__name:"sold-out",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),ey=$8,ty=s.defineComponent({name:"SortDown",__name:"sort-down",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),ny=ty,ay=s.defineComponent({name:"SortUp",__name:"sort-up",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),oy=ay,ry=s.defineComponent({name:"Sort",__name:"sort",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0V141.248z"})]))}}),iy=ry,sy=s.defineComponent({name:"Stamp",__name:"stamp",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),ly=sy,cy=s.defineComponent({name:"StarFilled",__name:"star-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),uy=cy,dy=s.defineComponent({name:"Star",__name:"star",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),fy=dy,hy=s.defineComponent({name:"Stopwatch",__name:"stopwatch",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),s.createElementVNode("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),py=hy,vy=s.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),my=vy,gy=s.defineComponent({name:"Sugar",__name:"sugar",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16l-109.248 19.2zm-548.8 198.72h447.168v2.24l60.8-60.8a63.808 63.808 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64.064 64.064 0 0 0-10.24 13.248zm0 64c2.752 4.736 6.144 9.152 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632l-137.6 24.256zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),yy=gy,_y=s.defineComponent({name:"SuitcaseLine",__name:"suitcase-line",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5C77.16 253.82 64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),wy=_y,by=s.defineComponent({name:"Suitcase",__name:"suitcase",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),s.createElementVNode("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),Ey=by,Cy=s.defineComponent({name:"Sunny",__name:"sunny",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),Sy=Cy,ky=s.defineComponent({name:"Sunrise",__name:"sunrise",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0h-64.32zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0zm-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),Ty=ky,xy=s.defineComponent({name:"Sunset",__name:"sunset",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),By=xy,Ay=s.defineComponent({name:"SwitchButton",__name:"switch-button",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),Dy=Ay,Py=s.defineComponent({name:"SwitchFilled",__name:"switch-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36z"}),s.createElementVNode("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.655 196.655 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.67 196.67 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42zm-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.695 131.695 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.655 196.655 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.69 196.69 0 0 0 139.08-57.61A196.655 196.655 0 0 0 896 699.31V325.29a196.69 196.69 0 0 0-57.61-139.08zm-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82z"})]))}}),Oy=Py,Ly=s.defineComponent({name:"Switch",__name:"switch",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344zM64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),Iy=Ly,My=s.defineComponent({name:"TakeawayBox",__name:"takeaway-box",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),Ny=My,Ry=s.defineComponent({name:"Ticket",__name:"ticket",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),Vy=Ry,Fy=s.defineComponent({name:"Tickets",__name:"tickets",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),Hy=Fy,zy=s.defineComponent({name:"Timer",__name:"timer",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),Uy=zy,jy=s.defineComponent({name:"ToiletPaper",__name:"toilet-paper",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),s.createElementVNode("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),Gy=jy,Wy=s.defineComponent({name:"Tools",__name:"tools",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),Ky=Wy,Yy=s.defineComponent({name:"TopLeft",__name:"top-left",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),s.createElementVNode("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312l-544-544z"})]))}}),Xy=Yy,Jy=s.defineComponent({name:"TopRight",__name:"top-right",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),s.createElementVNode("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312l544-544z"})]))}}),Qy=Jy,Zy=s.defineComponent({name:"Top",__name:"top",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),qy=Zy,$y=s.defineComponent({name:"TrendCharts",__name:"trend-charts",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624 139.84-156.608zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),e_=$y,t_=s.defineComponent({name:"TrophyBase",__name:"trophy-base",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4C752 67.2 745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6C259.2 80 256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 16-9.6 22.4 3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4zM256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6C342.4 480 320 438.4 320 384V128h384v256c0 54.4-19.2 99.2-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2zM768 896H256c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6"})]))}}),n_=t_,a_=s.defineComponent({name:"Trophy",__name:"trophy",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M480 896V702.08A256.256 256.256 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.256 256.256 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),o_=a_,r_=s.defineComponent({name:"TurnOff",__name:"turn-off",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"}),s.createElementVNode("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),i_=r_,s_=s.defineComponent({name:"Umbrella",__name:"umbrella",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),l_=s_,c_=s.defineComponent({name:"Unlock",__name:"unlock",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),s.createElementVNode("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),u_=c_,d_=s.defineComponent({name:"UploadFilled",__name:"upload-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),f_=d_,h_=s.defineComponent({name:"Upload",__name:"upload",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),p_=h_,v_=s.defineComponent({name:"UserFilled",__name:"user-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),m_=v_,g_=s.defineComponent({name:"User",__name:"user",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),y_=g_,__=s.defineComponent({name:"Van",__name:"van",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96h151.872M688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),w_=__,b_=s.defineComponent({name:"VideoCameraFilled",__name:"video-camera-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),E_=b_,C_=s.defineComponent({name:"VideoCamera",__name:"video-camera",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),S_=C_,k_=s.defineComponent({name:"VideoPause",__name:"video-pause",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),T_=k_,x_=s.defineComponent({name:"VideoPlay",__name:"video-play",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),B_=x_,A_=s.defineComponent({name:"View",__name:"view",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),D_=A_,P_=s.defineComponent({name:"WalletFilled",__name:"wallet-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),O_=P_,L_=s.defineComponent({name:"Wallet",__name:"wallet",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),s.createElementVNode("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),I_=L_,M_=s.defineComponent({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49 12.91-20.12 12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),N_=M_,R_=s.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),V_=R_,F_=s.defineComponent({name:"Warning",__name:"warning",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),bu=F_,H_=s.defineComponent({name:"Watch",__name:"watch",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),s.createElementVNode("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),s.createElementVNode("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),z_=H_,U_=s.defineComponent({name:"Watermelon",__name:"watermelon",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632l632 632"})]))}}),j_=U_,G_=s.defineComponent({name:"WindPower",__name:"wind-power",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),W_=G_,K_=s.defineComponent({name:"ZoomIn",__name:"zoom-in",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),Y_=K_,X_=s.defineComponent({name:"ZoomOut",__name:"zoom-out",setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),J_=X_;const Eu=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:p0,Aim:m0,AlarmClock:y0,Apple:w0,ArrowDown:Br,ArrowDownBold:E0,ArrowLeft:x0,ArrowLeftBold:k0,ArrowRight:P0,ArrowRightBold:A0,ArrowUp:pu,ArrowUpBold:L0,Avatar:N0,Back:V0,Baseball:H0,Basketball:U0,Bell:K0,BellFilled:G0,Bicycle:X0,Bottom:ev,BottomLeft:Q0,BottomRight:q0,Bowl:nv,Box:ov,Briefcase:iv,Brush:uv,BrushFilled:lv,Burger:fv,Calendar:pv,Camera:yv,CameraFilled:mv,CaretBottom:wv,CaretLeft:Ev,CaretRight:Sv,CaretTop:vu,Cellphone:xv,ChatDotRound:Av,ChatDotSquare:Pv,ChatLineRound:Lv,ChatLineSquare:Mv,ChatRound:Rv,ChatSquare:Fv,Check:zv,Checked:jv,Cherry:Wv,Chicken:Yv,ChromeFilled:Jv,CircleCheck:mu,CircleCheckFilled:Zv,CircleClose:n1,CircleCloseFilled:e1,CirclePlus:i1,CirclePlusFilled:o1,Clock:l1,Close:f1,CloseBold:u1,Cloudy:p1,Coffee:y1,CoffeeCup:m1,Coin:w1,ColdDrink:E1,Collection:T1,CollectionTag:S1,Comment:B1,Compass:D1,Connection:O1,Coordinate:I1,CopyDocument:N1,Cpu:V1,CreditCard:H1,Crop:U1,DArrowLeft:G1,DArrowRight:K1,DCaret:X1,DataAnalysis:Q1,DataBoard:q1,DataLine:em,Delete:im,DeleteFilled:nm,DeleteLocation:om,Dessert:lm,Discount:um,Dish:pm,DishDot:fm,Document:Tm,DocumentAdd:mm,DocumentChecked:ym,DocumentCopy:wm,DocumentDelete:Em,DocumentRemove:Sm,Download:Bm,Drizzling:Dm,Edit:gu,EditPen:Om,Eleme:Rm,ElemeFilled:Mm,ElementPlus:Fm,Expand:zm,Failed:jm,Female:Wm,Files:Ym,Film:Jm,Filter:Zm,Finished:$m,FirstAidKit:tg,Flag:ag,Fold:rg,Folder:gg,FolderAdd:sg,FolderChecked:cg,FolderDelete:dg,FolderOpened:hg,FolderRemove:vg,Food:_g,Football:bg,ForkSpoon:Cg,Fries:kg,FullScreen:xg,Goblet:Mg,GobletFull:Ag,GobletSquare:Lg,GobletSquareFull:Pg,GoldMedal:Rg,Goods:zg,GoodsFilled:Fg,Grape:jg,Grid:Wg,Guide:Yg,Handbag:Jg,Headset:Zg,Help:t4,HelpFilled:$g,Hide:a4,Histogram:r4,HomeFilled:s4,HotWater:c4,House:d4,IceCream:g4,IceCreamRound:h4,IceCreamSquare:v4,IceDrink:_4,IceTea:b4,InfoFilled:C4,Iphone:k4,Key:x4,KnifeFork:A4,Lightning:P4,Link:L4,List:M4,Loading:R4,Location:j4,LocationFilled:F4,LocationInformation:z4,Lock:W4,Lollipop:Y4,MagicStick:J4,Magnet:Z4,Male:$4,Management:t6,MapLocation:a6,Medal:r6,Memo:s6,Menu:c6,Message:h6,MessageBox:d6,Mic:v6,Microphone:g6,MilkTea:_6,Minus:b6,Money:C6,Monitor:k6,Moon:A6,MoonNight:x6,More:L6,MoreFilled:P6,MostlyCloudy:M6,Mouse:R6,Mug:F6,Mute:j6,MuteNotification:z6,NoSmoking:W6,Notebook:Y6,Notification:J6,Odometer:Z6,OfficeBuilding:$6,Open:t3,Operation:a3,Opportunity:r3,Orange:s3,Paperclip:c3,PartlyCloudy:d3,Pear:h3,Phone:g3,PhoneFilled:v3,Picture:C3,PictureFilled:_3,PictureRounded:b3,PieChart:k3,Place:x3,Platform:A3,Plus:P3,Pointer:L3,Position:M3,Postcard:R3,Pouring:F3,Present:z3,PriceTag:j3,Printer:W3,Promotion:Y3,QuartzWatch:J3,QuestionFilled:yu,Rank:_u,Reading:t8,ReadingLamp:$3,Refresh:s8,RefreshLeft:a8,RefreshRight:r8,Refrigerator:c8,Remove:h8,RemoveFilled:d8,Right:v8,ScaleToOriginal:g8,School:_8,Scissor:b8,Search:wu,Select:S8,Sell:T8,SemiSelect:B8,Service:D8,SetUp:O8,Setting:I8,Share:N8,Ship:V8,Shop:H8,ShoppingBag:U8,ShoppingCart:K8,ShoppingCartFull:G8,ShoppingTrolley:X8,Smoking:Q8,Soccer:q8,SoldOut:ey,Sort:iy,SortDown:ny,SortUp:oy,Stamp:ly,Star:fy,StarFilled:uy,Stopwatch:py,SuccessFilled:my,Sugar:yy,Suitcase:Ey,SuitcaseLine:wy,Sunny:Sy,Sunrise:Ty,Sunset:By,Switch:Iy,SwitchButton:Dy,SwitchFilled:Oy,TakeawayBox:Ny,Ticket:Vy,Tickets:Hy,Timer:Uy,ToiletPaper:Gy,Tools:Ky,Top:qy,TopLeft:Xy,TopRight:Qy,TrendCharts:e_,Trophy:o_,TrophyBase:n_,TurnOff:i_,Umbrella:l_,Unlock:u_,Upload:p_,UploadFilled:f_,User:y_,UserFilled:m_,Van:w_,VideoCamera:S_,VideoCameraFilled:E_,VideoPause:T_,VideoPlay:B_,View:D_,Wallet:I_,WalletFilled:O_,WarnTriangleFilled:N_,Warning:bu,WarningFilled:V_,Watch:z_,Watermelon:j_,WindPower:W_,ZoomIn:Y_,ZoomOut:J_},Symbol.toStringTag,{value:"Module"})),Q_={key:0,class:"back_to_top"},Z_=s.defineComponent({name:"TLayoutPage",__name:"index",props:{keepScrollDisabled:{type:Boolean,default:!1},isNoMargin:{type:Boolean,default:!1},showGoTopButton:{type:Boolean,default:!0},scrollToTop:{default:100}},setup(o){const r=o,n=s.ref(!1),t=s.ref(null),e=s.ref(0);s.watch(()=>e.value,i=>{i>r.scrollToTop?n.value=!0:n.value=!1});const a=()=>{e.value=0,t.value.scrollTop=0};return s.onMounted(()=>{const i=t.value.querySelectorAll(".t_layout_page_item");i.length===2&&(i[0].style.marginBottom="8px"),i.length>2&&(i.forEach(l=>{l.style.marginBottom="8px"}),i[i.length-1].style.marginBottom="0")}),s.onActivated(()=>{r.keepScrollDisabled||(t.value.scrollTop=e)}),(i,l)=>{const c=s.resolveComponent("el-icon");return s.openBlock(),s.createElementBlock("div",{ref_key:"TLayoutPageRef",ref:t,class:s.normalizeClass(["t_layout_page",{layout_page_no_margin:i.isNoMargin}]),onScroll:l[0]||(l[0]=u=>e.value=u.target.scrollTop)},[s.renderSlot(i.$slots,"default",{},void 0,!0),i.showGoTopButton?(s.openBlock(),s.createElementBlock("div",Q_,[n.value?(s.openBlock(),s.createElementBlock("div",{key:0,onClick:a},[s.createVNode(c,s.normalizeProps(s.guardReactiveProps({size:24,...i.$attrs})),{default:s.withCtx(()=>[s.createVNode(s.unref(vu))]),_:1},16)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],34)}}}),$7="",Ot=(o,r)=>{const n=o.__vccOpts||o;for(const[t,e]of r)n[t]=e;return n},Cu=Ot(Z_,[["__scopeId","data-v-1c8eba94"]]),ot=(o,r)=>{if(o.install=n=>{for(const t of[o,...Object.values(r!=null?r:{})])n.component(t.name,t)},r)for(const[n,t]of Object.entries(r))o[n]=t;return o},Su=ot(Cu),q_=s.defineComponent({name:"TLayoutPageItem",__name:"index",props:{isNoMargin:{type:Boolean,default:!1}},setup(o){return(r,n)=>(s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(["t_layout_page_item",{page_item_no_margin:o.isNoMargin}])},[s.renderSlot(r.$slots,"default",{},void 0,!0)],2))}}),ek="",hs=Ot(q_,[["__scopeId","data-v-eef28707"]]),ku=ot(hs),$_=s.defineComponent({name:"RenderComp",props:{render:Function,form:Object},render(o){return o.render(o==null?void 0:o.form)}}),e5={class:"inside_box"},t5={class:"inside_box_title"},n5={class:"check-box"},a5={class:"more_dropdown_icon"},o5={class:"out_box"},r5=s.defineComponent({name:"MoreChoose",__name:"moreChoose",props:{moreCheckList:{type:Array,default:()=>[]},popoverAttrsBind:{type:Object,default:()=>({})}},emits:["getCheckList"],setup(o,{emit:r}){const n=o,t=s.ref([]),e=s.ref([]),a=s.ref(n.moreCheckList),i=r;s.watch(()=>n.moreCheckList,h=>{a.value=h},{deep:!0}),s.watch(()=>t,(h,p)=>{let v=[];p.value.forEach(g=>{h.value.some(m=>m==g)||v.push(g)}),e.value.forEach((g,m)=>{v.filter(_=>_==g.label)[0]&&delete e.value[m]})},{deep:!0});const l=()=>{const h=JSON.parse(JSON.stringify(a.value));t.value=h.map(v=>v.label),e.value=h;const p=f(e.value);i("getCheckList",p)},c=()=>{const h=JSON.parse(JSON.stringify(t.value));t.value=[],e.value=[],a.value.forEach(v=>{h.filter(g=>g==v.label)[0]||(t.value.push(v.label),e.value.push(v))});const p=f(e.value);i("getCheckList",p)},u=()=>{t.value=[],e.value=[],i("getCheckList",{})},d=h=>{e.value=[],a.value.forEach((v,g)=>{h.filter(m=>m==v.label)[0]&&e.value.push(v)});const p=f(e.value);i("getCheckList",p)},f=h=>h.reduce((p,v)=>(p[v.prop]={label:v==null?void 0:v.label,comp:v.comp,bind:v==null?void 0:v.bind,list:v==null?void 0:v.list,eventHandle:v==null?void 0:v.eventHandle,changeEvent:v==null?void 0:v.changeEvent,listTypeInfo:v==null?void 0:v.listTypeInfo,arrLabel:v==null?void 0:v.arrLabel,arrKey:v==null?void 0:v.arrKey,slotName:v==null?void 0:v.slotName,span:v==null?void 0:v.span,type:v==null?void 0:v.type,isSelfCom:v&&v.isSelfCom||!1,defaultVal:v==null?void 0:v.defaultVal,placeholder:v==null?void 0:v.placeholder,event:v==null?void 0:v.event},p),{});return(h,p)=>{const v=s.resolveComponent("el-button"),g=s.resolveComponent("el-checkbox"),m=s.resolveComponent("el-checkbox-group"),_=s.resolveComponent("el-icon"),b=s.resolveComponent("el-popover");return a.value.length>0?(s.openBlock(),s.createBlock(b,{key:0,"popper-class":"t_query_condition_more",bind:o.popoverAttrsBind,trigger:"click",width:"auto",ref:"popover"},{reference:s.withCtx(()=>[s.createElementVNode("div",a5,[s.createElementVNode("span",o5,s.toDisplayString(o.popoverAttrsBind.showTxt||"\u66F4\u591A"),1),s.createVNode(_,null,{default:s.withCtx(()=>[s.createVNode(s.unref(Br))]),_:1})])]),default:s.withCtx(()=>[s.createElementVNode("div",e5,[s.createElementVNode("div",t5,[s.createElementVNode("div",null,s.toDisplayString(o.popoverAttrsBind.title||"\u6240\u6709\u6761\u4EF6"),1),s.createElementVNode("div",n5,[s.createVNode(v,{size:"small",link:"",onClick:l},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(o.popoverAttrsBind.allTxt||"\u5168\u9009"),1)]),_:1}),s.createVNode(v,{size:"small",link:"",onClick:u},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(o.popoverAttrsBind.clearTxt||"\u6E05\u7A7A"),1)]),_:1}),s.createVNode(v,{size:"small",link:"",onClick:c},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(o.popoverAttrsBind.reverseTxt||"\u53CD\u9009"),1)]),_:1})])]),s.createVNode(m,{modelValue:t.value,"onUpdate:modelValue":p[0]||(p[0]=y=>t.value=y),class:"inside_box_main",onChange:d},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.value,(y,w)=>(s.openBlock(),s.createBlock(g,{key:w,label:y.label,value:y.label},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1},8,["bind"])):s.createCommentVNode("",!0)}}}),tk="";function i5(){const o=s.computed(()=>l=>{switch(l.type){case"checkbox":return"el-checkbox";case"radio":return"el-radio";case"select-arr":case"select-obj":return"el-option"}}),r=s.computed(()=>l=>l.listTypeInfo?l.listTypeInfo[l.list]:[]),n=s.computed(()=>(l,c)=>{switch(l.type){case"radio":case"checkbox":return c[l.arrLabel||"label"];case"el-select-multiple":case"select-arr":return c[l.arrLabel||"label"];case"select-obj":return c}}),t=s.computed(()=>(l,c,u)=>{switch(l.type){case"radio":case"checkbox":return c[l.arrKey||"key"];case"el-select-multiple":case"select-arr":return c[l.arrKey||"key"];case"select-obj":return u}}),e=s.computed(()=>(l,c)=>{switch(l.type){case"radio":case"checkbox":return c[l.arrLabel||"label"];case"el-select-multiple":case"select-arr":return c[l.arrLabel||"label"];case"select-obj":return c}});return{compChildName:o,selectListType:r,compChildLabel:n,compChildValue:t,compChildShowLabel:e,getPlaceholder:l=>{let c;return l.comp&&typeof l.comp=="string"&&(l.comp.includes("input")?c="\u8BF7\u8F93\u5165"+l.label:l.comp.includes("select")||l.comp.includes("date")?c="\u8BF7\u9009\u62E9"+l.label:c=l.label),c},getColLength:()=>{const l=window.innerWidth;let c=4;return l>1e3&&l<1280?c=3:l>768&&l<=1e3?c=2:l<=768&&(c=1),c}}}const ps=s.defineComponent({name:"TQueryCondition",__name:"index",props:{opts:{default:()=>({})},labelWidth:{default:"120px"},btnCheckBind:{default:()=>({})},btnResetBind:{default:()=>({})},loading:{type:Boolean,default:!1},reset:{type:Boolean,default:!0},boolEnter:{type:Boolean,default:!0},isShowOpen:{type:Boolean,default:!0},isExpansion:{type:Boolean,default:!1},maxVisibleRows:{default:1},packUpTxt:{default:"\u6536\u8D77"},unfoldTxt:{default:"\u5C55\u5F00"},isFooter:{type:Boolean,default:!0},configChangedReset:{type:Boolean,default:!1},isShowWidthSize:{type:Boolean,default:!1},widthSize:{default:4},isDropDownSelectMore:{type:Boolean,default:!1},moreCheckList:{default:()=>[]},popoverAttrs:{default:()=>({})}},emits:["handleEvent","submit","reset","getCheckList","getRefs"],setup(o,{expose:r,emit:n}){const{compChildName:t,selectListType:e,compChildLabel:a,compChildValue:i,compChildShowLabel:l,getPlaceholder:c,getColLength:u}=i5(),d=o,f=s.useSlots(),h=N=>Object.keys(f).includes(N),p=s.computed(()=>({showTxt:"\u66F4\u591A",title:"\u6240\u6709\u6761\u4EF6",allTxt:"\u5168\u9009",reverseTxt:"\u53CD\u9009",clearTxt:"\u6E05\u7A7A",...d.popoverAttrs}));let v=s.reactive({form:Object.keys(d.opts).reduce((N,H)=>{var K;return N[H]=(K=d.opts[H].defaultVal)!=null?K:null,N},{})}),g=s.ref(4),m=s.ref(!1),_=s.ref(!1);const b=s.computed(()=>({btnTxt:"\u67E5\u8BE2",...d.btnCheckBind})),y=s.computed(()=>({btnTxt:"\u91CD\u7F6E",...d.btnResetBind})),w=s.computed(()=>{let N=0;return Object.keys(d.opts).forEach(H=>{let K=d.opts[H].span||1;N%g.value+K>g.value&&(N+=g.value-N%g.value),N+=K}),N}),S=s.computed(()=>{let N=0;return Object.keys(d.opts).reduce((H,K)=>{var le;let U={...d.opts[K]};return m.value&&(N+=(le=U.span)!=null?le:1,!_.value&&N-1>=d.maxVisibleRows*g.value)||(U.dataIndex=K,H[K]=U),H},{})}),D=s.computed(()=>{let N=0;return Object.keys(d.opts).forEach(H=>{let K=d.opts[H].span>4?4:d.opts[H].span||1;N+=K}),N}),C=s.computed(()=>{var le;const N=Object.keys(S.value);let H=0,K=0;const U=[[]];for(let ae=0;ae<N.length;ae++){const q=N[ae],we=S.value[q],de=Math.min((le=we.span)!=null?le:1,Math.min(g.value,4));if(K+de>g.value){for(;K<g.value;)U[H].push("."),K+=1;K=0,U[++H]=[]}K+=de;for(let ze=0;ze<de;ze++)U[H].push(q)}if(U[H].length===g.value)U.push(Array(g.value).fill("submit_btn"));else for(;U[H].length<g.value;)U[H].push("submit_btn");return U.reduce((ae,q)=>(ae+=`'${q.join(" ")}'
|
|
12
|
-
`,ae),"")}),B=s.computed(()=>N=>{let H={...N.eventHandle},K={};return Object.keys(H).forEach(U=>{K[U]=le=>{N.comp.includes("select")||N.comp.includes("picker")||N.comp.includes("date")||le?H[U]&&H[U](le,v.form):H[U]&&H[U](v.form)}}),{...K}}),A=(N,H=!1)=>Object.keys(N).reduce((K,U)=>{var le,ae,q;return H&&v.form?K[U]=(ae=(le=v.form[U])!=null?le:N[U].defaultVal)!=null?ae:null:K[U]=(q=N[U].defaultVal)!=null?q:null,K},{}),L=n,I=s.ref({}),E=(N,H,K)=>{L("getRefs",N,H,K),N&&(I.value[`tselecttableref-${K}`]=N)},x=(N,H,K)=>{L("getRefs",N,H,K)},k=()=>{v.form=A(d.opts);const N=Object.keys(I.value).filter(H=>H.includes("tselecttableref"));N.length>0&&I.value&&N.map(H=>{I.value[H].clear()}),L("reset",v.form),R("reset")},O=()=>{v.form=A(d.opts);const N=Object.keys(I.value).filter(H=>H.includes("tselecttableref"));N.length>0&&I.value&&N.map(H=>{I.value[H].clear()})},P=({isChange:N=!1,type:H,val:K},U)=>{N?U&&(v.form[U]=K):L("handleEvent",H,K,v.form)},R=(N=!1)=>{L("submit",v.form,N)};return s.onMounted(()=>{d.isShowOpen?m.value=!0:m.value=!1,d.isExpansion?_.value=!0:_.value=!1,d.isShowWidthSize?g.value=d.widthSize:g.value=u(),d.boolEnter&&(document.onkeyup=N=>{let H=N.keyCode,K=document.querySelectorAll(".el-pagination"),U=!1;K&&K.forEach(le=>{let ae=le.getElementsByTagName("input");ae[ae.length-1]===document.activeElement&&(U=!0)}),!U&&H===13&&R()}),(h("footerBtn")||!d.isFooter)&&(_.value=!0),d.isDropDownSelectMore&&(_.value=!0,m.value=!1)}),s.watch(()=>d.widthSize,N=>{g.value=N}),s.watch(()=>d.opts,N=>{v.form=A(N,!d.configChangedReset)},{deep:!0}),r({queryState:v,props:d,colLength:g,resetData:O,resetHandle:k,checkHandle:R,handleEvent:P}),(N,H)=>{const K=s.resolveComponent("el-form-item"),U=s.resolveComponent("el-button"),le=s.resolveComponent("el-icon"),ae=s.resolveComponent("el-form");return s.openBlock(),s.createBlock(ae,s.mergeProps({id:"t_query_condition"},N.$attrs,{"label-width":N.labelWidth,form:s.unref(v).form,size:"default",class:"t-query-condition",style:{"grid-template-areas":C.value,"grid-template-columns":`repeat(${s.unref(g)}, minmax(0px, ${100/s.unref(g)}%))`},onSubmit:H[2]||(H[2]=s.withModifiers(()=>{},["prevent"]))}),{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(S.value,(q,we)=>(s.openBlock(),s.createBlock(K,s.mergeProps({key:we,label:q.label,"label-width":q.labelWidth,ref_for:!0},N.$attrs,{style:{gridArea:we},class:[q.className,{render_label:q.labelRender}]}),s.createSlots({default:s.withCtx(()=>[q.slotName?s.renderSlot(N.$slots,q.slotName,{key:0,param:s.unref(v).form,scope:s.unref(v).form}):s.createCommentVNode("",!0),q.isSelfCom?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(q.comp),s.mergeProps({key:1,ref_for:!0,ref:q.comp==="t-select-table"?de=>E(de,q,we):de=>x(de,q,we),modelValue:s.unref(v).form[q.dataIndex],"onUpdate:modelValue":de=>s.unref(v).form[q.dataIndex]=de,placeholder:q.placeholder||s.unref(c)(q)},typeof q.bind=="function"?q.bind(s.unref(v).form):{clearable:!0,filterable:!0,...N.$attrs,...q.bind},{style:{width:q.width||"100%"},onChange:de=>P({type:q.event,val:s.unref(v).form[q.dataIndex]})},s.toHandlers(B.value(q))),null,16,["modelValue","onUpdate:modelValue","placeholder","style","onChange"])):s.createCommentVNode("",!0),!q.isSelfCom&&!q.slotName?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(q.comp),s.mergeProps({key:2,ref_for:!0},typeof q.bind=="function"?q.bind(s.unref(v).form):{clearable:!0,filterable:!0,...N.$attrs,...q.bind},{placeholder:q.placeholder||s.unref(c)(q),onChange:de=>P({type:q.event,val:s.unref(v).form[q.dataIndex]}),ref_for:!0,ref:de=>x(de,q,we)},s.toHandlers(B.value(q)),{modelValue:s.unref(v).form[q.dataIndex],"onUpdate:modelValue":de=>s.unref(v).form[q.dataIndex]=de}),{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(e)(q),(de,ze,et)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(t)(q)),{key:et,disabled:de.disabled,label:s.unref(a)(q,de),value:s.unref(i)(q,de,ze)},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(s.unref(l)(q,de)),1)]),_:2},1032,["disabled","label","value"]))),128))]),_:2},1040,["placeholder","onChange","modelValue","onUpdate:modelValue"])):s.createCommentVNode("",!0)]),_:2},[q.labelRender?{name:"label",fn:s.withCtx(()=>[s.createVNode($_,{form:s.unref(v).form,render:q.labelRender},null,8,["form","render"])]),key:"0"}:void 0]),1040,["label","label-width","style","class"]))),128)),Object.keys(S.value).length>0?(s.openBlock(),s.createBlock(K,{key:0,"label-width":"0",style:{"grid-area":"submit_btn"},class:s.normalizeClass(["btn",{flex_end:D.value%s.unref(g)===0},{btn_flex_end:Object.keys(S.value).length===4||D.value>3}])},{default:s.withCtx(()=>[N.isFooter?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.renderSlot(N.$slots,"footerBtn"),s.unref(f).footerBtn?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(U,s.mergeProps({class:"btn_check",onClick:R},{type:"primary",...b.value},{loading:N.loading}),{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(b.value.btnTxt),1)]),_:1},16,["loading"]),N.reset?(s.openBlock(),s.createBlock(U,s.mergeProps({key:0,class:"btn_reset"},y.value,{onClick:k}),{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(y.value.btnTxt),1)]),_:1},16)):s.createCommentVNode("",!0),s.renderSlot(N.$slots,"querybar"),w.value>N.maxVisibleRows*s.unref(g)&&s.unref(m)?(s.openBlock(),s.createBlock(U,{key:1,onClick:H[0]||(H[0]=q=>s.isRef(_)?_.value=!s.unref(_):_=!s.unref(_)),link:""},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(s.unref(_)?N.packUpTxt:N.unfoldTxt)+" ",1),s.unref(_)?(s.openBlock(),s.createBlock(le,{key:0},{default:s.withCtx(()=>[s.createVNode(s.unref(pu))]),_:1})):(s.openBlock(),s.createBlock(le,{key:1},{default:s.withCtx(()=>[s.createVNode(s.unref(Br))]),_:1}))]),_:1})):s.createCommentVNode("",!0),s.createVNode(r5,{isDropDownSelectMore:N.isDropDownSelectMore,moreCheckList:N.moreCheckList,popoverAttrsBind:p.value,onGetCheckList:H[1]||(H[1]=q=>L("getCheckList",q))},null,8,["isDropDownSelectMore","moreCheckList","popoverAttrsBind"])],64))],64)):s.createCommentVNode("",!0)]),_:3},8,["class"])):s.createCommentVNode("",!0)]),_:3},16,["label-width","form","style"])}}}),nk="",Tu=ot(ps);/**!
|
|
13
|
-
* Sortable 1.15.6
|
|
14
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
15
|
-
* @author owenm <owen23355@gmail.com>
|
|
16
|
-
* @license MIT
|
|
17
|
-
*/function xu(o,r){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);r&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),n.push.apply(n,t)}return n}function Fn(o){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?xu(Object(n),!0).forEach(function(t){s5(o,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):xu(Object(n)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(n,t))})}return o}function Ar(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ar=function(r){return typeof r}:Ar=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ar(o)}function s5(o,r,n){return r in o?Object.defineProperty(o,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[r]=n,o}function Qn(){return Qn=Object.assign||function(o){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(o[t]=n[t])}return o},Qn.apply(this,arguments)}function l5(o,r){if(o==null)return{};var n={},t=Object.keys(o),e,a;for(a=0;a<t.length;a++)e=t[a],!(r.indexOf(e)>=0)&&(n[e]=o[e]);return n}function c5(o,r){if(o==null)return{};var n=l5(o,r),t,e;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(o);for(e=0;e<a.length;e++)t=a[e],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(o,t)||(n[t]=o[t]))}return n}var u5="1.15.6";function Zn(o){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(o)}var qn=Zn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),xo=Zn(/Edge/i),Bu=Zn(/firefox/i),Bo=Zn(/safari/i)&&!Zn(/chrome/i)&&!Zn(/android/i),vs=Zn(/iP(ad|od|hone)/i),Au=Zn(/chrome/i)&&Zn(/android/i),Du={capture:!1,passive:!1};function Qe(o,r,n){o.addEventListener(r,n,!qn&&Du)}function Ke(o,r,n){o.removeEventListener(r,n,!qn&&Du)}function Dr(o,r){if(!!r){if(r[0]===">"&&(r=r.substring(1)),o)try{if(o.matches)return o.matches(r);if(o.msMatchesSelector)return o.msMatchesSelector(r);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(r)}catch{return!1}return!1}}function Pu(o){return o.host&&o!==document&&o.host.nodeType?o.host:o.parentNode}function On(o,r,n,t){if(o){n=n||document;do{if(r!=null&&(r[0]===">"?o.parentNode===n&&Dr(o,r):Dr(o,r))||t&&o===n)return o;if(o===n)break}while(o=Pu(o))}return null}var Ou=/\s+/g;function mn(o,r,n){if(o&&r)if(o.classList)o.classList[n?"add":"remove"](r);else{var t=(" "+o.className+" ").replace(Ou," ").replace(" "+r+" "," ");o.className=(t+(n?" "+r:"")).replace(Ou," ")}}function Ce(o,r,n){var t=o&&o.style;if(t){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(n=o.currentStyle),r===void 0?n:n[r];!(r in t)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),t[r]=n+(typeof n=="string"?"":"px")}}function Xa(o,r){var n="";if(typeof o=="string")n=o;else do{var t=Ce(o,"transform");t&&t!=="none"&&(n=t+" "+n)}while(!r&&(o=o.parentNode));var e=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return e&&new e(n)}function Lu(o,r,n){if(o){var t=o.getElementsByTagName(r),e=0,a=t.length;if(n)for(;e<a;e++)n(t[e],e);return t}return[]}function Hn(){var o=document.scrollingElement;return o||document.documentElement}function Tt(o,r,n,t,e){if(!(!o.getBoundingClientRect&&o!==window)){var a,i,l,c,u,d,f;if(o!==window&&o.parentNode&&o!==Hn()?(a=o.getBoundingClientRect(),i=a.top,l=a.left,c=a.bottom,u=a.right,d=a.height,f=a.width):(i=0,l=0,c=window.innerHeight,u=window.innerWidth,d=window.innerHeight,f=window.innerWidth),(r||n)&&o!==window&&(e=e||o.parentNode,!qn))do if(e&&e.getBoundingClientRect&&(Ce(e,"transform")!=="none"||n&&Ce(e,"position")!=="static")){var h=e.getBoundingClientRect();i-=h.top+parseInt(Ce(e,"border-top-width")),l-=h.left+parseInt(Ce(e,"border-left-width")),c=i+a.height,u=l+a.width;break}while(e=e.parentNode);if(t&&o!==window){var p=Xa(e||o),v=p&&p.a,g=p&&p.d;p&&(i/=g,l/=v,f/=v,d/=g,c=i+d,u=l+f)}return{top:i,left:l,bottom:c,right:u,width:f,height:d}}}function Iu(o,r,n){for(var t=ua(o,!0),e=Tt(o)[r];t;){var a=Tt(t)[n],i=void 0;if(n==="top"||n==="left"?i=e>=a:i=e<=a,!i)return t;if(t===Hn())break;t=ua(t,!1)}return!1}function Ja(o,r,n,t){for(var e=0,a=0,i=o.children;a<i.length;){if(i[a].style.display!=="none"&&i[a]!==Se.ghost&&(t||i[a]!==Se.dragged)&&On(i[a],n.draggable,o,!1)){if(e===r)return i[a];e++}a++}return null}function ms(o,r){for(var n=o.lastElementChild;n&&(n===Se.ghost||Ce(n,"display")==="none"||r&&!Dr(n,r));)n=n.previousElementSibling;return n||null}function Sn(o,r){var n=0;if(!o||!o.parentNode)return-1;for(;o=o.previousElementSibling;)o.nodeName.toUpperCase()!=="TEMPLATE"&&o!==Se.clone&&(!r||Dr(o,r))&&n++;return n}function Mu(o){var r=0,n=0,t=Hn();if(o)do{var e=Xa(o),a=e.a,i=e.d;r+=o.scrollLeft*a,n+=o.scrollTop*i}while(o!==t&&(o=o.parentNode));return[r,n]}function d5(o,r){for(var n in o)if(!!o.hasOwnProperty(n)){for(var t in r)if(r.hasOwnProperty(t)&&r[t]===o[n][t])return Number(n)}return-1}function ua(o,r){if(!o||!o.getBoundingClientRect)return Hn();var n=o,t=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var e=Ce(n);if(n.clientWidth<n.scrollWidth&&(e.overflowX=="auto"||e.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(e.overflowY=="auto"||e.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Hn();if(t||r)return n;t=!0}}while(n=n.parentNode);return Hn()}function f5(o,r){if(o&&r)for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o}function gs(o,r){return Math.round(o.top)===Math.round(r.top)&&Math.round(o.left)===Math.round(r.left)&&Math.round(o.height)===Math.round(r.height)&&Math.round(o.width)===Math.round(r.width)}var Ao;function Nu(o,r){return function(){if(!Ao){var n=arguments,t=this;n.length===1?o.call(t,n[0]):o.apply(t,n),Ao=setTimeout(function(){Ao=void 0},r)}}}function h5(){clearTimeout(Ao),Ao=void 0}function Ru(o,r,n){o.scrollLeft+=r,o.scrollTop+=n}function Vu(o){var r=window.Polymer,n=window.jQuery||window.Zepto;return r&&r.dom?r.dom(o).cloneNode(!0):n?n(o).clone(!0)[0]:o.cloneNode(!0)}function Fu(o,r,n){var t={};return Array.from(o.children).forEach(function(e){var a,i,l,c;if(!(!On(e,r.draggable,o,!1)||e.animated||e===n)){var u=Tt(e);t.left=Math.min((a=t.left)!==null&&a!==void 0?a:1/0,u.left),t.top=Math.min((i=t.top)!==null&&i!==void 0?i:1/0,u.top),t.right=Math.max((l=t.right)!==null&&l!==void 0?l:-1/0,u.right),t.bottom=Math.max((c=t.bottom)!==null&&c!==void 0?c:-1/0,u.bottom)}}),t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}var nn="Sortable"+new Date().getTime();function p5(){var o=[],r;return{captureAnimationState:function(){if(o=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(e){if(!(Ce(e,"display")==="none"||e===Se.ghost)){o.push({target:e,rect:Tt(e)});var a=Fn({},o[o.length-1].rect);if(e.thisAnimationDuration){var i=Xa(e,!0);i&&(a.top-=i.f,a.left-=i.e)}e.fromRect=a}})}},addAnimationState:function(t){o.push(t)},removeAnimationState:function(t){o.splice(d5(o,{target:t}),1)},animateAll:function(t){var e=this;if(!this.options.animation){clearTimeout(r),typeof t=="function"&&t();return}var a=!1,i=0;o.forEach(function(l){var c=0,u=l.target,d=u.fromRect,f=Tt(u),h=u.prevFromRect,p=u.prevToRect,v=l.rect,g=Xa(u,!0);g&&(f.top-=g.f,f.left-=g.e),u.toRect=f,u.thisAnimationDuration&&gs(h,f)&&!gs(d,f)&&(v.top-f.top)/(v.left-f.left)===(d.top-f.top)/(d.left-f.left)&&(c=m5(v,h,p,e.options)),gs(f,d)||(u.prevFromRect=d,u.prevToRect=f,c||(c=e.options.animation),e.animate(u,v,f,c)),c&&(a=!0,i=Math.max(i,c),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},c),u.thisAnimationDuration=c)}),clearTimeout(r),a?r=setTimeout(function(){typeof t=="function"&&t()},i):typeof t=="function"&&t(),o=[]},animate:function(t,e,a,i){if(i){Ce(t,"transition",""),Ce(t,"transform","");var l=Xa(this.el),c=l&&l.a,u=l&&l.d,d=(e.left-a.left)/(c||1),f=(e.top-a.top)/(u||1);t.animatingX=!!d,t.animatingY=!!f,Ce(t,"transform","translate3d("+d+"px,"+f+"px,0)"),this.forRepaintDummy=v5(t),Ce(t,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),Ce(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){Ce(t,"transition",""),Ce(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},i)}}}}function v5(o){return o.offsetWidth}function m5(o,r,n,t){return Math.sqrt(Math.pow(r.top-o.top,2)+Math.pow(r.left-o.left,2))/Math.sqrt(Math.pow(r.top-n.top,2)+Math.pow(r.left-n.left,2))*t.animation}var Qa=[],ys={initializeByDefault:!0},Do={mount:function(r){for(var n in ys)ys.hasOwnProperty(n)&&!(n in r)&&(r[n]=ys[n]);Qa.forEach(function(t){if(t.pluginName===r.pluginName)throw"Sortable: Cannot mount plugin ".concat(r.pluginName," more than once")}),Qa.push(r)},pluginEvent:function(r,n,t){var e=this;this.eventCanceled=!1,t.cancel=function(){e.eventCanceled=!0};var a=r+"Global";Qa.forEach(function(i){!n[i.pluginName]||(n[i.pluginName][a]&&n[i.pluginName][a](Fn({sortable:n},t)),n.options[i.pluginName]&&n[i.pluginName][r]&&n[i.pluginName][r](Fn({sortable:n},t)))})},initializePlugins:function(r,n,t,e){Qa.forEach(function(l){var c=l.pluginName;if(!(!r.options[c]&&!l.initializeByDefault)){var u=new l(r,n,r.options);u.sortable=r,u.options=r.options,r[c]=u,Qn(t,u.defaults)}});for(var a in r.options)if(!!r.options.hasOwnProperty(a)){var i=this.modifyOption(r,a,r.options[a]);typeof i<"u"&&(r.options[a]=i)}},getEventProperties:function(r,n){var t={};return Qa.forEach(function(e){typeof e.eventProperties=="function"&&Qn(t,e.eventProperties.call(n[e.pluginName],r))}),t},modifyOption:function(r,n,t){var e;return Qa.forEach(function(a){!r[a.pluginName]||a.optionListeners&&typeof a.optionListeners[n]=="function"&&(e=a.optionListeners[n].call(r[a.pluginName],t))}),e}};function g5(o){var r=o.sortable,n=o.rootEl,t=o.name,e=o.targetEl,a=o.cloneEl,i=o.toEl,l=o.fromEl,c=o.oldIndex,u=o.newIndex,d=o.oldDraggableIndex,f=o.newDraggableIndex,h=o.originalEvent,p=o.putSortable,v=o.extraEventProperties;if(r=r||n&&n[nn],!!r){var g,m=r.options,_="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!qn&&!xo?g=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(t,!0,!0)),g.to=i||n,g.from=l||n,g.item=e||n,g.clone=a,g.oldIndex=c,g.newIndex=u,g.oldDraggableIndex=d,g.newDraggableIndex=f,g.originalEvent=h,g.pullMode=p?p.lastPutMode:void 0;var b=Fn(Fn({},v),Do.getEventProperties(t,r));for(var y in b)g[y]=b[y];n&&n.dispatchEvent(g),m[_]&&m[_].call(r,g)}}var y5=["evt"],an=function(r,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e=t.evt,a=c5(t,y5);Do.pluginEvent.bind(Se)(r,n,Fn({dragEl:se,parentEl:wt,ghostEl:Pe,rootEl:ut,nextEl:Aa,lastDownEl:Pr,cloneEl:gt,cloneHidden:da,dragStarted:Oo,putSortable:Ft,activeSortable:Se.active,originalEvent:e,oldIndex:Za,oldDraggableIndex:Po,newIndex:gn,newDraggableIndex:fa,hideGhostForTarget:Ku,unhideGhostForTarget:Yu,cloneNowHidden:function(){da=!0},cloneNowShown:function(){da=!1},dispatchSortableEvent:function(l){Qt({sortable:n,name:l,originalEvent:e})}},a))};function Qt(o){g5(Fn({putSortable:Ft,cloneEl:gt,targetEl:se,rootEl:ut,oldIndex:Za,oldDraggableIndex:Po,newIndex:gn,newDraggableIndex:fa},o))}var se,wt,Pe,ut,Aa,Pr,gt,da,Za,gn,Po,fa,Or,Ft,qa=!1,Lr=!1,Ir=[],Da,Ln,_s,ws,Hu,zu,Oo,$a,Lo,Io=!1,Mr=!1,Nr,Gt,bs=[],Es=!1,Rr=[],Vr=typeof document<"u",Fr=vs,Uu=xo||qn?"cssFloat":"float",_5=Vr&&!Au&&!vs&&"draggable"in document.createElement("div"),ju=function(){if(!!Vr){if(qn)return!1;var o=document.createElement("x");return o.style.cssText="pointer-events:auto",o.style.pointerEvents==="auto"}}(),Gu=function(r,n){var t=Ce(r),e=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),a=Ja(r,0,n),i=Ja(r,1,n),l=a&&Ce(a),c=i&&Ce(i),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Tt(a).width,d=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Tt(i).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&l.float&&l.float!=="none"){var f=l.float==="left"?"left":"right";return i&&(c.clear==="both"||c.clear===f)?"vertical":"horizontal"}return a&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=e&&t[Uu]==="none"||i&&t[Uu]==="none"&&u+d>e)?"vertical":"horizontal"},w5=function(r,n,t){var e=t?r.left:r.top,a=t?r.right:r.bottom,i=t?r.width:r.height,l=t?n.left:n.top,c=t?n.right:n.bottom,u=t?n.width:n.height;return e===l||a===c||e+i/2===l+u/2},b5=function(r,n){var t;return Ir.some(function(e){var a=e[nn].options.emptyInsertThreshold;if(!(!a||ms(e))){var i=Tt(e),l=r>=i.left-a&&r<=i.right+a,c=n>=i.top-a&&n<=i.bottom+a;if(l&&c)return t=e}}),t},Wu=function(r){function n(a,i){return function(l,c,u,d){var f=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(a==null&&(i||f))return!0;if(a==null||a===!1)return!1;if(i&&a==="clone")return a;if(typeof a=="function")return n(a(l,c,u,d),i)(l,c,u,d);var h=(i?l:c).options.group.name;return a===!0||typeof a=="string"&&a===h||a.join&&a.indexOf(h)>-1}}var t={},e=r.group;(!e||Ar(e)!="object")&&(e={name:e}),t.name=e.name,t.checkPull=n(e.pull,!0),t.checkPut=n(e.put),t.revertClone=e.revertClone,r.group=t},Ku=function(){!ju&&Pe&&Ce(Pe,"display","none")},Yu=function(){!ju&&Pe&&Ce(Pe,"display","")};Vr&&!Au&&document.addEventListener("click",function(o){if(Lr)return o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.stopImmediatePropagation&&o.stopImmediatePropagation(),Lr=!1,!1},!0);var Pa=function(r){if(se){r=r.touches?r.touches[0]:r;var n=b5(r.clientX,r.clientY);if(n){var t={};for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[nn]._onDragOver(t)}}},E5=function(r){se&&se.parentNode[nn]._isOutsideThisEl(r.target)};function Se(o,r){if(!(o&&o.nodeType&&o.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));this.el=o,this.options=r=Qn({},r),o[nn]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(o.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Gu(o,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,l){i.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Se.supportPointer!==!1&&"PointerEvent"in window&&(!Bo||vs),emptyInsertThreshold:5};Do.initializePlugins(this,o,n);for(var t in n)!(t in r)&&(r[t]=n[t]);Wu(r);for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this));this.nativeDraggable=r.forceFallback?!1:_5,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?Qe(o,"pointerdown",this._onTapStart):(Qe(o,"mousedown",this._onTapStart),Qe(o,"touchstart",this._onTapStart)),this.nativeDraggable&&(Qe(o,"dragover",this),Qe(o,"dragenter",this)),Ir.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),Qn(this,p5())}Se.prototype={constructor:Se,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&($a=null)},_getDirection:function(r,n){return typeof this.options.direction=="function"?this.options.direction.call(this,r,n,se):this.options.direction},_onTapStart:function(r){if(!!r.cancelable){var n=this,t=this.el,e=this.options,a=e.preventOnFilter,i=r.type,l=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,c=(l||r).target,u=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||c,d=e.filter;if(D5(t),!se&&!(/mousedown|pointerdown/.test(i)&&r.button!==0||e.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Bo&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=On(c,e.draggable,t,!1),!(c&&c.animated)&&Pr!==c)){if(Za=Sn(c),Po=Sn(c,e.draggable),typeof d=="function"){if(d.call(this,r,c,this)){Qt({sortable:n,rootEl:u,name:"filter",targetEl:c,toEl:t,fromEl:t}),an("filter",n,{evt:r}),a&&r.preventDefault();return}}else if(d&&(d=d.split(",").some(function(f){if(f=On(u,f.trim(),t,!1),f)return Qt({sortable:n,rootEl:f,name:"filter",targetEl:c,fromEl:t,toEl:t}),an("filter",n,{evt:r}),!0}),d)){a&&r.preventDefault();return}e.handle&&!On(u,e.handle,t,!1)||this._prepareDragStart(r,l,c)}}},_prepareDragStart:function(r,n,t){var e=this,a=e.el,i=e.options,l=a.ownerDocument,c;if(t&&!se&&t.parentNode===a){var u=Tt(t);if(ut=a,se=t,wt=se.parentNode,Aa=se.nextSibling,Pr=t,Or=i.group,Se.dragged=se,Da={target:se,clientX:(n||r).clientX,clientY:(n||r).clientY},Hu=Da.clientX-u.left,zu=Da.clientY-u.top,this._lastX=(n||r).clientX,this._lastY=(n||r).clientY,se.style["will-change"]="all",c=function(){if(an("delayEnded",e,{evt:r}),Se.eventCanceled){e._onDrop();return}e._disableDelayedDragEvents(),!Bu&&e.nativeDraggable&&(se.draggable=!0),e._triggerDragStart(r,n),Qt({sortable:e,name:"choose",originalEvent:r}),mn(se,i.chosenClass,!0)},i.ignore.split(",").forEach(function(d){Lu(se,d.trim(),Cs)}),Qe(l,"dragover",Pa),Qe(l,"mousemove",Pa),Qe(l,"touchmove",Pa),i.supportPointer?(Qe(l,"pointerup",e._onDrop),!this.nativeDraggable&&Qe(l,"pointercancel",e._onDrop)):(Qe(l,"mouseup",e._onDrop),Qe(l,"touchend",e._onDrop),Qe(l,"touchcancel",e._onDrop)),Bu&&this.nativeDraggable&&(this.options.touchStartThreshold=4,se.draggable=!0),an("delayStart",this,{evt:r}),i.delay&&(!i.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(xo||qn))){if(Se.eventCanceled){this._onDrop();return}i.supportPointer?(Qe(l,"pointerup",e._disableDelayedDrag),Qe(l,"pointercancel",e._disableDelayedDrag)):(Qe(l,"mouseup",e._disableDelayedDrag),Qe(l,"touchend",e._disableDelayedDrag),Qe(l,"touchcancel",e._disableDelayedDrag)),Qe(l,"mousemove",e._delayedDragTouchMoveHandler),Qe(l,"touchmove",e._delayedDragTouchMoveHandler),i.supportPointer&&Qe(l,"pointermove",e._delayedDragTouchMoveHandler),e._dragStartTimer=setTimeout(c,i.delay)}else c()}},_delayedDragTouchMoveHandler:function(r){var n=r.touches?r.touches[0]:r;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){se&&Cs(se),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;Ke(r,"mouseup",this._disableDelayedDrag),Ke(r,"touchend",this._disableDelayedDrag),Ke(r,"touchcancel",this._disableDelayedDrag),Ke(r,"pointerup",this._disableDelayedDrag),Ke(r,"pointercancel",this._disableDelayedDrag),Ke(r,"mousemove",this._delayedDragTouchMoveHandler),Ke(r,"touchmove",this._delayedDragTouchMoveHandler),Ke(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,n){n=n||r.pointerType=="touch"&&r,!this.nativeDraggable||n?this.options.supportPointer?Qe(document,"pointermove",this._onTouchMove):n?Qe(document,"touchmove",this._onTouchMove):Qe(document,"mousemove",this._onTouchMove):(Qe(se,"dragend",this),Qe(ut,"dragstart",this._onDragStart));try{document.selection?zr(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,n){if(qa=!1,ut&&se){an("dragStarted",this,{evt:n}),this.nativeDraggable&&Qe(document,"dragover",E5);var t=this.options;!r&&mn(se,t.dragClass,!1),mn(se,t.ghostClass,!0),Se.active=this,r&&this._appendGhost(),Qt({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ln){this._lastX=Ln.clientX,this._lastY=Ln.clientY,Ku();for(var r=document.elementFromPoint(Ln.clientX,Ln.clientY),n=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(Ln.clientX,Ln.clientY),r!==n);)n=r;if(se.parentNode[nn]._isOutsideThisEl(r),n)do{if(n[nn]){var t=void 0;if(t=n[nn]._onDragOver({clientX:Ln.clientX,clientY:Ln.clientY,target:r,rootEl:n}),t&&!this.options.dragoverBubble)break}r=n}while(n=Pu(n));Yu()}},_onTouchMove:function(r){if(Da){var n=this.options,t=n.fallbackTolerance,e=n.fallbackOffset,a=r.touches?r.touches[0]:r,i=Pe&&Xa(Pe,!0),l=Pe&&i&&i.a,c=Pe&&i&&i.d,u=Fr&&Gt&&Mu(Gt),d=(a.clientX-Da.clientX+e.x)/(l||1)+(u?u[0]-bs[0]:0)/(l||1),f=(a.clientY-Da.clientY+e.y)/(c||1)+(u?u[1]-bs[1]:0)/(c||1);if(!Se.active&&!qa){if(t&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<t)return;this._onDragStart(r,!0)}if(Pe){i?(i.e+=d-(_s||0),i.f+=f-(ws||0)):i={a:1,b:0,c:0,d:1,e:d,f};var h="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");Ce(Pe,"webkitTransform",h),Ce(Pe,"mozTransform",h),Ce(Pe,"msTransform",h),Ce(Pe,"transform",h),_s=d,ws=f,Ln=a}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!Pe){var r=this.options.fallbackOnBody?document.body:ut,n=Tt(se,!0,Fr,!0,r),t=this.options;if(Fr){for(Gt=r;Ce(Gt,"position")==="static"&&Ce(Gt,"transform")==="none"&&Gt!==document;)Gt=Gt.parentNode;Gt!==document.body&&Gt!==document.documentElement?(Gt===document&&(Gt=Hn()),n.top+=Gt.scrollTop,n.left+=Gt.scrollLeft):Gt=Hn(),bs=Mu(Gt)}Pe=se.cloneNode(!0),mn(Pe,t.ghostClass,!1),mn(Pe,t.fallbackClass,!0),mn(Pe,t.dragClass,!0),Ce(Pe,"transition",""),Ce(Pe,"transform",""),Ce(Pe,"box-sizing","border-box"),Ce(Pe,"margin",0),Ce(Pe,"top",n.top),Ce(Pe,"left",n.left),Ce(Pe,"width",n.width),Ce(Pe,"height",n.height),Ce(Pe,"opacity","0.8"),Ce(Pe,"position",Fr?"absolute":"fixed"),Ce(Pe,"zIndex","100000"),Ce(Pe,"pointerEvents","none"),Se.ghost=Pe,r.appendChild(Pe),Ce(Pe,"transform-origin",Hu/parseInt(Pe.style.width)*100+"% "+zu/parseInt(Pe.style.height)*100+"%")}},_onDragStart:function(r,n){var t=this,e=r.dataTransfer,a=t.options;if(an("dragStart",this,{evt:r}),Se.eventCanceled){this._onDrop();return}an("setupClone",this),Se.eventCanceled||(gt=Vu(se),gt.removeAttribute("id"),gt.draggable=!1,gt.style["will-change"]="",this._hideClone(),mn(gt,this.options.chosenClass,!1),Se.clone=gt),t.cloneId=zr(function(){an("clone",t),!Se.eventCanceled&&(t.options.removeCloneOnHide||ut.insertBefore(gt,se),t._hideClone(),Qt({sortable:t,name:"clone"}))}),!n&&mn(se,a.dragClass,!0),n?(Lr=!0,t._loopId=setInterval(t._emulateDragOver,50)):(Ke(document,"mouseup",t._onDrop),Ke(document,"touchend",t._onDrop),Ke(document,"touchcancel",t._onDrop),e&&(e.effectAllowed="move",a.setData&&a.setData.call(t,e,se)),Qe(document,"drop",t),Ce(se,"transform","translateZ(0)")),qa=!0,t._dragStartId=zr(t._dragStarted.bind(t,n,r)),Qe(document,"selectstart",t),Oo=!0,window.getSelection().removeAllRanges(),Bo&&Ce(document.body,"user-select","none")},_onDragOver:function(r){var n=this.el,t=r.target,e,a,i,l=this.options,c=l.group,u=Se.active,d=Or===c,f=l.sort,h=Ft||u,p,v=this,g=!1;if(Es)return;function m(N,H){an(N,v,Fn({evt:r,isOwner:d,axis:p?"vertical":"horizontal",revert:i,dragRect:e,targetRect:a,canSort:f,fromSortable:h,target:t,completed:b,onMove:function(U,le){return Hr(ut,n,se,e,U,Tt(U),r,le)},changed:y},H))}function _(){m("dragOverAnimationCapture"),v.captureAnimationState(),v!==h&&h.captureAnimationState()}function b(N){return m("dragOverCompleted",{insertion:N}),N&&(d?u._hideClone():u._showClone(v),v!==h&&(mn(se,Ft?Ft.options.ghostClass:u.options.ghostClass,!1),mn(se,l.ghostClass,!0)),Ft!==v&&v!==Se.active?Ft=v:v===Se.active&&Ft&&(Ft=null),h===v&&(v._ignoreWhileAnimating=t),v.animateAll(function(){m("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(t===se&&!se.animated||t===n&&!t.animated)&&($a=null),!l.dragoverBubble&&!r.rootEl&&t!==document&&(se.parentNode[nn]._isOutsideThisEl(r.target),!N&&Pa(r)),!l.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),g=!0}function y(){gn=Sn(se),fa=Sn(se,l.draggable),Qt({sortable:v,name:"change",toEl:n,newIndex:gn,newDraggableIndex:fa,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),t=On(t,l.draggable,n,!0),m("dragOver"),Se.eventCanceled)return g;if(se.contains(r.target)||t.animated&&t.animatingX&&t.animatingY||v._ignoreWhileAnimating===t)return b(!1);if(Lr=!1,u&&!l.disabled&&(d?f||(i=wt!==ut):Ft===this||(this.lastPutMode=Or.checkPull(this,u,se,r))&&c.checkPut(this,u,se,r))){if(p=this._getDirection(r,t)==="vertical",e=Tt(se),m("dragOverValid"),Se.eventCanceled)return g;if(i)return wt=ut,_(),this._hideClone(),m("revert"),Se.eventCanceled||(Aa?ut.insertBefore(se,Aa):ut.appendChild(se)),b(!0);var w=ms(n,l.draggable);if(!w||T5(r,p,this)&&!w.animated){if(w===se)return b(!1);if(w&&n===r.target&&(t=w),t&&(a=Tt(t)),Hr(ut,n,se,e,t,a,r,!!t)!==!1)return _(),w&&w.nextSibling?n.insertBefore(se,w.nextSibling):n.appendChild(se),wt=n,y(),b(!0)}else if(w&&k5(r,p,this)){var S=Ja(n,0,l,!0);if(S===se)return b(!1);if(t=S,a=Tt(t),Hr(ut,n,se,e,t,a,r,!1)!==!1)return _(),n.insertBefore(se,S),wt=n,y(),b(!0)}else if(t.parentNode===n){a=Tt(t);var D=0,C,B=se.parentNode!==n,A=!w5(se.animated&&se.toRect||e,t.animated&&t.toRect||a,p),L=p?"top":"left",I=Iu(t,"top","top")||Iu(se,"top","top"),E=I?I.scrollTop:void 0;$a!==t&&(C=a[L],Io=!1,Mr=!A&&l.invertSwap||B),D=x5(r,t,a,p,A?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Mr,$a===t);var x;if(D!==0){var k=Sn(se);do k-=D,x=wt.children[k];while(x&&(Ce(x,"display")==="none"||x===Pe))}if(D===0||x===t)return b(!1);$a=t,Lo=D;var O=t.nextElementSibling,P=!1;P=D===1;var R=Hr(ut,n,se,e,t,a,r,P);if(R!==!1)return(R===1||R===-1)&&(P=R===1),Es=!0,setTimeout(S5,30),_(),P&&!O?n.appendChild(se):t.parentNode.insertBefore(se,P?O:t),I&&Ru(I,0,E-I.scrollTop),wt=se.parentNode,C!==void 0&&!Mr&&(Nr=Math.abs(C-Tt(t)[L])),y(),b(!0)}if(n.contains(se))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ke(document,"mousemove",this._onTouchMove),Ke(document,"touchmove",this._onTouchMove),Ke(document,"pointermove",this._onTouchMove),Ke(document,"dragover",Pa),Ke(document,"mousemove",Pa),Ke(document,"touchmove",Pa)},_offUpEvents:function(){var r=this.el.ownerDocument;Ke(r,"mouseup",this._onDrop),Ke(r,"touchend",this._onDrop),Ke(r,"pointerup",this._onDrop),Ke(r,"pointercancel",this._onDrop),Ke(r,"touchcancel",this._onDrop),Ke(document,"selectstart",this)},_onDrop:function(r){var n=this.el,t=this.options;if(gn=Sn(se),fa=Sn(se,t.draggable),an("drop",this,{evt:r}),wt=se&&se.parentNode,gn=Sn(se),fa=Sn(se,t.draggable),Se.eventCanceled){this._nulling();return}qa=!1,Mr=!1,Io=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ss(this.cloneId),Ss(this._dragStartId),this.nativeDraggable&&(Ke(document,"drop",this),Ke(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Bo&&Ce(document.body,"user-select",""),Ce(se,"transform",""),r&&(Oo&&(r.cancelable&&r.preventDefault(),!t.dropBubble&&r.stopPropagation()),Pe&&Pe.parentNode&&Pe.parentNode.removeChild(Pe),(ut===wt||Ft&&Ft.lastPutMode!=="clone")&>&>.parentNode&>.parentNode.removeChild(gt),se&&(this.nativeDraggable&&Ke(se,"dragend",this),Cs(se),se.style["will-change"]="",Oo&&!qa&&mn(se,Ft?Ft.options.ghostClass:this.options.ghostClass,!1),mn(se,this.options.chosenClass,!1),Qt({sortable:this,name:"unchoose",toEl:wt,newIndex:null,newDraggableIndex:null,originalEvent:r}),ut!==wt?(gn>=0&&(Qt({rootEl:wt,name:"add",toEl:wt,fromEl:ut,originalEvent:r}),Qt({sortable:this,name:"remove",toEl:wt,originalEvent:r}),Qt({rootEl:wt,name:"sort",toEl:wt,fromEl:ut,originalEvent:r}),Qt({sortable:this,name:"sort",toEl:wt,originalEvent:r})),Ft&&Ft.save()):gn!==Za&&gn>=0&&(Qt({sortable:this,name:"update",toEl:wt,originalEvent:r}),Qt({sortable:this,name:"sort",toEl:wt,originalEvent:r})),Se.active&&((gn==null||gn===-1)&&(gn=Za,fa=Po),Qt({sortable:this,name:"end",toEl:wt,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){an("nulling",this),ut=se=wt=Pe=Aa=gt=Pr=da=Da=Ln=Oo=gn=fa=Za=Po=$a=Lo=Ft=Or=Se.dragged=Se.ghost=Se.clone=Se.active=null,Rr.forEach(function(r){r.checked=!0}),Rr.length=_s=ws=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":se&&(this._onDragOver(r),C5(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],n,t=this.el.children,e=0,a=t.length,i=this.options;e<a;e++)n=t[e],On(n,i.draggable,this.el,!1)&&r.push(n.getAttribute(i.dataIdAttr)||A5(n));return r},sort:function(r,n){var t={},e=this.el;this.toArray().forEach(function(a,i){var l=e.children[i];On(l,this.options.draggable,e,!1)&&(t[a]=l)},this),n&&this.captureAnimationState(),r.forEach(function(a){t[a]&&(e.removeChild(t[a]),e.appendChild(t[a]))}),n&&this.animateAll()},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,n){return On(r,n||this.options.draggable,this.el,!1)},option:function(r,n){var t=this.options;if(n===void 0)return t[r];var e=Do.modifyOption(this,r,n);typeof e<"u"?t[r]=e:t[r]=n,r==="group"&&Wu(t)},destroy:function(){an("destroy",this);var r=this.el;r[nn]=null,Ke(r,"mousedown",this._onTapStart),Ke(r,"touchstart",this._onTapStart),Ke(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ke(r,"dragover",this),Ke(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ir.splice(Ir.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!da){if(an("hideClone",this),Se.eventCanceled)return;Ce(gt,"display","none"),this.options.removeCloneOnHide&>.parentNode&>.parentNode.removeChild(gt),da=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(da){if(an("showClone",this),Se.eventCanceled)return;se.parentNode==ut&&!this.options.group.revertClone?ut.insertBefore(gt,se):Aa?ut.insertBefore(gt,Aa):ut.appendChild(gt),this.options.group.revertClone&&this.animate(se,gt),Ce(gt,"display",""),da=!1}}};function C5(o){o.dataTransfer&&(o.dataTransfer.dropEffect="move"),o.cancelable&&o.preventDefault()}function Hr(o,r,n,t,e,a,i,l){var c,u=o[nn],d=u.options.onMove,f;return window.CustomEvent&&!qn&&!xo?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=r,c.from=o,c.dragged=n,c.draggedRect=t,c.related=e||r,c.relatedRect=a||Tt(r),c.willInsertAfter=l,c.originalEvent=i,o.dispatchEvent(c),d&&(f=d.call(u,c,i)),f}function Cs(o){o.draggable=!1}function S5(){Es=!1}function k5(o,r,n){var t=Tt(Ja(n.el,0,n.options,!0)),e=Fu(n.el,n.options,Pe),a=10;return r?o.clientX<e.left-a||o.clientY<t.top&&o.clientX<t.right:o.clientY<e.top-a||o.clientY<t.bottom&&o.clientX<t.left}function T5(o,r,n){var t=Tt(ms(n.el,n.options.draggable)),e=Fu(n.el,n.options,Pe),a=10;return r?o.clientX>e.right+a||o.clientY>t.bottom&&o.clientX>t.left:o.clientY>e.bottom+a||o.clientX>t.right&&o.clientY>t.top}function x5(o,r,n,t,e,a,i,l){var c=t?o.clientY:o.clientX,u=t?n.height:n.width,d=t?n.top:n.left,f=t?n.bottom:n.right,h=!1;if(!i){if(l&&Nr<u*e){if(!Io&&(Lo===1?c>d+u*a/2:c<f-u*a/2)&&(Io=!0),Io)h=!0;else if(Lo===1?c<d+Nr:c>f-Nr)return-Lo}else if(c>d+u*(1-e)/2&&c<f-u*(1-e)/2)return B5(r)}return h=h||i,h&&(c<d+u*a/2||c>f-u*a/2)?c>d+u/2?1:-1:0}function B5(o){return Sn(se)<Sn(o)?1:-1}function A5(o){for(var r=o.tagName+o.className+o.src+o.href+o.textContent,n=r.length,t=0;n--;)t+=r.charCodeAt(n);return t.toString(36)}function D5(o){Rr.length=0;for(var r=o.getElementsByTagName("input"),n=r.length;n--;){var t=r[n];t.checked&&Rr.push(t)}}function zr(o){return setTimeout(o,0)}function Ss(o){return clearTimeout(o)}Vr&&Qe(document,"touchmove",function(o){(Se.active||qa)&&o.cancelable&&o.preventDefault()}),Se.utils={on:Qe,off:Ke,css:Ce,find:Lu,is:function(r,n){return!!On(r,n,r,!1)},extend:f5,throttle:Nu,closest:On,toggleClass:mn,clone:Vu,index:Sn,nextTick:zr,cancelNextTick:Ss,detectDirection:Gu,getChild:Ja,expando:nn},Se.get=function(o){return o[nn]},Se.mount=function(){for(var o=arguments.length,r=new Array(o),n=0;n<o;n++)r[n]=arguments[n];r[0].constructor===Array&&(r=r[0]),r.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Se.utils=Fn(Fn({},Se.utils),t.utils)),Do.mount(t)})},Se.create=function(o,r){return new Se(o,r)},Se.version=u5;var xt=[],Mo,ks,Ts=!1,xs,Bs,Ur,No;function P5(){function o(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this))}return o.prototype={dragStarted:function(n){var t=n.originalEvent;this.sortable.nativeDraggable?Qe(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Qe(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Qe(document,"touchmove",this._handleFallbackAutoScroll):Qe(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var t=n.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Ke(document,"dragover",this._handleAutoScroll):(Ke(document,"pointermove",this._handleFallbackAutoScroll),Ke(document,"touchmove",this._handleFallbackAutoScroll),Ke(document,"mousemove",this._handleFallbackAutoScroll)),Xu(),jr(),h5()},nulling:function(){Ur=ks=Mo=Ts=No=xs=Bs=null,xt.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,t){var e=this,a=(n.touches?n.touches[0]:n).clientX,i=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(a,i);if(Ur=n,t||this.options.forceAutoScrollFallback||xo||qn||Bo){As(n,this.options,l,t);var c=ua(l,!0);Ts&&(!No||a!==xs||i!==Bs)&&(No&&Xu(),No=setInterval(function(){var u=ua(document.elementFromPoint(a,i),!0);u!==c&&(c=u,jr()),As(n,e.options,u,t)},10),xs=a,Bs=i)}else{if(!this.options.bubbleScroll||ua(l,!0)===Hn()){jr();return}As(n,this.options,ua(l,!1),!1)}}},Qn(o,{pluginName:"scroll",initializeByDefault:!0})}function jr(){xt.forEach(function(o){clearInterval(o.pid)}),xt=[]}function Xu(){clearInterval(No)}var As=Nu(function(o,r,n,t){if(!!r.scroll){var e=(o.touches?o.touches[0]:o).clientX,a=(o.touches?o.touches[0]:o).clientY,i=r.scrollSensitivity,l=r.scrollSpeed,c=Hn(),u=!1,d;ks!==n&&(ks=n,jr(),Mo=r.scroll,d=r.scrollFn,Mo===!0&&(Mo=ua(n,!0)));var f=0,h=Mo;do{var p=h,v=Tt(p),g=v.top,m=v.bottom,_=v.left,b=v.right,y=v.width,w=v.height,S=void 0,D=void 0,C=p.scrollWidth,B=p.scrollHeight,A=Ce(p),L=p.scrollLeft,I=p.scrollTop;p===c?(S=y<C&&(A.overflowX==="auto"||A.overflowX==="scroll"||A.overflowX==="visible"),D=w<B&&(A.overflowY==="auto"||A.overflowY==="scroll"||A.overflowY==="visible")):(S=y<C&&(A.overflowX==="auto"||A.overflowX==="scroll"),D=w<B&&(A.overflowY==="auto"||A.overflowY==="scroll"));var E=S&&(Math.abs(b-e)<=i&&L+y<C)-(Math.abs(_-e)<=i&&!!L),x=D&&(Math.abs(m-a)<=i&&I+w<B)-(Math.abs(g-a)<=i&&!!I);if(!xt[f])for(var k=0;k<=f;k++)xt[k]||(xt[k]={});(xt[f].vx!=E||xt[f].vy!=x||xt[f].el!==p)&&(xt[f].el=p,xt[f].vx=E,xt[f].vy=x,clearInterval(xt[f].pid),(E!=0||x!=0)&&(u=!0,xt[f].pid=setInterval(function(){t&&this.layer===0&&Se.active._onTouchMove(Ur);var O=xt[this.layer].vy?xt[this.layer].vy*l:0,P=xt[this.layer].vx?xt[this.layer].vx*l:0;typeof d=="function"&&d.call(Se.dragged.parentNode[nn],P,O,o,Ur,xt[this.layer].el)!=="continue"||Ru(xt[this.layer].el,P,O)}.bind({layer:f}),24))),f++}while(r.bubbleScroll&&h!==c&&(h=ua(h,!1)));Ts=u}},30),Ju=function(r){var n=r.originalEvent,t=r.putSortable,e=r.dragEl,a=r.activeSortable,i=r.dispatchSortableEvent,l=r.hideGhostForTarget,c=r.unhideGhostForTarget;if(!!n){var u=t||a;l();var d=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(d.clientX,d.clientY);c(),u&&!u.el.contains(f)&&(i("spill"),this.onSpill({dragEl:e,putSortable:t}))}};function Ds(){}Ds.prototype={startIndex:null,dragStart:function(r){var n=r.oldDraggableIndex;this.startIndex=n},onSpill:function(r){var n=r.dragEl,t=r.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var e=Ja(this.sortable.el,this.startIndex,this.options);e?this.sortable.el.insertBefore(n,e):this.sortable.el.appendChild(n),this.sortable.animateAll(),t&&t.animateAll()},drop:Ju},Qn(Ds,{pluginName:"revertOnSpill"});function Ps(){}Ps.prototype={onSpill:function(r){var n=r.dragEl,t=r.putSortable,e=t||this.sortable;e.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),e.animateAll()},drop:Ju},Qn(Ps,{pluginName:"removeOnSpill"}),Se.mount(new P5),Se.mount(Ps,Ds);const Qu=s.defineComponent({name:"SingleEditCell",__name:"singleEditCell",props:{configEdit:{type:Object,default:()=>({})},listTypeInfo:{type:Object,default:()=>({})},scope:{type:Object,default:()=>({})},prop:{type:String,default:"prop"},isShowRules:{type:Boolean,default:!0},modelValue:{type:[String,Number,Array,Boolean,Date,Object]},indexColumns:[String,Number]},emits:["handleEvent","update:modelValue","keyupHandle","getRefs"],setup(o,{expose:r,emit:n}){const t=o,e=n;let a=s.computed({get(){return t==null?void 0:t.modelValue},set(y){e("update:modelValue",y)}});s.watch(()=>t.modelValue,y=>{a.value=y});const i=y=>{setTimeout(()=>{e("handleEvent",{type:y,val:a.value})},0)},l=y=>{e("keyupHandle",y,t.scope.$index,t.prop)},c=s.computed(()=>({eventHandle:y},w="")=>{let S={...y},D={};return Object.keys(S).forEach(C=>{D[C]=(B,A)=>{if(w==="t-select-table"){const L={row:B,ids:A,prop:t.prop,scope:t.scope};S[C]&&S[C](L)}else typeof B=="number"&&B===0||B?S[C]&&S[C]({val:B,prop:t.prop,scope:t.scope}):S[C]&&S[C]({prop:t.prop,scope:t.scope})}}),{...D}}),u=s.computed(()=>y=>t.listTypeInfo?t.listTypeInfo[y.list]:[]),d=s.computed(()=>y=>{switch(y.type){case"checkbox":return"el-checkbox";case"radio":return"el-radio";case"select-arr":case"select-obj":return"el-option"}}),f=s.computed(()=>(y,w)=>{switch(y.type){case"radio":case"checkbox":return w[y.arrLabel||"label"];case"el-select-multiple":case"select-arr":return w[y.arrLabel||"label"];case"select-obj":return w}}),h=s.computed(()=>(y,w,S)=>{switch(y.type){case"radio":case"checkbox":return w[y.arrKey||"key"];case"el-select-multiple":case"select-arr":return w[y.arrKey||"key"];case"select-obj":return S}}),p=s.computed(()=>(y,w)=>{switch(y.type){case"radio":case"checkbox":return w[y.arrLabel||"label"];case"el-select-multiple":case"select-arr":return w[y.arrLabel||"label"];case"select-obj":return w}}),v=(y,w)=>{e("getRefs",y,w)},g=s.ref({}),m=(y,w)=>{e("getRefs",y,w),y&&(g.value[`tselecttableref-${t.indexColumns}`]=y)},_=()=>{const y=Object.keys(g.value).filter(w=>w.includes("tselecttableref"));y.length>0&&g.value&&y.map(w=>{g.value[w].clear()})},b=y=>{if(!y.editComponent||typeof y.editComponent!="string")return y.label;const w=y.editComponent.toLowerCase();return w.includes("input")?"\u8BF7\u8F93\u5165"+y.label:w.includes("select")||w.includes("date")?"\u8BF7\u9009\u62E9"+y.label:y.label};return r({resetTselectTableFields:_}),(y,w)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.isShowRules?"el-form-item":"div"),s.mergeProps({prop:o.prop,rules:o.configEdit.rules,class:[o.configEdit.className,{single_edit_cell_rules:o.configEdit.rules},"single_edit_cell"]},y.$attrs),{default:s.withCtx(()=>[o.configEdit.editSlotName?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass([o.prop,"slot_edit_name"]),onKeyup:l},[s.renderSlot(y.$slots,o.configEdit.editSlotName,{scope:o.scope})],34)):s.createCommentVNode("",!0),o.configEdit.isSelfCom?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[o.configEdit.editComponent==="t-select-table"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.configEdit.editComponent),s.mergeProps({key:0,ref:S=>m(S,o.configEdit),placeholder:o.configEdit.placeholder||b(o.configEdit)},typeof o.configEdit.bind=="function"?o.configEdit.bind(o.scope):{clearable:!0,filterable:!0,...o.configEdit.bind},{style:{width:o.configEdit.width||"100%"}},s.toHandlers(c.value(o.configEdit,"t-select-table"))),null,16,["placeholder","style"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.configEdit.editComponent),s.mergeProps({key:1,modelValue:s.unref(a),"onUpdate:modelValue":w[0]||(w[0]=S=>s.isRef(a)?a.value=S:a=S),placeholder:o.configEdit.placeholder||b(o.configEdit),ref:S=>v(S,o.configEdit)},typeof o.configEdit.bind=="function"?o.configEdit.bind(o.scope):{clearable:!0,filterable:!0,...o.configEdit.bind},{onChange:w[1]||(w[1]=S=>i(o.configEdit.event)),style:{width:o.configEdit.width||"100%"}},s.toHandlers(c.value(o.configEdit))),null,16,["modelValue","placeholder","style"]))],64)):s.createCommentVNode("",!0),!o.configEdit.editSlotName&&!o.configEdit.isSelfCom?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.configEdit.editComponent||"el-input"),s.mergeProps({key:2,modelValue:s.unref(a),"onUpdate:modelValue":w[2]||(w[2]=S=>s.isRef(a)?a.value=S:a=S),type:o.configEdit.type,placeholder:o.configEdit.placeholder||b(o.configEdit),ref:S=>v(S,o.configEdit),class:o.prop,onChange:w[3]||(w[3]=S=>i(o.configEdit.event)),onKeyup:l,style:{width:o.configEdit.width||"100%"}},s.toHandlers(c.value(o.configEdit)),typeof o.configEdit.bind=="function"?o.configEdit.bind(o.scope):{clearable:!0,filterable:!0,...o.configEdit.bind}),s.createSlots({default:s.withCtx(()=>[o.configEdit.editComponent.includes("date")?s.createCommentVNode("",!0):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(u.value(o.configEdit),(S,D,C)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(d.value(o.configEdit)),{key:C,disabled:S.disabled,label:f.value(o.configEdit,S),value:h.value(o.configEdit,S,D)},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(p.value(o.configEdit,S)),1)]),_:2},1032,["disabled","label","value"]))),128))]),_:2},[o.configEdit.prepend?{name:"prepend",fn:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(o.configEdit.prepend),1)]),key:"0"}:void 0,o.configEdit.append?{name:"append",fn:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(o.configEdit.append),1)]),key:"1"}:void 0]),1040,["modelValue","type","placeholder","class","style"])):s.createCommentVNode("",!0)]),_:3},16,["prop","rules","class"]))}}),ak="",Gr=s.defineComponent({name:"RenderCol",props:{row:Object,render:Function,index:Number,column:{type:Object,default:null}},render(o){var r;return o.row,o.index,o.column&&o.column,o.render(o==null?void 0:o.row[(r=o==null?void 0:o.column)==null?void 0:r.prop],o.row,o.index)}}),Os=s.defineComponent({name:"RenderHeader",props:{render:Function,column:{type:Object,default:null}},render(o){return o.render(o==null?void 0:o.column)}}),O5={key:3},L5=s.defineComponent({name:"TTableColumn",__name:"TTableColumn",props:{item:{type:Object,default:()=>({}),required:!0},align:{type:String,default:"center"},sortable:{type:[Boolean,String]}},emits:["handleEvent"],setup(o,{emit:r}){const n=r,t=s.useSlots();return(e,a)=>{const i=s.resolveComponent("t-table-column",!0),l=s.resolveComponent("el-table-column");return s.openBlock(),s.createBlock(l,{prop:o.item.prop,label:o.item.label,type:o.item.type,align:o.item.align||o.align,"min-width":o.item["min-width"]||o.item.minWidth,width:o.item.width,fixed:o.item.fixed},s.createSlots({default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.item.children,(c,u)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[c.children?(s.openBlock(),s.createBlock(i,s.mergeProps({key:u,item:c,prop:c.prop,label:c.label,"min-width":c["min-width"]||c.minWidth,width:c.width,sortable:c.sortable||c.sort||o.sortable,align:c.align||o.align,formatter:c.formatter,fixed:c.fixed,ref_for:!0},{"show-overflow-tooltip":!0,...c.bind,...e.$attrs}),s.createSlots({_:2},[s.renderList(s.unref(t),(d,f)=>({name:f,fn:s.withCtx(h=>[s.renderSlot(e.$slots,f,s.mergeProps({ref_for:!0},h))])}))]),1040,["item","prop","label","min-width","width","sortable","align","formatter","fixed"])):(s.openBlock(),s.createBlock(l,s.mergeProps({key:c.prop,prop:c.prop,label:c.label,"min-width":c["min-width"]||c.minWidth,width:c.width,sortable:c.sortable||c.sort||o.sortable,align:c.align||o.align,fixed:c.fixed,formatter:c.formatter,ref_for:!0},{"show-overflow-tooltip":!0,...c.bind,...e.$attrs}),s.createSlots({default:s.withCtx(d=>[c.render?(s.openBlock(),s.createBlock(Gr,{key:0,column:c,row:d.row,render:c.render,index:d.$index},null,8,["column","row","render","index"])):s.createCommentVNode("",!0),c.slotNameMerge?s.renderSlot(e.$slots,c.slotNameMerge,{key:1,scope:d}):s.createCommentVNode("",!0),c.canEdit?(s.openBlock(),s.createBlock(Qu,s.mergeProps({key:2,isShowRules:!1,configEdit:c.configEdit,modelValue:d.row[c.prop],"onUpdate:modelValue":f=>d.row[c.prop]=f,prop:c.prop,scope:d,onHandleEvent:({type:f,val:h})=>n("handleEvent",f,h,d.$index),ref_for:!0},e.$attrs),s.createSlots({_:2},[s.renderList(s.unref(t),(f,h)=>({name:h,fn:s.withCtx(p=>[s.renderSlot(e.$slots,h,s.mergeProps({ref_for:!0},p))])}))]),1040,["configEdit","modelValue","onUpdate:modelValue","prop","scope","onHandleEvent"])):s.createCommentVNode("",!0),!c.render&&!c.slotNameMerge&&!c.canEdit&&!c.formatter?(s.openBlock(),s.createElementBlock("div",O5,s.toDisplayString(d.row[c.prop]),1)):s.createCommentVNode("",!0)]),_:2},[c.renderHeader?{name:"header",fn:s.withCtx(()=>[s.createVNode(Os,{column:c,render:c.renderHeader},null,8,["column","render"])]),key:"0"}:void 0]),1040,["prop","label","min-width","width","sortable","align","fixed","formatter"]))],64))),256))]),_:2},[o.item.renderHeader?{name:"header",fn:s.withCtx(()=>[s.createVNode(Os,{column:o.item,render:o.item.renderHeader},null,8,["column","render"])]),key:"0"}:void 0]),1032,["prop","label","type","align","min-width","width","fixed"])}}}),I5={key:0,class:"cell-content"},M5={key:0},N5={key:1},R5={key:0},V5={key:1},F5={key:0},H5=s.defineComponent({name:"SingleEdit",__name:"singleEdit",props:{configEdit:{type:Object,default:()=>({})},listTypeInfo:{type:Object,default:()=>({})},scope:{type:Object,default:()=>({})},prop:{type:String,default:"prop"},isClickEdit:{type:Boolean,default:!1},modelValue:{type:[String,Number,Object,Array,Date]},indexColumns:[String,Number]},emits:["handleEvent","update:modelValue"],setup(o,{expose:r,emit:n}){const t=o,e=n,a=s.useSlots(),i=s.ref(["select-arr","checkbox","radio","select-obj","el-select-multiple"]),l=s.ref(!1),c=s.ref({}),u=C=>{C&&(c.value[`tselecttableref-${t.indexColumns}`]=C)},d=()=>{const C=Object.keys(c.value).filter(B=>B.includes("tselecttableref"));C.length>0&&c.value&&C.map(B=>{c.value[B].clear()})};let f=s.computed({get(){return t==null?void 0:t.modelValue},set(C){e("update:modelValue",C)}});s.watch(()=>t.modelValue,C=>{f.value=C});const h=s.computed(()=>({eventHandle:C},B="")=>{let A={...C},L={};return Object.keys(A).forEach(I=>{L[I]=(E,x)=>{if(B==="t-select-table"){const k={row:E,ids:x,prop:t.prop,scope:t.scope};A[I]&&A[I](k)}else typeof E=="number"&&E===0||E?A[I]&&A[I]({val:E,prop:t.prop,scope:t.scope}):A[I]&&A[I]({prop:t.prop,scope:t.scope})}}),{...L}}),p=s.computed({get(){let C,B=[],A=[];return t.listTypeInfo[t.configEdit.list]&&t.listTypeInfo[t.configEdit.list].map(L=>{switch(t.configEdit.type){case"checkbox":case"radio":f.value.join(",").includes(L.value)&&B.push(L.label),C=B.join(",");break;case"select-arr":f.value==L[t.configEdit.arrKey]&&(C=L[t.configEdit.arrLabel]);break;case"el-select-multiple":f.value&&f.value.join(",").includes(L[t.configEdit.arrKey])&&A.push(L[t.configEdit.arrLabel]),C=A.join(",");break;case"select-obj":C=L;break}}),C},set(C){return C}}),v=s.computed(()=>C=>{switch(C.type){case"checkbox":return"el-checkbox";case"radio":return"el-radio";case"el-select-multiple":case"select-arr":case"select-obj":return"el-option"}}),g=s.computed(()=>(C,B)=>{switch(C.type){case"radio":case"checkbox":return B[C.arrLabel||"label"];case"el-select-multiple":case"select-arr":return B[C.arrLabel||"label"];case"select-obj":return B}}),m=s.computed(()=>(C,B,A)=>{switch(C.type){case"radio":case"checkbox":return B[C.arrKey||"key"];case"el-select-multiple":case"select-arr":return B[C.arrKey||"key"];case"select-obj":return A}}),_=s.computed(()=>(C,B)=>{switch(C.type){case"radio":case"checkbox":return B[C.arrLabel||"label"];case"el-select-multiple":case"select-arr":return B[C.arrLabel||"label"];case"select-obj":return B}}),b=s.ref(),y=()=>{t.isClickEdit&&(l.value=!0,s.nextTick(()=>{let C=b.value;C&&C.focus&&C.focus()}))},w=()=>{l.value=!1},S=C=>{if(!C.editComponent||typeof C.editComponent!="string")return C.label;const B=C.editComponent.toLowerCase();return B.includes("input")?"\u8BF7\u8F93\u5165"+C.label:B.includes("select")||B.includes("date")?"\u8BF7\u9009\u62E9"+C.label:C.label},D=(C,B,A)=>{A==="datetime"&&w(),setTimeout(()=>{e("handleEvent",{type:C,val:B})},0)};return r({resetClickTselectTable:d}),(C,B)=>{const A=s.resolveComponent("el-tooltip");return s.openBlock(),s.createElementBlock("div",{onClick:y,class:"single_edit_cell"},[l.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",I5,[o.configEdit.isShowTips?(s.openBlock(),s.createBlock(A,s.mergeProps({key:0,class:"item"},{effect:"light",content:"\u5355\u51FB\u53EF\u7F16\u8F91",placement:"top",...o.configEdit.tipbind}),{default:s.withCtx(()=>[i.value.includes(o.configEdit.type)?(s.openBlock(),s.createElementBlock("div",M5,s.toDisplayString(p.value)+"\xA0",1)):(s.openBlock(),s.createElementBlock("div",N5,s.toDisplayString(s.unref(f))+"\xA0",1)),s.renderSlot(C.$slots,"content")]),_:3},16)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[i.value.includes(o.configEdit.type)?(s.openBlock(),s.createElementBlock("div",R5,s.toDisplayString(p.value)+"\xA0",1)):(s.openBlock(),s.createElementBlock("div",V5,s.toDisplayString(s.unref(f))+"\xA0",1)),s.renderSlot(C.$slots,"content")],64))])),l.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[o.configEdit.editSlotName?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass([o.prop,"slot_edit_name"])},[s.renderSlot(C.$slots,o.configEdit.editSlotName,{scope:o.scope})],2)):s.createCommentVNode("",!0),o.configEdit.isSelfCom?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[o.configEdit.editComponent==="t-select-table"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.configEdit.editComponent),s.mergeProps({key:0,ref:L=>u(L),placeholder:o.configEdit.placeholder||S(o.configEdit)},typeof o.configEdit.bind=="function"?o.configEdit.bind(o.scope):{clearable:!0,filterable:!0,...o.configEdit.bind},{style:{width:o.configEdit.width||"100%"}},s.toHandlers(h.value(o.configEdit,"t-select-table"))),null,16,["placeholder","style"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.configEdit.editComponent),s.mergeProps({key:1,modelValue:s.unref(f),"onUpdate:modelValue":B[0]||(B[0]=L=>s.isRef(f)?f.value=L:f=L),type:o.configEdit.type,placeholder:o.configEdit.placeholder||S(o.configEdit),ref_key:"parentCom",ref:b},typeof o.configEdit.bind=="function"?o.configEdit.bind(o.scope):{clearable:!0,filterable:!0,...o.configEdit.bind},{onChange:B[1]||(B[1]=L=>D(o.configEdit.event,s.unref(f),o.configEdit.type)),style:{width:o.configEdit.width||"100%"}},s.toHandlers(h.value(o.configEdit))),null,16,["modelValue","type","placeholder","style"]))],64)):s.createCommentVNode("",!0),!o.configEdit.editSlotName&&!o.configEdit.isSelfCom?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.configEdit.editComponent||"el-input"),s.mergeProps({key:2,modelValue:s.unref(f),"onUpdate:modelValue":B[2]||(B[2]=L=>s.isRef(f)?f.value=L:f=L),type:o.configEdit.type,placeholder:o.configEdit.placeholder||S(o.configEdit),class:o.prop,ref_key:"parentCom",ref:b,onChange:B[3]||(B[3]=L=>D(o.configEdit.event,s.unref(f),o.configEdit.type)),onKeyup:s.withKeys(w,["enter","native"]),onBlur:w},typeof o.configEdit.bind=="function"?o.configEdit.bind(o.scope):{clearable:!0,filterable:!0,...o.configEdit.bind},{style:{width:o.configEdit.width||"100%"}},s.toHandlers(h.value(o.configEdit))),s.createSlots({default:s.withCtx(()=>[s.renderSlot(C.$slots,"editChild"),C.$slots.editChild?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",F5,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.listTypeInfo[o.configEdit.list],(L,I,E)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(v.value(o.configEdit)),{key:E,disabled:L.disabled,label:g.value(o.configEdit,L),value:m.value(o.configEdit,L,I)},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(_.value(o.configEdit,L)),1)]),_:2},1032,["disabled","label","value"]))),128))]))]),_:2},[s.renderList(s.unref(a),(L,I)=>({name:I,fn:s.withCtx(E=>[s.renderSlot(C.$slots,I,s.normalizeProps(s.guardReactiveProps(E)))])})),o.configEdit.prepend?{name:"prepend",fn:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(o.configEdit.prepend),1)]),key:"0"}:void 0,o.configEdit.append?{name:"append",fn:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(o.configEdit.append),1)]),key:"1"}:void 0]),1040,["modelValue","type","placeholder","class","style"])):s.createCommentVNode("",!0)],64)):s.createCommentVNode("",!0)])}}}),ok="";var Zu={exports:{}};/**!
|
|
18
|
-
* Sortable 1.14.0
|
|
19
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
20
|
-
* @author owenm <owen23355@gmail.com>
|
|
21
|
-
* @license MIT
|
|
22
|
-
*/function qu(o,r){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);r&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),n.push.apply(n,t)}return n}function zn(o){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?qu(Object(n),!0).forEach(function(t){z5(o,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):qu(Object(n)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(n,t))})}return o}function Wr(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wr=function(r){return typeof r}:Wr=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wr(o)}function z5(o,r,n){return r in o?Object.defineProperty(o,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[r]=n,o}function kn(){return kn=Object.assign||function(o){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(o[t]=n[t])}return o},kn.apply(this,arguments)}function U5(o,r){if(o==null)return{};var n={},t=Object.keys(o),e,a;for(a=0;a<t.length;a++)e=t[a],!(r.indexOf(e)>=0)&&(n[e]=o[e]);return n}function j5(o,r){if(o==null)return{};var n=U5(o,r),t,e;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(o);for(e=0;e<a.length;e++)t=a[e],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(o,t)||(n[t]=o[t]))}return n}function G5(o){return W5(o)||K5(o)||Y5(o)||X5()}function W5(o){if(Array.isArray(o))return Ls(o)}function K5(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function Y5(o,r){if(!!o){if(typeof o=="string")return Ls(o,r);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ls(o,r)}}function Ls(o,r){(r==null||r>o.length)&&(r=o.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=o[n];return t}function X5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
23
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var J5="1.14.0";function $n(o){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(o)}var ea=$n(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ro=$n(/Edge/i),$u=$n(/firefox/i),Vo=$n(/safari/i)&&!$n(/chrome/i)&&!$n(/android/i),ed=$n(/iP(ad|od|hone)/i),Q5=$n(/chrome/i)&&$n(/android/i),td={capture:!1,passive:!1};function Ye(o,r,n){o.addEventListener(r,n,!ea&&td)}function je(o,r,n){o.removeEventListener(r,n,!ea&&td)}function Kr(o,r){if(!!r){if(r[0]===">"&&(r=r.substring(1)),o)try{if(o.matches)return o.matches(r);if(o.msMatchesSelector)return o.msMatchesSelector(r);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(r)}catch{return!1}return!1}}function Z5(o){return o.host&&o!==document&&o.host.nodeType?o.host:o.parentNode}function In(o,r,n,t){if(o){n=n||document;do{if(r!=null&&(r[0]===">"?o.parentNode===n&&Kr(o,r):Kr(o,r))||t&&o===n)return o;if(o===n)break}while(o=Z5(o))}return null}var nd=/\s+/g;function yt(o,r,n){if(o&&r)if(o.classList)o.classList[n?"add":"remove"](r);else{var t=(" "+o.className+" ").replace(nd," ").replace(" "+r+" "," ");o.className=(t+(n?" "+r:"")).replace(nd," ")}}function me(o,r,n){var t=o&&o.style;if(t){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(n=o.currentStyle),r===void 0?n:n[r];!(r in t)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),t[r]=n+(typeof n=="string"?"":"px")}}function Oa(o,r){var n="";if(typeof o=="string")n=o;else do{var t=me(o,"transform");t&&t!=="none"&&(n=t+" "+n)}while(!r&&(o=o.parentNode));var e=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return e&&new e(n)}function ad(o,r,n){if(o){var t=o.getElementsByTagName(r),e=0,a=t.length;if(n)for(;e<a;e++)n(t[e],e);return t}return[]}function Un(){var o=document.scrollingElement;return o||document.documentElement}function dt(o,r,n,t,e){if(!(!o.getBoundingClientRect&&o!==window)){var a,i,l,c,u,d,f;if(o!==window&&o.parentNode&&o!==Un()?(a=o.getBoundingClientRect(),i=a.top,l=a.left,c=a.bottom,u=a.right,d=a.height,f=a.width):(i=0,l=0,c=window.innerHeight,u=window.innerWidth,d=window.innerHeight,f=window.innerWidth),(r||n)&&o!==window&&(e=e||o.parentNode,!ea))do if(e&&e.getBoundingClientRect&&(me(e,"transform")!=="none"||n&&me(e,"position")!=="static")){var h=e.getBoundingClientRect();i-=h.top+parseInt(me(e,"border-top-width")),l-=h.left+parseInt(me(e,"border-left-width")),c=i+a.height,u=l+a.width;break}while(e=e.parentNode);if(t&&o!==window){var p=Oa(e||o),v=p&&p.a,g=p&&p.d;p&&(i/=g,l/=v,f/=v,d/=g,c=i+d,u=l+f)}return{top:i,left:l,bottom:c,right:u,width:f,height:d}}}function od(o,r,n){for(var t=ha(o,!0),e=dt(o)[r];t;){var a=dt(t)[n],i=void 0;if(n==="top"||n==="left"?i=e>=a:i=e<=a,!i)return t;if(t===Un())break;t=ha(t,!1)}return!1}function eo(o,r,n,t){for(var e=0,a=0,i=o.children;a<i.length;){if(i[a].style.display!=="none"&&i[a]!==Ee.ghost&&(t||i[a]!==Ee.dragged)&&In(i[a],n.draggable,o,!1)){if(e===r)return i[a];e++}a++}return null}function Is(o,r){for(var n=o.lastElementChild;n&&(n===Ee.ghost||me(n,"display")==="none"||r&&!Kr(n,r));)n=n.previousElementSibling;return n||null}function bt(o,r){var n=0;if(!o||!o.parentNode)return-1;for(;o=o.previousElementSibling;)o.nodeName.toUpperCase()!=="TEMPLATE"&&o!==Ee.clone&&(!r||Kr(o,r))&&n++;return n}function rd(o){var r=0,n=0,t=Un();if(o)do{var e=Oa(o),a=e.a,i=e.d;r+=o.scrollLeft*a,n+=o.scrollTop*i}while(o!==t&&(o=o.parentNode));return[r,n]}function q5(o,r){for(var n in o)if(!!o.hasOwnProperty(n)){for(var t in r)if(r.hasOwnProperty(t)&&r[t]===o[n][t])return Number(n)}return-1}function ha(o,r){if(!o||!o.getBoundingClientRect)return Un();var n=o,t=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var e=me(n);if(n.clientWidth<n.scrollWidth&&(e.overflowX=="auto"||e.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(e.overflowY=="auto"||e.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Un();if(t||r)return n;t=!0}}while(n=n.parentNode);return Un()}function $5(o,r){if(o&&r)for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o}function Ms(o,r){return Math.round(o.top)===Math.round(r.top)&&Math.round(o.left)===Math.round(r.left)&&Math.round(o.height)===Math.round(r.height)&&Math.round(o.width)===Math.round(r.width)}var Fo;function id(o,r){return function(){if(!Fo){var n=arguments,t=this;n.length===1?o.call(t,n[0]):o.apply(t,n),Fo=setTimeout(function(){Fo=void 0},r)}}}function e9(){clearTimeout(Fo),Fo=void 0}function sd(o,r,n){o.scrollLeft+=r,o.scrollTop+=n}function Ns(o){var r=window.Polymer,n=window.jQuery||window.Zepto;return r&&r.dom?r.dom(o).cloneNode(!0):n?n(o).clone(!0)[0]:o.cloneNode(!0)}function ld(o,r){me(o,"position","absolute"),me(o,"top",r.top),me(o,"left",r.left),me(o,"width",r.width),me(o,"height",r.height)}function Rs(o){me(o,"position",""),me(o,"top",""),me(o,"left",""),me(o,"width",""),me(o,"height","")}var Wt="Sortable"+new Date().getTime();function t9(){var o=[],r;return{captureAnimationState:function(){if(o=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(e){if(!(me(e,"display")==="none"||e===Ee.ghost)){o.push({target:e,rect:dt(e)});var a=zn({},o[o.length-1].rect);if(e.thisAnimationDuration){var i=Oa(e,!0);i&&(a.top-=i.f,a.left-=i.e)}e.fromRect=a}})}},addAnimationState:function(t){o.push(t)},removeAnimationState:function(t){o.splice(q5(o,{target:t}),1)},animateAll:function(t){var e=this;if(!this.options.animation){clearTimeout(r),typeof t=="function"&&t();return}var a=!1,i=0;o.forEach(function(l){var c=0,u=l.target,d=u.fromRect,f=dt(u),h=u.prevFromRect,p=u.prevToRect,v=l.rect,g=Oa(u,!0);g&&(f.top-=g.f,f.left-=g.e),u.toRect=f,u.thisAnimationDuration&&Ms(h,f)&&!Ms(d,f)&&(v.top-f.top)/(v.left-f.left)===(d.top-f.top)/(d.left-f.left)&&(c=a9(v,h,p,e.options)),Ms(f,d)||(u.prevFromRect=d,u.prevToRect=f,c||(c=e.options.animation),e.animate(u,v,f,c)),c&&(a=!0,i=Math.max(i,c),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},c),u.thisAnimationDuration=c)}),clearTimeout(r),a?r=setTimeout(function(){typeof t=="function"&&t()},i):typeof t=="function"&&t(),o=[]},animate:function(t,e,a,i){if(i){me(t,"transition",""),me(t,"transform","");var l=Oa(this.el),c=l&&l.a,u=l&&l.d,d=(e.left-a.left)/(c||1),f=(e.top-a.top)/(u||1);t.animatingX=!!d,t.animatingY=!!f,me(t,"transform","translate3d("+d+"px,"+f+"px,0)"),this.forRepaintDummy=n9(t),me(t,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),me(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){me(t,"transition",""),me(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},i)}}}}function n9(o){return o.offsetWidth}function a9(o,r,n,t){return Math.sqrt(Math.pow(r.top-o.top,2)+Math.pow(r.left-o.left,2))/Math.sqrt(Math.pow(r.top-n.top,2)+Math.pow(r.left-n.left,2))*t.animation}var to=[],Vs={initializeByDefault:!0},Ho={mount:function(r){for(var n in Vs)Vs.hasOwnProperty(n)&&!(n in r)&&(r[n]=Vs[n]);to.forEach(function(t){if(t.pluginName===r.pluginName)throw"Sortable: Cannot mount plugin ".concat(r.pluginName," more than once")}),to.push(r)},pluginEvent:function(r,n,t){var e=this;this.eventCanceled=!1,t.cancel=function(){e.eventCanceled=!0};var a=r+"Global";to.forEach(function(i){!n[i.pluginName]||(n[i.pluginName][a]&&n[i.pluginName][a](zn({sortable:n},t)),n.options[i.pluginName]&&n[i.pluginName][r]&&n[i.pluginName][r](zn({sortable:n},t)))})},initializePlugins:function(r,n,t,e){to.forEach(function(l){var c=l.pluginName;if(!(!r.options[c]&&!l.initializeByDefault)){var u=new l(r,n,r.options);u.sortable=r,u.options=r.options,r[c]=u,kn(t,u.defaults)}});for(var a in r.options)if(!!r.options.hasOwnProperty(a)){var i=this.modifyOption(r,a,r.options[a]);typeof i<"u"&&(r.options[a]=i)}},getEventProperties:function(r,n){var t={};return to.forEach(function(e){typeof e.eventProperties=="function"&&kn(t,e.eventProperties.call(n[e.pluginName],r))}),t},modifyOption:function(r,n,t){var e;return to.forEach(function(a){!r[a.pluginName]||a.optionListeners&&typeof a.optionListeners[n]=="function"&&(e=a.optionListeners[n].call(r[a.pluginName],t))}),e}};function zo(o){var r=o.sortable,n=o.rootEl,t=o.name,e=o.targetEl,a=o.cloneEl,i=o.toEl,l=o.fromEl,c=o.oldIndex,u=o.newIndex,d=o.oldDraggableIndex,f=o.newDraggableIndex,h=o.originalEvent,p=o.putSortable,v=o.extraEventProperties;if(r=r||n&&n[Wt],!!r){var g,m=r.options,_="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!ea&&!Ro?g=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(t,!0,!0)),g.to=i||n,g.from=l||n,g.item=e||n,g.clone=a,g.oldIndex=c,g.newIndex=u,g.oldDraggableIndex=d,g.newDraggableIndex=f,g.originalEvent=h,g.pullMode=p?p.lastPutMode:void 0;var b=zn(zn({},v),Ho.getEventProperties(t,r));for(var y in b)g[y]=b[y];n&&n.dispatchEvent(g),m[_]&&m[_].call(r,g)}}var o9=["evt"],on=function(r,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e=t.evt,a=j5(t,o9);Ho.pluginEvent.bind(Ee)(r,n,zn({dragEl:ce,parentEl:Et,ghostEl:Ne,rootEl:ft,nextEl:La,lastDownEl:Yr,cloneEl:Ct,cloneHidden:pa,dragStarted:jo,putSortable:Ht,activeSortable:Ee.active,originalEvent:e,oldIndex:no,oldDraggableIndex:Uo,newIndex:yn,newDraggableIndex:va,hideGhostForTarget:vd,unhideGhostForTarget:md,cloneNowHidden:function(){pa=!0},cloneNowShown:function(){pa=!1},dispatchSortableEvent:function(l){Zt({sortable:n,name:l,originalEvent:e})}},a))};function Zt(o){zo(zn({putSortable:Ht,cloneEl:Ct,targetEl:ce,rootEl:ft,oldIndex:no,oldDraggableIndex:Uo,newIndex:yn,newDraggableIndex:va},o))}var ce,Et,Ne,ft,La,Yr,Ct,pa,no,yn,Uo,va,Xr,Ht,ao=!1,Jr=!1,Qr=[],Ia,Mn,Fs,Hs,cd,ud,jo,oo,Go,Wo=!1,Zr=!1,qr,Kt,zs=[],Us=!1,$r=[],ei=typeof document<"u",ti=ed,dd=Ro||ea?"cssFloat":"float",r9=ei&&!Q5&&!ed&&"draggable"in document.createElement("div"),fd=function(){if(!!ei){if(ea)return!1;var o=document.createElement("x");return o.style.cssText="pointer-events:auto",o.style.pointerEvents==="auto"}}(),hd=function(r,n){var t=me(r),e=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),a=eo(r,0,n),i=eo(r,1,n),l=a&&me(a),c=i&&me(i),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+dt(a).width,d=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+dt(i).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&l.float&&l.float!=="none"){var f=l.float==="left"?"left":"right";return i&&(c.clear==="both"||c.clear===f)?"vertical":"horizontal"}return a&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=e&&t[dd]==="none"||i&&t[dd]==="none"&&u+d>e)?"vertical":"horizontal"},i9=function(r,n,t){var e=t?r.left:r.top,a=t?r.right:r.bottom,i=t?r.width:r.height,l=t?n.left:n.top,c=t?n.right:n.bottom,u=t?n.width:n.height;return e===l||a===c||e+i/2===l+u/2},s9=function(r,n){var t;return Qr.some(function(e){var a=e[Wt].options.emptyInsertThreshold;if(!(!a||Is(e))){var i=dt(e),l=r>=i.left-a&&r<=i.right+a,c=n>=i.top-a&&n<=i.bottom+a;if(l&&c)return t=e}}),t},pd=function(r){function n(a,i){return function(l,c,u,d){var f=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(a==null&&(i||f))return!0;if(a==null||a===!1)return!1;if(i&&a==="clone")return a;if(typeof a=="function")return n(a(l,c,u,d),i)(l,c,u,d);var h=(i?l:c).options.group.name;return a===!0||typeof a=="string"&&a===h||a.join&&a.indexOf(h)>-1}}var t={},e=r.group;(!e||Wr(e)!="object")&&(e={name:e}),t.name=e.name,t.checkPull=n(e.pull,!0),t.checkPut=n(e.put),t.revertClone=e.revertClone,r.group=t},vd=function(){!fd&&Ne&&me(Ne,"display","none")},md=function(){!fd&&Ne&&me(Ne,"display","")};ei&&document.addEventListener("click",function(o){if(Jr)return o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.stopImmediatePropagation&&o.stopImmediatePropagation(),Jr=!1,!1},!0);var Ma=function(r){if(ce){r=r.touches?r.touches[0]:r;var n=s9(r.clientX,r.clientY);if(n){var t={};for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[Wt]._onDragOver(t)}}},l9=function(r){ce&&ce.parentNode[Wt]._isOutsideThisEl(r.target)};function Ee(o,r){if(!(o&&o.nodeType&&o.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));this.el=o,this.options=r=kn({},r),o[Wt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(o.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return hd(o,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,l){i.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Ee.supportPointer!==!1&&"PointerEvent"in window&&!Vo,emptyInsertThreshold:5};Ho.initializePlugins(this,o,n);for(var t in n)!(t in r)&&(r[t]=n[t]);pd(r);for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this));this.nativeDraggable=r.forceFallback?!1:r9,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?Ye(o,"pointerdown",this._onTapStart):(Ye(o,"mousedown",this._onTapStart),Ye(o,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ye(o,"dragover",this),Ye(o,"dragenter",this)),Qr.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),kn(this,t9())}Ee.prototype={constructor:Ee,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(oo=null)},_getDirection:function(r,n){return typeof this.options.direction=="function"?this.options.direction.call(this,r,n,ce):this.options.direction},_onTapStart:function(r){if(!!r.cancelable){var n=this,t=this.el,e=this.options,a=e.preventOnFilter,i=r.type,l=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,c=(l||r).target,u=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||c,d=e.filter;if(m9(t),!ce&&!(/mousedown|pointerdown/.test(i)&&r.button!==0||e.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Vo&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=In(c,e.draggable,t,!1),!(c&&c.animated)&&Yr!==c)){if(no=bt(c),Uo=bt(c,e.draggable),typeof d=="function"){if(d.call(this,r,c,this)){Zt({sortable:n,rootEl:u,name:"filter",targetEl:c,toEl:t,fromEl:t}),on("filter",n,{evt:r}),a&&r.cancelable&&r.preventDefault();return}}else if(d&&(d=d.split(",").some(function(f){if(f=In(u,f.trim(),t,!1),f)return Zt({sortable:n,rootEl:f,name:"filter",targetEl:c,fromEl:t,toEl:t}),on("filter",n,{evt:r}),!0}),d)){a&&r.cancelable&&r.preventDefault();return}e.handle&&!In(u,e.handle,t,!1)||this._prepareDragStart(r,l,c)}}},_prepareDragStart:function(r,n,t){var e=this,a=e.el,i=e.options,l=a.ownerDocument,c;if(t&&!ce&&t.parentNode===a){var u=dt(t);if(ft=a,ce=t,Et=ce.parentNode,La=ce.nextSibling,Yr=t,Xr=i.group,Ee.dragged=ce,Ia={target:ce,clientX:(n||r).clientX,clientY:(n||r).clientY},cd=Ia.clientX-u.left,ud=Ia.clientY-u.top,this._lastX=(n||r).clientX,this._lastY=(n||r).clientY,ce.style["will-change"]="all",c=function(){if(on("delayEnded",e,{evt:r}),Ee.eventCanceled){e._onDrop();return}e._disableDelayedDragEvents(),!$u&&e.nativeDraggable&&(ce.draggable=!0),e._triggerDragStart(r,n),Zt({sortable:e,name:"choose",originalEvent:r}),yt(ce,i.chosenClass,!0)},i.ignore.split(",").forEach(function(d){ad(ce,d.trim(),js)}),Ye(l,"dragover",Ma),Ye(l,"mousemove",Ma),Ye(l,"touchmove",Ma),Ye(l,"mouseup",e._onDrop),Ye(l,"touchend",e._onDrop),Ye(l,"touchcancel",e._onDrop),$u&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ce.draggable=!0),on("delayStart",this,{evt:r}),i.delay&&(!i.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ro||ea))){if(Ee.eventCanceled){this._onDrop();return}Ye(l,"mouseup",e._disableDelayedDrag),Ye(l,"touchend",e._disableDelayedDrag),Ye(l,"touchcancel",e._disableDelayedDrag),Ye(l,"mousemove",e._delayedDragTouchMoveHandler),Ye(l,"touchmove",e._delayedDragTouchMoveHandler),i.supportPointer&&Ye(l,"pointermove",e._delayedDragTouchMoveHandler),e._dragStartTimer=setTimeout(c,i.delay)}else c()}},_delayedDragTouchMoveHandler:function(r){var n=r.touches?r.touches[0]:r;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ce&&js(ce),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;je(r,"mouseup",this._disableDelayedDrag),je(r,"touchend",this._disableDelayedDrag),je(r,"touchcancel",this._disableDelayedDrag),je(r,"mousemove",this._delayedDragTouchMoveHandler),je(r,"touchmove",this._delayedDragTouchMoveHandler),je(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,n){n=n||r.pointerType=="touch"&&r,!this.nativeDraggable||n?this.options.supportPointer?Ye(document,"pointermove",this._onTouchMove):n?Ye(document,"touchmove",this._onTouchMove):Ye(document,"mousemove",this._onTouchMove):(Ye(ce,"dragend",this),Ye(ft,"dragstart",this._onDragStart));try{document.selection?ai(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,n){if(ao=!1,ft&&ce){on("dragStarted",this,{evt:n}),this.nativeDraggable&&Ye(document,"dragover",l9);var t=this.options;!r&&yt(ce,t.dragClass,!1),yt(ce,t.ghostClass,!0),Ee.active=this,r&&this._appendGhost(),Zt({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Mn){this._lastX=Mn.clientX,this._lastY=Mn.clientY,vd();for(var r=document.elementFromPoint(Mn.clientX,Mn.clientY),n=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(Mn.clientX,Mn.clientY),r!==n);)n=r;if(ce.parentNode[Wt]._isOutsideThisEl(r),n)do{if(n[Wt]){var t=void 0;if(t=n[Wt]._onDragOver({clientX:Mn.clientX,clientY:Mn.clientY,target:r,rootEl:n}),t&&!this.options.dragoverBubble)break}r=n}while(n=n.parentNode);md()}},_onTouchMove:function(r){if(Ia){var n=this.options,t=n.fallbackTolerance,e=n.fallbackOffset,a=r.touches?r.touches[0]:r,i=Ne&&Oa(Ne,!0),l=Ne&&i&&i.a,c=Ne&&i&&i.d,u=ti&&Kt&&rd(Kt),d=(a.clientX-Ia.clientX+e.x)/(l||1)+(u?u[0]-zs[0]:0)/(l||1),f=(a.clientY-Ia.clientY+e.y)/(c||1)+(u?u[1]-zs[1]:0)/(c||1);if(!Ee.active&&!ao){if(t&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<t)return;this._onDragStart(r,!0)}if(Ne){i?(i.e+=d-(Fs||0),i.f+=f-(Hs||0)):i={a:1,b:0,c:0,d:1,e:d,f};var h="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");me(Ne,"webkitTransform",h),me(Ne,"mozTransform",h),me(Ne,"msTransform",h),me(Ne,"transform",h),Fs=d,Hs=f,Mn=a}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!Ne){var r=this.options.fallbackOnBody?document.body:ft,n=dt(ce,!0,ti,!0,r),t=this.options;if(ti){for(Kt=r;me(Kt,"position")==="static"&&me(Kt,"transform")==="none"&&Kt!==document;)Kt=Kt.parentNode;Kt!==document.body&&Kt!==document.documentElement?(Kt===document&&(Kt=Un()),n.top+=Kt.scrollTop,n.left+=Kt.scrollLeft):Kt=Un(),zs=rd(Kt)}Ne=ce.cloneNode(!0),yt(Ne,t.ghostClass,!1),yt(Ne,t.fallbackClass,!0),yt(Ne,t.dragClass,!0),me(Ne,"transition",""),me(Ne,"transform",""),me(Ne,"box-sizing","border-box"),me(Ne,"margin",0),me(Ne,"top",n.top),me(Ne,"left",n.left),me(Ne,"width",n.width),me(Ne,"height",n.height),me(Ne,"opacity","0.8"),me(Ne,"position",ti?"absolute":"fixed"),me(Ne,"zIndex","100000"),me(Ne,"pointerEvents","none"),Ee.ghost=Ne,r.appendChild(Ne),me(Ne,"transform-origin",cd/parseInt(Ne.style.width)*100+"% "+ud/parseInt(Ne.style.height)*100+"%")}},_onDragStart:function(r,n){var t=this,e=r.dataTransfer,a=t.options;if(on("dragStart",this,{evt:r}),Ee.eventCanceled){this._onDrop();return}on("setupClone",this),Ee.eventCanceled||(Ct=Ns(ce),Ct.draggable=!1,Ct.style["will-change"]="",this._hideClone(),yt(Ct,this.options.chosenClass,!1),Ee.clone=Ct),t.cloneId=ai(function(){on("clone",t),!Ee.eventCanceled&&(t.options.removeCloneOnHide||ft.insertBefore(Ct,ce),t._hideClone(),Zt({sortable:t,name:"clone"}))}),!n&&yt(ce,a.dragClass,!0),n?(Jr=!0,t._loopId=setInterval(t._emulateDragOver,50)):(je(document,"mouseup",t._onDrop),je(document,"touchend",t._onDrop),je(document,"touchcancel",t._onDrop),e&&(e.effectAllowed="move",a.setData&&a.setData.call(t,e,ce)),Ye(document,"drop",t),me(ce,"transform","translateZ(0)")),ao=!0,t._dragStartId=ai(t._dragStarted.bind(t,n,r)),Ye(document,"selectstart",t),jo=!0,Vo&&me(document.body,"user-select","none")},_onDragOver:function(r){var n=this.el,t=r.target,e,a,i,l=this.options,c=l.group,u=Ee.active,d=Xr===c,f=l.sort,h=Ht||u,p,v=this,g=!1;if(Us)return;function m(N,H){on(N,v,zn({evt:r,isOwner:d,axis:p?"vertical":"horizontal",revert:i,dragRect:e,targetRect:a,canSort:f,fromSortable:h,target:t,completed:b,onMove:function(U,le){return ni(ft,n,ce,e,U,dt(U),r,le)},changed:y},H))}function _(){m("dragOverAnimationCapture"),v.captureAnimationState(),v!==h&&h.captureAnimationState()}function b(N){return m("dragOverCompleted",{insertion:N}),N&&(d?u._hideClone():u._showClone(v),v!==h&&(yt(ce,Ht?Ht.options.ghostClass:u.options.ghostClass,!1),yt(ce,l.ghostClass,!0)),Ht!==v&&v!==Ee.active?Ht=v:v===Ee.active&&Ht&&(Ht=null),h===v&&(v._ignoreWhileAnimating=t),v.animateAll(function(){m("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(t===ce&&!ce.animated||t===n&&!t.animated)&&(oo=null),!l.dragoverBubble&&!r.rootEl&&t!==document&&(ce.parentNode[Wt]._isOutsideThisEl(r.target),!N&&Ma(r)),!l.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),g=!0}function y(){yn=bt(ce),va=bt(ce,l.draggable),Zt({sortable:v,name:"change",toEl:n,newIndex:yn,newDraggableIndex:va,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),t=In(t,l.draggable,n,!0),m("dragOver"),Ee.eventCanceled)return g;if(ce.contains(r.target)||t.animated&&t.animatingX&&t.animatingY||v._ignoreWhileAnimating===t)return b(!1);if(Jr=!1,u&&!l.disabled&&(d?f||(i=Et!==ft):Ht===this||(this.lastPutMode=Xr.checkPull(this,u,ce,r))&&c.checkPut(this,u,ce,r))){if(p=this._getDirection(r,t)==="vertical",e=dt(ce),m("dragOverValid"),Ee.eventCanceled)return g;if(i)return Et=ft,_(),this._hideClone(),m("revert"),Ee.eventCanceled||(La?ft.insertBefore(ce,La):ft.appendChild(ce)),b(!0);var w=Is(n,l.draggable);if(!w||f9(r,p,this)&&!w.animated){if(w===ce)return b(!1);if(w&&n===r.target&&(t=w),t&&(a=dt(t)),ni(ft,n,ce,e,t,a,r,!!t)!==!1)return _(),n.appendChild(ce),Et=n,y(),b(!0)}else if(w&&d9(r,p,this)){var S=eo(n,0,l,!0);if(S===ce)return b(!1);if(t=S,a=dt(t),ni(ft,n,ce,e,t,a,r,!1)!==!1)return _(),n.insertBefore(ce,S),Et=n,y(),b(!0)}else if(t.parentNode===n){a=dt(t);var D=0,C,B=ce.parentNode!==n,A=!i9(ce.animated&&ce.toRect||e,t.animated&&t.toRect||a,p),L=p?"top":"left",I=od(t,"top","top")||od(ce,"top","top"),E=I?I.scrollTop:void 0;oo!==t&&(C=a[L],Wo=!1,Zr=!A&&l.invertSwap||B),D=h9(r,t,a,p,A?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Zr,oo===t);var x;if(D!==0){var k=bt(ce);do k-=D,x=Et.children[k];while(x&&(me(x,"display")==="none"||x===Ne))}if(D===0||x===t)return b(!1);oo=t,Go=D;var O=t.nextElementSibling,P=!1;P=D===1;var R=ni(ft,n,ce,e,t,a,r,P);if(R!==!1)return(R===1||R===-1)&&(P=R===1),Us=!0,setTimeout(u9,30),_(),P&&!O?n.appendChild(ce):t.parentNode.insertBefore(ce,P?O:t),I&&sd(I,0,E-I.scrollTop),Et=ce.parentNode,C!==void 0&&!Zr&&(qr=Math.abs(C-dt(t)[L])),y(),b(!0)}if(n.contains(ce))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){je(document,"mousemove",this._onTouchMove),je(document,"touchmove",this._onTouchMove),je(document,"pointermove",this._onTouchMove),je(document,"dragover",Ma),je(document,"mousemove",Ma),je(document,"touchmove",Ma)},_offUpEvents:function(){var r=this.el.ownerDocument;je(r,"mouseup",this._onDrop),je(r,"touchend",this._onDrop),je(r,"pointerup",this._onDrop),je(r,"touchcancel",this._onDrop),je(document,"selectstart",this)},_onDrop:function(r){var n=this.el,t=this.options;if(yn=bt(ce),va=bt(ce,t.draggable),on("drop",this,{evt:r}),Et=ce&&ce.parentNode,yn=bt(ce),va=bt(ce,t.draggable),Ee.eventCanceled){this._nulling();return}ao=!1,Zr=!1,Wo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Gs(this.cloneId),Gs(this._dragStartId),this.nativeDraggable&&(je(document,"drop",this),je(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Vo&&me(document.body,"user-select",""),me(ce,"transform",""),r&&(jo&&(r.cancelable&&r.preventDefault(),!t.dropBubble&&r.stopPropagation()),Ne&&Ne.parentNode&&Ne.parentNode.removeChild(Ne),(ft===Et||Ht&&Ht.lastPutMode!=="clone")&&Ct&&Ct.parentNode&&Ct.parentNode.removeChild(Ct),ce&&(this.nativeDraggable&&je(ce,"dragend",this),js(ce),ce.style["will-change"]="",jo&&!ao&&yt(ce,Ht?Ht.options.ghostClass:this.options.ghostClass,!1),yt(ce,this.options.chosenClass,!1),Zt({sortable:this,name:"unchoose",toEl:Et,newIndex:null,newDraggableIndex:null,originalEvent:r}),ft!==Et?(yn>=0&&(Zt({rootEl:Et,name:"add",toEl:Et,fromEl:ft,originalEvent:r}),Zt({sortable:this,name:"remove",toEl:Et,originalEvent:r}),Zt({rootEl:Et,name:"sort",toEl:Et,fromEl:ft,originalEvent:r}),Zt({sortable:this,name:"sort",toEl:Et,originalEvent:r})),Ht&&Ht.save()):yn!==no&&yn>=0&&(Zt({sortable:this,name:"update",toEl:Et,originalEvent:r}),Zt({sortable:this,name:"sort",toEl:Et,originalEvent:r})),Ee.active&&((yn==null||yn===-1)&&(yn=no,va=Uo),Zt({sortable:this,name:"end",toEl:Et,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){on("nulling",this),ft=ce=Et=Ne=La=Ct=Yr=pa=Ia=Mn=jo=yn=va=no=Uo=oo=Go=Ht=Xr=Ee.dragged=Ee.ghost=Ee.clone=Ee.active=null,$r.forEach(function(r){r.checked=!0}),$r.length=Fs=Hs=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":ce&&(this._onDragOver(r),c9(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],n,t=this.el.children,e=0,a=t.length,i=this.options;e<a;e++)n=t[e],In(n,i.draggable,this.el,!1)&&r.push(n.getAttribute(i.dataIdAttr)||v9(n));return r},sort:function(r,n){var t={},e=this.el;this.toArray().forEach(function(a,i){var l=e.children[i];In(l,this.options.draggable,e,!1)&&(t[a]=l)},this),n&&this.captureAnimationState(),r.forEach(function(a){t[a]&&(e.removeChild(t[a]),e.appendChild(t[a]))}),n&&this.animateAll()},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,n){return In(r,n||this.options.draggable,this.el,!1)},option:function(r,n){var t=this.options;if(n===void 0)return t[r];var e=Ho.modifyOption(this,r,n);typeof e<"u"?t[r]=e:t[r]=n,r==="group"&&pd(t)},destroy:function(){on("destroy",this);var r=this.el;r[Wt]=null,je(r,"mousedown",this._onTapStart),je(r,"touchstart",this._onTapStart),je(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(je(r,"dragover",this),je(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Qr.splice(Qr.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!pa){if(on("hideClone",this),Ee.eventCanceled)return;me(Ct,"display","none"),this.options.removeCloneOnHide&&Ct.parentNode&&Ct.parentNode.removeChild(Ct),pa=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(pa){if(on("showClone",this),Ee.eventCanceled)return;ce.parentNode==ft&&!this.options.group.revertClone?ft.insertBefore(Ct,ce):La?ft.insertBefore(Ct,La):ft.appendChild(Ct),this.options.group.revertClone&&this.animate(ce,Ct),me(Ct,"display",""),pa=!1}}};function c9(o){o.dataTransfer&&(o.dataTransfer.dropEffect="move"),o.cancelable&&o.preventDefault()}function ni(o,r,n,t,e,a,i,l){var c,u=o[Wt],d=u.options.onMove,f;return window.CustomEvent&&!ea&&!Ro?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=r,c.from=o,c.dragged=n,c.draggedRect=t,c.related=e||r,c.relatedRect=a||dt(r),c.willInsertAfter=l,c.originalEvent=i,o.dispatchEvent(c),d&&(f=d.call(u,c,i)),f}function js(o){o.draggable=!1}function u9(){Us=!1}function d9(o,r,n){var t=dt(eo(n.el,0,n.options,!0)),e=10;return r?o.clientX<t.left-e||o.clientY<t.top&&o.clientX<t.right:o.clientY<t.top-e||o.clientY<t.bottom&&o.clientX<t.left}function f9(o,r,n){var t=dt(Is(n.el,n.options.draggable)),e=10;return r?o.clientX>t.right+e||o.clientX<=t.right&&o.clientY>t.bottom&&o.clientX>=t.left:o.clientX>t.right&&o.clientY>t.top||o.clientX<=t.right&&o.clientY>t.bottom+e}function h9(o,r,n,t,e,a,i,l){var c=t?o.clientY:o.clientX,u=t?n.height:n.width,d=t?n.top:n.left,f=t?n.bottom:n.right,h=!1;if(!i){if(l&&qr<u*e){if(!Wo&&(Go===1?c>d+u*a/2:c<f-u*a/2)&&(Wo=!0),Wo)h=!0;else if(Go===1?c<d+qr:c>f-qr)return-Go}else if(c>d+u*(1-e)/2&&c<f-u*(1-e)/2)return p9(r)}return h=h||i,h&&(c<d+u*a/2||c>f-u*a/2)?c>d+u/2?1:-1:0}function p9(o){return bt(ce)<bt(o)?1:-1}function v9(o){for(var r=o.tagName+o.className+o.src+o.href+o.textContent,n=r.length,t=0;n--;)t+=r.charCodeAt(n);return t.toString(36)}function m9(o){$r.length=0;for(var r=o.getElementsByTagName("input"),n=r.length;n--;){var t=r[n];t.checked&&$r.push(t)}}function ai(o){return setTimeout(o,0)}function Gs(o){return clearTimeout(o)}ei&&Ye(document,"touchmove",function(o){(Ee.active||ao)&&o.cancelable&&o.preventDefault()}),Ee.utils={on:Ye,off:je,css:me,find:ad,is:function(r,n){return!!In(r,n,r,!1)},extend:$5,throttle:id,closest:In,toggleClass:yt,clone:Ns,index:bt,nextTick:ai,cancelNextTick:Gs,detectDirection:hd,getChild:eo},Ee.get=function(o){return o[Wt]},Ee.mount=function(){for(var o=arguments.length,r=new Array(o),n=0;n<o;n++)r[n]=arguments[n];r[0].constructor===Array&&(r=r[0]),r.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Ee.utils=zn(zn({},Ee.utils),t.utils)),Ho.mount(t)})},Ee.create=function(o,r){return new Ee(o,r)},Ee.version=J5;var Bt=[],Ko,Ws,Ks=!1,Ys,Xs,oi,Yo;function g9(){function o(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this))}return o.prototype={dragStarted:function(n){var t=n.originalEvent;this.sortable.nativeDraggable?Ye(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ye(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Ye(document,"touchmove",this._handleFallbackAutoScroll):Ye(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var t=n.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?je(document,"dragover",this._handleAutoScroll):(je(document,"pointermove",this._handleFallbackAutoScroll),je(document,"touchmove",this._handleFallbackAutoScroll),je(document,"mousemove",this._handleFallbackAutoScroll)),gd(),ri(),e9()},nulling:function(){oi=Ws=Ko=Ks=Yo=Ys=Xs=null,Bt.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,t){var e=this,a=(n.touches?n.touches[0]:n).clientX,i=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(a,i);if(oi=n,t||this.options.forceAutoScrollFallback||Ro||ea||Vo){Js(n,this.options,l,t);var c=ha(l,!0);Ks&&(!Yo||a!==Ys||i!==Xs)&&(Yo&&gd(),Yo=setInterval(function(){var u=ha(document.elementFromPoint(a,i),!0);u!==c&&(c=u,ri()),Js(n,e.options,u,t)},10),Ys=a,Xs=i)}else{if(!this.options.bubbleScroll||ha(l,!0)===Un()){ri();return}Js(n,this.options,ha(l,!1),!1)}}},kn(o,{pluginName:"scroll",initializeByDefault:!0})}function ri(){Bt.forEach(function(o){clearInterval(o.pid)}),Bt=[]}function gd(){clearInterval(Yo)}var Js=id(function(o,r,n,t){if(!!r.scroll){var e=(o.touches?o.touches[0]:o).clientX,a=(o.touches?o.touches[0]:o).clientY,i=r.scrollSensitivity,l=r.scrollSpeed,c=Un(),u=!1,d;Ws!==n&&(Ws=n,ri(),Ko=r.scroll,d=r.scrollFn,Ko===!0&&(Ko=ha(n,!0)));var f=0,h=Ko;do{var p=h,v=dt(p),g=v.top,m=v.bottom,_=v.left,b=v.right,y=v.width,w=v.height,S=void 0,D=void 0,C=p.scrollWidth,B=p.scrollHeight,A=me(p),L=p.scrollLeft,I=p.scrollTop;p===c?(S=y<C&&(A.overflowX==="auto"||A.overflowX==="scroll"||A.overflowX==="visible"),D=w<B&&(A.overflowY==="auto"||A.overflowY==="scroll"||A.overflowY==="visible")):(S=y<C&&(A.overflowX==="auto"||A.overflowX==="scroll"),D=w<B&&(A.overflowY==="auto"||A.overflowY==="scroll"));var E=S&&(Math.abs(b-e)<=i&&L+y<C)-(Math.abs(_-e)<=i&&!!L),x=D&&(Math.abs(m-a)<=i&&I+w<B)-(Math.abs(g-a)<=i&&!!I);if(!Bt[f])for(var k=0;k<=f;k++)Bt[k]||(Bt[k]={});(Bt[f].vx!=E||Bt[f].vy!=x||Bt[f].el!==p)&&(Bt[f].el=p,Bt[f].vx=E,Bt[f].vy=x,clearInterval(Bt[f].pid),(E!=0||x!=0)&&(u=!0,Bt[f].pid=setInterval(function(){t&&this.layer===0&&Ee.active._onTouchMove(oi);var O=Bt[this.layer].vy?Bt[this.layer].vy*l:0,P=Bt[this.layer].vx?Bt[this.layer].vx*l:0;typeof d=="function"&&d.call(Ee.dragged.parentNode[Wt],P,O,o,oi,Bt[this.layer].el)!=="continue"||sd(Bt[this.layer].el,P,O)}.bind({layer:f}),24))),f++}while(r.bubbleScroll&&h!==c&&(h=ha(h,!1)));Ks=u}},30),yd=function(r){var n=r.originalEvent,t=r.putSortable,e=r.dragEl,a=r.activeSortable,i=r.dispatchSortableEvent,l=r.hideGhostForTarget,c=r.unhideGhostForTarget;if(!!n){var u=t||a;l();var d=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(d.clientX,d.clientY);c(),u&&!u.el.contains(f)&&(i("spill"),this.onSpill({dragEl:e,putSortable:t}))}};function Qs(){}Qs.prototype={startIndex:null,dragStart:function(r){var n=r.oldDraggableIndex;this.startIndex=n},onSpill:function(r){var n=r.dragEl,t=r.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var e=eo(this.sortable.el,this.startIndex,this.options);e?this.sortable.el.insertBefore(n,e):this.sortable.el.appendChild(n),this.sortable.animateAll(),t&&t.animateAll()},drop:yd},kn(Qs,{pluginName:"revertOnSpill"});function Zs(){}Zs.prototype={onSpill:function(r){var n=r.dragEl,t=r.putSortable,e=t||this.sortable;e.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),e.animateAll()},drop:yd},kn(Zs,{pluginName:"removeOnSpill"});var Tn;function y9(){function o(){this.defaults={swapClass:"sortable-swap-highlight"}}return o.prototype={dragStart:function(n){var t=n.dragEl;Tn=t},dragOverValid:function(n){var t=n.completed,e=n.target,a=n.onMove,i=n.activeSortable,l=n.changed,c=n.cancel;if(!!i.options.swap){var u=this.sortable.el,d=this.options;if(e&&e!==u){var f=Tn;a(e)!==!1?(yt(e,d.swapClass,!0),Tn=e):Tn=null,f&&f!==Tn&&yt(f,d.swapClass,!1)}l(),t(!0),c()}},drop:function(n){var t=n.activeSortable,e=n.putSortable,a=n.dragEl,i=e||this.sortable,l=this.options;Tn&&yt(Tn,l.swapClass,!1),Tn&&(l.swap||e&&e.options.swap)&&a!==Tn&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),_9(a,Tn),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){Tn=null}},kn(o,{pluginName:"swap",eventProperties:function(){return{swapItem:Tn}}})}function _9(o,r){var n=o.parentNode,t=r.parentNode,e,a;!n||!t||n.isEqualNode(r)||t.isEqualNode(o)||(e=bt(o),a=bt(r),n.isEqualNode(t)&&e<a&&a++,n.insertBefore(r,n.children[e]),t.insertBefore(o,t.children[a]))}var Oe=[],_n=[],Xo,Nn,Jo=!1,rn=!1,ro=!1,rt,Qo,ii;function w9(){function o(r){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));r.options.supportPointer?Ye(document,"pointerup",this._deselectMultiDrag):(Ye(document,"mouseup",this._deselectMultiDrag),Ye(document,"touchend",this._deselectMultiDrag)),Ye(document,"keydown",this._checkKeyDown),Ye(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,a){var i="";Oe.length&&Nn===r?Oe.forEach(function(l,c){i+=(c?", ":"")+l.textContent}):i=a.textContent,e.setData("Text",i)}}}return o.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var t=n.dragEl;rt=t},delayEnded:function(){this.isMultiDrag=~Oe.indexOf(rt)},setupClone:function(n){var t=n.sortable,e=n.cancel;if(!!this.isMultiDrag){for(var a=0;a<Oe.length;a++)_n.push(Ns(Oe[a])),_n[a].sortableIndex=Oe[a].sortableIndex,_n[a].draggable=!1,_n[a].style["will-change"]="",yt(_n[a],this.options.selectedClass,!1),Oe[a]===rt&&yt(_n[a],this.options.chosenClass,!1);t._hideClone(),e()}},clone:function(n){var t=n.sortable,e=n.rootEl,a=n.dispatchSortableEvent,i=n.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||Oe.length&&Nn===t&&(_d(!0,e),a("clone"),i())},showClone:function(n){var t=n.cloneNowShown,e=n.rootEl,a=n.cancel;!this.isMultiDrag||(_d(!1,e),_n.forEach(function(i){me(i,"display","")}),t(),ii=!1,a())},hideClone:function(n){var t=this;n.sortable;var e=n.cloneNowHidden,a=n.cancel;!this.isMultiDrag||(_n.forEach(function(i){me(i,"display","none"),t.options.removeCloneOnHide&&i.parentNode&&i.parentNode.removeChild(i)}),e(),ii=!0,a())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Nn&&Nn.multiDrag._deselectMultiDrag(),Oe.forEach(function(t){t.sortableIndex=bt(t)}),Oe=Oe.sort(function(t,e){return t.sortableIndex-e.sortableIndex}),ro=!0},dragStarted:function(n){var t=this,e=n.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(e.captureAnimationState(),this.options.animation)){Oe.forEach(function(i){i!==rt&&me(i,"position","absolute")});var a=dt(rt,!1,!0,!0);Oe.forEach(function(i){i!==rt&&ld(i,a)}),rn=!0,Jo=!0}e.animateAll(function(){rn=!1,Jo=!1,t.options.animation&&Oe.forEach(function(i){Rs(i)}),t.options.sort&&si()})}},dragOver:function(n){var t=n.target,e=n.completed,a=n.cancel;rn&&~Oe.indexOf(t)&&(e(!1),a())},revert:function(n){var t=n.fromSortable,e=n.rootEl,a=n.sortable,i=n.dragRect;Oe.length>1&&(Oe.forEach(function(l){a.addAnimationState({target:l,rect:rn?dt(l):i}),Rs(l),l.fromRect=i,t.removeAnimationState(l)}),rn=!1,b9(!this.options.removeCloneOnHide,e))},dragOverCompleted:function(n){var t=n.sortable,e=n.isOwner,a=n.insertion,i=n.activeSortable,l=n.parentEl,c=n.putSortable,u=this.options;if(a){if(e&&i._hideClone(),Jo=!1,u.animation&&Oe.length>1&&(rn||!e&&!i.options.sort&&!c)){var d=dt(rt,!1,!0,!0);Oe.forEach(function(h){h!==rt&&(ld(h,d),l.appendChild(h))}),rn=!0}if(!e)if(rn||si(),Oe.length>1){var f=ii;i._showClone(t),i.options.animation&&!ii&&f&&_n.forEach(function(h){i.addAnimationState({target:h,rect:Qo}),h.fromRect=Qo,h.thisAnimationDuration=null})}else i._showClone(t)}},dragOverAnimationCapture:function(n){var t=n.dragRect,e=n.isOwner,a=n.activeSortable;if(Oe.forEach(function(l){l.thisAnimationDuration=null}),a.options.animation&&!e&&a.multiDrag.isMultiDrag){Qo=kn({},t);var i=Oa(rt,!0);Qo.top-=i.f,Qo.left-=i.e}},dragOverAnimationComplete:function(){rn&&(rn=!1,si())},drop:function(n){var t=n.originalEvent,e=n.rootEl,a=n.parentEl,i=n.sortable,l=n.dispatchSortableEvent,c=n.oldIndex,u=n.putSortable,d=u||this.sortable;if(!!t){var f=this.options,h=a.children;if(!ro)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),yt(rt,f.selectedClass,!~Oe.indexOf(rt)),~Oe.indexOf(rt))Oe.splice(Oe.indexOf(rt),1),Xo=null,zo({sortable:i,rootEl:e,name:"deselect",targetEl:rt,originalEvt:t});else{if(Oe.push(rt),zo({sortable:i,rootEl:e,name:"select",targetEl:rt,originalEvt:t}),t.shiftKey&&Xo&&i.el.contains(Xo)){var p=bt(Xo),v=bt(rt);if(~p&&~v&&p!==v){var g,m;for(v>p?(m=p,g=v):(m=v,g=p+1);m<g;m++)~Oe.indexOf(h[m])||(yt(h[m],f.selectedClass,!0),Oe.push(h[m]),zo({sortable:i,rootEl:e,name:"select",targetEl:h[m],originalEvt:t}))}}else Xo=rt;Nn=d}if(ro&&this.isMultiDrag){if(rn=!1,(a[Wt].options.sort||a!==e)&&Oe.length>1){var _=dt(rt),b=bt(rt,":not(."+this.options.selectedClass+")");if(!Jo&&f.animation&&(rt.thisAnimationDuration=null),d.captureAnimationState(),!Jo&&(f.animation&&(rt.fromRect=_,Oe.forEach(function(w){if(w.thisAnimationDuration=null,w!==rt){var S=rn?dt(w):_;w.fromRect=S,d.addAnimationState({target:w,rect:S})}})),si(),Oe.forEach(function(w){h[b]?a.insertBefore(w,h[b]):a.appendChild(w),b++}),c===bt(rt))){var y=!1;Oe.forEach(function(w){if(w.sortableIndex!==bt(w)){y=!0;return}}),y&&l("update")}Oe.forEach(function(w){Rs(w)}),d.animateAll()}Nn=d}(e===a||u&&u.lastPutMode!=="clone")&&_n.forEach(function(w){w.parentNode&&w.parentNode.removeChild(w)})}},nullingGlobal:function(){this.isMultiDrag=ro=!1,_n.length=0},destroyGlobal:function(){this._deselectMultiDrag(),je(document,"pointerup",this._deselectMultiDrag),je(document,"mouseup",this._deselectMultiDrag),je(document,"touchend",this._deselectMultiDrag),je(document,"keydown",this._checkKeyDown),je(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof ro<"u"&&ro)&&Nn===this.sortable&&!(n&&In(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Oe.length;){var t=Oe[0];yt(t,this.options.selectedClass,!1),Oe.shift(),zo({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},kn(o,{pluginName:"multiDrag",utils:{select:function(n){var t=n.parentNode[Wt];!t||!t.options.multiDrag||~Oe.indexOf(n)||(Nn&&Nn!==t&&(Nn.multiDrag._deselectMultiDrag(),Nn=t),yt(n,t.options.selectedClass,!0),Oe.push(n))},deselect:function(n){var t=n.parentNode[Wt],e=Oe.indexOf(n);!t||!t.options.multiDrag||!~e||(yt(n,t.options.selectedClass,!1),Oe.splice(e,1))}},eventProperties:function(){var n=this,t=[],e=[];return Oe.forEach(function(a){t.push({multiDragElement:a,index:a.sortableIndex});var i;rn&&a!==rt?i=-1:rn?i=bt(a,":not(."+n.options.selectedClass+")"):i=bt(a),e.push({multiDragElement:a,index:i})}),{items:G5(Oe),clones:[].concat(_n),oldIndicies:t,newIndicies:e}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function b9(o,r){Oe.forEach(function(n,t){var e=r.children[n.sortableIndex+(o?Number(t):0)];e?r.insertBefore(n,e):r.appendChild(n)})}function _d(o,r){_n.forEach(function(n,t){var e=r.children[n.sortableIndex+(o?Number(t):0)];e?r.insertBefore(n,e):r.appendChild(n)})}function si(){Oe.forEach(function(o){o!==rt&&o.parentNode&&o.parentNode.removeChild(o)})}Ee.mount(new g9),Ee.mount(Zs,Qs);const E9=b2(Object.freeze(Object.defineProperty({__proto__:null,default:Ee,MultiDrag:w9,Sortable:Ee,Swap:y9},Symbol.toStringTag,{value:"Module"})));(function(o,r){(function(t,e){o.exports=e(Yh.default,E9)})(typeof self<"u"?self:zc,function(n,t){return function(e){var a={};function i(l){if(a[l])return a[l].exports;var c=a[l]={i:l,l:!1,exports:{}};return e[l].call(c.exports,c,c.exports,i),c.l=!0,c.exports}return i.m=e,i.c=a,i.d=function(l,c,u){i.o(l,c)||Object.defineProperty(l,c,{enumerable:!0,get:u})},i.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},i.t=function(l,c){if(c&1&&(l=i(l)),c&8||c&4&&typeof l=="object"&&l&&l.__esModule)return l;var u=Object.create(null);if(i.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:l}),c&2&&typeof l!="string")for(var d in l)i.d(u,d,function(f){return l[f]}.bind(null,d));return u},i.n=function(l){var c=l&&l.__esModule?function(){return l.default}:function(){return l};return i.d(c,"a",c),c},i.o=function(l,c){return Object.prototype.hasOwnProperty.call(l,c)},i.p="",i(i.s="fb15")}({"00ee":function(e,a,i){var l=i("b622"),c=l("toStringTag"),u={};u[c]="z",e.exports=String(u)==="[object z]"},"0366":function(e,a,i){var l=i("1c0b");e.exports=function(c,u,d){if(l(c),u===void 0)return c;switch(d){case 0:return function(){return c.call(u)};case 1:return function(f){return c.call(u,f)};case 2:return function(f,h){return c.call(u,f,h)};case 3:return function(f,h,p){return c.call(u,f,h,p)}}return function(){return c.apply(u,arguments)}}},"057f":function(e,a,i){var l=i("fc6a"),c=i("241c").f,u={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(h){try{return c(h)}catch{return d.slice()}};e.exports.f=function(p){return d&&u.call(p)=="[object Window]"?f(p):c(l(p))}},"06cf":function(e,a,i){var l=i("83ab"),c=i("d1e7"),u=i("5c6c"),d=i("fc6a"),f=i("c04e"),h=i("5135"),p=i("0cfb"),v=Object.getOwnPropertyDescriptor;a.f=l?v:function(m,_){if(m=d(m),_=f(_,!0),p)try{return v(m,_)}catch{}if(h(m,_))return u(!c.f.call(m,_),m[_])}},"0cfb":function(e,a,i){var l=i("83ab"),c=i("d039"),u=i("cc12");e.exports=!l&&!c(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(e,a,i){var l=i("23e7"),c=i("d58f").left,u=i("a640"),d=i("ae40"),f=u("reduce"),h=d("reduce",{1:0});l({target:"Array",proto:!0,forced:!f||!h},{reduce:function(v){return c(this,v,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,a,i){var l=i("c6b6"),c=i("9263");e.exports=function(u,d){var f=u.exec;if(typeof f=="function"){var h=f.call(u,d);if(typeof h!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return h}if(l(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return c.call(u,d)}},"159b":function(e,a,i){var l=i("da84"),c=i("fdbc"),u=i("17c2"),d=i("9112");for(var f in c){var h=l[f],p=h&&h.prototype;if(p&&p.forEach!==u)try{d(p,"forEach",u)}catch{p.forEach=u}}},"17c2":function(e,a,i){var l=i("b727").forEach,c=i("a640"),u=i("ae40"),d=c("forEach"),f=u("forEach");e.exports=!d||!f?function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(e,a,i){var l=i("d066");e.exports=l("document","documentElement")},"1c0b":function(e,a){e.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"1c7e":function(e,a,i){var l=i("b622"),c=l("iterator"),u=!1;try{var d=0,f={next:function(){return{done:!!d++}},return:function(){u=!0}};f[c]=function(){return this},Array.from(f,function(){throw 2})}catch{}e.exports=function(h,p){if(!p&&!u)return!1;var v=!1;try{var g={};g[c]=function(){return{next:function(){return{done:v=!0}}}},h(g)}catch{}return v}},"1d80":function(e,a){e.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"1dde":function(e,a,i){var l=i("d039"),c=i("b622"),u=i("2d00"),d=c("species");e.exports=function(f){return u>=51||!l(function(){var h=[],p=h.constructor={};return p[d]=function(){return{foo:1}},h[f](Boolean).foo!==1})}},"23cb":function(e,a,i){var l=i("a691"),c=Math.max,u=Math.min;e.exports=function(d,f){var h=l(d);return h<0?c(h+f,0):u(h,f)}},"23e7":function(e,a,i){var l=i("da84"),c=i("06cf").f,u=i("9112"),d=i("6eeb"),f=i("ce4e"),h=i("e893"),p=i("94ca");e.exports=function(v,g){var m=v.target,_=v.global,b=v.stat,y,w,S,D,C,B;if(_?w=l:b?w=l[m]||f(m,{}):w=(l[m]||{}).prototype,w)for(S in g){if(C=g[S],v.noTargetGet?(B=c(w,S),D=B&&B.value):D=w[S],y=p(_?S:m+(b?".":"#")+S,v.forced),!y&&D!==void 0){if(typeof C==typeof D)continue;h(C,D)}(v.sham||D&&D.sham)&&u(C,"sham",!0),d(w,S,C,v)}}},"241c":function(e,a,i){var l=i("ca84"),c=i("7839"),u=c.concat("length","prototype");a.f=Object.getOwnPropertyNames||function(f){return l(f,u)}},"25f0":function(e,a,i){var l=i("6eeb"),c=i("825a"),u=i("d039"),d=i("ad6d"),f="toString",h=RegExp.prototype,p=h[f],v=u(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),g=p.name!=f;(v||g)&&l(RegExp.prototype,f,function(){var _=c(this),b=String(_.source),y=_.flags,w=String(y===void 0&&_ instanceof RegExp&&!("flags"in h)?d.call(_):y);return"/"+b+"/"+w},{unsafe:!0})},"2ca0":function(e,a,i){var l=i("23e7"),c=i("06cf").f,u=i("50c4"),d=i("5a34"),f=i("1d80"),h=i("ab13"),p=i("c430"),v="".startsWith,g=Math.min,m=h("startsWith"),_=!p&&!m&&!!function(){var b=c(String.prototype,"startsWith");return b&&!b.writable}();l({target:"String",proto:!0,forced:!_&&!m},{startsWith:function(y){var w=String(f(this));d(y);var S=u(g(arguments.length>1?arguments[1]:void 0,w.length)),D=String(y);return v?v.call(w,D,S):w.slice(S,S+D.length)===D}})},"2d00":function(e,a,i){var l=i("da84"),c=i("342f"),u=l.process,d=u&&u.versions,f=d&&d.v8,h,p;f?(h=f.split("."),p=h[0]+h[1]):c&&(h=c.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=c.match(/Chrome\/(\d+)/),h&&(p=h[1]))),e.exports=p&&+p},"342f":function(e,a,i){var l=i("d066");e.exports=l("navigator","userAgent")||""},"35a1":function(e,a,i){var l=i("f5df"),c=i("3f8c"),u=i("b622"),d=u("iterator");e.exports=function(f){if(f!=null)return f[d]||f["@@iterator"]||c[l(f)]}},"37e8":function(e,a,i){var l=i("83ab"),c=i("9bf2"),u=i("825a"),d=i("df75");e.exports=l?Object.defineProperties:function(h,p){u(h);for(var v=d(p),g=v.length,m=0,_;g>m;)c.f(h,_=v[m++],p[_]);return h}},"3bbe":function(e,a,i){var l=i("861d");e.exports=function(c){if(!l(c)&&c!==null)throw TypeError("Can't set "+String(c)+" as a prototype");return c}},"3ca3":function(e,a,i){var l=i("6547").charAt,c=i("69f3"),u=i("7dd0"),d="String Iterator",f=c.set,h=c.getterFor(d);u(String,"String",function(p){f(this,{type:d,string:String(p),index:0})},function(){var v=h(this),g=v.string,m=v.index,_;return m>=g.length?{value:void 0,done:!0}:(_=l(g,m),v.index+=_.length,{value:_,done:!1})})},"3f8c":function(e,a){e.exports={}},4160:function(e,a,i){var l=i("23e7"),c=i("17c2");l({target:"Array",proto:!0,forced:[].forEach!=c},{forEach:c})},"428f":function(e,a,i){var l=i("da84");e.exports=l},"44ad":function(e,a,i){var l=i("d039"),c=i("c6b6"),u="".split;e.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return c(d)=="String"?u.call(d,""):Object(d)}:Object},"44d2":function(e,a,i){var l=i("b622"),c=i("7c73"),u=i("9bf2"),d=l("unscopables"),f=Array.prototype;f[d]==null&&u.f(f,d,{configurable:!0,value:c(null)}),e.exports=function(h){f[d][h]=!0}},"44e7":function(e,a,i){var l=i("861d"),c=i("c6b6"),u=i("b622"),d=u("match");e.exports=function(f){var h;return l(f)&&((h=f[d])!==void 0?!!h:c(f)=="RegExp")}},4930:function(e,a,i){var l=i("d039");e.exports=!!Object.getOwnPropertySymbols&&!l(function(){return!String(Symbol())})},"4d64":function(e,a,i){var l=i("fc6a"),c=i("50c4"),u=i("23cb"),d=function(f){return function(h,p,v){var g=l(h),m=c(g.length),_=u(v,m),b;if(f&&p!=p){for(;m>_;)if(b=g[_++],b!=b)return!0}else for(;m>_;_++)if((f||_ in g)&&g[_]===p)return f||_||0;return!f&&-1}};e.exports={includes:d(!0),indexOf:d(!1)}},"4de4":function(e,a,i){var l=i("23e7"),c=i("b727").filter,u=i("1dde"),d=i("ae40"),f=u("filter"),h=d("filter");l({target:"Array",proto:!0,forced:!f||!h},{filter:function(v){return c(this,v,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,a,i){var l=i("0366"),c=i("7b0b"),u=i("9bdd"),d=i("e95a"),f=i("50c4"),h=i("8418"),p=i("35a1");e.exports=function(g){var m=c(g),_=typeof this=="function"?this:Array,b=arguments.length,y=b>1?arguments[1]:void 0,w=y!==void 0,S=p(m),D=0,C,B,A,L,I,E;if(w&&(y=l(y,b>2?arguments[2]:void 0,2)),S!=null&&!(_==Array&&d(S)))for(L=S.call(m),I=L.next,B=new _;!(A=I.call(L)).done;D++)E=w?u(L,y,[A.value,D],!0):A.value,h(B,D,E);else for(C=f(m.length),B=new _(C);C>D;D++)E=w?y(m[D],D):m[D],h(B,D,E);return B.length=D,B}},"4fad":function(e,a,i){var l=i("23e7"),c=i("6f53").entries;l({target:"Object",stat:!0},{entries:function(d){return c(d)}})},"50c4":function(e,a,i){var l=i("a691"),c=Math.min;e.exports=function(u){return u>0?c(l(u),9007199254740991):0}},5135:function(e,a){var i={}.hasOwnProperty;e.exports=function(l,c){return i.call(l,c)}},5319:function(e,a,i){var l=i("d784"),c=i("825a"),u=i("7b0b"),d=i("50c4"),f=i("a691"),h=i("1d80"),p=i("8aa5"),v=i("14c3"),g=Math.max,m=Math.min,_=Math.floor,b=/\$([$&'`]|\d\d?|<[^>]*>)/g,y=/\$([$&'`]|\d\d?)/g,w=function(S){return S===void 0?S:String(S)};l("replace",2,function(S,D,C,B){var A=B.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,L=B.REPLACE_KEEPS_$0,I=A?"$":"$0";return[function(k,O){var P=h(this),R=k==null?void 0:k[S];return R!==void 0?R.call(k,P,O):D.call(String(P),k,O)},function(x,k){if(!A&&L||typeof k=="string"&&k.indexOf(I)===-1){var O=C(D,x,this,k);if(O.done)return O.value}var P=c(x),R=String(this),N=typeof k=="function";N||(k=String(k));var H=P.global;if(H){var K=P.unicode;P.lastIndex=0}for(var U=[];;){var le=v(P,R);if(le===null||(U.push(le),!H))break;var ae=String(le[0]);ae===""&&(P.lastIndex=p(R,d(P.lastIndex),K))}for(var q="",we=0,de=0;de<U.length;de++){le=U[de];for(var ze=String(le[0]),et=g(m(f(le.index),R.length),0),at=[],Pt=1;Pt<le.length;Pt++)at.push(w(le[Pt]));var Rt=le.groups;if(N){var Je=[ze].concat(at,et,R);Rt!==void 0&&Je.push(Rt);var ct=String(k.apply(void 0,Je))}else ct=E(ze,R,et,at,Rt,k);et>=we&&(q+=R.slice(we,et)+ct,we=et+ze.length)}return q+R.slice(we)}];function E(x,k,O,P,R,N){var H=O+x.length,K=P.length,U=y;return R!==void 0&&(R=u(R),U=b),D.call(N,U,function(le,ae){var q;switch(ae.charAt(0)){case"$":return"$";case"&":return x;case"`":return k.slice(0,O);case"'":return k.slice(H);case"<":q=R[ae.slice(1,-1)];break;default:var we=+ae;if(we===0)return le;if(we>K){var de=_(we/10);return de===0?le:de<=K?P[de-1]===void 0?ae.charAt(1):P[de-1]+ae.charAt(1):le}q=P[we-1]}return q===void 0?"":q})}})},5692:function(e,a,i){var l=i("c430"),c=i("c6cd");(e.exports=function(u,d){return c[u]||(c[u]=d!==void 0?d:{})})("versions",[]).push({version:"3.6.5",mode:l?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,a,i){var l=i("d066"),c=i("241c"),u=i("7418"),d=i("825a");e.exports=l("Reflect","ownKeys")||function(h){var p=c.f(d(h)),v=u.f;return v?p.concat(v(h)):p}},"5a34":function(e,a,i){var l=i("44e7");e.exports=function(c){if(l(c))throw TypeError("The method doesn't accept regular expressions");return c}},"5c6c":function(e,a){e.exports=function(i,l){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:l}}},"5db7":function(e,a,i){var l=i("23e7"),c=i("a2bf"),u=i("7b0b"),d=i("50c4"),f=i("1c0b"),h=i("65f0");l({target:"Array",proto:!0},{flatMap:function(v){var g=u(this),m=d(g.length),_;return f(v),_=h(g,0),_.length=c(_,g,g,m,0,1,v,arguments.length>1?arguments[1]:void 0),_}})},6547:function(e,a,i){var l=i("a691"),c=i("1d80"),u=function(d){return function(f,h){var p=String(c(f)),v=l(h),g=p.length,m,_;return v<0||v>=g?d?"":void 0:(m=p.charCodeAt(v),m<55296||m>56319||v+1===g||(_=p.charCodeAt(v+1))<56320||_>57343?d?p.charAt(v):m:d?p.slice(v,v+2):(m-55296<<10)+(_-56320)+65536)}};e.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(e,a,i){var l=i("861d"),c=i("e8b5"),u=i("b622"),d=u("species");e.exports=function(f,h){var p;return c(f)&&(p=f.constructor,typeof p=="function"&&(p===Array||c(p.prototype))?p=void 0:l(p)&&(p=p[d],p===null&&(p=void 0))),new(p===void 0?Array:p)(h===0?0:h)}},"69f3":function(e,a,i){var l=i("7f9a"),c=i("da84"),u=i("861d"),d=i("9112"),f=i("5135"),h=i("f772"),p=i("d012"),v=c.WeakMap,g,m,_,b=function(A){return _(A)?m(A):g(A,{})},y=function(A){return function(L){var I;if(!u(L)||(I=m(L)).type!==A)throw TypeError("Incompatible receiver, "+A+" required");return I}};if(l){var w=new v,S=w.get,D=w.has,C=w.set;g=function(A,L){return C.call(w,A,L),L},m=function(A){return S.call(w,A)||{}},_=function(A){return D.call(w,A)}}else{var B=h("state");p[B]=!0,g=function(A,L){return d(A,B,L),L},m=function(A){return f(A,B)?A[B]:{}},_=function(A){return f(A,B)}}e.exports={set:g,get:m,has:_,enforce:b,getterFor:y}},"6eeb":function(e,a,i){var l=i("da84"),c=i("9112"),u=i("5135"),d=i("ce4e"),f=i("8925"),h=i("69f3"),p=h.get,v=h.enforce,g=String(String).split("String");(e.exports=function(m,_,b,y){var w=y?!!y.unsafe:!1,S=y?!!y.enumerable:!1,D=y?!!y.noTargetGet:!1;if(typeof b=="function"&&(typeof _=="string"&&!u(b,"name")&&c(b,"name",_),v(b).source=g.join(typeof _=="string"?_:"")),m===l){S?m[_]=b:d(_,b);return}else w?!D&&m[_]&&(S=!0):delete m[_];S?m[_]=b:c(m,_,b)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||f(this)})},"6f53":function(e,a,i){var l=i("83ab"),c=i("df75"),u=i("fc6a"),d=i("d1e7").f,f=function(h){return function(p){for(var v=u(p),g=c(v),m=g.length,_=0,b=[],y;m>_;)y=g[_++],(!l||d.call(v,y))&&b.push(h?[y,v[y]]:v[y]);return b}};e.exports={entries:f(!0),values:f(!1)}},"73d9":function(e,a,i){var l=i("44d2");l("flatMap")},7418:function(e,a){a.f=Object.getOwnPropertySymbols},"746f":function(e,a,i){var l=i("428f"),c=i("5135"),u=i("e538"),d=i("9bf2").f;e.exports=function(f){var h=l.Symbol||(l.Symbol={});c(h,f)||d(h,f,{value:u.f(f)})}},7839:function(e,a){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,a,i){var l=i("1d80");e.exports=function(c){return Object(l(c))}},"7c73":function(e,a,i){var l=i("825a"),c=i("37e8"),u=i("7839"),d=i("d012"),f=i("1be4"),h=i("cc12"),p=i("f772"),v=">",g="<",m="prototype",_="script",b=p("IE_PROTO"),y=function(){},w=function(A){return g+_+v+A+g+"/"+_+v},S=function(A){A.write(w("")),A.close();var L=A.parentWindow.Object;return A=null,L},D=function(){var A=h("iframe"),L="java"+_+":",I;return A.style.display="none",f.appendChild(A),A.src=String(L),I=A.contentWindow.document,I.open(),I.write(w("document.F=Object")),I.close(),I.F},C,B=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch{}B=C?S(C):D();for(var A=u.length;A--;)delete B[m][u[A]];return B()};d[b]=!0,e.exports=Object.create||function(L,I){var E;return L!==null?(y[m]=l(L),E=new y,y[m]=null,E[b]=L):E=B(),I===void 0?E:c(E,I)}},"7dd0":function(e,a,i){var l=i("23e7"),c=i("9ed3"),u=i("e163"),d=i("d2bb"),f=i("d44e"),h=i("9112"),p=i("6eeb"),v=i("b622"),g=i("c430"),m=i("3f8c"),_=i("ae93"),b=_.IteratorPrototype,y=_.BUGGY_SAFARI_ITERATORS,w=v("iterator"),S="keys",D="values",C="entries",B=function(){return this};e.exports=function(A,L,I,E,x,k,O){c(I,L,E);var P=function(de){if(de===x&&U)return U;if(!y&&de in H)return H[de];switch(de){case S:return function(){return new I(this,de)};case D:return function(){return new I(this,de)};case C:return function(){return new I(this,de)}}return function(){return new I(this)}},R=L+" Iterator",N=!1,H=A.prototype,K=H[w]||H["@@iterator"]||x&&H[x],U=!y&&K||P(x),le=L=="Array"&&H.entries||K,ae,q,we;if(le&&(ae=u(le.call(new A)),b!==Object.prototype&&ae.next&&(!g&&u(ae)!==b&&(d?d(ae,b):typeof ae[w]!="function"&&h(ae,w,B)),f(ae,R,!0,!0),g&&(m[R]=B))),x==D&&K&&K.name!==D&&(N=!0,U=function(){return K.call(this)}),(!g||O)&&H[w]!==U&&h(H,w,U),m[L]=U,x)if(q={values:P(D),keys:k?U:P(S),entries:P(C)},O)for(we in q)(y||N||!(we in H))&&p(H,we,q[we]);else l({target:L,proto:!0,forced:y||N},q);return q}},"7f9a":function(e,a,i){var l=i("da84"),c=i("8925"),u=l.WeakMap;e.exports=typeof u=="function"&&/native code/.test(c(u))},"825a":function(e,a,i){var l=i("861d");e.exports=function(c){if(!l(c))throw TypeError(String(c)+" is not an object");return c}},"83ab":function(e,a,i){var l=i("d039");e.exports=!l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(e,a,i){var l=i("c04e"),c=i("9bf2"),u=i("5c6c");e.exports=function(d,f,h){var p=l(f);p in d?c.f(d,p,u(0,h)):d[p]=h}},"861d":function(e,a){e.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},8875:function(e,a,i){var l,c,u;(function(d,f){c=[],l=f,u=typeof l=="function"?l.apply(a,c):l,u!==void 0&&(e.exports=u)})(typeof self<"u"?self:this,function(){function d(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==d&&document.currentScript)return document.currentScript;try{throw new Error}catch(C){var h=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,p=/@([^@]*):(\d+):(\d+)\s*$/ig,v=h.exec(C.stack)||p.exec(C.stack),g=v&&v[1]||!1,m=v&&v[2]||!1,_=document.location.href.replace(document.location.hash,""),b,y,w,S=document.getElementsByTagName("script");g===_&&(b=document.documentElement.outerHTML,y=new RegExp("(?:[^\\n]+?\\n){0,"+(m-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),w=b.replace(y,"$1").trim());for(var D=0;D<S.length;D++)if(S[D].readyState==="interactive"||S[D].src===g||g===_&&S[D].innerHTML&&S[D].innerHTML.trim()===w)return S[D];return null}}return d})},8925:function(e,a,i){var l=i("c6cd"),c=Function.toString;typeof l.inspectSource!="function"&&(l.inspectSource=function(u){return c.call(u)}),e.exports=l.inspectSource},"8aa5":function(e,a,i){var l=i("6547").charAt;e.exports=function(c,u,d){return u+(d?l(c,u).length:1)}},"8bbf":function(e,a){e.exports=n},"90e3":function(e,a){var i=0,l=Math.random();e.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++i+l).toString(36)}},9112:function(e,a,i){var l=i("83ab"),c=i("9bf2"),u=i("5c6c");e.exports=l?function(d,f,h){return c.f(d,f,u(1,h))}:function(d,f,h){return d[f]=h,d}},9263:function(e,a,i){var l=i("ad6d"),c=i("9f7f"),u=RegExp.prototype.exec,d=String.prototype.replace,f=u,h=function(){var m=/a/,_=/b*/g;return u.call(m,"a"),u.call(_,"a"),m.lastIndex!==0||_.lastIndex!==0}(),p=c.UNSUPPORTED_Y||c.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,g=h||v||p;g&&(f=function(_){var b=this,y,w,S,D,C=p&&b.sticky,B=l.call(b),A=b.source,L=0,I=_;return C&&(B=B.replace("y",""),B.indexOf("g")===-1&&(B+="g"),I=String(_).slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&_[b.lastIndex-1]!==`
|
|
24
|
-
`)&&(A="(?: "+A+")",I=" "+I,L++),w=new RegExp("^(?:"+A+")",B)),v&&(w=new RegExp("^"+A+"$(?!\\s)",B)),h&&(y=b.lastIndex),S=u.call(C?w:b,I),C?S?(S.input=S.input.slice(L),S[0]=S[0].slice(L),S.index=b.lastIndex,b.lastIndex+=S[0].length):b.lastIndex=0:h&&S&&(b.lastIndex=b.global?S.index+S[0].length:y),v&&S&&S.length>1&&d.call(S[0],w,function(){for(D=1;D<arguments.length-2;D++)arguments[D]===void 0&&(S[D]=void 0)}),S}),e.exports=f},"94ca":function(e,a,i){var l=i("d039"),c=/#|\.prototype\./,u=function(v,g){var m=f[d(v)];return m==p?!0:m==h?!1:typeof g=="function"?l(g):!!g},d=u.normalize=function(v){return String(v).replace(c,".").toLowerCase()},f=u.data={},h=u.NATIVE="N",p=u.POLYFILL="P";e.exports=u},"99af":function(e,a,i){var l=i("23e7"),c=i("d039"),u=i("e8b5"),d=i("861d"),f=i("7b0b"),h=i("50c4"),p=i("8418"),v=i("65f0"),g=i("1dde"),m=i("b622"),_=i("2d00"),b=m("isConcatSpreadable"),y=9007199254740991,w="Maximum allowed index exceeded",S=_>=51||!c(function(){var A=[];return A[b]=!1,A.concat()[0]!==A}),D=g("concat"),C=function(A){if(!d(A))return!1;var L=A[b];return L!==void 0?!!L:u(A)},B=!S||!D;l({target:"Array",proto:!0,forced:B},{concat:function(L){var I=f(this),E=v(I,0),x=0,k,O,P,R,N;for(k=-1,P=arguments.length;k<P;k++)if(N=k===-1?I:arguments[k],C(N)){if(R=h(N.length),x+R>y)throw TypeError(w);for(O=0;O<R;O++,x++)O in N&&p(E,x,N[O])}else{if(x>=y)throw TypeError(w);p(E,x++,N)}return E.length=x,E}})},"9bdd":function(e,a,i){var l=i("825a");e.exports=function(c,u,d,f){try{return f?u(l(d)[0],d[1]):u(d)}catch(p){var h=c.return;throw h!==void 0&&l(h.call(c)),p}}},"9bf2":function(e,a,i){var l=i("83ab"),c=i("0cfb"),u=i("825a"),d=i("c04e"),f=Object.defineProperty;a.f=l?f:function(p,v,g){if(u(p),v=d(v,!0),u(g),c)try{return f(p,v,g)}catch{}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(p[v]=g.value),p}},"9ed3":function(e,a,i){var l=i("ae93").IteratorPrototype,c=i("7c73"),u=i("5c6c"),d=i("d44e"),f=i("3f8c"),h=function(){return this};e.exports=function(p,v,g){var m=v+" Iterator";return p.prototype=c(l,{next:u(1,g)}),d(p,m,!1,!0),f[m]=h,p}},"9f7f":function(e,a,i){var l=i("d039");function c(u,d){return RegExp(u,d)}a.UNSUPPORTED_Y=l(function(){var u=c("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),a.BROKEN_CARET=l(function(){var u=c("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(e,a,i){var l=i("e8b5"),c=i("50c4"),u=i("0366"),d=function(f,h,p,v,g,m,_,b){for(var y=g,w=0,S=_?u(_,b,3):!1,D;w<v;){if(w in p){if(D=S?S(p[w],w,h):p[w],m>0&&l(D))y=d(f,h,D,c(D.length),y,m-1)-1;else{if(y>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[y]=D}y++}w++}return y};e.exports=d},a352:function(e,a){e.exports=t},a434:function(e,a,i){var l=i("23e7"),c=i("23cb"),u=i("a691"),d=i("50c4"),f=i("7b0b"),h=i("65f0"),p=i("8418"),v=i("1dde"),g=i("ae40"),m=v("splice"),_=g("splice",{ACCESSORS:!0,0:0,1:2}),b=Math.max,y=Math.min,w=9007199254740991,S="Maximum allowed length exceeded";l({target:"Array",proto:!0,forced:!m||!_},{splice:function(C,B){var A=f(this),L=d(A.length),I=c(C,L),E=arguments.length,x,k,O,P,R,N;if(E===0?x=k=0:E===1?(x=0,k=L-I):(x=E-2,k=y(b(u(B),0),L-I)),L+x-k>w)throw TypeError(S);for(O=h(A,k),P=0;P<k;P++)R=I+P,R in A&&p(O,P,A[R]);if(O.length=k,x<k){for(P=I;P<L-k;P++)R=P+k,N=P+x,R in A?A[N]=A[R]:delete A[N];for(P=L;P>L-k+x;P--)delete A[P-1]}else if(x>k)for(P=L-k;P>I;P--)R=P+k-1,N=P+x-1,R in A?A[N]=A[R]:delete A[N];for(P=0;P<x;P++)A[P+I]=arguments[P+2];return A.length=L-k+x,O}})},a4d3:function(e,a,i){var l=i("23e7"),c=i("da84"),u=i("d066"),d=i("c430"),f=i("83ab"),h=i("4930"),p=i("fdbf"),v=i("d039"),g=i("5135"),m=i("e8b5"),_=i("861d"),b=i("825a"),y=i("7b0b"),w=i("fc6a"),S=i("c04e"),D=i("5c6c"),C=i("7c73"),B=i("df75"),A=i("241c"),L=i("057f"),I=i("7418"),E=i("06cf"),x=i("9bf2"),k=i("d1e7"),O=i("9112"),P=i("6eeb"),R=i("5692"),N=i("f772"),H=i("d012"),K=i("90e3"),U=i("b622"),le=i("e538"),ae=i("746f"),q=i("d44e"),we=i("69f3"),de=i("b727").forEach,ze=N("hidden"),et="Symbol",at="prototype",Pt=U("toPrimitive"),Rt=we.set,Je=we.getterFor(et),ct=Object[at],mt=c.Symbol,tn=u("JSON","stringify"),Vt=E.f,It=x.f,Mt=L.f,Nt=k.f,Ut=R("symbols"),An=R("op-symbols"),ca=R("string-to-symbol-registry"),j=R("symbol-to-string-registry"),oe=R("wks"),Te=c.QObject,ke=!Te||!Te[at]||!Te[at].findChild,M=f&&v(function(){return C(It({},"a",{get:function(){return It(this,"a",{value:7}).a}})).a!=7})?function(re,Q,pe){var Ie=Vt(ct,Q);Ie&&delete ct[Q],It(re,Q,pe),Ie&&re!==ct&&It(ct,Q,Ie)}:It,te=function(re,Q){var pe=Ut[re]=C(mt[at]);return Rt(pe,{type:et,tag:re,description:Q}),f||(pe.description=Q),pe},V=p?function(re){return typeof re=="symbol"}:function(re){return Object(re)instanceof mt},F=function(Q,pe,Ie){Q===ct&&F(An,pe,Ie),b(Q);var We=S(pe,!0);return b(Ie),g(Ut,We)?(Ie.enumerable?(g(Q,ze)&&Q[ze][We]&&(Q[ze][We]=!1),Ie=C(Ie,{enumerable:D(0,!1)})):(g(Q,ze)||It(Q,ze,D(1,{})),Q[ze][We]=!0),M(Q,We,Ie)):It(Q,We,Ie)},G=function(Q,pe){b(Q);var Ie=w(pe),We=B(Ie).concat(De(Ie));return de(We,function(pn){(!f||$.call(Ie,pn))&&F(Q,pn,Ie[pn])}),Q},Z=function(Q,pe){return pe===void 0?C(Q):G(C(Q),pe)},$=function(Q){var pe=S(Q,!0),Ie=Nt.call(this,pe);return this===ct&&g(Ut,pe)&&!g(An,pe)?!1:Ie||!g(this,pe)||!g(Ut,pe)||g(this,ze)&&this[ze][pe]?Ie:!0},ue=function(Q,pe){var Ie=w(Q),We=S(pe,!0);if(!(Ie===ct&&g(Ut,We)&&!g(An,We))){var pn=Vt(Ie,We);return pn&&g(Ut,We)&&!(g(Ie,ze)&&Ie[ze][We])&&(pn.enumerable=!0),pn}},ve=function(Q){var pe=Mt(w(Q)),Ie=[];return de(pe,function(We){!g(Ut,We)&&!g(H,We)&&Ie.push(We)}),Ie},De=function(Q){var pe=Q===ct,Ie=Mt(pe?An:w(Q)),We=[];return de(Ie,function(pn){g(Ut,pn)&&(!pe||g(ct,pn))&&We.push(Ut[pn])}),We};if(h||(mt=function(){if(this instanceof mt)throw TypeError("Symbol is not a constructor");var Q=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),pe=K(Q),Ie=function(We){this===ct&&Ie.call(An,We),g(this,ze)&&g(this[ze],pe)&&(this[ze][pe]=!1),M(this,pe,D(1,We))};return f&&ke&&M(ct,pe,{configurable:!0,set:Ie}),te(pe,Q)},P(mt[at],"toString",function(){return Je(this).tag}),P(mt,"withoutSetter",function(re){return te(K(re),re)}),k.f=$,x.f=F,E.f=ue,A.f=L.f=ve,I.f=De,le.f=function(re){return te(U(re),re)},f&&(It(mt[at],"description",{configurable:!0,get:function(){return Je(this).description}}),d||P(ct,"propertyIsEnumerable",$,{unsafe:!0}))),l({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:mt}),de(B(oe),function(re){ae(re)}),l({target:et,stat:!0,forced:!h},{for:function(re){var Q=String(re);if(g(ca,Q))return ca[Q];var pe=mt(Q);return ca[Q]=pe,j[pe]=Q,pe},keyFor:function(Q){if(!V(Q))throw TypeError(Q+" is not a symbol");if(g(j,Q))return j[Q]},useSetter:function(){ke=!0},useSimple:function(){ke=!1}}),l({target:"Object",stat:!0,forced:!h,sham:!f},{create:Z,defineProperty:F,defineProperties:G,getOwnPropertyDescriptor:ue}),l({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:ve,getOwnPropertySymbols:De}),l({target:"Object",stat:!0,forced:v(function(){I.f(1)})},{getOwnPropertySymbols:function(Q){return I.f(y(Q))}}),tn){var X=!h||v(function(){var re=mt();return tn([re])!="[null]"||tn({a:re})!="{}"||tn(Object(re))!="{}"});l({target:"JSON",stat:!0,forced:X},{stringify:function(Q,pe,Ie){for(var We=[Q],pn=1,tc;arguments.length>pn;)We.push(arguments[pn++]);if(tc=pe,!(!_(pe)&&Q===void 0||V(Q)))return m(pe)||(pe=function(U7,ji){if(typeof tc=="function"&&(ji=tc.call(this,U7,ji)),!V(ji))return ji}),We[1]=pe,tn.apply(null,We)}})}mt[at][Pt]||O(mt[at],Pt,mt[at].valueOf),q(mt,et),H[ze]=!0},a630:function(e,a,i){var l=i("23e7"),c=i("4df4"),u=i("1c7e"),d=!u(function(f){Array.from(f)});l({target:"Array",stat:!0,forced:d},{from:c})},a640:function(e,a,i){var l=i("d039");e.exports=function(c,u){var d=[][c];return!!d&&l(function(){d.call(null,u||function(){throw 1},1)})}},a691:function(e,a){var i=Math.ceil,l=Math.floor;e.exports=function(c){return isNaN(c=+c)?0:(c>0?l:i)(c)}},ab13:function(e,a,i){var l=i("b622"),c=l("match");e.exports=function(u){var d=/./;try{"/./"[u](d)}catch{try{return d[c]=!1,"/./"[u](d)}catch{}}return!1}},ac1f:function(e,a,i){var l=i("23e7"),c=i("9263");l({target:"RegExp",proto:!0,forced:/./.exec!==c},{exec:c})},ad6d:function(e,a,i){var l=i("825a");e.exports=function(){var c=l(this),u="";return c.global&&(u+="g"),c.ignoreCase&&(u+="i"),c.multiline&&(u+="m"),c.dotAll&&(u+="s"),c.unicode&&(u+="u"),c.sticky&&(u+="y"),u}},ae40:function(e,a,i){var l=i("83ab"),c=i("d039"),u=i("5135"),d=Object.defineProperty,f={},h=function(p){throw p};e.exports=function(p,v){if(u(f,p))return f[p];v||(v={});var g=[][p],m=u(v,"ACCESSORS")?v.ACCESSORS:!1,_=u(v,0)?v[0]:h,b=u(v,1)?v[1]:void 0;return f[p]=!!g&&!c(function(){if(m&&!l)return!0;var y={length:-1};m?d(y,1,{enumerable:!0,get:h}):y[1]=1,g.call(y,_,b)})}},ae93:function(e,a,i){var l=i("e163"),c=i("9112"),u=i("5135"),d=i("b622"),f=i("c430"),h=d("iterator"),p=!1,v=function(){return this},g,m,_;[].keys&&(_=[].keys(),"next"in _?(m=l(l(_)),m!==Object.prototype&&(g=m)):p=!0),g==null&&(g={}),!f&&!u(g,h)&&c(g,h,v),e.exports={IteratorPrototype:g,BUGGY_SAFARI_ITERATORS:p}},b041:function(e,a,i){var l=i("00ee"),c=i("f5df");e.exports=l?{}.toString:function(){return"[object "+c(this)+"]"}},b0c0:function(e,a,i){var l=i("83ab"),c=i("9bf2").f,u=Function.prototype,d=u.toString,f=/^\s*function ([^ (]*)/,h="name";l&&!(h in u)&&c(u,h,{configurable:!0,get:function(){try{return d.call(this).match(f)[1]}catch{return""}}})},b622:function(e,a,i){var l=i("da84"),c=i("5692"),u=i("5135"),d=i("90e3"),f=i("4930"),h=i("fdbf"),p=c("wks"),v=l.Symbol,g=h?v:v&&v.withoutSetter||d;e.exports=function(m){return u(p,m)||(f&&u(v,m)?p[m]=v[m]:p[m]=g("Symbol."+m)),p[m]}},b64b:function(e,a,i){var l=i("23e7"),c=i("7b0b"),u=i("df75"),d=i("d039"),f=d(function(){u(1)});l({target:"Object",stat:!0,forced:f},{keys:function(p){return u(c(p))}})},b727:function(e,a,i){var l=i("0366"),c=i("44ad"),u=i("7b0b"),d=i("50c4"),f=i("65f0"),h=[].push,p=function(v){var g=v==1,m=v==2,_=v==3,b=v==4,y=v==6,w=v==5||y;return function(S,D,C,B){for(var A=u(S),L=c(A),I=l(D,C,3),E=d(L.length),x=0,k=B||f,O=g?k(S,E):m?k(S,0):void 0,P,R;E>x;x++)if((w||x in L)&&(P=L[x],R=I(P,x,A),v)){if(g)O[x]=R;else if(R)switch(v){case 3:return!0;case 5:return P;case 6:return x;case 2:h.call(O,P)}else if(b)return!1}return y?-1:_||b?b:O}};e.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}},c04e:function(e,a,i){var l=i("861d");e.exports=function(c,u){if(!l(c))return c;var d,f;if(u&&typeof(d=c.toString)=="function"&&!l(f=d.call(c))||typeof(d=c.valueOf)=="function"&&!l(f=d.call(c))||!u&&typeof(d=c.toString)=="function"&&!l(f=d.call(c)))return f;throw TypeError("Can't convert object to primitive value")}},c430:function(e,a){e.exports=!1},c6b6:function(e,a){var i={}.toString;e.exports=function(l){return i.call(l).slice(8,-1)}},c6cd:function(e,a,i){var l=i("da84"),c=i("ce4e"),u="__core-js_shared__",d=l[u]||c(u,{});e.exports=d},c740:function(e,a,i){var l=i("23e7"),c=i("b727").findIndex,u=i("44d2"),d=i("ae40"),f="findIndex",h=!0,p=d(f);f in[]&&Array(1)[f](function(){h=!1}),l({target:"Array",proto:!0,forced:h||!p},{findIndex:function(g){return c(this,g,arguments.length>1?arguments[1]:void 0)}}),u(f)},c8ba:function(e,a){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}e.exports=i},c975:function(e,a,i){var l=i("23e7"),c=i("4d64").indexOf,u=i("a640"),d=i("ae40"),f=[].indexOf,h=!!f&&1/[1].indexOf(1,-0)<0,p=u("indexOf"),v=d("indexOf",{ACCESSORS:!0,1:0});l({target:"Array",proto:!0,forced:h||!p||!v},{indexOf:function(m){return h?f.apply(this,arguments)||0:c(this,m,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,a,i){var l=i("5135"),c=i("fc6a"),u=i("4d64").indexOf,d=i("d012");e.exports=function(f,h){var p=c(f),v=0,g=[],m;for(m in p)!l(d,m)&&l(p,m)&&g.push(m);for(;h.length>v;)l(p,m=h[v++])&&(~u(g,m)||g.push(m));return g}},caad:function(e,a,i){var l=i("23e7"),c=i("4d64").includes,u=i("44d2"),d=i("ae40"),f=d("indexOf",{ACCESSORS:!0,1:0});l({target:"Array",proto:!0,forced:!f},{includes:function(p){return c(this,p,arguments.length>1?arguments[1]:void 0)}}),u("includes")},cc12:function(e,a,i){var l=i("da84"),c=i("861d"),u=l.document,d=c(u)&&c(u.createElement);e.exports=function(f){return d?u.createElement(f):{}}},ce4e:function(e,a,i){var l=i("da84"),c=i("9112");e.exports=function(u,d){try{c(l,u,d)}catch{l[u]=d}return d}},d012:function(e,a){e.exports={}},d039:function(e,a){e.exports=function(i){try{return!!i()}catch{return!0}}},d066:function(e,a,i){var l=i("428f"),c=i("da84"),u=function(d){return typeof d=="function"?d:void 0};e.exports=function(d,f){return arguments.length<2?u(l[d])||u(c[d]):l[d]&&l[d][f]||c[d]&&c[d][f]}},d1e7:function(e,a,i){var l={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u=c&&!l.call({1:2},1);a.f=u?function(f){var h=c(this,f);return!!h&&h.enumerable}:l},d28b:function(e,a,i){var l=i("746f");l("iterator")},d2bb:function(e,a,i){var l=i("825a"),c=i("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,d={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(d,[]),u=d instanceof Array}catch{}return function(p,v){return l(p),c(v),u?f.call(p,v):p.__proto__=v,p}}():void 0)},d3b7:function(e,a,i){var l=i("00ee"),c=i("6eeb"),u=i("b041");l||c(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(e,a,i){var l=i("9bf2").f,c=i("5135"),u=i("b622"),d=u("toStringTag");e.exports=function(f,h,p){f&&!c(f=p?f:f.prototype,d)&&l(f,d,{configurable:!0,value:h})}},d58f:function(e,a,i){var l=i("1c0b"),c=i("7b0b"),u=i("44ad"),d=i("50c4"),f=function(h){return function(p,v,g,m){l(v);var _=c(p),b=u(_),y=d(_.length),w=h?y-1:0,S=h?-1:1;if(g<2)for(;;){if(w in b){m=b[w],w+=S;break}if(w+=S,h?w<0:y<=w)throw TypeError("Reduce of empty array with no initial value")}for(;h?w>=0:y>w;w+=S)w in b&&(m=v(m,b[w],w,_));return m}};e.exports={left:f(!1),right:f(!0)}},d784:function(e,a,i){i("ac1f");var l=i("6eeb"),c=i("d039"),u=i("b622"),d=i("9263"),f=i("9112"),h=u("species"),p=!c(function(){var b=/./;return b.exec=function(){var y=[];return y.groups={a:"7"},y},"".replace(b,"$<a>")!=="7"}),v=function(){return"a".replace(/./,"$0")==="$0"}(),g=u("replace"),m=function(){return/./[g]?/./[g]("a","$0")==="":!1}(),_=!c(function(){var b=/(?:)/,y=b.exec;b.exec=function(){return y.apply(this,arguments)};var w="ab".split(b);return w.length!==2||w[0]!=="a"||w[1]!=="b"});e.exports=function(b,y,w,S){var D=u(b),C=!c(function(){var x={};return x[D]=function(){return 7},""[b](x)!=7}),B=C&&!c(function(){var x=!1,k=/a/;return b==="split"&&(k={},k.constructor={},k.constructor[h]=function(){return k},k.flags="",k[D]=/./[D]),k.exec=function(){return x=!0,null},k[D](""),!x});if(!C||!B||b==="replace"&&!(p&&v&&!m)||b==="split"&&!_){var A=/./[D],L=w(D,""[b],function(x,k,O,P,R){return k.exec===d?C&&!R?{done:!0,value:A.call(k,O,P)}:{done:!0,value:x.call(O,k,P)}:{done:!1}},{REPLACE_KEEPS_$0:v,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:m}),I=L[0],E=L[1];l(String.prototype,b,I),l(RegExp.prototype,D,y==2?function(x,k){return E.call(x,this,k)}:function(x){return E.call(x,this)})}S&&f(RegExp.prototype[D],"sham",!0)}},d81d:function(e,a,i){var l=i("23e7"),c=i("b727").map,u=i("1dde"),d=i("ae40"),f=u("map"),h=d("map");l({target:"Array",proto:!0,forced:!f||!h},{map:function(v){return c(this,v,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,a,i){(function(l){var c=function(u){return u&&u.Math==Math&&u};e.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof l=="object"&&l)||Function("return this")()}).call(this,i("c8ba"))},dbb4:function(e,a,i){var l=i("23e7"),c=i("83ab"),u=i("56ef"),d=i("fc6a"),f=i("06cf"),h=i("8418");l({target:"Object",stat:!0,sham:!c},{getOwnPropertyDescriptors:function(v){for(var g=d(v),m=f.f,_=u(g),b={},y=0,w,S;_.length>y;)S=m(g,w=_[y++]),S!==void 0&&h(b,w,S);return b}})},dbf1:function(e,a,i){(function(l){i.d(a,"a",function(){return u});function c(){return typeof window<"u"?window.console:l.console}var u=c()}).call(this,i("c8ba"))},ddb0:function(e,a,i){var l=i("da84"),c=i("fdbc"),u=i("e260"),d=i("9112"),f=i("b622"),h=f("iterator"),p=f("toStringTag"),v=u.values;for(var g in c){var m=l[g],_=m&&m.prototype;if(_){if(_[h]!==v)try{d(_,h,v)}catch{_[h]=v}if(_[p]||d(_,p,g),c[g]){for(var b in u)if(_[b]!==u[b])try{d(_,b,u[b])}catch{_[b]=u[b]}}}}},df75:function(e,a,i){var l=i("ca84"),c=i("7839");e.exports=Object.keys||function(d){return l(d,c)}},e01a:function(e,a,i){var l=i("23e7"),c=i("83ab"),u=i("da84"),d=i("5135"),f=i("861d"),h=i("9bf2").f,p=i("e893"),v=u.Symbol;if(c&&typeof v=="function"&&(!("description"in v.prototype)||v().description!==void 0)){var g={},m=function(){var D=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),C=this instanceof m?new v(D):D===void 0?v():v(D);return D===""&&(g[C]=!0),C};p(m,v);var _=m.prototype=v.prototype;_.constructor=m;var b=_.toString,y=String(v("test"))=="Symbol(test)",w=/^Symbol\((.*)\)[^)]+$/;h(_,"description",{configurable:!0,get:function(){var D=f(this)?this.valueOf():this,C=b.call(D);if(d(g,D))return"";var B=y?C.slice(7,-1):C.replace(w,"$1");return B===""?void 0:B}}),l({global:!0,forced:!0},{Symbol:m})}},e163:function(e,a,i){var l=i("5135"),c=i("7b0b"),u=i("f772"),d=i("e177"),f=u("IE_PROTO"),h=Object.prototype;e.exports=d?Object.getPrototypeOf:function(p){return p=c(p),l(p,f)?p[f]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?h:null}},e177:function(e,a,i){var l=i("d039");e.exports=!l(function(){function c(){}return c.prototype.constructor=null,Object.getPrototypeOf(new c)!==c.prototype})},e260:function(e,a,i){var l=i("fc6a"),c=i("44d2"),u=i("3f8c"),d=i("69f3"),f=i("7dd0"),h="Array Iterator",p=d.set,v=d.getterFor(h);e.exports=f(Array,"Array",function(g,m){p(this,{type:h,target:l(g),index:0,kind:m})},function(){var g=v(this),m=g.target,_=g.kind,b=g.index++;return!m||b>=m.length?(g.target=void 0,{value:void 0,done:!0}):_=="keys"?{value:b,done:!1}:_=="values"?{value:m[b],done:!1}:{value:[b,m[b]],done:!1}},"values"),u.Arguments=u.Array,c("keys"),c("values"),c("entries")},e439:function(e,a,i){var l=i("23e7"),c=i("d039"),u=i("fc6a"),d=i("06cf").f,f=i("83ab"),h=c(function(){d(1)}),p=!f||h;l({target:"Object",stat:!0,forced:p,sham:!f},{getOwnPropertyDescriptor:function(g,m){return d(u(g),m)}})},e538:function(e,a,i){var l=i("b622");a.f=l},e893:function(e,a,i){var l=i("5135"),c=i("56ef"),u=i("06cf"),d=i("9bf2");e.exports=function(f,h){for(var p=c(h),v=d.f,g=u.f,m=0;m<p.length;m++){var _=p[m];l(f,_)||v(f,_,g(h,_))}}},e8b5:function(e,a,i){var l=i("c6b6");e.exports=Array.isArray||function(u){return l(u)=="Array"}},e95a:function(e,a,i){var l=i("b622"),c=i("3f8c"),u=l("iterator"),d=Array.prototype;e.exports=function(f){return f!==void 0&&(c.Array===f||d[u]===f)}},f5df:function(e,a,i){var l=i("00ee"),c=i("c6b6"),u=i("b622"),d=u("toStringTag"),f=c(function(){return arguments}())=="Arguments",h=function(p,v){try{return p[v]}catch{}};e.exports=l?c:function(p){var v,g,m;return p===void 0?"Undefined":p===null?"Null":typeof(g=h(v=Object(p),d))=="string"?g:f?c(v):(m=c(v))=="Object"&&typeof v.callee=="function"?"Arguments":m}},f772:function(e,a,i){var l=i("5692"),c=i("90e3"),u=l("keys");e.exports=function(d){return u[d]||(u[d]=c(d))}},fb15:function(e,a,i){if(i.r(a),typeof window<"u"){var l=window.document.currentScript;{var c=i("8875");l=c(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:c})}var u=l&&l.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(i.p=u[1])}i("99af"),i("4de4"),i("4160"),i("c975"),i("d81d"),i("a434"),i("159b"),i("a4d3"),i("e439"),i("dbb4"),i("b64b");function d(V,F,G){return F in V?Object.defineProperty(V,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):V[F]=G,V}function f(V,F){var G=Object.keys(V);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(V);F&&(Z=Z.filter(function($){return Object.getOwnPropertyDescriptor(V,$).enumerable})),G.push.apply(G,Z)}return G}function h(V){for(var F=1;F<arguments.length;F++){var G=arguments[F]!=null?arguments[F]:{};F%2?f(Object(G),!0).forEach(function(Z){d(V,Z,G[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(G)):f(Object(G)).forEach(function(Z){Object.defineProperty(V,Z,Object.getOwnPropertyDescriptor(G,Z))})}return V}function p(V){if(Array.isArray(V))return V}i("e01a"),i("d28b"),i("e260"),i("d3b7"),i("3ca3"),i("ddb0");function v(V,F){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(V)))){var G=[],Z=!0,$=!1,ue=void 0;try{for(var ve=V[Symbol.iterator](),De;!(Z=(De=ve.next()).done)&&(G.push(De.value),!(F&&G.length===F));Z=!0);}catch(X){$=!0,ue=X}finally{try{!Z&&ve.return!=null&&ve.return()}finally{if($)throw ue}}return G}}i("a630"),i("fb6a"),i("b0c0"),i("25f0");function g(V,F){(F==null||F>V.length)&&(F=V.length);for(var G=0,Z=new Array(F);G<F;G++)Z[G]=V[G];return Z}function m(V,F){if(!!V){if(typeof V=="string")return g(V,F);var G=Object.prototype.toString.call(V).slice(8,-1);if(G==="Object"&&V.constructor&&(G=V.constructor.name),G==="Map"||G==="Set")return Array.from(V);if(G==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return g(V,F)}}function _(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
25
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(V,F){return p(V)||v(V,F)||m(V,F)||_()}function y(V){if(Array.isArray(V))return g(V)}function w(V){if(typeof Symbol<"u"&&Symbol.iterator in Object(V))return Array.from(V)}function S(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
26
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D(V){return y(V)||w(V)||m(V)||S()}var C=i("a352"),B=i.n(C);function A(V){V.parentElement!==null&&V.parentElement.removeChild(V)}function L(V,F,G){var Z=G===0?V.children[0]:V.children[G-1].nextSibling;V.insertBefore(F,Z)}var I=i("dbf1");i("13d5"),i("4fad"),i("ac1f"),i("5319");function E(V){var F=Object.create(null);return function(Z){var $=F[Z];return $||(F[Z]=V(Z))}}var x=/-(\w)/g,k=E(function(V){return V.replace(x,function(F,G){return G.toUpperCase()})});i("5db7"),i("73d9");var O=["Start","Add","Remove","Update","End"],P=["Choose","Unchoose","Sort","Filter","Clone"],R=["Move"],N=[R,O,P].flatMap(function(V){return V}).map(function(V){return"on".concat(V)}),H={manage:R,manageAndEmit:O,emit:P};function K(V){return N.indexOf(V)!==-1}i("caad"),i("2ca0");var U=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function le(V){return U.includes(V)}function ae(V){return["transition-group","TransitionGroup"].includes(V)}function q(V){return["id","class","role","style"].includes(V)||V.startsWith("data-")||V.startsWith("aria-")||V.startsWith("on")}function we(V){return V.reduce(function(F,G){var Z=b(G,2),$=Z[0],ue=Z[1];return F[$]=ue,F},{})}function de(V){var F=V.$attrs,G=V.componentData,Z=G===void 0?{}:G,$=we(Object.entries(F).filter(function(ue){var ve=b(ue,2),De=ve[0];return ve[1],q(De)}));return h(h({},$),Z)}function ze(V){var F=V.$attrs,G=V.callBackBuilder,Z=we(et(F));Object.entries(G).forEach(function(ue){var ve=b(ue,2),De=ve[0],X=ve[1];H[De].forEach(function(re){Z["on".concat(re)]=X(re)})});var $="[data-draggable]".concat(Z.draggable||"");return h(h({},Z),{},{draggable:$})}function et(V){return Object.entries(V).filter(function(F){var G=b(F,2),Z=G[0];return G[1],!q(Z)}).map(function(F){var G=b(F,2),Z=G[0],$=G[1];return[k(Z),$]}).filter(function(F){var G=b(F,2),Z=G[0];return G[1],!K(Z)})}i("c740");function at(V,F){if(!(V instanceof F))throw new TypeError("Cannot call a class as a function")}function Pt(V,F){for(var G=0;G<F.length;G++){var Z=F[G];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(V,Z.key,Z)}}function Rt(V,F,G){return F&&Pt(V.prototype,F),G&&Pt(V,G),V}var Je=function(F){var G=F.el;return G},ct=function(F,G){return F.__draggable_context=G},mt=function(F){return F.__draggable_context},tn=function(){function V(F){var G=F.nodes,Z=G.header,$=G.default,ue=G.footer,ve=F.root,De=F.realList;at(this,V),this.defaultNodes=$,this.children=[].concat(D(Z),D($),D(ue)),this.externalComponent=ve.externalComponent,this.rootTransition=ve.transition,this.tag=ve.tag,this.realList=De}return Rt(V,[{key:"render",value:function(G,Z){var $=this.tag,ue=this.children,ve=this._isRootComponent,De=ve?{default:function(){return ue}}:ue;return G($,Z,De)}},{key:"updated",value:function(){var G=this.defaultNodes,Z=this.realList;G.forEach(function($,ue){ct(Je($),{element:Z[ue],index:ue})})}},{key:"getUnderlyingVm",value:function(G){return mt(G)}},{key:"getVmIndexFromDomIndex",value:function(G,Z){var $=this.defaultNodes,ue=$.length,ve=Z.children,De=ve.item(G);if(De===null)return ue;var X=mt(De);if(X)return X.index;if(ue===0)return 0;var re=Je($[0]),Q=D(ve).findIndex(function(pe){return pe===re});return G<Q?0:ue}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),V}(),Vt=i("8bbf");function It(V,F){var G=V[F];return G?G():[]}function Mt(V){var F=V.$slots,G=V.realList,Z=V.getKey,$=G||[],ue=["header","footer"].map(function(pe){return It(F,pe)}),ve=b(ue,2),De=ve[0],X=ve[1],re=F.item;if(!re)throw new Error("draggable element must have an item slot");var Q=$.flatMap(function(pe,Ie){return re({element:pe,index:Ie}).map(function(We){return We.key=Z(pe),We.props=h(h({},We.props||{}),{},{"data-draggable":!0}),We})});if(Q.length!==$.length)throw new Error("Item slot must have only one child");return{header:De,footer:X,default:Q}}function Nt(V){var F=ae(V),G=!le(V)&&!F;return{transition:F,externalComponent:G,tag:G?Object(Vt.resolveComponent)(V):F?Vt.TransitionGroup:V}}function Ut(V){var F=V.$slots,G=V.tag,Z=V.realList,$=V.getKey,ue=Mt({$slots:F,realList:Z,getKey:$}),ve=Nt(G);return new tn({nodes:ue,root:ve,realList:Z})}function An(V,F){var G=this;Object(Vt.nextTick)(function(){return G.$emit(V.toLowerCase(),F)})}function ca(V){var F=this;return function(G,Z){if(F.realList!==null)return F["onDrag".concat(V)](G,Z)}}function j(V){var F=this,G=ca.call(this,V);return function(Z,$){G.call(F,Z,$),An.call(F,V,Z)}}var oe=null,Te={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(F){return F}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},ke=["update:modelValue","change"].concat(D([].concat(D(H.manageAndEmit),D(H.emit)).map(function(V){return V.toLowerCase()}))),M=Object(Vt.defineComponent)({name:"draggable",inheritAttrs:!1,props:Te,emits:ke,data:function(){return{error:!1}},render:function(){try{this.error=!1;var F=this.$slots,G=this.$attrs,Z=this.tag,$=this.componentData,ue=this.realList,ve=this.getKey,De=Ut({$slots:F,tag:Z,realList:ue,getKey:ve});this.componentStructure=De;var X=de({$attrs:G,componentData:$});return De.render(Vt.h,X)}catch(re){return this.error=!0,Object(Vt.h)("pre",{style:{color:"red"}},re.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&I.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var F=this;if(!this.error){var G=this.$attrs,Z=this.$el,$=this.componentStructure;$.updated();var ue=ze({$attrs:G,callBackBuilder:{manageAndEmit:function(X){return j.call(F,X)},emit:function(X){return An.bind(F,X)},manage:function(X){return ca.call(F,X)}}}),ve=Z.nodeType===1?Z:Z.parentElement;this._sortable=new B.a(ve,ue),this.targetDomElement=ve,ve.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var F=this.list;return F||this.modelValue},getKey:function(){var F=this.itemKey;return typeof F=="function"?F:function(G){return G[F]}}},watch:{$attrs:{handler:function(F){var G=this._sortable;!G||et(F).forEach(function(Z){var $=b(Z,2),ue=$[0],ve=$[1];G.option(ue,ve)})},deep:!0}},methods:{getUnderlyingVm:function(F){return this.componentStructure.getUnderlyingVm(F)||null},getUnderlyingPotencialDraggableComponent:function(F){return F.__draggable_component__},emitChanges:function(F){var G=this;Object(Vt.nextTick)(function(){return G.$emit("change",F)})},alterList:function(F){if(this.list){F(this.list);return}var G=D(this.modelValue);F(G),this.$emit("update:modelValue",G)},spliceList:function(){var F=arguments,G=function($){return $.splice.apply($,D(F))};this.alterList(G)},updatePosition:function(F,G){var Z=function(ue){return ue.splice(G,0,ue.splice(F,1)[0])};this.alterList(Z)},getRelatedContextFromMoveEvent:function(F){var G=F.to,Z=F.related,$=this.getUnderlyingPotencialDraggableComponent(G);if(!$)return{component:$};var ue=$.realList,ve={list:ue,component:$};if(G!==Z&&ue){var De=$.getUnderlyingVm(Z)||{};return h(h({},De),ve)}return ve},getVmIndexFromDomIndex:function(F){return this.componentStructure.getVmIndexFromDomIndex(F,this.targetDomElement)},onDragStart:function(F){this.context=this.getUnderlyingVm(F.item),F.item._underlying_vm_=this.clone(this.context.element),oe=F.item},onDragAdd:function(F){var G=F.item._underlying_vm_;if(G!==void 0){A(F.item);var Z=this.getVmIndexFromDomIndex(F.newIndex);this.spliceList(Z,0,G);var $={element:G,newIndex:Z};this.emitChanges({added:$})}},onDragRemove:function(F){if(L(this.$el,F.item,F.oldIndex),F.pullMode==="clone"){A(F.clone);return}var G=this.context,Z=G.index,$=G.element;this.spliceList(Z,1);var ue={element:$,oldIndex:Z};this.emitChanges({removed:ue})},onDragUpdate:function(F){A(F.item),L(F.from,F.item,F.oldIndex);var G=this.context.index,Z=this.getVmIndexFromDomIndex(F.newIndex);this.updatePosition(G,Z);var $={element:this.context.element,oldIndex:G,newIndex:Z};this.emitChanges({moved:$})},computeFutureIndex:function(F,G){if(!F.element)return 0;var Z=D(G.to.children).filter(function(De){return De.style.display!=="none"}),$=Z.indexOf(G.related),ue=F.component.getVmIndexFromDomIndex($),ve=Z.indexOf(oe)!==-1;return ve||!G.willInsertAfter?ue:ue+1},onDragMove:function(F,G){var Z=this.move,$=this.realList;if(!Z||!$)return!0;var ue=this.getRelatedContextFromMoveEvent(F),ve=this.computeFutureIndex(ue,F),De=h(h({},this.context),{},{futureIndex:ve}),X=h(h({},F),{},{relatedContext:ue,draggedContext:De});return Z(X,G)},onDragEnd:function(){oe=null}}}),te=M;a.default=te},fb6a:function(e,a,i){var l=i("23e7"),c=i("861d"),u=i("e8b5"),d=i("23cb"),f=i("50c4"),h=i("fc6a"),p=i("8418"),v=i("b622"),g=i("1dde"),m=i("ae40"),_=g("slice"),b=m("slice",{ACCESSORS:!0,0:0,1:2}),y=v("species"),w=[].slice,S=Math.max;l({target:"Array",proto:!0,forced:!_||!b},{slice:function(C,B){var A=h(this),L=f(A.length),I=d(C,L),E=d(B===void 0?L:B,L),x,k,O;if(u(A)&&(x=A.constructor,typeof x=="function"&&(x===Array||u(x.prototype))?x=void 0:c(x)&&(x=x[y],x===null&&(x=void 0)),x===Array||x===void 0))return w.call(A,I,E);for(k=new(x===void 0?Array:x)(S(E-I,0)),O=0;I<E;I++,O++)I in A&&p(k,O,A[I]);return k.length=O,k}})},fc6a:function(e,a,i){var l=i("44ad"),c=i("1d80");e.exports=function(u){return l(c(u))}},fdbc:function(e,a){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,a,i){var l=i("4930");e.exports=l&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(Zu);const C9=w2(Zu.exports),S9={key:0,class:"title"},k9=s.defineComponent({name:"ColumnSet",__name:"ColumnSet",props:{columns:{default:()=>[]},title:{default:""},name:{default:""},columnSetBind:{default:()=>({})}},emits:["columnSetting"],setup(o,{expose:r,emit:n}){const t=o,e=s.useAttrs(),a=s.computed(()=>{const h={btnTxt:"\u5217\u8BBE\u7F6E",title:"\u5217\u8BBE\u7F6E",...t.columnSetBind};return{size:"default",icon:"Setting",isShowTitle:!0,...e,...h}}),i=()=>{let h=localStorage.getItem(`pgz-comp-elep:TTable.columnSet-${t.name||t.title}`)||"[]",p=l(),v=JSON.parse(h)||[];return p.map(g=>{let m=v.find(_=>_.label===g.label&&_.prop===g.prop);g.hidden=m?m.hidden:!1}),h=JSON.stringify(v.length?v:p),h?JSON.parse(h):l()},l=()=>t.columns.map(h=>({label:h.label,prop:h.prop,checkBoxDisabled:!1,hidden:!1})),c=n,u=s.reactive({columnSet:[]});s.onMounted(()=>{u.columnSet=i(),c("columnSetting",u.columnSet)}),s.watch(()=>u.columnSet,h=>{c("columnSetting",h),localStorage.setItem(`pgz-comp-elep:TTable.columnSet-${t.name||t.title}`,JSON.stringify(h))},{deep:!0});const d=()=>{let h=localStorage.getItem(`pgz-comp-elep:TTable.columnSet-${t.name||t.title}`);u.columnSet=JSON.parse(h),c("columnSetting",u.columnSet)},f=(h,p)=>{u.columnSet[p].hidden=!h;let v={};u.columnSet.map(g=>{g.hidden in v||(v[g.hidden]=[]),v[g.hidden].push(g.hidden)}),v.false.length<2?u.columnSet.map((g,m)=>{g.hidden||(u.columnSet[m].checkBoxDisabled=!0)}):u.columnSet.map((g,m)=>{g.hidden||(u.columnSet[m].checkBoxDisabled=!1)})};return r({reSetColumnSet:d}),(h,p)=>{const v=s.resolveComponent("el-button"),g=s.resolveComponent("el-checkbox"),m=s.resolveComponent("el-dropdown-item"),_=s.resolveComponent("el-dropdown-menu"),b=s.resolveComponent("el-dropdown");return s.openBlock(),s.createBlock(b,{trigger:"click","popper-class":"column_set"},{dropdown:s.withCtx(()=>[a.value.isShowTitle?(s.openBlock(),s.createElementBlock("div",S9,s.toDisplayString(a.value.title||"\u5217\u8BBE\u7F6E"),1)):s.createCommentVNode("",!0),s.createVNode(_,null,{default:s.withCtx(()=>[s.createVNode(m,{divided:a.value.isShowTitle},{default:s.withCtx(()=>[s.createVNode(s.unref(C9),{class:"t_table_column_setting_dropdown",modelValue:u.columnSet,"onUpdate:modelValue":p[1]||(p[1]=y=>u.columnSet=y),"item-key":"prop"},{item:s.withCtx(({element:y,index:w})=>[s.createVNode(g,{checked:!y.hidden,onClick:p[0]||(p[0]=s.withModifiers(()=>{},["stop"])),disabled:y.checkBoxDisabled,onChange:S=>f(S,w)},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(y.label),1)]),_:2},1032,["checked","disabled","onChange"])]),_:1},8,["modelValue"])]),_:1},8,["divided"])]),_:1})]),default:s.withCtx(()=>[s.createVNode(v,s.normalizeProps(s.guardReactiveProps(a.value)),{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(a.value.btnTxt||"\u5217\u8BBE\u7F6E"),1)]),_:1},16)]),_:1})}}}),ik="",T9={key:1},x9={class:"more_dropdown-link"},B9={key:1},A9=s.defineComponent({name:"Operator",__name:"operator",props:{tableData:{type:Array,default:()=>[]},table:{type:Object,default:()=>{}},btnPermissions:{type:Array,default:()=>[]},align:{type:String,default:"center"}},setup(o){const r=o,n=(i,l)=>{var p;let c=!1;if(l.noshow){let v=JSON.parse(JSON.stringify(l.noshow));v.map(g=>{g.isShow=typeof g.val=="string"?g.val==="isHasVal"?i.row[g.key]?"true":"false":"true":g.val.includes(i.row[g.key])?"false":"true"}),c=v.every(g=>g.isShow==="true")}else c=!0;let u=!l.show||l.show.val.includes(i.row[l.show.key]),d=l.hasPermi?(p=r.btnPermissions)==null?void 0:p.includes(l.hasPermi):!0,f=Object.values(i.row).every(v=>v!=="\u5F53\u9875\u5408\u8BA1"),h=Object.values(i.row).every(v=>v!=="\u5168\u90E8\u5408\u8BA1");return u&&c&&!i.row[l.field]&&(l.isField?i.row[l.isField]:!0)&&f&&h&&d},t=s.useAttrs(),e=s.computed(()=>{const c={btnTxt:"\u66F4\u591A",isShowArrwIcon:!0,...{},...{type:"primary",link:!0,text:!0,size:"small"},...r.table.operatorConfig.dropdownBind};return{...t,...c}}),a=()=>r.table.operator.some(i=>i.isMore===!0);return(i,l)=>{var v,g,m,_,b,y;const c=s.resolveComponent("el-button"),u=s.resolveComponent("el-icon"),d=s.resolveComponent("el-dropdown-item"),f=s.resolveComponent("el-dropdown-menu"),h=s.resolveComponent("el-dropdown"),p=s.resolveComponent("el-table-column");return o.table.operator?(s.openBlock(),s.createBlock(p,s.mergeProps({key:0},{fixed:(v=o.table.operatorConfig)==null?void 0:v.fixed,label:((g=o.table.operatorConfig)==null?void 0:g.label)||"\u64CD\u4F5C","min-width":(m=o.table.operatorConfig)==null?void 0:m.minWidth,width:(_=o.table.operatorConfig)==null?void 0:_.width,align:((b=o.table.operatorConfig)==null?void 0:b.align)||o.align,...(y=o.table.operatorConfig)==null?void 0:y.bind},{"class-name":"operator"}),{default:s.withCtx(w=>{var S;return[s.createElementVNode("div",{class:"operator_btn",style:s.normalizeStyle((S=o.table.operatorConfig)==null?void 0:S.style)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.table.operator,(D,C)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[D.isMore?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[n(w,D)?(s.openBlock(),s.createBlock(c,s.mergeProps({key:C,onClick:B=>D.fun&&D.fun(w.row,w.$index,o.tableData),ref_for:!0},{type:"primary",link:!0,text:!0,size:"small",...D.bind},{disabled:D.isDisabled&&D.isDisabled(w.row,D)}),{default:s.withCtx(()=>[D.render?(s.openBlock(),s.createBlock(Gr,{key:0,column:D,row:w.row,render:D.render,index:w.$index},null,8,["column","row","render","index"])):s.createCommentVNode("",!0),D.render?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",T9,s.toDisplayString(D.text),1))]),_:2},1040,["onClick","disabled"])):s.createCommentVNode("",!0)],64))],64))),256)),a()?(s.openBlock(),s.createBlock(h,s.mergeProps({key:0},e.value,{class:"oper_more_dropdown"}),{dropdown:s.withCtx(()=>[s.createVNode(f,s.mergeProps(e.value.menuBind,{class:"oper_more_dropdown_menu"}),{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.table.operator,(D,C)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[D.isMore?(s.openBlock(),s.createBlock(d,s.mergeProps({onClick:B=>D.fun&&D.fun(w.row,w.$index,o.tableData),key:"more_"+C,ref_for:!0},{disabled:D.isDisabled&&D.isDisabled(w.row,D),...D.itemBind}),{default:s.withCtx(()=>[n(w,D)?(s.openBlock(),s.createBlock(c,s.mergeProps({key:C,ref_for:!0},{link:!0,text:!0,size:"small",...D.bind}),{default:s.withCtx(()=>[D.render?(s.openBlock(),s.createBlock(Gr,{key:0,column:D,row:w.row,render:D.render,index:w.$index},null,8,["column","row","render","index"])):s.createCommentVNode("",!0),D.render?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",B9,s.toDisplayString(D.text),1))]),_:2},1040)):s.createCommentVNode("",!0)]),_:2},1040,["onClick"])):s.createCommentVNode("",!0)],64))),256))]),_:2},1040)]),default:s.withCtx(()=>[s.createElementVNode("span",x9,[s.createVNode(c,s.normalizeProps(s.guardReactiveProps({type:"primary",link:!0,text:!0,size:"small",...e.value.btnBind})),{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(e.value.btnTxt||"\u66F4\u591A")+" ",1),e.value.isShowArrwIcon?(s.openBlock(),s.createBlock(u,{key:0},{default:s.withCtx(()=>[s.createVNode(s.unref(Br))]),_:1})):s.createCommentVNode("",!0)]),_:1},16)])]),_:2},1040)):s.createCommentVNode("",!0)],4)]}),_:1},16)):s.createCommentVNode("",!0)}}}),sk="",lk="",D9=Ot(A9,[["__scopeId","data-v-0ff3e37b"]]);function P9(){const o=s.ref(null),r=s.ref(null),n=s.ref(null),t=s.ref([]),e={},a=()=>{o.value=document.querySelector(".t_table_use_virtual .el-scrollbar__view"),r.value=document.querySelector(".t_table_use_virtual .el-table__body"),n.value=document.querySelector(".t_table_use_virtual .el-scrollbar__wrap")},i=d=>{const f=e[d];return f===void 0?50:f},l=()=>{let d=0;t.value.forEach((f,h)=>{d+=i(h)}),o.value.style.height=d+"px"};return{scrollContainerEl:n,updateRenderedItemCache:d=>{Object.keys(e).length<t.value.length&&s.nextTick(()=>{Array.from(document.querySelectorAll(".t_table_use_virtual .el-table__row")).forEach(p=>{e[d]||(e[d]=p.offsetHeight),d++}),l()})},updateOffset:d=>{r.value&&r.value.style&&(r.value.style.transform=`translateY(${d}px)`)},getDom:a,getItemHeightFromCache:i,saveDATA:t}}function O9(){const o=s.ref(null);return{TTable:o,clearSelection:()=>o.value.clearSelection(),getSelectionRows:()=>o.value.getSelectionRows(),toggleRowSelection:(v,g=!1)=>o.value.toggleRowSelection(v,g),toggleAllSelection:()=>o.value.toggleAllSelection(),toggleRowExpansion:(v,g)=>o.value.toggleRowExpansion(v,g),setCurrentRow:v=>o.value.setCurrentRow(v),clearSort:()=>o.value.clearSort(),clearFilter:v=>o.value.clearFilter(v),doLayout:v=>o.value.doLayout(v),sort:(v,g)=>o.value.sort(v,g),scrollTo:(v,g)=>o.value.scrollTo(v,g),setScrollTop:v=>o.value.setScrollTop(v),setScrollLeft:v=>o.value.setScrollLeft(v)}}const L9={table:{type:Object,default:()=>({}),required:!0},columns:{type:Array,default:()=>[]},btnPermissions:{type:Array,default:()=>[]},title:{type:String},tableTitle:String,align:{type:String,default:"center"},isTree:{type:Boolean,default:!1},isRowSort:{type:Boolean,default:!1},isRowSortIcon:{type:Boolean,default:!1},rowSortIconBind:{type:Object,default:()=>({})},isCopy:{type:Boolean,default:!1},rowClickRadio:{type:Boolean,default:!0},defaultRadioCol:Number,isPaginationCumulative:{type:Boolean,default:!1},isShowPagination:{type:Boolean,default:!0},isShowFooterBtn:{type:Boolean,default:!1},columnSetting:{type:Boolean,default:!1},highlightCurrentRow:{type:Boolean,default:!1},sortable:{type:[Boolean,String]},isKeyup:{type:Boolean,default:!1},isSlotToolbar:Boolean,isSlotTitle:Boolean,border:{type:Boolean,default:!1},tableLoading:{type:Boolean,default:!1},loadingTxt:{type:String,default:"\u52A0\u8F7D\u4E2D..."},useVirtual:Boolean,virtualShowSize:{type:Number,default:30},footerBtnAlign:{type:String,default:"right"}},I9=["element-loading-text"],M9={key:0,class:"header_title"},N9={key:0},R9={key:1},V9={class:"toolbar_top"},F9={key:0,class:"title-tip"},H9={key:0},z9={key:1},U9={key:0},j9={key:1},G9={key:1,style:{display:"inline"}},W9={key:5},K9={key:0},Y9=s.defineComponent({name:"TTable",__name:"index",props:L9,emits:["save","page-change","handleEvent","radioChange","rowSort","validateError"],setup(o,{expose:r,emit:n}){const{scrollContainerEl:t,updateRenderedItemCache:e,updateOffset:a,getDom:i,saveDATA:l,getItemHeightFromCache:c}=P9(),{TTable:u,clearSelection:d,getSelectionRows:f,toggleRowSelection:h,toggleAllSelection:p,toggleRowExpansion:v,setCurrentRow:g,clearSort:m,clearFilter:_,doLayout:b,sort:y,scrollTo:w,setScrollTop:S,setScrollLeft:D}=O9(),C=o;let B=s.reactive({tableData:C.table.data,columnSet:[],copyTableData:[]});const A=s.ref(""),L=s.ref(!0),I=s.ref(null),E=s.ref(null),x=s.ref({}),k=(M,te,V)=>{M&&(x.value[`formRef-${te.$index}-${V.prop||te.column.property}`]=M)},O=s.ref({}),P=(M,te,V)=>{M&&(O.value[`singleEditRef-${te.$index}-${V.prop||te.column.property}`]=M)},R=n,N=s.useSlots();s.watch(()=>C.table.data,M=>{C.useVirtual?(l.value=M,H(0)):B.tableData=M},{deep:!0}),s.watch(()=>C.isRowSort,M=>{M&&le()}),s.onMounted(()=>{var M;C.defaultRadioCol&&U(C.defaultRadioCol),le(),C.useVirtual&&(l.value=C.table.data,i(),(M=t.value)==null||M.addEventListener("scroll",K))});const H=M=>{let te=0,V=0;for(let F=0;F<l.value.length;F++)if(V+=c(F),V>=M){te=F;break}B.tableData=l.value.slice(te,te+C.virtualShowSize),e(te),a(V-c(te))},K=M=>{H(M.target.scrollTop)};s.onBeforeUnmount(()=>{var M;C.useVirtual&&((M=t.value)==null||M.removeEventListener("scroll",K))}),s.onUpdated(()=>{u.value.doLayout()});const U=M=>{A.value=M,R("radioChange",B.tableData[M-1],A.value)},le=()=>{var V;if(!C.isRowSort)return;const M=(V=I.value)==null?void 0:V.querySelector(".el-table__body-wrapper tbody"),te=C.isRowSortIcon?".row_drag":".el-table__row";Se.create(M,{animation:150,handle:te,onEnd:F=>{const G=B.tableData.splice(F.oldIndex,1)[0];B.tableData.splice(F.newIndex,0,G),R("rowSort",B.tableData)}})},ae=(M,te,V,F)=>{const G=te.find(Z=>Z[V]===M);return G&&G[F]},q=s.computed(()=>Array.isArray(C.table.firstColumn)?C.table.firstColumn.some(M=>M.type==="radio"):C.table.firstColumn&&C.table.firstColumn.type==="radio"),we=s.computed(()=>C.table.rules&&Object.keys(C.table.rules).length>0||C.columns.some(M=>{var te;return(te=M==null?void 0:M.configEdit)==null?void 0:te.rules})),de=s.computed(()=>{if(B.columnSet.length===0)return C.columns;const M=C.columns.reduce((te,V)=>(te[V.prop]=V,te),{});return B.columnSet.filter(te=>!te.hidden).map(te=>M[te.prop])}),ze=s.computed(()=>de.value.some(M=>M.children)),et=s.computed(()=>C.columns.some(M=>M.children)),at=(M,te,V)=>{if(!C.isKeyup)return;const F=JSON.parse(JSON.stringify(B.tableData)),G=document.getElementsByClassName(V),Z=$=>{var ve,De;const ue=((ve=G[$])==null?void 0:ve.getElementsByTagName("input")[0])||((De=G[$])==null?void 0:De.getElementsByTagName("textarea")[0]);ue&&ue.focus()};switch(M.keyCode){case 38:te||(te=F.length),Z(te-1);break;case 40:te===F.length-1&&(te=-1),Z(te+1);break;case 13:let $=C.columns.map(De=>De.prop),ue=$.indexOf(V);ue===-1?ue=0:ue===$.length-1?te===B.copyTableData.length-1?te=0:++te:++ue;let ve=document.getElementsByClassName($[ue]);ve.length&&(ve[te].getElementsByTagName("input")[0]||ve[te].getElementsByTagName("textarea")[0]).focus();break}},Pt=()=>{L.value=!1,setTimeout(()=>{L.value=!0},0)},Rt=(M,te)=>{L.value=!L.value,A.value===te?A.value=null:A.value=te,Pt(),R("radioChange",A.value?M:null,A.value)},Je=(M,te)=>{M!=null&&M.isRadioDisabled||C.rowClickRadio||Rt(M,te)},ct=M=>{M.isRadioDisabled||!C.rowClickRadio||Rt(M,B.tableData.indexOf(M)+1)},mt=()=>{A.value=null,u.value.setCurrentRow(-1)},tn=async M=>{if(typeof M!="string"||M.trim()==="")throw new Error("\u65E0\u6548\u7684\u590D\u5236\u5185\u5BB9");try{await navigator.clipboard.writeText(M)}catch(te){throw te.name==="NotAllowedError"||te.name==="SecurityError"?new Error("\u590D\u5236\u5931\u8D25\uFF1A\u6743\u9650\u88AB\u62D2\u7EDD"):new Error("\u590D\u5236\u5931\u8D25\uFF1A\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u6216\u53D1\u751F\u672A\u77E5\u9519\u8BEF")}},Vt=(M,te)=>{M==="success"?_t.ElMessage.success(te):_t.ElMessage.error(te)},It=async(M,te)=>{if(!C.isCopy)return!1;const V=M[te.property];try{await tn(String(V)),Vt("success","\u590D\u5236\u6210\u529F")}catch(F){Vt("error",F.message||"\u590D\u5236\u5931\u8D25")}},Mt=M=>Object.keys(N).includes(M),Nt=()=>new Promise(M=>{var X;if(!we.value){R("save",B.tableData),M(B.tableData);return}let te=0,V=[],F=[],G=[],Z=[];const $=Object.keys(x.value).filter(re=>re.includes("formRef")),ue=de.value.filter(re=>{var Q;if((Q=re.configEdit)!=null&&Q.rules)return re}).map(re=>re.prop),ve=(X=C.table.rules&&Object.keys(C.table.rules))!=null?X:[],De=[...ue,...ve];De.map(re=>{$.map(Q=>{typeof Q=="string"&&Q.includes(re)&&V.push(Q)})}),V.map(re=>{x.value[re].validate(Q=>{Q?te=te+1:F.push(re)})}),setTimeout(()=>{te==V.length?we.value&&(R("save",B.tableData),M(B.tableData)):(F.map(re=>{De.map(Q=>{typeof re=="string"&&re.includes(Q)&&G.push(Q)})}),Array.from(new Set(G)).map(re=>{de.value.map(Q=>{re===Q.prop&&Z.push(Q.label)})}),console.log("\u6821\u9A8C\u672A\u901A\u8FC7\u7684prop--label",Z),R("validateError",Z))},300)}),Ut=({type:M,val:te},V)=>{R("handleEvent",M,te,V)},An=M=>{R("page-change",M)};return r({defaultRadioSelect:U,clearSelection:d,getSelectionRows:f,toggleRowSelection:h,toggleAllSelection:p,toggleRowExpansion:v,setCurrentRow:g,clearSort:m,clearFilter:_,doLayout:b,sort:y,scrollTo:w,setScrollTop:S,setScrollLeft:D,state:B,radioVal:A,clearValidate:()=>{const M=Object.keys(x.value).filter(te=>te.includes("formRef"));M.length>0&&M.map(te=>{x.value[te].clearValidate()})},resetFields:()=>{const M=Object.keys(x.value).filter(V=>V.includes("formRef"));M.length>0&&M.map(V=>{x.value[V].resetFields()});const te=Object.keys(O.value).filter(V=>V.includes("singleEditRef"));te.length>0&&te.map(V=>{O.value[V].resetTselectTableFields()})},save:Nt,saveMethod:M=>{var X;if(!we.value){M&&M(B.tableData);return}let te=0,V=[],F=[],G=[],Z=[];const $=Object.keys(x.value).filter(re=>re.includes("formRef")),ue=de.value.filter(re=>{var Q;if((Q=re.configEdit)!=null&&Q.rules)return re}).map(re=>re.prop),ve=(X=C.table.rules&&Object.keys(C.table.rules))!=null?X:[],De=[...ue,...ve];De.map(re=>{$.map(Q=>{Q.includes(re)&&V.push(Q)})}),V.map(re=>{x.value[re].validate(Q=>{Q?te=te+1:F.push(re)})}),setTimeout(()=>{te==V.length?we.value&&M&&M(B.tableData):(F.map(re=>{De.map(Q=>{re.includes(Q)&&G.push(Q)})}),Array.from(new Set(G)).map(re=>{de.value.map(Q=>{re===Q.prop&&Z.push(Q.label)})}),console.log("\u6821\u9A8C\u672A\u901A\u8FC7\u7684prop--label",Z),R("validateError",Z))},300)},reSetColumnSet:()=>{var M;return(M=E.value)==null?void 0:M.reSetColumnSet()},clearRadioHandle:mt,resetTselectTable:()=>{const M=Object.keys(O.value).filter(te=>te.includes("singleEditRef"));M.length>0&&M.map(te=>{O.value[te].resetTselectTableFields()})}}),(M,te)=>{const V=s.resolveComponent("el-icon"),F=s.resolveComponent("el-table-column"),G=s.resolveComponent("el-radio"),Z=s.resolveComponent("el-form"),$=s.resolveComponent("el-table"),ue=s.resolveComponent("el-pagination"),ve=s.resolveComponent("el-button"),De=s.resolveDirective("loading");return s.withDirectives((s.openBlock(),s.createElementBlock("div",{class:"t-table",ref_key:"TTableBox",ref:I,"element-loading-text":M.loadingTxt},[s.createElementVNode("div",{class:"header_wrap",style:s.normalizeStyle({paddingBottom:M.tableTitle||M.title||Mt("title")||Mt("toolbar")||M.isSlotToolbar||M.columnSetting?"10px":0})},[M.tableTitle||M.title||M.$slots.title||M.isSlotTitle?(s.openBlock(),s.createElementBlock("div",M9,[M.$slots.title||M.isSlotTitle?s.renderSlot(M.$slots,"title",{key:0},void 0,!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[M.tableTitle?(s.openBlock(),s.createElementBlock("span",N9,s.toDisplayString(M.tableTitle),1)):(s.openBlock(),s.createElementBlock("span",R9,s.toDisplayString(M.title),1))],64))])):s.createCommentVNode("",!0),s.createElementVNode("div",V9,[s.renderSlot(M.$slots,"toolbar",{},void 0,!0),s.createElementVNode("div",{class:"header_right_wrap",style:s.normalizeStyle({marginLeft:Mt("toolbar")||M.isSlotToolbar?"12px":0})},[s.renderSlot(M.$slots,"btn",{},void 0,!0),M.columnSetting&&!ze.value?(s.openBlock(),s.createBlock(k9,s.mergeProps({key:0},M.$attrs,{title:M.title||M.tableTitle,columns:de.value,ref_key:"columnSetRef",ref:E,onColumnSetting:te[0]||(te[0]=X=>s.unref(B).columnSet=X)}),null,16,["title","columns"])):s.createCommentVNode("",!0)],4)])],4),Mt("titleTip")?(s.openBlock(),s.createElementBlock("div",F9,[s.renderSlot(M.$slots,"titleTip",{},void 0,!0)])):s.createCommentVNode("",!0),s.createVNode($,s.mergeProps({ref_key:"TTable",ref:u,data:s.unref(B).tableData,class:{cursor:M.isCopy,row_sort:M.isRowSort,row_sort_none:M.isRowSortIcon,tree_style:M.isTree,highlightCurrentRow:M.highlightCurrentRow,radioStyle:q.value,multile_head_column:ze.value,t_table_use_virtual:M.useVirtual}},M.$attrs,{"highlight-current-row":M.highlightCurrentRow,border:M.border||M.table.border||et.value||M.useVirtual,onCellDblclick:It,onRowClick:ct}),s.createSlots({default:s.withCtx(()=>[M.isRowSortIcon?(s.openBlock(),s.createBlock(F,s.normalizeProps(s.mergeProps({key:0},{width:M.rowSortIconBind.width||55,"min-width":M.rowSortIconBind["min-width"]||M.rowSortIconBind.minWidth,label:M.rowSortIconBind.label||"\u62D6\u52A8",fixed:M.rowSortIconBind.fixed,align:M.rowSortIconBind.align||M.align,...M.rowSortIconBind})),{default:s.withCtx(()=>[s.createVNode(V,{class:"row_drag",color:M.rowSortIconBind.color,size:M.rowSortIconBind.size},{default:s.withCtx(()=>[s.createVNode(s.unref(_u))]),_:1},8,["color","size"])]),_:1},16)):s.createCommentVNode("",!0),!Array.isArray(M.table.firstColumn)&&M.table.firstColumn?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[M.table.firstColumn.type==="selection"?(s.openBlock(),s.createBlock(F,s.normalizeProps(s.mergeProps({key:0},{type:"selection",width:M.table.firstColumn.width||55,label:M.table.firstColumn.label,fixed:M.table.firstColumn.fixed,align:M.table.firstColumn.align||M.align,"reserve-selection":M.table.firstColumn.isPaging||!1,selectable:M.table.firstColumn.selectable,...M.table.firstColumn.bind})),null,16)):(s.openBlock(),s.createBlock(F,s.normalizeProps(s.mergeProps({key:1},{type:M.table.firstColumn.type,width:M.table.firstColumn.width||55,label:M.table.firstColumn.label||M.table.firstColumn.type==="radio"&&"\u5355\u9009"||M.table.firstColumn.type==="index"&&"\u5E8F\u53F7"||M.table.firstColumn.type==="expand"&&""||"",fixed:M.table.firstColumn.fixed,align:M.table.firstColumn.align||M.align,...M.table.firstColumn.bind})),s.createSlots({_:2},[M.table.firstColumn.type!=="selection"?{name:"default",fn:s.withCtx(X=>[M.table.firstColumn.type==="radio"?(s.openBlock(),s.createBlock(G,{key:0,modelValue:A.value,"onUpdate:modelValue":te[1]||(te[1]=re=>A.value=re),label:X.$index+1,disabled:X.row.isRadioDisabled,onClick:re=>Je(X.row,X.$index+1)},null,8,["modelValue","label","disabled","onClick"])):s.createCommentVNode("",!0),M.table.firstColumn.type==="index"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[M.isPaginationCumulative&&M.isShowPagination?(s.openBlock(),s.createElementBlock("span",H9,s.toDisplayString((M.table.currentPage-1)*M.table.pageSize+X.$index+1),1)):(s.openBlock(),s.createElementBlock("span",z9,s.toDisplayString(X.$index+1),1))],64)):s.createCommentVNode("",!0),M.table.firstColumn.type==="expand"?s.renderSlot(M.$slots,"expand",{key:2,scope:X},void 0,!0):s.createCommentVNode("",!0)]),key:"0"}:void 0]),1040))],64)):s.createCommentVNode("",!0),Array.isArray(M.table.firstColumn)?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:2},s.renderList(M.table.firstColumn,(X,re)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[X.type==="selection"?(s.openBlock(),s.createBlock(F,s.mergeProps({key:re+1,ref_for:!0},{type:"selection",width:X.width||55,label:X.label,fixed:X.fixed,align:X.align||M.align,"reserve-selection":X.isPaging||!1,selectable:X.selectable,...X.bind}),null,16)):(s.openBlock(),s.createBlock(F,s.mergeProps({key:re+"k",ref_for:!0},{type:X.type,width:X.width||55,label:X.label||X.type==="radio"&&"\u5355\u9009"||X.type==="index"&&"\u5E8F\u53F7"||X.type==="expand"&&""||"",fixed:X.fixed,align:X.align||M.align,...X.bind}),s.createSlots({_:2},[X.type!=="selection"?{name:"default",fn:s.withCtx(Q=>[X.type==="radio"?(s.openBlock(),s.createBlock(G,{key:0,modelValue:A.value,"onUpdate:modelValue":te[2]||(te[2]=pe=>A.value=pe),label:Q.$index+1,disabled:Q.row.isRadioDisabled,onClick:pe=>Je(Q.row,Q.$index+1)},null,8,["modelValue","label","disabled","onClick"])):s.createCommentVNode("",!0),X.type==="index"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[M.isPaginationCumulative&&M.isShowPagination?(s.openBlock(),s.createElementBlock("span",U9,s.toDisplayString((M.table.currentPage-1)*M.table.pageSize+Q.$index+1),1)):(s.openBlock(),s.createElementBlock("span",j9,s.toDisplayString(Q.$index+1),1))],64)):s.createCommentVNode("",!0),X.type==="expand"?s.renderSlot(M.$slots,"expand",{key:2,scope:Q},void 0,!0):s.createCommentVNode("",!0)]),key:"0"}:void 0]),1040))],64))),256)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(de.value,(X,re)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[X.children?(s.openBlock(),s.createBlock(L5,s.mergeProps({key:re+"m",item:X,align:M.align,ref_for:!0},M.$attrs,{sortable:M.sortable}),s.createSlots({_:2},[s.renderList(s.unref(N),(Q,pe)=>({name:pe,fn:s.withCtx(Ie=>[s.renderSlot(M.$slots,pe,s.mergeProps({ref_for:!0},Ie),void 0,!0)])}))]),1040,["item","align","sortable"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[(typeof X.isShowCol=="function"?X.isShowCol(X):!X.isShowCol)?(s.openBlock(),s.createBlock(F,s.mergeProps({key:re+"i",type:X.type,label:X.label,prop:X.prop,"min-width":X["min-width"]||X.minWidth,width:X.width,sortable:X.sortable||X.sort||M.sortable,align:X.align||M.align,fixed:X.fixed,formatter:X.formatter,ref_for:!0},typeof X.bind=="function"?X.bind(X):{"show-overflow-tooltip":!0,...X.bind}),s.createSlots({default:s.withCtx(Q=>[X.render?(s.openBlock(),s.createBlock(Gr,{key:0,column:X,row:Q.row,render:X.render,index:Q.$index},null,8,["column","row","render","index"])):s.createCommentVNode("",!0),X.slotName?s.renderSlot(M.$slots,X.slotName,{key:1,scope:Q},void 0,!0):s.createCommentVNode("",!0),X.canEdit?(s.openBlock(),s.createBlock(Z,{key:2,model:s.unref(B).tableData[Q.$index],rules:we.value?M.table.rules:{},class:s.normalizeClass(["t_edit_cell_form",{t_edit_cell_form_rules:we.value}]),ref_for:!0,ref:pe=>k(pe,Q,X),onSubmit:te[3]||(te[3]=s.withModifiers(()=>{},["prevent"]))},{default:s.withCtx(()=>[s.createVNode(Qu,s.mergeProps({configEdit:X.configEdit,modelValue:Q.row[X.prop],"onUpdate:modelValue":pe=>Q.row[X.prop]=pe,prop:X.prop,scope:Q,indexColumns:re,ref_for:!0,ref:pe=>P(pe,Q,X),onHandleEvent:pe=>Ut(pe,Q.$index),onKeyupHandle:at},M.$attrs),s.createSlots({_:2},[s.renderList(s.unref(N),(pe,Ie)=>({name:Ie,fn:s.withCtx(We=>[s.renderSlot(M.$slots,Ie,s.mergeProps({ref_for:!0},We),void 0,!0)])}))]),1040,["configEdit","modelValue","onUpdate:modelValue","prop","scope","indexColumns","onHandleEvent"])]),_:2},1032,["model","rules","class"])):s.createCommentVNode("",!0),X.isClickEdit?(s.openBlock(),s.createBlock(H5,s.mergeProps({key:3,isClickEdit:X.isClickEdit,configEdit:X.configEdit,modelValue:Q.row[Q.column.property],"onUpdate:modelValue":pe=>Q.row[Q.column.property]=pe,ref_for:!0},M.$attrs,{ref_for:!0,ref:"editClickCell"}),s.createSlots({_:2},[s.renderList(s.unref(N),(pe,Ie)=>({name:Ie,fn:s.withCtx(We=>[s.renderSlot(M.$slots,Ie,s.mergeProps({ref_for:!0},We),void 0,!0)])}))]),1040,["isClickEdit","configEdit","modelValue","onUpdate:modelValue"])):s.createCommentVNode("",!0),X.filters&&X.filters.list?(s.openBlock(),s.createElementBlock(s.Fragment,{key:4},[s.createTextVNode(s.toDisplayString(ae(Q.row[X.prop],M.table.listTypeInfo[X.filters.list],X.filters.key||"value",X.filters.label||"label")),1)],64)):s.createCommentVNode("",!0),!X.render&&!X.slotName&&!X.canEdit&&!X.filters&&!X.isClickEdit&&!X.formatter?(s.openBlock(),s.createElementBlock("div",W9,[s.createElementVNode("span",null,s.toDisplayString(Q.row[X.prop]),1)])):s.createCommentVNode("",!0)]),_:2},[X.headerRequired||X.renderHeader||X.isClickEdit?{name:"header",fn:s.withCtx(()=>[X.renderHeader?(s.openBlock(),s.createBlock(Os,{key:0,column:X,render:X.renderHeader},null,8,["column","render"])):s.createCommentVNode("",!0),X.headerRequired?(s.openBlock(),s.createElementBlock("div",G9,[te[6]||(te[6]=s.createElementVNode("span",{style:{color:"#f56c6c","font-size":"16px","margin-right":"3px"}},"*",-1)),s.createElementVNode("span",null,s.toDisplayString(X.label),1)])):s.createCommentVNode("",!0),X.isClickEdit?(s.openBlock(),s.createElementBlock("div",{key:2,class:"click_edit",style:s.normalizeStyle({justifyContent:X.editIconAlign||M.align||"center"})},[s.createElementVNode("span",null,s.toDisplayString(X.label),1),X.isShowEditIcon?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(V,s.mergeProps({key:0,ref_for:!0},{size:14,...X.editIconBind}),{default:s.withCtx(()=>[s.createVNode(s.unref(gu))]),_:2},1040))],4)):s.createCommentVNode("",!0)]),key:"0"}:void 0]),1040,["type","label","prop","min-width","width","sortable","align","fixed","formatter"])):s.createCommentVNode("",!0)],64))],64))),256)),s.renderSlot(M.$slots,"default",{},void 0,!0),s.createVNode(D9,{table:M.table,btnPermissions:M.btnPermissions,tableData:s.unref(B).tableData,align:M.align},null,8,["table","btnPermissions","tableData","align"])]),_:2},[s.renderList(s.unref(N),(X,re)=>({name:re,fn:s.withCtx(Q=>[s.renderSlot(M.$slots,re,s.normalizeProps(s.guardReactiveProps(Q)),void 0,!0)])}))]),1040,["data","class","highlight-current-row","border"]),s.unref(B).tableData&&s.unref(B).tableData.length&&M.isShowPagination?(s.openBlock(),s.createBlock(ue,s.mergeProps({key:1,"current-page":M.table.currentPage,"onUpdate:currentPage":te[4]||(te[4]=X=>M.table.currentPage=X),onCurrentChange:An,"page-sizes":M.table.pageSizes||[10,20,50,100],"page-size":M.table.pageSize,"onUpdate:pageSize":te[5]||(te[5]=X=>M.table.pageSize=X),layout:M.table.layout||"total,sizes, prev, pager, next, jumper","prev-text":M.table.prevText,"next-text":M.table.nextText,total:M.table.total||0,size:M.table.size||"small"},M.$attrs,{background:""}),{default:s.withCtx(()=>[s.renderSlot(M.$slots,"pagination",{},void 0,!0)]),_:3},16,["current-page","page-sizes","page-size","layout","prev-text","next-text","total","size"])):s.createCommentVNode("",!0),M.isShowFooterBtn&&s.unref(B).tableData&&s.unref(B).tableData.length>0?(s.openBlock(),s.createElementBlock("footer",{key:2,class:"handle_wrap",style:s.normalizeStyle({textAlign:M.footerBtnAlign})},[s.renderSlot(M.$slots,"footer",{},void 0,!0),s.unref(N).footer?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",K9,[s.createVNode(ve,{type:"primary",onClick:Nt},{default:s.withCtx(()=>te[7]||(te[7]=[s.createTextVNode("\u4FDD\u5B58")])),_:1})]))],4)):s.createCommentVNode("",!0)],8,I9)),[[De,M.tableLoading]])}}}),ck="",uk="",wd=Ot(Y9,[["__scopeId","data-v-e7748bcb"]]),bd=ot(wd),X9=s.defineComponent({name:"RenderComp",props:{render:Function,item:Object},render(o){return o.render(o==null?void 0:o.item)}}),J9=s.defineComponent({name:"RenderBtn",props:{render:Function,item:Object},render(o){return o.render(o==null?void 0:o.item)}}),Q9={key:1,class:"text_show"},Z9={class:"footer_btn flex-box flex-ver t-margin-top-5"},q9=s.defineComponent({name:"TForm",__name:"index",props:{className:{default:""},formOpts:{default:()=>({})},widthSize:{default:2},labelPosition:{default:"right"},isTrim:{type:Boolean,default:!0}},emits:["update:modelValue","handleEvent","getRefs"],setup(o,{expose:r,emit:n}){const t=o,e=s.computed(()=>(C,B="")=>{let A={...C.eventHandle},L={};return Object.keys(A).forEach(I=>{L[I]=(E,x)=>{B==="t-select-table"?A[I]&&A[I](E,x):A[I]&&A[I](E,t.formOpts)}}),{...L}}),a=s.computed(()=>C=>t.formOpts.listTypeInfo?t.formOpts.listTypeInfo[C.list]:[]),i=s.computed(()=>C=>{switch(C.type){case"checkbox":return"el-checkbox";case"radio":return"el-radio";case"select-arr":case"select-obj":return"el-option"}}),l=s.computed(()=>(C,B)=>{switch(C.type){case"radio":case"checkbox":return B[C.arrLabel||"label"];case"el-select-multiple":case"select-arr":return B[C.arrLabel||"label"];case"select-obj":return B}}),c=s.computed(()=>(C,B,A)=>{switch(C.type){case"radio":case"checkbox":return B[C.arrKey||"key"];case"el-select-multiple":case"select-arr":return B[C.arrKey||"key"];case"select-obj":return A}}),u=s.computed(()=>(C,B)=>{switch(C.type){case"radio":case"checkbox":return B[C.arrLabel||"label"];case"el-select-multiple":case"select-arr":return B[C.arrLabel||"label"];case"select-obj":return B}}),d=s.ref(t.widthSize),f=s.ref(null),h=s.getCurrentInstance(),p=n;s.watch(()=>t.formOpts.formData,()=>{p("update:modelValue",f.value)},{deep:!0}),s.watch(()=>t.widthSize,C=>{C>6?(_t.ElMessage.warning("widthSize\u503C\u4E0D\u80FD\u5927\u4E8E6\uFF01"),d.value=6):d.value=C},{deep:!0}),s.onMounted(()=>{var L;const C=Object.entries(f.value.$.exposed);for(const[I,E]of C)h.exposed[I]=E;let B=null,A=null;t.formOpts.formData&&Object.keys((L=t==null?void 0:t.formOpts)==null?void 0:L.formData).forEach(I=>{t.formOpts.formData[I]&&(t.formOpts.fieldList.map(E=>{E.value==I&&(B=E.event,A=E)}),m(B,t.formOpts.formData[I],A,!1))}),p("update:modelValue",f.value)});const v=C=>t.formOpts.labelPosition==="top"?`flex: 0 1 calc((${100/(C.widthSize||d.value)}% - 10px));margin-right:10px;`:`flex: 0 1 ${100/(C.widthSize||d.value)}%;`,g=C=>{let B;return C.comp&&typeof C.comp=="string"&&(C.comp.includes("input")?B="\u8BF7\u8F93\u5165"+C.label:C.comp.includes("select")||C.comp.includes("date")?B="\u8BF7\u9009\u62E9"+C.label:B=C.label),B},m=(C,B,A,L=!0)=>{var I;L&&t.isTrim&&!A.isTrim&&A.comp.includes("el-input")&&((I=A==null?void 0:A.bind)==null?void 0:I.type)!=="number"&&A.type!=="password"&&A.type!=="inputNumber"&&(t.formOpts.formData[A.value]=t.formOpts.formData[A.value].trim()),p("handleEvent",C,B)},_=()=>new Promise((C,B)=>{f.value.validate(A=>{A?C({valid:A,formData:t.formOpts.formData}):B({valid:A,formData:null})})}),b=(C,B,A)=>{p("getRefs",C,B,A)},y=s.ref({}),w=(C,B,A)=>{p("getRefs",C,B,A),C&&(y.value[`tselecttableref-${A}`]=C)},S=()=>{D(),f.value.resetFields()},D=()=>{const C=Object.keys(y.value).filter(B=>B.includes("tselecttableref"));C.length>0&&y.value&&C.map(B=>{y.value[B].clear()})};return r({...h.exposed,selfValidate:_,selfResetFields:S,resetTselectTable:D}),(C,B)=>{const A=s.resolveComponent("el-form-item"),L=s.resolveComponent("el-button"),I=s.resolveComponent("el-form");return s.openBlock(),s.createBlock(I,s.mergeProps({class:["t-form",C.className],ref_key:"tform",ref:f,model:C.formOpts.formData,rules:C.formOpts.rules,"label-width":C.formOpts.labelWidth||"120px","label-position":C.formOpts.labelPosition||C.labelPosition||"right"},C.$attrs),{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.formOpts.fieldList,(E,x)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[(typeof E.isHideItem=="function"?E.isHideItem(C.formOpts.formData):!E.isHideItem)?(s.openBlock(),s.createBlock(A,s.mergeProps({key:x,prop:E.value,label:E.label,class:[E.className,{render_label:E.labelRender},{slot_label:E.slotName},{render_laber_position_left:C.formOpts.labelPosition==="left"}],rules:E.rules,style:v(E),ref_for:!0},C.$attrs),s.createSlots({default:s.withCtx(()=>[E.slotName?s.renderSlot(C.$slots,E.slotName,{key:0,scope:C.formOpts.formData}):s.createCommentVNode("",!0),E.textShow?(s.openBlock(),s.createElementBlock("span",Q9,s.toDisplayString(E.textValue||C.formOpts.formData[E.value]),1)):s.createCommentVNode("",!0),E.isSelfCom?(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[E.comp==="t-select-table"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(E.comp),s.mergeProps({key:0,ref_for:!0,ref:k=>w(k,E,x),placeholder:E.placeholder||g(E)},typeof E.bind=="function"?E.bind(C.formOpts.formData):{clearable:!0,filterable:!0,...E.bind},{style:{width:E.width||"100%"}},s.toHandlers(e.value(E,"t-select-table"))),null,16,["placeholder","style"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(E.comp),s.mergeProps({key:1,modelValue:C.formOpts.formData[E.value],"onUpdate:modelValue":k=>C.formOpts.formData[E.value]=k,placeholder:E.placeholder||g(E),ref_for:!0,ref:k=>b(k,E,x)},typeof E.bind=="function"?E.bind(C.formOpts.formData):{clearable:!0,filterable:!0,...E.bind},{style:{width:E.width||"100%"}},s.toHandlers(e.value(E))),null,16,["modelValue","onUpdate:modelValue","placeholder","style"]))],64)):s.createCommentVNode("",!0),!E.slotName&&!E.textShow&&!E.isSelfCom?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(E.comp),s.mergeProps({key:3,modelValue:C.formOpts.formData[E.value],"onUpdate:modelValue":k=>C.formOpts.formData[E.value]=k,type:E.type,placeholder:E.placeholder||g(E),onChange:k=>m(E.event,C.formOpts.formData[E.value],E),ref_for:!0,ref:k=>b(k,E,x)},typeof E.bind=="function"?E.bind(C.formOpts.formData):{clearable:!0,filterable:!0,...E.bind},{style:{width:E.width||"100%"}},s.toHandlers(e.value(E))),s.createSlots({default:s.withCtx(()=>[E.childSlotName?s.renderSlot(C.$slots,E.childSlotName,{key:0}):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.value(E),(k,O,P)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.value(E)),{key:P,disabled:k.disabled,label:l.value(E,k),value:c.value(E,k,O)},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(u.value(E,k)),1)]),_:2},1032,["disabled","label","value"]))),128))]),_:2},[E.prepend?{name:"prepend",fn:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(E.prepend),1)]),key:"0"}:void 0,E.append?{name:"append",fn:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(E.append),1)]),key:"1"}:void 0]),1040,["modelValue","onUpdate:modelValue","type","placeholder","onChange","style"])):s.createCommentVNode("",!0)]),_:2},[E.labelSlotName||E.labelRender?{name:"label",fn:s.withCtx(()=>[E.labelRender?(s.openBlock(),s.createBlock(X9,{key:0,render:E.labelRender,item:E},null,8,["render","item"])):s.createCommentVNode("",!0),E.labelSlotName?s.renderSlot(C.$slots,E.labelSlotName,{key:1,scope:E}):s.createCommentVNode("",!0)]),key:"0"}:void 0]),1040,["prop","label","class","rules","style"])):s.createCommentVNode("",!0)],64))),256)),s.createElementVNode("div",Z9,[C.formOpts.btnSlotName?s.renderSlot(C.$slots,C.formOpts.btnSlotName,{key:0}):s.createCommentVNode("",!0),!C.formOpts.btnSlotName&&C.formOpts.operatorList&&C.formOpts.operatorList.length>0?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(C.formOpts.operatorList,(E,x)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:x},[E.render?(s.openBlock(),s.createBlock(J9,{key:0,item:E,render:E.render},null,8,["item","render"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[E.isHideBtn?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(L,s.mergeProps({key:0,onClick:k=>E.fun(E),ref_for:!0},{type:"primary",size:"small",...E.bind}),{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(E.label),1)]),_:2},1040,["onClick"]))],64))],64))),128)):s.createCommentVNode("",!0)])]),_:3},16,["class","model","rules","label-width","label-position"])}}}),dk="",Ed=ot(q9),$9={key:1,class:"t_select__pagination"},ew=s.defineComponent({name:"TSelect",__name:"index",props:{modelValue:{default:void 0},multiple:{type:Boolean,default:!1},width:{},valueCustom:{default:"key"},labelCustom:{default:"label"},customLabel:{default:""},optionSource:{default:()=>[]},filterable:{type:Boolean,default:!0},isShowPagination:{type:Boolean,default:!1},paginationOption:{default:()=>({pageSize:6,currentPage:1,pagerCount:5,total:0})},useVirtual:{type:Boolean,default:!1},returnObject:{type:Boolean,default:!1},isCached:{type:Boolean,default:!0},isRadioEchoLabel:{type:Boolean,default:!0},radioSelectValLabel:{default:""}},emits:["update:modelValue","change","input","select-input"],setup(o,{expose:r,emit:n}){const t=o,e=s.ref(),a=s.ref(1),i=s.useSlots(),l=n,c=s.computed({get(){return t.modelValue},set(b){l("update:modelValue",b)}}),u=s.ref(t.optionSource),d=s.ref(new Map),f=s.computed(()=>{const b=u.value.length>0&&u.value.map(w=>w[t.valueCustom])||[],y=Array.from(d.value.values()).filter(w=>!b.includes(w[t.valueCustom]));return t.isShowPagination&&t.isCached?[...u.value,...y]:[...u.value]});s.watch(()=>t.optionSource,b=>{u.value=b||[],b.length>0&&b.forEach(y=>{(typeof c.value=="object"?Array.isArray(c.value)&&c.value.includes(y[t.valueCustom]):c.value===y[t.valueCustom])&&d.value.set(y[t.valueCustom],y)})}),s.watch(()=>t.radioSelectValLabel,b=>{b&&t.isRadioEchoLabel&&!t.multiple&&t.isShowPagination&&(c.value=b)},{deep:!0}),s.onMounted(()=>{u.value.forEach(b=>{(typeof c.value=="object"?Array.isArray(c.value)&&c.value.includes(b[t.valueCustom]):c.value===b[t.valueCustom])&&d.value.set(b[t.valueCustom],b)}),t.radioSelectValLabel&&t.isRadioEchoLabel&&!t.multiple&&t.isShowPagination&&(c.value=t.radioSelectValLabel)});const h=b=>{t.filterable&&(a.value=e.value.filteredOptionsCount),l("select-input",b.target.value)},p=b=>{if(Array.isArray(b)){const y=new Map;b.forEach(w=>{const S=f.value.find(D=>D[t.valueCustom]===w);S&&y.set(w,S)}),d.value=y}else{const y=f.value.find(w=>w[t.valueCustom]===b);d.value=y?new Map([[b,y]]):new Map}l("change",b)},v=s.computed({get(){const b=t.modelValue,y=t.optionSource.filter(w=>!w.disabled);return(b==null?void 0:b.length)===y.length},set(b){const y=t.optionSource.filter(w=>!w.disabled);return(b==null?void 0:b.length)===y.length}}),g=b=>{let y=JSON.parse(JSON.stringify(t.optionSource));if(y=y.filter(w=>!w.disabled),b){const w=y.map(S=>S[t.valueCustom]);l("update:modelValue",w)}else l("update:modelValue",null)},m=b=>new Function("_item","return "+t.customLabel)(b);return r({clear:()=>{l("update:modelValue",null)}}),(b,y)=>{const w=s.resolveComponent("el-checkbox"),S=s.resolveComponent("el-option"),D=s.resolveComponent("el-pagination");return s.openBlock(),s.createBlock(s.resolveDynamicComponent(b.useVirtual?"el-select-v2":"el-select"),s.mergeProps({"popper-class":"t_select",ref_key:"tselectRef",ref:e,modelValue:c.value,"onUpdate:modelValue":y[4]||(y[4]=C=>c.value=C),options:b.useVirtual?b.optionSource:null,style:{width:b.width||"100%"},onChange:p,onInput:h},{clearable:!0,filterable:b.filterable,multiple:b.multiple,...b.$attrs}),s.createSlots({default:s.withCtx(()=>[b.useVirtual?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[b.multiple&&!b.isShowPagination?(s.openBlock(),s.createBlock(w,{key:0,modelValue:v.value,"onUpdate:modelValue":y[0]||(y[0]=C=>v.value=C),onChange:g,class:"all_checkbox"},{default:s.withCtx(()=>y[5]||(y[5]=[s.createTextVNode("\u5168\u9009")])),_:1},8,["modelValue"])):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(f.value,(C,B)=>(s.openBlock(),s.createBlock(S,{key:B+"i",label:b.customLabel?m(C):C[b.labelCustom],value:b.returnObject?C:C[b.valueCustom],disabled:C.disabled},s.createSlots({_:2},[s.renderList(s.unref(i),(A,L)=>({name:L,fn:s.withCtx(I=>[s.renderSlot(b.$slots,L,s.mergeProps({ref_for:!0},I),void 0,!0)])}))]),1032,["label","value","disabled"]))),128)),b.isShowPagination&&a.value>0?(s.openBlock(),s.createElementBlock("div",$9,[s.createVNode(D,s.mergeProps({"current-page":b.paginationOption.currentPage,"onUpdate:currentPage":y[1]||(y[1]=C=>b.paginationOption.currentPage=C),"page-size":b.paginationOption.pageSize,"onUpdate:pageSize":y[2]||(y[2]=C=>b.paginationOption.pageSize=C),layout:b.paginationOption.layout||"total, prev, pager, next, jumper","pager-count":b.paginationOption.pagerCount,total:b.paginationOption.total,onInput:y[3]||(y[3]=s.withModifiers(C=>l("input",C.target.value),["stop"]))},{size:"small",background:!0,...b.paginationOption.bind,...b.$attrs}),null,16,["current-page","page-size","layout","pager-count","total"])])):s.createCommentVNode("",!0)],64))]),_:2},[s.renderList(s.unref(i),(C,B)=>({name:B,fn:s.withCtx(A=>[s.renderSlot(b.$slots,B,s.normalizeProps(s.guardReactiveProps(A)),void 0,!0)])}))]),1040,["modelValue","options","style"])}}}),fk="",Cd=ot(Ot(ew,[["__scopeId","data-v-01674ad6"]])),tw=s.defineComponent({name:"RenderCol",props:{row:Object,render:Function,index:Number,column:{type:Object,default:null}},render(o){var r;return o.row,o.index,o.column&&o.column,o.render(o==null?void 0:o.row[(r=o==null?void 0:o.column)==null?void 0:r.prop],o.row,o.index)}}),ma=new Map;let Sd;ss&&(document.addEventListener("mousedown",o=>Sd=o),document.addEventListener("mouseup",o=>{for(const r of ma.values())for(const{documentHandler:n}of r)n(o,Sd)}));function kd(o,r){let n=[];return Array.isArray(r.arg)?n=r.arg:r.arg instanceof HTMLElement&&n.push(r.arg),function(t,e){const a=r.instance.popperRef,i=t.target,l=e==null?void 0:e.target,c=!r||!r.instance,u=!i||!l,d=o.contains(i)||o.contains(l),f=o===i,h=n.length&&n.some(v=>v==null?void 0:v.contains(i))||n.length&&n.includes(l),p=a&&(a.contains(i)||a.contains(l));c||u||d||f||h||p||r.value(t,e)}}const nw={beforeMount(o,r){ma.has(o)||ma.set(o,[]),ma.get(o).push({documentHandler:kd(o,r),bindingFn:r.value})},updated(o,r){ma.has(o)||ma.set(o,[]);const n=ma.get(o),t=n.findIndex(a=>a.bindingFn===r.oldValue),e={documentHandler:kd(o,r),bindingFn:r.value};t>=0?n.splice(t,1,e):n.push(e)},unmounted(o){ma.delete(o)}};function aw(){const o=s.ref(null),r=s.ref(null),n=s.ref(null),t=s.ref(!1),e=s.ref([]),a={},i=f=>{const h=p=>{o.value=document.querySelector(`${p} .el-scrollbar__view`),r.value=document.querySelector(`${p} .el-table__body`),n.value=document.querySelector(`${p} .el-scrollbar__wrap`)};t.value=f.multiple,f.multiple?h(".t_select_table_multiple"):h(".t_select_table_radio")},l=f=>{const h=a[f];return h===void 0?50:h},c=()=>{let f=0;e.value.forEach((h,p)=>{f+=l(p)}),o.value.style.height=f+"px"};return{scrollContainerEl:n,updateRenderedItemCache:f=>{Object.keys(a).length<e.value.length&&s.nextTick(()=>{Array.from(document.querySelectorAll(`${t.value?".t_select_table_multiple":".t_select_table_radio"} .el-table__row`)).forEach(v=>{a[f]||(a[f]=v.offsetHeight),f++}),c()})},updateOffset:f=>{r.value&&r.value.style&&(r.value.style.transform=`translateY(${f}px)`)},getDom:i,getItemHeightFromCache:l,saveDATA:e}}const ow={key:0,class:"table_query_condition"},rw=["element-loading-text"],iw={key:2},sw={key:0,class:"t-table-select__page"},lw=s.defineComponent({name:"TSelectTable",__name:"index",props:{modelValue:{default:void 0},inputValue:{default:void 0},defaultSelectVal:{default:()=>[]},radioSelectValLabel:{default:""},table:{default:()=>({data:[],currentPage:1,pageSize:10,total:0})},keywords:{default:()=>({value:"value",label:"label"})},value:{},columns:{default:()=>[]},multiple:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},remote:{type:Boolean,default:!1},remoteMethod:{type:Function,default:void 0},filterMethod:{type:Function,default:void 0},isShowInput:{type:Boolean,default:!1},inputAttr:{default:()=>({})},inputWidth:{default:550},selectWidth:{default:550},tableWidth:{default:550},isShowQuery:{type:Boolean,default:!1},isShowBlurBtn:{type:Boolean,default:!1},btnBind:{default:()=>({btnTxt:"\u5173\u95ED\u4E0B\u62C9\u6846"})},align:{default:"center"},reserveSelection:{type:Boolean,default:!0},selectable:{type:Function,default:void 0},multipleFixed:{type:[String,Boolean],default:!0},radioTxt:{default:"\u5355\u9009"},radioFixed:{type:[String,Boolean],default:!0},tableSize:{default:"default"},border:{type:Boolean,default:!0},isShowFirstColumn:{type:Boolean,default:!0},useVirtual:{type:Boolean,default:!1},virtualShowSize:{default:30},isShowPagination:{type:Boolean,default:!1},paginationSize:{default:"small"},selfExpanded:{type:Boolean,default:!1},isClearQuery:{type:Boolean,default:!1},isRadioEchoLabel:{type:Boolean,default:!0},defaultValIsOpenRadioChange:{type:Boolean,default:!1},radioSameIsCancel:{type:Boolean,default:!0},rowClickRadio:{type:Boolean,default:!0},isKeyup:{type:Boolean,default:!1},isExpanded:{type:Boolean,default:!1},multipleDisableDelete:{type:Boolean,default:!0},tableLoading:{type:Boolean,default:!1},loadingTxt:{default:"\u52A0\u8F7D\u4E2D..."}},emits:["page-change","selectionChange","radioChange","update:inputValue","input-focus","input-blur","input-clear","input-click"],setup(o,{expose:r,emit:n}){const{scrollContainerEl:t,updateRenderedItemCache:e,updateOffset:a,getDom:i,saveDATA:l,getItemHeightFromCache:c}=aw(),u=o,d=nw,f=n,h=s.useSlots(),p=s.ref(!0),v=s.ref(!0),g=s.ref(!1),m=s.ref(!1),_=s.ref(!1),b=s.ref(""),y=s.ref(u.isShowFirstColumn),w=s.ref(u.modelValue),S=s.ref(0);let D=s.computed({get(){return u.inputValue},set(j){f("update:inputValue",j)}});const C=s.reactive({defaultSelectValue:u.defaultSelectVal,tableData:u.table.data,defaultValue:u.value,ids:[],tabularMap:{}}),B=s.ref(null),A=s.ref(null),L=s.ref(null),I=s.ref(-1),E=s.computed(()=>C.tableData.map(j=>j[u.keywords.label]));s.watch(()=>u.table.data,j=>{var oe,Te;u.useVirtual?(l.value=j,x(S.value)):(C.tableData=j,u.multiple&&u.multipleDisableDelete&&((Te=(oe=B.value)==null?void 0:oe.$el)==null||Te.querySelectorAll(".el-tag").forEach(ke=>{var M,te;(te=E.value)!=null&&te.includes((M=ke.querySelector(".el-select__tags-text"))==null?void 0:M.innerText)?ke.querySelector(".el-tag__close").style="display: block":ke.querySelector(".el-tag__close").style="display: none"}))),s.nextTick(()=>{C.tableData&&C.tableData.length>0&&C.tableData.forEach(ke=>{C.tabularMap[ke[u.keywords.value]]=ke[u.keywords.label]})})},{deep:!0}),s.watch(()=>u.defaultSelectVal,j=>{C.defaultSelectValue=j,j.length>0&&(u.multiple?p.value&&q(C.defaultSelectValue):q(C.defaultSelectValue))},{deep:!0}),s.watch(()=>u.radioSelectValLabel,j=>{j&&U()},{deep:!0}),s.onMounted(()=>{var j;C.defaultSelectValue&&C.defaultSelectValue.length>0&&p.value&&q(C.defaultSelectValue),u.selfExpanded&&(B.value.expanded=!0),u.useVirtual&&(l.value=u.table.data,y.value=!1,i(u),(j=t.value)==null||j.addEventListener("scroll",k)),u.radioSelectValLabel&&U()});const x=j=>{let oe=0,Te=0;for(let ke=0;ke<l.value.length;ke++)if(Te+=c(ke),Te>=j){oe=ke;break}C.tableData=l.value.slice(oe,oe+u.virtualShowSize),e(oe),a(Te-c(oe))},k=j=>{S.value=j.target.scrollTop,x(S.value)};s.onBeforeUnmount(()=>{var j;u.useVirtual&&((j=t.value)==null||j.removeEventListener("scroll",k))}),s.onUpdated(()=>{u.isShowQuery&&A.value.doLayout()});const O=j=>{var oe;_.value=j,m.value&&(B.value.expanded=!0),j?(C.defaultSelectValue&&C.defaultSelectValue.length>0&&p.value&&q(C.defaultSelectValue),at(),u.useVirtual&&(l.value=u.table.data,x(S.value))):(L.value&&u.isShowQuery&&u.isClearQuery&&!B.value.expanded&&!u.selfExpanded&&((oe=L.value)==null||oe.resetData()),U(),et(""),u.useVirtual&&(C.tableData=[],l.value=[])),u.selfExpanded&&(B.value.expanded=!0)},P=()=>{B.value.expanded=!0},R=j=>{m.value=j},N=()=>{var j,oe;L.value&&u.isShowQuery&&(B.value.expanded=!0,Object.values((oe=(j=L.value)==null?void 0:j.props)==null?void 0:oe.opts).map(Te=>{(Te.comp.includes("select")||Te.comp.includes("picker")||Te.comp.includes("date"))&&(Te.eventHandle={"visible-change":ke=>R(ke)},B.value.expanded=!0)}),_.value&&u.isShowQuery?B.value.expanded=!0:B.value.expanded=!1)},H=s.useAttrs(),K=j=>{var oe,Te;if(!u.multiple&&u.isKeyup&&C.tableData.length>0){const ke=I.value*1,M=j.keyCode===40?ke+1:j.keyCode===38?ke-1:ke,te=((oe=A.value.$el.querySelectorAll(".el-table__row")[0])==null?void 0:oe.clientHeight)||0,V=((Te=A.value.$el.querySelectorAll(".el-table__header")[0])==null?void 0:Te.clientHeight)||0,F=(typeof(H["max-height"]||H.maxHeight)=="number"?H["max-height"]||H.maxHeight:parseFloat(H["max-height"]||H.maxHeight))||0,G=F?F-V:0,Z=te*(M+3),$=Z>G?Z-G:0;F&&A.value.setScrollTop($);const ue=Math.max(0,Math.min(M,C.tableData.length-1));A.value.setCurrentRow(C.tableData[ue]),I.value=ue,j.keyCode===13&&It(C.tableData[ue])}},U=()=>{s.nextTick(()=>{var j;u.multiple?(j=B.value.selected)==null||j.forEach(oe=>{oe.currentLabel=oe.value}):u.isRadioEchoLabel?w.value=C.defaultValue&&C.defaultValue[u.keywords.label]||u.radioSelectValLabel:w.value=C.defaultValue&&C.defaultValue[u.keywords.label]||""})},le=j=>{u.multiple?u.reserveSelection||Nt():ae(),f("page-change",j)},ae=()=>{u.multiple||(A.value.setCurrentRow(-1),I.value=-1,b.value="",p.value=!0,v.value=!1)},q=j=>{if(u.multiple){const oe=j.map(Te=>C.tableData.find(ke=>ke[u.keywords.value]===Te)).filter(Boolean);setTimeout(()=>{var Te,ke;C.defaultValue=oe.map(M=>M[u.keywords.label]),oe.forEach(M=>{A.value.toggleRowSelection(M,!0)}),(ke=(Te=B.value)==null?void 0:Te.selected)==null||ke.forEach(M=>{M.currentLabel=M.value})},0)}else setTimeout(()=>{const oe=C.tableData.find(Te=>Te[u.keywords.value]===j[0]);oe&&(b.value=C.tableData.indexOf(oe)+1,C.defaultValue=oe,w.value=oe[u.keywords.label],u.defaultValIsOpenRadioChange||f("radioChange",oe,oe[u.keywords.value]))},0)},we=j=>{p.value=!1,C.defaultValue=j.map(oe=>oe[u.keywords.label]),C.ids=j.map(oe=>oe[u.keywords.value]),j.length===0&&(p.value=!0,C.defaultSelectValue=[]),f("selectionChange",j,C.ids)},de=({row:j})=>!u.multiple&&JSON.stringify(j)===JSON.stringify(C.defaultValue)?"selected_row_style":"",ze=j=>j[u.keywords.value],et=j=>{var Te;if(!u.filterable)return;if(u.filterable&&u.remote&&typeof u.remoteMethod=="function"){u.remoteMethod(j);return}const oe=JSON.parse(JSON.stringify((Te=u.table)==null?void 0:Te.data));if(!(!oe||oe.length===0)){if(!u.multiple)if(j)b.value="";else{const ke=oe.findIndex(M=>M[u.keywords.label]===w.value);ke!==-1&&(b.value=ke+1)}if(C.tableData=oe.filter(ke=>{var M;return(M=ke[u.keywords.label])==null?void 0:M.includes(j)}),w.value){const ke=C.tableData.findIndex(M=>M[u.keywords.label]===w.value);ke!==-1&&(b.value=ke+1)}}},at=()=>{s.nextTick(()=>{var j,oe;if(u.multiple)(j=C.defaultValue)==null||j.forEach(Te=>{const ke=C.tableData.find(M=>M[u.keywords.value]===Te[u.keywords.value]);ke&&A.value.toggleRowSelection(ke,!0)});else{const Te=(oe=C.tableData)==null?void 0:oe.find(ke=>ke[u.keywords.value]===w.value);Te&&A.value.setCurrentRow(Te)}})},Pt=async j=>{if(typeof j!="string"||j.trim()==="")throw new Error("\u65E0\u6548\u7684\u590D\u5236\u5185\u5BB9");try{await navigator.clipboard.writeText(j)}catch(oe){throw oe.name==="NotAllowedError"||oe.name==="SecurityError"?new Error("\u590D\u5236\u5931\u8D25\uFF1A\u6743\u9650\u88AB\u62D2\u7EDD"):new Error("\u590D\u5236\u5931\u8D25\uFF1A\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u6216\u53D1\u751F\u672A\u77E5\u9519\u8BEF")}},Rt=(j,oe)=>{j==="success"?_t.ElMessage.success(oe):_t.ElMessage.error(oe)},Je=async(j,oe)=>{const Te=j[oe.property];try{await Pt(String(Te)),Rt("success","\u590D\u5236\u6210\u529F")}catch(ke){Rt("error",ke.message||"\u590D\u5236\u5931\u8D25")}},ct=(j,oe,Te)=>{j.preventDefault(),!oe.isRadioDisabled&&(p.value=!1,tn(oe,Te))},mt=()=>{v.value=!1,setTimeout(()=>{v.value=!0},0)},tn=(j,oe)=>{if(v.value=!v.value,b.value===oe){if(!u.radioSameIsCancel)return;Nt()}else Vt(j,oe);u.isExpanded&&C.defaultValue?(w.value=C.defaultValue[u.keywords.label]||"",B.value.expanded=!0):Ut()},Vt=(j,oe)=>{mt(),b.value=oe,C.defaultValue=j,f("radioChange",j,j[u.keywords.value])},It=async j=>{var oe;if(!j.isRadioDisabled&&!!u.rowClickRadio&&!u.multiple){const Te=(oe=u.table)==null?void 0:oe.data.findIndex(ke=>ke[u.keywords.value]===j[u.keywords.value]);Te!==-1&&(p.value=!1,await tn(j,Te+1),b.value?g.value=!0:g.value=!1)}},Mt=j=>{const oe=C.tableData.find(Te=>Te[u.keywords.label]===j);console.log("tags\u5220\u9664\u540E\u56DE\u8C03",oe),oe&&A.value.toggleRowSelection(oe,!1),p.value=!0},Nt=()=>{const j=()=>{p.value=!0,C.defaultSelectValue=[],C.defaultValue=u.multiple?[]:null};if(!A.value){console.warn("selectTable.value is not initialized");return}if(u.multiple===!0){try{A.value.clearSelection()}catch(oe){console.error("Failed to clear selection:",oe)}j()}else if(u.multiple===!1){try{A.value.setCurrentRow(-1)}catch(oe){console.error("Failed to set current row:",oe)}I.value=-1,b.value="",v.value=!1,w.value=null,j(),f("radioChange",null,null)}else console.warn("Invalid value for props.multiple:",u.multiple)},Ut=()=>{B.value.blur()},An=()=>{B.value.focus()},ca=j=>Object.keys(h).includes(j);return r({focus:An,blur:Ut,clear:Nt,props:u,state:C,tQueryConditionRef:L,selectRef:B,selectTable:A}),(j,oe)=>{const Te=s.resolveComponent("el-input"),ke=s.resolveComponent("el-button"),M=s.resolveComponent("el-table-column"),te=s.resolveComponent("el-radio"),V=s.resolveComponent("el-table"),F=s.resolveComponent("el-pagination"),G=s.resolveComponent("el-select"),Z=s.resolveDirective("loading");return j.isShowInput?(s.openBlock(),s.createBlock(Te,s.mergeProps({key:0,modelValue:s.unref(D),"onUpdate:modelValue":oe[0]||(oe[0]=$=>s.isRef(D)?D.value=$:D=$)},{clearable:!0,...j.inputAttr},{onFocus:oe[1]||(oe[1]=()=>f("input-focus")),onBlur:oe[2]||(oe[2]=()=>f("input-blur")),onClick:oe[3]||(oe[3]=()=>f("input-click")),onClear:oe[4]||(oe[4]=()=>f("input-clear")),style:{width:j.inputWidth?`${j.inputWidth}px`:"100%"}}),s.createSlots({_:2},[s.renderList(s.unref(h),($,ue)=>({name:ue,fn:s.withCtx(ve=>[s.renderSlot(j.$slots,ue,s.normalizeProps(s.guardReactiveProps(ve)))])}))]),1040,["modelValue","style"])):s.withDirectives((s.openBlock(),s.createBlock(G,s.mergeProps({key:1,ref_key:"selectRef",ref:B,"model-value":j.multiple?C.defaultValue:w.value,"popper-class":"t-select-table",style:{width:j.selectWidth?`${j.selectWidth}px`:"100%"},"value-key":j.keywords.value,"filter-method":j.filterMethod||et,onVisibleChange:O,onRemoveTag:Mt,onClear:Nt,onKeyup:K},{clearable:!0,multiple:j.multiple,filterable:j.filterable,remote:j.remote,remoteMethod:j.remoteMethod,...j.$attrs}),{empty:s.withCtx(()=>[s.createElementVNode("div",{class:"t-table-select__table",style:s.normalizeStyle({width:j.tableWidth?`${j.tableWidth}px`:"100%"})},[j.isShowQuery?(s.openBlock(),s.createElementBlock("div",ow,[s.createVNode(ps,s.mergeProps({ref_key:"tQueryConditionRef",ref:L,boolEnter:!1,onHandleEvent:P},j.$attrs),s.createSlots({_:2},[s.renderList(s.unref(h),($,ue)=>({name:ue,fn:s.withCtx(ve=>[s.renderSlot(j.$slots,ue,s.normalizeProps(s.guardReactiveProps(ve)))])})),j.isShowBlurBtn?{name:"querybar",fn:s.withCtx(()=>[s.createVNode(ke,s.mergeProps({type:"danger",...j.btnBind},{onClick:Ut}),{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(j.btnBind.btnTxt||"\u5173\u95ED\u4E0B\u62C9\u6846"),1)]),_:1},16),s.renderSlot(j.$slots,"querybar")]),key:"0"}:void 0]),1040)])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"header_wrap",style:s.normalizeStyle({paddingBottom:ca("toolbar")?"10px":0})},[s.renderSlot(j.$slots,"toolbar")],4),s.withDirectives((s.openBlock(),s.createElementBlock("div",{class:"table_content","element-loading-text":j.loadingTxt},[s.createVNode(V,s.mergeProps({ref_key:"selectTable",ref:A,data:C.tableData,class:{radioStyle:!j.multiple,highlightCurrentRow:g.value,keyUpStyle:j.isKeyup,t_select_table_multiple:j.useVirtual&&j.multiple,t_select_table_radio:j.useVirtual&&!j.multiple},"row-class-name":de,"row-key":ze,onRowClick:It,onCellDblclick:Je,onSelectionChange:we},{border:j.border,size:j.tableSize,"highlight-current-row":!0,...j.$attrs}),{default:s.withCtx(()=>[j.multiple?(s.openBlock(),s.createBlock(M,{key:0,type:"selection",width:j.tableSize==="large"?65:55,align:j.align||"center","reserve-selection":j.reserveSelection,selectable:j.selectable,fixed:j.multipleFixed},null,8,["width","align","reserve-selection","selectable","fixed"])):s.createCommentVNode("",!0),!j.multiple&&y.value?(s.openBlock(),s.createBlock(M,{key:1,type:"radio",width:j.tableSize==="large"?65:55,label:j.radioTxt,fixed:j.radioFixed,align:j.align||"center"},{default:s.withCtx($=>[s.createVNode(te,{modelValue:b.value,"onUpdate:modelValue":oe[5]||(oe[5]=ue=>b.value=ue),label:$.$index+1,disabled:$.row.isRadioDisabled,onClick:s.withModifiers(ue=>ct(ue,$.row,$.$index+1),["stop"])},null,8,["modelValue","label","disabled","onClick"])]),_:1},8,["width","label","fixed","align"])):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(j.columns,($,ue)=>(s.openBlock(),s.createBlock(M,s.mergeProps({key:ue+"i",type:$.type,label:$.label,prop:$.prop,"min-width":$["min-width"]||$.minWidth,width:$.width,align:$.align||j.align||"center",fixed:$.fixed,ref_for:!0},{"show-overflow-tooltip":!0,...$.bind}),{default:s.withCtx(ve=>[$.render?(s.openBlock(),s.createBlock(tw,{key:0,column:$,row:ve.row,render:$.render,index:ve.$index},null,8,["column","row","render","index"])):s.createCommentVNode("",!0),$.slotName?s.renderSlot(j.$slots,$.slotName,{key:1,scope:ve}):s.createCommentVNode("",!0),!$.render&&!$.slotName?(s.openBlock(),s.createElementBlock("div",iw,[s.createElementVNode("span",null,s.toDisplayString(ve.row[$.prop]),1)])):s.createCommentVNode("",!0)]),_:2},1040,["type","label","prop","min-width","width","align","fixed"]))),128)),s.renderSlot(j.$slots,"default")]),_:3},16,["data","class"]),j.isShowPagination?(s.openBlock(),s.createElementBlock("div",sw,[s.createVNode(F,s.mergeProps({"current-page":j.table.currentPage,"onUpdate:currentPage":oe[6]||(oe[6]=$=>j.table.currentPage=$),"page-size":j.table.pageSize,"onUpdate:pageSize":oe[7]||(oe[7]=$=>j.table.pageSize=$),onCurrentChange:le,layout:"total, prev, pager, next, jumper","pager-count":j.table["pager-count"]||5,total:j.table.total},{background:!0,size:j.paginationSize||"small",...j.$attrs}),null,16,["current-page","page-size","pager-count","total"])])):s.createCommentVNode("",!0)],8,rw)),[[Z,j.tableLoading]]),s.renderSlot(j.$slots,"footer")],4)]),_:3},16,["model-value","style","value-key","filter-method"])),[[s.unref(d),N]])}}}),pk="",Td=ot(lw),cw=s.defineComponent({name:"RenderTooltip",props:{render:Function,item:Object},render(o){return o.render(o==null?void 0:o.item)}}),uw=s.defineComponent({name:"RenderLabel",props:{render:Function,item:Object},render(o){return o.render(o==null?void 0:o.item)}}),dw={key:0},fw={key:1,class:"tip_class"},hw={key:0},pw={key:1},vw={key:0},mw={key:0},gw={key:1},yw={key:0},_w={key:1},ww={key:0},bw=s.defineComponent({name:"TDetail",__name:"index",props:{descColumn:{default:4},dataList:{default:()=>({})},listTypeInfo:{default:()=>({})},descData:{default:()=>[]},isColon:{type:Boolean,default:!0},isLabelBold:{type:Boolean,default:!0}},setup(o){const r=(n,t,e="value",a="label")=>{const i=t.find(l=>l[e]===n);return i==null?void 0:i[a]};return(n,t)=>{const e=s.resolveComponent("el-icon"),a=s.resolveComponent("el-tooltip"),i=s.resolveComponent("el-descriptions-item"),l=s.resolveComponent("el-descriptions");return s.openBlock(),s.createBlock(l,s.mergeProps({class:"t_detail"},n.$attrs,{column:n.descColumn}),{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.descData,(c,u)=>(s.openBlock(),s.createBlock(i,s.mergeProps({key:u,span:c.span||1,ref_for:!0},{...c.bind,...n.$attrs}),{label:s.withCtx(()=>[c.labelRender?(s.openBlock(),s.createBlock(uw,{key:0,render:c.labelRender,item:c},null,8,["render","item"])):(s.openBlock(),s.createElementBlock("span",{key:1,style:s.normalizeStyle({fontWeight:n.isLabelBold?"bold":""})},[s.createTextVNode(s.toDisplayString(c.label),1),n.isColon?(s.openBlock(),s.createElementBlock("span",dw,"\uFF1A")):s.createCommentVNode("",!0)],4))]),default:s.withCtx(()=>[c.slotName?s.renderSlot(n.$slots,c.slotName,{key:0},void 0,!0):(s.openBlock(),s.createElementBlock("span",fw,[c.tooltip?(s.openBlock(),s.createBlock(a,s.mergeProps({key:0,ref_for:!0},n.$attrs,{placement:c.placement||"bottom"}),s.createSlots({default:s.withCtx(()=>[s.createElementVNode("span",null,[c.filters&&c.filters.list?(s.openBlock(),s.createElementBlock("span",hw,s.toDisplayString(r(c.fieldName?n.dataList[c.fieldName]:void 0,n.listTypeInfo[c.filters.list],c.filters.key||"value",c.filters.label||"label")),1)):(s.openBlock(),s.createElementBlock("span",pw,[s.createTextVNode(s.toDisplayString(c.value),1),c.unit&&c.value?(s.openBlock(),s.createElementBlock("span",vw,s.toDisplayString(c.unit),1)):s.createCommentVNode("",!0)])),s.createVNode(e,{size:c.iconSize,color:c.iconColor,style:{cursor:"pointer","margin-left":"2px",top:"1px"}},{default:s.withCtx(()=>[s.createVNode(s.unref(bu))]),_:2},1032,["size","color"])])]),_:2},[c.tooltip?{name:"content",fn:s.withCtx(()=>[typeof c.tooltip=="string"?(s.openBlock(),s.createElementBlock("span",mw,s.toDisplayString(c.tooltip),1)):typeof c.tooltip=="function"?(s.openBlock(),s.createBlock(cw,{key:1,render:c.tooltip,item:c},null,8,["render","item"])):s.createCommentVNode("",!0)]),key:"0"}:void 0]),1040,["placement"])):(s.openBlock(),s.createElementBlock("span",gw,[c.filters&&c.filters.list?(s.openBlock(),s.createElementBlock("span",yw,s.toDisplayString(r(c.fieldName?n.dataList[c.fieldName]:void 0,n.listTypeInfo[c.filters.list],c.filters.key||"value",c.filters.label||"label")),1)):(s.openBlock(),s.createElementBlock("span",_w,[s.createTextVNode(s.toDisplayString(c.value),1),c.unit&&c.value?(s.openBlock(),s.createElementBlock("span",ww,s.toDisplayString(c.unit),1)):s.createCommentVNode("",!0)]))]))]))]),_:2},1040,["span"]))),128))]),_:3},16,["column"])}}}),vk="",xd=ot(Ot(bw,[["__scopeId","data-v-f8b6d3c4"]])),Ew=s.defineComponent({name:"TButton",__name:"index",props:{time:{default:1e3},tip:{default:""},placement:{default:"top"},tipProps:{default:()=>({})},isDebounce:{type:Boolean,default:!0}},emits:["click"],setup(o,{emit:r}){const n=o,t=r,e=s.ref(0),a=()=>{if(!n.isDebounce)return t("click");const i=new Date;i.getTime()-e.value>n.time&&t("click"),e.value=i.getTime()};return(i,l)=>{const c=s.resolveComponent("el-button"),u=s.resolveComponent("el-tooltip");return i.tip?(s.openBlock(),s.createBlock(u,s.mergeProps({key:0,content:i.tip,placement:i.placement},i.tipProps),{default:s.withCtx(()=>[s.createVNode(c,s.mergeProps(i.$attrs,{class:"t-button-tip",onClick:a}),{default:s.withCtx(()=>[s.renderSlot(i.$slots,"default",{},void 0,!0)]),_:3},16)]),_:3},16,["content","placement"])):(s.openBlock(),s.createBlock(c,s.mergeProps({key:1},i.$attrs,{onClick:a}),{default:s.withCtx(()=>[s.renderSlot(i.$slots,"default",{},void 0,!0)]),_:3},16))}}}),gk="",Bd=ot(Ot(Ew,[["__scopeId","data-v-85853d11"]])),Cw={class:"t_step-wizard"},Sw={class:"content-step-main step-content"},kw={class:"step_btn"},Tw={key:0,class:"step-last flex-box flex-col flex-ver"},xw={class:"icon-success"},Bw=["innerHTML"],Aw={class:"step_btn"},Dw=s.defineComponent({name:"TStepWizard",__name:"index",props:{stepData:{default:()=>[]},successTitle:{default:""},lastBtnTitle:{default:"\u5B8C\u6210"},active:{default:0},isShowLastSuccess:{type:Boolean,default:!0}},emits:["complete"],setup(o,{emit:r}){const n=o,t=s.useSlots(),e=()=>n.isShowLastSuccess?n.stepData&&n.stepData.slice(0,n.stepData.length-1):n.stepData,a=r,i=()=>{a("complete",n.active)};return(l,c)=>{const u=s.resolveComponent("el-step"),d=s.resolveComponent("el-steps"),f=s.resolveComponent("el-button"),h=s.resolveComponent("el-icon");return s.openBlock(),s.createElementBlock("div",Cw,[s.createVNode(d,s.mergeProps({active:l.active,"finish-status":"success"},l.$attrs),{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.stepData,(p,v)=>(s.openBlock(),s.createBlock(u,s.mergeProps({ref_for:!0},l.$attrs,{key:v,title:`${v+1} ${p.title}`,icon:p.icon?p.icon:"",description:p.description?p.description:""}),s.createSlots({_:2},[s.renderList(s.unref(t),(g,m)=>({name:m,fn:s.withCtx(_=>[s.renderSlot(l.$slots,m,s.mergeProps({ref_for:!0},_))])}))]),1040,["title","icon","description"]))),128))]),_:3},16,["active"]),s.createElementVNode("div",Sw,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e(),(p,v)=>s.withDirectives((s.openBlock(),s.createElementBlock("div",{class:"step-first flex-box flex-col flex-ver-h",key:v},[p.slotName?s.renderSlot(l.$slots,p.slotName,{key:0}):s.createCommentVNode("",!0),s.createElementVNode("div",kw,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.btnArr,(g,m)=>(s.openBlock(),s.createBlock(f,{key:m,type:g.type||"danger",onClick:_=>g.fn(g),disabled:p.disable||!1},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(g.btnTitle),1)]),_:2},1032,["type","onClick","disabled"]))),128))])])),[[s.vShow,l.active===v]])),128)),l.active===l.stepData.length&&l.isShowLastSuccess?(s.openBlock(),s.createElementBlock("div",Tw,[s.createElementVNode("div",xw,[s.createVNode(h,null,{default:s.withCtx(()=>[s.createVNode(s.unref(mu))]),_:1})]),s.createElementVNode("h2",{class:"success-margin",innerHTML:l.successTitle},null,8,Bw),s.createElementVNode("div",Aw,[l.stepData[l.stepData.length-1].lastBtnArr?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(l.stepData[l.stepData.length-1].lastBtnArr,(p,v)=>(s.openBlock(),s.createBlock(f,{key:v,type:p.type||"danger",onClick:g=>p.fn(p),disabled:p.disable||!1},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(p.btnTitle),1)]),_:2},1032,["type","onClick","disabled"]))),128)):(s.openBlock(),s.createBlock(f,{key:0,type:"danger",onClick:i},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(l.lastBtnTitle),1)]),_:1}))])])):s.createCommentVNode("",!0)])])}}}),_k="",Ad=ot(Dw),Pw={class:"timer-btn"},Ow=["disabled"],Lw=s.defineComponent({name:"TTimerBtn",__name:"index",props:{second:{default:60},className:{default:""}},emits:["click"],setup(o,{expose:r,emit:n}){const t=o,e=s.ref(0),a=s.ref(!1),i=s.computed(()=>e.value>0?`${e.value}s \u540E\u91CD\u83B7\u53D6`:"\u83B7\u53D6\u9A8C\u8BC1\u7801"),l=n,c=()=>{l("click"),d()},u=()=>{e.value=0},d=()=>{e.value=t.second,a.value=!0,f()},f=()=>{e.value>0?(e.value--,setTimeout(f,1e3)):a.value=!1};return r({reset:u}),(h,p)=>(s.openBlock(),s.createElementBlock("div",Pw,[s.createElementVNode("button",{class:s.normalizeClass(["sendSmsBtn",{dissendSmsBtn:a.value,className:h.className}]),type:"button",onClick:c,disabled:a.value||e.value>0},s.toDisplayString(i.value),11,Ow)]))}}),wk="",Dd=ot(Ot(Lw,[["__scopeId","data-v-e9a0cbdb"]])),Iw={class:"t_detail"},Mw={key:0,class:"t_btn"},Nw=s.defineComponent({name:"ModuleDetail",__name:"moduleDetail",props:{descData:{type:Object,default:()=>({})},titleBold:{type:Boolean,default:!1}},setup(o){const r=o,n=s.useSlots(),t=s.useAttrs(),e=s.computed({get(){return Object.keys(r.descData)},set(a){return a}});return(a,i)=>{const l=s.resolveComponent("t-detail"),c=s.resolveComponent("el-collapse-item"),u=s.resolveComponent("el-collapse");return s.openBlock(),s.createElementBlock("div",Iw,[s.createVNode(u,{modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=d=>e.value=d)},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.descData,(d,f)=>(s.openBlock(),s.createBlock(c,{class:s.normalizeClass({noTitle:!d.title,disabledStyle:d.disabled,title_bold:o.titleBold}),key:f,name:d.name,disabled:d.disabled},{title:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(d.title)+" ",1),d.btn?(s.openBlock(),s.createElementBlock("div",Mw,[s.renderSlot(a.$slots,d.btn)])):s.createCommentVNode("",!0)]),default:s.withCtx(()=>[d.slotName?s.renderSlot(a.$slots,d.slotName,{key:0}):s.createCommentVNode("",!0),s.createVNode(l,s.mergeProps({descData:d.data,ref_for:!0},s.unref(t)),s.createSlots({_:2},[s.renderList(s.unref(n),(h,p)=>({name:p,fn:s.withCtx(v=>[s.renderSlot(a.$slots,p,s.mergeProps({ref_for:!0},v))])}))]),1040,["descData"])]),_:2},1032,["class","name","disabled"]))),128))]),_:3},8,["modelValue"])])}}}),Ek="",Rw={class:"t_form"},Vw={class:"collapse-item_title"},Fw={key:0,class:"t_btn"},Hw=s.defineComponent({name:"ModuleForm",__name:"moduleForm",props:{formOpts:{type:Object,default:()=>({})},titleBold:{type:Boolean,default:!1}},emits:["handleEvent"],setup(o,{expose:r,emit:n}){const t=o,e=s.ref({}),a=s.useSlots(),i=s.useAttrs();r({getChildRef:f=>e.value[f]});const c=s.computed({get(){return Object.keys(t.formOpts)},set(f){return f}}),u=n,d=(f,h)=>{u("handleEvent",f,h)};return(f,h)=>{const p=s.resolveComponent("t-form"),v=s.resolveComponent("el-collapse-item"),g=s.resolveComponent("el-collapse");return s.openBlock(),s.createElementBlock("div",Rw,[s.createVNode(g,{modelValue:c.value,"onUpdate:modelValue":h[0]||(h[0]=m=>c.value=m)},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.formOpts,(m,_)=>(s.openBlock(),s.createBlock(v,{class:s.normalizeClass([m.className,{noTitle:!m.title,disabledStyle:m.disabled,title_bold:o.titleBold}]),key:_,name:m.name,disabled:m.disabled},{title:s.withCtx(()=>[s.createElementVNode("span",Vw,s.toDisplayString(m.title),1),m.btn?(s.openBlock(),s.createElementBlock("div",Fw,[s.renderSlot(f.$slots,m.btn)])):s.createCommentVNode("",!0)]),default:s.withCtx(()=>[m.slotName?s.renderSlot(f.$slots,m.slotName,{key:0}):s.createCommentVNode("",!0),s.createVNode(p,s.mergeProps({ref_for:!0,ref:b=>{e.value[_]=b},formOpts:m.opts,widthSize:m.widthSize||3},s.unref(i),{onHandleEvent:d}),s.createSlots({_:2},[s.renderList(s.unref(a),(b,y)=>({name:y,fn:s.withCtx(w=>[s.renderSlot(f.$slots,y,s.mergeProps({ref_for:!0},w))])}))]),1040,["formOpts","widthSize"])]),_:2},1032,["class","name","disabled"]))),128))]),_:3},8,["modelValue"])])}}}),Ck="",zw={class:"scroll_wrap"},Uw={class:"sub_title"},jw={class:"extra"},Gw={key:0,class:"handle_wrap"},Ww={key:0},Kw=s.defineComponent({name:"TModuleForm",__name:"index",props:{handleType:{default:"edit"},isShowHeader:{type:Boolean,default:!1},titleSlot:{type:Boolean,default:!1},isShowBack:{type:Boolean,default:!1},isGoBackEvent:{type:Boolean,default:!1},btnSaveBind:{default:()=>({})},btnCancelBind:{default:()=>({})},isTabMargin:{type:Boolean,default:!1},tabMarginNum:{default:10},footer:{},title:{default:""},subTitle:{default:""},tabs:{default:()=>[]},submit:{type:Function,default:async()=>!1}},emits:["validateError","back","tabsChange"],setup(o,{expose:r,emit:n}){var y;const t=o,e=s.useAttrs(),a=s.useSlots(),i=s.ref(t.tabs&&((y=t.tabs[0])==null?void 0:y.key)),l=s.ref(!1),c=s.computed(()=>({type:"primary",btnTxt:"\u4FDD\u5B58",...t.btnSaveBind})),u=s.computed(()=>({btnTxt:"\u53D6\u6D88",...t.btnCancelBind})),d=s.ref(null),f=n,h=async()=>{let w={},S={},D={},C=0;l.value=!0,Object.keys(e.formOpts).forEach(B=>{e.formOpts[B].opts&&(D[B]=e.formOpts[B])}),Object.keys(D).forEach(async B=>{const{valid:A,formData:L}=await d.value.getChildRef(B).selfValidate();A&&(C=C+1,w[B]=e.formOpts[B].opts.formData)}),setTimeout(async()=>{C===Object.keys(D).length?await t.submit(w)&&p():(Object.keys(D).forEach(B=>{Object.keys(w).length>0?Object.keys(w).map(A=>{B!==A&&(S[B]=D[B])}):S[B]=D[B]}),f("validateError",S)),l.value=!1},300)},p=()=>{t.isShowBack||(f("back"),t.isGoBackEvent||history.go(-1))},v=w=>{i.value=w},g=w=>{f("tabsChange",w)};return r({clearValidate:()=>{let w={};Object.keys(e.formOpts).forEach(S=>{e.formOpts[S].opts&&(w[S]=e.formOpts[S])}),Object.keys(w).forEach(S=>{d.value.getChildRef(S).clearValidate()})},resetFormFields:()=>{let w={};Object.keys(e.formOpts).forEach(S=>{e.formOpts[S].opts&&(w[S]=e.formOpts[S])}),Object.keys(w).forEach(S=>{d.value.getChildRef(S).resetFields()})},updateFormFields:()=>{let w={};Object.keys(e.formOpts).forEach(S=>{e.formOpts[S].opts&&(w[S]=e.formOpts[S])}),Object.keys(w).forEach(S=>{d.value.getChildRef(S).updateFields(!1)})},setSelectedTab:v,saveHandle:h}),(w,S)=>{const D=s.resolveComponent("el-page-header"),C=s.resolveComponent("el-tab-pane"),B=s.resolveComponent("el-tabs"),A=s.resolveComponent("el-button");return s.openBlock(),s.createElementBlock("div",{class:"t_module_form",style:s.normalizeStyle({marginBottom:w.footer!==null?"60px":""})},[s.createElementVNode("div",zw,[!w.isShowHeader&&(w.title||w.titleSlot)?(s.openBlock(),s.createBlock(D,{key:0,title:w.title,onBack:p,class:s.normalizeClass({noContent:!w.subTitle,isShowBack:w.isShowBack})},s.createSlots({content:s.withCtx(()=>[s.createElementVNode("div",Uw,s.toDisplayString(w.subTitle),1),s.createElementVNode("div",jw,[s.renderSlot(w.$slots,"extra")])]),_:2},[w.titleSlot?{name:"title",fn:s.withCtx(()=>[s.renderSlot(w.$slots,"title")]),key:"0"}:void 0]),1032,["title","class"])):s.createCommentVNode("",!0),w.handleType==="edit"?(s.openBlock(),s.createBlock(Hw,s.mergeProps({key:1},w.$attrs,{ref_key:"tForm",ref:d}),s.createSlots({_:2},[s.renderList(s.unref(a),(L,I)=>({name:I,fn:s.withCtx(E=>[s.renderSlot(w.$slots,I,s.normalizeProps(s.guardReactiveProps(E)))])}))]),1040)):(s.openBlock(),s.createBlock(Nw,s.normalizeProps(s.mergeProps({key:2},w.$attrs)),s.createSlots({_:2},[s.renderList(s.unref(a),(L,I)=>({name:I,fn:s.withCtx(E=>[s.renderSlot(w.$slots,I,s.normalizeProps(s.guardReactiveProps(E)))])}))]),1040)),w.tabs.length?(s.openBlock(),s.createElementBlock("div",{key:3,class:"tabs",style:s.normalizeStyle({"margin-top":w.isTabMargin?`${w.tabMarginNum}px`:0})},[w.tabs&&w.tabs.length>1?(s.openBlock(),s.createBlock(B,{key:0,modelValue:i.value,"onUpdate:modelValue":S[0]||(S[0]=L=>i.value=L),onTabChange:g},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(w.tabs,L=>(s.openBlock(),s.createBlock(C,{key:L.key,name:L.key,label:L.title},{default:s.withCtx(()=>[s.renderSlot(w.$slots,L.key)]),_:2},1032,["name","label"]))),128))]),_:3},8,["modelValue"])):s.renderSlot(w.$slots,w.tabs&&w.tabs[0].key,{key:1})],4)):s.createCommentVNode("",!0),s.renderSlot(w.$slots,"default")]),w.footer!==null?(s.openBlock(),s.createElementBlock("footer",Gw,[s.renderSlot(w.$slots,"footer"),s.unref(a).footer?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Ww,[s.createVNode(A,s.mergeProps({onClick:p},u.value),{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(u.value.btnTxt),1)]),_:1},16),w.handleType==="edit"?(s.openBlock(),s.createBlock(A,s.mergeProps({key:0},c.value,{onClick:h,loading:l.value}),{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(c.value.btnTxt),1)]),_:1},16,["loading"])):s.createCommentVNode("",!0)]))])):s.createCommentVNode("",!0)],4)}}}),Sk="",Pd=ot(Kw),Yw={class:"t_adaptive_page"},Xw={class:"left_tree"},Jw=s.defineComponent({name:"TAdaptivePage",__name:"index",props:{leftWidth:{default:260},pageStyle:{default:()=>({})},columnSetting:{type:Boolean,default:!1},name:{default:""},queryPageStyle:{default:()=>({})},tablePageStyle:{default:()=>({})},isTTableSelfFilling:{type:Boolean,default:!1}},setup(o,{expose:r}){const n=s.useSlots(),t=l=>Object.keys(n).includes(l),e=s.getCurrentInstance(),a=s.ref(null),i=s.ref(null);return s.onMounted(()=>{var u,d;const l={...(u=a.value)==null?void 0:u.$.exposed,...(d=i.value)==null?void 0:d.$.exposed},c=Object.entries(l);for(const[f,h]of c)e.exposed[f]=h}),r({...e.exposed,TQueryConditionPage:a,TTablePage:i}),(l,c)=>(s.openBlock(),s.createElementBlock("div",Yw,[t("leftContent")?(s.openBlock(),s.createElementBlock("div",{key:0,style:s.normalizeStyle({width:t("leftContent")?`${l.leftWidth}px`:"0px"}),class:"left_content"},[s.createElementVNode("div",Xw,[s.renderSlot(l.$slots,"leftContent",{},void 0,!0)])],4)):s.createCommentVNode("",!0),s.createVNode(Cu,{class:"right_content",style:s.normalizeStyle(l.pageStyle)},{default:s.withCtx(()=>[l.$attrs.opts?(s.openBlock(),s.createBlock(hs,{key:0,class:"table_search",style:s.normalizeStyle(l.queryPageStyle)},{default:s.withCtx(()=>[s.createVNode(ps,s.mergeProps(l.$attrs,{ref_key:"TQueryConditionPage",ref:a}),s.createSlots({_:2},[s.renderList(s.unref(n),(u,d)=>({name:d,fn:s.withCtx(f=>[s.renderSlot(l.$slots,d,s.normalizeProps(s.guardReactiveProps(f)),void 0,!0)])}))]),1040)]),_:3},8,["style"])):s.createCommentVNode("",!0),s.renderSlot(l.$slots,"content",{},void 0,!0),s.createVNode(hs,{class:s.normalizeClass(["table_main",{"t_table_self-filling":l.isTTableSelfFilling}]),style:s.normalizeStyle(l.tablePageStyle)},{default:s.withCtx(()=>[s.createVNode(wd,s.mergeProps({columnSetting:l.columnSetting,name:l.name,...l.$attrs},{isSlotToolbar:t("toolbar"),isSlotTitle:t("title"),ref_key:"TTablePage",ref:i}),s.createSlots({_:2},[s.renderList(s.unref(n),(u,d)=>({name:d,fn:s.withCtx(f=>[s.renderSlot(l.$slots,d,s.normalizeProps(s.guardReactiveProps(f)),void 0,!0)])}))]),1040,["isSlotToolbar","isSlotTitle"])]),_:3},8,["class","style"]),s.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},8,["style"]),s.renderSlot(l.$slots,"footer",{},void 0,!0)]))}}),kk="",Od=ot(Ot(Jw,[["__scopeId","data-v-ed2e539b"]])),Qw=s.defineComponent({name:"TDatePicker",__name:"index",props:{modelValue:{},plusTime:{type:Boolean,default:!1},type:{default:"date"},shortcuts:{},isPickerOptions:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(o,{expose:r,emit:n}){const t=o,e=n,a=s.useAttrs(),i=s.useSlots();let l=s.computed({get(){return t.modelValue},set(m){e("update:modelValue",m)}});const c=s.ref(),u=s.computed(()=>({...{date:{"value-format":"YYYY-MM-DD",placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F"},dates:{"value-format":"YYYY-MM-DD",placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F"},week:{format:"YYYY \u7B2C ww \u5468",placeholder:"\u8BF7\u9009\u62E9\u5468"},month:{"value-format":"YYYY-MM",format:"YYYY-MM",placeholder:"\u8BF7\u9009\u62E9\u6708"},months:{"value-format":"YYYY-MM",format:"YYYY-MM",placeholder:"\u8BF7\u9009\u62E9\u6708"},year:{"value-format":"YYYY",format:"YYYY",placeholder:"\u8BF7\u9009\u62E9\u5E74"},years:{"value-format":"YYYY",format:"YYYY",placeholder:"\u8BF7\u9009\u62E9\u5E74"},daterange:{"value-format":"YYYY-MM-DD","range-separator":"~","start-placeholder":"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F"},monthrange:{"value-format":"YYYY-MM","range-separator":"~","start-placeholder":"\u8BF7\u9009\u62E9\u5F00\u59CB\u6708\u4EFD","end-placeholder":"\u8BF7\u9009\u62E9\u7ED3\u675F\u6708\u4EFD"},datetime:{format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4"},datetimerange:{format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss","range-separator":"~","start-placeholder":"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F"}}[t.type]||{},...a})),d=s.reactive({dateOptions:t.shortcuts}),f=m=>({date:[{text:"\u4ECA\u5929",value:new Date},{text:"\u6628\u5929",value:()=>h(new Date,1)},{text:"\u4E00\u5468\u524D",value:()=>h(new Date,7)}],daterange:[{text:"\u6700\u8FD1\u4E00\u5468",value:()=>[h(new Date,7),new Date]},{text:"\u6700\u8FD1\u4E00\u4E2A\u6708",value:()=>[h(new Date,30),new Date]},{text:"\u6700\u8FD1\u4E09\u4E2A\u6708",value:()=>[h(new Date,90),new Date]}],monthrange:[{text:"\u672C\u6708",value:[new Date,new Date]},{text:"\u4ECA\u5E74\u81F3\u4ECA",value:()=>[new Date(new Date().getFullYear(),0),new Date]},{text:"\u6700\u8FD1\u516D\u4E2A\u6708",value:()=>[p(new Date,6),new Date]}],datetime:[{text:"\u4ECA\u5929",value:new Date},{text:"\u6628\u5929",value:()=>h(new Date,1)},{text:"\u4E00\u5468\u524D",value:()=>h(new Date,7)}],datetimerange:[{text:"\u6700\u8FD1\u4E00\u5468",value:()=>[h(new Date,7),new Date]},{text:"\u6700\u8FD1\u4E00\u4E2A\u6708",value:()=>[h(new Date,30),new Date]},{text:"\u6700\u8FD1\u4E09\u4E2A\u6708",value:()=>[h(new Date,90),new Date]}]})[m]||[],h=(m,_)=>{const b=new Date(m);return b.setDate(b.getDate()-_),b},p=(m,_)=>{const b=new Date(m);return b.setMonth(b.getMonth()-_),b},v=m=>{if(t.type==="daterange"&&m){let[_,b]=m;t.plusTime&&(_+=" 00:00:00",b+=" 23:59:59"),l.value=[_,b],e("change",[_,b]),c.value.getElementsByClassName("el-range-input")[0].blur(),c.value.getElementsByClassName("el-range-input")[1].blur()}else e("change",m),t.type.includes("range")?(c.value.getElementsByClassName("el-range-input")[0].blur(),c.value.getElementsByClassName("el-range-input")[1].blur()):c.value.getElementsByClassName("el-input__inner")[0].blur()};return t.isPickerOptions&&(d.dateOptions=f(t.type)),s.watch(()=>t.shortcuts,m=>{t.isPickerOptions?d.dateOptions=f(t.type):d.dateOptions=m},{deep:!0}),r({state:d,clear:()=>{e("update:modelValue",null)}}),(m,_)=>{const b=s.resolveComponent("el-date-picker");return s.openBlock(),s.createElementBlock("div",{class:"t-date-picker",ref_key:"DatePicker",ref:c},[s.createVNode(b,s.mergeProps({type:m.type,modelValue:s.unref(l),"onUpdate:modelValue":_[0]||(_[0]=y=>s.isRef(l)?l.value=y:l=y),shortcuts:d.dateOptions,onChange:v},u.value),s.createSlots({_:2},[s.renderList(s.unref(i),(y,w)=>({name:w,fn:s.withCtx(S=>[s.renderSlot(m.$slots,w,s.normalizeProps(s.guardReactiveProps(S)),void 0,!0)])}))]),1040,["type","modelValue","shortcuts"])],512)}}}),xk="",Ld=ot(Ot(Qw,[["__scopeId","data-v-e6757e65"]])),Id=ot(s.defineComponent({name:"TRadio",__name:"index",props:{type:{type:String,validator:o=>["radio","button"].includes(o),default:"radio"},options:{type:Array,default:()=>[]},size:{type:String,validator:o=>["large","default","small"].includes(o),default:"default"},border:{type:Boolean,default:!1},props:{type:Object,default:()=>({})}},setup(o){const r=o,n=s.computed(()=>{var a;return(a={radio:"el-radio",button:"el-radio-button"}[r.type])!=null?a:"el-radio"}),t=s.ref({value:"value",label:"label",disabled:"disabled",...r.props});return(e,a)=>{const i=s.resolveComponent("el-radio-group");return s.openBlock(),s.createBlock(i,s.mergeProps(e.$attrs,{size:o.size}),{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default",{},()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.options,(l,c)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.value),s.mergeProps({ref_for:!0},l,{key:c,value:l[t.value.value],label:l[t.value.value],border:o.border,disabled:l[t.value.disabled]}),{default:s.withCtx(()=>[s.renderSlot(e.$slots,l.slot,s.mergeProps({ref_for:!0},l),()=>[s.createTextVNode(s.toDisplayString(l[t.value.label]),1)])]),_:2},1040,["value","label","border","disabled"]))),128))])]),_:3},16,["size"])}}})),Md=ot(s.defineComponent({name:"TCheckbox",__name:"index",props:{type:{type:String,validator:o=>["check","button"].includes(o),default:"check"},options:{type:Array,default:()=>[]},size:{type:String,validator:o=>["large","default","small"].includes(o),default:"default"},border:{type:Boolean,default:!1},props:{type:Object,default:()=>({})}},setup(o){const r=o,n=s.computed(()=>{var a;return(a={check:"el-checkbox",button:"el-checkbox-button"}[r.type])!=null?a:"el-checkbox"}),t=s.ref({value:"value",label:"label",disabled:"disabled",...r.props});return(e,a)=>{const i=s.resolveComponent("el-checkbox-group");return s.openBlock(),s.createBlock(i,s.mergeProps(e.$attrs,{size:o.size}),{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default",{},()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.options,(l,c)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.value),s.mergeProps({ref_for:!0},l,{key:c,value:l[t.value.value],border:o.border,disabled:l[t.value.disabled]}),{default:s.withCtx(()=>[s.renderSlot(e.$slots,l.slot,s.mergeProps({ref_for:!0},l),()=>[s.createTextVNode(s.toDisplayString(l[t.value.label]),1)])]),_:2},1040,["value","border","disabled"]))),128))])]),_:3},16,["size"])}}})),Zw=["id"],qw=s.defineComponent({name:"TChart",__name:"index",props:{options:{default:()=>({})},id:{default:()=>Math.random().toString(36).substring(2,8)},theme:{default:""},isEmpty:{type:[Boolean,Function],default:!1},description:{default:"\u6682\u65E0\u6570\u636E"}},setup(o,{emit:r}){const{proxy:n}=s.getCurrentInstance(),t=o,e=s.ref(),a=s.ref(),i=r,l=Object.entries(s.useAttrs()),c=()=>{a.value=s.markRaw(n.$echarts.init(e.value,t.theme)),d(t.options),i("chart",a.value),l.forEach(([h,p])=>{if(h.startsWith("on")&&!h.startsWith("onChart")){const v=d0(h).substring(3);a.value.on(v,(...g)=>i(v,...g))}}),t0(e.value,u)},u=fs(()=>{var h;(h=a.value)==null||h.resize()},300,!0),d=fs(async h=>{!a.value||(a.value.setOption(h,!0,!0),await s.nextTick(),u())},300,!0),f=s.computed(()=>typeof t.isEmpty=="function"?t.isEmpty(t.options):t.isEmpty);return s.watch(()=>t.options,async h=>{await s.nextTick(),d(h)},{deep:!0}),s.watch(()=>t.theme,async()=>{a.value.dispose(),c()}),s.onMounted(()=>{c()}),s.onBeforeUnmount(()=>{a.value.dispose(),a.value=null}),(h,p)=>{const v=s.resolveComponent("el-empty");return s.openBlock(),s.createElementBlock("div",s.mergeProps({class:"t-chart"},h.$attrs),[s.withDirectives(s.createElementVNode("div",{class:"t-chart-container",id:h.id,ref_key:"echartRef",ref:e},null,8,Zw),[[s.vShow,!f.value]]),f.value?s.renderSlot(h.$slots,"empty",{key:0},()=>[s.createVNode(v,s.mergeProps(h.$attrs,{description:h.description}),null,16,["description"])],!0):s.createCommentVNode("",!0),s.renderSlot(h.$slots,"default",{},void 0,!0)],16)}}}),Pk="",Nd=ot(Ot(qw,[["__scopeId","data-v-71c380d8"]])),$w={class:"t_tabs"},eb=s.defineComponent({name:"TTabs",__name:"index",props:{tabs:{default:()=>[]}},emits:["tabsChange"],setup(o,{expose:r,emit:n}){const t=o,e=s.useSlots(),a=s.ref(t.tabs&&t.tabs[0].key);return r({setSelectedTab:l=>{a.value=l}}),(l,c)=>{const u=s.resolveComponent("el-tab-pane"),d=s.resolveComponent("el-tabs");return s.openBlock(),s.createElementBlock("div",$w,[s.createVNode(d,s.mergeProps({modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=f=>a.value=f)},l.$attrs),s.createSlots({default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.tabs,f=>(s.openBlock(),s.createBlock(u,s.mergeProps({key:f.key,ref_for:!0},{name:f.key,label:f.title,...f.bind}),s.createSlots({default:s.withCtx(()=>[s.renderSlot(l.$slots,f.key,{},void 0,!0)]),_:2},[s.renderList(s.unref(e),(h,p)=>({name:p,fn:s.withCtx(v=>[s.renderSlot(l.$slots,p,s.mergeProps({ref_for:!0},v),void 0,!0)])}))]),1040))),128))]),_:2},[s.renderList(s.unref(e),(f,h)=>({name:h,fn:s.withCtx(p=>[s.renderSlot(l.$slots,h,s.normalizeProps(s.guardReactiveProps(p)),void 0,!0)])}))]),1040,["modelValue"])])}}}),Lk="",Rd=ot(Ot(eb,[["__scopeId","data-v-f4ee3aec"]])),tb={class:"t_select_icon"},nb={class:"icon-list"},ab=["onClick"],ob=s.defineComponent({name:"TSelectIcon",__name:"index",props:{modelValue:{default:""},prefixIcon:{default:"Search"},selectBind:{default:()=>({})},isShowSearch:{type:Boolean,default:!0},isShowIcon:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(o,{expose:r,emit:n}){const t=o,e=n;let a=s.computed({get(){return t.modelValue},set(g){e("update:modelValue",g)}});const i=s.useAttrs(),l=s.computed(()=>{const g={"prefix-icon":p[t.prefixIcon],placeholder:"\u8BF7\u9009\u62E9\u56FE\u6807",dialogTitle:"\u8BF7\u9009\u62E9\u56FE\u6807",searchPlaceholder:"\u641C\u7D22\u56FE\u6807",emptyDescription:"\u672A\u641C\u7D22\u5230\u60A8\u8981\u627E\u7684\u56FE\u6807",clearable:!0,width:"50%",...t.selectBind};return{...i,...g}}),c=s.ref(!1),u=g=>{c.value=!1,a.value=g.name,e("update:modelValue",g.name),e("select",g.name)},d=s.ref(),f=()=>{a.value="",e("update:modelValue",""),setTimeout(()=>d.value.blur(),0)},h=s.ref(""),p=Eu,v=s.computed(()=>{if(!h.value)return Eu;let g={};for(const m in p)m.toLowerCase().indexOf(h.value.toLowerCase())>-1&&(g[m]=p[m]);return g});return r({clearIcon:f}),(g,m)=>{const _=s.resolveComponent("el-button"),b=s.resolveComponent("el-input"),y=s.resolveComponent("el-scrollbar"),w=s.resolveComponent("el-empty"),S=s.resolveComponent("el-dialog");return s.openBlock(),s.createElementBlock("div",tb,[s.createVNode(b,s.mergeProps({ref_key:"inputRef",ref:d,modelValue:s.unref(a),"onUpdate:modelValue":m[0]||(m[0]=D=>s.isRef(a)?a.value=D:a=D)},l.value,{onClear:f,onClick:m[1]||(m[1]=()=>{c.value=!0,h.value=""})}),s.createSlots({_:2},[g.isShowIcon?{name:"append",fn:s.withCtx(()=>[s.createVNode(_,{icon:s.unref(p)[g.modelValue]},null,8,["icon"])]),key:"0"}:void 0]),1040,["modelValue"]),s.createVNode(S,{modelValue:c.value,"onUpdate:modelValue":m[3]||(m[3]=D=>c.value=D),title:l.value.dialogTitle,draggable:"",width:l.value.width},{default:s.withCtx(()=>[g.isShowSearch?(s.openBlock(),s.createBlock(b,{key:0,modelValue:h.value,"onUpdate:modelValue":m[2]||(m[2]=D=>h.value=D),placeholder:l.value.searchPlaceholder,clearable:"","prefix-icon":wu},null,8,["modelValue","placeholder","prefix-icon"])):s.createCommentVNode("",!0),Object.keys(v.value).length?(s.openBlock(),s.createBlock(y,{key:1},{default:s.withCtx(()=>[s.createElementVNode("div",nb,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(v.value,D=>(s.openBlock(),s.createElementBlock("div",{key:D,class:s.normalizeClass(["icon-item",{"icon-active":D.name==s.unref(a)}]),onClick:C=>u(D)},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(D))),s.createElementVNode("span",null,s.toDisplayString(D.name),1)],10,ab))),128))])]),_:1})):(s.openBlock(),s.createBlock(w,{key:2,description:l.value.emptyDescription},null,8,["description"]))]),_:1},8,["modelValue","title","width"])])}}}),Mk="",Vd=ot(Ot(ob,[["__scopeId","data-v-b83700b5"]])),rb={key:0},ib={key:0},Fd=ot(s.defineComponent({name:"TInput",__name:"index",props:{modelValue:{default:""},placeholder:{default:"\u8BF7\u8F93\u5165"},decimalLimit:{default:2},inputType:{default:"text"},appendTitle:{default:"\u5143"},showThousands:{type:Boolean,default:!1},isTip:{type:Boolean,default:!1},isShowErrorTip:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(o,{emit:r}){const n=o,t=r,e=s.useSlots();let a=s.computed({get(){return n.modelValue},set(p){t("update:modelValue",p)}});const i=()=>{let p=a.value;const v=(g,m)=>m?m(g):g;switch(n.inputType){case"amount":case"decimal":p=v(Number(a.value),g=>d(g,n.decimalLimit));break;case"phone":p=v(a.value.toString(),l);break;case"integer":p=v(a.value.toString(),u);break;case"idCard":p=v(a.value.toString(),c);break;default:p=a.value}a.value=p},l=p=>/^1[3456789]\d{9}$/.test(p)?p:(n.isShowErrorTip&&_t.ElMessage.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801"),""),c=p=>/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(p)?p:(n.isShowErrorTip&&_t.ElMessage.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801"),""),u=p=>/^\d+$/.test(p)?p:(n.isShowErrorTip&&_t.ElMessage.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6574\u6570"),""),d=(p,v)=>p?n.showThousands?p.toFixed(v).toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):p.toFixed(v):(n.isShowErrorTip&&_t.ElMessage.error(`\u8BF7\u8F93\u5165\u6B63\u786E\u7684${n.inputType=="amount"?"\u91D1\u989D":"\u6570\u5B57"}`),""),f=(p,v=2)=>{if(/((^[1-9]\d*)|^0)(\.\d+)?$/.test(p))if(v=v>0&&v<=20?v:2,p||p===0){p=parseFloat((p+"").replace(/^\d\.-/g,"")).toFixed(v)+"";const m=p.split(".")[0].split("").reverse(),_=p.split(".")[1];let b="";for(let y=0;y<m.length;y++)b+=m[y]+((y+1)%3===0&&y+1!==m.length?",":"");return p?"\uFFE5 "+b.split("").reverse().join("")+"."+_:""}else return"";else return""},h=p=>{if(/((^[1-9]\d*)|^0)(\.\d{0,2}){0,1}$/.test(p)){let g=["\u89D2","\u5206"],m=["\u96F6","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396"],_=[["\u5143","\u4E07","\u4EBF","\u5146"],["","\u62FE","\u4F70","\u4EDF"]],b=p<0?"\u6B20":"";p=Math.abs(p);let y="";g.forEach((w,S)=>{y+=(m[Math.floor(p*10*Math.pow(10,S))%10]+w).replace(/零./,"")}),y=y||"\u6574",p=Math.floor(p);for(let w=0;w<_[0].length&&p>0;w++){let S="";for(let D=0;D<_[1].length&&p>0;D++)S=m[p%10]+_[1][D]+S,p=Math.floor(p/10);y=S.replace(/(零.)*零$/,"").replace(/^$/,"\u96F6")+_[0][w]+y}return b+y.replace(/(零.)*零元/,"\u5143").replace(/(零.)+/g,"\u96F6").replace(/^整$/,"\u96F6\u5143\u6574")}else return"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u91D1\u989D\u683C\u5F0F"};return(p,v)=>{const g=s.resolveComponent("el-input"),m=s.resolveComponent("el-tooltip");return p.isTip&&!p.showThousands?(s.openBlock(),s.createBlock(m,{key:0,effect:"dark",placement:"bottom-start"},{content:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(f(p.modelValue)),1),v[2]||(v[2]=s.createElementVNode("br",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(h(p.modelValue)),1)]),default:s.withCtx(()=>[s.createVNode(g,s.mergeProps({modelValue:s.unref(a),"onUpdate:modelValue":v[0]||(v[0]=_=>s.isRef(a)?a.value=_:a=_)},{placeholder:p.placeholder,clearable:!0,...p.$attrs},{onBlur:i}),s.createSlots({_:2},[s.renderList(s.unref(e),(_,b)=>({name:b,fn:s.withCtx(y=>[s.renderSlot(p.$slots,b,s.normalizeProps(s.guardReactiveProps(y)))])})),p.$slots.append||p.inputType==="amount"?{name:"append",fn:s.withCtx(()=>[p.inputType==="amount"?(s.openBlock(),s.createElementBlock("span",rb,s.toDisplayString(p.appendTitle),1)):s.renderSlot(p.$slots,"append",{key:1})]),key:"0"}:void 0]),1040,["modelValue"])]),_:3})):(s.openBlock(),s.createBlock(g,s.mergeProps({key:1,modelValue:s.unref(a),"onUpdate:modelValue":v[1]||(v[1]=_=>s.isRef(a)?a.value=_:a=_)},{placeholder:p.placeholder,clearable:!0,...p.$attrs},{onBlur:i}),s.createSlots({_:2},[s.renderList(s.unref(e),(_,b)=>({name:b,fn:s.withCtx(y=>[s.renderSlot(p.$slots,b,s.normalizeProps(s.guardReactiveProps(y)))])})),p.$slots.append||p.inputType==="amount"?{name:"append",fn:s.withCtx(()=>[p.inputType==="amount"?(s.openBlock(),s.createElementBlock("span",ib,s.toDisplayString(p.appendTitle),1)):s.renderSlot(p.$slots,"append",{key:1})]),key:"0"}:void 0]),1040,["modelValue"]))}}})),sb=s.defineComponent({name:"PgzCheckbox",__name:"index",props:{value:{type:[String,Number],default:void 0},dictCode:{type:String,default:""},useDicColor:{type:Boolean,default:!1},options:{type:Array,default:()=>[]}},emits:["change","update:value"],setup(o,{emit:r}){const n=o,t=r,e=s.ref([]),a=s.ref([]),i=async()=>{try{let d=n.dictCode;d.indexOf(",")>0&&d.indexOf(" ")>0&&(d=encodeURI(d));const h=(await To(`/sys/dictTool/getDictItems/${d}`,{})).data||[];h.length?e.value=h.map(p=>({value:p.value,label:p.text,color:p.color})):(console.error("getDictItems error:",h),e.value=[])}catch(d){console.error("Failed to load dictionary options:",d),e.value=[]}},l=async()=>{var d;if(((d=n.options)==null?void 0:d.length)>0){e.value=n.options;return}n.dictCode&&await i()},c=d=>{const f=d.join(",");t("update:value",f),t("change",f)},u=d=>{if(n.useDicColor){const f=e.value.find(h=>h.value==d);return(f==null?void 0:f.color)||null}return null};return s.watch(()=>n.value,d=>{!d&&d!==0?a.value=[]:a.value=String(d).split(",")},{immediate:!0}),s.watch([()=>n.dictCode,()=>n.options],()=>{l()},{immediate:!0}),(d,f)=>{const h=s.resolveComponent("el-checkbox"),p=s.resolveComponent("el-checkbox-group");return s.openBlock(),s.createBlock(p,s.mergeProps({modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=v=>a.value=v),onChange:c},d.$attrs),{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.value,(v,g)=>(s.openBlock(),s.createBlock(h,{key:g,label:v.value},{default:s.withCtx(()=>[s.createElementVNode("span",{class:s.normalizeClass([o.useDicColor&&u(v.value)?"colorText":""]),style:s.normalizeStyle({backgroundColor:u(v.value)})},s.toDisplayString(v.label),7)]),_:2},1032,["label"]))),128))]),_:1},16,["modelValue"])}}}),Vk="",Hd=ot(Ot(sb,[["__scopeId","data-v-e7df73f2"]])),lb=["innerHTML"],cb={class:"dialog-footer"},ub=s.defineComponent({name:"PgzHtmlPreviewModal",__name:"index",setup(o,{expose:r}){const n=s.ref(!1),t=s.ref(null),e=s.ref(""),a=s.ref(null),i=s.ref(),l=s.ref({fullscreen:!1,switchFullscreen:!0}),c=()=>{n.value=!1},u=()=>{n.value=!1},d=()=>{l.value.fullscreen=!l.value.fullscreen};return r({handleOpen:(h,p)=>{h?(t.value=h,a.value=p!=null?p:null,e.value=p!=null?p:""):(t.value="",a.value="",e.value=""),n.value=!0},onClose:c,cancel:u}),(h,p)=>{const v=s.resolveComponent("el-col"),g=s.resolveComponent("el-row"),m=s.resolveComponent("el-button"),_=s.resolveComponent("el-dialog");return s.openBlock(),s.createBlock(_,{ref_key:"dialogRef",ref:i,"close-on-click-modal":!0,title:e.value,width:"60%",modelValue:n.value,"onUpdate:modelValue":p[0]||(p[0]=b=>n.value=b),fullscreen:l.value.fullscreen,"destroy-on-close":!0,"before-close":u,draggable:!0,"close-on-press-escape":!0},{footer:s.withCtx(()=>[s.createElementVNode("div",cb,[l.value.fullscreen?(s.openBlock(),s.createBlock(m,{key:0,type:"primary",onClick:d},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(l.value.fullscreen?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"),1)]),_:1})):s.createCommentVNode("",!0)])]),default:s.withCtx(()=>[s.createVNode(g,{gutter:48},{default:s.withCtx(()=>[s.createVNode(v,{span:24},{default:s.withCtx(()=>[s.createElementVNode("div",{innerHTML:t.value},null,8,lb)]),_:1})]),_:1})]),_:1},8,["title","modelValue","fullscreen"])}}}),Hk="",zd=ot(Ot(ub,[["__scopeId","data-v-900385ab"]])),Ud="UI_CACHE_DB_DICT_DATA",db=(o,r)=>To(`/system/sys/dictTool/getDictItems/${o}`,r);function fb(o){if(localStorage.getItem(Ud))try{const r=JSON.parse(localStorage.getItem(Ud)||"{}");if(r[o])return r[o]}catch(r){console.warn("\u83B7\u53D6\u5B57\u5178\u7F13\u5B58\u6570\u636E\u5931\u8D25",r)}return null}const hb={class:"pgz-search-select-root",style:{width:"100%"}},pb={style:{padding:"4px 8px",cursor:"pointer"}},vb=s.defineComponent({name:"PgzSearchSelect",__name:"index",props:{modelValue:{default:void 0},pgzvalue:{default:void 0},disabled:{type:Boolean,default:!1},dictOptions:{default:()=>[]},async:{type:Boolean,default:!1},placeholder:{default:"\u8BF7\u9009\u62E9"},dict:{default:""},mhFields:{default:""},popContainer:{default:""},pageSize:{default:10},getPopupContainer:{type:Function,default:null},mode:{default:""},size:{default:"default"},emptyText:{default:"\u6682\u65E0\u6570\u636E"}},emits:["update:modelValue","change","update:pgzvalue"],setup(o,{expose:r,emit:n}){const t=(k,O)=>D2(k,O),e=o,a=n,i=s.ref(!1),l=s.ref(e.mode==="multiple"?[]:void 0),c=s.ref(e.mode==="multiple"?[]:void 0),u=s.ref([]);s.ref(0);const d=s.ref(!0),f=s.ref(""),h=s.ref(""),p=s.computed({get:()=>y.value?void 0:c.value,set:k=>{y.value||(c.value=k)}}),v=()=>{if(e.async)u.value=[];else if(e.dictOptions&&e.dictOptions.length>0)u.value=[...e.dictOptions];else if(e.dict){let k=e.dict;if(e.dict.indexOf("where")>0){const O=e.dict.split("where");k=O[0].trim()+","+e.dict.split(",")[1]+","+e.dict.split(",")[2]+","+encodeURIComponent(O[1])}if(e.dict.indexOf(",")===-1){const O=fb(e.dict);if(O){u.value=O;return}}db(k,null).then(O=>{O.success&&(u.value=O.result)})}else u.value=[]},g=k=>k?k.split(",").filter(O=>O):[],m=k=>!k||k.length===0?"":k.join(","),_=()=>{if(e.async)if(e.modelValue){let k=e.dict;const O=k.split(",");O&&O.length===4&&(O.pop(),k=O.join(","));const P=e.pgzvalue!==void 0?e.pgzvalue:e.modelValue,R=Array.isArray(P)?P.join(","):P;To(`/system/sys/dictTool/loadDictItem/${k}`,{key:R}).then(N=>{N.success&&(e.mode==="multiple"?N.result&&N.result.length>0?c.value=typeof P=="string"?g(P):P:c.value=[]:c.value=P)})}else e.pgzvalue?e.mode==="multiple"?c.value=typeof e.pgzvalue=="string"?g(e.pgzvalue):e.pgzvalue:c.value=e.pgzvalue:c.value=e.mode==="multiple"?[]:void 0;else e.pgzvalue!==void 0?e.mode==="multiple"?l.value=typeof e.pgzvalue=="string"?g(e.pgzvalue):e.pgzvalue:l.value=e.pgzvalue:e.modelValue===void 0||e.modelValue===null?l.value=e.mode==="multiple"?[]:void 0:l.value=e.modelValue},b=()=>{if(e.async&&e.pgzvalue){const k=e.pgzvalue.split(",");k.length>0&&(e.mode==="multiple"?c.value=k:c.value=k[0],w(k))}},y=s.ref(!1),w=k=>{if(!e.dict||k.length===0){i.value=!1,y.value=!1;return}i.value=!0,y.value=!0;let O=e.dict;const P=e.dict.split(",");P&&P.length==4&&(P.pop(),O=P.join(","));const R={pageNo:1,pageSize:e.pageSize,key:k.join(",")};To(`/system/sys/dictTool/loadDictItem/${O}`,R).then(N=>{if(N.success)if(Array.isArray(N.result)){const H=k;u.value=N.result.map((K,U)=>({value:H[U]||"",text:K}))}else u.value=N.result;i.value=!1,y.value=!1}).catch(()=>{i.value=!1,y.value=!1})},S=k=>{k&&d.value&&(d.value=!1,e.async&&((!e.pgzvalue||u.value.length>0)&&e.dict?C(""):e.dict||(u.value=[],D.value=!0)))},D=s.ref(!1),C=k=>{if(!e.dict){u.value=[],i.value=!1,D.value=!0;return}f.value=k,!(k===""&&D.value)&&(k&&h.value===k&&u.value.length>0||(h.value=k,i.value=!0,To(`/system/sys/dictTool/loadDict/${e.dict}`,{keyword:k,pageSize:e.pageSize}).then(O=>{i.value=!1,O.success?(Array.isArray(O.result)&&O.result.length===0?(console.log("\u63A5\u53E3\u8FD4\u56DE\u7A7A\u6570\u7EC4\uFF0C\u5C06\u663E\u793A\u6682\u65E0\u6570\u636E"),u.value=[]):u.value=O.result||[],k===""&&(D.value=!0)):_t.ElMessage.error(O.message||"\u52A0\u8F7D\u6570\u636E\u5931\u8D25")}).catch(()=>{i.value=!1,_t.ElMessage.error("\u52A0\u8F7D\u6570\u636E\u5931\u8D25")})))},B=k=>{const O=k===null?e.mode==="multiple"?[]:void 0:k;if(a("update:modelValue",O),e.mode==="multiple"){const P=O&&O.length?m(O):"";a("update:pgzvalue",P)}else a("update:pgzvalue",O);a("change",O)},A=k=>{const O=k===null?e.mode==="multiple"?[]:void 0:k;if(a("update:modelValue",O),e.mode==="multiple"){const P=O&&O.length?m(O):"";a("update:pgzvalue",P)}else a("update:pgzvalue",O);a("change",O)},L=()=>{e.mode==="multiple"&&u.value.length>0&&(l.value=u.value.map(k=>k.value),A(l.value))},I=()=>{l.value=e.mode==="multiple"?[]:void 0,A(l.value)},E=k=>typeof e.getPopupContainer=="function"?e.getPopupContainer(k):e.popContainer?document.querySelector(e.popContainer):k.parentNode;s.watch(()=>e.modelValue,k=>{k==null?e.mode==="multiple"?(l.value=[],c.value=[]):(l.value=void 0,c.value=void 0):JSON.stringify(k)!==JSON.stringify(l.value)&&JSON.stringify(k)!==JSON.stringify(c.value)&&_()},{immediate:!0}),s.watch(()=>e.pgzvalue,k=>{if(k==null||k==="")e.mode==="multiple"?(l.value=[],c.value=[]):(l.value=void 0,c.value=void 0);else if(e.mode==="multiple"){const O=typeof k=="string"?g(k):k;e.async?JSON.stringify(O)!==JSON.stringify(c.value)&&(c.value=O):JSON.stringify(O)!==JSON.stringify(l.value)&&(l.value=O)}else e.async?k!==c.value&&(c.value=k):k!==l.value&&(l.value=k)},{immediate:!0}),s.watch(()=>e.dict,()=>{console.log(2222),e.async?(u.value=[],D.value=!1,C("")):v()}),s.watch(()=>e.mhFields,()=>{v()}),s.watch(()=>e.dictOptions,k=>{k&&k.length>0&&(u.value=[...k])},{deep:!0}),s.onMounted(()=>{e.async?b():v()});const x=t(C,300);return r({setCurrentDictOptions:k=>{u.value=k},getCurrentDictOptions:()=>u.value}),s.onUnmounted(()=>{D.value=!1}),(k,O)=>{const P=s.resolveComponent("el-option"),R=s.resolveComponent("el-select"),N=s.resolveComponent("el-button"),H=s.resolveComponent("el-divider");return s.openBlock(),s.createElementBlock("div",hb,[k.async?(s.openBlock(),s.createBlock(R,{key:0,modelValue:p.value,"onUpdate:modelValue":O[0]||(O[0]=K=>p.value=K),disabled:k.disabled||y.value,placeholder:y.value?"\u52A0\u8F7D\u4E2D...":k.placeholder,"popper-append-to-body":!1,"popper-container":E,style:{width:"100%"},filterable:!0,remote:!0,"remote-method":s.unref(x),loading:i.value,multiple:k.mode==="multiple",size:k.size,"empty-text":k.emptyText,clearable:"",onChange:B,onVisibleChange:S},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u.value,K=>(s.openBlock(),s.createBlock(P,{key:K.value,label:K.text,value:K.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled","placeholder","remote-method","loading","multiple","size","empty-text"])):(s.openBlock(),s.createBlock(R,{key:1,modelValue:l.value,"onUpdate:modelValue":O[1]||(O[1]=K=>l.value=K),disabled:k.disabled,placeholder:k.placeholder,"popper-append-to-body":!1,"popper-container":E,style:{width:"100%"},filterable:!0,loading:i.value,multiple:k.mode==="multiple","collapse-tags":"","collapse-tags-tooltip":"","max-collapse-tags":3,size:k.size,"empty-text":k.emptyText,clearable:"",onChange:A,onVisibleChange:S},s.createSlots({default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u.value,K=>(s.openBlock(),s.createBlock(P,{key:K.value,label:K.text,value:K.value},null,8,["label","value"]))),128))]),_:2},[k.mode==="multiple"?{name:"footer",fn:s.withCtx(()=>[s.createElementVNode("div",pb,[s.createVNode(N,{type:"primary",link:"",onClick:L},{default:s.withCtx(()=>O[2]||(O[2]=[s.createTextVNode("\u5168\u9009")])),_:1}),s.createVNode(N,{type:"primary",link:"",onClick:I},{default:s.withCtx(()=>O[3]||(O[3]=[s.createTextVNode("\u6E05\u7A7A")])),_:1})]),s.createVNode(H,{style:{margin:"4px 0"}})]),key:"0"}:void 0]),1032,["modelValue","disabled","placeholder","loading","multiple","size","empty-text"]))])}}}),Uk="",jd=ot(Ot(vb,[["__scopeId","data-v-b6ef6fb1"]])),mb={modelValue:{type:Object,default:()=>({})},placeholder:{type:String,default:"\u8BF7\u9009\u62E9\u5750\u6807"},detail:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},mapType:{type:Number,default:0},zoom:{type:Number,default:12},ps:{type:Number,default:0}},gb={class:"pgz-map"},yb={key:0,class:"dialog-footer"},_b={key:0,class:"pgz-map__content"},wb={class:"pgz-map__content-box"},bb=s.defineComponent({name:"PgzTdtMark",__name:"index",props:mb,emits:["update:modelValue"],setup(o,{expose:r,emit:n}){const t=o,e=n,a=s.ref({address:"",keyWord:"",poi:{},marker:null,map:null,geocode:null,localsearch:null,box:!1,oldPoi:{},loading:!1}),i=()=>{a.value.map&&(a.value.map.clearOverLays(),a.value.map=null),a.value.marker&&(a.value.marker=null),a.value.geocode&&(a.value.geocode=null),a.value.localsearch&&(a.value.localsearch=null)},l=s.computed(()=>a.value.poi.longitude),c=s.computed(()=>a.value.poi.latitude),u=s.computed(()=>a.value.poi.formattedAddress),d=s.computed(()=>t.detail?"\u67E5\u770B\u5750\u6807":"\u9009\u62E9\u5750\u6807"),f=s.computed(()=>t.detail?d.value:a.value.poi.longitude!==void 0&&a.value.poi.latitude!==void 0?"\u91CD\u65B0\u9009\u62E9":"\u9009\u62E9\u5750\u6807");s.watch(()=>t.modelValue,I=>{console.log("Props modelValue changed:",I),I&&(a.value.poi={formattedAddress:I.formattedAddress,longitude:I.longitude,latitude:I.latitude})},{immediate:!0,deep:!0});const h=I=>{switch(console.log(I),y(),parseInt(I.getResultType())){case 1:p(I.getPois());break;case 2:v(I.getStatistics());break;case 3:_(I.getArea());break;case 4:g(I.getSuggests());break;case 5:m(I.getLineData());break}},p=I=>{if(I){const E=[];let x="";I.forEach((k,O)=>{const P=k.lonlat.split(","),R=new window.rawWindow.T.LngLat(P[0],P[1]),N=new window.rawWindow.T.Marker(R);a.value.map.addOverLay(N);const H=`\u540D\u79F0: ${k.name}<br/>\u5730\u5740: ${k.address}`,K=new window.rawWindow.T.InfoWindow(H,{autoPan:!0});N.addEventListener("click",()=>{N.openInfoWindow(K)}),x+=`<p>${O+1}. <a href="javascript:void(0);" @click="() => showPosition(marker, infoHtml)">${k.name}</a></p>`,E.push(R)}),a.value.map.setViewport(E),x+=`<p>\u5171${a.value.localsearch.getCountNumber()}\u6761\u8BB0\u5F55\uFF0C\u5206${a.value.localsearch.getCountPage()}\u9875, \u5F53\u524D\u7B2C${a.value.localsearch.getPageIndex()}\u9875</p>`,a.value.searchResultHtml=x,a.value.resultVisible=!0}},v=I=>{a.value.statisticsVisible=!0},g=I=>{a.value.suggestsVisible=!0},m=I=>{a.value.lineDataVisible=!0},_=I=>{if(I){if(I.points){const E=[];I.points.forEach(k=>{const O=[];k.region.split(",").forEach(N=>{const H=N.split(" "),K=new window.rawWindow.T.LngLat(H[0],H[1]);O.push(K),E.push(K)});const R=new window.rawWindow.T.Polyline(O,{color:"blue",weight:3,opacity:1,lineStyle:"dashed"});a.value.map.addOverLay(R)}),a.value.map.setViewport(E)}if(I.lonlat){const E=I.lonlat.split(",");a.value.map.panTo(new window.rawWindow.T.LngLat(E[0],E[1]))}}},b=I=>{a.value.poi=I,a.value.box=!0},y=()=>{a.value.map&&a.value.map.clearOverLays()},w=()=>{a.value.keyWord.trim()!==""&&(y(),a.value.localsearch.search(a.value.keyWord))},S=()=>{a.value.loading=!1,a.value.box=!1,a.value.poi=a.value.oldPoi,i()},D=()=>{a.value.loading=!1,a.value.box=!1,e("update:modelValue",a.value.poi)},C=()=>{a.value.box=!0},B=(I,E)=>{if(a.value.map){const x=new window.rawWindow.T.Icon({iconUrl:"https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",iconSize:new window.rawWindow.T.Point(19,27),iconAnchor:new window.rawWindow.T.Point(10,25)});a.value.marker=new window.rawWindow.T.Marker(new window.rawWindow.T.LngLat(I,E),{icon:x}),a.value.map.addOverLay(a.value.marker)}},A=I=>{if(a.value.loading=!0,I.getStatus()==0){a.value.poi={formattedAddress:I.getAddress(),longitude:I.getLocationPoint().getLng(),latitude:I.getLocationPoint().getLat()};const E=new window.rawWindow.T.InfoWindow,x=`<div class="pgz_info_content${t.ps}">
|
|
27
|
-
<div>${I.getAddress()||""}</div>
|
|
28
|
-
</div>`;E.setContent(x),a.value.marker.openInfoWindow(E)}else _t.ElMessage.warning("\u6839\u636E\u7ECF\u7EAC\u5EA6\u67E5\u8BE2\u5730\u5740\u5931\u8D25");a.value.loading=!1},L=()=>{var O;switch(a.value.loading=!1,a.value.map=new window.rawWindow.T.Map("map__container"),t.mapType){case 1:a.value.map.setMapType(window.rawWindow.TMAP_SATELLITE_MAP);break;case 2:a.value.map.setMapType(window.rawWindow.TMAP_HYBRID_MAP);break;case 3:a.value.map.setMapType(window.rawWindow.TMAP_TERRAIN_MAP);break;case 4:a.value.map.setMapType(window.rawWindow.TMAP_TERRAIN_HYBRID_MAP);break;default:a.value.map.setMapType(window.rawWindow.TMAP_NORMAL_MAP)}let I=new window.rawWindow.T.LngLat(116.40969,39.89945);l.value&&c.value&&(I=new window.rawWindow.T.LngLat(l.value,c.value)),a.value.map.centerAndZoom(I,t.zoom);const E={pageCapacity:10,onSearchComplete:h};a.value.localsearch=new window.rawWindow.T.LocalSearch(a.value.map,E),document.getElementsByClassName("tdt-control-copyright tdt-control")[0].style.display="none",a.value.map.disableScrollWheelZoom(),(O=document.getElementById("map__container"))==null||O.addEventListener("wheel",P=>{P.preventDefault(),(P.deltaY>0?"up":"down")==="up"?a.value.map.zoomOut():a.value.map.zoomIn()});const x=new window.rawWindow.T.Control.Scale;x.setPosition(window.rawWindow.T_ANCHOR_BOTTOM_RIGHT),a.value.map.addControl(x);const k=new window.rawWindow.T.Control.Zoom;k.setPosition(window.rawWindow.T_ANCHOR_BOTTOM_RIGHT),a.value.map.addControl(k),a.value.geocode=new window.rawWindow.T.Geocoder,a.value.map.addEventListener("click",P=>{y();const R=P.lnglat,N=R.getLng(),H=R.getLat();B(N,H),a.value.geocode.getLocation(P.lnglat,A)})};return s.watch(()=>a.value.box,I=>{I&&(console.log("Box opened:",I),console.log("Current POI:",a.value.poi),a.value.oldPoi=a.value.poi,s.nextTick(()=>{L(),l.value&&c.value&&(B(l.value,c.value),a.value.geocode&&a.value.geocode.getLocation(new window.rawWindow.T.LngLat(l.value,c.value),A))}))},{immediate:!0}),s.onBeforeUnmount(()=>{i()}),r({showDetail:b}),(I,E)=>{const x=s.resolveComponent("el-button"),k=s.resolveComponent("el-input"),O=s.resolveComponent("el-col"),P=s.resolveComponent("el-row"),R=s.resolveComponent("el-form"),N=s.resolveComponent("el-dialog"),H=s.resolveDirective("loading");return s.openBlock(),s.createElementBlock("div",gb,[I.detail?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(R,{key:0,ref:"formRef"},{default:s.withCtx(()=>[s.createVNode(P,null,{default:s.withCtx(()=>[s.createVNode(O,{span:24},{default:s.withCtx(()=>[s.createVNode(k,{"model-value":u.value,readonly:!0,placeholder:I.placeholder,class:"input-with-search"},{append:s.withCtx(()=>[s.createVNode(x,{onClick:C},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(f.value),1)]),_:1})]),_:1},8,["model-value","placeholder"])]),_:1})]),_:1})]),_:1},512)),s.createVNode(N,{title:d.value,width:"60%",modelValue:a.value.box,"onUpdate:modelValue":E[1]||(E[1]=K=>a.value.box=K),"close-on-click-modal":I.closable,"before-close":S,top:"20px","destroy-on-close":!0},{footer:s.withCtx(()=>[I.detail?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",yb,[s.createVNode(x,{onClick:S},{default:s.withCtx(()=>E[2]||(E[2]=[s.createTextVNode("\u5173\u95ED")])),_:1}),s.createVNode(x,{type:"primary",onClick:D},{default:s.withCtx(()=>E[3]||(E[3]=[s.createTextVNode("\u786E\u8BA4")])),_:1})]))]),default:s.withCtx(()=>[s.withDirectives((s.openBlock(),s.createElementBlock("div",null,[a.value.box?(s.openBlock(),s.createElementBlock("div",_b,[I.detail?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(k,{key:0,modelValue:a.value.keyWord,"onUpdate:modelValue":E[0]||(E[0]=K=>a.value.keyWord=K),placeholder:"\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22",class:"input-with-search",style:{"margin-bottom":"10px"}},{append:s.withCtx(()=>[s.createVNode(x,{onClick:w},{default:s.withCtx(()=>E[4]||(E[4]=[s.createTextVNode("\u641C\u7D22")])),_:1})]),_:1},8,["modelValue"])),s.createElementVNode("div",wb,[E[5]||(E[5]=s.createElementVNode("div",{style:{left:"0",top:"0","z-index":"999",position:"absolute","padding-left":"4px","line-height":"4px","padding-top":"2px"}},[s.createElementVNode("a",{href:"http://geefox.pusdn.com",target:"_blank",style:{"font-size":"10px !important",color:"lightgray","-webkit-text-size-adjust":"none",zoom:"0.43","text-decoration":"none"}},"Powered By PUSDN")],-1)),s.createElementVNode("div",{id:"map__container",class:s.normalizeClass({"ps-2":I.ps===1||I.ps===2,"pgz-map__content-container":!0}),tabindex:"0"},null,2),E[6]||(E[6]=s.createElementVNode("div",{id:"map__result",class:"pgz-map__content-result"},null,-1))])])):s.createCommentVNode("",!0)])),[[H,a.value.loading]])]),_:1},8,["title","modelValue","close-on-click-modal"])])}}}),Gk="",Gd=ot(Ot(bb,[["__scopeId","data-v-1fb8555a"]])),Eb={closable:{type:Boolean,default:!1},mapType:{type:Number,default:0},zoom:{type:Number,default:12},size:{type:String,default:void 0},placeholder:{type:String,default:"\u8BF7\u5728\u5730\u56FE\u4E0A\u7ED8\u5236"},detail:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},modelValue:{type:Object,default:()=>({})}},Cb={class:"pgz-map"},Sb={class:"dialog-title"},kb={key:0,class:"dialog-footer"},Tb={key:0,class:"pgz-map__content"},xb={key:1,class:"button-card"},Bb=s.defineComponent({name:"PgzTdtPloygon",__name:"index",props:Eb,emits:["update:modelValue"],setup(o,{expose:r,emit:n}){const t=o,e=n,a=s.ref({address:"",keyWord:"",promptsVisible:!1,statisticsVisible:!1,suggestsVisible:!1,lineDataVisible:!1,resultVisible:!1,promptHtml:"",statisticsHtml:"",suggestsHtml:"",lineDataHtml:"",searchResultHtml:"",pageId:1,poi:{},itemPolygon:null,marker:null,map:null,localsearch:null,box:!1,oldPoi:{},loading:!0,allData:{},oldAllData:{},polyEditor:null,currentPolygon:null}),i=s.computed(()=>""),l=s.computed(()=>t.detail?"\u67E5\u770B":"\u7ED8\u5236\u591A\u8FB9\u5F62"),c=s.computed(()=>{var O,P;return t.detail?l.value:((P=(O=a.value.allData)==null?void 0:O.allPolygonArr)==null?void 0:P.length)>0?"\u91CD\u65B0\u7ED8\u5236":"\u7ED8\u5236\u591A\u8FB9\u5F62"}),u=s.computed(()=>{var O,P;return((P=(O=a.value.allData)==null?void 0:O.allPolygonArr)==null?void 0:P.length)>0?"\u5DF2\u7ECF\u7ED8\u5236":"\u8BF7\u5728\u5730\u56FE\u4E0A\u7ED8\u5236"}),d=()=>{var O;a.value.loading=!0;try{a.value.map=new window.rawWindow.T.Map("map__container");const P=Number(t.mapType),R=new window.rawWindow.T.Control.MapType;switch(a.value.map.addControl(R),P){case 1:a.value.map.setMapType(window.rawWindow.TMAP_SATELLITE_MAP);break;case 2:a.value.map.setMapType(window.rawWindow.TMAP_HYBRID_MAP);break;case 3:a.value.map.setMapType(window.rawWindow.TMAP_TERRAIN_MAP);break;case 4:a.value.map.setMapType(window.rawWindow.TMAP_TERRAIN_HYBRID_MAP);break;default:a.value.map.setMapType(window.rawWindow.TMAP_NORMAL_MAP)}const N=new window.rawWindow.T.LngLat(116.40969,39.89945);a.value.map.centerAndZoom(N,t.zoom);const H=document.getElementsByClassName("tdt-control-copyright tdt-control");H.length>0&&(H[0].style.display="none"),a.value.map.disableScrollWheelZoom(),(O=document.getElementById("map__container"))==null||O.addEventListener("wheel",q=>{q.preventDefault(),(q.deltaY>0?"up":"down")==="up"?a.value.map.zoomOut():a.value.map.zoomIn()});const K={pageCapacity:10,onSearchComplete:v};a.value.localsearch=new window.rawWindow.T.LocalSearch(a.value.map,K);const U={showLabel:!1,color:"blue",weight:3,opacity:.5,fillColor:"#FFFFFF",fillOpacity:.3,strokeType:"dashed"};a.value.polyEditor=new window.rawWindow.T.PolygonTool(a.value.map,U),a.value.polyEditor.on("draw",q=>{const we=q.currentPolygon;console.log("\u591A\u8FB9\u5F62\u5750\u6807:",we),console.log("\u591A\u8FB9\u5F62\u5750\u6807:",JSON.stringify(q.currentLnglats)),q.currentPolygon.addEventListener("click",k)});const le=new window.rawWindow.T.Control.Scale;le.setPosition(window.rawWindow.T_ANCHOR_BOTTOM_RIGHT),a.value.map.addControl(le);const ae=new window.rawWindow.T.Control.Zoom;ae.setPosition(window.rawWindow.T_ANCHOR_BOTTOM_RIGHT),a.value.map.addControl(ae),a.value.loading=!1}catch(P){console.error("\u521D\u59CB\u5316\u5730\u56FE\u5931\u8D25:",P),a.value.loading=!1,_t.ElMessage.error("\u521D\u59CB\u5316\u5730\u56FE\u5931\u8D25")}},f=()=>{var O;a.value.keyWord.trim()!==""&&(h(),(O=a.value.localsearch)==null||O.search(a.value.keyWord))},h=()=>{var O;(O=a.value.map)==null||O.clearOverLays(),a.value.promptsVisible=a.value.statisticsVisible=a.value.suggestsVisible=a.value.lineDataVisible=a.value.resultVisible=!1,a.value.promptHtml=a.value.statisticsHtml=a.value.suggestsHtml=a.value.lineDataHtml=a.value.searchResultHtml=""},p=()=>{a.value.promptsVisible=a.value.statisticsVisible=a.value.suggestsVisible=a.value.lineDataVisible=a.value.resultVisible=!1,a.value.promptHtml=a.value.statisticsHtml=a.value.suggestsHtml=a.value.lineDataHtml=a.value.searchResultHtml=""},v=O=>{switch(console.log(O),h(),parseInt(O.getResultType())){case 1:g(O.getPois());break;case 2:m(O.getStatistics());break;case 3:_(O.getArea());break;case 4:b(O.getSuggests());break;case 5:y(O.getLineData());break}},g=O=>{if(O){const P=[];let R="";O.forEach((N,H)=>{const K=N.lonlat.split(","),U=new window.rawWindow.T.LngLat(K[0],K[1]),le=new window.rawWindow.T.Marker(U);a.value.map.addOverLay(le);const ae=`\u540D\u79F0: ${N.name}<br/>\u5730\u5740: ${N.address}`,q=new window.rawWindow.T.InfoWindow(ae,{autoPan:!0});le.addEventListener("click",()=>{le.openInfoWindow(q)}),R+=`<p>${H+1}. <a href="javascript:void(0);" @click="() => showPosition(marker, infoHtml)">${N.name}</a></p>`,P.push(U)}),a.value.map.setViewport(P),R+=`<p>\u5171${a.value.localsearch.getCountNumber()}\u6761\u8BB0\u5F55\uFF0C\u5206${a.value.localsearch.getCountPage()}\u9875, \u5F53\u524D\u7B2C${a.value.localsearch.getPageIndex()}\u9875</p>`,a.value.searchResultHtml=R,a.value.resultVisible=!0}},m=O=>{a.value.statisticsVisible=!0},_=O=>{if(O){if(O.points){const P=[],R=O.points;for(let N=0;N<R.length;N++){const H=[],K=R[N].region.split(",");for(let le=0;le<K.length;le++){const ae=K[le].split(" "),q=new window.rawWindow.T.LngLat(ae[0],ae[1]);H.push(q),P.push(q)}const U=new window.rawWindow.T.Polyline(H,{color:"blue",weight:3,opacity:1,lineStyle:"dashed"});a.value.map.addOverLay(U)}a.value.map.setViewport(P)}if(O.lonlat){const P=O.lonlat.split(",");a.value.map.panTo(new window.rawWindow.T.LngLat(P[0],P[1]))}}},b=O=>{a.value.suggestsVisible=!0},y=O=>{a.value.lineDataVisible=!0},w=()=>{a.value.box=!0},S=()=>{var R;const O=[],P=(R=a.value.map)==null?void 0:R.getOverlays();if(P)for(let N=0;N<P.length;N++){const H=P[N];if(H instanceof window.rawWindow.T.Polygon){const U=H.getLngLats().map(le=>le.map(ae=>[ae.lng,ae.lat]));O.push(U[0])}}a.value.allData.allPolygonArr=O,console.log(JSON.stringify(a.value.allData)),e("update:modelValue",a.value.allData)},D=O=>{console.log("valuevalue"),console.log(O),a.value.allData=O,a.value.box=!0},C=()=>{a.value.loading=!1,a.value.box=!1,window.poiPicker&&window.poiPicker.clearSearchResults(),a.value.poi=a.value.oldPoi},B=()=>{a.value.loading=!1,a.value.box=!1,p(),S()},A=()=>{a.value.polyEditor&&(a.value.polyEditor.close(),a.value.polyEditor.open()),_t.ElMessage.success("\u5F00\u59CB\u65B0\u5EFA")},L=()=>{a.value.polyEditor&&a.value.polyEditor.open(),_t.ElMessage.success("\u5F00\u59CB\u7F16\u8F91")},I=()=>{a.value.polyEditor&&a.value.polyEditor.endDraw(),_t.ElMessage.success("\u7ED3\u675F\u7F16\u8F91")},E=()=>{a.value.currentPolygon?_t.ElMessageBox.confirm("\u662F\u5426\u6E05\u9664\u5F53\u524D\u70B9\u51FB\u7684\u591A\u8FB9\u5F62\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01","\u786E\u8BA4\u6E05\u9664",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{a.value.currentPolygon&&a.value.map.removeOverLay(a.value.currentPolygon),_t.ElMessage.success("\u5DF2\u6E05\u9664\u5F53\u524D\u591A\u8FB9\u5F62")}).catch(()=>{}):_t.ElMessage.warning("\u8BF7\u5148\u9009\u62E9\u4E00\u4E2A\u591A\u8FB9\u5F62")},x=()=>{_t.ElMessageBox.confirm("\u662F\u5426\u6E05\u9664\u6240\u6709\u5730\u56FE\u8986\u76D6\u7269\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01","\u786E\u8BA4\u6E05\u9664",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{var O;(O=a.value.map)==null||O.clearOverLays(),_t.ElMessage.success("\u5DF2\u6E05\u9664\u6240\u6709\u8986\u76D6\u7269")}).catch(()=>{})},k=O=>{a.value.currentPolygon=O.target,_t.ElMessage.success("\u5DF2\u9009\u4E2D\u591A\u8FB9\u5F62\uFF0C\u53EF\u4EE5\u5F00\u59CB\u7F16\u8F91"),S()};return s.watch(()=>t.modelValue,O=>{if(O)try{const P=typeof O=="string"?JSON.parse(O):O;a.value.allData=P}catch(P){console.error("\u89E3\u6790\u591A\u8FB9\u5F62\u6570\u636E\u5931\u8D25:",P)}},{deep:!0}),s.watch(()=>a.value.box,()=>{a.value.box&&(a.value.oldPoi=a.value.poi,a.value.oldAllData=a.value.allData,s.nextTick(()=>{if(d(),console.log(JSON.stringify(a.value.allData)),a.value.allData&&a.value.allData.allPolygonArr){const O=[];for(let P=0;P<a.value.allData.allPolygonArr.length;P++){const R=[],N=a.value.allData.allPolygonArr[P].map(K=>(R.push({lng:K[0],lat:K[1]}),new window.rawWindow.T.LngLat(K[0],K[1]))),H=new window.rawWindow.T.Polygon(N,{color:"blue",weight:3,opacity:.7,fillColor:"blue",fillOpacity:.3});a.value.map.addOverLay(H),O.push(...N)}O.length>0&&a.value.map.setViewport(O)}else console.log("\u65E0\u6570\u636E\uFF0C\u663E\u793A\u9ED8\u8BA4\u5B9A\u4F4D"),new window.rawWindow.T.LocalCity().location(P=>{const R=new window.rawWindow.T.Marker(P.lnglat);a.value.map.addOverLay(R)})}))},{immediate:!0}),s.onBeforeUnmount(()=>{var O;a.value.map&&a.value.map.clearOverLays(),a.value.polyEditor&&a.value.polyEditor.close(),(O=document.getElementById("map__container"))==null||O.removeEventListener("wheel",()=>{})}),r({showDetail:D}),(O,P)=>{const R=s.resolveComponent("el-button"),N=s.resolveComponent("el-input"),H=s.resolveComponent("el-col"),K=s.resolveComponent("el-row"),U=s.resolveComponent("el-form"),le=s.resolveComponent("el-icon"),ae=s.resolveComponent("el-tooltip");s.resolveComponent("el-input-number");const q=s.resolveComponent("el-dialog"),we=s.resolveDirective("loading");return s.openBlock(),s.createElementBlock("div",Cb,[t.detail?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(U,{key:0,ref:"formRef"},{default:s.withCtx(()=>[s.createVNode(K,null,{default:s.withCtx(()=>[s.createVNode(H,{span:24},{default:s.withCtx(()=>[s.createVNode(N,{"model-value":i.value,readonly:"",placeholder:u.value,class:"input-with-search"},{append:s.withCtx(()=>[s.createVNode(R,{onClick:w},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(c.value),1)]),_:1})]),_:1},8,["model-value","placeholder"])]),_:1})]),_:1})]),_:1},512)),s.createVNode(q,{title:l.value,width:"60%",modelValue:a.value.box,"onUpdate:modelValue":P[6]||(P[6]=de=>a.value.box=de),"close-on-click-modal":t.closable,onClose:C,top:"20px","destroy-on-close":!0},{header:s.withCtx(()=>[s.createElementVNode("div",Sb,[s.createElementVNode("span",null,s.toDisplayString(l.value),1),s.createVNode(ae,null,{content:s.withCtx(()=>P[7]||(P[7]=[s.createTextVNode(" \u53CC\u51FB\u591A\u8FB9\u5F62\u53EF\u4EE5\u91CD\u65B0\u7F16\u8F91"),s.createElementVNode("br",null,null,-1),s.createTextVNode(" \u65B0\u5EFA\uFF1A\u6DFB\u52A0\u65B0\u7684\u7ED8\u5236"),s.createElementVNode("br",null,null,-1),s.createTextVNode(" \u5F00\u59CB\u7F16\u8F91\u3001\u7ED3\u675F\u7F16\u8F91\uFF1A\u53EF\u9009\u64CD\u4F5C"),s.createElementVNode("br",null,null,-1),s.createTextVNode(" \u6E05\u7A7A\u6240\u6709\uFF1A\u79FB\u9664\u6240\u6709\u5730\u56FE\u6807\u8BB0"),s.createElementVNode("br",null,null,-1),s.createElementVNode("a",{target:"_blank",href:"https://pusdn-dev.feishu.cn/wiki/QYUJwVX84iejlAk3vZdc1HKJnUb"}," \u5F00\u53D1\u624B\u518C ",-1)])),default:s.withCtx(()=>[s.createVNode(le,null,{default:s.withCtx(()=>[s.createVNode(s.unref(yu))]),_:1})]),_:1})])]),footer:s.withCtx(()=>[t.detail?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",kb,[s.createVNode(R,{onClick:C},{default:s.withCtx(()=>P[8]||(P[8]=[s.createTextVNode("\u5173\u95ED")])),_:1}),s.createVNode(R,{type:"primary",onClick:B},{default:s.withCtx(()=>P[9]||(P[9]=[s.createTextVNode("\u4FDD\u5B58")])),_:1})]))]),default:s.withCtx(()=>[s.withDirectives((s.openBlock(),s.createElementBlock("div",null,[a.value.box?(s.openBlock(),s.createElementBlock("div",Tb,[t.detail?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(N,{key:0,modelValue:a.value.keyWord,"onUpdate:modelValue":P[0]||(P[0]=de=>a.value.keyWord=de),placeholder:"\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22",class:"input-with-search",style:{"margin-bottom":"10px"}},{append:s.withCtx(()=>[s.createVNode(R,{onClick:f},{default:s.withCtx(()=>P[10]||(P[10]=[s.createTextVNode("\u641C\u7D22")])),_:1})]),_:1},8,["modelValue"])),s.createCommentVNode("",!0),s.createCommentVNode("",!0),s.createCommentVNode("",!0),s.createCommentVNode("",!0),s.createCommentVNode("",!0),P[18]||(P[18]=s.createElementVNode("div",{class:"pgz-map__content-box"},[s.createElementVNode("div",{style:{left:"0",top:"0","z-index":"999",position:"absolute","padding-left":"4px","line-height":"4px","padding-top":"2px"}},[s.createElementVNode("a",{href:"http://geefox.pusdn.com",target:"_blank",style:{"font-size":"10px !important",color:"lightgray","-webkit-text-size-adjust":"none",zoom:"0.43","text-decoration":"none"}},"Powered By PUSDN")]),s.createElementVNode("div",{id:"map__container",class:"pgz-map__content-container",tabindex:"0"})],-1))])):s.createCommentVNode("",!0),t.detail?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",xb,[s.createVNode(R,{size:"small",round:"",class:"margin8 pgreen",onClick:A},{default:s.withCtx(()=>P[19]||(P[19]=[s.createTextVNode(" \u65B0\u5EFA ")])),_:1}),s.createVNode(R,{size:"small",type:"primary",round:"",class:"margin8",onClick:L},{default:s.withCtx(()=>P[20]||(P[20]=[s.createTextVNode(" \u5F00\u59CB\u7F16\u8F91 ")])),_:1}),s.createVNode(R,{size:"small",type:"primary",round:"",class:"margin8",onClick:I},{default:s.withCtx(()=>P[21]||(P[21]=[s.createTextVNode(" \u7ED3\u675F\u7F16\u8F91 ")])),_:1}),s.createVNode(R,{size:"small",type:"danger",round:"",class:"margin8",onClick:E},{default:s.withCtx(()=>P[22]||(P[22]=[s.createTextVNode(" \u6E05\u7A7A\u5F53\u524D\u70B9\u51FB ")])),_:1}),s.createVNode(R,{size:"small",type:"danger",round:"",class:"margin8",onClick:x},{default:s.withCtx(()=>P[23]||(P[23]=[s.createTextVNode(" \u6E05\u7A7A\u6240\u6709 ")])),_:1}),s.createCommentVNode("",!0)]))])),[[we,a.value.loading]])]),_:1},8,["title","modelValue","close-on-click-modal"])])}}}),Kk="",Wd=ot(Ot(Bb,[["__scopeId","data-v-05eee919"]]));function Kd(o,r){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);r&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),n.push.apply(n,t)}return n}function St(o){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Kd(Object(n),!0).forEach(function(t){J(o,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):Kd(Object(n)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(n,t))})}return o}function qt(o){return qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},qt(o)}function ge(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function Yd(o,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(o,Xd(t.key),t)}}function ye(o,r,n){return r&&Yd(o.prototype,r),n&&Yd(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}function J(o,r,n){return r=Xd(r),r in o?Object.defineProperty(o,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[r]=n,o}function xe(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),r&&qs(o,r)}function Le(o){return Le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Le(o)}function qs(o,r){return qs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},qs(o,r)}function Ab(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function W(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function $s(o,r){if(r&&(typeof r=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W(o)}function Be(o){var r=Ab();return function(){var t=Le(o),e;if(r){var a=Le(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return $s(this,e)}}function Db(o,r){for(;!Object.prototype.hasOwnProperty.call(o,r)&&(o=Le(o),o!==null););return o}function Re(){return typeof Reflect<"u"&&Reflect.get?Re=Reflect.get.bind():Re=function(r,n,t){var e=Db(r,n);if(!!e){var a=Object.getOwnPropertyDescriptor(e,n);return a.get?a.get.call(arguments.length<3?r:t):a.value}},Re.apply(this,arguments)}function Rn(o){return Pb(o)||Ob(o)||Lb(o)||Ib()}function Pb(o){if(Array.isArray(o))return el(o)}function Ob(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function Lb(o,r){if(!!o){if(typeof o=="string")return el(o,r);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return el(o,r)}}function el(o,r){(r==null||r>o.length)&&(r=o.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=o[n];return t}function Ib(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
29
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mb(o,r){if(typeof o!="object"||o===null)return o;var n=o[Symbol.toPrimitive];if(n!==void 0){var t=n.call(o,r||"default");if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(o)}function Xd(o){var r=Mb(o,"string");return typeof r=="symbol"?r:String(r)}var tl={exports:{}};(function(o){var r=Object.prototype.hasOwnProperty,n="~";function t(){}Object.create&&(t.prototype=Object.create(null),new t().__proto__||(n=!1));function e(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function a(c,u,d,f,h){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new e(d,f||c,h),v=n?n+u:u;return c._events[v]?c._events[v].fn?c._events[v]=[c._events[v],p]:c._events[v].push(p):(c._events[v]=p,c._eventsCount++),c}function i(c,u){--c._eventsCount===0?c._events=new t:delete c._events[u]}function l(){this._events=new t,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],d,f;if(this._eventsCount===0)return u;for(f in d=this._events)r.call(d,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},l.prototype.listeners=function(u){var d=n?n+u:u,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,v=new Array(p);h<p;h++)v[h]=f[h].fn;return v},l.prototype.listenerCount=function(u){var d=n?n+u:u,f=this._events[d];return f?f.fn?1:f.length:0},l.prototype.emit=function(u,d,f,h,p,v){var g=n?n+u:u;if(!this._events[g])return!1;var m=this._events[g],_=arguments.length,b,y;if(m.fn){switch(m.once&&this.removeListener(u,m.fn,void 0,!0),_){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,d),!0;case 3:return m.fn.call(m.context,d,f),!0;case 4:return m.fn.call(m.context,d,f,h),!0;case 5:return m.fn.call(m.context,d,f,h,p),!0;case 6:return m.fn.call(m.context,d,f,h,p,v),!0}for(y=1,b=new Array(_-1);y<_;y++)b[y-1]=arguments[y];m.fn.apply(m.context,b)}else{var w=m.length,S;for(y=0;y<w;y++)switch(m[y].once&&this.removeListener(u,m[y].fn,void 0,!0),_){case 1:m[y].fn.call(m[y].context);break;case 2:m[y].fn.call(m[y].context,d);break;case 3:m[y].fn.call(m[y].context,d,f);break;case 4:m[y].fn.call(m[y].context,d,f,h);break;default:if(!b)for(S=1,b=new Array(_-1);S<_;S++)b[S-1]=arguments[S];m[y].fn.apply(m[y].context,b)}}return!0},l.prototype.on=function(u,d,f){return a(this,u,d,f,!1)},l.prototype.once=function(u,d,f){return a(this,u,d,f,!0)},l.prototype.removeListener=function(u,d,f,h){var p=n?n+u:u;if(!this._events[p])return this;if(!d)return i(this,p),this;var v=this._events[p];if(v.fn)v.fn===d&&(!h||v.once)&&(!f||v.context===f)&&i(this,p);else{for(var g=0,m=[],_=v.length;g<_;g++)(v[g].fn!==d||h&&!v[g].once||f&&v[g].context!==f)&&m.push(v[g]);m.length?this._events[p]=m.length===1?m[0]:m:i(this,p)}return this},l.prototype.removeAllListeners=function(u){var d;return u?(d=n?n+u:u,this._events[d]&&i(this,d)):(this._events=new t,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,o.exports=l})(tl);const io=tl.exports;var Nb=typeof window<"u"&&window.location&&window.location.href.indexOf("xgplayerdebugger=1")>-1,nl={info:"color: #525252; background-color: #90ee90;",error:"color: #525252; background-color: red;",warn:"color: #525252; background-color: yellow; "},al="%c[xgplayer]",Ze={config:{debug:Nb?3:0},logInfo:function(r){for(var n,t=arguments.length,e=new Array(t>1?t-1:0),a=1;a<t;a++)e[a-1]=arguments[a];this.config.debug>=3&&(n=console).log.apply(n,[al,nl.info,r].concat(e))},logWarn:function(r){for(var n,t=arguments.length,e=new Array(t>1?t-1:0),a=1;a<t;a++)e[a-1]=arguments[a];this.config.debug>=1&&(n=console).warn.apply(n,[al,nl.warn,r].concat(e))},logError:function(r){var n;if(!(this.config.debug<1)){for(var t=this.config.debug>=2?"trace":"error",e=arguments.length,a=new Array(e>1?e-1:0),i=1;i<e;i++)a[i-1]=arguments[i];(n=console)[t].apply(n,[al,nl.error,r].concat(a))}}};function Rb(o){o.logInfo=Ze.logInfo.bind(o),o.logWarn=Ze.logWarn.bind(o),o.logError=Ze.logError.bind(o)}var Vb=function(){function o(r){ge(this,o),this.bufferedList=r}return ye(o,[{key:"start",value:function(n){return this.bufferedList[n].start}},{key:"end",value:function(n){return this.bufferedList[n].end}},{key:"length",get:function(){return this.bufferedList.length}}]),o}(),T={};T.createDom=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",e=document.createElement(o);return e.className=t,e.innerHTML=r,Object.keys(n).forEach(function(a){var i=a,l=n[a];o==="video"||o==="audio"||o==="live-video"?l&&e.setAttribute(i,l):e.setAttribute(i,l)}),e},T.createDomFromHtml=function(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";try{var t=document.createElement("div");t.innerHTML=o;var e=t.children;return t=null,e.length>0?(e=e[0],n&&T.addClass(e,n),r&&Object.keys(r).forEach(function(a){e.setAttribute(a,r[a])}),e):null}catch(a){return Ze.logError("util.createDomFromHtml",a),null}},T.hasClass=function(o,r){if(!o||!r)return!1;try{return Array.prototype.some.call(o.classList,function(t){return t===r})}catch{var n=o.className&&qt(o.className)==="object"?o.getAttribute("class"):o.className;return n&&!!n.match(new RegExp("(\\s|^)"+r+"(\\s|$)"))}},T.addClass=function(o,r){if(!(!o||!r))try{r.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(n){n&&o.classList.add(n)})}catch{T.hasClass(o,r)||(o.className&&qt(o.className)==="object"?o.setAttribute("class",o.getAttribute("class")+" "+r):o.className+=" "+r)}},T.removeClass=function(o,r){if(!(!o||!r))try{r.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(n){n&&o.classList.remove(n)})}catch{T.hasClass(o,r)&&r.split(/\s+/g).forEach(function(t){var e=new RegExp("(\\s|^)"+t+"(\\s|$)");o.className&&qt(o.className)==="object"?o.setAttribute("class",o.getAttribute("class").replace(e," ")):o.className=o.className.replace(e," ")})}},T.toggleClass=function(o,r){!o||r.split(/\s+/g).forEach(function(n){T.hasClass(o,n)?T.removeClass(o,n):T.addClass(o,n)})},T.classNames=function(){for(var o=arguments,r=[],n=function(a){T.typeOf(o[a])==="String"?r.push(o[a]):T.typeOf(o[a])==="Object"&&Object.keys(o[a]).map(function(i){o[a][i]&&r.push(i)})},t=0;t<arguments.length;t++)n(t);return r.join(" ")},T.findDom=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,r=arguments.length>1?arguments[1]:void 0,n;try{n=o.querySelector(r)}catch(t){Ze.logError("util.findDom",t),r.indexOf("#")===0&&(n=o.getElementById(r.slice(1)))}return n},T.getCss=function(o,r){return o.currentStyle?o.currentStyle[r]:document.defaultView.getComputedStyle(o,!1)[r]},T.padStart=function(o,r,n){for(var t=String(n),e=r>>0,a=Math.ceil(e/t.length),i=[],l=String(o);a--;)i.push(t);return i.join("").substring(0,e-l.length)+l},T.format=function(o){if(window.isNaN(o))return"";o=Math.round(o);var r=T.padStart(Math.floor(o/3600),2,0),n=T.padStart(Math.floor((o-r*3600)/60),2,0),t=T.padStart(Math.floor(o-r*3600-n*60),2,0);return(r==="00"?[n,t]:[r,n,t]).join(":")},T.event=function(o){if(o.touches){var r=o.touches[0]||o.changedTouches[0];o.clientX=r.clientX||0,o.clientY=r.clientY||0,o.offsetX=r.pageX-r.target.offsetLeft,o.offsetY=r.pageY-r.target.offsetTop}o._target=o.target||o.srcElement},T.typeOf=function(o){return Object.prototype.toString.call(o).match(/([^\s.*]+)(?=]$)/g)[0]},T.deepCopy=function(o,r){if(T.typeOf(r)==="Object"&&T.typeOf(o)==="Object")return Object.keys(r).forEach(function(n){T.typeOf(r[n])==="Object"&&!(r[n]instanceof Node)?o[n]===void 0||o[n]===void 0?o[n]=r[n]:T.deepCopy(o[n],r[n]):T.typeOf(r[n])==="Array"?o[n]=T.typeOf(o[n])==="Array"?o[n].concat(r[n]):r[n]:o[n]=r[n]}),o},T.deepMerge=function(o,r){return Object.keys(r).map(function(n){if(T.typeOf(r[n])==="Array"&&T.typeOf(o[n])==="Array"){if(T.typeOf(o[n])==="Array"){var t;(t=o[n]).push.apply(t,Rn(r[n]))}}else T.typeOf(o[n])===T.typeOf(r[n])&&o[n]!==null&&T.typeOf(o[n])==="Object"&&!(r[n]instanceof window.Node)?T.deepMerge(o[n],r[n]):r[n]!==null&&(o[n]=r[n])}),o},T.getBgImage=function(o){var r=(o.currentStyle||window.getComputedStyle(o,null)).backgroundImage;if(!r||r==="none")return"";var n=document.createElement("a");return n.href=r.replace(/url\("|"\)/g,""),n.href},T.copyDom=function(o){if(o&&o.nodeType===1){var r=document.createElement(o.tagName);return Array.prototype.forEach.call(o.attributes,function(n){r.setAttribute(n.name,n.value)}),o.innerHTML&&(r.innerHTML=o.innerHTML),r}else return""},T.setInterval=function(o,r,n,t){o._interval[r]||(o._interval[r]=window.setInterval(n.bind(o),t))},T.clearInterval=function(o,r){clearInterval(o._interval[r]),o._interval[r]=null},T.setTimeout=function(o,r,n){o._timers||(o._timers=[]);var t=setTimeout(function(){r(),T.clearTimeout(o,t)},n);return o._timers.push(t),t},T.clearTimeout=function(o,r){var n=o._timers;if(T.typeOf(n)==="Array"){for(var t=0;t<n.length;t++)if(n[t]===r){n.splice(t,1),clearTimeout(r);break}}else clearTimeout(r)},T.clearAllTimers=function(o){var r=o._timers;T.typeOf(r)==="Array"&&(r.map(function(n){clearTimeout(n)}),o._timerIds=[])},T.createImgBtn=function(o,r,n,t){var e=T.createDom("xg-".concat(o),"",{},"xgplayer-".concat(o,"-img"));if(e.style.backgroundImage='url("'.concat(r,'")'),n&&t){var a,i,l;["px","rem","em","pt","dp","vw","vh","vm","%"].every(function(c){return n.indexOf(c)>-1&&t.indexOf(c)>-1?(a=parseFloat(n.slice(0,n.indexOf(c)).trim()),i=parseFloat(t.slice(0,t.indexOf(c)).trim()),l=c,!1):!0}),e.style.width="".concat(a).concat(l),e.style.height="".concat(i).concat(l),e.style.backgroundSize="".concat(a).concat(l," ").concat(i).concat(l),o==="start"?e.style.margin="-".concat(i/2).concat(l," auto auto -").concat(a/2).concat(l):e.style.margin="auto 5px auto 5px"}return e},T.Hex2RGBA=function(o,r){var n=[];if(/^\#[0-9A-F]{3}$/i.test(o)){var t="#";o.replace(/[0-9A-F]/ig,function(e){t+=e+e}),o=t}return/^#[0-9A-F]{6}$/i.test(o)?(o.replace(/[0-9A-F]{2}/ig,function(e){n.push(parseInt(e,16))}),"rgba(".concat(n.join(","),", ").concat(r,")")):"rgba(255, 255, 255, 0.1)"},T.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},T.checkIsFunction=function(o){return o&&typeof o=="function"},T.checkIsObject=function(o){return o!==null&&qt(o)==="object"},T.hide=function(o){o.style.display="none"},T.show=function(o,r){o.style.display=r||"block"},T.isUndefined=function(o){if(typeof o>"u"||o===null)return!0},T.isNotNull=function(o){return o!=null},T.setStyleFromCsstext=function(o,r){if(!!r)if(T.typeOf(r)==="String"){var n=r.replace(/\s+/g,"").split(";");n.map(function(t){if(t){var e=t.split(":");e.length>1&&(o.style[e[0]]=e[1])}})}else Object.keys(r).map(function(t){o.style[t]=r[t]})};function Fb(o,r){for(var n=0,t=r.length;n<t;n++)if(o.indexOf(r[n])>-1)return!0;return!1}T.filterStyleFromText=function(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],n=o.style.cssText;if(!n)return{};var t=n.replace(/\s+/g,"").split(";"),e={},a={};return t.map(function(i){if(i){var l=i.split(":");l.length>1&&(Fb(l[0],r)?e[l[0]]=l[1]:a[l[0]]=l[1])}}),o.setAttribute("style",""),Object.keys(a).map(function(i){o.style[i]=a[i]}),e},T.getStyleFromCsstext=function(o){var r=o.style.cssText;if(!r)return{};var n=r.replace(/\s+/g,"").split(";"),t={};return n.map(function(e){if(e){var a=e.split(":");a.length>1&&(t[a[0]]=a[1])}}),t},T.preloadImg=function(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};if(!!o){var t=new window.Image;t.onload=function(e){t=null,r&&r(e)},t.onerror=function(e){t=null,n&&n(e)},t.src=o}},T.stopPropagation=function(o){o&&o.stopPropagation()},T.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},T.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},T.checkTouchSupport=function(){return"ontouchstart"in window},T.getBuffered2=function(o){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5,n=[],t=0;t<o.length;t++)n.push({start:o.start(t)<.5?0:o.start(t),end:o.end(t)});n.sort(function(c,u){var d=c.start-u.start;return d||u.end-c.end});var e=[];if(r)for(var a=0;a<n.length;a++){var i=e.length;if(i){var l=e[i-1].end;n[a].start-l<r?n[a].end>l&&(e[i-1].end=n[a].end):e.push(n[a])}else e.push(n[a])}else e=n;return new Vb(e)},T.getEventPos=function(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return o.touches&&o.touches.length>0&&(o=o.touches[0]),{x:o.x/r,y:o.y/r,clientX:o.clientX/r,clientY:o.clientY/r,offsetX:o.offsetX/r,offsetY:o.offsetY/r,pageX:o.pageX/r,pageY:o.pageY/r}},T.requestAnimationFrame=function(o){var r=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(r)return r(o)},T.getHostFromUrl=function(o){if(T.typeOf(o)!=="String")return"";var r=o.split("/"),n="";return r.length>3&&r[2]&&(n=r[2]),n},T.cancelAnimationFrame=function(o){var r=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;r&&r(o)},T.isMSE=function(o){return o.media&&(o=o.media),!o||!(o instanceof HTMLMediaElement)?!1:/^blob/.test(o.currentSrc)||/^blob/.test(o.src)},T.isBlob=function(o){return typeof o=="string"&&/^blob/.test(o)},T.generateSessionId=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=new Date().getTime();try{o=parseInt(o)}catch{o=0}r+=o,window.performance&&typeof window.performance.now=="function"&&(r+=parseInt(window.performance.now()));var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(r+Math.random()*16)%16|0;return r=Math.floor(r/16),(t==="x"?e:e&3|8).toString(16)});return n},T.createEvent=function(o){var r;return typeof window.Event=="function"?r=new Event(o):(r=document.createEvent("Event"),r.initEvent(o,!0,!0)),r},T.adjustTimeByDuration=function(o,r,n){return!r||!o?o:o>r||n&&o<r?r:o},T.createPositionBar=function(o,r){var n=T.createDom("xg-bar","",{"data-index":-1},o);return r.appendChild(n),n},T.getTransformStyle=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{x:0,y:0,scale:1,rotate:0},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n={scale:"".concat(o.scale||1),translate:"".concat(o.x||0,"%, ").concat(o.y||0,"%"),rotate:"".concat(o.rotate||0,"deg")},t=Object.keys(n);return t.forEach(function(e){var a=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),i="".concat(e,"(").concat(n[e],")");a.test(r)?(a.lastIndex=-1,r=r.replace(a,i)):r+="".concat(i," ")}),r},T.convertDeg=function(o){return Math.abs(o)<=1?o*360:o%360},T.getIndexByTime=function(o,r){var n=r.length,t=-1;if(n<1)return t;if(o<=r[0].end||n<2)t=0;else if(o>r[n-1].end)t=n-1;else for(var e=1;e<n;e++)if(o>r[e-1].end&&o<=r[e].end){t=e;break}return t},T.getOffsetCurrentTime=function(o,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1,t=-1;if(n>=0&&n<r.length?t=n:t=T.getIndexByTime(o,r),t<0)return-1;var e=r.length,a=r[t],i=a.start,l=a.end,c=a.cTime,u=a.offset;return o<i?c:o>=i&&o<=l?o-u:o>l&&t>=e-1?l:-1},T.getCurrentTimeByOffset=function(o,r){var n=-1;if(!r||r.length<0)return o;for(var t=0;t<r.length;t++)if(o<=r[t].duration){n=t;break}if(n!==-1){var e=r[n].start;return n-1<0?e+o:e+(o-r[n-1].duration)}return o};function Jd(o){var r=qt(o);return o!==null&&(r==="object"||r==="function")}function Hb(o,r,n){var t,e,a,i,l,c,u=0,d=!1,f=!1,h=!0,p=!r&&r!==0&&typeof window.requestAnimationFrame=="function";if(typeof o!="function")throw new TypeError("Expected a function");r=+r||0,Jd(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Math.max(+n.maxWait||0,r):a,h="trailing"in n?!!n.trailing:h);function v(L){var I=t,E=e;return t=e=void 0,u=L,i=o.apply(E,I),i}function g(L,I){return p?(window.cancelAnimationFrame(l),window.requestAnimationFrame(L)):setTimeout(L,I)}function m(L){if(p)return window.cancelAnimationFrame(L);clearTimeout(L)}function _(L){return u=L,l=g(w,r),d?v(L):i}function b(L){var I=L-c,E=L-u,x=r-I;return f?Math.min(x,a-E):x}function y(L){var I=L-c,E=L-u;return c===void 0||I>=r||I<0||f&&E>=a}function w(){var L=Date.now();if(y(L))return S(L);l=g(w,b(L))}function S(L){return l=void 0,h&&t?v(L):(t=e=void 0,i)}function D(){l!==void 0&&m(l),u=0,t=c=e=l=void 0}function C(){return l===void 0?i:S(Date.now())}function B(){return l!==void 0}function A(){for(var L=Date.now(),I=y(L),E=arguments.length,x=new Array(E),k=0;k<E;k++)x[k]=arguments[k];if(t=x,e=this,c=L,I){if(l===void 0)return _(c);if(f)return l=g(w,r),v(c)}return l===void 0&&(l=g(w,r)),i}return A.cancel=D,A.flush=C,A.pending=B,A}function zb(o,r,n){var t=!0,e=!0;if(typeof o!="function")throw new TypeError("Expected a function");return Jd(n)&&(t="leading"in n?!!n.leading:t,e="trailing"in n?!!n.trailing:e),Hb(o,r,{leading:t,trailing:e,maxWait:r})}function Ub(){var o=(document.documentElement.getAttribute("lang")||navigator.language||"zh-cn").toLocaleLowerCase();return o==="zh-cn"&&(o="zh"),o}function jb(o,r,n){if(!!o){var t=o.getAttribute(n);return!!(t&&t===r&&(o.tagName==="VIDEO"||o.tagName==="AUDIO"))}}var Qd={android:/(Android)\s([\d.]+)/,ios:/(Version)\/([\d.]+)/},Gb=["avc1.42E01E, mp4a.40.2","avc1.58A01E, mp4a.40.2","avc1.4D401E, mp4a.40.2","avc1.64001E, mp4a.40.2","avc1.42E01E","mp4v.20.8","mp4v.20.8, mp4a.40.2","mp4v.20.240, mp4a.40.2"],Ge={get device(){var o=Ge.os;return o.isPc?"pc":"mobile"},get browser(){if(typeof navigator>"u")return"";var o=navigator.userAgent.toLowerCase(),r={ie:/rv:([\d.]+)\) like gecko/,firefox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return[].concat(Object.keys(r).filter(function(n){return r[n].test(o)}))[0]},get os(){if(typeof navigator>"u")return{};var o=navigator.userAgent,r=/(?:Windows Phone)/.test(o),n=/(?:SymbianOS)/.test(o)||r,t=/(?:Tizen)/ig.test(o),e=/(?:Web0S)/ig.test(o),a=/(?:Android)/.test(o),i=/(?:Firefox)/.test(o),l=/(?:iPad|PlayBook)/.test(o)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,c=l||a&&!/(?:Mobile)/.test(o)||i&&/(?:Tablet)/.test(o),u=/(?:iPhone)/.test(o)&&!c,d=!u&&!a&&!n&&!c;return{isTablet:c,isPhone:u,isIpad:l,isIos:u||l,isAndroid:a,isPc:d,isSymbian:n,isWindowsPhone:r,isFireFox:i,isTizen:t,isWebOS:e}},get osVersion(){if(typeof navigator>"u")return 0;var o=navigator.userAgent,r="";/(?:iPhone)|(?:iPad|PlayBook)/.test(o)?r=Qd.ios:r=Qd.android;var n=r?r.exec(o):[];if(n&&n.length>=3){var t=n[2].split(".");return t.length>0?parseInt(t[0]):0}return 0},get isWeixin(){if(typeof navigator>"u")return!1;var o=/(micromessenger)\/([\d.]+)/,r=o.exec(navigator.userAgent.toLocaleLowerCase());return!!r},isSupportMP4:function(){var r={isSupport:!1,mime:""};if(typeof document>"u")return r;if(this.supportResult)return this.supportResult;var n=document.createElement("video");return typeof n.canPlayType=="function"&&Gb.map(function(t){n.canPlayType('video/mp4; codecs="'.concat(t,'"'))==="probably"&&(r.isSupport=!0,r.mime+="||".concat(t))}),this.supportResult=r,n=null,r},isMSESupport:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"';if(typeof MediaSource>"u"||!MediaSource)return!1;try{return MediaSource.isTypeSupported(r)}catch(n){return this._logger.error(r,n),!1}},isHevcSupported:function(){return typeof MediaSource>"u"||!MediaSource.isTypeSupported?!1:MediaSource.isTypeSupported('video/mp4;codecs="hev1.1.6.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.2.4.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.3.E.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.4.10.L120.90"')},probeConfigSupported:function(r){var n={supported:!1,smooth:!1,powerEfficient:!1};if(!r||typeof navigator>"u")return Promise.resolve(n);if(navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo)return navigator.mediaCapabilities.decodingInfo(r);var t=r.video||{},e=r.audio||{};try{var a=MediaSource.isTypeSupported(t.contentType),i=MediaSource.isTypeSupported(e.contentType);return Promise.resolve({supported:a&&i,smooth:!1,powerEfficient:!1})}catch{return Promise.resolve(n)}}},ol="3.0.22",Zd={1:"media",2:"media",3:"media",4:"media",5:"media",6:"media"},qd={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},Zo=ye(function o(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};ge(this,o);var t=r&&r.i18n?r.i18n.ERROR_TYPES:null;if(r.media){var e=n.mediaError?n.mediaError:r.media.error||{},a=r.duration,i=r.currentTime,l=r.ended,c=r.src,u=r.currentSrc,d=r.media,f=d.readyState,h=d.networkState,p=n.errorCode||e.code;qd[p]&&(p=qd[p]);var v={playerVersion:ol,currentTime:i,duration:a,ended:l,readyState:f,networkState:h,src:c||u,errorType:n.errorType,errorCode:p,message:n.errorMessage||e.message,mediaError:e,originError:n.originError?n.originError.stack:"",host:T.getHostFromUrl(c||u)};return n.ext&&Object.keys(n.ext).map(function(b){v[b]=n.ext[b]}),v}else if(arguments.length>1){for(var g={playerVersion:ol,domain:document.domain},m=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],_=0;_<arguments.length;_++)g[m[_]]=arguments[_];return g.ex=t?(t[arguments[0]]||{}).msg:"",g}}),sn="play",rl="playing",Na="ended",Ra="pause",so="error",li="seeking",ta="seeked",wn="timeupdate",qo="waiting",na="canplay",Wb="canplaythrough",aa="durationchange",$d="volumechange",oa="loadeddata",Kb="loadedmetadata",ef="ratechange",tf="progress",il="loadstart",Va="emptied",Yb="stalled",Xb="suspend",Jb="abort",Qb="bufferedChange",sl="focus",nf="blur",ci="ready",af="urlNull",Fa="autoplay_started",ll="autoplay_was_prevented",ui="complete",$o="replay",di="destroy",er="urlchange",cl="download_speed_change",of="leaveplayer",rf="enterplayer",sf="loading",ra="fullscreen_change",fi="cssFullscreen_change",hi="mini_state_change",ul="definition_change",Zb="before_definition_change",dl="after_definition_change",qb="SEI_PARSED",$b="retry",ga="video_resize",fl="pip_change",lf="rotate",cf="screenShot",pi="playnext",uf="shortcut",df="xglog",vi="user_action",mi="reset",ff="source_error",hf="source_success",pf="switch_subtitle",vf=["play","playing","ended","pause","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","volumechange","loadeddata","loadedmetadata","ratechange","progress","loadstart","emptied","stalled","suspend","abort","lowdecode"],mf={STATS_INFO:"stats_info",STATS_DOWNLOAD:"stats_download",STATS_RESET:"stats_reset"},gf="fps_stuck";const eE=Object.freeze(Object.defineProperty({__proto__:null,ABORT:Jb,AFTER_DEFINITION_CHANGE:dl,AUTOPLAY_PREVENTED:ll,AUTOPLAY_STARTED:Fa,BEFORE_DEFINITION_CHANGE:Zb,BUFFER_CHANGE:Qb,CANPLAY:na,CANPLAY_THROUGH:Wb,COMPLETE:ui,CSS_FULLSCREEN_CHANGE:fi,DEFINITION_CHANGE:ul,DESTROY:di,DOWNLOAD_SPEED_CHANGE:cl,DURATION_CHANGE:aa,EMPTIED:Va,ENDED:Na,ENTER_PLAYER:rf,ERROR:so,FPS_STUCK:gf,FULLSCREEN_CHANGE:ra,LEAVE_PLAYER:of,LOADED_DATA:oa,LOADED_METADATA:Kb,LOADING:sf,LOAD_START:il,MINI_STATE_CHANGE:hi,PAUSE:Ra,PIP_CHANGE:fl,PLAY:sn,PLAYER_BLUR:nf,PLAYER_FOCUS:sl,PLAYING:rl,PLAYNEXT:pi,PROGRESS:tf,RATE_CHANGE:ef,READY:ci,REPLAY:$o,RESET:mi,RETRY:$b,ROTATE:lf,SCREEN_SHOT:cf,SEEKED:ta,SEEKING:li,SEI_PARSED:qb,SHORTCUT:uf,SOURCE_ERROR:ff,SOURCE_SUCCESS:hf,STALLED:Yb,STATS_EVENTS:mf,SUSPEND:Xb,SWITCH_SUBTITLE:pf,TIME_UPDATE:wn,URL_CHANGE:er,URL_NULL:af,USER_ACTION:vi,VIDEO_EVENTS:vf,VIDEO_RESIZE:ga,VOLUME_CHANGE:$d,WAITING:qo,XGLOG:df},Symbol.toStringTag,{value:"Module"}));function hl(o,r){!this||!this.emit||(o==="error"?this.errorHandler(o,r.error):this.emit(o,r))}function tE(o,r){return function(n,t){var e={player:r,eventName:o,originalEvent:n,detail:n.detail||{},timeStamp:n.timeStamp,currentTime:r.currentTime,duration:r.duration,paused:r.paused,ended:r.ended,isInternalOp:!!r._internalOp[n.type],muted:r.muted,volume:r.volume,host:T.getHostFromUrl(r.currentSrc),vtype:r.vtype};if(r.removeInnerOP(n.type),o==="timeupdate"&&(r._currentTime=r.media&&r.media.currentTime),o==="ratechange"){var a=r.media?r.media.playbackRate:0;if(a&&r._rate===a)return;r._rate=r.media&&r.media.playbackRate}if(o==="durationchange"&&(r._duration=r.media.duration),o==="volumechange"&&(e.isMutedChange=r._lastMuted!==r.muted,r._lastMuted=r.muted),o==="error"&&(e.error=t||r.video.error),r.mediaEventMiddleware[o]){var i=hl.bind(r,o,e);try{r.mediaEventMiddleware[o].call(r,e,i)}catch(l){throw hl.call(r,o,e),l}}else hl.call(r,o,e)}}var nE=function(o){xe(n,o);var r=Be(n);function n(t){var e;ge(this,n),e=r.call(this,t),e._hasStart=!1,e._currentTime=0,e._duration=0,e._internalOp={},e._lastMuted=!1,e.vtype="MP4",e._rate=-1,e.mediaConfig=Object.assign({},{controls:!1,autoplay:t.autoplay,playsinline:t.playsinline,"x5-playsinline":t.playsinline,"webkit-playsinline":t.playsinline,"x5-video-player-fullscreen":t["x5-video-player-fullscreen"]||t.x5VideoPlayerFullscreen,"x5-video-orientation":t["x5-video-orientation"]||t.x5VideoOrientation,airplay:t.airplay,"webkit-airplay":t.airplay,tabindex:t.tabindex|0,mediaType:t.mediaType||"video","data-index":-1},t.videoConfig,t.videoAttributes);var a=t["x5-video-player-type"]||t.x5VideoPlayerType;return Ge.isWeixin&&Ge.os.isAndroid&&a&&(e.mediaConfig["x5-video-player-type"]=a,delete e.mediaConfig.playsinline,delete e.mediaConfig["webkit-playsinline"],delete e.mediaConfig["x5-playsinline"]),t.loop&&(e.mediaConfig.loop="loop"),t.autoplayMuted&&!Object.prototype.hasOwnProperty.call(e.mediaConfig,"muted")&&(e.mediaConfig.muted=!0),e.media=t.mediaEl instanceof HTMLMediaElement?t.mediaEl:typeof t.mediaEl=="function"?t.mediaEl(e.mediaConfig):T.createDom(e.mediaConfig.mediaType,"",e.mediaConfig,""),t.defaultPlaybackRate&&(e.media.defaultPlaybackRate=e.media.playbackRate=t.defaultPlaybackRate),T.typeOf(t.volume)==="Number"&&(e.volume=t.volume),t.autoplayMuted&&(e.media.muted=!0,e._lastMuted=!0),t.autoplay&&(e.media.autoplay=!0),t.playsinline&&(e.media.playsinline=!0),e._interval={},e.mediaEventMiddleware={},e.attachVideoEvents(),e}return ye(n,[{key:"setEventsMiddleware",value:function(e){var a=this;Object.keys(e).map(function(i){a.mediaEventMiddleware[i]=e[i]})}},{key:"removeEventsMiddleware",value:function(e){var a=this;Object.keys(e).map(function(i){delete a.mediaEventMiddleware[i]})}},{key:"attachVideoEvents",value:function(){var e=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.media;this._evHandlers||(this._evHandlers=vf.map(function(i){var l="on".concat(i.charAt(0).toUpperCase()).concat(i.slice(1));return typeof e[l]=="function"&&e.on(i,e[l]),J({},i,tE(i,e))})),this._evHandlers.forEach(function(i){var l=Object.keys(i)[0];a.addEventListener(l,i[l],!1)})}},{key:"detachVideoEvents",value:function(){var e=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.media;this._evHandlers.forEach(function(i){var l=Object.keys(i)[0];a.removeEventListener(l,i[l],!1)}),this._evHandlers.forEach(function(i){var l=Object.keys(i)[0],c="on".concat(l.charAt(0).toUpperCase()).concat(l.slice(1));typeof e[c]=="function"&&e.off(l,e[c])}),this._evHandlers=null}},{key:"_attachSourceEvents",value:function(e,a){var i=this;e.removeAttribute("src"),e.load(),a.forEach(function(f,h){i.media.appendChild(T.createDom("source","",{src:"".concat(f.src),type:"".concat(f.type||""),"data-index":h+1}))});var l=e.children;if(!!l){this._videoSourceCount=l.length,this._videoSourceIndex=l.length,this._vLoadeddata=function(f){i.emit(hf,{src:f.target.currentSrc,host:T.getHostFromUrl(f.target.currentSrc)})};for(var c=null,u=0;u<this._evHandlers.length;u++)if(Object.keys(this._evHandlers[u])[0]==="error"){c=this._evHandlers[u];break}!this._sourceError&&(this._sourceError=function(f){var h=parseInt(f.target.getAttribute("data-index"),10);if(i._videoSourceIndex--,i._videoSourceIndex===0||h>=i._videoSourceCount){var p={code:4,message:"sources_load_error"};c?c.error(f,p):i.errorHandler("error",p)}var v=Zd[4];i.emit(ff,new Zo(i,{errorType:v,errorCode:4,errorMessage:"sources_load_error",mediaError:{code:4,message:"sources_load_error"},src:f.target.src}))});for(var d=0;d<l.length;d++)l[d].addEventListener("error",this._sourceError);e.addEventListener("loadeddata",this._vLoadeddata)}}},{key:"_detachSourceEvents",value:function(e){var a=e.children;if(!(!a||a.length===0||!this._sourceError)){for(var i=0;i<a.length;i++)a[i].removeEventListener("error",this._sourceError);for(;a.length>0;)e.removeChild(a[0]);this._vLoadeddata&&e.removeEventListener("loadeddata",this._vLoadeddata)}}},{key:"errorHandler",value:function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.media&&(this.media.error||a)){var i=this.media.error||a,l=i.code?Zd[i.code]:"other",c=i.message;this.media.currentSrc||this.media.srcObject||(c="empty_src",i={code:6,message:c}),this.emit(e,new Zo(this,{errorType:l,errorCode:i.code,errorMessage:i.message||"",mediaError:i}))}}},{key:"destroy",value:function(){this.media&&(this.media.pause&&(this.media.pause(),this.media.muted=!0),this.media.removeAttribute("src"),this.media.load()),this._currentTime=0,this._duration=0,this.mediaConfig=null;for(var e in this._interval)Object.prototype.hasOwnProperty.call(this._interval,e)&&(clearInterval(this._interval[e]),this._interval[e]=null);this.detachVideoEvents(),this.media=null,this.mediaEventMiddleware={},this.removeAllListeners()}},{key:"video",get:function(){return this.media},set:function(e){this.media=e}},{key:"play",value:function(){var e=this.media?this.media.play():null;return e}},{key:"pause",value:function(){this.media&&this.media.pause()}},{key:"load",value:function(){this.media&&this.media.load()}},{key:"canPlayType",value:function(e){return this.media?this.media.canPlayType(e):!1}},{key:"getBufferedRange",value:function(e){var a=[0,0];if(!this.media)return a;e||(e=this.media.buffered);var i=this.media.currentTime;if(e)for(var l=0,c=e.length;l<c&&(a[0]=e.start(l),a[1]=e.end(l),!(a[0]<=i&&i<=a[1]));l++);return a[0]-i<=0&&i-a[1]<=0?a:[0,0]}},{key:"autoplay",get:function(){return this.media?this.media.autoplay:!1},set:function(e){this.media&&(this.media.autoplay=e)}},{key:"buffered",get:function(){return this.media?this.media.buffered:null}},{key:"buffered2",get:function(){return this.media&&this.media.buffered?T.getBuffered2(this.media.buffered):null}},{key:"bufferedPoint",get:function(){var e={start:0,end:0};if(!this.media)return e;var a=this.media.buffered;if(!a||a.length===0)return e;for(var i=0;i<a.length;i++)if((a.start(i)<=this.currentTime||a.start(i)<.1)&&a.end(i)>=this.currentTime)return{start:a.start(i),end:a.end(i)};return e}},{key:"crossOrigin",get:function(){return this.media?this.media.crossOrigin:""},set:function(e){this.media&&(this.media.crossOrigin=e)}},{key:"currentSrc",get:function(){return this.media?this.media.currentSrc:""},set:function(e){this.media&&(this.media.currentSrc=e)}},{key:"currentTime",get:function(){return this.media?this.media.currentTime!==void 0?this.media.currentTime:this._currentTime:0},set:function(e){this.media&&(this.media.currentTime=e)}},{key:"defaultMuted",get:function(){return this.media?this.media.defaultMuted:!1},set:function(e){this.media&&(this.media.defaultMuted=e)}},{key:"duration",get:function(){return this._duration}},{key:"ended",get:function(){return this.media?this.media.ended:!1}},{key:"error",get:function(){return this.media.error}},{key:"errorNote",get:function(){var e=this.media.error;if(!e)return"";var a=["MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED"];return a[this.media.error.code-1]}},{key:"loop",get:function(){return this.media?this.media.loop:!1},set:function(e){this.media&&(this.media.loop=e)}},{key:"muted",get:function(){return this.media?this.media.muted:!1},set:function(e){!this.media||this.media.muted===e||(this._lastMuted=this.media.muted,this.media.muted=e)}},{key:"networkState",get:function(){return this.media.networkState}},{key:"paused",get:function(){return this.media?this.media.paused:!0}},{key:"playbackRate",get:function(){return this.media?this.media.playbackRate:0},set:function(e){!this.media||e===1/0||(this.media.defaultPlaybackRate=e,this.media.playbackRate=e)}},{key:"played",get:function(){return this.media?this.media.played:null}},{key:"preload",get:function(){return this.media?this.media.preload:!1},set:function(e){this.media&&(this.media.preload=e)}},{key:"readyState",get:function(){return this.media.readyState}},{key:"seekable",get:function(){return this.media?this.media.seekable:!1}},{key:"seeking",get:function(){return this.media?this.media.seeking:!1}},{key:"src",get:function(){return this.media?this.media.src:""},set:function(e){if(!!this.media){if(this.emit(er,e),this.emit(qo),this._currentTime=0,this._duration=0,T.isMSE(this.media)){this.onWaiting();return}this._detachSourceEvents(this.media),T.typeOf(e)==="Array"?this._attachSourceEvents(this.media,e):e?this.media.src=e:this.media.removeAttribute("src"),this.load()}}},{key:"volume",get:function(){return this.media?this.media.volume:0},set:function(e){e===1/0||!this.media||(this.media.volume=e)}},{key:"aspectRatio",get:function(){return this.media?this.media.videoWidth/this.media.videoHeight:0}},{key:"addInnerOP",value:function(e){this._internalOp[e]=!0}},{key:"removeInnerOP",value:function(e){delete this._internalOp[e]}},{key:"emit",value:function(e,a){for(var i,l=arguments.length,c=new Array(l>2?l-2:0),u=2;u<l;u++)c[u-2]=arguments[u];(i=Re(Le(n.prototype),"emit",this)).call.apply(i,[this,e,a].concat(c))}},{key:"on",value:function(e,a){for(var i,l=arguments.length,c=new Array(l>2?l-2:0),u=2;u<l;u++)c[u-2]=arguments[u];(i=Re(Le(n.prototype),"on",this)).call.apply(i,[this,e,a].concat(c))}},{key:"once",value:function(e,a){for(var i,l=arguments.length,c=new Array(l>2?l-2:0),u=2;u<l;u++)c[u-2]=arguments[u];(i=Re(Le(n.prototype),"once",this)).call.apply(i,[this,e,a].concat(c))}},{key:"off",value:function(e,a){for(var i,l=arguments.length,c=new Array(l>2?l-2:0),u=2;u<l;u++)c[u-2]=arguments[u];(i=Re(Le(n.prototype),"off",this)).call.apply(i,[this,e,a].concat(c))}},{key:"offAll",value:function(){Re(Le(n.prototype),"removeAllListeners",this).call(this)}}]),n}(io),aE=function(){function o(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{name:"xgplayer",version:1,db:null,ojstore:{name:"xg-m4a",keypath:"vid"}};ge(this,o),this.indexedDB=window.indexedDB||window.webkitindexedDB,this.IDBKeyRange=window.IDBKeyRange||window.webkitIDBKeyRange,this.myDB=r}return ye(o,[{key:"openDB",value:function(n){var t=this,e=this,a=this.myDB.version||1,i=e.indexedDB.open(e.myDB.name,a);i.onerror=function(l){},i.onsuccess=function(l){t.myDB.db=l.target.result,n.call(e)},i.onupgradeneeded=function(l){var c=l.target.result;l.target.transaction,c.objectStoreNames.contains(e.myDB.ojstore.name)||c.createObjectStore(e.myDB.ojstore.name,{keyPath:e.myDB.ojstore.keypath})}}},{key:"deletedb",value:function(){var n=this;n.indexedDB.deleteDatabase(this.myDB.name)}},{key:"closeDB",value:function(){this.myDB.db.close()}},{key:"addData",value:function(n,t){for(var e=this.myDB.db.transaction(n,"readwrite").objectStore(n),a,i=0;i<t.length;i++)a=e.add(t[i]),a.onerror=function(){},a.onsuccess=function(){}}},{key:"putData",value:function(n,t){for(var e=this.myDB.db.transaction(n,"readwrite").objectStore(n),a,i=0;i<t.length;i++)a=e.put(t[i]),a.onerror=function(){},a.onsuccess=function(){}}},{key:"getDataByKey",value:function(n,t,e){var a=this,i=this.myDB.db.transaction(n,"readwrite").objectStore(n),l=i.get(t);l.onerror=function(){e.call(a,null)},l.onsuccess=function(c){var u=c.target.result;e.call(a,u)}}},{key:"deleteData",value:function(n,t){var e=this.myDB.db.transaction(n,"readwrite").objectStore(n);e.delete(t)}},{key:"clearData",value:function(n){var t=this.myDB.db.transaction(n,"readwrite").objectStore(n);t.clear()}}]),o}(),yf=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],_f=["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],wf=["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],ya="data-xgplayerid";function gi(o,r,n){for(var t=arguments.length,e=new Array(t>3?t-3:0),a=3;a<t;a++)e[a-3]=arguments[a];var i=r.call.apply(r,[o].concat(e));!n||typeof n!="function"||(i&&i.then?i.then(function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];n.call.apply(n,[o].concat(c))}):n.call.apply(n,[o].concat(e)))}function yi(o,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[o]&&(this.__hooks[o]=null),function(){var t=arguments,e=this;if(n.pre)try{var a;(a=n.pre).call.apply(a,[this].concat(Array.prototype.slice.call(arguments)))}catch(l){throw l.message="[pluginName: ".concat(this.pluginName,":").concat(o,":pre error] >> ").concat(l.message),l}if(this.__hooks&&this.__hooks[o])try{var i=jn(this,o,r);i?i.then?i.then(function(l){l!==!1&&gi.apply(void 0,[e,r,n.next].concat(Rn(t)))}).catch(function(l){throw l}):gi.apply(void 0,[this,r,n.next].concat(Array.prototype.slice.call(arguments))):i===void 0&&gi.apply(void 0,[this,r,n.next].concat(Array.prototype.slice.call(arguments)))}catch(l){throw l.message="[pluginName: ".concat(this.pluginName,":").concat(o,"] >> ").concat(l.message),l}else gi.apply(void 0,[this,r,n.next].concat(Array.prototype.slice.call(arguments)))}.bind(this)}function bf(o,r){var n=this.__hooks;if(!n||!Array.isArray(n[o]))return-1;for(var t=n[o],e=0;e<t.length;e++)if(t[e]===r)return e;return-1}function _i(o,r){var n=this.__hooks;if(!!n)return n.hasOwnProperty(o)?(Array.isArray(n[o])||(n[o]=[]),bf.call(this,o,r)===-1&&n[o].push(r),!0):(console.warn("has no supported hook which name [".concat(o,"]")),!1)}function wi(o,r){var n=this.__hooks;if(!!n)if(Array.isArray(n[o])){var t=n[o],e=bf.call(this,o,r);e!==-1&&t.splice(e,1)}else n[o]&&(n[o]=null)}function Ef(o){if(!(!this.plugins||!this.plugins[o.toLowerCase()])){for(var r=this.plugins[o.toLowerCase()],n=arguments.length,t=new Array(n>1?n-1:0),e=1;e<n;e++)t[e-1]=arguments[e];return r.useHooks&&r.useHooks.apply(r,t)}}function Cf(o){if(!(!this.plugins||!this.plugins[o.toLowerCase()])){var r=this.plugins[o.toLowerCase()];if(r){for(var n=arguments.length,t=new Array(n>1?n-1:0),e=1;e<n;e++)t[e-1]=arguments[e];return r.removeHooks&&r.removeHooks.apply(r,t)}}}function Sf(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];o.__hooks={},r&&r.map(function(n){o.__hooks[n]=null}),Object.defineProperty(o,"hooks",{get:function(){return o.__hooks&&Object.keys(o.__hooks).map(function(t){if(o.__hooks[t])return t})}})}function kf(o){o.__hooks=null}function jn(o,r,n){for(var t=arguments.length,e=new Array(t>3?t-3:0),a=3;a<t;a++)e[a-3]=arguments[a];if(o.__hooks&&Array.isArray(o.__hooks[r])){var i=o.__hooks[r],l=-1,c=function u(d,f,h){for(var p=arguments.length,v=new Array(p>3?p-3:0),g=3;g<p;g++)v[g-3]=arguments[g];if(l++,i.length===0||l===i.length)return h.call.apply(h,[d,d].concat(v));var m=i[l],_=m.call.apply(m,[d,d].concat(v));if(_&&_.then)return _.then(function(b){return b===!1?null:u.apply(void 0,[d,f,h].concat(v))}).catch(function(b){console.warn("[runHooks]".concat(f," reject"),b.message)});if(_!==!1)return u.apply(void 0,[d,f,h].concat(v))};return c.apply(void 0,[o,r,n].concat(e))}else return n.call.apply(n,[o,o].concat(e))}function pl(o,r){Ze.logError("[".concat(o,"] event or callback cant be undefined or null when call ").concat(r))}var Gn=function(){function o(r){ge(this,o),T.checkIsFunction(this.beforeCreate)&&this.beforeCreate(r),Sf(this),this.__args=r,this.__events={},this.__onceEvents={},this.config=r.config||{},this.player=null,this.playerConfig={},this.pluginName="",this.__init(r)}return ye(o,[{key:"beforeCreate",value:function(n){}},{key:"afterCreate",value:function(){}},{key:"beforePlayerInit",value:function(){}},{key:"onPluginsReady",value:function(){}},{key:"afterPlayerInit",value:function(){}},{key:"destroy",value:function(){}},{key:"__init",value:function(n){this.player=n.player,this.playerConfig=n.player&&n.player.config,this.pluginName=n.pluginName?n.pluginName.toLowerCase():this.constructor.pluginName.toLowerCase(),this.logger=n.player&&n.player.logger}},{key:"updateLang",value:function(n){n||(n=this.lang)}},{key:"lang",get:function(){return this.player.lang}},{key:"i18n",get:function(){return this.player.i18n}},{key:"i18nKeys",get:function(){return this.player.i18nKeys}},{key:"domEventType",get:function(){var n=T.checkTouchSupport()?"touch":"mouse";return this.playerConfig&&(this.playerConfig.domEventType==="touch"||this.playerConfig.domEventType==="mouse")&&(n=this.playerConfig.domEventType),n}},{key:"on",value:function(n,t){var e=this;if(!n||!t||!this.player){pl(this.pluginName,"plugin.on(event, callback)");return}typeof n=="string"?(this.__events[n]=t,this.player.on(n,t)):Array.isArray(n)&&n.forEach(function(a){e.__events[a]=t,e.player.on(a,t)})}},{key:"once",value:function(n,t){var e=this;if(!n||!t||!this.player){pl(this.pluginName,"plugin.once(event, callback)");return}typeof n=="string"?(this.__onceEvents[n]=t,this.player.once(n,t)):Array.isArray(n)&&n.forEach(function(a){e.__onceEvents[a]=t,e.player.once(n,t)})}},{key:"off",value:function(n,t){var e=this;if(!n||!t||!this.player){pl(this.pluginName,"plugin.off(event, callback)");return}typeof n=="string"?(delete this.__events[n],this.player.off(n,t)):Array.isArray(n)&&n.forEach(function(a){delete e.__events[n],e.player.off(a,t)})}},{key:"offAll",value:function(){var n=this;["__events","__onceEvents"].forEach(function(t){Object.keys(n[t]).forEach(function(e){n[t][e]&&n.off(e,n[t][e]),e&&delete n[t][e]})}),this.__events={},this.__onceEvents={}}},{key:"emit",value:function(n){var t;if(!!this.player){for(var e=arguments.length,a=new Array(e>1?e-1:0),i=1;i<e;i++)a[i-1]=arguments[i];(t=this.player).emit.apply(t,[n].concat(a))}}},{key:"emitUserAction",value:function(n,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!!this.player){var a=St(St({},e),{},{pluginName:this.pluginName});this.player.emitUserAction(n,t,a)}}},{key:"hook",value:function(n,t){return yi.call.apply(yi,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"useHooks",value:function(n,t){for(var e=arguments.length,a=new Array(e>2?e-2:0),i=2;i<e;i++)a[i-2]=arguments[i];return _i.call.apply(_i,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"removeHooks",value:function(n,t){for(var e=arguments.length,a=new Array(e>2?e-2:0),i=2;i<e;i++)a[i-2]=arguments[i];return wi.call.apply(wi,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"registerPlugin",value:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";if(!!this.player)return e&&(t.pluginName=e),this.player.registerPlugin({plugin:n,options:t})}},{key:"getPlugin",value:function(n){return this.player?this.player.getPlugin(n):null}},{key:"__destroy",value:function(){var n=this,t=this.player,e=this.pluginName;this.offAll(),T.clearAllTimers(this),T.checkIsFunction(this.destroy)&&this.destroy(),["player","playerConfig","pluginName","logger","__args","__hooks"].map(function(a){n[a]=null}),t.unRegisterPlugin(e),kf(this)}}],[{key:"defineGetterOrSetter",value:function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&Object.defineProperty(n,e,t[e])}},{key:"defineMethod",value:function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&typeof t[e]=="function"&&Object.defineProperty(n,e,{configurable:!0,value:t[e]})}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),o}(),oE=9;if(typeof Element<"u"&&!Element.prototype.matches){var lo=Element.prototype;lo.matches=lo.matchesSelector||lo.mozMatchesSelector||lo.msMatchesSelector||lo.oMatchesSelector||lo.webkitMatchesSelector}function rE(o,r){for(;o&&o.nodeType!==oE;){if(typeof o.matches=="function"&&o.matches(r))return o;o=o.parentNode}}var iE=rE,sE=iE;function vl(o,r,n,t,e){var a=cE.apply(this,arguments);return o.addEventListener(n,a,e),{destroy:function(){o.removeEventListener(n,a,e)}}}function lE(o,r,n,t,e){return typeof o.addEventListener=="function"?vl.apply(null,arguments):typeof n=="function"?vl.bind(null,document).apply(null,arguments):(typeof o=="string"&&(o=document.querySelectorAll(o)),Array.prototype.map.call(o,function(a){return vl(a,r,n,t,e)}))}function cE(o,r,n,t){return function(e){e.delegateTarget=sE(e.target,r),e.delegateTarget&&t.call(o,e)}}var Tf=lE,uE={CONTROLS:"controls",ROOT:"root"},it={ROOT:"root",ROOT_LEFT:"rootLeft",ROOT_RIGHT:"rootRight",ROOT_TOP:"rootTop",CONTROLS_LEFT:"controlsLeft",CONTROLS_RIGTH:"controlsRight",CONTROLS_RIGHT:"controlsRight",CONTROLS_CENTER:"controlsCenter",CONTROLS:"controls"},xf={ICON_DISABLE:"xg-icon-disable",ICON_HIDE:"xg-icon-hide"};function ml(o){return o?o.indexOf&&/^(?:http|data:|\/)/.test(o):!1}function dE(o,r){return qt(o)==="object"&&o.class&&typeof o.class=="string"?"".concat(r," ").concat(o.class):r}function fE(o,r){return qt(o)==="object"&&o.attr&&qt(o.attr)==="object"&&Object.keys(o.attr).map(function(n){r[n]=o.attr[n]}),r}function Bf(o,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},e=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",a=null;if(o instanceof window.Element)return T.addClass(o,n),Object.keys(t).map(function(i){o.setAttribute(i,t[i])}),o;if(ml(o)||ml(o.url))return t.src=ml(o)?o:o.url||"",a=T.createDom(o.tag||"img","",t,"xg-img ".concat(n)),a;if(typeof o=="function")try{return a=o(),a instanceof window.Element?(T.addClass(a,n),Object.keys(t).map(function(i){a.setAttribute(i,t[i])}),a):(Ze.logWarn("warn>>icons.".concat(r," in config of plugin named [").concat(e,"] is a function mast return an Element Object")),null)}catch(i){return Ze.logError("Plugin named [".concat(e,"]:createIcon"),i),null}return typeof o=="string"?T.createDomFromHtml(o,t,n):(Ze.logWarn("warn>>icons.".concat(r," in config of plugin named [").concat(e,"] is invalid")),null)}function hE(o,r){var n=r.config.icons||r.playerConfig.icons;Object.keys(o).map(function(t){var e=o[t],a=e&&e.class?e.class:"",i=e&&e.attr?e.attr:{},l=null;n&&n[t]&&(a=dE(n[t],a),i=fE(n[t],i),l=Bf(n[t],t,a,i,r.pluginName)),!l&&e&&(l=Bf(e.icon?e.icon:e,i,a,{},r.pluginName)),r.icons[t]=l})}function pE(o,r){Object.keys(o).map(function(n){Object.defineProperty(r.langText,n,{get:function(){var e=r.lang,a=r.i18n;return a[n]?a[n]:o[n]&&o[n][e]||""}})})}var nt=function(o){xe(n,o);var r=Be(n);function n(){var t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ge(this,n),t=r.call(this,e),t.__delegates=[],t}return ye(n,[{key:"__init",value:function(e){if(Re(Le(n.prototype),"__init",this).call(this,e),!!e.root){var a=e.root,i=null;this.icons={},this.root=null,this.parent=null;var l=this.registerIcons()||{};hE(l,this),this.langText={};var c=this.registerLanguageTexts()||{};pE(c,this);var u="";try{u=this.render()}catch(h){throw Ze.logError("Plugin:".concat(this.pluginName,":render"),h),new Error("Plugin:".concat(this.pluginName,":render:").concat(h.message))}if(u)i=n.insert(u,a,e.index),i.setAttribute("data-index",e.index);else if(e.tag)i=T.createDom(e.tag,"",e.attr,e.name),i.setAttribute("data-index",e.index),a.appendChild(i);else return;this.root=i,this.parent=a;var d=this.config.attr||{},f=this.config.style||{};this.setAttr(d),this.setStyle(f),this.config.index&&this.root.setAttribute("data-index",this.config.index),this.__registerChildren()}}},{key:"__registerChildren",value:function(){var e=this;if(!!this.root){this._children=[];var a=this.children();a&&qt(a)==="object"&&Object.keys(a).length>0&&Object.keys(a).map(function(i){var l=i,c=a[l],u={root:e.root},d,f;typeof c=="function"?(d=e.config[l]||{},f=c):qt(c)==="object"&&typeof c.plugin=="function"&&(d=c.options?T.deepCopy(e.config[l]||{},c.options):e.config[l]||{},f=c.plugin),u.config=d,d.index!==void 0&&(u.index=d.index),d.root&&(u.root=d.root),e.registerPlugin(f,u,l)})}}},{key:"updateLang",value:function(e){e||(e=this.lang);function a(u,d){for(var f=0;f<u.children.length;f++)u.children[f].children.length>0?a(u.children[f],d):d(u.children[f])}var i=this.root,l=this.i18n,c=this.langText;i&&a(i,function(u){var d=u.getAttribute&&u.getAttribute("lang-key");if(!!d){var f=l[d.toUpperCase()]||c[d];f&&(u.innerHTML=typeof f=="function"?f(e):f)}})}},{key:"lang",get:function(){return this.player.lang}},{key:"changeLangTextKey",value:function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=this.i18n||{},l=this.langText;e.setAttribute&&e.setAttribute("lang-key",a);var c=i[a]||l[a]||"";c&&(e.innerHTML=c)}},{key:"plugins",value:function(){return this._children}},{key:"disable",value:function(){this.config.disable=!0,T.addClass(this.find(".xgplayer-icon"),xf.ICON_DISABLE)}},{key:"enable",value:function(){this.config.disable=!1,T.removeClass(this.find(".xgplayer-icon"),xf.ICON_DISABLE)}},{key:"children",value:function(){return{}}},{key:"registerPlugin",value:function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";a.root=a.root||this.root;var l=Re(Le(n.prototype),"registerPlugin",this).call(this,e,a,i);return this._children.push(l),l}},{key:"registerIcons",value:function(){return{}}},{key:"registerLanguageTexts",value:function(){return{}}},{key:"find",value:function(e){if(!!this.root)return this.root.querySelector(e)}},{key:"bind",value:function(e,a,i){var l=this;if(arguments.length<3&&typeof a=="function")Array.isArray(e)?e.forEach(function(u){l.bindEL(u,a)}):this.bindEL(e,a);else{var c=n.delegate.call(this,this.root,e,a,i);this.__delegates=this.__delegates.concat(c)}}},{key:"unbind",value:function(e,a){var i=this;if(arguments.length<3&&typeof a=="function")Array.isArray(e)?e.forEach(function(u){i.unbindEL(u,a)}):this.unbindEL(e,a);else for(var l="".concat(e,"_").concat(a),c=0;c<this.__delegates.length;c++)if(this.__delegates[c].key===l){this.__delegates[c].destroy(),this.__delegates.splice(c,1);break}}},{key:"setStyle",value:function(e,a){var i=this;if(!!this.root){if(T.typeOf(e)==="String")return this.root.style[e]=a;T.typeOf(e)==="Object"&&Object.keys(e).map(function(l){i.root.style[l]=e[l]})}}},{key:"setAttr",value:function(e,a){var i=this;if(!!this.root){if(T.typeOf(e)==="String")return this.root.setAttribute(e,a);T.typeOf(e)==="Object"&&Object.keys(e).map(function(l){i.root.setAttribute(l,e[l])})}}},{key:"setHtml",value:function(e,a){!this.root||(this.root.innerHTML=e,typeof a=="function"&&a())}},{key:"bindEL",value:function(e,a){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;!this.root||"on".concat(e)in this.root&&typeof a=="function"&&this.root.addEventListener(e,a,i)}},{key:"unbindEL",value:function(e,a){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;!this.root||"on".concat(e)in this.root&&typeof a=="function"&&this.root.removeEventListener(e,a,i)}},{key:"show",value:function(e){if(!!this.root){this.root.style.display=e!==void 0?e:"block";var a=window.getComputedStyle(this.root,null),i=a.getPropertyValue("display");if(i==="none")return this.root.style.display="block"}}},{key:"hide",value:function(){this.root&&(this.root.style.display="none")}},{key:"appendChild",value:function(e,a){if(!this.root)return null;if(arguments.length<2&&arguments[0]instanceof window.Element)return this.root.appendChild(arguments[0]);if(!a||!(a instanceof window.Element))return null;try{return typeof e=="string"?this.find(e).appendChild(a):e.appendChild(a)}catch(i){return Ze.logError("Plugin:appendChild",i),null}}},{key:"render",value:function(){return""}},{key:"destroy",value:function(){}},{key:"__destroy",value:function(){var e=this,a=this.player;this.__delegates.map(function(i){i.destroy()}),this.__delegates=[],this._children instanceof Array&&(this._children.map(function(i){a.unRegisterPlugin(i.pluginName)}),this._children=null),this.root&&(this.root.hasOwnProperty("remove")?this.root.remove():this.root.parentNode&&this.root.parentNode.removeChild(this.root)),Re(Le(n.prototype),"__destroy",this).call(this),this.icons={},["root","parent"].map(function(i){e[i]=null})}}],[{key:"insert",value:function(e,a){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=a.children.length,c=Number(i),u=e instanceof window.Node;if(l){for(var d=0,f=null,h="";d<l;d++){f=a.children[d];var p=Number(f.getAttribute("data-index"));if(p>=c){h="beforebegin";break}else p<c&&(h="afterend")}return u?h==="afterend"?a.appendChild(e):a.insertBefore(e,f):f.insertAdjacentHTML(h,e),h==="afterend"?a.children[a.children.length-1]:a.children[d]}else return u?a.appendChild(e):a.insertAdjacentHTML("beforeend",e),a.children[a.children.length-1]}},{key:"defaultConfig",get:function(){return{}}},{key:"delegate",value:function(e,a,i,l){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,u=[];if(e instanceof window.Node&&typeof l=="function")if(Array.isArray(i))i.forEach(function(f){var h=Tf(e,a,f,l,c);h.key="".concat(a,"_").concat(f),u.push(h)});else{var d=Tf(e,a,i,l,c);d.key="".concat(a,"_").concat(i),u.push(d)}return u}},{key:"ROOT_TYPES",get:function(){return uE}},{key:"POSITIONS",get:function(){return it}}]),n}(Gn),vE=function(){function o(){var r=this;if(ge(this,o),J(this,"__trigger",function(n){var t=new Date().getTime();r.timeStamp=t;for(var e=0;e<n.length;e++)r.__runHandler(n[e].target)}),this.__handlers=[],this.timeStamp=0,this.observer=null,!!window.ResizeObserver)try{this.observer=new window.ResizeObserver(zb(this.__trigger,100,{trailing:!0})),this.timeStamp=new Date().getTime()}catch(n){console.error(n)}}return ye(o,[{key:"addObserver",value:function(n,t){if(!!this.observer){this.observer.observe(n);for(var e=n.getAttribute(ya),a=this.__handlers,i=-1,l=0;l<a.length;l++)a[l]&&n===a[l].target&&(i=l);i>-1?this.__handlers[i].handler=t:this.__handlers.push({target:n,handler:t,playerId:e})}}},{key:"unObserver",value:function(n){var t=-1;this.__handlers.map(function(a,i){n===a.target&&(t=i)});try{var e;(e=this.observer)===null||e===void 0||e.unobserve(n)}catch{}t>-1&&this.__handlers.splice(t,1)}},{key:"destroyObserver",value:function(){var n;(n=this.observer)===null||n===void 0||n.disconnect(),this.observer=null,this.__handlers=null}},{key:"__runHandler",value:function(n){for(var t=this.__handlers,e=0;e<t.length;e++)if(t[e]&&n===t[e].target){try{t[e].handler(n)}catch(a){console.error(a)}return!0}return!1}}]),o}(),tr=null;function mE(o,r){return tr||(tr=new vE),tr.addObserver(o,r),tr}function gE(o,r){var n;(n=tr)===null||n===void 0||n.unObserver(o,r)}var Yt={pluginGroup:{},init:function(r){var n=r._pluginInfoId;n||(n=new Date().getTime(),r._pluginInfoId=n),!r.config.closeResizeObserver&&mE(r.root,function(){r.resize()}),this.pluginGroup[n]={_originalOptions:r.config||{},_plugins:{}}},formatPluginInfo:function(r,n){var t=null,e=null;return r.plugin&&typeof r.plugin=="function"?(t=r.plugin,e=r.options):(t=r,e={}),n&&(e.config=n||{}),{PLUFGIN:t,options:e}},checkPluginIfExits:function(r,n){for(var t=0;t<n.length;t++)if(r.toLowerCase()===n[t].pluginName.toLowerCase())return!0;return!1},getRootByConfig:function(r,n){for(var t=Object.keys(n),e=null,a=0;a<t.length;a++)if(r.toLowerCase()===t[a].toLowerCase()){e=n[t[a]];break}return T.typeOf(e)==="Object"?{root:e.root,position:e.position}:{}},lazyRegister:function(r,n){var t=this,e=n.timeout||1500;return Promise.race([n.loader().then(function(a){var i;a&&a.__esModule?i=a.default:i=a,t.register(r,i,a.options)}),new Promise(function(a,i){setTimeout(function(){i(new Error("timeout"))},e)})])},register:function(r,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!(!r||!n||typeof n!="function"||n.prototype===void 0)){var e=r._pluginInfoId;if(!(!e||!this.pluginGroup[e])){this.pluginGroup[e]._plugins||(this.pluginGroup[e]._plugins={});var a=this.pluginGroup[e]._plugins,i=this.pluginGroup[e]._originalOptions;t.player=r;var l=t.pluginName||n.pluginName;if(!l)throw new Error("The property pluginName is necessary");if(n.isSupported&&!n.isSupported(r.config.mediaType,r.config.codecType)){console.warn("not supported plugin [".concat(l,"]"));return}t.config||(t.config={});for(var c=Object.keys(i),u=0;u<c.length;u++)if(l.toLowerCase()===c[u].toLowerCase()){var d=i[c[u]];T.typeOf(d)==="Object"?t.config=Object.assign({},t.config,i[c[u]]):T.typeOf(d)==="Boolean"&&(t.config.disable=!d);break}n.defaultConfig&&Object.keys(n.defaultConfig).forEach(function(h){typeof t.config[h]>"u"&&(t.config[h]=n.defaultConfig[h])}),t.root?typeof t.root=="string"&&(t.root=r[t.root]):t.root=r.root,t.index=t.config.index||0;try{a[l.toLowerCase()]&&(this.unRegister(e,l.toLowerCase()),console.warn("the is one plugin with same pluginName [".concat(l,"] exist, destroy the old instance")));var f=new n(t);return a[l.toLowerCase()]=f,a[l.toLowerCase()].func=n,f&&typeof f.afterCreate=="function"&&f.afterCreate(),f}catch(h){throw console.error(h),h}}}},unRegister:function(r,n){r._pluginInfoId&&(r=r._pluginInfoId),n=n.toLowerCase();try{var t=this.pluginGroup[r]._plugins[n];t&&(t.pluginName&&t.__destroy(),delete this.pluginGroup[r]._plugins[n])}catch(e){console.error("[unRegister:".concat(n,"] cgid:[").concat(r,"] error"),e)}},deletePlugin:function(r,n){var t=r._pluginInfoId;t&&this.pluginGroup[t]&&this.pluginGroup[t]._plugins&&delete this.pluginGroup[t]._plugins[n]},getPlugins:function(r){var n=r._pluginInfoId;return n&&this.pluginGroup[n]?this.pluginGroup[n]._plugins:{}},findPlugin:function(r,n){var t=r._pluginInfoId;if(!t||!this.pluginGroup[t])return null;var e=n.toLowerCase();return this.pluginGroup[t]._plugins[e]},beforeInit:function(r){var n=this;function t(e){return!e||!e.then?new Promise(function(a){a()}):e}return new Promise(function(e){if(!!n.pluginGroup){var a;return r._loadingPlugins&&r._loadingPlugins.length?a=Promise.all(r._loadingPlugins):a=Promise.resolve(),a.then(function(){var i=r._pluginInfoId;if(!n.pluginGroup[i]){e();return}var l=n.pluginGroup[i]._plugins,c=[];Object.keys(l).forEach(function(u){if(l[u]&&l[u].beforePlayerInit)try{var d=l[u].beforePlayerInit();c.push(t(d))}catch(f){throw c.push(t(null)),f}}),Promise.all([].concat(c)).then(function(){e()}).catch(function(u){console.error(u),e()})})}})},afterInit:function(r){var n=r._pluginInfoId;if(!(!n||!this.pluginGroup[n])){var t=this.pluginGroup[n]._plugins;Object.keys(t).forEach(function(e){t[e]&&t[e].afterPlayerInit&&t[e].afterPlayerInit()})}},setLang:function(r,n){var t=n._pluginInfoId;if(!(!t||!this.pluginGroup[t])){var e=this.pluginGroup[t]._plugins;Object.keys(e).forEach(function(a){if(e[a].updateLang)e[a].updateLang(r);else try{e[a].lang=r}catch{console.warn("".concat(a," setLang"))}})}},reRender:function(r){var n=this,t=r._pluginInfoId;if(!(!t||!this.pluginGroup[t])){var e=[],a=this.pluginGroup[t]._plugins;Object.keys(a).forEach(function(i){i!=="controls"&&a[i]&&(e.push({plugin:a[i].func,options:a[i].__args}),n.unRegister(t,i))}),e.forEach(function(i){n.register(r,i.plugin,i.options)})}},onPluginsReady:function(r){var n=r._pluginInfoId;if(!(!n||!this.pluginGroup[n])){var t=this.pluginGroup[n]._plugins||{};Object.keys(t).forEach(function(e){t[e].onPluginsReady&&typeof t[e].onPluginsReady=="function"&&t[e].onPluginsReady()})}},destroy:function(r){var n=r._pluginInfoId;if(!!this.pluginGroup[n]){gE(r.root);for(var t=this.pluginGroup[n]._plugins,e=0,a=Object.keys(t);e<a.length;e++){var i=a[e];this.unRegister(n,i)}delete this.pluginGroup[n],delete r._pluginInfoId}}},ie={DEFAULT:"xgplayer",DEFAULT_SKIN:"xgplayer-skin-default",ENTER:"xgplayer-is-enter",PAUSED:"xgplayer-pause",PLAYING:"xgplayer-playing",ENDED:"xgplayer-ended",CANPLAY:"xgplayer-canplay",LOADING:"xgplayer-isloading",ERROR:"xgplayer-is-error",REPLAY:"xgplayer-replay",NO_START:"xgplayer-nostart",ACTIVE:"xgplayer-active",INACTIVE:"xgplayer-inactive",FULLSCREEN:"xgplayer-is-fullscreen",CSS_FULLSCREEN:"xgplayer-is-cssfullscreen",ROTATE_FULLSCREEN:"xgplayer-rotate-fullscreen",PARENT_ROTATE_FULLSCREEN:"xgplayer-rotate-parent",PARENT_FULLSCREEN:"xgplayer-fullscreen-parent",INNER_FULLSCREEN:"xgplayer-fullscreen-inner",NO_CONTROLS:"no-controls",FLEX_CONTROLS:"flex-controls",CONTROLS_FOLLOW:"controls-follow",CONTROLS_AUTOHIDE:"controls-autohide",TOP_BAR_AUTOHIDE:"top-bar-autohide",NOT_ALLOW_AUTOPLAY:"not-allow-autoplay",SEEKING:"seeking",PC:"xgplayer-pc",MOBILE:"xgplayer-mobile",MINI:"xgplayer-mini"};function Af(){return{id:"",el:null,url:"",domEventType:"default",nullUrlStart:!1,width:600,height:337.5,fluid:!1,fitVideoSize:"fixed",videoFillMode:"auto",volume:.6,autoplay:!1,autoplayMuted:!1,loop:!1,isLive:!1,zoom:1,videoInit:!0,poster:"",isMobileSimulateMode:!1,defaultPlaybackRate:1,execBeforePluginsCall:null,allowSeekAfterEnded:!0,enableContextmenu:!0,closeVideoClick:!1,closeVideoDblclick:!1,closePlayerBlur:!1,closeDelayBlur:!1,leavePlayerTime:3e3,closePlayVideoFocus:!1,closePauseVideoFocus:!1,closeFocusVideoFocus:!0,closeControlsBlur:!0,topBarAutoHide:!0,videoAttributes:{},startTime:0,seekedStatus:"play",miniprogress:!1,disableSwipeHandler:function(){},enableSwipeHandler:function(){},preProcessUrl:null,ignores:[],whitelist:[],inactive:3e3,lang:Ub(),controls:!0,marginControls:!1,fullscreenTarget:null,screenShot:!1,rotate:!1,pip:!1,download:!1,mini:!1,cssFullscreen:!0,keyShortcut:!0,presets:[],plugins:[],playbackRate:1,definition:{list:[]},playsinline:!0,customDuration:0,timeOffset:0,icons:{},i18n:[],tabindex:0,thumbnail:null,videoConfig:{},isHideTips:!1,minWaitDelay:200,commonStyle:{progressColor:"",playedColor:"",cachedColor:"",sliderBtnStyle:{},volumeColor:""}}}var yE=function(r,n){var t,e,a;n.preset&&n.options?a=new n.preset(n.options,r.config):a=new n({},r.config);var i=a,l=i.plugins,c=l===void 0?[]:l,u=i.ignores,d=u===void 0?[]:u,f=i.icons,h=f===void 0?{}:f,p=i.i18n,v=p===void 0?[]:p;r.config.plugins||(r.config.plugins=[]),r.config.ignores||(r.config.ignores=[]),(t=r.config.plugins).push.apply(t,Rn(c)),(e=r.config.ignores).push.apply(e,Rn(d)),Object.keys(h).map(function(m){r.config.icons[m]||(r.config.icons[m]=h[m])});var g=r.config.i18n||[];v.push.apply(v,Rn(g)),r.config.i18n=v},_E=function(o){xe(n,o);var r=Be(n);function n(){var t;ge(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),J(W(t),"onMouseEnter",function(l){var c=W(t),u=c.player,d=c.playerConfig;d.closeControlsBlur&&u.focus({autoHide:!1})}),J(W(t),"onMouseLeave",function(l){var c=W(t),u=c.player;u.focus()}),t}return ye(n,[{key:"beforeCreate",value:function(e){!e.config.mode&&Ge.device==="mobile"&&(e.config.mode="flex"),e.player.config.marginControls&&(e.config.autoHide=!1)}},{key:"afterCreate",value:function(){var e=this,a=this.config,i=a.disable,l=a.height,c=a.mode;if(!i){c==="flex"&&this.player.addClass(ie.FLEX_CONTROLS);var u={height:"".concat(l,"px")};Object.keys(u).map(function(f){e.root.style[f]=u[f]}),this.left=this.find("xg-left-grid"),this.center=this.find("xg-center-grid"),this.right=this.find("xg-right-grid"),this.innerRoot=this.find("xg-inner-controls"),this.on(hi,function(f){f?T.addClass(e.root,"mini-controls"):T.removeClass(e.root,"mini-controls")});var d=this.playerConfig.isMobileSimulateMode;Ge.device!=="mobile"&&d!=="mobile"&&(this.bind("mouseenter",this.onMouseEnter),this.bind("mouseleave",this.onMouseLeave))}}},{key:"focus",value:function(){this.player.focus({autoHide:!1})}},{key:"focusAwhile",value:function(){this.player.focus({autoHide:!0})}},{key:"blur",value:function(){this.player.blur({ignorePaused:!0})}},{key:"recoverAutoHide",value:function(){this.config.autoHide&&T.addClass(this.root,ie.CONTROLS_AUTOHIDE)}},{key:"pauseAutoHide",value:function(){T.removeClass(this.root,ie.CONTROLS_AUTOHIDE)}},{key:"show",value:function(e){this.root.style.display="",this.player.focus()}},{key:"hide",value:function(){this.root.style.display="none"}},{key:"mode",get:function(){return this.config.mode}},{key:"registerPlugin",value:function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!!this.root){var l=e.defaultConfig||{};if(!a.root){var c=a.position?a.position:a.config&&a.config.position?a.config.position:l.position;switch(c){case it.CONTROLS_LEFT:a.root=this.left;break;case it.CONTROLS_RIGHT:a.root=this.right;break;case it.CONTROLS_CENTER:a.root=this.center;break;case it.CONTROLS:a.root=this.root;break;default:a.root=this.left}return Re(Le(n.prototype),"registerPlugin",this).call(this,e,a,i)}}}},{key:"destroy",value:function(){Ge.device!=="mobile"&&(this.unbind("mouseenter",this.onMouseEnter),this.unbind("mouseleave",this.onMouseLeave)),this.left=null,this.center=null,this.right=null,this.innerRoot=null}},{key:"render",value:function(){var e=this.config,a=e.mode,i=e.autoHide,l=e.initShow,c=e.disable;if(!c){var u=T.classNames({"xgplayer-controls":!0},{"flex-controls":a==="flex"},{"bottom-controls":a==="bottom"},J({},ie.CONTROLS_AUTOHIDE,i),{"xgplayer-controls-initshow":l||!i});return'<xg-controls class="'.concat(u,`" unselectable="on">
|
|
30
|
-
<xg-inner-controls class="xg-inner-controls xg-pos">
|
|
31
|
-
<xg-left-grid class="xg-left-grid">
|
|
32
|
-
</xg-left-grid>
|
|
33
|
-
<xg-center-grid class="xg-center-grid"></xg-center-grid>
|
|
34
|
-
<xg-right-grid class="xg-right-grid">
|
|
35
|
-
</xg-right-grid>
|
|
36
|
-
</xg-inner-controls>
|
|
37
|
-
</xg-controls>`)}}}],[{key:"pluginName",get:function(){return"controls"}},{key:"defaultConfig",get:function(){return{disable:!1,autoHide:!0,mode:"",initShow:!1}}}]),n}(nt),wE={LANG:"en",TEXT:{ERROR_TYPES:{network:{code:1,msg:"video download error"},mse:{code:2,msg:"stream append error"},parse:{code:3,msg:"parsing error"},format:{code:4,msg:"wrong format"},decoder:{code:5,msg:"decoding error"},runtime:{code:6,msg:"grammatical errors"},timeout:{code:7,msg:"play timeout"},other:{code:8,msg:"other errors"}},HAVE_NOTHING:"There is no information on whether audio/video is ready",HAVE_METADATA:"Audio/video metadata is ready ",HAVE_CURRENT_DATA:"Data about the current play location is available, but there is not enough data to play the next frame/millisecond",HAVE_FUTURE_DATA:"Current and at least one frame of data is available",HAVE_ENOUGH_DATA:"The available data is sufficient to start playing",NETWORK_EMPTY:"Audio/video has not been initialized",NETWORK_IDLE:"Audio/video is active and has been selected for resources, but no network is used",NETWORK_LOADING:"The browser is downloading the data",NETWORK_NO_SOURCE:"No audio/video source was found",MEDIA_ERR_ABORTED:"The fetch process is aborted by the user",MEDIA_ERR_NETWORK:"An error occurred while downloading",MEDIA_ERR_DECODE:"An error occurred while decoding",MEDIA_ERR_SRC_NOT_SUPPORTED:"Audio/video is not supported",REPLAY:"Replay",ERROR:"Network is offline",PLAY_TIPS:"Play",PAUSE_TIPS:"Pause",PLAYNEXT_TIPS:"Play next",DOWNLOAD_TIPS:"Download",ROTATE_TIPS:"Rotate",RELOAD_TIPS:"Reload",FULLSCREEN_TIPS:"Fullscreen",EXITFULLSCREEN_TIPS:"Exit fullscreen",CSSFULLSCREEN_TIPS:"Cssfullscreen",EXITCSSFULLSCREEN_TIPS:"Exit cssfullscreen",TEXTTRACK:"Caption",PIP:"PIP",SCREENSHOT:"Screenshot",LIVE:"LIVE",OFF:"Off",OPEN:"Open",MINI_DRAG:"Click and hold to drag",MINISCREEN:"Miniscreen",REFRESH_TIPS:"Please Try",REFRESH:"Refresh",FORWARD:"forward",LIVE_TIP:"Live"}},bn={lang:{},langKeys:[],textKeys:[]};function nr(o,r){return Object.keys(r).forEach(function(n){var t=T.typeOf(r[n]),e=T.typeOf(o[n]);if(t==="Array"){var a;e!=="Array"&&(o[n]=[]),(a=o[n]).push.apply(a,Rn(r[n]))}else t==="Object"?(e!=="Object"&&(o[n]={}),nr(o[n],r[n])):o[n]=r[n]}),o}function Df(){Object.keys(bn.lang.en).map(function(o){bn.textKeys[o]=o})}function bE(o,r){var n=[];if(r||(r=bn),!!r.lang){T.typeOf(o)!=="Array"?n=Object.keys(o).map(function(a){var i=a==="zh"?"zh-cn":a;return{LANG:i,TEXT:o[a]}}):n=o;var t=r,e=t.lang;n.map(function(a){a.LANG==="zh"&&(a.LANG="zh-cn"),e[a.LANG]?nr(e[a.LANG]||{},a.TEXT||{}):gl(a,r)}),Df()}}function gl(o,r){var n=o.LANG;if(r||(r=bn),!!r.lang){var t=o.TEXT||{};n==="zh"&&(n="zh-cn"),r.lang[n]?nr(r.lang[n],t):(r.langKeys.push(n),r.lang[n]=t),Df()}}function EE(o){var r,n={lang:{},langKeys:[],textKeys:{},pId:o};return nr(n.lang,bn.lang),(r=n.langKeys).push.apply(r,Rn(bn.langKeys)),nr(n.textKeys,bn.textKeys),n}gl(wE);var co={get textKeys(){return bn.textKeys},get langKeys(){return bn.langKeys},get lang(){var o={};return bn.langKeys.map(function(r){o[r]=bn.lang[r]}),bn.lang["zh-cn"]&&(o.zh=bn.lang["zh-cn"]||{}),o},extend:bE,use:gl,init:EE},tt={INITIAL:1,READY:2,ATTACHING:3,ATTACHED:4,NOTALLOW:5,RUNNING:6,ENDED:7,DESTROYED:8},Pf=["ERROR","INITIAL","READY","ATTACHING","ATTACHED","NOTALLOW","RUNNING","ENDED","DESTROYED"],ln={},yl=null,Of=function(o){xe(n,o);var r=Be(n);function n(){return ge(this,n),r.apply(this,arguments)}return ye(n,[{key:"add",value:function(e){!e||(ln[e.playerId]=e,Object.keys(ln).length===1&&this.setActive(e.playerId,!0))}},{key:"remove",value:function(e){!e||(e.isUserActive,delete ln[e.playerId])}},{key:"_iterate",value:function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(var i in ln)if(Object.prototype.hasOwnProperty.call(ln,i)){var l=ln[i];if(a){if(e(l))break}else e(l)}}},{key:"forEach",value:function(e){this._iterate(e)}},{key:"find",value:function(e){var a=null;return this._iterate(function(i){var l=e(i);return l&&(a=i),l},!0),a}},{key:"findAll",value:function(e){var a=[];return this._iterate(function(i){e(i)&&a.push(i)}),a}},{key:"setActive",value:function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!!ln[e])return a?this.forEach(function(i){e===i.playerId?(i.isUserActive=!0,i.isInstNext=!1):i.isUserActive=!1}):ln[e].isUserActive=a,e}},{key:"getActiveId",value:function(){for(var e=Object.keys(ln),a=0;a<e.length;a++){var i=ln[e[a]];if(i&&i.isUserActive)return e[a]}return null}},{key:"setNext",value:function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!!ln[e])return a?this.forEach(function(i){e===i.playerId?(i.isUserActive=!1,i.isInstNext=!0):i.isInstNext=!1}):ln[e].isInstNext=a,e}}],[{key:"getInstance",value:function(){return yl||(yl=new n),yl}}]),n}(tl.exports.EventEmitter);function CE(o){for(var r=Object.keys(ln),n=0;n<r.length;n++){var t=ln[r[n]];if(t.root===o)return t}return null}var SE=["play","pause","replay","retry"],Lf=0,If=0,_a=null,bi=function(o){xe(n,o);var r=Be(n);function n(t){var e;ge(this,n);var a=T.deepMerge(Af(),t);e=r.call(this,a),J(W(e),"canPlayFunc",function(){if(!!e.config){var v=e.config,g=v.autoplay,m=v.defaultPlaybackRate;Ze.logInfo("player","canPlayFunc, startTime",e.__startTime),e._seekToStartTime(),e.playbackRate=m,(g||e._useAutoplay)&&e.mediaPlay(),e.off(na,e.canPlayFunc),e.removeClass(ie.ENTER)}}),J(W(e),"onFullscreenChange",function(v,g){var m=function(){T.setTimeout(W(e),function(){e.resize()},100)},_=T.getFullScreenEl();e._fullActionFrom?e._fullActionFrom="":e.emit(vi,{eventType:"system",action:"switch_fullscreen",pluginName:"player",currentTime:e.currentTime,duration:e.duration,props:[{prop:"fullscreen",from:!0,to:!1}]});var b=jb(_,e.playerId,ya);if(g||_&&(_===e._fullscreenEl||b))m(),!e.config.closeFocusVideoFocus&&e.media.focus(),e.fullscreen=!0,e.changeFullStyle(e.root,_,ie.FULLSCREEN),e.emit(ra,!0,e._fullScreenOffset),e.cssfullscreen&&e.exitCssFullscreen();else if(e.fullscreen){m();var y=W(e),w=y._fullScreenOffset,S=y.config;if(S.needFullscreenScroll?(window.scrollTo(w.left,w.top),T.setTimeout(W(e),function(){e.fullscreen=!1,e._fullScreenOffset=null},100)):(!e.config.closeFocusVideoFocus&&e.media.focus(),e.fullscreen=!1,e._fullScreenOffset=null),e.cssfullscreen)e.removeClass(ie.FULLSCREEN);else{var D=e._fullscreenEl;!D&&(e.root.contains(v.target)||v.target===e.root)&&(D=v.target),e.recoverFullStyle(e.root,D,ie.FULLSCREEN)}e._fullscreenEl=null,e.emit(ra,!1)}}),J(W(e),"_onWebkitbeginfullscreen",function(v){e._fullscreenEl=e.media,e.onFullscreenChange(v,!0)}),J(W(e),"_onWebkitendfullscreen",function(v){e.onFullscreenChange(v,!1)}),Sf(W(e),SE),e.config=a,e._pluginInfoId=T.generateSessionId(),Rb(W(e));var i=e.constructor.defaultPreset;if(e.config.presets.length){var l=e.config.presets.indexOf("default");l>=0&&i&&(e.config.presets[l]=i)}else i&&e.config.presets.push(i);e.userTimer=null,e.waitTimer=null,e.handleSource=!0,e._state=tt.INITIAL,e.isAd=!1,e.isError=!1,e._hasStart=!1,e.isSeeking=!1,e.isCanplay=!1,e._useAutoplay=!1,e.__startTime=-1,e.rotateDeg=0,e.isActive=!1,e.fullscreen=!1,e.cssfullscreen=!1,e.isRotateFullscreen=!1,e._fullscreenEl=null,e.timeSegments=[],e._cssfullscreenEl=null,e.curDefinition=null,e._orgCss="",e._fullScreenOffset=null,e._videoHeight=0,e._videoWidth=0,e.videoPos={pi:1,scale:0,rotate:-1,x:0,y:0,h:-1,w:-1,vy:0,vx:0},e.sizeInfo={width:0,height:0,left:0,top:0},e._accPlayed={t:0,acc:0,loopAcc:0},e._offsetInfo={currentTime:-1,duration:0},e.innerContainer=null,e.controls=null,e.topBar=null,e.root=null,e.__i18n=co.init(e._pluginInfoId),Ge.os.isAndroid&&Ge.osVersion>0&&Ge.osVersion<6&&(e.config.autoplay=!1),e.database=new aE,e.isUserActive=!1,e._onceSeekCanplay=null,e._isPauseBeforeSeek=0,e.innerStates={isActiveLocked:!1},e.instManager=_a;var c=e._initDOM();if(!c)return console.error(new Error("can't find the dom which id is ".concat(e.config.id," or this.config.el does not exist"))),$s(e);var u=e.config,d=u.definition,f=d===void 0?{}:d,h=u.url;if(!h&&f.list&&f.list.length>0){var p=f.list.find(function(v){return v.definition&&v.definition===f.defaultDefinition});p||(f.defaultDefinition=f.list[0].definition,p=f.list[0]),e.config.url=p.url,e.curDefinition=p}return e._bindEvents(),e._registerPresets(),e._registerPlugins(),Yt.onPluginsReady(W(e)),e.getInitDefinition(),e.setState(tt.READY),T.setTimeout(W(e),function(){e.emit(ci)},0),e.onReady&&e.onReady(),(e.config.videoInit||e.config.autoplay)&&(!e.hasStart||e.state<tt.ATTACHED)&&e.start(),e}return ye(n,[{key:"_initDOM",value:function(){var e,a=this;if(this.root=this.config.id?document.getElementById(this.config.id):null,!this.root){var i=this.config.el;if(i&&i.nodeType===1)this.root=i;else return this.emit(so,new Zo("use",this.config.vid,{line:32,handle:"Constructor",msg:"container id can't be empty"})),console.error("this.confg.id or this.config.el can't be empty"),!1}var l=CE(this.root);if(l&&(Ze.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"),l.destroy()),this.root.setAttribute(ya,this.playerId),this.media.setAttribute(ya,this.playerId),(e=_a)===null||e===void 0||e.add(this),Yt.init(this),this._initBaseDoms(),this.config.controls){var c=this.config.controls.root||null,u=Yt.register(this,_E,{root:c});this.controls=u}var d=this.config.isMobileSimulateMode==="mobile"?"mobile":Ge.device;if(this.addClass("".concat(ie.DEFAULT," ").concat(ie.INACTIVE," xgplayer-").concat(d," ").concat(this.config.controls?"":ie.NO_CONTROLS)),this.config.autoplay?this.addClass(ie.ENTER):this.addClass(ie.NO_START),this.config.fluid){var f=this.config,h=f.width,p=f.height;(typeof h!="number"||typeof p!="number")&&(h=600,p=337.5);var v={width:"100%",height:"0","max-width":"100%","padding-top":"".concat(p*100/h,"%")};Object.keys(v).forEach(function(w){a.root.style[w]=v[w]})}else["width","height"].forEach(function(w){a.config[w]&&(typeof a.config[w]!="number"?a.root.style[w]=a.config[w]:a.root.style[w]="".concat(a.config[w],"px"))});var g=this.root.getBoundingClientRect(),m=g.width,_=g.height,b=g.left,y=g.top;return this.sizeInfo.width=m,this.sizeInfo.height=_,this.sizeInfo.left=b,this.sizeInfo.top=y,!0}},{key:"_initBaseDoms",value:function(){this.topBar=null,this.leftBar=null,this.rightBar=null,this.config.marginControls&&(this.innerContainer=T.createDom("xg-video-container","",{"data-index":-1},"xg-video-container"),this.root.appendChild(this.innerContainer))}},{key:"_bindEvents",value:function(){var e=this;["focus","blur"].forEach(function(a){e.on(a,e["on"+a.charAt(0).toUpperCase()+a.slice(1)])}),yf.forEach(function(a){document&&document.addEventListener(a,e.onFullscreenChange)}),Ge.os.isIos&&(this.media.addEventListener("webkitbeginfullscreen",this._onWebkitbeginfullscreen),this.media.addEventListener("webkitendfullscreen",this._onWebkitendfullscreen)),this.once(oa,this.resize),this.playFunc=function(){e.config.closeFocusVideoFocus||e.media.focus()},this.once(sn,this.playFunc)}},{key:"_unbindEvents",value:function(){var e=this;this.root.removeEventListener("mousemove",this.mousemoveFunc),yf.forEach(function(a){document.removeEventListener(a,e.onFullscreenChange)}),this.playFunc&&this.off(sn,this.playFunc),this.off(na,this.canPlayFunc),this.media.removeEventListener("webkitbeginfullscreen",this._onWebkitbeginfullscreen),this.media.removeEventListener("webkitendfullscreen",this._onWebkitendfullscreen)}},{key:"_clearUserTimer",value:function(){!this.userTimer||(T.clearTimeout(this,this.userTimer),this.userTimer=null)}},{key:"_startInit",value:function(e){var a=this;if(!!this.media&&!((!e||e===""||T.typeOf(e)==="Array"&&e.length===0)&&(e="",this.emit(af),Ze.logWarn("config.url is null, please get url and run player._startInit(url)"),this.config.nullUrlStart))){this.handleSource&&(this._detachSourceEvents(this.media),T.typeOf(e)==="Array"&&e.length>0?this._attachSourceEvents(this.media,e):!this.media.src||this.media.src!==e?this.media.src=e:e||this.media.removeAttribute("src")),T.typeOf(this.config.volume)==="Number"&&(this.volume=this.config.volume);var i=this.innerContainer?this.innerContainer:this.root;this.media instanceof window.Element&&!i.contains(this.media)&&i.insertBefore(this.media,i.firstChild);var l=this.media.readyState;Ze.logInfo("_startInit readyState",l),this.config.autoplay&&(!T.isMSE(this.media)&&this.load(),(Ge.os.isIpad||Ge.os.isPhone)&&this.mediaPlay());var c=this.config.startTime;this.__startTime=c>0?c:-1,this.config.startTime=0,l>=2&&this.duration>0?this.canPlayFunc():this.on(na,this.canPlayFunc),(!this.hasStart||this.state<tt.ATTACHED)&&Yt.afterInit(this),this.hasStart=!0,this.setState(tt.ATTACHED),T.setTimeout(this,function(){a.emit(ui)},0)}}},{key:"_registerPlugins",value:function(){var e=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this._loadingPlugins=[];var i=this.config.ignores||[],l=this.config.plugins||[],c=this.config.i18n||[];a&&co.extend(c,this.__i18n);var u=i.join("||").toLowerCase().split("||"),d=this.plugins;l.forEach(function(f){try{var h=f.plugin?f.plugin.pluginName:f.pluginName;if(h&&u.indexOf(h.toLowerCase())>-1)return null;if(!a&&d[h.toLowerCase()])return;if(f.lazy&&f.loader){var p=Yt.lazyRegister(e,f);f.forceBeforeInit&&(p.then(function(){e._loadingPlugins.splice(e._loadingPlugins.indexOf(p),1)}).catch(function(v){Ze.logError("_registerPlugins:loadingPlugin",v),e._loadingPlugins.splice(e._loadingPlugins.indexOf(p),1)}),e._loadingPlugins.push(p));return}return e.registerPlugin(f)}catch(v){Ze.logError("_registerPlugins:",v)}})}},{key:"_registerPresets",value:function(){var e=this;this.config.presets.forEach(function(a){yE(e,a)})}},{key:"_getRootByPosition",value:function(e){var a=null;switch(e){case it.ROOT_RIGHT:this.rightBar||(this.rightBar=T.createPositionBar("xg-right-bar",this.root)),a=this.rightBar;break;case it.ROOT_LEFT:this.leftBar||(this.leftBar=T.createPositionBar("xg-left-bar",this.root)),a=this.leftBar;break;case it.ROOT_TOP:this.topBar||(this.topBar=T.createPositionBar("xg-top-bar",this.root),this.config.topBarAutoHide&&T.addClass(this.topBar,ie.TOP_BAR_AUTOHIDE)),a=this.topBar;break;default:a=this.innerContainer||this.root;break}return a}},{key:"registerPlugin",value:function(e,a){var i=Yt.formatPluginInfo(e,a),l=i.PLUFGIN,c=i.options,u=this.config.plugins,d=Yt.checkPluginIfExits(l.pluginName,u);!d&&u.push(l);var f=Yt.getRootByConfig(l.pluginName,this.config);f.root&&(c.root=f.root),f.position&&(c.position=f.position);var h=c.position?c.position:c.config&&c.config.position||l.defaultConfig&&l.defaultConfig.position;if(!c.root&&typeof h=="string"&&h.indexOf("controls")>-1){var p;return(p=this.controls)===null||p===void 0?void 0:p.registerPlugin(l,c,l.pluginName)}return c.root||(c.root=this._getRootByPosition(h)),Yt.register(this,l,c)}},{key:"deregister",value:function(e){typeof e=="string"?Yt.unRegister(this,e):e instanceof Gn&&Yt.unRegister(this,e.pluginName)}},{key:"unRegisterPlugin",value:function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this.deregister(e),a&&this.removePluginFromConfig(e)}},{key:"removePluginFromConfig",value:function(e){var a;if(typeof e=="string"?a=e:e instanceof Gn&&(a=e.pluginName),!!a)for(var i=this.config.plugins.length-1;i>-1;i--){var l=this.config.plugins[i];if(l.pluginName.toLowerCase()===a.toLowerCase()){this.config.plugins.splice(i,1);break}}}},{key:"plugins",get:function(){return Yt.getPlugins(this)}},{key:"getPlugin",value:function(e){var a=Yt.findPlugin(this,e);return a&&a.pluginName?a:null}},{key:"addClass",value:function(e){!this.root||T.hasClass(this.root,e)||T.addClass(this.root,e)}},{key:"removeClass",value:function(e){!this.root||T.removeClass(this.root,e)}},{key:"hasClass",value:function(e){if(!!this.root)return T.hasClass(this.root,e)}},{key:"setAttribute",value:function(e,a){!this.root||this.root.setAttribute(e,a)}},{key:"removeAttribute",value:function(e,a){!this.root||this.root.removeAttribute(e,a)}},{key:"start",value:function(e){var a=this;if(!(this.state>tt.ATTACHING))return!e&&!this.config.url&&this.getInitDefinition(),this.hasStart=!0,this.setState(tt.ATTACHING),this._registerPlugins(!1),Yt.beforeInit(this).then(function(){if(!!a.config){e||(e=a.url||a.config.url);var i=a.preProcessUrl(e),l=a._startInit(i.url);return l}}).catch(function(i){throw i.fileName="player",i.lineNumber="236",Ze.logError("start:beforeInit:",i),i})}},{key:"switchURL",value:function(e,a){var i=this,l=e;T.typeOf(e)==="Object"&&(l=e.url),l=this.preProcessUrl(l).url;var c=this.currentTime;this.__startTime=c;var u=this.paused&&!this.isError;return this.src=l,new Promise(function(d,f){var h=function(g){i.off("timeupdate",p),i.off("canplay",p),f(g)},p=function(){i._seekToStartTime(),u&&i.pause(),i.off("error",h),d(!0)};if(i.once("error",h),!l){i.errorHandler("error",{code:6,message:"empty_src"});return}Ge.os.isAndroid?i.once("timeupdate",p):i.once("canplay",p),i.play()})}},{key:"videoPlay",value:function(){this.mediaPlay()}},{key:"mediaPlay",value:function(){var e=this;if(!this.hasStart&&this.state<tt.ATTACHED){this.removeClass(ie.NO_START),this.addClass(ie.ENTER),this.start(),this._useAutoplay=!0;return}this.state<tt.RUNNING&&(this.removeClass(ie.NO_START),!this.isCanplay&&this.addClass(ie.ENTER));var a=Re(Le(n.prototype),"play",this).call(this);return a!==void 0&&a&&a.then?a.then(function(){e.removeClass(ie.NOT_ALLOW_AUTOPLAY),e.addClass(ie.PLAYING),e.state<tt.RUNNING&&(Ze.logInfo(">>>>playPromise.then"),e.setState(tt.RUNNING),e.emit(Fa))}).catch(function(i){if(Ze.logWarn(">>>>playPromise.catch",i.name),e.media&&e.media.error){e.onError(),e.removeClass(ie.ENTER);return}i.name==="NotAllowedError"&&(e._errorTimer=T.setTimeout(e,function(){e._errorTimer=null,e.emit(ll),e.addClass(ie.NOT_ALLOW_AUTOPLAY),e.removeClass(ie.ENTER),e.pause(),e.setState(tt.NOTALLOW)},0))}):(Ze.logWarn("video.play not return promise"),this.state<tt.RUNNING&&(this.setState(tt.RUNNING),this.removeClass(ie.NOT_ALLOW_AUTOPLAY),this.removeClass(ie.NO_START),this.removeClass(ie.ENTER),this.addClass(ie.PLAYING),this.emit(Fa))),a}},{key:"mediaPause",value:function(){Re(Le(n.prototype),"pause",this).call(this)}},{key:"videoPause",value:function(){Re(Le(n.prototype),"pause",this).call(this)}},{key:"play",value:function(){var e=this;return this.removeClass(ie.PAUSED),jn(this,"play",function(){return e.mediaPlay()})}},{key:"pause",value:function(){var e=this;jn(this,"pause",function(){Re(Le(n.prototype),"pause",e).call(e)})}},{key:"seek",value:function(e,a){var i=this;if(!(!this.media||Number.isNaN(Number(e))||!this.hasStart)){var l=this.config,c=l.isSeekedPlay,u=l.seekedStatus,d=a||(c?"play":u);e=e<0?0:e>this.duration?parseInt(this.duration,10):e,!this._isPauseBeforeSeek&&(this._isPauseBeforeSeek=this.paused?2:1),this._onceSeekCanplay&&this.off(ta,this._onceSeekCanplay),this._onceSeekCanplay=function(){switch(i.removeClass(ie.ENTER),i.isSeeking=!1,d){case"play":i.play();break;case"pause":i.pause();break;default:i._isPauseBeforeSeek>1||i.paused?i.pause():i.play()}i._isPauseBeforeSeek=0,i._onceSeekCanplay=null},this.once(ta,this._onceSeekCanplay),this.state<tt.RUNNING?(this.removeClass(ie.NO_START),this.currentTime=e,this.play()):this.currentTime=e}}},{key:"getInitDefinition",value:function(){var e=this,a=this.config,i=a.definition,l=a.url;!l&&i&&i.list&&i.list.length>0&&i.defaultDefinition&&i.list.map(function(c){c.definition===i.defaultDefinition&&(e.config.url=c.url,e.curDefinition=c)})}},{key:"changeDefinition",value:function(e,a){var i=this,l=this.config.definition;if(Array.isArray(l==null?void 0:l.list)&&l.list.forEach(function(u){(e==null?void 0:e.definition)===u.definition&&(i.curDefinition=u)}),e!=null&&e.bitrate&&typeof e.bitrate!="number"&&(e.bitrate=parseInt(e.bitrate,10)||0),this.emit(ul,{from:a,to:e}),!this.hasStart){this.config.url=e.url;return}var c=this.switchURL(e.url,St({seamless:l.seamless!==!1&&typeof MediaSource<"u"&&typeof MediaSource.isTypeSupported=="function"},e));c&&c.then?c.then(function(){i.emit(dl,{from:a,to:e})}):this.emit(dl,{from:a,to:e})}},{key:"reload",value:function(){this.load(),this.reloadFunc=function(){this.play()},this.once(oa,this.reloadFunc)}},{key:"resetState",value:function(){var e=this,a=ie.NOT_ALLOW_AUTOPLAY,i=ie.PLAYING,l=ie.NO_START,c=ie.PAUSED,u=ie.REPLAY,d=ie.ENTER,f=ie.ENDED,h=ie.ERROR,p=ie.LOADING,v=[a,i,l,c,u,d,f,h,p];this.hasStart=!1,this.isError=!1,this._useAutoplay=!1,this.mediaPause(),this._accPlayed.acc=0,this._accPlayed.t=0,this._accPlayed.loopAcc=0,v.forEach(function(g){e.removeClass(g)}),this.addClass(ie.NO_START),this.emit(mi)}},{key:"reset",value:function(){var e=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0;this.resetState();var l=this.plugins;if(!!l&&(a.map(function(u){e.deregister(u)}),i)){var c=Af();Object.keys(this.config).keys(function(u){e.config[u]!=="undefined"&&(u==="plugins"||u==="presets"||u==="el"||u==="id")&&(e.config[u]=c[u])})}}},{key:"destroy",value:function(){var e,a=this,i=this.innerContainer,l=this.root,c=this.media;if(!(!l||!c)){if(this.hasStart=!1,this._useAutoplay=!1,l.removeAttribute(ya),c.removeAttribute(ya),this.updateAcc("destroy"),this._unbindEvents(),this._detachSourceEvents(this.media),T.clearAllTimers(this),this.emit(di),(e=_a)===null||e===void 0||e.remove(this),Yt.destroy(this),kf(this),Re(Le(n.prototype),"destroy",this).call(this),this.fullscreen&&this._fullscreenEl===this.root&&this.exitFullscreen(),i)for(var u=i.children,d=0;d<u.length;d++)i.removeChild(u[d]);!i&&c instanceof window.Node&&l.contains(c)&&!this.config.remainMediaAfterDestroy&&l.removeChild(c),["topBar","leftBar","rightBar","innerContainer"].map(function(h){a[h]&&l.removeChild(a[h]),a[h]=null});var f=l.className.split(" ");f.length>0?l.className=f.filter(function(h){return h.indexOf("xgplayer")<0}).join(" "):l.className="",this.removeAttribute("data-xgfill"),["isSeeking","isCanplay","isActive","cssfullscreen","fullscreen"].forEach(function(h){a[h]=!1})}}},{key:"replay",value:function(){var e=this;this.removeClass(ie.ENDED),this.currentTime=0,this.isSeeking=!1,jn(this,"replay",function(){e.once(ta,function(){var a=e.mediaPlay();a&&a.catch&&a.catch(function(i){console.log(i)})}),e.emit($o),e.onPlay()})}},{key:"retry",value:function(){var e=this;this.removeClass(ie.ERROR),this.addClass(ie.LOADING),jn(this,"retry",function(){var a=e.currentTime,i=e.config.url,l=T.isMSE(e.media)?{url:i}:e.preProcessUrl(i);e.src=l.url,!e.config.isLive&&(e.currentTime=a),e.once(na,function(){e.mediaPlay()})})}},{key:"changeFullStyle",value:function(e,a,i,l){!e||(l||(l=ie.PARENT_FULLSCREEN),this._orgCss||(this._orgCss=T.filterStyleFromText(e)),T.addClass(e,i),a&&a!==e&&!this._orgPCss&&(this._orgPCss=T.filterStyleFromText(a),T.addClass(a,l),a.setAttribute(ya,this.playerId)))}},{key:"recoverFullStyle",value:function(e,a,i,l){l||(l=ie.PARENT_FULLSCREEN),this._orgCss&&(T.setStyleFromCsstext(e,this._orgCss),this._orgCss=""),T.removeClass(e,i),a&&a!==e&&this._orgPCss&&(T.setStyleFromCsstext(a,this._orgPCss),this._orgPCss="",T.removeClass(a,l),a.removeAttribute(ya))}},{key:"getFullscreen",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.config.fullscreenTarget,a=this.root,i=this.media;(e==="video"||e==="media")&&(e=this[e]),e||(e=a),this._fullScreenOffset={top:T.scrollTop(),left:T.scrollLeft()},this._fullscreenEl=e,this._fullActionFrom="get";var l=T.getFullScreenEl();if(l===this._fullscreenEl)return this.onFullscreenChange(),Promise.resolve();try{for(var c=0;c<_f.length;c++){var u=_f[c];if(e[u]){var d=u==="webkitRequestFullscreen"?e.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT):e[u]();return d&&d.then?d:Promise.resolve()}}return i.fullscreenEnabled||i.webkitSupportsFullscreen?(i.webkitEnterFullscreen(),Promise.resolve()):Promise.reject(new Error("call getFullscreen fail"))}catch{return Promise.reject(new Error("call getFullscreen fail"))}}},{key:"exitFullscreen",value:function(e){if(this.isRotateFullscreen&&this.exitRotateFullscreen(),!(!this._fullscreenEl&&!T.getFullScreenEl())){this.root;var a=this.media;this._fullActionFrom="exit";try{for(var i=0;i<wf.length;i++){var l=wf[i];if(document[l]){var c=document[l]();return c&&c.then?c:Promise.resolve()}}return a&&a.webkitSupportsFullscreen?(a.webkitExitFullScreen(),Promise.resolve()):Promise.reject(new Error("call exitFullscreen fail"))}catch{return Promise.reject(new Error("call exitFullscreen fail"))}}}},{key:"getCssFullscreen",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.config.fullscreenTarget;this.isRotateFullscreen?this.exitRotateFullscreen():this.fullscreen&&this.exitFullscreen();var a=e?"".concat(ie.INNER_FULLSCREEN," ").concat(ie.CSS_FULLSCREEN):ie.CSS_FULLSCREEN;this.changeFullStyle(this.root,e,a);var i=this.config.fullscreen,l=i===void 0?{}:i,c=l.useCssFullscreen===!0||typeof l.useCssFullscreen=="function"&&l.useCssFullscreen();c&&(this.fullscreen=!0,this.emit(ra,!0)),this._cssfullscreenEl=e,this.cssfullscreen=!0,this.emit(fi,!0)}},{key:"exitCssFullscreen",value:function(){var e=this._cssfullscreenEl?"".concat(ie.INNER_FULLSCREEN," ").concat(ie.CSS_FULLSCREEN):ie.CSS_FULLSCREEN;if(!this.fullscreen)this.recoverFullStyle(this.root,this._cssfullscreenEl,e);else{var a=this.config.fullscreen,i=a===void 0?{}:a,l=i.useCssFullscreen===!0||typeof i.useCssFullscreen=="function"&&i.useCssFullscreen();l?(this.recoverFullStyle(this.root,this._cssfullscreenEl,e),this.fullscreen=!1,this.emit(ra,!1)):this.removeClass(e)}this._cssfullscreenEl=null,this.cssfullscreen=!1,this.emit(fi,!1)}},{key:"getRotateFullscreen",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.config.fullscreenTarget;this.cssfullscreen&&this.exitCssFullscreen(e);var a=e?"".concat(ie.INNER_FULLSCREEN," ").concat(ie.ROTATE_FULLSCREEN):ie.ROTATE_FULLSCREEN;this._fullscreenEl=e||this.root,this.changeFullStyle(this.root,e,a,ie.PARENT_ROTATE_FULLSCREEN),this.isRotateFullscreen=!0,this.fullscreen=!0,this.setRotateDeg(90),this._rootStyle=this.root.getAttribute("style"),this.root.style.width="".concat(window.innerHeight,"px"),this.emit(ra,!0)}},{key:"exitRotateFullscreen",value:function(e){var a=this._fullscreenEl!==this.root?"".concat(ie.INNER_FULLSCREEN," ").concat(ie.ROTATE_FULLSCREEN):ie.ROTATE_FULLSCREEN;this.recoverFullStyle(this.root,this._fullscreenEl,a,ie.PARENT_ROTATE_FULLSCREEN),this.isRotateFullscreen=!1,this.fullscreen=!1,this.setRotateDeg(0),this.emit(ra,!1),this._rootStyle&&(this.root.style.style=this._rootStyle,this._rootStyle=!1)}},{key:"setRotateDeg",value:function(e){window.orientation===90||window.orientation===-90?this.rotateDeg=0:this.rotateDeg=e}},{key:"focus",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{autoHide:!this.config.closeDelayBlur,delay:this.config.inactive};if(this.isActive){this.onFocus(e);return}this.emit(sl,St({paused:this.paused,ended:this.ended},e))}},{key:"blur",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{ignorePaused:!1};if(!this.isActive){this.onBlur(e);return}this._clearUserTimer(),this.emit(nf,St({paused:this.paused,ended:this.ended},e))}},{key:"onFocus",value:function(){var e=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{autoHide:!0,delay:3e3},i=this.innerStates;if(this.isActive=!0,this.removeClass(ie.INACTIVE),this._clearUserTimer(),a.isLock!==void 0&&(i.isActiveLocked=a.isLock),a.autoHide===!1||a.isLock===!0||i.isActiveLocked){this._clearUserTimer();return}var l=a&&a.delay?a.delay:this.config.inactive;this.userTimer=T.setTimeout(this,function(){e.userTimer=null,e.blur()},l)}},{key:"onBlur",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=e.ignorePaused,i=a===void 0?!1:a;if(!this.innerStates.isActiveLocked){var l=this.config.closePauseVideoFocus;this.isActive=!1,(i||l||!this.paused&&!this.ended)&&this.addClass(ie.INACTIVE)}}},{key:"onEmptied",value:function(){this.updateAcc("emptied")}},{key:"onCanplay",value:function(){this.removeClass(ie.ENTER),this.removeClass(ie.ERROR),this.removeClass(ie.LOADING),this.isCanplay=!0,this.waitTimer&&T.clearTimeout(this,this.waitTimer)}},{key:"onLoadeddata",value:function(){var e=this;this.isError=!1,this.isSeeking=!1,this.__startTime>0&&(this.duration>0?this._seekToStartTime():this.once(aa,function(){e._seekToStartTime()}))}},{key:"onLoadstart",value:function(){this.removeClass(ie.ERROR),this.isCanplay=!1}},{key:"onPlay",value:function(){this.state===tt.ENDED&&this.setState(tt.RUNNING),this.removeClass(ie.PAUSED),this.ended&&this.removeClass(ie.ENDED),!this.config.closePlayVideoFocus&&this.focus()}},{key:"onPause",value:function(){this.addClass(ie.PAUSED),this.updateAcc("pause"),this.config.closePauseVideoFocus||(this._clearUserTimer(),this.focus())}},{key:"onEnded",value:function(){this.updateAcc("ended"),this.addClass(ie.ENDED),this.setState(tt.ENDED)}},{key:"onError",value:function(){this.isError=!0,this.updateAcc("error"),this.removeClass(ie.NOT_ALLOW_AUTOPLAY),this.removeClass(ie.NO_START),this.removeClass(ie.ENTER),this.removeClass(ie.LOADING),this.addClass(ie.ERROR)}},{key:"onSeeking",value:function(){this.isSeeking||this.updateAcc("seeking"),this.isSeeking=!0,this.addClass(ie.SEEKING)}},{key:"onSeeked",value:function(){this.isSeeking=!1,this.waitTimer&&T.clearTimeout(this,this.waitTimer),this.removeClass(ie.LOADING),this.removeClass(ie.SEEKING)}},{key:"onWaiting",value:function(){var e=this;this.waitTimer&&T.clearTimeout(this,this.waitTimer),this.updateAcc("waiting"),this.waitTimer=T.setTimeout(this,function(){e.addClass(ie.LOADING),e.emit(sf),T.clearTimeout(e,e.waitTimer),e.waitTimer=null},this.config.minWaitDelay)}},{key:"onPlaying",value:function(){var e=this;this.isError=!1;var a=ie.NO_START,i=ie.PAUSED,l=ie.ENDED,c=ie.ERROR,u=ie.REPLAY,d=ie.LOADING,f=[a,i,l,c,u,d];f.forEach(function(h){e.removeClass(h)}),!this._accPlayed.t&&!this.paused&&!this.ended&&(this._accPlayed.t=new Date().getTime())}},{key:"onTimeupdate",value:function(){!this._videoHeight&&this.media.videoHeight&&this.resize(),(this.waitTimer||this.hasClass(ie.LOADING))&&this.media.readyState>2&&(this.removeClass(ie.LOADING),T.clearTimeout(this,this.waitTimer),this.waitTimer=null),!this.paused&&this.state===tt.NOTALLOW&&this.duration&&(this.setState(tt.RUNNING),this.emit(Fa)),!this._accPlayed.t&&!this.paused&&!this.ended&&(this._accPlayed.t=new Date().getTime())}},{key:"onVolumechange",value:function(){T.typeOf(this.config.volume)==="Number"&&(this.config.volume=this.volume)}},{key:"onRatechange",value:function(){this.config.defaultPlaybackRate=this.playbackRate}},{key:"emitUserAction",value:function(e,a,i){if(!(!this.media||!a||!e)){var l=T.typeOf(e)==="String"?e:e.type||"";i.props&&T.typeOf(i.props)!=="Array"&&(i.props=[i.props]),this.emit(vi,St({eventType:l,action:a,currentTime:this.currentTime,duration:this.duration,ended:this.ended,event:e},i))}}},{key:"updateAcc",value:function(e){if(this._accPlayed.t){var a=new Date().getTime()-this._accPlayed.t;this._accPlayed.acc+=a,this._accPlayed.t=0,(e==="ended"||this.ended)&&(this._accPlayed.loopAcc=this._accPlayed.acc)}}},{key:"checkBuffer",value:function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{startDiff:0,endDiff:0},i=a||{},l=i.startDiff,c=l===void 0?0:l,u=i.endDiff,d=u===void 0?0:u,f=this.media.buffered;if(!f||f.length===0||!this.duration)return!0;for(var h=e||this.media.currentTime||.2,p=f.length,v=0;v<p;v++)if(f.start(v)+c<=h&&f.end(v)-d>h)return!0;return!1}},{key:"resizePosition",value:function(){var e=this,a=this.videoPos,i=a.vy,l=a.vx,c=a.h,u=a.w,d=this.videoPos.rotate;if(!(d<0&&c<0&&u<0)){var f=this.videoPos._pi;if(!f&&this.media.videoHeight&&(f=this.media.videoWidth/this.media.videoHeight*100),!!f){this.videoPos.pi=f,d=d<0?0:d;var h={rotate:d},p=0,v=0,g=1,m=Math.abs(d/90),_=this.root,b=this.innerContainer,y=_.offsetWidth,w=b?b.offsetHeight:_.offsetHeight,S={},D=w,C=y;if(m%2===0)g=c>0?100/c:u>0?100/u:1,h.scale=g,p=i>0?(100-c)/2-i:0,h.y=m===2?0-p:p,v=l>0?(100-u)/2-l:0,h.x=m===2?0-v:v,S.width="".concat(C,"px"),S.height="".concat(D,"px"),S.maxWidth="",S.maxHeight="";else if(m%2===1){C=w,D=y;var B=w-y;v=-B/2/C*100,h.x=m===3?v+i/2:v-i/2,p=B/2/D*100,h.y=m===3?p+l/2:p-l/2,h.scale=g,S.width="".concat(C,"px"),S.maxWidth="".concat(C,"px"),S.height="".concat(D,"px"),S.maxHeight="".concat(D,"px")}var A=T.getTransformStyle(h,this.media.style.transform||this.media.style.webkitTransform);S.transform=A,S.webkitTransform=A,Object.keys(S).map(function(L){e.media.style[L]=S[L]})}}}},{key:"position",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{h:0,y:0,x:0,w:0};if(!(!this.media||!e||!e.h)){var a=this.videoPos;a.h=e.h*100||0,a.w=e.w*100||0,a.vx=e.x*100||0,a.vy=e.y*100||0,this.resizePosition()}}},{key:"setConfig",value:function(e){var a=this;!e||Object.keys(e).map(function(i){if(i!=="plugins"){a.config[i]=e[i];var l=a.plugins[i.toLowerCase()];l&&T.typeOf(l.setConfig)==="Function"&&l.setConfig(e[i])}})}},{key:"playNext",value:function(e){var a=this;this.resetState(),this.setConfig(e),this._currentTime=0,this._duration=0,jn(this,"playnext",function(){a.start(),a.emit(pi,e)})}},{key:"resize",value:function(){var e=this;if(!!this.media){var a=this.root.getBoundingClientRect();this.sizeInfo.width=a.width,this.sizeInfo.height=a.height,this.sizeInfo.left=a.left,this.sizeInfo.top=a.top;var i=this.media,l=i.videoWidth,c=i.videoHeight,u=this.config,d=u.fitVideoSize,f=u.videoFillMode;if((f==="fill"||f==="cover"||f==="contain")&&this.setAttribute("data-xgfill",f),!(!c||!l)){this._videoHeight=c,this._videoWidth=l;var h=this.controls&&this.innerContainer?this.controls.root.getBoundingClientRect().height:0,p=a.width,v=a.height-h,g=parseInt(l/c*1e3,10),m=parseInt(p/v*1e3,10),_=p,b=v,y={};d==="auto"&&m>g||d==="fixWidth"?(b=p/g*1e3,this.config.fluid?y.paddingTop="".concat(b*100/_,"%"):y.height="".concat(b+h,"px")):(d==="auto"&&m<g||d==="fixHeight")&&(_=g*v/1e3,y.width="".concat(_,"px")),!this.fullscreen&&!this.cssfullscreen&&Object.keys(y).forEach(function(S){e.root.style[S]=y[S]}),(f==="fillHeight"&&m<g||f==="fillWidth"&&m>g)&&this.setAttribute("data-xgfill","cover");var w={videoScale:g,vWidth:_,vHeight:b,cWidth:_,cHeight:b+h};this.resizePosition(),this.emit(ga,w)}}}},{key:"updateObjectPosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(this.media.updateObjectPosition){this.media.updateObjectPosition(e,a);return}this.media.style.objectPosition="".concat(e*100,"% ").concat(a*100,"%")}},{key:"setState",value:function(e){Ze.logInfo("setState","state from:".concat(Pf[this.state]," to:").concat(Pf[e])),this._state=e}},{key:"preProcessUrl",value:function(e,a){var i=this.config,l=i.preProcessUrl,c=i.preProcessUrlOptions,u=Object.assign({},c,a);return!T.isBlob(e)&&typeof l=="function"?l(e,u):{url:e}}},{key:"_seekToStartTime",value:function(){this.__startTime>0&&this.duration>0&&(this.currentTime=this.__startTime>this.duration?this.duration:this.__startTime,this.__startTime=-1)}},{key:"state",get:function(){return this._state}},{key:"isFullscreen",get:function(){return this.fullscreen}},{key:"isCssfullScreen",get:function(){return this.cssfullscreen}},{key:"hasStart",get:function(){return this._hasStart},set:function(e){typeof e=="boolean"&&(this._hasStart=e,e===!1&&this.setState(tt.READY),this.emit("hasstart"))}},{key:"isPlaying",get:function(){return this._state===tt.RUNNING||this._state===tt.ENDED},set:function(e){e?this.setState(tt.RUNNING):this._state>=tt.RUNNING&&this.setState(tt.ATTACHED)}},{key:"definitionList",get:function(){return!this.config||!this.config.definition?[]:this.config.definition.list||[]},set:function(e){var a=this,i=this.config.definition,l=null,c=null;i.list=e,this.emit("resourceReady",e),e.forEach(function(u){var d;((d=a.curDefinition)===null||d===void 0?void 0:d.definition)===u.definition&&(l=u),i.defaultDefinition===u.definition&&(c=u)}),!c&&e.length>0&&(c=e[0]),l?this.changeDefinition(l):c&&this.changeDefinition(c)}},{key:"videoFrameInfo",get:function(){var e={total:0,dropped:0,corrupted:0,droppedRate:0,droppedDuration:0};if(!this.media||!this.media.getVideoPlaybackQuality)return e;var a=this.media.getVideoPlaybackQuality();return e.dropped=a.droppedVideoFrames||0,e.total=a.totalVideoFrames||0,e.corrupted=a.corruptedVideoFrames||0,e.total>0&&(e.droppedRate=e.dropped/e.total*100,e.droppedDuration=parseInt(this.cumulateTime/e.total*e.dropped,0)),e}},{key:"lang",get:function(){return this.config.lang},set:function(e){var a=co.langKeys.filter(function(i){return i===e});if(a.length===0&&e!=="zh"){console.error("Sorry, set lang fail, because the language [".concat(e,"] is not supported now, list of all supported languages is [").concat(co.langKeys.join(),"] "));return}this.config.lang=e,Yt.setLang(e,this)}},{key:"i18n",get:function(){var e=this.config.lang;return e==="zh"&&(e="zh-cn"),this.__i18n.lang[e]||this.__i18n.lang.en}},{key:"i18nKeys",get:function(){return this.__i18n.textKeys||{}}},{key:"version",get:function(){return ol}},{key:"playerId",get:function(){return this._pluginInfoId}},{key:"url",get:function(){return this.__url||this.config.url},set:function(e){this.__url=e}},{key:"poster",get:function(){return this.plugins.poster?this.plugins.poster.config.poster:this.config.poster},set:function(e){this.plugins.poster&&this.plugins.poster.update(e)}},{key:"readyState",get:function(){return Re(Le(n.prototype),"readyState",this)}},{key:"error",get:function(){var e=Re(Le(n.prototype),"error",this);return this.i18n[e]||e}},{key:"networkState",get:function(){return Re(Le(n.prototype),"networkState",this)}},{key:"fullscreenChanging",get:function(){return this._fullScreenOffset!==null}},{key:"cumulateTime",get:function(){var e=this._accPlayed,a=e.acc,i=e.t;return i?new Date().getTime()-i+a:a}},{key:"zoom",get:function(){return this.config.zoom},set:function(e){this.config.zoom=e}},{key:"videoRotateDeg",get:function(){return this.videoPos.rotate},set:function(e){e=T.convertDeg(e),!(e%90!==0||e===this.videoPos.rotate)&&(this.videoPos.rotate=e,this.resizePosition())}},{key:"avgSpeed",get:function(){return If},set:function(e){If=e}},{key:"realTimeSpeed",get:function(){return Lf},set:function(e){Lf=e}},{key:"offsetCurrentTime",get:function(){return this._offsetInfo.currentTime||0},set:function(e){this._offsetInfo.currentTime=e}},{key:"offsetDuration",get:function(){return this._offsetInfo.duration||0},set:function(e){this._offsetInfo.duration=e||0}},{key:"hook",value:function(e,a){return yi.call.apply(yi,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"useHooks",value:function(e,a){return _i.call.apply(_i,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"removeHooks",value:function(e,a){return wi.call.apply(wi,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"usePluginHooks",value:function(e,a,i){for(var l=arguments.length,c=new Array(l>3?l-3:0),u=3;u<l;u++)c[u-3]=arguments[u];return Ef.call.apply(Ef,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"removePluginHooks",value:function(e,a,i){for(var l=arguments.length,c=new Array(l>3?l-3:0),u=3;u<l;u++)c[u-3]=arguments[u];return Cf.call.apply(Cf,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"setUserActive",value:function(e,a){var i;typeof a=="boolean"&&a!==this.muted&&(this.addInnerOP("volumechange"),T.typeOf(a)===Boolean&&(this.muted=a)),(i=_a)===null||i===void 0||i.setActive(this.playerId,e)}}],[{key:"debugger",get:function(){return Ze.config.debug},set:function(e){Ze.config.debug=e}},{key:"instManager",get:function(){return _a},set:function(e){_a=e}},{key:"getCurrentUserActivePlayerId",value:function(){var e;return(e=_a)===null||e===void 0?void 0:e.getActiveId()}},{key:"setCurrentUserActive",value:function(e,a){var i;(i=_a)===null||i===void 0||i.setActive(e,a)}},{key:"isHevcSupported",value:function(){return Ge.isHevcSupported()}},{key:"probeConfigSupported",value:function(e){return Ge.probeConfigSupported(e)}},{key:"install",value:function(e,a){n.plugins||(n.plugins={}),n.plugins[e]||(n.plugins[e]=a)}},{key:"use",value:function(e,a){n.plugins||(n.plugins={}),n.plugins[e]=a}}]),n}(nE);J(bi,"defaultPreset",null),J(bi,"XgVideoProxy",null),bi.instManager=Of.getInstance();function wa(o,r,n){try{return' <div class="xg-tips '.concat(n?"hide":" ",'" lang-key="').concat(o.i18nKeys[r],`">
|
|
38
|
-
`).concat(o.i18n[r],`
|
|
39
|
-
</div>`)}catch{return'<div class="xg-tips hide"></div>'}}var Ha=function(o){xe(n,o);var r=Be(n);function n(){var t;ge(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),J(W(t),"_onMouseenter",function(l){t.emit("icon_mouseenter",{pluginName:t.pluginName})}),J(W(t),"_onMouseLeave",function(l){t.emit("icon_mouseleave",{pluginName:t.pluginName})}),t}return ye(n,[{key:"afterCreate",value:function(){this.bind("mouseenter",this._onMouseenter),this.bind("mouseleave",this._onMouseLeave),this.config.disable&&this.disable()}},{key:"destroy",value:function(){this.unbind("mouseenter",this._onMouseenter),this.unbind("mouseleave",this._onMouseLeave)}}]),n}(nt);function kE(){return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
40
|
-
<path fill="#fff" transform="scale(1.3, 1.3)" class='path_full' d="M9,10v1a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V9A.9.9,0,0,1,8,8h2a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1Zm6,4V13a1,1,0,0,1,2,0v2a.9.9,0,0,1-1,1H14a1,1,0,0,1,0-2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
|
|
41
|
-
</svg>
|
|
42
|
-
`,"image/svg+xml").firstChild}function TE(){return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
43
|
-
<path fill="#fff" transform="scale(1.3, 1.3)" d="M9,10V9a.9.9,0,0,1,1-1,.9.9,0,0,1,1,1v2a.9.9,0,0,1-1,1H8a.9.9,0,0,1-1-1,.9.9,0,0,1,1-1Zm6,4v1a1,1,0,0,1-2,0V13a.9.9,0,0,1,1-1h2a1,1,0,0,1,0,2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
|
|
44
|
-
</svg>
|
|
45
|
-
`,"image/svg+xml").firstChild}var _l=function(o){xe(n,o);var r=Be(n);function n(){return ge(this,n),r.apply(this,arguments)}return ye(n,[{key:"beforeCreate",value:function(e){typeof e.player.config.cssFullscreen=="boolean"&&(e.config.disable=!e.player.config.cssFullscreen)}},{key:"afterCreate",value:function(){var e=this;Re(Le(n.prototype),"afterCreate",this).call(this),!this.config.disable&&(this.config.target&&(this.playerConfig.fullscreenTarget=this.config.target),this.initIcons(),this.on(fi,function(a){e.animate(a)}),this.btnClick=this.btnClick.bind(this),this.handleCssFullscreen=this.hook("cssFullscreen_change",this.btnClick,{pre:function(i){i.preventDefault(),i.stopPropagation()}}),this.bind(["click","touchend"],this.handleCssFullscreen))}},{key:"initIcons",value:function(){var e=this.icons,a=this.find(".xgplayer-icon");a.appendChild(e.cssFullscreen),a.appendChild(e.exitCssFullscreen)}},{key:"btnClick",value:function(e){e.preventDefault(),e.stopPropagation();var a=this.player.isCssfullScreen;this.emitUserAction(e,"switch_cssfullscreen",{cssfullscreen:a}),a?this.player.exitCssFullscreen():this.player.getCssFullscreen()}},{key:"animate",value:function(e){!this.root||(e?this.setAttr("data-state","full"):this.setAttr("data-state","normal"),this.switchTips(e))}},{key:"switchTips",value:function(e){var a=this.i18nKeys,i=this.find(".xg-tips");i&&this.changeLangTextKey(i,e?a.EXITCSSFULLSCREEN_TIPS:a.CSSFULLSCREEN_TIPS)}},{key:"registerIcons",value:function(){return{cssFullscreen:{icon:kE,class:"xg-get-cssfull"},exitCssFullscreen:{icon:TE,class:"xg-exit-cssfull"}}}},{key:"destroy",value:function(){Re(Le(n.prototype),"destroy",this).call(this),this.unbind(["click","touchend"],this.btnClick)}},{key:"render",value:function(){if(!this.config.disable)return`<xg-icon class='xgplayer-cssfullscreen'>
|
|
46
|
-
<div class="xgplayer-icon">
|
|
47
|
-
</div>
|
|
48
|
-
`.concat(wa(this,"CSSFULLSCREEN_TIPS",this.playerConfig.isHideTips),`
|
|
49
|
-
</xg-icon>`)}}],[{key:"pluginName",get:function(){return"cssFullscreen"}},{key:"defaultConfig",get:function(){return{position:it.CONTROLS_RIGHT,index:1,disable:!1,target:null}}}]),n}(Ha);function xE(){return new DOMParser().parseFromString(`<svg width="32px" height="40px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
50
|
-
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
51
|
-
<path d="M11.2374369,14 L17.6187184,7.61871843 C17.9604272,7.27700968 17.9604272,6.72299032 17.6187184,6.38128157 C17.2770097,6.03957281 16.7229903,6.03957281 16.3812816,6.38128157 L9.38128157,13.3812816 C9.03957281,13.7229903 9.03957281,14.2770097 9.38128157,14.6187184 L16.3812816,21.6187184 C16.7229903,21.9604272 17.2770097,21.9604272 17.6187184,21.6187184 C17.9604272,21.2770097 17.9604272,20.7229903 17.6187184,20.3812816 L11.2374369,14 L11.2374369,14 Z" fill="#FFFFFF"></path>
|
|
52
|
-
</g>
|
|
53
|
-
</svg>`,"image/svg+xml").firstChild}var BE=function(o){xe(n,o);var r=Be(n);function n(){return ge(this,n),r.apply(this,arguments)}return ye(n,[{key:"afterCreate",value:function(){var e=this;this.initIcons(),this.onClick=function(a){a.preventDefault(),a.stopPropagation(),e.config.onClick(a)},this.bind(["click","touchend"],this.onClick)}},{key:"registerIcons",value:function(){return{screenBack:{icon:xE,class:"xg-fullscreen-back"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(this.root,e.screenBack)}},{key:"show",value:function(){T.addClass(this.root,"show")}},{key:"hide",value:function(){T.removeClass(this.root,"show")}},{key:"render",value:function(){return`<xg-icon class="xgplayer-back">
|
|
54
|
-
</xg-icon>`}}],[{key:"pluginName",get:function(){return"topbackicon"}},{key:"defaultConfig",get:function(){return{position:it.ROOT_TOP,index:0}}}]),n}(nt);function AE(){return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
55
|
-
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>
|
|
56
|
-
</svg>
|
|
57
|
-
`,"image/svg+xml").firstChild}function DE(){return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
58
|
-
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>
|
|
59
|
-
</svg>
|
|
60
|
-
`,"image/svg+xml").firstChild}var Mf=function(o){xe(n,o);var r=Be(n);function n(){var t;ge(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),J(W(t),"_onOrientationChange",function(l){t.player.fullscreen&&t.config.rotateFullscreen&&(window.orientation===90||window.orientation===-90?t.player.setRotateDeg(0):t.player.setRotateDeg(90))}),t}return ye(n,[{key:"afterCreate",value:function(){var e=this;Re(Le(n.prototype),"afterCreate",this).call(this);var a=this.config,i=this.playerConfig;if(!a.disable){a.target&&(this.playerConfig.fullscreenTarget=this.config.target);var l=T.getFullScreenEl();i.fullscreenTarget===l&&this.player.getFullscreen().catch(function(c){}),this.initIcons(),this.handleFullscreen=this.hook("fullscreenChange",this.toggleFullScreen,{pre:function(u){var d=e.player.fullscreen;e.emitUserAction(u,"switch_fullscreen",{prop:"fullscreen",from:d,to:!d})}}),this.bind(".xgplayer-fullscreen",["touchend","click"],this.handleFullscreen),this.on(ra,function(c){var u=e.find(".xg-tips");u&&e.changeLangTextKey(u,c?e.i18nKeys.EXITFULLSCREEN_TIPS:e.i18nKeys.FULLSCREEN_TIPS),e.animate(c)}),this.config.needBackIcon&&(this.topBackIcon=this.player.registerPlugin({plugin:BE,options:{config:{onClick:function(u){e.handleFullscreen(u)}}}})),Ge.device==="mobile"&&window.addEventListener("orientationchange",this._onOrientationChange)}}},{key:"registerIcons",value:function(){return{fullscreen:{icon:AE,class:"xg-get-fullscreen"},exitFullscreen:{icon:DE,class:"xg-exit-fullscreen"}}}},{key:"destroy",value:function(){Re(Le(n.prototype),"destroy",this).call(this),this.unbind(".xgplayer-icon",Ge.device==="mobile"?"touchend":"click",this.handleFullscreen),Ge.device==="mobile"&&window.removeEventListener("orientationchange",this._onOrientationChange)}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.fullscreen),this.appendChild(".xgplayer-icon",e.exitFullscreen)}},{key:"toggleFullScreen",value:function(e){e instanceof Event&&(e.preventDefault(),e.stopPropagation());var a=this.player,i=this.config,l=i.useCssFullscreen===!0||typeof i.useCssFullscreen=="function"&&i.useCssFullscreen();l?(a.fullscreen?a.exitCssFullscreen():a.getCssFullscreen(),this.animate(a.fullscreen)):i.rotateFullscreen?(a.fullscreen?a.exitRotateFullscreen():a.getRotateFullscreen(),this.animate(a.fullscreen)):i.switchCallback&&typeof i.switchCallback=="function"?i.switchCallback(a.fullscreen):a.fullscreen?(a.exitFullscreen(),i.useScreenOrientation&&this.unlockScreen()):(a.getFullscreen().catch(function(c){}),i.useScreenOrientation&&a.aspectRatio>1&&this.lockScreen(i.lockOrientationType))}},{key:"animate",value:function(e){e?this.setAttr("data-state","full"):this.setAttr("data-state","normal"),this.topBackIcon&&(e?(this.topBackIcon.show(),this.hide()):(this.topBackIcon.hide(),this.show()))}},{key:"render",value:function(){if(!this.config.disable){var e="FULLSCREEN_TIPS";return`<xg-icon class="xgplayer-fullscreen">
|
|
61
|
-
<div class="xgplayer-icon">
|
|
62
|
-
</div>
|
|
63
|
-
`.concat(wa(this,e,this.playerConfig.isHideTips),`
|
|
64
|
-
</xg-icon>`)}}},{key:"lockScreen",value:function(e){try{screen.orientation.lock(e).catch(function(a){})}catch{}}},{key:"unlockScreen",value:function(){try{screen.orientation.unlock().catch(function(e){})}catch{}}}],[{key:"pluginName",get:function(){return"fullscreen"}},{key:"defaultConfig",get:function(){return{position:it.CONTROLS_RIGHT,index:0,useCssFullscreen:!1,rotateFullscreen:!1,useScreenOrientation:!1,lockOrientationType:"landscape",switchCallback:null,target:null,disable:!1,needBackIcon:!1}}}]),n}(Ha);function wl(){return new DOMParser().parseFromString(`<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
65
|
-
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
|
|
66
|
-
</svg>
|
|
67
|
-
`,"image/svg+xml").firstChild}function bl(){return new DOMParser().parseFromString(`<svg class="pause" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
68
|
-
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>
|
|
69
|
-
</svg>
|
|
70
|
-
`,"image/svg+xml").firstChild}var Nf=function(o){xe(n,o);var r=Be(n);function n(){var t;ge(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),J(W(t),"btnClick",function(l){l.preventDefault(),l.stopPropagation();var c=W(t),u=c.player;return t.emitUserAction(l,"switch_play_pause",{prop:"paused",from:u.paused,to:!u.paused}),u.ended?u.replay():u.paused?(u.play(),t.animate(!1)):(u.pause(),t.animate(!0)),!1}),t}return ye(n,[{key:"afterCreate",value:function(){Re(Le(n.prototype),"afterCreate",this).call(this);var e=this.config;e.disable||(this.initIcons(),this.bind(["touchend","click"],this.btnClick),this.listenEvents(),this.animate(!0))}},{key:"listenEvents",value:function(){var e=this,a=this.player;this.on([sn,Ra,so,Va],function(){e.animate(a.paused)})}},{key:"registerIcons",value:function(){return{play:{icon:wl,class:"xg-icon-play"},pause:{icon:bl,class:"xg-icon-pause"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.play),this.appendChild(".xgplayer-icon",e.pause)}},{key:"animate",value:function(e){if(!!this.player){var a=this.i18nKeys,i=this.find(".xg-tips");e?(this.setAttr("data-state","pause"),i&&this.changeLangTextKey(i,a.PLAY_TIPS)):(this.setAttr("data-state","play"),i&&this.changeLangTextKey(i,a.PAUSE_TIPS))}}},{key:"destroy",value:function(){Re(Le(n.prototype),"destroy",this).call(this),this.unbind(["touchend","click"],this.btnClick)}},{key:"render",value:function(){if(!this.config.disable)return`<xg-icon class="xgplayer-play">
|
|
71
|
-
<div class="xgplayer-icon">
|
|
72
|
-
</div>
|
|
73
|
-
`.concat(wa(this,"PLAY_TIPS",this.playerConfig.isHideTips),`
|
|
74
|
-
</xg-icon>`)}}],[{key:"pluginName",get:function(){return"play"}},{key:"defaultConfig",get:function(){return{position:it.CONTROLS_LEFT,index:0,disable:!1}}}]),n}(Ha),PE=[{tag:"xg-cache",className:"xgplayer-progress-cache",styleKey:"cachedColor"},{tag:"xg-played",className:"xgplayer-progress-played",styleKey:"playedColor"}],OE=function(){function o(r){ge(this,o),this.fragments=r.fragments||[],this.fragments.length===0&&this.fragments.push({percent:1}),this._callBack=r.actionCallback,this.fragConfig={fragFocusClass:r.fragFocusClass||"inner-focus-point",fragAutoFocus:!!r.fragAutoFocus,fragClass:r.fragClass||""},this.style=r.style||{playedColor:"",cachedColor:"",progressColor:""},this.duration=0,this.cachedIndex=0,this.playedIndex=0,this.focusIndex=-1}return ye(o,[{key:"updateDuration",value:function(n){var t=this;this.duration=n;var e=0,a=this.fragments;this.fragments=a.map(function(i){return i.start=parseInt(e,10),i.end=parseInt(e+i.percent*t.duration,10),i.duration=parseInt(i.percent*t.duration,10),e+=i.percent*t.duration,i})}},{key:"updateProgress",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"played",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{newIndex:0,curIndex:0,millisecond:0},e=this.progressList,a=this.fragments;if(!(e.length<1)){var i=t.newIndex,l=t.curIndex,c=t.millisecond;i!==l&&e.map(function(f,h){h<i?f[n].style.width="100%":h>i&&(f[n].style.width=0)});var u=a[i],d=c===0?0:(c-u.start)/u.duration;e[i][n].style.width=d<0?0:"".concat(d*100,"%")}}},{key:"updateFocus",value:function(n){if(!(!this.fragConfig.fragAutoFocus||this.fragments.length<2)){if(!n){if(this.focusIndex>-1){this.unHightLight(this.focusIndex);var t={index:-1,preIndex:this.focusIndex,fragment:null};this._callBack&&this._callBack(t),this.focusIndex=-1}return}var e=this.findIndex(n.currentTime*1e3,this.focusIndex);if(e>=0&&e!==this.focusIndex){this.focusIndex>-1&&this.unHightLight(this.focusIndex),this.setHightLight(e);var a={index:e,preIndex:this.focusIndex,fragment:this.fragments[this.focusIndex]};this.focusIndex=e,this._callBack&&this._callBack(a)}}}},{key:"update",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{cached:0,played:0},t=arguments.length>1?arguments[1]:void 0;if(!this.duration||parseInt(t*1e3,10)!==this.duration){if(!t&&t!==0)return;this.updateDuration(parseInt(t*1e3,10))}var e=this.playedIndex,a=this.cachedIndex;if(T.typeOf(n.played)!=="Undefined"){var i=this.findIndex(n.played*1e3,e);if(i<0)return;this.updateProgress("played",{newIndex:i,curIndex:e,millisecond:parseInt(n.played*1e3,10)}),this.playedIndex=i}if(T.typeOf(n.cached)!=="Undefined"){var l=this.findIndex(n.cached*1e3,a);if(l<0)return;this.updateProgress("cached",{newIndex:l,curIndex:a,millisecond:parseInt(n.cached*1e3,10)}),this.cachedIndex=l}}},{key:"findIndex",value:function(n,t){var e=this.fragments;if(!e||e.length===0)return-1;if(e.length===1)return 0;if(t>-1&&t<e.length&&n>e[t].start&&n<e[t].end)return t;if(n>e[e.length-1].start)return e.length-1;for(var a=0;a<e.length;a++)if(n>e[a].start&&n<=e[a].end){t=a;break}return t}},{key:"findHightLight",value:function(){for(var n=this.root.children,t=0;t<n.length;t++)if(T.hasClass(n[t],this.fragConfig.fragFocusClass))return{dom:n[t],pos:n[t].getBoundingClientRect()}}},{key:"findFragment",value:function(n){var t=this.root.children;return n<0||n>=t.length?null:{dom:t[n],pos:t[n].getBoundingClientRect()}}},{key:"unHightLight",value:function(){for(var n=this.root.children,t=0;t<n.length;t++)T.removeClass(n[t],this.fragConfig.fragFocusClass)}},{key:"setHightLight",value:function(n){var t=this.root.children;if(n<t.length)return T.addClass(t[n],this.fragConfig.fragFocusClass),{dom:t[n],pos:t[n].getBoundingClientRect()}}},{key:"destroy",value:function(){this.progressList=null,this.fragments=null,this.root.innerHTML=""}},{key:"reset",value:function(n){var t=this;if(Object.keys(this.fragConfig).forEach(function(a){n[a]!==void 0&&(t.fragConfig[a]=n[a])}),n.fragments){if(this.fragments=n.fragments.length===0?[{percent:1}]:n.fragments,this.updateDuration(this.duration),this.playedIndex=0,this.cachedIndex=0,this.root)for(var e=this.root.children;e.length>0;)this.root.removeChild(e[0]);this.render()}}},{key:"render",value:function(){var n=this,t=this.style.progressColor;if(this.root||(this.root=T.createDom("xg-inners","",{},"progress-list")),this.fragments){var e=this.fragConfig,a=e.fragClass,i=e.fragFocusClass;this.progressList=this.fragments.map(function(l){var c=T.createDom("xg-inner","",{style:t?"background:".concat(t,"; flex: ").concat(l.percent):"flex: ".concat(l.percent)},"".concat(l.isFocus?i:""," xgplayer-progress-inner ").concat(a));return n.root.appendChild(c),PE.forEach(function(u){c.appendChild(T.createDom(u.tag,"",{style:u.styleKey?"background: ".concat(n.style[u.styleKey],"; width:0;"):"width:0;"},u.className))}),{cached:c.children[0],played:c.children[1]}})}return this.root}}]),o}(),Rf={POINT:"inner-focus-point",HIGHLIGHT:"inner-focus-highlight"},Vf=function(o){xe(n,o);var r=Be(n);function n(t){var e;return ge(this,n),e=r.call(this,t),J(W(e),"onMoveOnly",function(a,i){var l=W(e),c=l.pos,u=l.config,d=l.player,f=i;if(a){T.event(a);var h=T.getEventPos(a,d.zoom),p=d.rotateDeg===90?h.clientY:h.clientX;if(c.moving&&Math.abs(c.x-p)<u.miniMoveStep)return;c.moving=!0,c.x=p,f=e.computeTime(a,p)}e.triggerCallbacks("dragmove",f,a),e._updateInnerFocus(f)}),J(W(e),"onBodyClick",function(a){!e.pos.isLocked||(e.pos.isLocked=!1,a.preventDefault(),a.stopPropagation())}),J(W(e),"_mouseDownHandler",function(a,i){e._state.time=i.currentTime,e.updateWidth(i.currentTime,i.seekTime,i.percent,0),e._updateInnerFocus(i)}),J(W(e),"_mouseUpHandler",function(a,i){var l=W(e),c=l.pos;c.moving&&e.updateWidth(i.currentTime,i.seekTime,i.percent,2)}),J(W(e),"_mouseMoveHandler",function(a,i){var l=W(e),c=l._state,u=l.pos,d=l.config,f=l.player;c.time<i.currentTime?i.forward=!0:i.forward=!1,c.time=i.currentTime,u.isDown&&!u.moving&&(u.moving=!0,d.isPauseMoving&&f.pause(),e.triggerCallbacks("dragstart",i,a),e.emitUserAction("drag","dragstart",i)),e.updateWidth(i.currentTime,i.seekTime,i.percent,1),e.triggerCallbacks("dragmove",i,a),e._updateInnerFocus(i)}),J(W(e),"onMouseDown",function(a){var i=W(e),l=i._state,c=i.player,u=i.pos,d=i.config,f=i.playerConfig,h=T.getEventPos(a,c.zoom),p=c.rotateDeg===90?h.clientY:h.clientX;if(!(c.isMini||d.closeMoveSeek||!f.allowSeekAfterEnded&&c.ended)){if(!c.duration&&!c.isPlaying){c.play();return}a.stopPropagation(),e.focus(),T.checkIsFunction(f.disableSwipeHandler)&&f.disableSwipeHandler(),T.checkIsFunction(d.onMoveStart)&&d.onMoveStart(),T.event(a),u.x=p,u.isDown=!0,u.moving=!1,l.prePlayTime=c.currentTime,c.focus({autoHide:!1}),e.isProgressMoving=!0,T.addClass(e.progressBtn,"active");var v=e.computeTime(a,p);v.prePlayTime=l.prePlayTime,e._mouseDownHandlerHook(a,v);var g=a.type;return g==="touchstart"?(e.root.addEventListener("touchmove",e.onMouseMove),e.root.addEventListener("touchend",e.onMouseUp),e.root.addEventListener("touchcancel",e.onMouseUp)):(e.unbind("mousemove",e.onMoveOnly),document.addEventListener("mousemove",e.onMouseMove,!1),document.addEventListener("mouseup",e.onMouseUp,!1)),!0}}),J(W(e),"onMouseUp",function(a){var i=W(e),l=i.player,c=i.config,u=i.pos,d=i.playerConfig,f=i._state;if(!!u){a.stopPropagation(),a.preventDefault(),T.checkIsFunction(d.enableSwipeHandler)&&d.enableSwipeHandler(),T.checkIsFunction(c.onMoveEnd)&&c.onMoveEnd(),T.event(a),T.removeClass(e.progressBtn,"active");var h=e.computeTime(a,u.x);h.prePlayTime=f.prePlayTime,u.moving?(e.triggerCallbacks("dragend",h,a),e.emitUserAction("drag","dragend",h)):(e.triggerCallbacks("click",h,a),e.emitUserAction("click","click",h)),e._mouseUpHandlerHook(a,h),u.moving=!1,u.isDown=!1,u.x=0,u.y=0,u.isLocked=!0,f.prePlayTime=0,f.time=0;var p=a.type;p==="touchend"||p==="touchcancel"?(e.root.removeEventListener("touchmove",e.onMouseMove),e.root.removeEventListener("touchend",e.onMouseUp),e.root.removeEventListener("touchcancel",e.onMouseUp),e.blur()):(document.removeEventListener("mousemove",e.onMouseMove,!1),document.removeEventListener("mouseup",e.onMouseUp,!1),u.isEnter?d.isMobileSimulateMode!=="mobile"&&e.bind("mousemove",e.onMoveOnly):e.onMouseLeave(a)),T.setTimeout(W(e),function(){e.resetSeekState()},1),l.focus()}}),J(W(e),"onMouseMove",function(a){var i=W(e),l=i._state,c=i.pos,u=i.player,d=i.config;T.checkTouchSupport()&&a.preventDefault(),T.event(a);var f=T.getEventPos(a,u.zoom),h=u.rotateDeg===90?f.clientY:f.clientX,p=Math.abs(c.x-h);if(!(c.moving&&p<d.miniMoveStep||!c.moving&&p<d.miniStartStep)){c.x=h;var v=e.computeTime(a,h);v.prePlayTime=l.prePlayTime,e._mouseMoveHandlerHook(a,v)}}),J(W(e),"onMouseOut",function(a){e.triggerCallbacks("mouseout",null,a)}),J(W(e),"onMouseOver",function(a){e.triggerCallbacks("mouseover",null,a)}),J(W(e),"onMouseEnter",function(a){var i=W(e),l=i.player,c=i.pos;if(!(c.isDown||c.isEnter||l.isMini||!l.config.allowSeekAfterEnded&&l.ended)){c.isEnter=!0,e.bind("mousemove",e.onMoveOnly),e.bind("mouseleave",e.onMouseLeave),T.event(a);var u=T.getEventPos(a,l.zoom),d=l.rotateDeg===90?u.clientY:u.clientX,f=e.computeTime(a,d);e.triggerCallbacks("mouseenter",f,a),e.focus()}}),J(W(e),"onMouseLeave",function(a){e.triggerCallbacks("mouseleave",null,a),e.unlock(),e._updateInnerFocus(null)}),J(W(e),"onVideoResize",function(){var a=e.pos,i=a.x,l=a.isDown,c=a.isEnter;if(c&&!l){var u=e.computeTime(null,i);e.onMoveOnly(null,u)}}),e.useable=!1,e.isProgressMoving=!1,e.__dragCallBacks=[],e._state={now:-1,direc:0,time:0,prePlayTime:-1},e._disableBlur=!1,typeof e.config.isDragingSeek=="boolean"&&(console.warn("[XGPLAYER] 'isDragingSeek' is deprecated, please use 'isDraggingSeek' instead"),e.config.isDraggingSeek=e.config.isDragingSeek),e}return ye(n,[{key:"offsetDuration",get:function(){return this.playerConfig.customDuration||this.player.offsetDuration||this.player.duration}},{key:"duration",get:function(){return this.playerConfig.customDuration||this.player.duration}},{key:"timeOffset",get:function(){return this.playerConfig.timeOffset||0}},{key:"currentTime",get:function(){var e=this.player,a=e.offsetCurrentTime,i=e.currentTime;return a>=0?a:i+this.timeOffset}},{key:"changeState",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.useable=e}},{key:"show",value:function(e){this.root&&(this.root.style.display="flex")}},{key:"_initInner",value:function(){var e=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!a||a.length===0)&&(a=[{percent:1}]);var l=St(St({fragments:a},i),{},{actionCallback:function(u){e.emitUserAction("fragment_focus","fragment_focus",u)}});this.innerList?this.innerList.reset(l):(this.innerList=new OE(l),this.outer.insertBefore(this.innerList.render(),this.outer.children[0]),["findHightLight","unHightLight","setHightLight","findFragment"].map(function(c){e[c]=e.innerList[c].bind(e.innerList)}))}},{key:"_updateInnerFocus",value:function(e){this.innerList&&this.innerList.updateFocus(e)}},{key:"afterCreate",value:function(){if(!(this.config.disable||this.playerConfig.isLive)){this.pos={x:0,y:0,moving:!1,isDown:!1,isEnter:!1,isLocked:!1},this.outer=this.find("xg-outer");var e=this.config,a=e.fragFocusClass,i=e.fragAutoFocus,l=e.fragClass;this._initInner(this.config.fragments,{fragFocusClass:a,fragAutoFocus:i,fragClass:l,style:this.playerConfig.commonStyle||{}}),Ge.device==="mobile"&&(this.config.isDraggingSeek=!1,this.isMobile=!0),this.progressBtn=this.find(".xgplayer-progress-btn"),this.listenEvents(),this.bindDomEvents(),this.initCustomStyle()}}},{key:"listenEvents",value:function(){var e=this;this.on(aa,function(){e.onMouseLeave()}),this.on(wn,function(){e.onTimeupdate()}),this.on(ta,function(){e.onTimeupdate(),e.onCacheUpdate()}),this.on(tf,function(){e.onCacheUpdate()}),this.on(Na,function(){e.onCacheUpdate(!0),e.onTimeupdate(!0),e._state.now=0}),this.on(Va,function(){e.onReset()}),this.on(ga,function(){e.onVideoResize()})}},{key:"setConfig",value:function(e){var a=this,i=null;Object.keys(e).forEach(function(l){a.config[l]=e[l],l==="fragments"&&(i=e[l])}),i&&this._initInner(i,e)}},{key:"initCustomStyle",value:function(){var e=this.playerConfig||{},a=e.commonStyle,i=a.sliderBtnStyle,l=this.progressBtn;i&&(typeof i=="string"?l.style.boxShadow=i:qt(i)==="object"&&Object.keys(i).map(function(c){l.style[c]=i[c]}))}},{key:"triggerCallbacks",value:function(e,a,i){this.__dragCallBacks.length>0&&this.__dragCallBacks.map(function(l){if(l&&l.handler&&l.type===e)try{l.handler(a,i)}catch(c){console.error("[XGPLAYER][triggerCallbacks] ".concat(l," error"),c)}})}},{key:"addCallBack",value:function(e,a){a&&typeof a=="function"&&this.__dragCallBacks.push({type:e,handler:a})}},{key:"removeCallBack",value:function(e,a){var i=this.__dragCallBacks,l=-1;i.map(function(c,u){c&&c.type===e&&c.handler===a&&(l=u)}),l>-1&&i.splice(l,1)}},{key:"unlock",value:function(){var e=this.player,a=this.pos;if(a.isEnter=!1,a.isLocked=!1,!e.isMini){if(this.unbind("mousemove",this.onMoveOnly),a.isDown){this.unbind("mouseleave",this.onMouseLeave);return}this.blur()}}},{key:"bindDomEvents",value:function(){var e=this.player.config;this._mouseDownHandlerHook=this.hook("dragstart",this._mouseDownHandler),this._mouseUpHandlerHook=this.hook("dragend",this._mouseUpHandler),this._mouseMoveHandlerHook=this.hook("drag",this._mouseMoveHandler),(this.domEventType==="touch"||this.domEventType==="compatible")&&this.root.addEventListener("touchstart",this.onMouseDown),(this.domEventType==="mouse"||this.domEventType==="compatible")&&(this.bind("mousedown",this.onMouseDown),e.isMobileSimulateMode!=="mobile"&&this.bind("mouseenter",this.onMouseEnter),this.bind("mouseover",this.onMouseOver),this.bind("mouseout",this.onMouseOut),this.player.root.addEventListener("click",this.onBodyClick,!0))}},{key:"focus",value:function(){this.player.controls.pauseAutoHide(),T.addClass(this.root,"active")}},{key:"blur",value:function(){this._disableBlur||(this.player.controls.recoverAutoHide(),T.removeClass(this.root,"active"))}},{key:"disableBlur",value:function(){this._disableBlur=!0}},{key:"enableBlur",value:function(){this._disableBlur=!1}},{key:"updateWidth",value:function(e,a,i,l){var c=this.config,u=this.player;if(!(c.isCloseClickSeek&&l===0)){var d=a=a>=u.duration?u.duration-c.endedDiff:Number(a).toFixed(1);this.updatePercent(i),this.updateTime(e),!(l===1&&(!c.isDraggingSeek||u.config.mediaType==="audio"))&&(this._state.now=d,this._state.direc=d>u.currentTime?0:1,u.seek(d))}}},{key:"computeTime",value:function(e,a){var i=this.player,l=this.root.getBoundingClientRect(),c=l.width,u=l.height,d=l.top,f=l.left,h,p,v=a;i.rotateDeg===90?(h=u,p=d):(h=c,p=f);var g=v-p;g=g>h?h:g<0?0:g;var m=g/h;m=m<0?0:m>1?1:m,Number.isNaN(m)&&(m=this.player.currentTime/this.offsetDuration);var _=parseInt(m*this.offsetDuration*1e3,10)/1e3,b=T.getCurrentTimeByOffset(_,i.timeSegments);return{percent:m,currentTime:_,seekTime:b,offset:g,width:h,left:p,e}}},{key:"updateTime",value:function(e){var a=this.player,i=this.duration;e>i?e=i:e<0&&(e=0);var l=a.plugins.time;l&&l.updateTime(e)}},{key:"resetSeekState",value:function(){this.isProgressMoving=!1;var e=this.player.plugins.time;e&&e.resetActive()}},{key:"updatePercent",value:function(e,a){if(this.isProgressMoving=!0,!this.config.disable){e=e>1?1:e<0?0:e,this.progressBtn.style.left="".concat(e*100,"%"),this.innerList.update({played:e*this.offsetDuration},this.offsetDuration);var i=this.player.plugins.miniprogress;i&&i.update({played:e*this.offsetDuration},this.offsetDuration)}}},{key:"onTimeupdate",value:function(e){var a=this.player,i=this._state,l=this.offsetDuration;if(!(a.isSeeking&&a.media.seeking||this.isProgressMoving||!a.hasStart)){if(i.now>-1){var c=parseInt(i.now*1e3,10)-parseInt(a.currentTime*1e3,10);if(i.direc===0&&c>300||i.direc===1&&c>-300){i.now=-1;return}else i.now=-1}var u=this.currentTime;u=T.adjustTimeByDuration(u,l,e),this.innerList.update({played:u},l),this.progressBtn.style.left="".concat(u/l*100,"%")}}},{key:"onCacheUpdate",value:function(e){var a=this.player,i=this.duration;if(!!a){var l=a.bufferedPoint.end;l=T.adjustTimeByDuration(l,i,e),this.innerList.update({cached:l},i)}}},{key:"onReset",value:function(){this.innerList.update({played:0,cached:0},0),this.progressBtn.style.left="0%"}},{key:"destroy",value:function(){var e=this.player;this.thumbnailPlugin=null,this.innerList.destroy(),this.innerList=null;var a=this.domEventType;(a==="touch"||a==="compatible")&&(this.root.removeEventListener("touchstart",this.onMouseDown),this.root.removeEventListener("touchmove",this.onMouseMove),this.root.removeEventListener("touchend",this.onMouseUp),this.root.removeEventListener("touchcancel",this.onMouseUp)),(a==="mouse"||a==="compatible")&&(this.unbind("mousedown",this.onMouseDown),this.unbind("mouseenter",this.onMouseEnter),this.unbind("mousemove",this.onMoveOnly),this.unbind("mouseleave",this.onMouseLeave),document.removeEventListener("mousemove",this.onMouseMove,!1),document.removeEventListener("mouseup",this.onMouseUp,!1),e.root.removeEventListener("click",this.onBodyClick,!0))}},{key:"render",value:function(){if(!(this.config.disable||this.playerConfig.isLive)){var e=this.player.controls?this.player.controls.config.mode:"",a=e==="bottom"?"xgplayer-progress-bottom":"";return`
|
|
75
|
-
<xg-progress class="xgplayer-progress `.concat(a,`">
|
|
76
|
-
<xg-outer class="xgplayer-progress-outer">
|
|
77
|
-
<xg-progress-btn class="xgplayer-progress-btn"></xg-progress-btn>
|
|
78
|
-
</xg-outer>
|
|
79
|
-
</xg-progress>
|
|
80
|
-
`)}}}],[{key:"pluginName",get:function(){return"progress"}},{key:"defaultConfig",get:function(){return{position:it.CONTROLS_CENTER,index:0,disable:!1,isDraggingSeek:!0,closeMoveSeek:!1,isPauseMoving:!1,isCloseClickSeek:!1,fragments:[{percent:1}],fragFocusClass:Rf.POINT,fragClass:"",fragAutoFocus:!1,miniMoveStep:5,miniStartStep:2,onMoveStart:function(){},onMoveEnd:function(){},endedDiff:.2}}},{key:"FRAGMENT_FOCUS_CLASS",get:function(){return Rf}}]),n}(nt),Ff=function(o){xe(n,o);var r=Be(n);function n(t){var e;return ge(this,n),e=r.call(this,t),e.isActiving=!1,e}return ye(n,[{key:"duration",get:function(){var e=this.player,a=e.offsetDuration,i=e.duration;return this.playerConfig.customDuration||a||i}},{key:"currentTime",get:function(){var e=this.player,a=e.offsetCurrentTime,i=e.currentTime;return a>=0?a:i}},{key:"timeOffset",get:function(){return this.playerConfig.timeOffset||0}},{key:"afterCreate",value:function(){var e=this.player.controls.config.mode;this.mode=e==="flex"?"flex":"normal",!this.config.disable&&(this.mode==="flex"&&(this.createCenterTime(),this.root.style.display="none"),this.durationDom=this.find(".time-duration"),this.timeDom=this.find(".time-current"),this.listenEvents())}},{key:"listenEvents",value:function(){var e=this;this.on([aa,ta,wn],function(a){a.eventName==="durationchange"&&(e.isActiving=!1),e.onTimeUpdate()}),this.on(Na,function(){e.onTimeUpdate(!0)}),this.on(Va,function(){e.onReset()})}},{key:"show",value:function(e){if(this.mode==="flex"){this.centerCurDom&&(this.centerCurDom.style.display="block"),this.centerDurDom&&(this.centerDurDom.style.display="block");return}this.root.style.display="block"}},{key:"hide",value:function(){if(this.mode==="flex"){this.centerCurDom&&(this.centerCurDom.style.display="none"),this.centerDurDom&&(this.centerDurDom.style.display="none");return}this.root.style.display="none"}},{key:"onTimeUpdate",value:function(e){var a=this.player,i=this.config,l=this.duration;if(!(i.disable||this.isActiving||!a.hasStart)){var c=this.currentTime+this.timeOffset;c=T.adjustTimeByDuration(c,l,e),this.mode==="flex"?(this.centerCurDom.innerHTML=this.minWidthTime(T.format(c)),l!==1/0&&l>0&&(this.centerDurDom.innerHTML=T.format(l))):(this.timeDom.innerHTML=this.minWidthTime(T.format(c)),l!==1/0&&l>0&&(this.durationDom.innerHTML=T.format(l)))}}},{key:"onReset",value:function(){this.mode==="flex"?(this.centerCurDom.innerHTML=this.minWidthTime(T.format(0)),this.centerDurDom.innerHTML=T.format(0)):(this.timeDom.innerHTML=this.minWidthTime(T.format(0)),this.durationDom.innerHTML=T.format(0))}},{key:"createCenterTime",value:function(){var e=this.player;if(!(!e.controls||!e.controls.center)){var a=e.controls.center;this.centerCurDom=T.createDom("xg-icon","00:00",{},"xgplayer-time xg-time-left"),this.centerDurDom=T.createDom("xg-icon","00:00",{},"xgplayer-time xg-time-right"),a.children.length>0?a.insertBefore(this.centerCurDom,a.children[0]):a.appendChild(this.centerCurDom),a.appendChild(this.centerDurDom)}}},{key:"afterPlayerInit",value:function(){var e=this.config;if(this.duration===1/0||this.playerConfig.isLive?(T.hide(this.durationDom),T.hide(this.timeDom),T.hide(this.find(".time-separator")),T.show(this.find(".time-live-tag"))):T.hide(this.find(".time-live-tag")),e.hide){this.hide();return}this.show()}},{key:"changeLiveState",value:function(e){e?(T.hide(this.durationDom),T.hide(this.timeDom),T.hide(this.find(".time-separator")),T.show(this.find(".time-live-tag"))):(T.hide(this.find(".time-live-tag")),T.show(this.find(".time-separator")),T.show(this.durationDom),T.show(this.timeDom))}},{key:"updateTime",value:function(e){if(this.isActiving=!0,!(!e&&e!==0||e>this.duration)){if(this.mode==="flex"){this.centerCurDom.innerHTML=this.minWidthTime(T.format(e));return}this.timeDom.innerHTML=this.minWidthTime(T.format(e))}}},{key:"minWidthTime",value:function(e){return e.split(":").map(function(a){return'<span class="time-min-width">'.concat(a,"</span>")}).join(":")}},{key:"resetActive",value:function(){var e=this,a=this.player,i=function(){e.isActiving=!1};this.off(ta,i),a.isSeeking&&a.media.seeking?this.once(ta,i):this.isActiving=!1}},{key:"destroy",value:function(){var e=this.player.controls.center;this.centerCurDom&&e.removeChild(this.centerCurDom),this.centerCurDom=null,this.centerDurDom&&e.removeChild(this.centerDurDom),this.centerDurDom=null}},{key:"render",value:function(){if(!this.config.disable)return`<xg-icon class="xgplayer-time">
|
|
81
|
-
<span class="time-current">00:00</span>
|
|
82
|
-
<span class="time-separator">/</span>
|
|
83
|
-
<span class="time-duration">00:00</span>
|
|
84
|
-
<span class="time-live-tag">`.concat(this.i18n.LIVE_TIP,`</span>
|
|
85
|
-
</xg-icon>`)}}],[{key:"pluginName",get:function(){return"time"}},{key:"defaultConfig",get:function(){return{position:it.CONTROLS_LEFT,index:2,disable:!1}}}]),n}(nt);function LE(){return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
86
|
-
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
87
|
-
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
88
|
-
</svg>
|
|
89
|
-
`,"image/svg+xml").firstChild}function IE(){return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
90
|
-
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
91
|
-
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
92
|
-
</svg>
|
|
93
|
-
`,"image/svg+xml").firstChild}function ME(){return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
94
|
-
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
95
|
-
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>
|
|
96
|
-
</svg>
|
|
97
|
-
`,"image/svg+xml").firstChild}var Hf=function(o){xe(n,o);var r=Be(n);function n(){var t;ge(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),J(W(t),"onBarMousedown",function(l){var c=W(t),u=c.player,d=t.find(".xgplayer-bar");T.event(l);var f=d.getBoundingClientRect(),h=T.getEventPos(l,u.zoom),p=f.height-(h.clientY-f.top);if(h.h=p,h.barH=f.height,t.pos=h,!(p<-2))return t.updateVolumePos(p,l),document.addEventListener("mouseup",t.onBarMouseUp),t._d.isStart=!0,!1}),J(W(t),"onBarMouseMove",function(l){var c=W(t),u=c._d;if(!!u.isStart){var d=W(t),f=d.pos,h=d.player;l.preventDefault(),l.stopPropagation(),T.event(l);var p=T.getEventPos(l,h.zoom);u.isMoving=!0;var v=f.h-p.clientY+f.clientY;v>f.barH||t.updateVolumePos(v,l)}}),J(W(t),"onBarMouseUp",function(l){T.event(l),document.removeEventListener("mouseup",t.onBarMouseUp);var c=W(t),u=c._d;u.isStart=!1,u.isMoving=!1}),J(W(t),"onMouseenter",function(l){t._d.isActive=!0,t.focus(),t.emit("icon_mouseenter",{pluginName:t.pluginName})}),J(W(t),"onMouseleave",function(l){t._d.isActive=!1,t.unFocus(100,!1,l),t.emit("icon_mouseleave",{pluginName:t.pluginName})}),J(W(t),"onVolumeChange",function(l){if(!!t.player){var c=t.player,u=c.muted,d=c.volume;t._d.isMoving||(t.find(".xgplayer-drag").style.height=u||d===0?"4px":"".concat(d*100,"%"),t.config.showValueLabel&&t.updateVolumeValue()),t.animate(u,d)}}),t}return ye(n,[{key:"registerIcons",value:function(){return{volumeSmall:{icon:IE,class:"xg-volume-small"},volumeLarge:{icon:LE,class:"xg-volume"},volumeMuted:{icon:ME,class:"xg-volume-mute"}}}},{key:"afterCreate",value:function(){var e=this;if(this._timerId=null,this._d={isStart:!1,isMoving:!1,isActive:!1},!this.config.disable){this.initIcons();var a=this.playerConfig,i=a.commonStyle,l=a.volume;i.volumeColor&&(this.find(".xgplayer-drag").style.backgroundColor=i.volumeColor),this.changeMutedHandler=this.hook("mutedChange",function(c){e.changeMuted(c)},{pre:function(u){u.preventDefault(),u.stopPropagation()}}),this._onMouseenterHandler=this.hook("mouseenter",this.onMouseenter),this._onMouseleaveHandler=this.hook("mouseleave",this.onMouseleave),Ge.device!=="mobile"&&this.playerConfig.isMobileSimulateMode!=="mobile"&&(this.bind("mouseenter",this._onMouseenterHandler),this.bind(["blur","mouseleave"],this._onMouseleaveHandler),this.bind(".xgplayer-slider","mousedown",this.onBarMousedown),this.bind(".xgplayer-slider","mousemove",this.onBarMouseMove),this.bind(".xgplayer-slider","mouseup",this.onBarMouseUp)),this.bind(".xgplayer-icon",["touchend","click"],this.changeMutedHandler),this.on($d,this.onVolumeChange),this.once(oa,this.onVolumeChange),T.typeOf(l)!=="Number"&&(this.player.volume=this.config.default),this.onVolumeChange()}}},{key:"updateVolumePos",value:function(e,a){var i=this.player,l=this.find(".xgplayer-drag"),c=this.find(".xgplayer-bar");if(!(!c||!l)){var u=parseInt(e/c.getBoundingClientRect().height*1e3,10);l.style.height="".concat(e,"px");var d=Math.max(Math.min(u/1e3,1),0),f={volume:{from:i.volume,to:d}};i.muted&&(f.muted={from:!0,to:!1}),this.emitUserAction(a,"change_volume",{muted:i.muted,volume:i.volume,props:f}),i.volume=Math.max(Math.min(u/1e3,1),0),i.muted&&(i.muted=!1),this.config.showValueLabel&&this.updateVolumeValue()}}},{key:"updateVolumeValue",value:function(){var e=this.player,a=e.volume,i=e.muted,l=this.find(".xgplayer-value-label"),c=Math.max(Math.min(a,1),0);l.innerText=i?0:Math.round(c*100)}},{key:"focus",value:function(){var e=this.player;e.focus({autoHide:!1}),this._timerId&&(T.clearTimeout(this,this._timerId),this._timerId=null),T.addClass(this.root,"slide-show")}},{key:"unFocus",value:function(){var e=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,l=arguments.length>2?arguments[2]:void 0,c=this._d,u=this.player;c.isActive||(this._timerId&&(T.clearTimeout(this,this._timerId),this._timerId=null),this._timerId=T.setTimeout(this,function(){c.isActive||(i?u.blur():u.focus(),T.removeClass(e.root,"slide-show"),c.isStart&&e.onBarMouseUp(l)),e._timerId=null},a))}},{key:"changeMuted",value:function(e){e&&e.stopPropagation();var a=this.player,i=this._d;i.isStart&&this.onBarMouseUp(e),this.emitUserAction(e,"change_muted",{muted:a.muted,volume:a.volume,props:{muted:{from:a.muted,to:!a.muted}}}),a.volume>0&&(a.muted=!a.muted),a.volume<.01&&(a.volume=this.config.miniVolume)}},{key:"animate",value:function(e,a){e||a===0?this.setAttr("data-state","mute"):a<.5&&this.icons.volumeSmall?this.setAttr("data-state","small"):this.setAttr("data-state","normal")}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.volumeSmall),this.appendChild(".xgplayer-icon",e.volumeLarge),this.appendChild(".xgplayer-icon",e.volumeMuted)}},{key:"destroy",value:function(){this._timerId&&(T.clearTimeout(this,this._timerId),this._timerId=null),this.unbind("mouseenter",this.onMouseenter),this.unbind(["blur","mouseleave"],this.onMouseleave),this.unbind(".xgplayer-slider","mousedown",this.onBarMousedown),this.unbind(".xgplayer-slider","mousemove",this.onBarMouseMove),this.unbind(".xgplayer-slider","mouseup",this.onBarMouseUp),document.removeEventListener("mouseup",this.onBarMouseUp),this.unbind(".xgplayer-icon",Ge.device==="mobile"?"touchend":"click",this.changeMutedHandler)}},{key:"render",value:function(){if(!this.config.disable){var e=this.config.default||this.player.volume,a=this.config.showValueLabel;return`
|
|
98
|
-
<xg-icon class="xgplayer-volume" data-state="normal">
|
|
99
|
-
<div class="xgplayer-icon">
|
|
100
|
-
</div>
|
|
101
|
-
<xg-slider class="xgplayer-slider">
|
|
102
|
-
`.concat(a?'<div class="xgplayer-value-label">'.concat(e*100,"</div>"):"",`
|
|
103
|
-
<div class="xgplayer-bar">
|
|
104
|
-
<xg-drag class="xgplayer-drag" style="height: `).concat(e*100,`%"></xg-drag>
|
|
105
|
-
</div>
|
|
106
|
-
</xg-slider>
|
|
107
|
-
</xg-icon>`)}}}],[{key:"pluginName",get:function(){return"volume"}},{key:"defaultConfig",get:function(){return{position:it.CONTROLS_RIGHT,index:1,disable:!1,showValueLabel:!1,default:.6,miniVolume:.2}}}]),n}(nt);function $t(){return new Date().getTime()}var ba={LOAD_START:"loadstart",LOADED_DATA:"loadeddata",FIRST_FRAME:"firstFrame",WAIT_START:"waitingStart",WAIT_END:"waitingEnd",SEEK_START:"seekStart",SEEK_END:"seekEnd"},NE=function(o){xe(n,o);var r=Be(n);function n(){var t;ge(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),J(W(t),"_onTimeupdate",function(){t._state.isTimeUpdate=!0,t._state.autoplayStart&&(Ze.logInfo("[xgLogger]".concat(t.player.playerId," _onTimeupdate")),t._sendFF("onTimeupdate"))}),J(W(t),"_onAutoplayStart",function(){Ze.logInfo("[xgLogger]".concat(t.player.playerId," _onAutoplayStart")),t._state.autoplayStart=!0,t.vt&&t._sendFF("onAutoplayStart")}),J(W(t),"_onReset",function(){t._state={autoplayStart:!1,isFFLoading:!1,isTimeUpdate:!1,isFFSend:!1,isLs:!1},t.vt=0,t.pt=0,t.fvt=0,t.newPointTime=$t(),t.loadedCostTime=0,t.startCostTime=0,t._isSeeking=!1,t.seekingStart=0,t.waitingStart=0,t.fixedWaitingStart=0,t._isWaiting=!1,t._waitTimer&&T.clearTimeout(W(t),t._waitTimer),t._waittTimer&&T.clearTimeout(W(t),t._waittTimer),t._waitTimer=null,t._waittTimer=null,t._waitType=0}),J(W(t),"_onSeeking",function(){t.seekingStart||(t.suspendWaitingStatus("seek"),t.seekingStart=$t(),t.emitLog(ba.SEEK_START,{start:$t()}))}),J(W(t),"_onSeeked",function(){t.suspendSeekingStatus("seeked")}),J(W(t),"_onWaitingLoadStart",function(){t._isWaiting||t.vt||(t._isWaiting=!0,t.waitingStart=$t(),t.fixedWaitingStart=$t(),t._waitType=1,t.emitLog(ba.WAIT_START,{fixedStart:t.fixedWaitingStart,start:t.waitingStart,type:1,endType:"loadstart"}))}),J(W(t),"_onWaiting",function(){t._isWaiting||!t.vt||(t._isWaiting=!0,t.vt?t.seekingStart?t._waitType=2:t._waitType=0:t._waitType=1,t.fixedWaitingStart=$t(),t._waitTimer=T.setTimeout(W(t),function(){t._isWaiting&&(t.waitingStart=$t(),T.clearTimeout(W(t),t._waitTimer),t._waitTimer=null,t._startWaitTimeout(),t.emitLog(ba.WAIT_START,{fixedStart:t.fixedWaitingStart,start:t.waitingStart,type:t._waitType,endType:t._waitType===2?"seek":"playing"}))},200))}),J(W(t),"_onError",function(){t.suspendSeekingStatus("error"),t.suspendWaitingStatus("error")}),J(W(t),"_onPlaying",function(){t._isWaiting&&t.suspendWaitingStatus("playing")}),t}return ye(n,[{key:"afterCreate",value:function(){var e=this;this._onReset(),this._waitType="firstFrame",this._initOnceEvents(),this.newPointTime=$t(),this.loadedCostTime=0,this.startCostTime=0,this.on(il,function(){var a=e._state,i=a.autoplayStart,l=a.isFFSend;e.startCostTime=$t()-e.newPointTime,Ze.logInfo("[xgLogger]".concat(e.player.playerId," LOAD_START"),"autoplayStart:".concat(i," isFFSend:").concat(l," startCostTime:").concat(e.startCostTime," newPointTime").concat(e.newPointTime)),!l&&(!a.isLs&&e.emitLog(ba.LOAD_START,{}),a.isLs=!0,a.isTimeUpdate=!1,a.isFFLoading=!0,e.pt=$t(),e.vt=0,e.fvt=0,e._initOnceEvents(),e._onWaitingLoadStart())}),this.on(oa,function(){e.vt=$t(),e.fvt=e.vt-e.pt,e.loadedCostTime=e.vt-e.newPointTime;var a=e._state,i=a.isTimeUpdate,l=a.isFFSend,c=a.autoplayStart;Ze.logInfo("[xgLogger]".concat(e.player.playerId," LOADED_DATA"),"fvt:".concat(e.fvt," isTimeUpdate:").concat(e._state.isTimeUpdate," loadedCostTime:").concat(e.loadedCostTime)),(i||c)&&e._sendFF("loadedData"),l||e.emitLog(ba.LOADED_DATA,{}),e.suspendWaitingStatus("loadeddata")}),this.on(li,this._onSeeking),this.on(ta,this._onSeeked),this.on(di,function(){e.endState("destroy")}),this.on(er,function(){e.endState("urlChange"),Ze.logInfo("[xgLogger]".concat(e.player.playerId," URL_CHANGE")),e._state.isFFSend&&e._onReset()}),this.on([rl,na],this._onPlaying),this.on(qo,this._onWaiting),this.on(so,this._onError),this.on(mi,function(){Ze.logInfo("[xgLogger]".concat(e.player.playerId," RESET")),e.endState("reset"),e._initOnceEvents(),e._onReset()})}},{key:"_initOnceEvents",value:function(){this.off(Fa,this._onAutoplayStart),this.off(wn,this._onTimeupdate),this.once(Fa,this._onAutoplayStart),this.once(wn,this._onTimeupdate)}},{key:"_sendFF",value:function(e){this.s=$t();var a=this._state,i=a.isFFLoading,l=a.isFFSend;Ze.logInfo("[xgLogger]".concat(this.player.playerId," _sendFF"),"".concat(e," fvt:").concat(this.fvt," isFFLoading:").concat(i," !isFFSend:").concat(!l)),this.vt>0&&i&&!l&&(Ze.logInfo("[xgLogger]".concat(this.player.playerId," emitLog_firstFrame"),e),this._state.isFFLoading=!1,this._state.isFFSend=!0,this.emitLog(ba.FIRST_FRAME,{fvt:this.fvt,costTime:this.fvt,vt:this.vt,startCostTime:this.startCostTime,loadedCostTime:this.loadedCostTime}))}},{key:"_startWaitTimeout",value:function(){var e=this;this._waittTimer&&T.clearTimeout(this,this._waittTimer),this._waittTimer=T.setTimeout(this,function(){e.suspendWaitingStatus("timeout"),T.clearTimeout(e,e._waittTimer),e._waittTimer=null},this.config.waitTimeout)}},{key:"endState",value:function(e){this.suspendWaitingStatus(e),this.suspendSeekingStatus(e)}},{key:"suspendSeekingStatus",value:function(e){if(!!this.seekingStart){var a=$t(),i=a-this.seekingStart;this.seekingStart=0,this.emitLog(ba.SEEK_END,{end:a,costTime:i,endType:e})}}},{key:"suspendWaitingStatus",value:function(e){if(this._waitTimer&&(T.clearTimeout(this,this._waitTimer),this._waitTimer=null),this._waittTimer&&(T.clearTimeout(this,this._waittTimer),this._waittTimer=null),this._isWaiting=!1,!!this.waitingStart){var a=$t(),i=a-this.waitingStart,l=a-this.fixedWaitingStart,c=this.config.waitTimeout;this._isWaiting=!1,this.waitingStart=0,this.fixedWaitingStart=0,this.emitLog(ba.WAIT_END,{fixedCostTime:l>c?c:l,costTime:i>c?c:i,type:e==="loadeddata"?1:this._waitType,endType:this._waitType===2?"seek":e})}}},{key:"emitLog",value:function(e,a){var i=this.player;this.emit(df,St({t:$t(),host:T.getHostFromUrl(i.currentSrc),vtype:i.vtype,eventType:e,currentTime:this.player.currentTime,readyState:i.video.readyState,networkState:i.video.networkState},a))}}],[{key:"pluginName",get:function(){return"xgLogger"}},{key:"defaultConfig",get:function(){return{waitTimeout:1e4}}}]),n}(nt);function RE(){return new DOMParser().parseFromString(`<svg class="xgplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 78 78" width="78" height="78">
|
|
108
|
-
<path fill="#fff" transform="translate(20, 20)" d="M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z"></path>
|
|
109
|
-
</svg>
|
|
110
|
-
`,"image/svg+xml").firstChild}var VE=function(o){xe(n,o);var r=Be(n);function n(){return ge(this,n),r.apply(this,arguments)}return ye(n,[{key:"registerIcons",value:function(){return{replay:RE}}},{key:"afterCreate",value:function(){var e=this;nt.insert(this.icons.replay,this.root,0),this.__handleReplay=this.hook("replayClick",function(){e.player.replay()},{pre:function(i){i.preventDefault(),i.stopPropagation()}}),this.bind(".xgplayer-replay",["click","touchend"],this.__handleReplay),this.on(Na,function(){if(e.playerConfig.loop||T.addClass(e.player.root,"replay"),!e.config.disable){e.show();var a=e.root.querySelector("path");if(a){var i=window.getComputedStyle(a).getPropertyValue("transform");if(typeof i=="string"&&i.indexOf("none")>-1)return null;a.setAttribute("transform",i)}}}),this.on(sn,function(){e.hide()})}},{key:"handleReplay",value:function(e){e.preventDefault(),e.stopPropagation(),this.player.replay(),T.removeClass(this.player.root,"replay")}},{key:"show",value:function(e){this.config.disable||(this.root.style.display="flex")}},{key:"enable",value:function(){this.config.disable=!1}},{key:"disable",value:function(){this.config.disable=!0,this.hide()}},{key:"destroy",value:function(){this.unbind(".xgplayer-replay",["click","touchend"],this.__handleReplay)}},{key:"render",value:function(){return`<xg-replay class="xgplayer-replay">
|
|
111
|
-
<xg-replay-txt class="xgplayer-replay-txt" lang-key="`.concat(this.i18nKeys.REPLAY,'">').concat(this.i18n.REPLAY,`</xg-replay-txt>
|
|
112
|
-
</xg-replay>`)}}],[{key:"pluginName",get:function(){return"replay"}},{key:"defaultConfig",get:function(){return{disable:!1}}}]),n}(nt),FE=function(o){xe(n,o);var r=Be(n);function n(){return ge(this,n),r.apply(this,arguments)}return ye(n,[{key:"isEndedShow",get:function(){return this.config.isEndedShow},set:function(e){this.config.isEndedShow=e}},{key:"hide",value:function(){T.addClass(this.root,"hide")}},{key:"show",value:function(e){T.removeClass(this.root,"hide")}},{key:"beforeCreate",value:function(e){typeof e.player.config.poster=="string"&&(e.config.poster=e.player.config.poster)}},{key:"afterCreate",value:function(){var e=this;this.on(Na,function(){e.isEndedShow&&T.removeClass(e.root,"hide")}),this.config.hideCanplay?(this.once(wn,function(){e.onTimeUpdate()}),this.on(er,function(){T.removeClass(e.root,"hide"),T.addClass(e.root,"xg-showplay"),e.once(wn,function(){e.onTimeUpdate()})})):this.on(sn,function(){T.addClass(e.root,"hide")})}},{key:"setConfig",value:function(e){var a=this;Object.keys(e).forEach(function(l){a.config[l]=e[l]});var i=this.config.poster;this.update(i)}},{key:"onTimeUpdate",value:function(){var e=this;this.player.currentTime?T.removeClass(this.root,"xg-showplay"):this.once(wn,function(){e.onTimeUpdate()})}},{key:"update",value:function(e){!e||(this.config.poster=e,this.root.style.backgroundImage="url(".concat(e,")"))}},{key:"getBgSize",value:function(e){var a="";switch(e){case"cover":a="cover";break;case"contain":a="contain";break;case"fixHeight":a="auto 100%";break;default:a=""}return a?"background-size: ".concat(a,";"):""}},{key:"render",value:function(){var e=this.config,a=e.poster,i=e.hideCanplay,l=e.fillMode,c=e.notHidden,u=this.getBgSize(l),d=a?"background-image:url(".concat(a,");").concat(u):u,f=c?"xg-not-hidden":i?"xg-showplay":"";return'<xg-poster class="xgplayer-poster '.concat(f,'" style="').concat(d,`">
|
|
113
|
-
</xg-poster>`)}}],[{key:"pluginName",get:function(){return"poster"}},{key:"defaultConfig",get:function(){return{isEndedShow:!0,hideCanplay:!1,notHidden:!1,poster:"",fillMode:"fixWidth"}}}]),n}(nt),Wn={};function HE(o,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{start:null,end:null};return Wn[o]&&window.clearTimeout(Wn[o].id),Wn[o]={},n.start&&n.start(),Wn[o].id=window.setTimeout(function(){n.end&&n.end(),window.clearTimeout(Wn[o].id),delete Wn[o]},r),Wn[o].id}function zf(o){if(o){window.clearTimeout(o);return}Object.keys(Wn).map(function(r){window.clearTimeout(Wn[r].id),delete Wn[r]})}var zE=function(o){xe(n,o);var r=Be(n);function n(t){var e;return ge(this,n),e=r.call(this,t),J(W(e),"onPlayerReset",function(){e.autoPlayStart=!1;var a=e.config.mode==="auto"?"auto-hide":"hide";e.setAttr("data-state","play"),T.removeClass(e.root,a),e.show()}),J(W(e),"onAutoplayStart",function(){if(!e.autoPlayStart){var a=e.config.mode==="auto"?"auto-hide":"hide";T.addClass(e.root,a),e.autoPlayStart=!0,e.toggleTo("play")}}),e.autoPlayStart=!1,e}return ye(n,[{key:"afterCreate",value:function(){var e=this.playerConfig;this.initIcons(),this.listenEvents(),this.bindClickEvents(),e.autoplay||this.show()}},{key:"listenEvents",value:function(){var e=this,a=this.player,i=this.playerConfig;this.once(ci,function(){i&&(i.lang&&i.lang==="en"?T.addClass(a.root,"lang-is-en"):i.lang==="jp"&&T.addClass(a.root,"lang-is-jp"))}),this.on(Fa,this.onAutoplayStart),this.on(ll,function(){var l=e.config.mode==="auto"?"auto-hide":"hide";e.setAttr("data-state","play"),T.removeClass(e.root,l),e.show()}),this.on(sn,function(){e.toggleTo("play")}),this.on(Ra,function(){e.toggleTo("pause")}),this.on(mi,function(){e.onPlayerReset()})}},{key:"bindClickEvents",value:function(){var e=this;this.clickHandler=this.hook("startClick",this.switchPausePlay,{pre:function(i){i.cancelable&&i.preventDefault(),i.stopPropagation();var l=e.player.paused;e.emitUserAction(i,"switch_play_pause",{props:"paused",from:l,to:!l})}}),this.bind(["click","touchend"],this.clickHandler)}},{key:"registerIcons",value:function(){return{startPlay:{icon:wl,class:"xg-icon-play"},startPause:{icon:bl,class:"xg-icon-pause"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild("xg-start-inner",e.startPlay),this.appendChild("xg-start-inner",e.startPause)}},{key:"hide",value:function(){T.addClass(this.root,"hide")}},{key:"show",value:function(e){T.removeClass(this.root,"hide")}},{key:"focusHide",value:function(){T.addClass(this.root,"focus-hide")}},{key:"recover",value:function(){T.removeClass(this.root,"focus-hide")}},{key:"switchStatus",value:function(e){e?this.setAttr("data-state",this.player.paused?"pause":"play"):this.setAttr("data-state",this.player.paused?"play":"pause")}},{key:"animate",value:function(e){var a=this;this._animateId=HE("pauseplay",400,{start:function(){T.addClass(a.root,"interact"),a.show(),a.switchStatus(!0)},end:function(){T.removeClass(a.root,"interact"),!e&&a.hide(),a._animateId=null}})}},{key:"endAnimate",value:function(){T.removeClass(this.root,"interact"),zf(this._animateId),this._animateId=null}},{key:"switchPausePlay",value:function(e){var a=this.player;if(e.cancelable&&e.preventDefault(),e.stopPropagation(),!(a.state<tt.READY)){var i=this.player.paused;!i&&a.state===tt.RUNNING?a.pause():a.play()}}},{key:"onPlayPause",value:function(e){this.toggleTo(e)}},{key:"toggleTo",value:function(e){var a=this.config,i=this.player;if(!(!i||i.state<tt.RUNNING||!this.autoPlayStart)){if(a.mode==="show"){this.switchStatus(),this.show();return}if(a.mode==="auto"){this.switchStatus();return}if(a.isShowPause&&i.paused&&!i.ended||a.isShowEnd&&i.ended){this.switchStatus(),this.show(),this.endAnimate();return}if(a.disableAnimate){this.switchStatus(),this.hide();return}if(e==="play")this.autoPlayStart?this.animate():this.hide();else{if(!this.autoPlayStart||i.ended)return;this.animate()}}}},{key:"destroy",value:function(){this.unbind(["click","touchend"],this.clickHandler),zf(this._animateId)}},{key:"render",value:function(){var e=this.playerConfig.autoplay?this.config.mode==="auto"?"auto-hide":"hide":"";return`
|
|
114
|
-
<xg-start class="xgplayer-start `.concat(e,`">
|
|
115
|
-
<xg-start-inner></xg-start-inner>
|
|
116
|
-
</xg-start>`)}}],[{key:"pluginName",get:function(){return"start"}},{key:"defaultConfig",get:function(){return{isShowPause:!1,isShowEnd:!1,disableAnimate:!1,mode:"hide"}}}]),n}(nt),UE=function(o){xe(n,o);var r=Be(n);function n(){return ge(this,n),r.apply(this,arguments)}return ye(n,[{key:"render",value:function(){var e=this.config.innerHtml,a=T.createDom("xg-enter","",{},"xgplayer-enter");if(e&&e instanceof window.HTMLElement)a.appendChild(e);else if(e&&typeof e=="string")a.innerHTML=e;else{for(var i="",l=1;l<=12;l++)i+='<div class="xgplayer-enter-bar'.concat(l,'"></div>');a.innerHTML='<div class="xgplayer-enter-spinner">'.concat(i,"</div>")}return a}}],[{key:"pluginName",get:function(){return"enter"}},{key:"defaultConfig",get:function(){return{innerHtml:"",logo:""}}}]),n}(nt),Uf=function(o){xe(n,o);var r=Be(n);function n(){return ge(this,n),r.apply(this,arguments)}return ye(n,[{key:"afterCreate",value:function(){this.getMini=this.getMini.bind(this),this.exitMini=this.exitMini.bind(this),this.bind("click",this.getMini)}},{key:"getMini",value:function(){this.config.onClick&&this.config.onClick()}},{key:"exitMini",value:function(){this.config.onClick&&this.config.onClick()}},{key:"destroy",value:function(){this.unbind(["click","touchend"],this.getMini)}},{key:"render",value:function(){var e="MINISCREEN";return`
|
|
117
|
-
<xg-icon class="xgplayer-miniicon">
|
|
118
|
-
<div class="xgplayer-icon btn-text"><span class="icon-text" lang-key="`.concat(this.i18nKeys[e],'">').concat(this.i18n[e],`</span></div>
|
|
119
|
-
</xg-icon>`)}}],[{key:"pluginName",get:function(){return"miniscreenIcon"}},{key:"defaultConfig",get:function(){return{position:it.CONTROLS_RIGHT,index:10}}}]),n}(nt);function jf(o){var r=parseFloat(o),n=o.indexOf("%")===-1&&!Number.isNaN(r);return n&&r}var El=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],Gf=El.length;function jE(){for(var o={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},r=0;r<Gf;r++){var n=El[r];o[n]=0}return o}function GE(o){var r=window.getComputedStyle(o);return r}function Wf(o){if(typeof o=="string"&&(o=document.querySelector(o)),!(!o||qt(o)!=="object"||!o.nodeType)){var r=GE(o);if(r.display==="none")return jE();var n={};n.width=o.offsetWidth,n.height=o.offsetHeight;for(var t=n.isBorderBox=r.boxSizing==="border-box",e=0;e<Gf;e++){var a=El[e],i=r[a],l=parseFloat(i);n[a]=Number.isNaN(l)?0:l}var c=n.paddingLeft+n.paddingRight,u=n.paddingTop+n.paddingBottom,d=n.marginLeft+n.marginRight,f=n.marginTop+n.marginBottom,h=n.borderLeftWidth+n.borderRightWidth,p=n.borderTopWidth+n.borderBottomWidth,v=t,g=jf(r.width);g!==!1&&(n.width=g+(v?0:c+h));var m=jf(r.height);return m!==!1&&(n.height=m+(v?0:u+p)),n.innerWidth=n.width-(c+h),n.innerHeight=n.height-(u+p),n.outerWidth=n.width+d,n.outerHeight=n.height+f,n}}function Cl(o,r){for(var n=0;n<o.length;n++){var t=o[n];if(t.identifier===r)return t}}var Sl={START:"dragStart",MOVE:"dragMove",ENDED:"dragEnded"},Kf={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]},WE=function(o){xe(n,o);var r=Be(n);function n(t){var e,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ge(this,n),e=r.call(this),e.isEnabled=!0,e.isDragging=!1,e.isDown=!1,e.position={},e.downPoint={},e.dragPoint={x:0,y:0},e.startPos={x:0,y:0},e._root=t instanceof Element?t:document.querySelector(t),e._handlerDom=a.handle instanceof Element?a.handle:document.querySelector(a.handle),!e._root||!e._handlerDom?$s(e):(e._bindStartEvent(),e)}return ye(n,[{key:"_bindStartEvent",value:function(){var e=this;"ontouchstart"in window?this._startKey="touchstart":this._startKey="mousedown",this["on".concat(this._startKey)]=this["on".concat(this._startKey)].bind(this),this._handlerDom.addEventListener(this._startKey,this["on".concat(this._startKey)]),Kf[this._startKey].map(function(a){e["on".concat(a)]=e["on".concat(a)].bind(e)})}},{key:"_unbindStartEvent",value:function(){this._handlerDom.removeEventListener(this._startKey,this["on".concat(this._startKey)])}},{key:"_bindPostStartEvents",value:function(e){var a=this;if(!!e){var i=Kf[this._startKey];i.map(function(l){window.addEventListener(l,a["on".concat(l)])}),this._boundPointerEvents=i}}},{key:"_unbindPostStartEvents",value:function(){var e=this;!this._boundPointerEvents||(this._boundPointerEvents.map(function(a){window.removeEventListener(a,e["on".concat(a)])}),delete this._boundPointerEvents)}},{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1,this.isDragging&&this.onUp()}},{key:"onDocUp",value:function(e){this.onUp()}},{key:"animate",value:function(){var e=this;!this.isDragging||(this.positionDrag(),window.requestAnimationFrame(function(){e.animate()}))}},{key:"positionDrag",value:function(){var e="translate3d(".concat(this.dragPoint.x,"px, ").concat(this.dragPoint.y,"px, 0)");this._root.style.transform=e,this._root.style.webKitTransform=e}},{key:"setLeftTop",value:function(){this._root.style.left=this.position.x+"px",this._root.style.top=this.position.y+"px"}},{key:"onmousedown",value:function(e){this.dragStart(e,e)}},{key:"onmousemove",value:function(e){this.dragMove(e,e)}},{key:"onmouseup",value:function(e){this.dragEnd(e,e)}},{key:"ontouchstart",value:function(e){var a=e.changedTouches[0];this.dragStart(e,a),this.touchIdentifier=a.pointerId!==void 0?a.pointerId:a.identifier,e.preventDefault()}},{key:"ontouchmove",value:function(e){var a=Cl(e.changedTouches,this.touchIdentifier);a&&this.dragMove(e,a)}},{key:"ontouchend",value:function(e){var a=Cl(e.changedTouches,this.touchIdentifier);a&&this.dragEnd(e,a),e.preventDefault()}},{key:"ontouchcancel",value:function(e){var a=Cl(e.changedTouches,this.touchIdentifier);a&&this.dragCancel(e,a)}},{key:"dragStart",value:function(e,a){if(!(!this._root||this.isDown||!this.isEnabled)){this.downPoint=a,this.dragPoint.x=0,this.dragPoint.y=0,this._getPosition();var i=Wf(this._root);this.startPos.x=this.position.x,this.startPos.y=this.position.y,this.startPos.maxY=window.innerHeight-i.height,this.startPos.maxX=window.innerWidth-i.width,this.setLeftTop(),this.isDown=!0,this._bindPostStartEvents(e)}}},{key:"dragRealStart",value:function(e,a){this.isDragging=!0,this.animate(),this.emit(Sl.START,this.startPos)}},{key:"dragEnd",value:function(e,a){!this._root||(this._unbindPostStartEvents(),this.isDragging&&(this._root.style.transform="",this.setLeftTop(),this.emit(Sl.ENDED)),this.presetInfo())}},{key:"_dragPointerMove",value:function(e,a){var i={x:a.pageX-this.downPoint.pageX,y:a.pageY-this.downPoint.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this.dragRealStart(e,a),i}},{key:"dragMove",value:function(e,a){if(e=e||window.event,!!this.isDown){var i=this.startPos,l=i.x,c=i.y,u=this._dragPointerMove(e,a),d=u.x,f=u.y;d=this.checkContain("x",d,l),f=this.checkContain("y",f,c),this.position.x=l+d,this.position.y=c+f,this.dragPoint.x=d,this.dragPoint.y=f,this.emit(Sl.MOVE,this.position)}}},{key:"dragCancel",value:function(e,a){this.dragEnd(e,a)}},{key:"presetInfo",value:function(){this.isDragging=!1,this.startPos={x:0,y:0},this.dragPoint={x:0,y:0},this.isDown=!1}},{key:"destroy",value:function(){this._unbindStartEvent(),this._unbindPostStartEvents(),this.isDragging&&this.dragEnd(),this.removeAllListeners(),this._handlerDom=null}},{key:"hasDragStarted",value:function(e){return Math.abs(e.x)>3||Math.abs(e.y)>3}},{key:"checkContain",value:function(e,a,i){return a+i<0?0-i:e==="x"&&a+i>this.startPos.maxX?this.startPos.maxX-i:e==="y"&&a+i>this.startPos.maxY?this.startPos.maxY-i:a}},{key:"_getPosition",value:function(){var e=window.getComputedStyle(this._root),a=this._getPositionCoord(e.left,"width"),i=this._getPositionCoord(e.top,"height");this.position.x=Number.isNaN(a)?0:a,this.position.y=Number.isNaN(i)?0:i,this._addTransformPosition(e)}},{key:"_addTransformPosition",value:function(e){var a=e.transform;if(a.indexOf("matrix")===0){var i=a.split(","),l=a.indexOf("matrix3d")===0?12:4,c=parseInt(i[l],10),u=parseInt(i[l+1],10);this.position.x+=c,this.position.y+=u}}},{key:"_getPositionCoord",value:function(e,a){if(e.indexOf("%")!==-1){var i=Wf(this._root.parentNode);return i?parseFloat(e)/100*i[a]:0}return parseInt(e,10)}}]),n}(io),KE=function(o){xe(n,o);var r=Be(n);function n(t){var e;ge(this,n),e=r.call(this,t),J(W(e),"onCancelClick",function(l){e.exitMini(),e.isClose=!0}),J(W(e),"onCenterClick",function(l){var c=W(e),u=c.player;u.paused?u.play():u.pause()}),J(W(e),"onScroll",function(l){if(!(!window.scrollY&&window.scrollY!==0||Math.abs(window.scrollY-e.pos.scrollY)<50)){var c=parseInt(T.getCss(e.player.root,"height"));c+=e.config.scrollTop,e.pos.scrollY=window.scrollY,window.scrollY>c+5?!e.isMini&&!e.isClose&&e.getMini():window.scrollY<=c&&(e.isMini&&e.exitMini(),e.isClose=!1)}}),e.isMini=!1,e.isClose=!1;var a=W(e),i=a.config;return e.pos={left:i.left<0?window.innerWidth-i.width-20:i.left,top:i.top<0?window.innerHeight-i.height-20:i.top,height:e.config.height,width:e.config.width,scrollY:window.scrollY||0},e.lastStyle=null,e}return ye(n,[{key:"beforeCreate",value:function(e){typeof e.player.config.mini=="boolean"&&(e.config.isShowIcon=e.player.config.mini)}},{key:"afterCreate",value:function(){var e=this;this.initIcons(),this.on(Ra,function(){e.setAttr("data-state","pause")}),this.on(sn,function(){e.setAttr("data-state","play")})}},{key:"onPluginsReady",value:function(){var e=this,a=this.player,i=this.config;if(!i.disable){if(this.config.isShowIcon){var l={config:{onClick:function(){e.getMini()}}};a.controls.registerPlugin(Uf,l,Uf.pluginName)}var c=T.checkTouchSupport()?"touchend":"click";this.bind(".mini-cancel-btn",c,this.onCancelClick),this.bind(".play-icon",c,this.onCenterClick),this.config.disableDrag||(this._draggabilly=new WE(this.player.root,{handle:this.root})),this.config.isScrollSwitch&&window.addEventListener("scroll",this.onScroll)}}},{key:"registerIcons",value:function(){return{play:{icon:wl,class:"xg-icon-play"},pause:{icon:bl,class:"xg-icon-pause"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".play-icon",e.play),this.appendChild(".play-icon",e.pause)}},{key:"getMini",value:function(){var e=this;if(!this.isMini){var a=this.player,i=this.playerConfig,l=this.config.target||this.player.root;this.lastStyle={},T.addClass(a.root,"xgplayer-mini"),["width","height","top","left"].map(function(c){e.lastStyle[c]=l.style[c],l.style[c]="".concat(e.pos[c],"px")}),i.fluid&&(l.style["padding-top"]=""),this.emit(hi,!0),a.isMini=this.isMini=!0}}},{key:"exitMini",value:function(){var e=this;if(!this.isMini)return!1;var a=this.player,i=this.playerConfig,l=this.config.target||this.player.root;T.removeClass(a.root,"xgplayer-mini"),this.lastStyle&&Object.keys(this.lastStyle).map(function(c){l.style[c]=e.lastStyle[c]}),this.lastStyle=null,i.fluid&&(a.root.style.width="100%",a.root.style.height="0",a.root.style["padding-top"]="".concat(i.height*100/i.width,"%")),this.emit(hi,!1),this.isMini=a.isMini=!1}},{key:"updatePos",value:function(e){this.pos=Object.assign(this.pos,e),this.isMini&&(this.player.root.style.left="".concat(this.pos.left,"px"),this.player.root.style.top="".concat(this.pos.top,"px"),this.player.root.style.width="".concat(this.pos.width,"px"),this.player.root.style.height="".concat(this.pos.height,"px"))}},{key:"destroy",value:function(){window.removeEventListener("scroll",this.onScroll);var e=T.checkTouchSupport()?"touchend":"click";this.unbind(".mini-cancel-btn",e,this.onCancelClick),this.unbind(".play-icon",e,this.onCenterClick),this._draggabilly&&this._draggabilly.destroy(),this._draggabilly=null,this.exitMini()}},{key:"render",value:function(){if(!this.config.disable)return`
|
|
120
|
-
<xg-mini-layer class="xg-mini-layer">
|
|
121
|
-
<xg-mini-header class="xgplayer-mini-header">
|
|
122
|
-
`.concat(wa(this,"MINI_DRAG",this.playerConfig.isHideTips),`
|
|
123
|
-
</xg-mini-header>
|
|
124
|
-
<div class="mini-cancel-btn">
|
|
125
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
|
|
126
|
-
<path fill="#fff" fill-rule="evenodd" d="M3.99 3.49a1 1 0 0 1 1.414 0L10 8.085l4.596-4.595a1 1 0 1 1 1.414 1.414L11.414 9.5l4.596 4.596a1 1 0 0 1 .084 1.32l-.084.094a1 1 0 0 1-1.414 0L10 10.914 5.404 15.51a1 1 0 0 1-1.414-1.414L8.585 9.5 3.99 4.904a1 1 0 0 1-.084-1.32z"></path>
|
|
127
|
-
</svg>
|
|
128
|
-
</div>
|
|
129
|
-
<div class="play-icon">
|
|
130
|
-
</div>
|
|
131
|
-
</xg-mini-layer>`)}}],[{key:"pluginName",get:function(){return"miniscreen"}},{key:"defaultConfig",get:function(){return{index:10,disable:!1,width:320,height:180,left:-1,top:-1,isShowIcon:!1,isScrollSwitch:!1,scrollTop:0,disableDrag:!1}}}]),n}(nt),Ei={mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousemove:"onMouseMove"},kl=["videoClick","videoDbClick"],Tl=function(o){xe(n,o);var r=Be(n);function n(){var t;ge(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),J(W(t),"onMouseMove",function(l){var c=W(t),u=c.player,d=c.playerConfig;u.isActive||(u.focus({autoHide:!d.closeDelayBlur}),!d.closeFocusVideoFocus&&u.media.focus())}),J(W(t),"onMouseEnter",function(l){var c=W(t),u=c.playerConfig,d=c.player;!u.closeFocusVideoFocus&&d.media.focus(),u.closeDelayBlur?d.focus({autoHide:!1}):d.focus(),t.emit(rf)}),J(W(t),"onMouseLeave",function(l){var c=t.playerConfig,u=c.closePlayerBlur,d=c.leavePlayerTime,f=c.closeDelayBlur;!u&&!f&&(d?t.player.focus({autoHide:!0,delay:d}):t.player.blur({ignorePaused:!0})),t.emit(of)}),J(W(t),"onVideoClick",function(l){var c=W(t),u=c.player,d=c.playerConfig;l.target&&d.closeVideoClick||(l.target===u.root||l.target===u.media||l.target===u.innerContainer||l.target===u.media.__canvas)&&(l.preventDefault(),d.closeVideoStopPropagation||l.stopPropagation(),t._clickCount++,t.clickTimer&&(clearTimeout(t.clickTimer),t.clickTimer=null),t.clickTimer=setTimeout(function(){!t._clickCount||(t._clickCount--,jn(W(t),kl[0],function(f,h){t.switchPlayPause(h.e)},{e:l,paused:u.paused}),clearTimeout(t.clickTimer),t.clickTimer=null)},300))}),J(W(t),"onVideoDblClick",function(l){var c=W(t),u=c.player,d=c.playerConfig;if(!(d.closeVideoDblclick||!l.target||l.target!==u.media&&l.target!==u.media.__canvas)){if(!d.closeVideoClick&&t._clickCount<2){t._clickCount=0;return}t._clickCount=0,t.clickTimer&&(clearTimeout(t.clickTimer),t.clickTimer=null),l.preventDefault(),l.stopPropagation(),jn(W(t),kl[1],function(f,h){t.emitUserAction(h.e,"switch_fullscreen",{props:"fullscreen",from:u.fullscreen,to:!u.fullscreen}),u.fullscreen?u.exitFullscreen():u.getFullscreen()},{e:l,fullscreen:u.fullscreen})}}),t}return ye(n,[{key:"afterCreate",value:function(){var e=this;this._clickCount=0,kl.map(function(i){e.__hooks[i]=null});var a=this.playerConfig.isMobileSimulateMode;a==="mobile"||Ge.device==="mobile"&&!Ge.os.isIpad||this.initEvents()}},{key:"initEvents",value:function(){var e=this,a=this.player,i=a.media,l=a.root,c=this.playerConfig.enableContextmenu;l&&l.addEventListener("click",this.onVideoClick,!1),l&&l.addEventListener("dblclick",this.onVideoDblClick,!1),Object.keys(Ei).map(function(u){l.addEventListener(u,e[Ei[u]],!1)}),!c&&i&&i.addEventListener("contextmenu",this.onContextmenu,!1)}},{key:"switchPlayPause",value:function(e){var a=this.player;this.emitUserAction(e,"switch_play_pause",{props:"paused",from:a.paused,to:!a.paused}),a.ended?a.duration!==1/0&&a.duration>0&&a.replay():a.paused?a.play():a.pause()}},{key:"onContextmenu",value:function(e){e=e||window.event,e.preventDefault&&e.preventDefault(),e.stopPropagation?e.stopPropagation():(e.returnValue=!1,e.cancelBubble=!0)}},{key:"destroy",value:function(){var e=this,a=this.player,i=a.video,l=a.root;this.clickTimer&&clearTimeout(this.clickTimer),l.removeEventListener("click",this.onVideoClick,!1),l.removeEventListener("dblclick",this.onVideoDblClick,!1),i.removeEventListener("contextmenu",this.onContextmenu,!1),Object.keys(Ei).map(function(c){l.removeEventListener(c,e[Ei[c]],!1)})}}],[{key:"pluginName",get:function(){return"pc"}},{key:"defaultConfig",get:function(){return{}}}]),n}(Gn),Ea={PRESS:"press",PRESS_END:"pressend",DOUBlE_CLICK:"doubleclick",CLICK:"click",TOUCH_MOVE:"touchmove",TOUCH_START:"touchstart",TOUCH_END:"touchend"},YE={start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},XE={start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"};function Yf(o){return o&&o.length>0?o[o.length-1]:null}function JE(){return{pressDelay:600,dbClickDelay:200,disablePress:!1,disableDbClick:!1,miniStep:2,needPreventDefault:!0}}var QE=function(){function o(r){var n=this,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{eventType:"touch"};ge(this,o),J(this,"onTouchStart",function(e){var a=n._pos,i=n.root,l=Yf(e.touches);a.x=l?parseInt(l.pageX,10):e.pageX,a.y=l?parseInt(l.pageX,10):e.pageX,a.start=!0,n.__setPress(e),i.addEventListener(n.events.end,n.onTouchEnd),i.addEventListener(n.events.cancel,n.onTouchCancel),i.addEventListener(n.events.move,n.onTouchMove),n.trigger(Ea.TOUCH_START,e)}),J(this,"onTouchCancel",function(e){n.onTouchEnd(e)}),J(this,"onTouchEnd",function(e){var a=n._pos,i=n.root;n.__clearPress(),i.removeEventListener(n.events.cancel,n.onTouchCancel),i.removeEventListener(n.events.end,n.onTouchEnd),i.removeEventListener(n.events.move,n.onTouchMove),e.moving=a.moving,e.press=a.press,a.press&&n.trigger(Ea.PRESS_END,e),n.trigger(Ea.TOUCH_END,e),!a.press&&!a.moving&&n.__setDb(e),a.press=!1,a.start=!1,a.moving=!1}),J(this,"onTouchMove",function(e){var a=n._pos,i=n.config,l=Yf(e.touches),c=l?parseInt(l.pageX,10):e.pageX,u=l?parseInt(l.pageY,10):e.pageX,d=c-a.x,f=u-a.y;Math.abs(f)<i.miniStep&&Math.abs(d)<i.miniStep||(n.__clearPress(),a.press&&n.trigger(Ea.PRESS_END,e),a.press=!1,a.moving=!0,n.trigger(Ea.TOUCH_MOVE,e))}),this._pos={moving:!1,start:!1,x:0,y:0},this.config=JE(),Object.keys(t).map(function(e){n.config[e]=t[e]}),this.root=r,this.events=t.eventType==="mouse"?XE:YE,this.pressIntrvalId=null,this.dbIntrvalId=null,this.__handlers={},this._initEvent()}return ye(o,[{key:"_initEvent",value:function(){this.root.addEventListener(this.events.start,this.onTouchStart)}},{key:"__setPress",value:function(n){var t=this,e=this.config;this.pressIntrvalId&&this.__clearPress(),this.pressIntrvalId=setTimeout(function(){t.trigger(Ea.PRESS,n),t._pos.press=!0,t.__clearPress()},e.pressDelay)}},{key:"__clearPress",value:function(){window.clearTimeout(this.pressIntrvalId),this.pressIntrvalId=null}},{key:"__setDb",value:function(n){var t=this,e=this.config;if(this.dbIntrvalId){this.__clearDb(),this.trigger(Ea.DOUBlE_CLICK,n);return}this.dbIntrvalId=setTimeout(function(){t.__clearDb(),!t._pos.start&&!t._pos.press&&!t._pos.moving&&t.trigger(Ea.CLICK,n)},e.dbClickDelay)}},{key:"__clearDb",value:function(){clearTimeout(this.dbIntrvalId),this.dbIntrvalId=null}},{key:"on",value:function(n,t){this.__handlers[n]||(this.__handlers[n]=[]),this.__handlers[n].push(t)}},{key:"off",value:function(n,t){if(!!this.__handlers[n]){for(var e=this.__handlers[n],a=-1,i=0;i<e.length;i++)if(e[i]===t){a=i;break}a>=0&&this.__handlers[n].splice(a,1)}}},{key:"trigger",value:function(n,t){!this.__handlers[n]||this.__handlers[n].map(function(e){try{e(t)}catch(a){console.error("trigger>>:".concat(n),a)}})}},{key:"destroy",value:function(){var n=this,t={touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"};Object.keys(t).forEach(function(e){n.root.removeEventListener(e,n[t[e]])})}}]),o}();function ZE(){return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
132
|
-
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
133
|
-
<path opacity="0.54"
|
|
134
|
-
d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z"
|
|
135
|
-
fill="white" />
|
|
136
|
-
<path transform="translate(5 0)" d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z" fill="white"/>
|
|
137
|
-
</svg>`,"image/svg+xml").firstChild}var uo={AUTO:"auto",SEEKING:"seeking",PLAYBACK:"playbackrate",LIGHT:""},xl=["videoClick","videoDbClick"],qE=function(o){xe(n,o);var r=Be(n);function n(t){var e;return ge(this,n),e=r.call(this,t),J(W(e),"onTouchStart",function(a){var i=W(e),l=i.player,c=i.config,u=i.pos,d=i.playerConfig,f=e.getTouche(a);if(f&&!c.disableGesture&&e.duration>0&&!l.ended){u.isStart=!0,e.timer&&clearTimeout(e.timer),T.checkIsFunction(d.disableSwipeHandler)&&d.disableSwipeHandler(),e.find(".xg-dur").innerHTML=T.format(e.duration);var h=e.root.getBoundingClientRect();l.rotateDeg===90?(u.top=h.left,u.left=h.top,u.width=h.height,u.height=h.width):(u.top=h.top,u.left=h.left,u.width=h.width,u.height=h.height);var p=parseInt(f.pageX-u.left,10),v=parseInt(f.pageY-u.top,10);u.x=l.rotateDeg===90?v:p,u.y=l.rotateDeg===90?p:v,u.scopeL=c.scopeL*u.width,u.scopeR=(1-c.scopeR)*u.width,u.scopeM1=u.width*(1-c.scopeM)/2,u.scopeM2=u.width-u.scopeM1}}),J(W(e),"onTouchMove",function(a){var i=e.getTouche(a),l=W(e),c=l.pos,u=l.config,d=l.player;if(!(!i||u.disableGesture||!e.duration||!c.isStart)){var f=u.miniMoveStep,h=u.hideControlsActive,p=parseInt(i.pageX-c.left,10),v=parseInt(i.pageY-c.top,10),g=d.rotateDeg===90?v:p,m=d.rotateDeg===90?p:v;if(Math.abs(g-c.x)>f||Math.abs(m-c.y)>f){var _=g-c.x,b=m-c.y,y=c.scope;if(y===-1&&(y=e.checkScope(g,m,_,b,c),y===0&&(h?d.blur():d.focus({autoHide:!1}),!c.time&&(c.time=parseInt(d.currentTime*1e3,10)+e.timeOffset*1e3)),c.scope=y),y===-1||y>0&&!u.gestureY||y===0&&!u.gestureX)return;e.executeMove(_,b,y,c.width,c.height),c.x=g,c.y=m}}}),J(W(e),"onTouchEnd",function(a){var i=W(e),l=i.player,c=i.pos,u=i.playerConfig;if(setTimeout(function(){l.getPlugin("progress")&&l.getPlugin("progress").resetSeekState()},10),!!c.isStart){c.scope>-1&&a.cancelable&&a.preventDefault();var d=e.config,f=d.disableGesture,h=d.gestureX;!f&&h?e.endLastMove(c.scope):c.time=0,c.scope=-1,e.resetPos(),T.checkIsFunction(u.enableSwipeHandler)&&u.enableSwipeHandler(),e.changeAction(uo.AUTO)}}),J(W(e),"onRootTouchMove",function(a){e.config.disableGesture||!e.config.gestureX||e.checkIsRootTarget(a)&&(a.stopPropagation(),e.pos.isStart?e.onTouchMove(a):e.onTouchStart(a))}),J(W(e),"onRootTouchEnd",function(a){e.pos.scope>-1&&e.onTouchEnd(a)}),e.pos={isStart:!1,x:0,y:0,time:0,volume:0,rate:1,light:0,width:0,height:0,scopeL:0,scopeR:0,scopeM1:0,scopeM2:0,scope:-1},e.timer=null,e}return ye(n,[{key:"duration",get:function(){return this.playerConfig.customDuration||this.player.duration}},{key:"timeOffset",get:function(){return this.playerConfig.timeOffset||0}},{key:"registerIcons",value:function(){return{seekTipIcon:{icon:ZE,class:"xg-seek-pre"}}}},{key:"afterCreate",value:function(){var e=this;xl.map(function(h){e.__hooks[h]=null});var a=this.playerConfig,i=this.config,l=this.player;a.closeVideoDblclick===!0&&(i.closedbClick=!0),this.resetPos(),T.isUndefined(a.disableGesture)||(i.disableGesture=!!a.disableGesture),this.appendChild(".xg-seek-icon",this.icons.seekTipIcon),this.xgMask=T.createDom("xg-mask","",{},"xgmask"),l.root.appendChild(this.xgMask),this.initCustomStyle(),this.registerThumbnail();var c=this.domEventType==="mouse"?"mouse":"touch";this.touch=new QE(this.root,{eventType:c,needPreventDefault:!this.config.disableGesture}),this.root.addEventListener("contextmenu",function(h){h.preventDefault()}),l.root.addEventListener("touchmove",this.onRootTouchMove,!0),l.root.addEventListener("touchend",this.onRootTouchEnd,!0),l.root.addEventListener("touchcancel",this.onRootTouchEnd,!0);var u=this.player.controls;u&&u.center&&(u.center.addEventListener("touchmove",this.onRootTouchMove,!0),u.center.addEventListener("touchend",this.onRootTouchEnd,!0),u.center.addEventListener("touchcancel",this.onRootTouchEnd,!0)),this.on(aa,function(){var h=e.player,p=e.config;h.duration>0&&h.duration*1e3<p.moveDuration&&(p.moveDuration=h.duration*1e3)}),this.on([na,Na],function(){var h=e.pos,p=h.time,v=h.isStart;!v&&p>0&&(e.pos.time=0)});var d={touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",press:"onPress",pressend:"onPressEnd",click:"onClick",doubleclick:"onDbClick"};if(Object.keys(d).map(function(h){e.touch.on(h,function(p){e[d[h]](p)})}),!i.disableActive){var f=l.plugins.progress;f&&(f.addCallBack("dragmove",function(h){e.activeSeekNote(h.currentTime,h.forward)}),["dragend","click"].forEach(function(h){f.addCallBack(h,function(){e.changeAction(uo.AUTO)})}))}}},{key:"registerThumbnail",value:function(){var e=this.player,a=e.plugins.thumbnail;if(a&&a.usable){this.thumbnail=a.createThumbnail(null,"mobile-thumbnail");var i=this.find(".time-preview");i.insertBefore(this.thumbnail,i.children[0])}}},{key:"initCustomStyle",value:function(){var e=this.playerConfig||{},a=e.commonStyle,i=a.playedColor,l=a.progressColor,c=a.timePreviewStyle,u=a.curTimeColor,d=a.durationColor;if(i&&(this.find(".xg-curbar").style.backgroundColor=i),l&&(this.find(".xg-bar").style.backgroundColor=l),c){var f=this.find(".time-preview");Object.keys(c).forEach(function(v){f.style[v]=c[v]})}var h=u||i,p=d;h&&(this.find(".xg-cur").style.color=h),p&&(this.find(".xg-dur").style.color=p),this.config.disableTimeProgress&&T.addClass(this.find(".xg-timebar"),"hide")}},{key:"resetPos",value:function(){var e=this;this.pos?(this.pos.isStart=!1,this.pos.scope=-1,["x","y","width","height","scopeL","scopeR","scopeM1","scopeM2"].map(function(a){e.pos[a]=0})):this.pos={isStart:!1,x:0,y:0,volume:0,rate:1,light:0,width:0,height:0,scopeL:0,scopeR:0,scopeM1:0,scopeM2:0,scope:-1,time:0}}},{key:"changeAction",value:function(e){var a=this.player,i=this.root;i.setAttribute("data-xg-action",e);var l=a.plugins.start;l&&l.recover()}},{key:"getTouche",value:function(e){var a=this.player.rotateDeg,i=e.touches&&e.touches.length>0?e.touches[e.touches.length-1]:e;return a===0?{pageX:i.pageX,pageY:i.pageY}:{pageX:i.pageX,pageY:i.pageY}}},{key:"checkScope",value:function(e,a,i,l,c){var u=c.width,d=-1;if(e<0||e>u)return d;var f=Math.abs(l===0?i:i/l);return Math.abs(i)>0&&f>=1.73&&e>c.scopeM1&&e<c.scopeM2?d=0:(Math.abs(i)===0||f<=.57)&&(d=e<c.scopeL?1:e>c.scopeR?2:3),d}},{key:"executeMove",value:function(e,a,i,l,c){switch(i){case 0:this.updateTime(e/l*this.config.scopeM);break;case 1:this.updateBrightness(a/c);break;case 2:Ge.os.isIos||this.updateVolume(a/c);break}}},{key:"endLastMove",value:function(e){var a=this,i=this.pos,l=this.player,c=this.config,u=(i.time-this.timeOffset)/1e3;switch(e){case 0:l.seek(Number(u).toFixed(1)),c.hideControlsEnd?l.blur():l.focus(),this.timer=setTimeout(function(){a.pos.time=0},500);break}this.changeAction(uo.AUTO)}},{key:"checkIsRootTarget",value:function(e){var a=this.player.plugins||{};return a.progress&&a.progress.root.contains(e.target)?!1:a.start&&a.start.root.contains(e.target)||a.controls&&a.controls.root.contains(e.target)}},{key:"sendUseAction",value:function(e){var a=this.player.paused;this.emitUserAction(e,"switch_play_pause",{prop:"paused",from:a,to:!a})}},{key:"clickHandler",value:function(e){var a=this.player,i=this.config,l=this.playerConfig;if(a.state<tt.RUNNING){l.closeVideoClick||(this.sendUseAction(T.createEvent("click")),a.play());return}!i.closedbClick||l.closeVideoClick?a.isActive?a.blur():a.focus():l.closeVideoClick||((a.isActive||i.focusVideoClick)&&(this.sendUseAction(T.createEvent("click")),this.switchPlayPause()),a.focus())}},{key:"dbClickHandler",value:function(e){var a=this.config,i=this.player;!a.closedbClick&&i.state>=tt.RUNNING&&(this.sendUseAction(T.createEvent("dblclick")),this.switchPlayPause())}},{key:"onClick",value:function(e){var a=this,i=this.player;jn(this,xl[0],function(l,c){a.clickHandler(c.e)},{e,paused:i.paused})}},{key:"onDbClick",value:function(e){var a=this,i=this.player;jn(this,xl[1],function(l,c){a.dbClickHandler(c.e)},{e,paused:i.paused})}},{key:"onPress",value:function(e){var a=this.pos,i=this.config,l=this.player;i.disablePress||(a.rate=this.player.playbackRate,this.emitUserAction("press","change_rate",{prop:"playbackRate",from:l.playbackRate,to:i.pressRate}),l.playbackRate=i.pressRate,this.changeAction(uo.PLAYBACK))}},{key:"onPressEnd",value:function(e){var a=this.pos,i=this.config,l=this.player;i.disablePress||(this.emitUserAction("pressend","change_rate",{prop:"playbackRate",from:l.playbackRate,to:a.rate}),l.playbackRate=a.rate,a.rate=1,this.changeAction(uo.AUTO))}},{key:"updateTime",value:function(e){var a=this.player,i=this.config,l=this.player.duration;e=Number(e.toFixed(4));var c=parseInt(e*i.moveDuration,10)+this.timeOffset;c+=this.pos.time,c=c<0?0:c>l*1e3?l*1e3-200:c,a.getPlugin("time")&&a.getPlugin("time").updateTime(c/1e3),a.getPlugin("progress")&&a.getPlugin("progress").updatePercent(c/1e3/this.duration,!0),this.activeSeekNote(c/1e3,e>0),i.isTouchingSeek&&a.seek(Number((c-this.timeOffset)/1e3).toFixed(1)),this.pos.time=c}},{key:"updateVolume",value:function(e){this.player.rotateDeg&&(e=-e);var a=this.player,i=this.pos;if(e=parseInt(e*100,10),i.volume+=e,!(Math.abs(i.volume)<10)){var l=parseInt(a.volume*10,10)-parseInt(i.volume/10,10);l=l>10?10:l<1?0:l,a.volume=l/10,i.volume=0}}},{key:"updateBrightness",value:function(e){var a=this.pos,i=this.config,l=this.xgMask;if(!!i.darkness){this.player.rotateDeg&&(e=-e);var c=a.light+.8*e;c=c>i.maxDarkness?i.maxDarkness:c<0?0:c,l&&(l.style.backgroundColor="rgba(0,0,0,".concat(c,")")),a.light=c}}},{key:"activeSeekNote",value:function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this.player,l=this.config,c=!(this.duration!==1/0&&this.duration>0);if(!(!e||typeof e!="number"||c||l.disableActive)){e<0?e=0:e>i.duration&&(e=i.duration-.2),this.changeAction(uo.SEEKING);var u=i.plugins.start;u&&u.focusHide(),this.find(".xg-dur").innerHTML=T.format(this.duration),this.find(".xg-cur").innerHTML=T.format(e),this.find(".xg-curbar").style.width="".concat(e/this.duration*100,"%"),a?T.removeClass(this.find(".xg-seek-show"),"xg-back"):T.addClass(this.find(".xg-seek-show"),"xg-back"),this.updateThumbnails(e)}}},{key:"updateThumbnails",value:function(e){var a=this.player,i=a.plugins.thumbnail;i&&i.usable&&this.thumbnail&&i.update(this.thumbnail,e,160,90)}},{key:"switchPlayPause",value:function(){var e=this.player;if(e.state<tt.ATTACHED)return!1;e.ended||(e.paused?e.play():e.pause())}},{key:"disableGesture",value:function(){this.config.disableGesture=!0}},{key:"enableGesture",value:function(){this.config.disableGesture=!1}},{key:"destroy",value:function(){var e=this.player;this.timer&&clearTimeout(this.timer),this.thumbnail=null,e.root.removeChild(this.xgMask),this.xgMask=null,this.touch&&this.touch.destroy(),this.touch=null,e.root.removeEventListener("touchmove",this.onRootTouchMove,!0),e.root.removeEventListener("touchend",this.onRootTouchEnd,!0),e.root.removeEventListener("touchcancel",this.onRootTouchEnd,!0);var a=this.player.controls;a&&a.center&&(a.center.removeEventListener("touchmove",this.onRootTouchMove,!0),a.center.removeEventListener("touchend",this.onRootTouchEnd,!0),a.center.removeEventListener("touchcancel",this.onRootTouchEnd,!0))}},{key:"render",value:function(){var e=this.config.gradient!=="normal"?"gradient ".concat(this.config.gradient):"gradient";return`
|
|
138
|
-
<xg-trigger class="trigger">
|
|
139
|
-
<div class="`.concat(e,`"></div>
|
|
140
|
-
<div class="time-preview">
|
|
141
|
-
<div class="xg-seek-show `).concat(this.config.disableSeekIcon?" hide-seek-icon":"",`">
|
|
142
|
-
<i class="xg-seek-icon"></i>
|
|
143
|
-
<span class="xg-cur">00:00</span>
|
|
144
|
-
<span class="xg-separator">/</span>
|
|
145
|
-
<span class="xg-dur">00:00</span>
|
|
146
|
-
</div>
|
|
147
|
-
<div class="xg-bar xg-timebar">
|
|
148
|
-
<div class="xg-curbar"></div>
|
|
149
|
-
</div>
|
|
150
|
-
</div>
|
|
151
|
-
<div class="xg-playbackrate xg-top-note">
|
|
152
|
-
<span><i>`).concat(this.config.pressRate,"X</i>").concat(this.i18n.FORWARD,`</span>
|
|
153
|
-
</div>
|
|
154
|
-
</xg-trigger>
|
|
155
|
-
`)}}],[{key:"pluginName",get:function(){return"mobile"}},{key:"defaultConfig",get:function(){return{index:0,disableGesture:!1,gestureX:!0,gestureY:!0,gradient:"normal",isTouchingSeek:!1,miniMoveStep:5,miniYPer:5,scopeL:.25,scopeR:.25,scopeM:.9,pressRate:2,darkness:!0,maxDarkness:.8,disableActive:!1,disableTimeProgress:!1,hideControlsActive:!1,hideControlsEnd:!1,moveDuration:60*6*1e3,closedbClick:!1,disablePress:!0,disableSeekIcon:!1,focusVideoClick:!1}}}]),n}(nt);function $E(o){o.preventDefault(),o.returnValue=!1}function Xf(o){var r=o.tagName;return!!(r==="INPUT"||r==="TEXTAREA"||o.isContentEditable)}var Jf=function(o){xe(n,o);var r=Be(n);function n(){var t;ge(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),J(W(t),"onBodyKeyDown",function(l){if(!!t.player){var c=l||window.event,u=c.keyCode,d=W(t),f=d._keyState,h=d.player,p=t.config,v=p.disable,g=p.disableBodyTrigger,m=p.isIgnoreUserActive;if(v||g||!(h.isUserActive||m)||Xf(c.target)||!t.checkIsVisible()||c.metaKey||c.altKey||c.ctrlKey){f.isBodyKeyDown=!1;return}!l.repeat&&!f.isKeyDown&&((c.target===document.body||t.config.isGlobalTrigger&&!Xf(c.target))&&t.checkCode(u,!0)&&(f.isBodyKeyDown=!0),document.addEventListener("keyup",t.onBodyKeyUp)),f.isBodyKeyDown&&t.handleKeyDown(c)}}),J(W(t),"onBodyKeyUp",function(l){!t.player||(document.removeEventListener("keyup",t.onBodyKeyUp),t.handleKeyUp(l))}),J(W(t),"onKeydown",function(l){if(!!t.player){var c=l||window.event,u=W(t),d=u._keyState;if(!c.repeat){if(t.config.disable||t.config.disableRootTrigger||c.metaKey||c.altKey||c.ctrlKey)return;c&&(c.keyCode===37||t.checkCode(c.keyCode))&&(c.target===t.player.root||c.target===t.player.video||c.target===t.player.controls.el)&&(d.isKeyDown=!0),t.player.root.addEventListener("keyup",t.onKeyup)}!d.isKeyDown||t.handleKeyDown(c)}}),J(W(t),"onKeyup",function(l){!t.player||(t.player.root.removeEventListener("keyup",t.onKeyup),t.handleKeyUp(l))}),t}return ye(n,[{key:"mergekeyCodeMap",value:function(){var e=this,a=this.config.keyCodeMap;a&&Object.keys(a).map(function(i){e.keyCodeMap[i]?["keyCode","action","disable","pressAction","disablePress","isBodyTarget"].map(function(l){a[i][l]&&(e.keyCodeMap[i][l]=a[i][l])}):e.keyCodeMap[i]=a[i]})}},{key:"afterCreate",value:function(){this.config.disable=!this.playerConfig.keyShortcut;var e=typeof this.config.seekStep=="function"?this.config.seekStep(this.player):this.config.seekStep;!e||typeof e!="number"||(this.seekStep=e),this.keyCodeMap={space:{keyCode:32,action:"playPause",disable:!1,disablePress:!1,noBodyTarget:!1},up:{keyCode:38,action:"upVolume",disable:!1,disablePress:!1,noBodyTarget:!0},down:{keyCode:40,action:"downVolume",disable:!1,disablePress:!1,noBodyTarget:!0},left:{keyCode:37,action:"seekBack",disablePress:!1,disable:!1},right:{keyCode:39,action:"seek",pressAction:"changePlaybackRate",disablePress:!1,disable:!1},esc:{keyCode:27,action:"exitFullscreen",disablePress:!0,disable:!1}},this.mergekeyCodeMap(),this._keyState={isKeyDown:!1,isBodyKeyDown:!1,isPress:!1,tt:0,playbackRate:0},this.player.root.addEventListener("keydown",this.onKeydown),document.addEventListener("keydown",this.onBodyKeyDown)}},{key:"setConfig",value:function(e){var a=this;Object.keys(e).forEach(function(i){a.config[i]=e[i]})}},{key:"checkIsVisible",value:function(){if(!this.config.checkVisible)return!0;var e=this.player.root.getBoundingClientRect(),a=e.height,i=e.top,l=e.bottom,c=window.innerHeight;return!(i<0&&i<0-a*.9||l>0&&l-c>a*.9)}},{key:"checkCode",value:function(e,a){var i=this,l=!1;return Object.keys(this.keyCodeMap).map(function(c){i.keyCodeMap[c]&&e===i.keyCodeMap[c].keyCode&&!i.keyCodeMap[c].disable&&(l=!a||a&&!i.keyCodeMap[c].noBodyTarget)}),l}},{key:"downVolume",value:function(e){var a=this.player;if(!(a.volume<=0)){var i=parseFloat((a.volume-.1).toFixed(1)),l={volume:{from:a.volume,to:i}};this.emitUserAction(e,"change_volume",{props:l}),i>=0?a.volume=i:a.volume=0}}},{key:"upVolume",value:function(e){var a=this.player;if(!(a.volume>=1)){var i=parseFloat((a.volume+.1).toFixed(1)),l={volume:{from:a.volume,to:i}};this.emitUserAction(e,"change_volume",{props:l}),i<=1?a.volume=i:a.volume=1}}},{key:"seek",value:function(e){var a=this.player,i=a.currentTime,l=a.offsetCurrentTime,c=a.duration,u=a.offsetDuration,d=a.timeSegments,f=l>-1?l:i,h=u||c,p=e.repeat&&this.seekStep>=4?parseInt(this.seekStep/2,10):this.seekStep;f+p<=h?f=f+p:f=h;var v=T.getCurrentTimeByOffset(f,d),g={currentTime:{from:i,to:v}};this.emitUserAction(e,"seek",{props:g}),this.player.currentTime=v}},{key:"seekBack",value:function(e){var a=this.player,i=a.currentTime,l=a.offsetCurrentTime,c=a.timeSegments,u=e.repeat?parseInt(this.seekStep/2,10):this.seekStep,d=l>-1?l:i,f=d-u;f<0&&(f=0),f=T.getCurrentTimeByOffset(f,c);var h={currentTime:{from:i,to:f}};this.emitUserAction(e,"seek",{props:h}),this.player.currentTime=f}},{key:"changePlaybackRate",value:function(e){var a=this._keyState,i=this.config,l=this.player;a.playbackRate===0&&(a.playbackRate=l.playbackRate,l.playbackRate=i.playbackRate)}},{key:"playPause",value:function(e){var a=this.player;!a||(this.emitUserAction(e,"switch_play_pause"),a.paused?a.play():a.pause())}},{key:"exitFullscreen",value:function(e){var a=this.player,i=a.fullscreen,l=a.cssfullscreen;i&&(this.emitUserAction("keyup","switch_fullscreen",{prop:"fullscreen",from:i,to:!i}),a.exitFullscreen()),l&&(this.emitUserAction("keyup","switch_css_fullscreen",{prop:"cssfullscreen",from:l,to:!l}),a.exitCssFullscreen())}},{key:"handleKeyDown",value:function(e){var a=this._keyState;if(e.repeat){a.isPress=!0;var i=Date.now();if(i-a.tt<200)return;a.tt=i}this.handleKeyCode(e.keyCode,e,a.isPress)}},{key:"handleKeyUp",value:function(e){var a=this._keyState;a.playbackRate>0&&(this.player.playbackRate=a.playbackRate,a.playbackRate=0),a.isKeyDown=!1,a.isPress=!1,a.tt=0}},{key:"handleKeyCode",value:function(e,a,i){for(var l=Object.keys(this.keyCodeMap),c=0;c<l.length;c++){var u=this.keyCodeMap[l[c]],d=u.action,f=u.keyCode,h=u.disable,p=u.pressAction,v=u.disablePress;if(f===e){if(!h&&!(i&&v)){var g=i&&p||d;typeof g=="function"?d(a,this.player,i):typeof g=="string"&&typeof this[g]=="function"&&this[g](a,this.player,i),this.emit(uf,St({key:l[c],target:a.target,isPress:i},this.keyCodeMap[l[c]]))}$E(a),a.stopPropagation();break}}}},{key:"destroy",value:function(){this.player.root.removeEventListener("keydown",this.onKeydown),document.removeEventListener("keydown",this.onBodyKeyDown),this.player.root.removeEventListener("keyup",this.onKeyup),document.removeEventListener("keyup",this.onBodyKeyUp)}},{key:"disable",value:function(){this.config.disable=!0}},{key:"enable",value:function(){this.config.disable=!1}}],[{key:"pluginName",get:function(){return"keyboard"}},{key:"defaultConfig",get:function(){return{seekStep:10,checkVisible:!1,disableBodyTrigger:!1,disableRootTrigger:!1,isGlobalTrigger:!0,keyCodeMap:{},disable:!1,playbackRate:2,isIgnoreUserActive:!0}}}]),n}(Gn);function eC(){return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
156
|
-
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
157
|
-
</svg>
|
|
158
|
-
`,"image/svg+xml").firstChild}var tC=function(o){xe(n,o);var r=Be(n);function n(){return ge(this,n),r.apply(this,arguments)}return ye(n,[{key:"registerIcons",value:function(){return{loadingIcon:eC}}},{key:"afterCreate",value:function(){this.appendChild("xg-loading-inner",this.icons.loadingIcon)}},{key:"render",value:function(){return`
|
|
159
|
-
<xg-loading class="xgplayer-loading">
|
|
160
|
-
<xg-loading-inner></xg-loading-inner>
|
|
161
|
-
</xg-loading>`}}],[{key:"pluginName",get:function(){return"loading"}},{key:"defaultConfig",get:function(){return{position:it.ROOT}}}]),n}(nt),nC=function(o){xe(n,o);var r=Be(n);function n(){var t;ge(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),J(W(t),"_onDurationChange",function(){t.updateSegments();var l=t.player,c=l.currentTime,u=l.timeSegments;if(!!t._checkIfEnabled(u)){var d=T.getIndexByTime(c,u),f=T.getOffsetCurrentTime(c,u,d);t.player.offsetCurrentTime=f,t.changeIndex(d,u)}}),J(W(t),"_onLoadedData",function(){var l=t.player.timeSegments;if(!!t._checkIfEnabled(l)){var c=T.getOffsetCurrentTime(0,l);t.player.offsetCurrentTime=c,t.changeIndex(0,l),t.curPos.start>0&&(t.player.currentTime=t.curPos.start)}}),J(W(t),"_onTimeupdate",function(){var l=t.player,c=l.currentTime,u=l.timeSegments;if(!!t._checkIfEnabled(u)){var d=u.length;t.lastCurrentTime=c;var f=T.getIndexByTime(c,u);f!==t.curIndex&&t.changeIndex(f,u);var h=T.getOffsetCurrentTime(c,u,f);if(t.player.offsetCurrentTime=h,!!t.curPos){var p=t.curPos,v=p.start,g=p.end;c<v?t.player.currentTime=v:c>g&&f>=d-1&&t.player.pause()}}}),J(W(t),"_onSeeking",function(){var l=t.player,c=l.currentTime,u=l.timeSegments;if(!!t._checkIfEnabled(u))if(c<u[0].start)t.player.currentTime=u[0].start;else if(c>u[u.length-1].end)t.player.currentTime=u[u.length-1].end;else{var d=T.getIndexByTime(c,u);if(d>=0){var f=t.getSeekTime(c,t.lastCurrentTime,d,u);f>=0&&(t.player.currentTime=f)}}}),J(W(t),"_onPlay",function(){var l=t.player,c=l.currentTime,u=l.timeSegments;t._checkIfEnabled(u)&&c>=u[u.length-1].end&&(t.player.currentTime=u[0].start)}),t}return ye(n,[{key:"afterCreate",value:function(){this.curIndex=-1,this.curPos=null,this.lastCurrentTime=0,this.updateSegments(),this.on(aa,this._onDurationChange),this.on(oa,this._onLoadedData),this.on(wn,this._onTimeupdate),this.on(li,this._onSeeking),this.on(sn,this._onPlay)}},{key:"setConfig",value:function(e){var a=this;if(!!e){var i=Object.keys(e);i.length<1||(i.forEach(function(l){a.config[l]=e[l]}),this.updateSegments())}}},{key:"updateSegments",value:function(){var e=this.config,a=e.disable,i=e.segments,l=this.player;if(a||!i||i.length===0)l.timeSegments=[],l.offsetDuration=0,l.offsetCurrentTime=-1;else{var c=this.formatTimeSegments(i,l.duration);l.timeSegments=c,l.offsetDuration=c.length>0?c[c.length-1].duration:0}}},{key:"formatTimeSegments",value:function(e,a){var i=[];return e?(e.sort(function(l,c){return l.start-c.start}),e.forEach(function(l,c){var u={};if(u.start=l.start<0?0:l.start,u.end=a>0&&l.end>a?a:l.end,!(a>0&&u.start>a)){i.push(u);var d=u.end-u.start;if(c===0)u.offset=l.start,u.cTime=0,u.segDuration=d,u.duration=d;else{var f=i[c-1];u.offset=f.offset+(u.start-f.end),u.cTime=f.duration+f.cTime,u.segDuration=d,u.duration=f.duration+d}}}),i):[]}},{key:"getSeekTime",value:function(e,a,i,l){var c=-1,u=l[i],d=u.start,f=u.end;if(e>=d&&e<=f)return c;var h=e-a;if(h<0&&e<d){var p=a>d?a-d:0;return c=i-1>=0?l[i-1].end+h+p:0,c}return-1}},{key:"_checkIfEnabled",value:function(e){return!(!e||e.length<1)}},{key:"changeIndex",value:function(e,a){this.curIndex=e,e>=0&&a.length>0?this.curPos=a[e]:this.curPos=null}}],[{key:"pluginName",get:function(){return"TimeSegmentsControls"}},{key:"defaultConfig",get:function(){return{disable:!0,segments:[]}}}]),n}(Gn);function aC(){return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
|
|
162
|
-
<g>
|
|
163
|
-
<path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"/>
|
|
164
|
-
<path transform="scale(1.5 1.5)" fill-rule="evenodd" clip-rule="evenodd" d="M3.88148 4.06298C3.75371 4.21005 3.67667 4.40231 3.67749 4.61242C3.67847 4.87253 3.79852 5.10435 3.98581 5.25646L6.99111 8.05895C7.32771 8.37283 7.85502 8.35443 8.16891 8.01782C8.48279 7.68122 8.46437 7.15391 8.12778 6.84003L6.62061 5.43457L9.8198 5.4224C9.82848 5.42239 9.8372 5.42221 9.84591 5.4219C10.9714 5.38233 12.0885 5.6285 13.0931 6.13744C14.0976 6.64635 14.957 7.40148 15.5908 8.33234C16.2246 9.2632 16.6122 10.3394 16.7177 11.4606C16.823 12.5819 16.6427 13.7115 16.1934 14.7442C16.0098 15.1661 16.203 15.6571 16.6251 15.8408C17.0471 16.0243 17.5381 15.8311 17.7216 15.4091C18.2833 14.1183 18.5087 12.7063 18.3771 11.3047C18.2453 9.90318 17.7607 8.55792 16.9684 7.39433C16.1761 6.23073 15.1021 5.28683 13.8463 4.65065C12.5946 4.01651 11.203 3.70872 9.80072 3.75583L6.43415 3.76862L7.96326 2.12885C8.27715 1.79225 8.25872 1.26494 7.92213 0.951061C7.58553 0.63718 7.05822 0.655585 6.74433 0.99219L3.90268 4.0395C3.89545 4.04724 3.88841 4.05509 3.88154 4.06303L3.88148 4.06298Z" fill="white"/>
|
|
165
|
-
</g>
|
|
166
|
-
<defs>
|
|
167
|
-
<clipPath>
|
|
168
|
-
<rect width="40" height="40" fill="white"/>
|
|
169
|
-
</clipPath>
|
|
170
|
-
</defs>
|
|
171
|
-
</svg>
|
|
172
|
-
`,"image/svg+xml").firstChild}var oC=function(o){xe(n,o);var r=Be(n);function n(t){var e;return ge(this,n),e=r.call(this,t),e.rotateDeg=e.config.rotateDeg||0,e}return ye(n,[{key:"afterCreate",value:function(){var e=this;if(!this.config.disable){Re(Le(n.prototype),"afterCreate",this).call(this),this.appendChild(".xgplayer-icon",this.icons.rotate),this.onBtnClick=this.onBtnClick.bind(this),this.bind(".xgplayer-icon",["click","touchend"],this.onBtnClick),this.on(ga,function(){e.rotateDeg&&e.config.innerRotate&&T.setTimeout(e,function(){e.updateRotateDeg(e.rotateDeg,e.config.innerRotate)},100)});var a=this.player.root;this.rootWidth=a.style.width||a.offsetWidth||a.clientWidth,this.rootHeight=a.style.height||a.offsetHeight||a.clientHeight,this.rotateDeg&&this.updateRotateDeg(this.rotateDeg,this.config.innerRotate)}}},{key:"destroy",value:function(){Re(Le(n.prototype),"destroy",this).call(this),this.unbind(".xgplayer-icon",["click","touchend"],this.onBtnClick)}},{key:"onBtnClick",value:function(e){e.preventDefault(),e.stopPropagation(),this.emitUserAction(e,"rotate"),this.rotate(this.config.clockwise,this.config.innerRotate,1)}},{key:"updateRotateDeg",value:function(e,a){if(e||(e=0),a){this.player.videoRotateDeg=e;return}var i=this.player,l=this.rootWidth,c=this.rootHeight,u=i.root,d=i.innerContainer,f=i.media,h=u.offsetWidth,p=d&&a?d.offsetHeight:u.offsetHeight,v=l,g=c,m=0,_=0;(e===.75||e===.25)&&(v="".concat(p,"px"),g="".concat(h,"px"),m=-(p-h)/2,_=-(h-p)/2);var b="translate(".concat(m,"px,").concat(_,"px) rotate(").concat(e,"turn)"),y={transformOrigin:"center center",transform:b,webKitTransform:b,height:g,width:v},w=a?f:u,S=a?i.getPlugin("poster"):null;Object.keys(y).map(function(D){w.style[D]=y[D],S&&S.root&&(S.root.style[D]=y[D])})}},{key:"rotate",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=this.player;this.rotateDeg||(this.rotateDeg=0);var c=e?1:-1;this.rotateDeg=(this.rotateDeg+1+c*.25*i)%1,this.updateRotateDeg(this.rotateDeg,a),l.emit(lf,this.rotateDeg*360)}},{key:"registerIcons",value:function(){return{rotate:aC}}},{key:"render",value:function(){if(!this.config.disable)return`
|
|
173
|
-
<xg-icon class="xgplayer-rotate">
|
|
174
|
-
<div class="xgplayer-icon">
|
|
175
|
-
</div>
|
|
176
|
-
`.concat(wa(this,"ROTATE_TIPS",this.playerConfig.isHideTips),`
|
|
177
|
-
</xg-icon>`)}}],[{key:"pluginName",get:function(){return"rotate"}},{key:"defaultConfig",get:function(){return{position:it.CONTROLS_RIGHT,index:6,innerRotate:!0,clockwise:!1,rotateDeg:0,disable:!1}}}]),n}(Ha);function rC(){return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
178
|
-
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
179
|
-
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
180
|
-
fill="white" />
|
|
181
|
-
</svg>`,"image/svg+xml").firstChild}function iC(){return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
182
|
-
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
183
|
-
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
184
|
-
fill="white" />
|
|
185
|
-
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
186
|
-
d="M9.4998 7.7C9.77595 7.7 9.9998 7.47614 9.9998 7.2V6.5C9.9998 6.22386 9.77595 6 9.4998 6H5.5402L5.52754 6.00016H5.5C5.22386 6.00016 5 6.22401 5 6.50016V10.4598C5 10.7359 5.22386 10.9598 5.5 10.9598H6.2C6.47614 10.9598 6.7 10.7359 6.7 10.4598V8.83005L8.76983 10.9386C8.96327 11.1357 9.27984 11.1386 9.47691 10.9451L9.97645 10.4548C10.1735 10.2613 10.1764 9.94476 9.983 9.7477L7.97289 7.7H9.4998Z"
|
|
187
|
-
fill="white" />
|
|
188
|
-
</svg>`,"image/svg+xml").firstChild}var fo={PIP:"picture-in-picture",INLINE:"inline",FULLSCREEN:"fullscreen"},sC=function(o){xe(n,o);var r=Be(n);function n(){var t;ge(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),J(W(t),"switchPIP",function(l){if(!t.isPIPAvailable())return!1;l.stopPropagation&&l.stopPropagation(),t.isPip?(t.exitPIP(),t.emitUserAction(l,"change_pip",{props:"pip",from:!0,to:!1}),t.setAttr("data-state","normal")):t.player.media.readyState===4&&(t.requestPIP(),t.emitUserAction(l,"change_pip",{props:"pip",from:!1,to:!0}),t.setAttr("data-state","pip"))}),t}return ye(n,[{key:"beforeCreate",value:function(e){typeof e.player.config.pip=="boolean"&&(e.config.showIcon=e.player.config.pip)}},{key:"afterCreate",value:function(){var e=this;!this.isPIPAvailable()||(Re(Le(n.prototype),"afterCreate",this).call(this),this.pMode=fo.INLINE,this.initPipEvents(),this.config.showIcon&&this.initIcons(),this.once(ui,function(){e.config.showIcon&&(T.removeClass(e.find(".xgplayer-icon"),"xg-icon-disable"),e.bind("click",e.switchPIP))}))}},{key:"registerIcons",value:function(){return{pipIcon:{icon:rC,class:"xg-get-pip"},pipIconExit:{icon:iC,class:"xg-exit-pip"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.pipIcon),this.appendChild(".xgplayer-icon",e.pipIconExit)}},{key:"initPipEvents",value:function(){var e=this,a=this.player;this.leavePIPCallback=function(){var i=a.paused;T.setTimeout(e,function(){!i&&a.mediaPlay()},0),!i&&a.mediaPlay(),e.setAttr("data-state","normal"),e.pipWindow=null,a.emit(fl,!1)},this.enterPIPCallback=function(i){a.emit(fl,!0),i!=null&&i.pictureInPictureWindow&&(e.pipWindow=i.pictureInPictureWindow),e.setAttr("data-state","pip")},this.onWebkitpresentationmodechanged=function(i){var l=a.media.webkitPresentationMode;e.pMode===fo.FULLSCREEN&&l!==fo.FULLSCREEN&&a.onFullscreenChange(null,!1),e.pMode=l,l===fo.PIP?e.enterPIPCallback(i):l===fo.INLINE&&e.leavePIPCallback(i)},a.media&&(a.media.addEventListener("enterpictureinpicture",this.enterPIPCallback),a.media.addEventListener("leavepictureinpicture",this.leavePIPCallback),n.checkWebkitSetPresentationMode(a.media)&&a.media.addEventListener("webkitpresentationmodechanged",this.onWebkitpresentationmodechanged))}},{key:"copyStyleIntoPiPWindow",value:function(e){var a=Rn(document.styleSheets).map(function(l){try{return Rn(l.cssRules).map(function(u){return u.cssText}).join("")}catch{var c=document.createElement("link");c.rel="stylesheet",c.type=l.type,c.media=l.media,c.href=l.href,e.document.head.appendChild(c)}return""}).filter(Boolean).join(`
|
|
189
|
-
`),i=document.createElement("style");i.textContent=a,e.document.head.appendChild(i)}},{key:"requestPIP",value:function(){var e=this,a=this.player,i=this.playerConfig,l=this.config;if(!(!this.isPIPAvailable()||this.isPip))try{var c=i.poster;if(c&&(a.media.poster=T.typeOf(c)==="String"?c:c.poster),l.preferDocument&&this.isDocPIPAvailable()){var u={};if(l.width&&l.height)u.width=l.width,u.height=l.height;else{var d=a.root.getBoundingClientRect();u.width=d.width,u.height=d.height}documentPictureInPicture.requestWindow(u).then(function(f){var h=l.docPiPNode,p=l.docPiPStyle;e.enterPIPCallback();var v=h||a.root,g=v.parentElement,m=v.previousSibling,_=v.nextSibling;e.copyStyleIntoPiPWindow(f);var b=document.createElement("style");if(b.append("body{padding:0; margin:0;}"),p){var y="";typeof p=="string"?y=p:typeof p=="function"&&(y=p.call(l)),y&&b.append(y)}else v===a.root&&b.append(`
|
|
190
|
-
.xgplayer{width: 100%!important; height: 100%!important;}
|
|
191
|
-
`);f.document.head.append(b),f.document.body.append(v),f.addEventListener("pagehide",function(w){g&&(_?g.insertBefore(v,_):m?g.insertBefore(v,m.nextSibling):g.appendChild(v)),e.leavePIPCallback()},{once:!0})})}else n.checkWebkitSetPresentationMode(a.media)?a.media.webkitSetPresentationMode("picture-in-picture"):a.media.requestPictureInPicture();return!0}catch(f){return console.error("requestPiP",f),!1}}},{key:"exitPIP",value:function(){var e=this.player;try{if(this.isPIPAvailable()&&this.isPip){var a;this.isDocPIPAvailable()&&(a=documentPictureInPicture)!==null&&a!==void 0&&a.window?documentPictureInPicture.window.close():n.checkWebkitSetPresentationMode(e.media)?e.media.webkitSetPresentationMode("inline"):document.exitPictureInPicture()}return!0}catch(i){return console.error("exitPIP",i),!1}}},{key:"isPip",get:function(){var e,a=this.player;return!!(this.isDocPIPAvailable()&&(e=documentPictureInPicture)!==null&&e!==void 0&&e.window)||document.pictureInPictureElement&&document.pictureInPictureElement===a.media||a.media.webkitPresentationMode===fo.PIP}},{key:"isPIPAvailable",value:function(){var e=this.player.media,a=T.typeOf(document.pictureInPictureEnabled)==="Boolean"?document.pictureInPictureEnabled:!1;return a&&(T.typeOf(e.disablePictureInPicture)==="Boolean"&&!e.disablePictureInPicture||e.webkitSupportsPresentationMode&&T.typeOf(e.webkitSetPresentationMode)==="Function")||this.isDocPIPAvailable()}},{key:"isDocPIPAvailable",value:function(){return"documentPictureInPicture"in window&&/^(https|file)/.test(location.protocol)}},{key:"destroy",value:function(){Re(Le(n.prototype),"destroy",this).call(this);var e=this.player;e.media.removeEventListener("enterpictureinpicture",this.enterPIPCallback),e.media.removeEventListener("leavepictureinpicture",this.leavePIPCallback),n.checkWebkitSetPresentationMode(e.media)&&e.media.removeEventListener("webkitpresentationmodechanged",this.onWebkitpresentationmodechanged),this.exitPIP(),this.unbind("click",this.btnClick)}},{key:"render",value:function(){if(!(!this.config.showIcon||!this.isPIPAvailable()))return`<xg-icon class="xgplayer-pip">
|
|
192
|
-
<div class="xgplayer-icon xg-icon-disable">
|
|
193
|
-
</div>
|
|
194
|
-
`.concat(wa(this,"PIP",this.playerConfig.isHideTips),`
|
|
195
|
-
</xg-icon>`)}}],[{key:"pluginName",get:function(){return"pip"}},{key:"defaultConfig",get:function(){return{position:it.CONTROLS_RIGHT,index:6,showIcon:!1,preferDocument:!1,width:void 0,height:void 0,docPiPNode:void 0,docPiPStyle:void 0}}},{key:"checkWebkitSetPresentationMode",value:function(e){return typeof e.webkitSetPresentationMode=="function"}}]),n}(Ha);function lC(){return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
196
|
-
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
197
|
-
</svg>
|
|
198
|
-
`,"image/svg+xml").firstChild}var cC=function(o){xe(n,o);var r=Be(n);function n(t){var e;return ge(this,n),e=r.call(this,t),J(W(e),"playNext",function(a){var i=W(e),l=i.player;a.preventDefault(),a.stopPropagation(),e.idx+1<e.config.urlList.length?(e.idx++,e.nextHandler(e.config.urlList[e.idx],e.idx),l.emit(pi,e.idx+1)):(e.nextHandler(),l.emit(pi))}),e.idx=-1,e}return ye(n,[{key:"afterCreate",value:function(){!this.config.urlList||this.config.urlList.length===0||(this.appendChild(".xgplayer-icon",this.icons.playNext),this.initEvents())}},{key:"registerIcons",value:function(){return{playNext:lC}}},{key:"initEvents",value:function(){this.nextHandler=this.hook("nextClick",this.changeSrc);var e=Ge.device==="mobile"?"touchend":"click";this.bind(e,this.playNext),this.show()}},{key:"changeSrc",value:function(e){var a=this.player;!e||(a.pause(),a.currentTime=0,a.switchURL?a.switchURL(e):a.src=e,a.config.url=e,a.play())}},{key:"destroy",value:function(){this.unbind(["touchend","click"],this.playNext)}},{key:"render",value:function(){if(!(!this.config.urlList||this.config.urlList.length===0))return`
|
|
199
|
-
<xg-icon class="xgplayer-playnext">
|
|
200
|
-
<div class="xgplayer-icon">
|
|
201
|
-
</div>
|
|
202
|
-
`.concat(wa(this,"PLAYNEXT_TIPS",this.playerConfig.isHideTips),`
|
|
203
|
-
</xg-icon>
|
|
204
|
-
`)}}],[{key:"pluginName",get:function(){return"playNext"}},{key:"defaultConfig",get:function(){return{position:it.CONTROLS_LEFT,index:1,url:null,urlList:[]}}}]),n}(nt),Qf={exports:{}};(function(o,r){(function(n,t){o.exports=t()})(zc,function(){return function n(t,e,a){var i=window,l="application/octet-stream",c=a||l,u=t,d=!e&&!a&&u,f=document.createElement("a"),h=function(C){return String(C)},p=i.Blob||i.MozBlob||i.WebKitBlob||h,v=e||"download",g,m;if(p=p.call?p.bind(i):Blob,String(this)==="true"&&(u=[u,c],c=u[0],u=u[1]),d&&d.length<2048&&(v=d.split("/").pop().split("?")[0],f.href=d,f.href.indexOf(d)!==-1)){var _=new XMLHttpRequest;return _.open("GET",d,!0),_.responseType="blob",_.onload=function(C){n(C.target.response,v,l)},setTimeout(function(){_.send()},0),_}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u))if(u.length>1024*1024*1.999&&p!==h)u=S(u),c=u.type||l;else return navigator.msSaveBlob?navigator.msSaveBlob(S(u),v):D(u);else if(/([\x80-\xff])/.test(u)){var b=0,y=new Uint8Array(u.length),w=y.length;for(b;b<w;++b)y[b]=u.charCodeAt(b);u=new p([y],{type:c})}g=u instanceof p?u:new p([u],{type:c});function S(C){var B=C.split(/[:;,]/),A=B[1],L=B[2]=="base64"?atob:decodeURIComponent,I=L(B.pop()),E=I.length,x=0,k=new Uint8Array(E);for(x;x<E;++x)k[x]=I.charCodeAt(x);return new p([k],{type:A})}function D(C,B){if("download"in f)return f.href=C,f.setAttribute("download",v),f.className="download-js-link",f.innerHTML="downloading...",f.style.display="none",document.body.appendChild(f),setTimeout(function(){f.click(),document.body.removeChild(f),B===!0&&setTimeout(function(){i.URL.revokeObjectURL(f.href)},250)},66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(C)&&(C="data:"+C.replace(/^data:([\w\/\-\+]+)/,l)),window.open(C)||confirm(`Displaying New Document
|
|
205
|
-
|
|
206
|
-
Use Save As... to download, then click back to return to this page.`)&&(location.href=C),!0;var A=document.createElement("iframe");document.body.appendChild(A),!B&&/^data:/.test(C)&&(C="data:"+C.replace(/^data:([\w\/\-\+]+)/,l)),A.src=C,setTimeout(function(){document.body.removeChild(A)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(g,v);if(i.URL)D(i.URL.createObjectURL(g),!0);else{if(typeof g=="string"||g.constructor===h)try{return D("data:"+c+";base64,"+i.btoa(g))}catch{return D("data:"+c+","+encodeURIComponent(g))}m=new FileReader,m.onload=function(C){D(this.result)},m.readAsDataURL(g)}return!0}})})(Qf);const uC=Qf.exports;function dC(){return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
207
|
-
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
208
|
-
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
|
|
209
|
-
<g id="Group-2">
|
|
210
|
-
<g id="volme_big-copy" transform="translate(488.000000, 340.000000)">
|
|
211
|
-
<rect id="Rectangle-18" x="11" y="4" width="2" height="12" rx="1"></rect>
|
|
212
|
-
<rect id="Rectangle-2" x="3" y="18" width="18" height="2" rx="1"></rect>
|
|
213
|
-
<rect id="Rectangle-2" transform="translate(4.000000, 17.500000) rotate(90.000000) translate(-4.000000, -17.500000) " x="1.5" y="16.5" width="5" height="2" rx="1"></rect><rect id="Rectangle-2-Copy-3" transform="translate(20.000000, 17.500000) rotate(90.000000) translate(-20.000000, -17.500000) " x="17.5" y="16.5" width="5" height="2" rx="1"></rect>
|
|
214
|
-
<path d="M9.48791171,8.26502656 L9.48791171,14.2650266 C9.48791171,14.8173113 9.04019646,15.2650266 8.48791171,15.2650266 C7.93562696,15.2650266 7.48791171,14.8173113 7.48791171,14.2650266 L7.48791171,7.26502656 C7.48791171,6.71274181 7.93562696,6.26502656 8.48791171,6.26502656 L15.4879117,6.26502656 C16.0401965,6.26502656 16.4879117,6.71274181 16.4879117,7.26502656 C16.4879117,7.81731131 16.0401965,8.26502656 15.4879117,8.26502656 L9.48791171,8.26502656 Z" id="Combined-Shape" transform="translate(11.987912, 10.765027) scale(1, -1) rotate(45.000000) translate(-11.987912, -10.765027) "></path>
|
|
215
|
-
</g>
|
|
216
|
-
</g>
|
|
217
|
-
</g>
|
|
218
|
-
</g>
|
|
219
|
-
</svg>
|
|
220
|
-
`,"image/svg+xml").firstChild}var fC=function(o){xe(n,o);var r=Be(n);function n(t){var e;return ge(this,n),e=r.call(this,t),J(W(e),"download",function(a){if(!e.isLock){e.emitUserAction(a,"download");var i=e.playerConfig.url,l="";T.typeOf(i)==="String"?l=i:T.typeOf(i)==="Array"&&i.length>0&&(l=i[0].src);var c=e.getAbsoluteURL(l);uC(c),e.isLock=!0,e.timer=window.setTimeout(function(){e.isLock=!1,window.clearTimeout(e.timer),e.timer=null},300)}}),e.timer=null,e.isLock=!1,e}return ye(n,[{key:"afterCreate",value:function(){Re(Le(n.prototype),"afterCreate",this).call(this),!this.config.disable&&(this.appendChild(".xgplayer-icon",this.icons.download),this._handler=this.hook("click",this.download,{pre:function(a){a.preventDefault(),a.stopPropagation()}}),this.bind(["click","touchend"],this._handler))}},{key:"registerIcons",value:function(){return{download:dC}}},{key:"getAbsoluteURL",value:function(e){if(!e.match(/^https?:\/\//)){var a=document.createElement("div");a.innerHTML='<a href="'.concat(e,'">x</a>'),e=a.firstChild.href}return e}},{key:"destroy",value:function(){Re(Le(n.prototype),"destroy",this).call(this),this.unbind(["click","touchend"],this.download),window.clearTimeout(this.timer),this.timer=null}},{key:"render",value:function(){if(!this.config.disable)return`<xg-icon class="xgplayer-download">
|
|
221
|
-
<div class="xgplayer-icon">
|
|
222
|
-
</div>
|
|
223
|
-
`.concat(wa(this,"DOWNLOAD_TIPS",this.playerConfig.isHideTips),`
|
|
224
|
-
</xg-icon>`)}}],[{key:"pluginName",get:function(){return"download"}},{key:"defaultConfig",get:function(){return{position:it.CONTROLS_RIGHT,index:3,disable:!0}}}]),n}(Ha),hC=function(o){xe(n,o);var r=Be(n);function n(){return ge(this,n),r.apply(this,arguments)}return ye(n,[{key:"beforeCreate",value:function(e){typeof e.player.config.screenShot=="boolean"&&(e.config.disable=!e.player.config.screenShot)}},{key:"afterCreate",value:function(){Re(Le(n.prototype),"afterCreate",this).call(this),this.appendChild(".xgplayer-icon",this.icons.screenshotIcon);var e=this.config;this.initSize=function(a){e.fitVideo&&(e.width=a.vWidth,e.height=a.vHeight)},this.once(ga,this.initSize)}},{key:"onPluginsReady",value:function(){this.show(),this.onClickBtn=this.onClickBtn.bind(this),this.bind(["click","touchend"],this.onClickBtn)}},{key:"saveScreenShot",value:function(e,a){var i=document.createElement("a");i.href=e,i.download=a;var l;try{typeof MouseEvent<"u"?l=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}):(l=document.createEvent("MouseEvents"),l.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null))}catch(c){console.error("MouseEvent unsupported",c)}l&&i.dispatchEvent(l)}},{key:"createCanvas",value:function(e,a){var i=document.createElement("canvas"),l=i.getContext("2d");this.canvasCtx=l,this.canvas=i,i.width=e||this.config.width,i.height=a||this.config.height,l.imageSmoothingEnabled=!0,l.imageSmoothingEnabled&&(l.imageSmoothingQuality="high")}},{key:"onClickBtn",value:function(e){var a=this;e.preventDefault(),e.stopPropagation(),this.emitUserAction(e,"shot");var i=this.config;this.shot(i.width,i.height).then(function(l){a.emit(cf,l),i.saveImg&&a.saveScreenShot(l,i.name+i.format)})}},{key:"shot",value:function(e,a){var i=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{quality:.92,type:"image/png"},c=this.config,u=this.player,d=l.quality||c.quality,f=l.type||c.type;return new Promise(function(h,p){var v=null,g;if(u.media.canvas)v=u.media.canvas;else{i.canvas?(i.canvas.width=e||c.width,i.canvas.height=a||c.height):i.createCanvas(e,a),v=i.canvas,g=i.canvasCtx;var m=u.media.videoWidth/u.media.videoHeight,_=v.width/v.height,b=0,y=0,w=u.media.videoWidth,S=u.media.videoHeight,D,C,B,A;m>_?(B=v.width,A=v.width/m,D=0,C=Math.round((v.height-A)/2)):m===_?(B=v.width,A=v.height,D=0,C=0):m<_&&(B=v.height*m,A=v.height,D=Math.round((v.width-B)/2),C=0),g.drawImage(u.media,b,y,w,S,D,C,B,A)}var L=v.toDataURL(f,d).replace(f,"image/octet-stream");L=L.replace(/^data:image\/[^;]+/,"data:application/octet-stream"),h(L)})}},{key:"registerIcons",value:function(){return{screenshotIcon:null}}},{key:"destroy",value:function(){Re(Le(n.prototype),"destroy",this).call(this),this.unbind(["click","touchend"],this.onClickBtn),this.off(ga,this.initSize)}},{key:"render",value:function(){if(!this.config.disable){var e=this.icons.screenshotIcon?"xgplayer-icon":"xgplayer-icon btn-text",a="SCREENSHOT";return`
|
|
225
|
-
<xg-icon class="xgplayer-shot">
|
|
226
|
-
<div class="`.concat(e,`">
|
|
227
|
-
`).concat(this.icons.screenshotIcon?"":'<span lang-key="'.concat(this.i18nKeys[a],'">').concat(this.i18n[a],"</span>"),`
|
|
228
|
-
</div>
|
|
229
|
-
</xg-icon>`)}}}],[{key:"pluginName",get:function(){return"screenShot"}},{key:"defaultConfig",get:function(){return{position:it.CONTROLS_RIGHT,index:5,quality:.92,type:"image/png",format:".png",width:600,height:337,saveImg:!0,fitVideo:!0,disable:!1,name:"screenshot"}}}]),n}(Ha),pC=function(){function o(r){ge(this,o),this.config=r.config,this.parent=r.root,this.root=T.createDom("ul","",{},"xg-options-list xg-list-slide-scroll ".concat(this.config.className)),r.root.appendChild(this.root);var n=this.config.maxHeight;n&&this.setStyle({maxHeight:n}),this.onItemClick=this.onItemClick.bind(this),this.renderItemList();var t=this.config.domEventType==="touch"?"touchend":"click";this._delegates=nt.delegate.call(this,this.root,"li",t,this.onItemClick)}return ye(o,[{key:"renderItemList",value:function(n){var t=this,e=this.config,a=this.root;n?e.data=n:n=e.data,e.style&&Object.keys(e.style).map(function(i){a.style[i]=e[i]}),n.length>0&&(this.attrKeys=Object.keys(n[0])),this.root.innerHTML="",n.map(function(i,l){var c=i.selected?"option-item selected":"option-item";i["data-index"]=l,t.root.appendChild(T.createDom("li","<span>".concat(i.showText,"</span>"),i,c))})}},{key:"onItemClick",value:function(n){n.delegateTarget||(n.delegateTarget=n.target);var t=n.delegateTarget;if(t&&T.hasClass(t,"selected"))return!1;var e=typeof this.config.onItemClick=="function"?this.config.onItemClick:null,a=this.root.querySelector(".selected");T.addClass(t,"selected"),a&&T.removeClass(a,"selected"),e(n,{from:a?this.getAttrObj(a,this.attrKeys):null,to:this.getAttrObj(t,this.attrKeys)})}},{key:"getAttrObj",value:function(n,t){if(!n||!t)return{};var e={};t.map(function(i){e[i]=n.getAttribute(i)});var a=n.getAttribute("data-index");return a&&(e.index=Number(a)),e}},{key:"show",value:function(){T.removeClass(this.root,"hide"),T.addClass(this.root,"active")}},{key:"hide",value:function(){T.removeClass(this.root,"active"),T.addClass(this.root,"hide")}},{key:"setStyle",value:function(n){var t=this;Object.keys(n).forEach(function(e){t.root.style[e]=n[e]})}},{key:"destroy",value:function(){this._delegates&&(this._delegates.map(function(n){n.destroy&&n.destroy()}),this._delegates=null),this.root.innerHTML=null,this.parent.removeChild(this.root),this.root=null}}]),o}(),Kn={SIDE:"side",MIDDLE:"middle",DEFAULT:"default"},ho={CLICK:"click",HOVER:"hover"};function vC(o,r){return o===Kn.SIDE?r===it.CONTROLS_LEFT?"xg-side-list xg-left-side":"xg-side-list xg-right-side":""}var za=Ge.device==="mobile",Ci=function(o){xe(n,o);var r=Be(n);function n(t){var e;return ge(this,n),e=r.call(this,t),J(W(e),"onEnter",function(a){a.stopPropagation(),e.emit("icon_mouseenter",{pluginName:e.pluginName}),e.switchActiveState(a)}),J(W(e),"switchActiveState",function(a){a.stopPropagation();var i=e.config.toggleMode;i===ho.CLICK?e.toggle(!e.isActive):e.toggle(!0)}),J(W(e),"onLeave",function(a){a.stopPropagation(),e.emit("icon_mouseleave",{pluginName:e.pluginName}),e.config.listType!==Kn.SIDE&&e.isActive&&e.toggle(!1)}),J(W(e),"onListEnter",function(a){e.enterType=2}),J(W(e),"onListLeave",function(a){e.enterType=0,e.isActive&&e.toggle(!1)}),e.isIcons=!1,e.isActive=!1,e.curValue=null,e.curIndex=0,e}return ye(n,[{key:"updateLang",value:function(e){this.renderItemList(this.config.list,this.curIndex)}},{key:"afterCreate",value:function(){var e=this,a=this.config;this.initIcons(),za=za||this.domEventType==="touch",za&&Ge.device==="mobile"&&a.listType===Kn.DEFAULT&&(a.listType=Kn.SIDE),a.hidePortrait&&T.addClass(this.root,"portrait"),this.on([ga,ra],function(){e._resizeList()}),this.once(na,function(){a.list&&a.list.length>0&&(e.renderItemList(a.list),e.show())}),za&&this.on(sl,function(){!e.isActive||(e.optionsList&&e.optionsList.hide(),e.isActive=!1)}),za?(a.toggleMode=ho.CLICK,this.activeEvent="touchend"):this.activeEvent=a.toggleMode===ho.CLICK?"click":"mouseenter",a.toggleMode===ho.CLICK?this.bind(this.activeEvent,this.switchActiveState):(this.bind(this.activeEvent,this.onEnter),this.bind("mouseleave",this.onLeave)),this.isIcons&&this.bind("click",this.onIconClick)}},{key:"initIcons",value:function(){var e=this,a=this.icons,i=Object.keys(a),l=!1;i.length>0&&(i.forEach(function(c){e.appendChild(".xgplayer-icon",a[c]),!l&&(l=a[c])}),this.isIcons=l),!l&&(this.appendChild(".xgplayer-icon",T.createDom("span","",{},"icon-text")),T.addClass(this.find(".xgplayer-icon"),"btn-text"))}},{key:"show",value:function(e){!this.config.list||this.config.list.length<2||T.addClass(this.root,"show")}},{key:"hide",value:function(){T.removeClass(this.root,"show")}},{key:"getTextByLang",value:function(e,a,i){if(e===void 0)return"";var l=this.config.list;!i&&(i=this.player.lang),a=!a||T.isUndefined(e[a])?"text":a,typeof e=="number"&&(e=l[e]);try{return qt(e[a])==="object"?e[a][i]||e[a].en:e[a]}catch(c){return console.warn(c),""}}},{key:"toggle",value:function(e){if(!(e===this.isActive||this.config.disable)){var a=this.player.controls,i=this.config.listType;e?(i===Kn.SIDE?a.blur():a.focus(),this.optionsList&&this.optionsList.show()):(i===Kn.SIDE?a.focus():a.focusAwhile(),this.optionsList&&this.optionsList.hide()),this.isActive=e}}},{key:"onItemClick",value:function(e,a){e.stopPropagation();var i=this.config,l=i.listType,c=i.list;this.curIndex=a.to.index,this.curItem=c[this.curIndex],this.changeCurrentText();var u=this.config.isItemClickHide;(u||za||l===Kn.SIDE)&&this.toggle(!1)}},{key:"onIconClick",value:function(e){}},{key:"changeCurrentText",value:function(){if(!this.isIcons){var e=this.config.list,a=this.curIndex<e.length?this.curIndex:0,i=e[a];!i||(this.find(".icon-text").innerHTML=this.getTextByLang(i,"iconText"))}}},{key:"renderItemList",value:function(e,a){var i=this,l=this.config,c=this.optionsList,u=this.player;if(typeof a=="number"&&(this.curIndex=a,this.curItem=l.list[a]),c){c.renderItemList(e),this.changeCurrentText();return}var d={config:{data:e||[],className:vC(l.listType,l.position),onItemClick:function(g,m){i.onItemClick(g,m)},domEventType:za?"touch":"mouse"},root:l.listType===Kn.SIDE?u.innerContainer||u.root:this.root};if(this.config.isShowIcon){var f=this.player.root.getBoundingClientRect(),h=f.height,p=l.listType===Kn.MIDDLE?h-50:h;p&&l.heightLimit&&(d.config.maxHeight="".concat(p,"px")),this.optionsList=new pC(d),this.changeCurrentText(),this.show()}this._resizeList()}},{key:"_resizeList",value:function(){if(!!this.config.heightLimit){var e=this.player.root.getBoundingClientRect(),a=e.height,i=this.config.listType===Kn.MIDDLE?a-50:a;this.optionsList&&this.optionsList.setStyle({maxHeight:"".concat(i,"px")})}}},{key:"destroy",value:function(){var e=this.config;e.toggleMode===ho.CLICK?this.unbind(this.activeEvent,this.switchActiveState):(this.unbind(this.activeEvent,this.onEnter),this.unbind("mouseleave",this.onLeave)),this.isIcons&&this.unbind("click",this.onIconClick),this.optionsList&&(this.optionsList.destroy(),this.optionsList=null)}},{key:"render",value:function(){if(!!this.config.isShowIcon)return'<xg-icon class="xg-options-icon '.concat(this.config.className||"",`">
|
|
230
|
-
<div class="xgplayer-icon">
|
|
231
|
-
</div>
|
|
232
|
-
</xg-icon>`)}}],[{key:"pluginName",get:function(){return"optionsIcon"}},{key:"defaultConfig",get:function(){return{position:it.CONTROLS_RIGHT,index:100,list:[],listType:"default",listStyle:{},hidePortrait:!0,isShowIcon:!1,isItemClickHide:!0,toggleMode:ho.HOVER,heightLimit:!0}}}]),n}(nt),mC=function(o){xe(n,o);var r=Be(n);function n(t){var e;return ge(this,n),e=r.call(this,t),e.curTime=0,e.isPaused=!0,e}return ye(n,[{key:"beforeCreate",value:function(e){var a=e.config.list;Array.isArray(a)&&a.length>0&&(e.config.list=a.map(function(i){return!i.text&&i.name&&(i.text=i.name),i.text||(i.text=i.definition),i}))}},{key:"afterCreate",value:function(){var e=this;Re(Le(n.prototype),"afterCreate",this).call(this),this.on("resourceReady",function(a){e.changeDefinitionList(a)}),this.on(ul,function(a){e.renderItemList(e.config.list,a.to)}),this.player.definitionList.length<2&&this.hide()}},{key:"show",value:function(e){!this.config.list||this.config.list.length<2||T.addClass(this.root,"show")}},{key:"initDefinition",value:function(){var e=this.config,a=e.list,i=e.defaultDefinition;if(a.length>0){var l=null;a.map(function(c){c.definition===i&&(l=c)}),l||(l=a[0]),this.changeDefinition(l)}}},{key:"renderItemList",value:function(){var e=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.config.list||[],i=arguments.length>1?arguments[1]:void 0,l=i&&i.definition?i.definition:this.config.defaultDefinition;i&&a.forEach(function(d){d.selected=!1});var c=0,u=a.map(function(d,f){var h=St(St({},d),{},{showText:e.getTextByLang(d)||d.definition,selected:!1});return(d.selected||d.definition&&d.definition==l)&&(h.selected=!0,c=f),h});Re(Le(n.prototype),"renderItemList",this).call(this,u,c)}},{key:"changeDefinitionList",value:function(e){!Array.isArray(e)||(this.config.list=e.map(function(a){return!a.text&&a.name&&(a.text=a.name),a.text||(a.text=a.definition),a}),this.renderItemList(),this.config.list.length<2?this.hide():this.show())}},{key:"changeDefinition",value:function(e,a){this.player.changeDefinition(e,a)}},{key:"onItemClick",value:function(e,a){var i=this.player.definitionList;Re(Le(n.prototype),"onItemClick",this).apply(this,arguments),this.emitUserAction(e,"change_definition",{from:a.from,to:a.to});for(var l=0;l<i.length;l++)a.to&&i[l].definition===a.to.definition&&(a.to.url=i[l].url),a.from&&i[l].definition===a.from.definition&&(a.from.url=i[l].url);this.player.changeDefinition(a.to,a.from)}}],[{key:"pluginName",get:function(){return"definition"}},{key:"defaultConfig",get:function(){return St(St({},Ci.defaultConfig),{},{position:it.CONTROLS_RIGHT,index:3,list:[],defaultDefinition:"",disable:!1,hidePortrait:!1,className:"xgplayer-definition",isShowIcon:!0})}}]),n}(Ci),gC=function(o){xe(n,o);var r=Be(n);function n(t){var e;return ge(this,n),e=r.call(this,t),e.curRate=1,e}return ye(n,[{key:"beforeCreate",value:function(e){var a=e.player.config.playbackRate,i=a?Array.isArray(a)?a:e.config.list:[];Array.isArray(i)&&(e.config.list=i.map(function(l){return typeof l=="number"?l={rate:l,text:"".concat(l,"x")}:!l.text&&l.rate&&(l.text="".concat(l.rate,"x")),l}))}},{key:"afterCreate",value:function(){var e=this;Re(Le(n.prototype),"afterCreate",this).call(this),this.on(ef,function(){e.curValue!==e.player.playbackRate&&e.renderItemList()}),this.renderItemList()}},{key:"show",value:function(e){!this.config.list||this.config.list.length===0||Re(Le(n.prototype),"show",this).call(this)}},{key:"onItemClick",value:function(e,a){Re(Le(n.prototype),"onItemClick",this).call(this,e,a);var i=e.delegateTarget,l=Number(i.getAttribute("rate"));if(!l||l===this.curValue)return!1;var c={playbackRate:{from:this.player.playbackRate,to:l}};this.emitUserAction(e,"change_rate",{props:c}),this.curValue=l,this.player.playbackRate=l}},{key:"renderItemList",value:function(){var e=this,a=this.player.playbackRate||1;this.curValue=a;var i=-1,l=this.config.list.map(function(c,u){var d={rate:c.rate};return d.rate===a&&(d.selected=!0,i=u),d.showText=e.getTextByLang(c),d});Re(Le(n.prototype),"renderItemList",this).call(this,l,i)}},{key:"changeCurrentText",value:function(){if(!this.isIcons){var e=this.config.list,a=this.curIndex<e.length?this.curIndex:0,i=e[a],l="";!i||this.curIndex<0?l="".concat(this.player.playbackRate,"x"):l=this.getTextByLang(i,"iconText"),this.find(".icon-text").innerHTML=l}}},{key:"destroy",value:function(){Re(Le(n.prototype),"destroy",this).call(this)}}],[{key:"pluginName",get:function(){return"playbackRate"}},{key:"defaultConfig",get:function(){return St(St({},Ci.defaultConfig),{},{position:it.CONTROLS_RIGHT,index:4,list:[2,1.5,1,.75,.5],className:"xgplayer-playbackrate",isShowIcon:!0,hidePortrait:!1})}}]),n}(Ci),yC=function(o){xe(n,o);var r=Be(n);function n(){return ge(this,n),r.apply(this,arguments)}return ye(n,[{key:"afterCreate",value:function(){var e=this;this.clickHandler=this.hook("errorRetry",this.errorRetry,{pre:function(i){i.preventDefault(),i.stopPropagation()}}),this.onError=this.hook("showError",this.handleError),this.bind(".xgplayer-error-refresh","click",this.clickHandler),this.on(so,function(a){e.onError(a)})}},{key:"errorRetry",value:function(e){this.emitUserAction(e,"error_retry",{}),this.player.retry()}},{key:"handleError",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=this.player,i=e.errorType,l=a.errorNote?this.i18n[a.errorNote]:"";if(!l)switch(i){case"decoder":l=this.i18n.MEDIA_ERR_DECODE;break;case"network":l=this.i18n.MEDIA_ERR_NETWORK;break;default:l=this.i18n.MEDIA_ERR_SRC_NOT_SUPPORTED}this.find(".xgplayer-error-text").innerHTML=l,this.find(".xgplayer-error-tips").innerHTML="".concat(this.i18n.REFRESH_TIPS,'<span class="xgplayer-error-refresh">').concat(this.i18n.REFRESH,"</span>")}},{key:"destroy",value:function(){this.unbind(".xgplayer-error-refresh","click",this.clickHandler)}},{key:"render",value:function(){return`<xg-error class="xgplayer-error">
|
|
233
|
-
<div class="xgplayer-errornote">
|
|
234
|
-
<span class="xgplayer-error-text"></span>
|
|
235
|
-
<span class="xgplayer-error-tips"><em class="xgplayer-error-refresh"></em></span>
|
|
236
|
-
</div>
|
|
237
|
-
</xg-error>`}}],[{key:"pluginName",get:function(){return"error"}}]),n}(nt),_C=function(o){xe(n,o);var r=Be(n);function n(){return ge(this,n),r.apply(this,arguments)}return ye(n,[{key:"afterCreate",value:function(){var e=this;this.intervalId=0,this.customConfig=null,this.bind(".highlight",["click","touchend"],function(a){(e.config.onClick||e.customOnClick)&&(a.preventDefault(),a.stopPropagation(),e.customOnClick?e.customOnClick(a):e.config.onClick(a))}),this.player.showPrompt=function(){e.showPrompt.apply(e,arguments)},this.player.hidePrompt=function(){e.hide()}}},{key:"setStyle",value:function(e){var a=this;Object.keys(e).map(function(i){a.root.style[i]=e[i]})}},{key:"showPrompt",value:function(e){var a=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};if(!!e){this.customOnClick=l;var c=this.config.interval;this.intervalId&&(clearTimeout(this.intervalId),this.intervalId=null),T.addClass(this.root,"show"),i.mode==="arrow"&&T.addClass(this.root,"arrow"),typeof e=="string"?this.find(".xgplayer-prompt-detail").innerHTML=e:this.find(".xgplayer-prompt-detail").innerHTML="".concat(e.text||"")+"".concat(e.highlight?'<i class="highlight">'.concat(e.highlight,"</i>"):""),i.style&&this.setStyle(i.style);var u=typeof i.autoHide=="boolean"?i.autoHide:this.config.autoHide;if(u){var d=i.interval||c;this.intervalId=setTimeout(function(){a.hide()},d)}}}},{key:"hide",value:function(){T.removeClass(this.root,"show"),T.removeClass(this.root,"arrow"),this.root.removeAttribute("style"),this.customOnClick=null}},{key:"render",value:function(){return'<xg-prompt class="xgplayer-prompt '.concat(ie.CONTROLS_FOLLOW,`">
|
|
238
|
-
<span class="xgplayer-prompt-detail"></span>
|
|
239
|
-
</xg-prompt>`)}}],[{key:"pluginName",get:function(){return"prompt"}},{key:"defaultConfig",get:function(){return{interval:3e3,style:{},mode:"arrow",autoHide:!0,detail:{text:"",highlight:""},onClick:function(){}}}}]),n}(nt),Zf={time:0,text:"",id:1,duration:1,color:"#fff",style:{},width:6,height:6};function qf(o){Object.keys(Zf).map(function(r){o[r]===void 0&&(o[r]=Zf[r])})}var $f={_updateDotDom:function(r,n){if(!!n){var t=this.calcuPosition(r.time,r.duration),e=r.style||{};e.left="".concat(t.left,"%"),e.width="".concat(t.width,"%"),n.setAttribute("data-text",r.text),n.setAttribute("data-time",r.time),t.isMini?T.addClass(n,"mini"):T.removeClass(n,"mini"),Object.keys(e).map(function(a){n.style[a]=e[a]})}},initDots:function(){var r=this;this._ispots.map(function(n){r.createDot(n,!1)}),this.ispotsInit=!0},createDot:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=this.player.plugins.progress;if(!!t&&(n&&(qf(r),this._ispots.push(r)),!(!this.ispotsInit&&n))){var e=this.calcuPosition(r.time,r.duration),a=r.style||{};a.left="".concat(e.left,"%"),a.width="".concat(e.width,"%");var i="xgspot_".concat(r.id," xgplayer-spot");e.isMini&&(i+=" mini");var l=r.template?'<div class="xgplayer-spot-pop">'.concat(r.template,"</div>"):"",c=T.createDom("xg-spot",l,{"data-text":r.text,"data-time":r.time,"data-id":r.id},i);Object.keys(a).map(function(u){c.style[u]=a[u]}),t.outer&&t.outer.appendChild(c),this.positionDot(c,r.id)}},findDot:function(r){if(!!this.player.plugins.progress){var n=this._ispots.filter(function(t,e){return t.id===r});return n.length>0?n[0]:null}},updateDot:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=this.player.plugins.progress;if(!!t){var e=this.findDot(r.id);if(e&&Object.keys(r).map(function(i){e[i]=r[i]}),!!this.ispotsInit){var a=t.find('xg-spot[data-id="'.concat(r.id,'"]'));!a||(this._updateDotDom(r,a),n&&this.showDot(r.id))}}},deleteDot:function(r){var n=this._ispots,t=this.player.plugins.progress;if(!!t){for(var e=[],a=0;a<n.length;a++)n[a].id===r&&e.push(a);for(var i=e.length,l=i-1;l>=0;l--)if(n.splice(e[l],1),this.ispotsInit){var c=t.find('xg-spot[data-id="'.concat(r,'"]'));c&&c.parentElement.removeChild(c)}}},deleteAllDots:function(){var r=this.player.plugins.progress;if(!!r){if(!this.ispotsInit){this._ispots=[];return}for(var n=r.root.getElementsByTagName("xg-spot"),t=n.length-1;t>=0;t--)r.outer.removeChild(n[t]);this._ispots=[]}},updateAllDots:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=this.player.plugins.progress;if(!!t){if(!this.ispotsInit){this._ispots=n;return}this._ispots=[];var e=t.root.getElementsByTagName("xg-spot"),a=e.length;if(a>n.length)for(var i=a-1;i>n.length-1;i--)t.outer.removeChild(e[i]);n.forEach(function(l,c){c<a?(e[c].setAttribute("data-id","".concat(l.id)),r._ispots.push(l),r.updateDot(l)):r.createDot(l)})}},positionDots:function(){var r=this,n=this._ispots,t=this.playerSize,e=this.player.sizeInfo,a=this.player.plugins.progress;!a||e.width===t.width||(t.width=e.width,t.left=e.left,n.forEach(function(i){var l=a.find('xg-spot[data-id="'.concat(i.id,'"]'));l&&r.positionDot(l,i.id)}))},positionDot:function(r,n){var t=T.findDom(r,".xgplayer-spot-pop");if(!!t){var e=this.playerSize,a=r.getBoundingClientRect(),i=t.getBoundingClientRect(),l=a.left-e.left,c=e.width-l-a.width/2;if(l<i.width/2||e.width<i.width){var u=i.width/2-l;t.style.left="".concat(u,"px")}else if(c<i.width/2){var d=c-i.width/2+a.width/2;t.style.left="".concat(d,"px")}else t.style.left="50%"}},updateDuration:function(){var r=this,n=this.player.plugins.progress;if(!!n){var t=this._ispots;t.forEach(function(e){var a=n.find('xg-spot[data-id="'.concat(e.id,'"]'));r._updateDotDom(e,a)})}},getAllDotsDom:function(){var r=this.player.plugins.progress;if(!r)return[];var n=r.root.getElementsByTagName("xg-spot");return n},getDotDom:function(r){var n=this.player.plugins.progress;if(!!n)return n.find('xg-spot[data-id="'.concat(r,'"]'))}};function wC(o){var r=o.config,n=o.player;Object.keys($f).map(function(e){o[e]=$f[e].bind(o)});var t=n.config.progressDot||r.ispots||[];o._ispots=t.map(function(e){return qf(e),e}),o.ispotsInit=!1,o.playerSize={left:n.sizeInfo.left,width:n.sizeInfo.width},o.on(aa,function(){o.ispotsInit?o.updateDuration():o.initDots()}),o.on(ga,function(){o.positionDots()})}var po={dragmove:"onProgressMove",dragstart:"onProgressDragStart",dragend:"onProgressDragEnd",click:"onProgressClick",mouseover:"onProgressMouseOver",mouseenter:"onProgressMouseOver"},bC=function(o){xe(n,o);var r=Be(n);function n(t){var e;return ge(this,n),e=r.call(this,t),J(W(e),"onMousemove",function(a){if(!e.config.disable){if(T.hasClass(a.target,"xg-spot-content")&&e.config.isHideThumbnailHover){e.player.plugins.progress.onMouseLeave(a);return}(e._state.f||T.hasClass(a.target,"xg-spot-content"))&&(T.event(a),a.stopPropagation())}}),J(W(e),"onMousedown",function(a){e.config.disable||(e._state.f||T.hasClass(a.target,"xg-spot-content"))&&(T.event(a),a.stopPropagation())}),J(W(e),"onMouseup",function(a){if(!!e.isDrag){var i=e.player.plugins.progress;i&&i.pos&&(i.onMouseUp(a),!i.pos.isEnter&&i.onMouseLeave(a))}}),J(W(e),"onDotMouseLeave",function(a){if(!e.config.disable){e._curDot.removeEventListener("mouseleave",e.onDotMouseLeave),e.blurDot(a.target),e._curDot=null;var i=e.player.plugins.progress;i&&i.enableBlur(),e.show()}}),J(W(e),"onProgressMouseOver",function(a,i){if(!e.config.disable&&T.hasClass(i.target,"xgplayer-spot")&&!e._curDot){e._curDot=i.target,e.focusDot(i.target),e._curDot.children.length>0&&e.hide();var l=e.player.plugins.progress;l&&l.disableBlur(),e._curDot.addEventListener("mouseleave",e.onDotMouseLeave)}}),e._ispots=[],e.videoPreview=null,e.videothumbnail=null,e.thumbnail=null,e.timeStr="",e._state={now:0,f:!1},e}return ye(n,[{key:"beforeCreate",value:function(e){var a=e.player.plugins.progress;a&&(e.root=a.root)}},{key:"afterCreate",value:function(){var e=this;this._curDot=null,this.handlerSpotClick=this.hook("spotClick",function(a,i){i.seekTime&&e.player.seek(i.seekTime)}),this.transformTimeHook=this.hook("transformTime",function(a){e.setTimeContent(T.format(a))}),wC(this),this.on(aa,function(){e.show()}),this.config.disable&&this.disable(),this.extTextRoot=this.find(".xg-spot-ext-text")}},{key:"setConfig",value:function(e){var a=this;!e||Object.keys(e).map(function(i){a.config[i]=e[i]})}},{key:"onPluginsReady",value:function(){var e=this.player;!e.plugins.progress||(this.previewLine=this.find(".xg-spot-line"),this.timePoint=this.find(".xgplayer-progress-point"),this.timeText=this.find(".xg-spot-time"),this.tipText=this.find(".spot-inner-text"),this._hasThumnail=!1,this.registerThumbnail(),this.bindEvents())}},{key:"bindEvents",value:function(){var e=this,a=this.player.plugins.progress;if(!!a&&(Object.keys(po).map(function(l){e[po[l]]=e[po[l]].bind(e),a.addCallBack(l,e[po[l]])}),Ge.device!=="mobile")){this.bind(".xg-spot-info","mousemove",this.onMousemove),this.bind(".xg-spot-info","mousedown",this.onMousedown),this.bind(".xg-spot-info","mouseup",this.onMouseup);var i=this.hook("previewClick",function(){});this.handlerPreviewClick=function(l){l.stopPropagation(),i(parseInt(e._state.now*1e3,10)/1e3,l),a&&a.onMouseUp(l)},this.bind(".xg-spot-content","mouseup",this.handlerPreviewClick)}}},{key:"onProgressMove",value:function(e,a){this.config.disable||!this.player.duration||this.updatePosition(e.offset,e.width,e.currentTime,e.e)}},{key:"onProgressDragStart",value:function(e){this.config.disable||!this.player.duration||(this.isDrag=!0,this.videoPreview&&T.addClass(this.videoPreview,"show"))}},{key:"onProgressDragEnd",value:function(e){this.config.disable||!this.player.duration||(this.isDrag=!1,this.videoPreview&&T.removeClass(this.videoPreview,"show"))}},{key:"onProgressClick",value:function(e,a){this.config.disable||T.hasClass(a.target,"xgplayer-spot")&&(a.stopPropagation(),a.preventDefault(),["time","id","text"].map(function(i){e[i]=a.target.getAttribute("data-".concat(i))}),e.time&&(e.time=Number(e.time)),this.handlerSpotClick(a,e))}},{key:"updateLinePos",value:function(e,a){var i=this.root,l=this.previewLine,c=this.player,u=this.config,d=c.controls.mode,f=d==="flex",h=i.getBoundingClientRect().width;if(!(!h&&this._hasThumnail)){h=this._hasThumnail&&h<u.width?u.width:h;var p=e-h/2,v;p<0&&!f?(p=0,v=e-h/2):p>a-h&&!f?(v=p-(a-h),p=a-h):v=0,v!==void 0&&(l.style.transform="translateX(".concat(v.toFixed(2),"px)")),i.style.transform="translateX(".concat(p.toFixed(2),"px) translateZ(0)")}}},{key:"updateTimeText",value:function(e){var a=this.timeText,i=this.timePoint;a.innerHTML=e,!this.thumbnail&&(i.innerHTML=e)}},{key:"updatePosition",value:function(e,a,i,l){var c=this.root,u=this.config,d=this._state;if(!!c){d.now=i,this.transformTimeHook(i);var f=this.timeStr;l&&l.target&&T.hasClass(l.target,"xgplayer-spot")?(this.showTips(l.target.getAttribute("data-text"),!1,f),this.focusDot(l.target),d.f=!0,u.isFocusDots&&d.f&&(d.now=parseInt(l.target.getAttribute("data-time"),10))):u.defaultText?(d.f=!1,this.showTips(u.defaultText,!0,f)):(d.f=!1,this.hideTips("")),this.updateTimeText(f),this.updateThumbnails(d.now),this.updateLinePos(e,a)}}},{key:"setTimeContent",value:function(e){this.timeStr=e}},{key:"updateThumbnails",value:function(e){var a=this.player,i=this.videoPreview,l=this.config,c=a.plugins.thumbnail;if(c&&c.usable){this.thumbnail&&c.update(this.thumbnail,e,l.width,l.height);var u=i&&i.getBoundingClientRect();this.videothumbnail&&c.update(this.videothumbnail,e,u.width,u.height)}}},{key:"registerThumbnail",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ge.device!=="mobile"){var a=this.player,i=this.config,l=a.getPlugin("thumbnail");if(l&&l.setConfig(e),!l||!l.usable||!i.isShowThumbnail){T.addClass(this.root,"short-line no-thumbnail");return}else T.removeClass(this.root,"short-line no-thumbnail");i.mode==="short"&&T.addClass(this.root,"short-line"),this._hasThumnail=!0;var c=this.find(".xg-spot-thumbnail");this.thumbnail=l.createThumbnail(c,"progress-thumbnail"),i.isShowCoverPreview&&(this.videoPreview=T.createDom("xg-video-preview","",{},"xgvideo-preview"),a.root.appendChild(this.videoPreview),this.videothumbnail=l.createThumbnail(this.videoPreview,"xgvideo-thumbnail")),this.updateThumbnails(0)}}},{key:"calcuPosition",value:function(e,a){var i=this.player.plugins.progress,l=this.player,c=i.root.getBoundingClientRect().width,u=l.duration/c*6;return e+a>l.duration&&(a=l.duration-e),e/l.duration*100,a/l.duration,{left:e/l.duration*100,width:a/l.duration*100,isMini:a<u}}},{key:"showDot",value:function(e){var a=this.findDot(e);if(a){var i=this.root.getBoundingClientRect(),l=i.width,c=a.time/this.player.duration*l;this.updatePosition(c,l,a.time)}}},{key:"focusDot",value:function(e,a){!e||(a||(a=e.getAttribute("data-id")),T.addClass(e,"active"),this._activeDotId=a)}},{key:"blurDot",value:function(e){if(!e){var a=this._activeDotId;e=this.getDotDom(a)}!e||(T.removeClass(e,"active"),this._activeDotId=null)}},{key:"showTips",value:function(e,a){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";T.addClass(this.root,"no-timepoint"),e&&(T.addClass(this.find(".xg-spot-content"),"show-text"),a&&this.config.mode==="production"?(T.addClass(this.root,"product"),this.tipText.textContent=e):(T.removeClass(this.root,"product"),this.tipText.textContent=this._hasThumnail?e:"".concat(i," ").concat(e)))}},{key:"hideTips",value:function(){T.removeClass(this.root,"no-timepoint"),this.tipText.textContent="",T.removeClass(this.find(".xg-spot-content"),"show-text"),T.removeClass(this.root,"product")}},{key:"hide",value:function(){T.addClass(this.root,"hide")}},{key:"show",value:function(e){T.removeClass(this.root,"hide")}},{key:"enable",value:function(){var e=this.config,a=this.playerConfig;this.config.disable=!1,this.show(),!this.thumbnail&&e.isShowThumbnail&&this.registerThumbnail(a.thumbnail||{})}},{key:"disable",value:function(){this.config.disable=!0,this.hide()}},{key:"destroy",value:function(){var e=this,a=this.player.plugins.progress;a&&Object.keys(po).map(function(i){a.removeCallBack(i,e[po[i]])}),this.videothumbnail=null,this.thumbnail=null,this.videoPreview&&this.player.root.removeChild(this.videoPreview),this.unbind(".xg-spot-info","mousemove",this.onMousemove),this.unbind(".xg-spot-info","mousedown",this.onMousedown),this.unbind(".xg-spot-info","mouseup",this.onMouseup),this.unbind(".xg-spot-content","mouseup",this.handlerPreviewClick)}},{key:"render",value:function(){return Ge.device==="mobile"||this.playerConfig.isMobileSimulateMode==="mobile"?"":'<div class="xg-spot-info hide '.concat(this.config.mode==="short"?"short-line":"",`">
|
|
240
|
-
<div class="xg-spot-content">
|
|
241
|
-
<div class="xg-spot-thumbnail">
|
|
242
|
-
<span class="xg-spot-time"></span>
|
|
243
|
-
</div>
|
|
244
|
-
<div class="xg-spot-text"><span class="spot-inner-text"></span></div>
|
|
245
|
-
</div>
|
|
246
|
-
<div class="xgplayer-progress-point">00:00</div>
|
|
247
|
-
<div class="xg-spot-ext-text"></div>
|
|
248
|
-
<div class="xg-spot-line"></div>
|
|
249
|
-
</div>`)}}],[{key:"pluginName",get:function(){return"progresspreview"}},{key:"defaultConfig",get:function(){return{index:1,miniWidth:6,ispots:[],defaultText:"",isFocusDots:!0,isHideThumbnailHover:!0,isShowThumbnail:!0,isShowCoverPreview:!1,mode:"",disable:!1,width:160,height:90}}}]),n}(nt),EC=function(o){xe(n,o);var r=Be(n);function n(t){var e;return ge(this,n),e=r.call(this,t),e.ratio=1,e.interval=null,e._preloadMark={},e}return ye(n,[{key:"afterCreate",value:function(){var e=this;this.usable&&this.initThumbnail(),this.on([aa],function(){var a=e.config,i=a.pic_num,l=a.interval;e.usable&&(e.interval=l>0?l:Math.round(e.player.duration*1e3/i)/1e3)})}},{key:"setConfig",value:function(e){var a=this;if(!!e){var i=Object.keys(e);i.length<1||(i.forEach(function(l){a.config[l]=e[l]}),this.usable&&this.initThumbnail())}}},{key:"usable",get:function(){var e=this.config,a=e.urls,i=e.pic_num;return a&&a.length>0&&i>0}},{key:"initThumbnail",value:function(){var e=this.config,a=e.width,i=e.height,l=e.pic_num,c=e.interval;this.ratio=a/i*100,this.interval=c||Math.round(this.player.duration/l),this._preloadMark={}}},{key:"getUrlByIndex",value:function(e){return e>=0&&e<this.config.urls.length?this.config.urls[e]:""}},{key:"preload",value:function(e){var a=this;if(!this._preloadMark[e]){var i=this.config.urls,l=i.length,c=[];e>0&&c.push(e-1),c.push(e),e>0&&e<l-1&&c.push(e+1),c.map(function(u){!a._preloadMark[u]&&u>=0&&u<l&&(a._preloadMark[u]=1,T.preloadImg(i[u],function(){a._preloadMark[u]=2}))})}}},{key:"getPosition",value:function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=this.config,c=l.pic_num,u=l.row,d=l.col,f=l.width,h=l.height;this.interval=Math.round(this.player.duration/c);var p=Math.ceil(e/this.interval);p=p>c?c:p;var v=p<u*d?0:Math.ceil(p/(u*d))-1,g=p-v*(d*u),m=g>0?Math.ceil(g/d)-1:0,_=g>0?g-m*d-1:0,b=0,y=0;if(a&&i){var w=a/i;w<f/h?(y=i,b=y*(f/h)):(b=a,y=b/(f/h))}else i?a||(y=i||h,b=y*(f/h)):(b=a||f,y=b/(f/h));var S=this.getUrlByIndex(v);return{urlIndex:v,rowIndex:m,colIndex:_,url:S,height:y,width:b,style:{backgroundImage:"url(".concat(S,")"),backgroundSize:"".concat(b*d,"px auto"),backgroundPosition:"-".concat(_*b,"px -").concat(m*y,"px"),width:"".concat(b,"px"),height:"".concat(y,"px")}}}},{key:"update",value:function(e,a){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",u=this.config,d=u.pic_num,f=u.urls;if(!(d<=0||!f||f.length===0)){var h=this.getPosition(a,i,l);this.preload(h.urlIndex),Object.keys(h.style).map(function(p){e.style[p]=h.style[p]}),Object.keys(c).map(function(p){e.style[p]=c[p]})}}},{key:"changeConfig",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.setConfig(e)}},{key:"createThumbnail",value:function(e,a){var i=T.createDom("xg-thumbnail","",{},"thumbnail ".concat(a));return e&&e.appendChild(i),i}}],[{key:"pluginName",get:function(){return"thumbnail"}},{key:"defaultConfig",get:function(){return{isShow:!1,urls:[],pic_num:0,col:0,row:0,height:90,width:160,scale:1,className:"",hidePortrait:!1}}}]),n}(nt);function Bl(o){return o?"background:".concat(o,";"):""}var CC=function(o){xe(n,o);var r=Be(n);function n(){var t;ge(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),J(W(t),"onTimeupdate",function(){var l=t.player.ended,c=W(t),u=c.offsetDuration,d=t.currentTime;d=T.adjustTimeByDuration(d,u,l),t.update({played:d},u)}),t}return ye(n,[{key:"offsetDuration",get:function(){return this.playerConfig.customDuration||this.player.offsetDuration||this.player.duration}},{key:"currentTime",get:function(){var e=this.player,a=e.offsetCurrentTime,i=e.currentTime;return a>=0?a:i}},{key:"afterCreate",value:function(){var e=this;!this.root||(this.on(wn,this.onTimeupdate),this.on(Va,function(){e.reset()}))}},{key:"reset",value:function(){this.update({played:0,cached:0},0)}},{key:"update",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{cached:0,played:0},a=arguments.length>1?arguments[1]:void 0;!a||!this.root||(e.cached&&(this.find("xg-mini-progress-cache").style.width="".concat(e.cached/a*100,"%")),e.played&&(this.find("xg-mini-progress-played").style.width="".concat(e.played/a*100,"%")))}},{key:"render",value:function(){var e=this.playerConfig,a=e.commonStyle,i=e.miniprogress;if(!!i){var l=this.config,c=l.mode,u=l.height,d={cached:Bl(a.cachedColor),played:Bl(a.playedColor),progress:Bl(a.progressColor),height:u>0&&u!==2?"height: ".concat(u,"px;"):""},f=c==="show"?"xg-mini-progress-show":"";return'<xg-mini-progress class="xg-mini-progress '.concat(f,'" style="').concat(d.progress," ").concat(d.height,`">
|
|
250
|
-
<xg-mini-progress-cache class="xg-mini-progress-cache" style="`).concat(d.cached,`"></xg-mini-progress-cache>
|
|
251
|
-
<xg-mini-progress-played class="xg-mini-progress-played" style="`).concat(d.played,`"></xg-mini-progress-played>
|
|
252
|
-
</xg-mini-progress>`)}}}],[{key:"pluginName",get:function(){return"MiniProgress"}},{key:"defaultConfig",get:function(){return{mode:"auto",height:2}}}]),n}(nt),vo={REAL_TIME:"realtime",FIRST_FRAME:"firstframe",FRAME_RATE:"framerate",POSTER:"poster"};function SC(){try{return parseInt(window.performance.now(),10)}catch{return new Date().getTime()}}function kC(){try{var o=document.createElement("canvas").getContext;return!!o}catch{return!1}}var Si=null,TC=function(o){xe(n,o);var r=Be(n);function n(){var t;ge(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),J(W(t),"onLoadedData",function(l){!t.player||(t._frameCount=t.config.startFrameCount,t.stop(),t.renderOnTimeupdate(l),t.off(wn,t.renderOnTimeupdate),t.on(wn,t.renderOnTimeupdate))}),J(W(t),"onVisibilitychange",function(l){document.visibilityState==="visible"?t._checkIfCanStart()&&t.start():document.visibilityState==="hidden"&&t.stop()}),J(W(t),"renderOnTimeupdate",function(l){if(t._frameCount>0)t.renderOnce(),t._frameCount--;else{t._isLoaded=!0,t.off(wn,t.renderOnTimeupdate);var c=t.config.startInterval;!t.player.paused&&t._checkIfCanStart()&&t.start(0,c)}}),J(W(t),"start",function(l,c){var u=t.player.video,d=SC(),f=t.checkVideoIsSupport(u);!f||!t.canvasCtx||(c||(c=t.interval),t.stop(),u.videoWidth&&u.videoHeight&&(t.videoPI=u.videoHeight>0?parseInt(u.videoWidth/u.videoHeight*100,10):0,(t.config.mode===vo.REAL_TIME||d-t.preTime>=c)&&(u&&u.videoWidth&&t.update(f,t.videoPI),t.preTime=d)),t.frameId=t._loopType==="timer"?T.setTimeout(W(t),t.start,c):T.requestAnimationFrame(t.start))}),J(W(t),"stop",function(){t.frameId&&(t._loopType==="timer"?T.clearTimeout(W(t),t.frameId):T.cancelAnimationFrame(t.frameId),t.frameId=null)}),t}return ye(n,[{key:"afterCreate",value:function(){var e=this;this.playerConfig.dynamicBg===!0&&(this.config.disable=!1),n.isSupport||(this.config.disable=!0);var a=this.config,i=a.disable,l=a.mode,c=a.frameRate;i||(this._pos={width:0,height:0,rwidth:0,rheight:0,x:0,y:0,pi:0},this.isStart=!1,this._isLoaded=!1,this.videoPI=0,this.preTime=0,this.interval=parseInt(1e3/c,10),this.canvas=null,this.canvasCtx=null,this._frameCount=0,this._loopType=this.config.mode!==vo.REAL_TIME&&this.interval>=1e3?"timer":"animation",this.once(ui,function(){!e.player||(e.init(),e.renderByPoster(),e.player.paused||e.start())}),l!==vo.POSTER&&(l!==vo.FIRST_FRAME&&(this.on(Va,function(){e.stop()}),this.on(sn,function(){var u=e.config.startInterval;e._checkIfCanStart()&&e.start(0,u)}),this.on(Ra,function(){e.stop()})),this.on(oa,this.onLoadedData),this.on(il,function(){e._isLoaded=!1,e.stop()}),document.addEventListener("visibilitychange",this.onVisibilitychange)))}},{key:"setConfig",value:function(e){var a=this;Object.keys(e).forEach(function(i){i==="root"&&e[i]!==a.config[i]?a.reRender(e[i]):i==="frameRate"?a.interval=parseInt(1e3/e[i],10):i==="disable"&&e[i]&&a.stop(),a.config[i]=e[i]})}},{key:"init",value:function(e){var a=this.player,i=this.config;this.canvasFilter=n.supportCanvasFilter();try{var l=e||i.root;l||(l=i.isInnerRender&&a.innerContainer||a.root),l.insertAdjacentHTML("afterbegin",'<div class="xgplayer-dynamic-bg" data-index="'.concat(i.index,`"><canvas>
|
|
253
|
-
</canvas><xgmask></xgmask></div>`)),this.root=l.children[0],this.canvas=this.find("canvas"),this.canvasFilter||(this.canvas.style.filter=i.filter,this.canvas.style.webkitFilter=i.filter),this.mask=this.find("xgmask"),i.addMask&&(this.mask.style.background=i.maskBg),this.canvasCtx=this.canvas.getContext("2d")}catch(c){Ze.logError("plugin:DynamicBg",c)}}},{key:"reRender",value:function(e){var a=this.config.disable;if(!(!a&&!this.root)){this.stop();var i=this.root?this.root.parentElement:null;if(i!==e&&i.removeChild(this.root),!e){this.root=null;return}this.init(e),this.renderOnce();var l=this.config.startInterval;this._checkIfCanStart()&&this.start(0,l)}}},{key:"checkVideoIsSupport",value:function(e){if(!e)return null;var a=e&&e instanceof window.HTMLVideoElement?e:e.canvas?e.canvas:e.flyVideo?e.flyVideo:null;if(a&&!(Ge.browser==="safari"&&T.isMSE(a)))return a;var i=a?a.tagName.toLowerCase():"";return i==="canvas"||i==="img"?a:null}},{key:"renderByPoster",value:function(){var e=this.playerConfig.poster;if(e){var a=T.typeOf(e)==="String"?e:T.typeOf(e.poster)==="String"?e.poster:null;this.updateImg(a)}}},{key:"_checkIfCanStart",value:function(){var e=this.config.mode;return this._isLoaded&&!this.player.paused&&e!==vo.FIRST_FRAME&&e!==vo.POSTER}},{key:"renderOnce",value:function(){var e=this.player.video;if(!(!e.videoWidth||!e.videoHeight)){this.videoPI=parseInt(e.videoWidth/e.videoHeight*100,10);var a=this.checkVideoIsSupport(e);a&&this.update(a,this.videoPI)}}},{key:"updateImg",value:function(e){var a=this;if(!!e){var i=this.canvas.getBoundingClientRect(),l=i.width,c=i.height,u=new window.Image;u.onload=function(){if(!(!a.canvas||a.frameId||a.isStart)){a.canvas.height=c,a.canvas.width=l;var d=parseInt(l/c*100,10);a.update(u,d),u=null}},u.src=e}}},{key:"update",value:function(e,a){if(!(!this.canvas||!this.canvasCtx||!a))try{var i=this._pos,l=this.config,c=this.canvas.getBoundingClientRect(),u=c.width,d=c.height;if(u!==i.width||d!==i.height||i.pi!==a){var f=parseInt(u/d*100,10);i.pi=a,i.width!==u&&(i.width=this.canvas.width=u),i.height!==d&&(i.height=this.canvas.height=d);var h=d,p=u;f<a?p=parseInt(d*a/100,10):f>a&&(h=parseInt(u*100/a,10)),i.rwidth=p*l.multiple,i.rheight=h*l.multiple,i.x=(u-i.rwidth)/2,i.y=(d-i.rheight)/2}this.canvasFilter&&(this.canvasCtx.filter=l.filter),this.canvasCtx.drawImage(e,i.x,i.y,i.rwidth,i.rheight)}catch(v){Ze.logError("plugin:DynamicBg",v)}}},{key:"destroy",value:function(){this.stop(),document.removeEventListener("visibilitychange",this.onVisibilitychange),this.canvasCtx=null,this.canvas=null}},{key:"render",value:function(){return""}}],[{key:"pluginName",get:function(){return"dynamicBg"}},{key:"defaultConfig",get:function(){return{isInnerRender:!1,disable:!0,index:-1,mode:"framerate",frameRate:10,filter:"blur(50px)",startFrameCount:2,startInterval:0,addMask:!0,multiple:1.2,maskBg:"rgba(0,0,0,0.7)"}}},{key:"isSupport",get:function(){return typeof Si=="boolean"||(Si=kC()),Si}},{key:"supportCanvasFilter",value:function(){return!(Ge.browser==="safari"||Ge.browser==="firefox")}}]),n}(nt),xC={LANG:"zh-cn",TEXT:{ERROR_TYPES:{network:{code:1,msg:"\u89C6\u9891\u4E0B\u8F7D\u9519\u8BEF"},mse:{code:2,msg:"\u6D41\u8FFD\u52A0\u9519\u8BEF"},parse:{code:3,msg:"\u89E3\u6790\u9519\u8BEF"},format:{code:4,msg:"\u683C\u5F0F\u9519\u8BEF"},decoder:{code:5,msg:"\u89E3\u7801\u9519\u8BEF"},runtime:{code:6,msg:"\u8BED\u6CD5\u9519\u8BEF"},timeout:{code:7,msg:"\u64AD\u653E\u8D85\u65F6"},other:{code:8,msg:"\u5176\u4ED6\u9519\u8BEF"}},HAVE_NOTHING:"\u6CA1\u6709\u5173\u4E8E\u97F3\u9891/\u89C6\u9891\u662F\u5426\u5C31\u7EEA\u7684\u4FE1\u606F",HAVE_METADATA:"\u97F3\u9891/\u89C6\u9891\u7684\u5143\u6570\u636E\u5DF2\u5C31\u7EEA",HAVE_CURRENT_DATA:"\u5173\u4E8E\u5F53\u524D\u64AD\u653E\u4F4D\u7F6E\u7684\u6570\u636E\u662F\u53EF\u7528\u7684\uFF0C\u4F46\u6CA1\u6709\u8DB3\u591F\u7684\u6570\u636E\u6765\u64AD\u653E\u4E0B\u4E00\u5E27/\u6BEB\u79D2",HAVE_FUTURE_DATA:"\u5F53\u524D\u53CA\u81F3\u5C11\u4E0B\u4E00\u5E27\u7684\u6570\u636E\u662F\u53EF\u7528\u7684",HAVE_ENOUGH_DATA:"\u53EF\u7528\u6570\u636E\u8DB3\u4EE5\u5F00\u59CB\u64AD\u653E",NETWORK_EMPTY:"\u97F3\u9891/\u89C6\u9891\u5C1A\u672A\u521D\u59CB\u5316",NETWORK_IDLE:"\u97F3\u9891/\u89C6\u9891\u662F\u6D3B\u52A8\u7684\u4E14\u5DF2\u9009\u53D6\u8D44\u6E90\uFF0C\u4F46\u5E76\u672A\u4F7F\u7528\u7F51\u7EDC",NETWORK_LOADING:"\u6D4F\u89C8\u5668\u6B63\u5728\u4E0B\u8F7D\u6570\u636E",NETWORK_NO_SOURCE:"\u672A\u627E\u5230\u97F3\u9891/\u89C6\u9891\u6765\u6E90",MEDIA_ERR_ABORTED:"\u53D6\u56DE\u8FC7\u7A0B\u88AB\u7528\u6237\u4E2D\u6B62",MEDIA_ERR_NETWORK:"\u7F51\u7EDC\u9519\u8BEF",MEDIA_ERR_DECODE:"\u89E3\u7801\u9519\u8BEF",MEDIA_ERR_SRC_NOT_SUPPORTED:"\u4E0D\u652F\u6301\u7684\u97F3\u9891/\u89C6\u9891\u683C\u5F0F",REPLAY:"\u91CD\u64AD",ERROR:"\u7F51\u7EDC\u8FDE\u63A5\u4F3C\u4E4E\u51FA\u73B0\u4E86\u95EE\u9898",PLAY_TIPS:"\u64AD\u653E",PAUSE_TIPS:"\u6682\u505C",PLAYNEXT_TIPS:"\u4E0B\u4E00\u96C6",DOWNLOAD_TIPS:"\u4E0B\u8F7D",ROTATE_TIPS:"\u65CB\u8F6C",RELOAD_TIPS:"\u91CD\u65B0\u8F7D\u5165",FULLSCREEN_TIPS:"\u8FDB\u5165\u5168\u5C4F",EXITFULLSCREEN_TIPS:"\u9000\u51FA\u5168\u5C4F",CSSFULLSCREEN_TIPS:"\u8FDB\u5165\u6837\u5F0F\u5168\u5C4F",EXITCSSFULLSCREEN_TIPS:"\u9000\u51FA\u6837\u5F0F\u5168\u5C4F",TEXTTRACK:"\u5B57\u5E55",PIP:"\u753B\u4E2D\u753B",SCREENSHOT:"\u622A\u56FE",LIVE:"\u6B63\u5728\u76F4\u64AD",OFF:"\u5173\u95ED",OPEN:"\u5F00\u542F",MINI_DRAG:"\u70B9\u51FB\u6309\u4F4F\u53EF\u62D6\u52A8\u89C6\u9891",MINISCREEN:"\u5C0F\u5C4F\u5E55",REFRESH_TIPS:"\u8BF7\u8BD5\u8BD5",REFRESH:"\u5237\u65B0",FORWARD:"\u5FEB\u8FDB\u4E2D",LIVE_TIP:"\u76F4\u64AD"}},ar="info",Al=mf,BC=function(o){xe(n,o);var r=Be(n);function n(){var t;ge(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),J(W(t),"_recordUserActions",function(l){var c=t._getTime(),u=Object.assign({},l,{msg:l.msg||l.action});t._stats[ar].push(St(St({type:"userAction"},c),{},{payload:u}))}),J(W(t),"_onReset",function(){t.reset()}),J(W(t),"_recordInfo",function(l){t.info(l)}),J(W(t),"_downloadStats",function(){var l=t.getStats(),c=new Blob([JSON.stringify(l)],{type:"application/json"}),u=window.URL.createObjectURL(c),d=document.createElement("a");d.style.display="none",d.href=u,d.download="player.txt",d.disabled=!1,d.click()}),t}return ye(n,[{key:"_getTime",value:function(){return{timestamp:Date.now(),timeFormat:new Date().toISOString()}}},{key:"afterCreate",value:function(){this.reset(),this.on(vi,this._recordUserActions),this.on(Al.STATS_INFO,this._recordInfo),this.on(Al.STATS_DOWNLOAD,this._downloadStats),this.on(Al.STATS_RESET,this._onReset)}},{key:"destroy",value:function(){this.offAll()}},{key:"downloadStats",value:function(){this._downloadStats()}},{key:"info",value:function(e){e.profile?this._infoProfile(e):this._info(e)}},{key:"_info",value:function(e){var a=this._getTime();this._stats[ar].push(St(St({},a),{},{payload:e}))}},{key:"_infoProfile",value:function(e){if(e&&e.startMs){var a=Date.now(),i=a-e.startMs,l=St({cat:"function",dur:i,name:e.name||e.msg,ph:"X",pid:0,tid:0,ts:e.startMs,profile:!0},e);this._info(l)}else console.warn("infoProfile need object data, include startMs")}},{key:"reset",value:function(){var e;this._stats=(e={},J(e,ar,[]),J(e,"media",{}),e)}},{key:"getStats",value:function(){for(var e=this.player,a=e.media,i=[],l=0;l<a.buffered.length;l++)i.push({start:a.buffered.start(l),end:a.buffered.end(l)});var c={currentTime:a.currentTime,readyState:a.readyState,buffered:i,paused:a.paused,ended:a.ended};return this._stats.media=c,{raw:this._stats,timestat:this._getTimeStats(),profile:this._getProfile()}}},{key:"_getTimeStats",value:function(){var e=this._stats[ar],a=e.map(function(i){var l=i.payload.data,c="";try{l instanceof Error?c=l.msg:l!==void 0&&(c=JSON.stringify(l))}catch(u){console.log("err",u)}return"[".concat(i.timeFormat,"] : ").concat(i.payload.msg," ").concat(c," ")});return a}},{key:"_getProfile",value:function(){var e={traceEvents:[]},a=this._stats[ar];return a.forEach(function(i){i.payload.profile&&e.traceEvents.push(i.payload)}),e}}],[{key:"pluginName",get:function(){return"stats"}},{key:"defaultConfig",get:function(){return{}}}]),n}(Gn),eh=function(o){xe(n,o);var r=Be(n);function n(){var t;ge(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),J(W(t),"onGapJump",function(){var l=W(t),c=l.player,u=l.config;if(c.media.readyState!==HTMLMediaElement.HAVE_NOTHING){if(c.media.seeking){if(!t.seekingEventReceived)return}else t.seekingEventReceived=!1;if(!(c.media.paused&&c.media.currentTime!==0&&t.hasPlayed)){var d=c.media.buffered,f=u.smallGapLimit||.5,h=u.gapDetectionThreshold||.3,p=c.media.currentTime,v=t._getIndex(d,p,h);if(!(v===null||v===0)){console.log("GapJump bufferRange ",d.start(v),d.end(v));var g=d.start(v)+.1,m=c.media.duration;if(!(g>m)){var _=g-p,b=_<=f;_<n.BROWSER_GAP_TOLERANCE||b&&(u.useGapJump!==!1&&(c.media.currentTime=t.isSafari?g+.1:g),t.player&&t.player.emit("detectGap"),console.log("gapJump gapIndex",v," isGapSamll:",b," currentTime:",c.media.currentTime," jumpSize:",p-c.media.currentTime),g!==.08&&c&&c.emit("log",{type:"oneevent",end_type:"gap",vid:c.config.vid,ext:{video_postion:Math.floor(g*1e3)}}))}}}}}),t}return ye(n,[{key:"afterCreate",value:function(){var e=this,a=this.config.useGapJump;a!==!1&&(this.hasPlayed=!1,this.seekingEventReceived=!1,this.isSafari=/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),this.on(qo,this.onGapJump),this.on(sn,function(){e.hasPlayed=!0}),this.on(li,function(){e.seekingEventReceived=!0}))}},{key:"_getIndex",value:function(e,a,i){if(!e||!e.length||e.length===1&&e.end(0)-e.start(0)<1e-6)return null;for(var l=this._getBuffered(e),c=null,u=0;u<l.length;u++){var d=l[u];if(d.start>a&&(u===0||l[u-1].end-a<=i)){c=u;break}}return c}},{key:"_getBuffered",value:function(e){if(!e)return[];for(var a=[],i=0;i<e.length;i++)a.push({start:e.start(i),end:e.end(i)});return a}}],[{key:"pluginName",get:function(){return"gapJump"}},{key:"defaultConfig",get:function(){return{useGapJump:!1,smallGapLimit:.5,gapDetectionThreshold:.3}}}]),n}(nt);eh.BROWSER_GAP_TOLERANCE=.001;var AC=function(o){xe(n,o);var r=Be(n);function n(){var t;ge(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),J(W(t),"onWaiting",function(){var l=W(t),c=l.config;t.jumpCnt>c.jumpCntMax||t.timer||c.useWaitingTimeoutJump===!1||(t.timer=setTimeout(t.onJump,c.waitingTime*1e3))}),J(W(t),"onJump",function(){var l=W(t),c=l.player,u=l.config;if(clearTimeout(t.timer),t.timer=null,!(t.jumpCnt>u.jumpCntMax||u.useWaitingTimeoutJump===!1)&&!(c.media.paused&&c.media.currentTime!==0&&t.hasPlayed)){t.jumpSize=u.jumpSize*(t.jumpCnt+1),t.jumpCnt===u.jumpSize&&t.jumpSize<6&&(t.jumpSize=6);var d=c.currentTime+t.jumpSize,f=c.media.duration;d>f||(t.jumpCnt++,c.currentTime=d)}}),t}return ye(n,[{key:"afterCreate",value:function(){var e=this,a=this.config,i=a.useWaitingTimeoutJump,l=a.jumpSize;i!==!1&&(this.hasPlayed=!1,this.jumpCnt=0,this.timer=null,this.jumpSize=l,this.on(qo,this.onWaiting),this.on([rl,na],function(){clearTimeout(e.timer),e.timer=null,e.jumpSize=e.config.jumpSize}),this.on(sn,function(){e.hasPlayed=!0}))}}],[{key:"pluginName",get:function(){return"waitingTimeoutJump"}},{key:"defaultConfig",get:function(){return{useWaitingTimeoutJump:!1,waitingTime:15,jumpSize:2,jumpCntMax:4}}}]),n}(nt),mo="cdn",ki=["cdn"],DC=function(o){xe(n,o);var r=Be(n);function n(){var t;ge(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),J(W(t),"getSpeed",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mo;if(!t.speedListCache||!t.speedListCache[l]||t.speedListCache[l].length<=0)return 0;var c=0;return t.speedListCache[l].map(function(u){c+=u}),Math.floor(c/t.speedListCache[l].length)}),J(W(t),"startTimer",function(){T.isMSE(t.player.video)||(t.initSpeedList(),t.cnt=0,t.timer=setTimeout(t.testSpeed,t.config.testTimeStep))}),J(W(t),"initSpeedList",function(){t.speedListCache={},ki.forEach(function(l){t.speedListCache[l]=[]})}),J(W(t),"_onRealSpeedChange",function(l){l.speed&&t.appendList(l.speed,l.type||mo)}),J(W(t),"testSpeed",function(){if(clearTimeout(t.timer),t.timer=null,!(!t.player||!t.config.openSpeed)){var l=t.config,c=l.url,u=l.loadSize,d=l.testCnt,f=l.testTimeStep,h=c+(c.indexOf("?")<0?"?testst=":"&testst=")+Date.now();if(!(t.cnt>=d)){t.cnt++;try{var p=new Date().getTime(),v=null,g=new XMLHttpRequest;t.xhr=g,g.open("GET",h);var m={},_=Math.floor(Math.random()*10);m.Range="bytes="+_+"-"+(u+_),m&&Object.keys(m).forEach(function(b){g.setRequestHeader(b,m[b])}),g.onreadystatechange=function(){if(g.readyState===4){t.xhr=null,v=new Date().getTime();var b=g.getResponseHeader("Content-Length")/1024*8,y=Math.round(b*1e3/(v-p));t.appendList(y),t.timer=setTimeout(t.testSpeed,f)}},g.send()}catch(b){console.error(b)}}}}),J(W(t),"appendList",function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mo;if(!(!t.speedListCache||!t.speedListCache[c])){var u=t.config.saveSpeedMax;t.speedListCache[c].length>=u&&t.speedListCache[c].shift(),t.speedListCache[c].push(l);var d=W(t),f=d.player;f&&(c===mo?f.realTimeSpeed=l:f[t.getSpeedName("realTime",c)]=l),t.updateSpeed(c)}}),J(W(t),"updateSpeed",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mo,c=t.getSpeed(l),u=W(t),d=u.player;if(d)if(l===mo)(!d.avgSpeed||c!==d.avgSpeed)&&(d.avgSpeed=c,d.emit(cl,{speed:c,realTimeSpeed:d.realTimeSpeed}));else{var f=t.getSpeedName("avg",l);(!d[f]||c!==d[f])&&(d[f]=c,d.emit(cl,{speed:c,realTimeSpeed:d.realTimeSpeed}))}}),t}return ye(n,[{key:"afterCreate",value:function(){var e=this.config,a=e.openSpeed,i=e.addSpeedTypeList;(i==null?void 0:i.length)>0&&ki.push.apply(ki,Rn(i)),this.initSpeedList(),this.on("real_time_speed",this._onRealSpeedChange),this.timer=null,this.cnt=0,this.xhr=null,a&&this.on([oa,$o],this.startTimer)}},{key:"getSpeedName",value:function(e,a){return e+"Speed"+a.toUpperCase()}},{key:"openSpeed",get:function(){return this.config.openSpeed},set:function(e){if(this.config.openSpeed=e,!e&&this.timer){clearTimeout(this.timer),this.timer=null;return}if(this.config.openSpeed){if(this.timer)return;this.timer=setTimeout(this.testSpeed,this.config.testTimeStep)}}},{key:"destroy",value:function(){var e=this;this.off("real_time_speed",this._onRealSpeedChange),this.off([oa,$o],this.startTimer),ki.forEach(function(a){e.speedListCache&&e.speedListCache[a]&&(e.speedListCache[a]=[])}),this.speedListCache&&(this.speedListCache={}),clearTimeout(this.timer),this.timer=null,this.xhr&&this.xhr.readyState!==4&&(this.xhr.cancel&&this.xhr.cancel(),this.xhr=null)}}],[{key:"pluginName",get:function(){return"testspeed"}},{key:"defaultConfig",get:function(){return{openSpeed:!1,testCnt:3,loadSize:200*1024,testTimeStep:3e3,url:"",saveSpeedMax:5,addSpeedTypeList:[]}}}]),n}(nt),PC=function(o){xe(n,o);var r=Be(n);function n(){return ge(this,n),r.apply(this,arguments)}return ye(n,[{key:"afterCreate",value:function(){var e=this,a=this.player,i=this.config,l=a.media||a.video;if(this.timer=null,this._lastDecodedFrames=0,this._currentStuckCount=0,this._lastCheckPoint=null,this._payload=[],!i.disabled){var c=l.getVideoPlaybackQuality;!c||(this.on(sn,function(){e._startTick()}),this.on(Ra,function(){e._stopTick()}),this.on(Na,function(){e._stopTick()}),this.on(Va,function(){e._stopTick()}))}}},{key:"_startTick",value:function(){var e=this;this._stopTick(),this._timer=setTimeout(function(){e._checkDecodeFPS(),e._startTick()},this.config.tick)}},{key:"_stopTick",value:function(){clearTimeout(this._timer),this._timer=null}},{key:"_checkBuffer",value:function(e,a){for(var i=!1,l=[],c=0;c<a.length;c++){var u=a.start(c),d=a.end(c);if(l.push({start:u,end:d}),u<=e&&e<=d-1){i=!0;break}}return{enoughBuffer:i,buffers:l}}},{key:"_checkStuck",value:function(e,a,i,l){var c=this.player.media||this.player.video,u=document.hidden,d=c.paused,f=c.readyState,h=c.currentTime,p=c.buffered;if(!(u||d||f<4)){var v=this._checkBuffer(h,p),g=v.enoughBuffer,m=v.buffers;!g||(e<=this.config.reportFrame?(this._currentStuckCount++,this._payload.push({currentTime:h,buffers:m,curDecodedFrames:e,totalVideoFrames:a,droppedVideoFrames:i,checkInterval:l}),this._currentStuckCount>=this.config.stuckCount&&(this.emit(gf,this._payload),this._reset())):this._reset())}}},{key:"_reset",value:function(){this._payload=[],this._currentStuckCount=0}},{key:"_checkDecodeFPS",value:function(){var e=this.player.media||this.player.video;if(!!e){var a=e.getVideoPlaybackQuality(),i=a.totalVideoFrames,l=a.droppedVideoFrames,c=performance.now();if(i&&this._lastCheckPoint){var u=i-this._lastDecodedFrames,d=c-this._lastCheckPoint;this._checkStuck(u,i,l,d)}this._lastDecodedFrames=i,this._lastCheckPoint=c}}},{key:"destroy",value:function(){this._stopTick()}}],[{key:"pluginName",get:function(){return"FpsDetect"}},{key:"defaultConfig",get:function(){return{disabled:!1,tick:1e3,stuckCount:3,reportFrame:0}}}]),n}(nt);co.use(xC);var OC=ye(function o(r,n){var t,e,a;ge(this,o);var i=n&&n.isMobileSimulateMode==="mobile",l=n.isLive,c=l?[]:[nC,Vf,CC,bC,Ff],u=[].concat(c,[Nf,Mf,oC,cC,mC,gC,fC,hC,Hf,sC]),d=[VE,FE,zE,tC,UE,yC,_C,EC,KE];this.plugins=[BC,NE].concat(Rn(u),d,[eh,AC]);var f=i?"mobile":Ge.device;switch(f){case"pc":(t=this.plugins).push.apply(t,[Jf,Tl,_l,DC,PC]);break;case"mobile":(e=this.plugins).push.apply(e,[qE]);break;default:(a=this.plugins).push.apply(a,[Jf,Tl,_l])}(Ge.os.isIpad||f==="pc")&&this.plugins.push(TC),Ge.os.isIpad&&this.plugins.push(Tl),this.ignores=[],this.i18n=[]}),zt=function(o){xe(n,o);var r=Be(n);function n(){return ge(this,n),r.apply(this,arguments)}return ye(n)}(bi);J(zt,"defaultPreset",OC),J(zt,"Util",T),J(zt,"Sniffer",Ge),J(zt,"Errors",Zo),J(zt,"Events",eE),J(zt,"Plugin",nt),J(zt,"BasePlugin",Gn),J(zt,"I18N",co),J(zt,"STATE_CLASS",ie),J(zt,"InstManager",Of),J(zt,"PlayIcon",Nf),J(zt,"TimeIcon",Ff),J(zt,"Progress",Vf),J(zt,"FullscreenIcon",Mf),J(zt,"CssFullscreenIcon",_l),J(zt,"VolumeIcon",Hf);function LC(o,r){var n=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(n!=null){var t,e,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(o)).next,r===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(t=a.call(n)).done)&&(l.push(t.value),l.length!==r);c=!0);}catch(d){u=!0,e=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw e}}return l}}function th(o,r){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);r&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),n.push.apply(n,t)}return n}function $e(o){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?th(Object(n),!0).forEach(function(t){z(o,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):th(Object(n)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(n,t))})}return o}function he(){he=function(){return o};var o={},r=Object.prototype,n=r.hasOwnProperty,t=Object.defineProperty||function(E,x,k){E[x]=k.value},e=typeof Symbol=="function"?Symbol:{},a=e.iterator||"@@iterator",i=e.asyncIterator||"@@asyncIterator",l=e.toStringTag||"@@toStringTag";function c(E,x,k){return Object.defineProperty(E,x,{value:k,enumerable:!0,configurable:!0,writable:!0}),E[x]}try{c({},"")}catch{c=function(x,k,O){return x[k]=O}}function u(E,x,k,O){var P=x&&x.prototype instanceof h?x:h,R=Object.create(P.prototype),N=new A(O||[]);return t(R,"_invoke",{value:S(E,k,N)}),R}function d(E,x,k){try{return{type:"normal",arg:E.call(x,k)}}catch(O){return{type:"throw",arg:O}}}o.wrap=u;var f={};function h(){}function p(){}function v(){}var g={};c(g,a,function(){return this});var m=Object.getPrototypeOf,_=m&&m(m(L([])));_&&_!==r&&n.call(_,a)&&(g=_);var b=v.prototype=h.prototype=Object.create(g);function y(E){["next","throw","return"].forEach(function(x){c(E,x,function(k){return this._invoke(x,k)})})}function w(E,x){function k(P,R,N,H){var K=d(E[P],E,R);if(K.type!=="throw"){var U=K.arg,le=U.value;return le&&typeof le=="object"&&n.call(le,"__await")?x.resolve(le.__await).then(function(ae){k("next",ae,N,H)},function(ae){k("throw",ae,N,H)}):x.resolve(le).then(function(ae){U.value=ae,N(U)},function(ae){return k("throw",ae,N,H)})}H(K.arg)}var O;t(this,"_invoke",{value:function(P,R){function N(){return new x(function(H,K){k(P,R,H,K)})}return O=O?O.then(N,N):N()}})}function S(E,x,k){var O="suspendedStart";return function(P,R){if(O==="executing")throw new Error("Generator is already running");if(O==="completed"){if(P==="throw")throw R;return I()}for(k.method=P,k.arg=R;;){var N=k.delegate;if(N){var H=D(N,k);if(H){if(H===f)continue;return H}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(O==="suspendedStart")throw O="completed",k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);O="executing";var K=d(E,x,k);if(K.type==="normal"){if(O=k.done?"completed":"suspendedYield",K.arg===f)continue;return{value:K.arg,done:k.done}}K.type==="throw"&&(O="completed",k.method="throw",k.arg=K.arg)}}}function D(E,x){var k=x.method,O=E.iterator[k];if(O===void 0)return x.delegate=null,k==="throw"&&E.iterator.return&&(x.method="return",x.arg=void 0,D(E,x),x.method==="throw")||k!=="return"&&(x.method="throw",x.arg=new TypeError("The iterator does not provide a '"+k+"' method")),f;var P=d(O,E.iterator,x.arg);if(P.type==="throw")return x.method="throw",x.arg=P.arg,x.delegate=null,f;var R=P.arg;return R?R.done?(x[E.resultName]=R.value,x.next=E.nextLoc,x.method!=="return"&&(x.method="next",x.arg=void 0),x.delegate=null,f):R:(x.method="throw",x.arg=new TypeError("iterator result is not an object"),x.delegate=null,f)}function C(E){var x={tryLoc:E[0]};1 in E&&(x.catchLoc=E[1]),2 in E&&(x.finallyLoc=E[2],x.afterLoc=E[3]),this.tryEntries.push(x)}function B(E){var x=E.completion||{};x.type="normal",delete x.arg,E.completion=x}function A(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(C,this),this.reset(!0)}function L(E){if(E){var x=E[a];if(x)return x.call(E);if(typeof E.next=="function")return E;if(!isNaN(E.length)){var k=-1,O=function P(){for(;++k<E.length;)if(n.call(E,k))return P.value=E[k],P.done=!1,P;return P.value=void 0,P.done=!0,P};return O.next=O}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=v,t(b,"constructor",{value:v,configurable:!0}),t(v,"constructor",{value:p,configurable:!0}),p.displayName=c(v,l,"GeneratorFunction"),o.isGeneratorFunction=function(E){var x=typeof E=="function"&&E.constructor;return!!x&&(x===p||(x.displayName||x.name)==="GeneratorFunction")},o.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,v):(E.__proto__=v,c(E,l,"GeneratorFunction")),E.prototype=Object.create(b),E},o.awrap=function(E){return{__await:E}},y(w.prototype),c(w.prototype,i,function(){return this}),o.AsyncIterator=w,o.async=function(E,x,k,O,P){P===void 0&&(P=Promise);var R=new w(u(E,x,k,O),P);return o.isGeneratorFunction(x)?R:R.next().then(function(N){return N.done?N.value:R.next()})},y(b),c(b,l,"Generator"),c(b,a,function(){return this}),c(b,"toString",function(){return"[object Generator]"}),o.keys=function(E){var x=Object(E),k=[];for(var O in x)k.push(O);return k.reverse(),function P(){for(;k.length;){var R=k.pop();if(R in x)return P.value=R,P.done=!1,P}return P.done=!0,P}},o.values=L,A.prototype={constructor:A,reset:function(E){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(B),!E)for(var x in this)x.charAt(0)==="t"&&n.call(this,x)&&!isNaN(+x.slice(1))&&(this[x]=void 0)},stop:function(){this.done=!0;var E=this.tryEntries[0].completion;if(E.type==="throw")throw E.arg;return this.rval},dispatchException:function(E){if(this.done)throw E;var x=this;function k(K,U){return R.type="throw",R.arg=E,x.next=K,U&&(x.method="next",x.arg=void 0),!!U}for(var O=this.tryEntries.length-1;O>=0;--O){var P=this.tryEntries[O],R=P.completion;if(P.tryLoc==="root")return k("end");if(P.tryLoc<=this.prev){var N=n.call(P,"catchLoc"),H=n.call(P,"finallyLoc");if(N&&H){if(this.prev<P.catchLoc)return k(P.catchLoc,!0);if(this.prev<P.finallyLoc)return k(P.finallyLoc)}else if(N){if(this.prev<P.catchLoc)return k(P.catchLoc,!0)}else{if(!H)throw new Error("try statement without catch or finally");if(this.prev<P.finallyLoc)return k(P.finallyLoc)}}}},abrupt:function(E,x){for(var k=this.tryEntries.length-1;k>=0;--k){var O=this.tryEntries[k];if(O.tryLoc<=this.prev&&n.call(O,"finallyLoc")&&this.prev<O.finallyLoc){var P=O;break}}P&&(E==="break"||E==="continue")&&P.tryLoc<=x&&x<=P.finallyLoc&&(P=null);var R=P?P.completion:{};return R.type=E,R.arg=x,P?(this.method="next",this.next=P.finallyLoc,f):this.complete(R)},complete:function(E,x){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"&&x&&(this.next=x),f},finish:function(E){for(var x=this.tryEntries.length-1;x>=0;--x){var k=this.tryEntries[x];if(k.finallyLoc===E)return this.complete(k.completion,k.afterLoc),B(k),f}},catch:function(E){for(var x=this.tryEntries.length-1;x>=0;--x){var k=this.tryEntries[x];if(k.tryLoc===E){var O=k.completion;if(O.type==="throw"){var P=O.arg;B(k)}return P}}throw new Error("illegal catch attempt")},delegateYield:function(E,x,k){return this.delegate={iterator:L(E),resultName:x,nextLoc:k},this.method==="next"&&(this.arg=void 0),f}},o}function or(o){return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},or(o)}function nh(o,r,n,t,e,a,i){try{var l=o[a](i),c=l.value}catch(u){n(u);return}l.done?r(c):Promise.resolve(c).then(t,e)}function qe(o){return function(){var r=this,n=arguments;return new Promise(function(t,e){var a=o.apply(r,n);function i(c){nh(a,t,e,i,l,"next",c)}function l(c){nh(a,t,e,i,l,"throw",c)}i(void 0)})}}function At(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function ah(o,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(o,rh(t.key),t)}}function Dt(o,r,n){return r&&ah(o.prototype,r),n&&ah(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}function z(o,r,n){return r=rh(r),r in o?Object.defineProperty(o,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[r]=n,o}function Ti(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),r&&Dl(o,r)}function xi(o){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xi(o)}function Dl(o,r){return Dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Dl(o,r)}function IC(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function MC(o,r){if(o==null)return{};var n={},t=Object.keys(o),e,a;for(a=0;a<t.length;a++)e=t[a],!(r.indexOf(e)>=0)&&(n[e]=o[e]);return n}function Pl(o,r){if(o==null)return{};var n=MC(o,r),t,e;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(o);for(e=0;e<a.length;e++)t=a[e],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(o,t)||(n[t]=o[t]))}return n}function Ve(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function NC(o,r){if(r&&(typeof r=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ve(o)}function Bi(o){var r=IC();return function(){var t=xi(o),e;if(r){var a=xi(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return NC(this,e)}}function ia(o,r){return FC(o)||LC(o,r)||oh(o,r)||UC()}function RC(o){return VC(o)||HC(o)||oh(o)||zC()}function VC(o){if(Array.isArray(o))return Ol(o)}function FC(o){if(Array.isArray(o))return o}function HC(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function oh(o,r){if(!!o){if(typeof o=="string")return Ol(o,r);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ol(o,r)}}function Ol(o,r){(r==null||r>o.length)&&(r=o.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=o[n];return t}function zC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
254
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
255
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jC(o,r){if(typeof o!="object"||o===null)return o;var n=o[Symbol.toPrimitive];if(n!==void 0){var t=n.call(o,r||"default");if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(o)}function rh(o){var r=jC(o,"string");return typeof r=="symbol"?r:String(r)}function ih(o,r){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);r&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),n.push.apply(n,t)}return n}function rr(o){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?ih(Object(n),!0).forEach(function(t){ee(o,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):ih(Object(n)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(n,t))})}return o}function Lt(){Lt=function(){return o};var o={},r=Object.prototype,n=r.hasOwnProperty,t=Object.defineProperty||function(E,x,k){E[x]=k.value},e=typeof Symbol=="function"?Symbol:{},a=e.iterator||"@@iterator",i=e.asyncIterator||"@@asyncIterator",l=e.toStringTag||"@@toStringTag";function c(E,x,k){return Object.defineProperty(E,x,{value:k,enumerable:!0,configurable:!0,writable:!0}),E[x]}try{c({},"")}catch{c=function(x,k,O){return x[k]=O}}function u(E,x,k,O){var P=x&&x.prototype instanceof h?x:h,R=Object.create(P.prototype),N=new A(O||[]);return t(R,"_invoke",{value:S(E,k,N)}),R}function d(E,x,k){try{return{type:"normal",arg:E.call(x,k)}}catch(O){return{type:"throw",arg:O}}}o.wrap=u;var f={};function h(){}function p(){}function v(){}var g={};c(g,a,function(){return this});var m=Object.getPrototypeOf,_=m&&m(m(L([])));_&&_!==r&&n.call(_,a)&&(g=_);var b=v.prototype=h.prototype=Object.create(g);function y(E){["next","throw","return"].forEach(function(x){c(E,x,function(k){return this._invoke(x,k)})})}function w(E,x){function k(P,R,N,H){var K=d(E[P],E,R);if(K.type!=="throw"){var U=K.arg,le=U.value;return le&&typeof le=="object"&&n.call(le,"__await")?x.resolve(le.__await).then(function(ae){k("next",ae,N,H)},function(ae){k("throw",ae,N,H)}):x.resolve(le).then(function(ae){U.value=ae,N(U)},function(ae){return k("throw",ae,N,H)})}H(K.arg)}var O;t(this,"_invoke",{value:function(P,R){function N(){return new x(function(H,K){k(P,R,H,K)})}return O=O?O.then(N,N):N()}})}function S(E,x,k){var O="suspendedStart";return function(P,R){if(O==="executing")throw new Error("Generator is already running");if(O==="completed"){if(P==="throw")throw R;return I()}for(k.method=P,k.arg=R;;){var N=k.delegate;if(N){var H=D(N,k);if(H){if(H===f)continue;return H}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(O==="suspendedStart")throw O="completed",k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);O="executing";var K=d(E,x,k);if(K.type==="normal"){if(O=k.done?"completed":"suspendedYield",K.arg===f)continue;return{value:K.arg,done:k.done}}K.type==="throw"&&(O="completed",k.method="throw",k.arg=K.arg)}}}function D(E,x){var k=x.method,O=E.iterator[k];if(O===void 0)return x.delegate=null,k==="throw"&&E.iterator.return&&(x.method="return",x.arg=void 0,D(E,x),x.method==="throw")||k!=="return"&&(x.method="throw",x.arg=new TypeError("The iterator does not provide a '"+k+"' method")),f;var P=d(O,E.iterator,x.arg);if(P.type==="throw")return x.method="throw",x.arg=P.arg,x.delegate=null,f;var R=P.arg;return R?R.done?(x[E.resultName]=R.value,x.next=E.nextLoc,x.method!=="return"&&(x.method="next",x.arg=void 0),x.delegate=null,f):R:(x.method="throw",x.arg=new TypeError("iterator result is not an object"),x.delegate=null,f)}function C(E){var x={tryLoc:E[0]};1 in E&&(x.catchLoc=E[1]),2 in E&&(x.finallyLoc=E[2],x.afterLoc=E[3]),this.tryEntries.push(x)}function B(E){var x=E.completion||{};x.type="normal",delete x.arg,E.completion=x}function A(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(C,this),this.reset(!0)}function L(E){if(E){var x=E[a];if(x)return x.call(E);if(typeof E.next=="function")return E;if(!isNaN(E.length)){var k=-1,O=function P(){for(;++k<E.length;)if(n.call(E,k))return P.value=E[k],P.done=!1,P;return P.value=void 0,P.done=!0,P};return O.next=O}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=v,t(b,"constructor",{value:v,configurable:!0}),t(v,"constructor",{value:p,configurable:!0}),p.displayName=c(v,l,"GeneratorFunction"),o.isGeneratorFunction=function(E){var x=typeof E=="function"&&E.constructor;return!!x&&(x===p||(x.displayName||x.name)==="GeneratorFunction")},o.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,v):(E.__proto__=v,c(E,l,"GeneratorFunction")),E.prototype=Object.create(b),E},o.awrap=function(E){return{__await:E}},y(w.prototype),c(w.prototype,i,function(){return this}),o.AsyncIterator=w,o.async=function(E,x,k,O,P){P===void 0&&(P=Promise);var R=new w(u(E,x,k,O),P);return o.isGeneratorFunction(x)?R:R.next().then(function(N){return N.done?N.value:R.next()})},y(b),c(b,l,"Generator"),c(b,a,function(){return this}),c(b,"toString",function(){return"[object Generator]"}),o.keys=function(E){var x=Object(E),k=[];for(var O in x)k.push(O);return k.reverse(),function P(){for(;k.length;){var R=k.pop();if(R in x)return P.value=R,P.done=!1,P}return P.done=!0,P}},o.values=L,A.prototype={constructor:A,reset:function(E){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(B),!E)for(var x in this)x.charAt(0)==="t"&&n.call(this,x)&&!isNaN(+x.slice(1))&&(this[x]=void 0)},stop:function(){this.done=!0;var E=this.tryEntries[0].completion;if(E.type==="throw")throw E.arg;return this.rval},dispatchException:function(E){if(this.done)throw E;var x=this;function k(K,U){return R.type="throw",R.arg=E,x.next=K,U&&(x.method="next",x.arg=void 0),!!U}for(var O=this.tryEntries.length-1;O>=0;--O){var P=this.tryEntries[O],R=P.completion;if(P.tryLoc==="root")return k("end");if(P.tryLoc<=this.prev){var N=n.call(P,"catchLoc"),H=n.call(P,"finallyLoc");if(N&&H){if(this.prev<P.catchLoc)return k(P.catchLoc,!0);if(this.prev<P.finallyLoc)return k(P.finallyLoc)}else if(N){if(this.prev<P.catchLoc)return k(P.catchLoc,!0)}else{if(!H)throw new Error("try statement without catch or finally");if(this.prev<P.finallyLoc)return k(P.finallyLoc)}}}},abrupt:function(E,x){for(var k=this.tryEntries.length-1;k>=0;--k){var O=this.tryEntries[k];if(O.tryLoc<=this.prev&&n.call(O,"finallyLoc")&&this.prev<O.finallyLoc){var P=O;break}}P&&(E==="break"||E==="continue")&&P.tryLoc<=x&&x<=P.finallyLoc&&(P=null);var R=P?P.completion:{};return R.type=E,R.arg=x,P?(this.method="next",this.next=P.finallyLoc,f):this.complete(R)},complete:function(E,x){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"&&x&&(this.next=x),f},finish:function(E){for(var x=this.tryEntries.length-1;x>=0;--x){var k=this.tryEntries[x];if(k.finallyLoc===E)return this.complete(k.completion,k.afterLoc),B(k),f}},catch:function(E){for(var x=this.tryEntries.length-1;x>=0;--x){var k=this.tryEntries[x];if(k.tryLoc===E){var O=k.completion;if(O.type==="throw"){var P=O.arg;B(k)}return P}}throw new Error("illegal catch attempt")},delegateYield:function(E,x,k){return this.delegate={iterator:L(E),resultName:x,nextLoc:k},this.method==="next"&&(this.arg=void 0),f}},o}function Ua(o){return Ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ua(o)}function sh(o,r,n,t,e,a,i){try{var l=o[a](i),c=l.value}catch(u){n(u);return}l.done?r(c):Promise.resolve(c).then(t,e)}function sa(o){return function(){var r=this,n=arguments;return new Promise(function(t,e){var a=o.apply(r,n);function i(c){sh(a,t,e,i,l,"next",c)}function l(c){sh(a,t,e,i,l,"throw",c)}i(void 0)})}}function cn(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function lh(o,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(o,dh(t.key),t)}}function un(o,r,n){return r&&lh(o.prototype,r),n&&lh(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}function ee(o,r,n){return r=dh(r),r in o?Object.defineProperty(o,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[r]=n,o}function ir(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),r&&sr(o,r)}function ja(o){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ja(o)}function sr(o,r){return sr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},sr(o,r)}function ch(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ai(o,r,n){return ch()?Ai=Reflect.construct.bind():Ai=function(e,a,i){var l=[null];l.push.apply(l,a);var c=Function.bind.apply(e,l),u=new c;return i&&sr(u,i.prototype),u},Ai.apply(null,arguments)}function GC(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function Di(o){var r=typeof Map=="function"?new Map:void 0;return Di=function(t){if(t===null||!GC(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return Ai(t,arguments,ja(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),sr(e,t)},Di(o)}function WC(o,r){if(o==null)return{};var n={},t=Object.keys(o),e,a;for(a=0;a<t.length;a++)e=t[a],!(r.indexOf(e)>=0)&&(n[e]=o[e]);return n}function KC(o,r){if(o==null)return{};var n=WC(o,r),t,e;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(o);for(e=0;e<a.length;e++)t=a[e],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(o,t)||(n[t]=o[t]))}return n}function _e(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function YC(o,r){if(r&&(typeof r=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _e(o)}function lr(o){var r=ch();return function(){var t=ja(o),e;if(r){var a=ja(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return YC(this,e)}}function XC(o,r){for(;!Object.prototype.hasOwnProperty.call(o,r)&&(o=ja(o),o!==null););return o}function Pi(){return typeof Reflect<"u"&&Reflect.get?Pi=Reflect.get.bind():Pi=function(r,n,t){var e=XC(r,n);if(!!e){var a=Object.getOwnPropertyDescriptor(e,n);return a.get?a.get.call(arguments.length<3?r:t):a.value}},Pi.apply(this,arguments)}function JC(o,r){if(!!o){if(typeof o=="string")return uh(o,r);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uh(o,r)}}function uh(o,r){(r==null||r>o.length)&&(r=o.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=o[n];return t}function QC(o,r){var n=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!n){if(Array.isArray(o)||(n=JC(o))||r&&o&&typeof o.length=="number"){n&&(o=n);var t=0,e=function(){};return{s:e,n:function(){return t>=o.length?{done:!0}:{done:!1,value:o[t++]}},e:function(c){throw c},f:e}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
256
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,l;return{s:function(){n=n.call(o)},n:function(){var c=n.next();return a=c.done,c},e:function(c){i=!0,l=c},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}}}function ZC(o,r){if(typeof o!="object"||o===null)return o;var n=o[Symbol.toPrimitive];if(n!==void 0){var t=n.call(o,r||"default");if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(o)}function dh(o){var r=ZC(o,"string");return typeof r=="symbol"?r:String(r)}var dn=function(){function o(){cn(this,o)}return un(o,null,[{key:"start",value:function(n){return!n||!n.length||n.length===1&&n.end(0)-n.start(0)<1e-6||n.length===1&&n.start(0)<0?0:n.start(0)}},{key:"end",value:function(n){return!n||!n.length||n.length===1&&n.end(0)-n.start(0)<1e-6?0:n.end(n.length-1)}},{key:"get",value:function(n){if(!!n)try{return n.buffered}catch{}}},{key:"buffers",value:function(n,t){if(!n||!n.length)return[];for(var e=[],a=0,i=n.length;a<i;a++){var l=e.length;if(!l||!t)e.push([n.start(a),n.end(a)]);else{var c=e[l-1],u=c[1],d=n.start(a);if(d-u<=t){var f=n.end(a);f>u&&(c[1]=f)}else e.push([n.start(a),n.end(a)])}}return e}},{key:"totalLength",value:function(n){return!n||!n.length?0:n.reduce(function(t,e){return t+=e[1]-e[0]},0)}},{key:"info",value:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(!n||!n.length)return{start:0,end:0,buffers:[]};for(var a=0,i=0,l=0,c=0,u=0,d=0,f=0,h=o.buffers(n,e),p=0,v=h.length;p<v;p++){var g=h[p];if(t+e>=g[0]&&t<=g[1])a=g[0],i=g[1],l=p;else if(t+e<g[0]){c=g[0],u=g[1];break}else t+e>g[1]&&(d=g[0],f=g[1])}return{start:a,end:i,index:l,buffers:h,nextStart:c,nextEnd:u,prevStart:d,prevEnd:f,currentTime:t,behind:t-a,remaining:i?i-t:0,length:o.totalLength&&o.totalLength(h)}}},{key:"isBuffered",value:function(n,t){if(n){var e=o.get(n);if(e!=null&&e.length){for(var a=0;a<e.length;a++)if(t>=e.start(a)&&t<=e.end(a))return!0}}return!1}}]),o}(),qC=typeof window<"u",fn,He={MANIFEST:"manifest",NETWORK:"network",NETWORK_TIMEOUT:"network_timeout",NETWORK_FORBIDDEN:"network_forbidden",NETWORK_NOTFOUND:"network_notfound",NETWROK_RANGE_NOT_SATISFIABLE:"network_range_not_satisfiable",DEMUX:"demux",REMUX:"remux",MEDIA:"media",DRM:"drm",OTHER:"other",RUNTIME:"runtime",SUB_TYPES:{FLV:"FLV",HLS:"HLS",MP4:"MP4",FMP4:"FMP4",MSE_ADD_SB:"MSE_ADD_SB",MSE_APPEND_BUFFER:"MSE_APPEND_BUFFER",MSE_OTHER:"MSE_OTHER",MSE_FULL:"MSE_FULL",MSE_CHANGE_TYPE:"MSE_CHANGE_TYPE",OPTION:"OPTION",DASH:"DASH",LICENSE:"LICENSE",CUSTOM_LICENSE:"CUSTOM_LICENSE",MSE_HIJACK:"MSE_HIJACK",EME_HIJACK:"EME_HIJACK",SIDX:"SIDX",NO_CANPLAY_ERROR:"NO_CANPLAY_ERROR",BUFFERBREAK_ERROR:"BUFFERBREAK_ERROR",WAITING_TIMEOUT_ERROR:"WAITING_TIMEOUT_ERROR",MEDIA_ERR_ABORTED:"MEDIA_ERR_ABORTED",MEDIA_ERR_NETWORK:"MEDIA_ERR_NETWORK",MEDIA_ERR_DECODE:"MEDIA_ERR_DECODE",MEDIA_ERR_SRC_NOT_SUPPORTED:"MEDIA_ERR_SRC_NOT_SUPPORTED",MEDIA_ERR_CODEC_NOT_SUPPORTED:"MEDIA_ERR_CODEC_NOT_SUPPORTED",MEDIA_ERR_URL_EMPTY:"MEDIA_ERR_URL_EMPTY"}},Ll=(fn={},ee(fn,He.MANIFEST,{HLS:1100,DASH:1200}),ee(fn,He.NETWORK,2100),ee(fn,He.NETWORK_TIMEOUT,2101),ee(fn,He.NETWORK_FORBIDDEN,2103),ee(fn,He.NETWORK_NOTFOUND,2104),ee(fn,He.NETWROK_RANGE_NOT_SATISFIABLE,2116),ee(fn,He.DEMUX,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400,SIDX:3410}),ee(fn,He.REMUX,{FMP4:4100,MP4:4200}),ee(fn,He.MEDIA,{MEDIA_ERR_ABORTED:5101,MEDIA_ERR_NETWORK:5102,MEDIA_ERR_DECODE:5103,MEDIA_ERR_SRC_NOT_SUPPORTED:5104,MEDIA_ERR_CODEC_NOT_SUPPORTED:5105,MEDIA_ERR_URL_EMPTY:5106,MSE_ADD_SB:5200,MSE_APPEND_BUFFER:5201,MSE_OTHER:5202,MSE_FULL:5203,MSE_HIJACK:5204,MSE_CHANGE_TYPE:5205,EME_HIJACK:5301}),ee(fn,He.DRM,{LICENSE:7100,CUSTOM_LICENSE:7200}),ee(fn,He.OTHER,8e3),ee(fn,He.RUNTIME,{NO_CANPLAY_ERROR:9001,BUFFERBREAK_ERROR:9002,WAITING_TIMEOUT_ERROR:9003}),fn),ht=function(o){ir(n,o);var r=lr(n);function n(t,e,a,i,l){var c;return cn(this,n),c=r.call(this,l||(a==null?void 0:a.message)),c.errorType=t===He.NETWORK_TIMEOUT?He.NETWORK:t,c.originError=a,c.ext=i,c.errorCode=Ll[t][e]||Ll[t],c.errorMessage=c.message,c.errorCode||(c.errorType=He.OTHER,c.errorCode=Ll[c.errorType]),c}return un(n,null,[{key:"create",value:function(e,a,i,l,c){return e instanceof n?e:(e instanceof Error&&(i=e,e=""),e||(e=He.OTHER),new n(e,a,i,l,c))}},{key:"network",value:function(e){var a;return new n(e!=null&&e.isTimeout?He.NETWORK_TIMEOUT:He.NETWORK,null,e instanceof Error?e:null,{url:e==null?void 0:e.url,response:e==null?void 0:e.response,httpCode:e==null||(a=e.response)===null||a===void 0?void 0:a.status})}}]),n}(Di(Error)),Oi={DEBUG:1,LOG:2,WARN:3,ERROR:4},$C=200*1024,eS=["Boolean","Number","String","Undefined","Null","Date","Object"],Yn=function(){function o(r,n){cn(this,o),this.name=r||"",this._prefix="[".concat(this.name,"]"),this.logCacheLevel=(n==null?void 0:n.logCacheLevel)||3,this.logMaxSize=(n==null?void 0:n.logMaxSize)||$C,this.logSize=0,this.logTextArray=[]}return un(o,[{key:"debug",value:function(){for(var n,t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];this.logCache.apply(this,[Oi.DEBUG].concat(e)),!o.disabled&&(n=console).debug.apply(n,["[".concat(cr(),"]"),this._prefix].concat(e))}},{key:"log",value:function(){for(var n,t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];this.logCache.apply(this,[Oi.LOG].concat(e)),!o.disabled&&(n=console).log.apply(n,["[".concat(cr(),"]"),this._prefix].concat(e))}},{key:"warn",value:function(){for(var n,t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];this.logCache.apply(this,[Oi.WARN].concat(e)),!o.disabled&&(n=console).warn.apply(n,["[".concat(cr(),"]"),this._prefix].concat(e))}},{key:"error",value:function(){for(var n,t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];this.logCache.apply(this,[Oi.ERROR].concat(e)),!o.disabled&&(n=console).error.apply(n,["[".concat(cr(),"]"),this._prefix].concat(e))}},{key:"logCache",value:function(n){if(!(n<this.logCacheLevel)){var t="";try{for(var e=arguments.length,a=new Array(e>1?e-1:0),i=1;i<e;i++)a[i-1]=arguments[i];var l=a.map(function(u){return fh(u)});t="[".concat(cr(),"]")+this._prefix+JSON.stringify(l)}catch{return}if(n>=this.logCacheLevel&&(this.logSize+=t.length,this.logTextArray.push(t)),this.logSize>this.logMaxSize){var c=this.logTextArray.shift();this.logSize-=c.length}}}},{key:"getLogCache",value:function(){var n=this.logTextArray.join(`
|
|
257
|
-
`);return this.reset(),n}},{key:"reset",value:function(){this.logTextArray=[],this.logSize=0}},{key:"table",value:function(){var n;o.disabled||(console.group(this._prefix),(n=console).table.apply(n,arguments),console.groupEnd())}},{key:"setLogLevel",value:function(n){this.logCacheLevel=n}}],[{key:"enable",value:function(){o.disabled=!1}},{key:"disable",value:function(){o.disabled=!0}}]),o}();ee(Yn,"disabled",!0);function cr(){return new Date().toLocaleString()}function tS(o){if(Ua(o)!=="object")return o;var r=Object.prototype.toString.call(o).slice(8,-1);switch(r){case"Array":case"Uint8Array":case"ArrayBuffer":return r+"["+o.length+"]";case"Object":return"{}";default:return r}}function fh(o,r,n){n||(n=1),r||(r=2);var t={};if(!o||Ua(o)!=="object")return o;var e=Object.prototype.toString.call(o).slice(8,-1);if(!eS.includes(e))return e;if(!(n>r)){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n===r?t[a]=tS(o[a]):Ua(o[a])==="object"?t[a]=fh(o[a],r,n+1):t[a]=o[a]);return t}}function go(){var o,r,n=new Promise(function(t,e){o=t,r=e});return n.used=!1,n.resolve=function(){return n.used=!0,o.apply(void 0,arguments)},n.reject=function(){return n.used=!0,r.apply(void 0,arguments)},n}function yo(){try{return parseInt(performance.now(),10)}catch{return new Date().getTime()}}var nS={stringify:function(r){try{return JSON.stringify(r)}catch{return""}},parse:function(r){try{return JSON.parse(r)}catch{return}}};function hh(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;try{return qC?o&&typeof ManagedMediaSource<"u"?ManagedMediaSource:window.MediaSource:null}catch{}}function Il(o){return/ManagedMediaSource/gi.test(Object.prototype.toString.call(o))}function aS(o){var r=[];if(o instanceof TimeRanges)for(var n=0;n<o.length;n++)r.push({start:o.start(n),end:o.end(n)});return r}var Li={APPEND:"appendBuffer",REMOVE:"removeBuffer",UPDATE_DURATION:"updateDuration"},en=function(){function o(r,n){var t=this;cn(this,o),ee(this,"media",null),ee(this,"mediaSource",null),ee(this,"_openPromise",go()),ee(this,"_queue",Object.create(null)),ee(this,"_sourceBuffer",Object.create(null)),ee(this,"_mseFullFlag",{}),ee(this,"_st",0),ee(this,"_opst",0),ee(this,"_logger",null),ee(this,"_config",null),ee(this,"_url",null),ee(this,"_onStartStreaming",function(){t._logger.debug("startstreaming")}),ee(this,"_onEndStreaming",function(){t._logger.debug("endstreaming")}),ee(this,"_onSBUpdateEnd",function(e){var a=t._queue[e];if(a){var i=a[0];if((i==null?void 0:i.opName)!==Li.UPDATE_DURATION&&a.shift(),i){var l,c,u=yo()-t._opst;t._logger.debug("UpdateEnd(".concat(e,"/").concat(i.opName,")"),nS.stringify(aS((l=t._sourceBuffer[e])===null||l===void 0?void 0:l.buffered)),u,i.context),i.promise.resolve({name:i.opName,context:i.context,costtime:u});var d=(c=i.context)===null||c===void 0?void 0:c.callback;d&&typeof d=="function"&&d(i.context),t._startQueue(e)}}}),ee(this,"_onSBUpdateError",function(e,a){var i=t._queue[e];if(i){var l=i[0];l&&(t._logger.error("UpdateError",e,l.opName,l.context),l.promise.reject(new ht(He.MEDIA,He.SUB_TYPES.MSE_APPEND_BUFFER,a)))}}),this._config=Object.assign(o.getDefaultConfig(),n),r&&this.bindMedia(r),this._logger=new Yn("MSE"),this._config.openLog&&Yn.enable()}return un(o,[{key:"isOpened",get:function(){var n;return((n=this.mediaSource)===null||n===void 0?void 0:n.readyState)==="open"}},{key:"hasOpTasks",get:function(){var n=this,t=!1;return Object.keys(this._queue).forEach(function(e){var a=n._queue[e];Array.isArray(a)&&(t||(t=a.length>0))}),t}},{key:"url",get:function(){return this._url}},{key:"duration",get:function(){var n;return((n=this.mediaSource)===null||n===void 0?void 0:n.duration)||-1}},{key:"isEnded",get:function(){return this.mediaSource?this.mediaSource.readyState==="ended":!1}},{key:"streaming",get:function(){return Il(this.mediaSource)?this.mediaSource.streaming:!0}},{key:"isFull",value:function(n){return n?this._mseFullFlag[n]:this._mseFullFlag[o.VIDEO]}},{key:"updateDuration",value:function(n){var t=this,e=this.mediaSource&&this.mediaSource.duration>n;if(this.mediaSource&&this.mediaSource.duration>n){var a=0;if(Object.keys(this._sourceBuffer).forEach(function(i){try{a=Math.max(t.bufferEnd(i)||0,a)}catch{}}),n<a)return Promise.resolve()}return this._enqueueBlockingOp(function(){if(t.isEnded){t._logger.debug("setDuration but ended");return}t.mediaSource&&(t.mediaSource.duration=n,t._logger.debug("setDuration",n))},Li.UPDATE_DURATION,{isReduceDuration:e})}},{key:"open",value:function(){var n=this;if(this._openPromise.used&&!this.isOpened&&this.mediaSource){var t=this.mediaSource,e=function a(){var i=yo()-n._st;n._logger.debug("sourceopen",i),t.removeEventListener("sourceopen",a),n._openPromise.resolve({costtime:i})};t.addEventListener("sourceopen",e),this._openPromise=go()}return this._openPromise}},{key:"bindMedia",value:function(){var r=sa(Lt().mark(function t(e){var a=this,i,l,c,u;return Lt().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!(this.mediaSource||this.media)){f.next=3;break}return f.next=3,this.unbindMedia();case 3:if(i=hh(this._config.preferMMS),!(!e||!i)){f.next=6;break}throw new Error("Param media or MediaSource does not exist");case 6:return this.media=e,l=this.mediaSource=new i,c=Il(l),this._st=yo(),u=function h(){var p=yo()-a._st;a._logger.debug("sourceopen"),l.removeEventListener("sourceopen",h),URL.revokeObjectURL(e.src),a._openPromise.resolve({costtime:p})},l.addEventListener("sourceopen",u),c&&(l.addEventListener("startstreaming",this._onStartStreaming),l.addEventListener("endstreaming",this._onEndStreaming)),this._url=URL.createObjectURL(l),e.src=this._url,e.disableRemotePlayback=c,f.abrupt("return",this._openPromise);case 17:case"end":return f.stop()}},t,this)}));function n(t){return r.apply(this,arguments)}return n}()},{key:"unbindMedia",value:function(){var r=sa(Lt().mark(function t(){var e=this,a,i,l;return Lt().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(this._openPromise.used||this._openPromise.resolve(),a=this.mediaSource,a){if(Object.keys(this._queue).forEach(function(d){var f=e._queue[d];f&&f.forEach(function(h){var p,v;return(p=h.promise)===null||p===void 0||(v=p.resolve)===null||v===void 0?void 0:v.call(p)})}),i=!!this.media&&this.media.readyState>=1,l=a.readyState==="open",i&&l)try{a.endOfStream()}catch{}Object.keys(this._sourceBuffer).forEach(function(d){try{a.removeSourceBuffer(e._sourceBuffer[d])}catch{}}),Il(a)&&(a.removeEventListener("startstreaming",this._onStartStreaming),a.removeEventListener("endstreaming",this._onEndStreaming))}if(this.media){this.media.disableRemotePlayback=!1,this.media.removeAttribute("src");try{this.media.load()}catch{}this.media=null}this.mediaSource=null,this._openPromise=go(),this._queue=Object.create(null),this._sourceBuffer=Object.create(null);case 8:case"end":return u.stop()}},t,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"createSource",value:function(n,t){if(!(this._sourceBuffer[n]||!this.mediaSource)){var e;try{e=this._sourceBuffer[n]=this.mediaSource.addSourceBuffer(t)}catch(a){throw new ht(He.MEDIA,He.SUB_TYPES.MSE_ADD_SB,a)}e.mimeType=t,e.addEventListener("updateend",this._onSBUpdateEnd.bind(this,n)),e.addEventListener("error",this._onSBUpdateError.bind(this,n))}}},{key:"changeType",value:function(n,t){var e=this,a=this._sourceBuffer[n];return!this.mediaSource||!a||a.mimeType===t?Promise.resolve():typeof a.changeType!="function"?Promise.reject(new ht(He.MEDIA,He.SUB_TYPES.MSE_CHANGE_TYPE,new Error("changeType is not a function"))):this._enqueueOp(n,function(){try{a.changeType(t)}catch(i){throw new ht(He.MEDIA,He.SUB_TYPES.MSE_CHANGE_TYPE,i)}a.mimeType=t,e._onSBUpdateEnd(n)},"changeType",{mimeType:t})}},{key:"createOrChangeSource",value:function(n,t){return this.createSource(n,t),this.changeType(n,t)}},{key:"append",value:function(n,t,e){var a=this;return!t||!t.byteLength||!this._sourceBuffer[n]?Promise.resolve():this._enqueueOp(n,function(){var i;!a.mediaSource||a.media.error||(a._logger.debug("MSE APPEND START",e),a._opst=yo(),(i=a._sourceBuffer[n])===null||i===void 0||i.appendBuffer(t))},Li.APPEND,e)}},{key:"remove",value:function(n,t,e,a){var i=this,l=!1;return this._mseFullFlag[n]&&(l=!0),this._enqueueOp(n,function(){if(!(!i.mediaSource||i.media.error)){var c=i._sourceBuffer[n];if(t>=e||!c){i._onSBUpdateEnd(n);return}i._opst=yo(),i._logger.debug("MSE REMOVE START",n,t,e,a),c.remove(t,e)}},Li.REMOVE,a,l)}},{key:"clearBuffer",value:function(n,t){var e=this,a;return Object.keys(this._sourceBuffer).forEach(function(i){a=e.remove(i,n,t)}),a||Promise.resolve()}},{key:"clearAllBuffer",value:function(){var n=this,t;return Object.keys(this._sourceBuffer).forEach(function(e){var a=n._sourceBuffer[e];t=n.remove(e,0,dn.end(dn.get(a)))}),t}},{key:"clearOpQueues",value:function(n,t){var e;this._logger.debug("MSE clearOpQueue START");var a=this._queue[n];if(t&&a){this._queue[n]=[];return}if(!(!a||!a[n]||a.length<5)){var i=[];a.forEach(function(l){l.context&&l.context.isinit&&i.push(l)}),this._queue[n]=a.slice(0,2),i.length>0&&(e=this._queue[n]).push.apply(e,i)}}},{key:"endOfStream",value:function(n){var t=this;return!this.mediaSource||this.mediaSource.readyState!=="open"?Promise.resolve():this._enqueueBlockingOp(function(){var e=t.mediaSource;!e||e.readyState!=="open"||(t._logger.debug("MSE endOfStream START"),n?e.endOfStream(n):e.endOfStream())},"endOfStream")}},{key:"setLiveSeekableRange",value:function(n,t){var e=this.mediaSource;n<0||t<n||!(e!=null&&e.setLiveSeekableRange)||e.readyState!=="open"||e.setLiveSeekableRange(n,t)}},{key:"getSourceBuffer",value:function(n){return this._sourceBuffer[n]}},{key:"buffered",value:function(n){return dn.get(this._sourceBuffer[n])}},{key:"bufferStart",value:function(n){return dn.start(this.buffered(n))}},{key:"bufferEnd",value:function(n){return dn.end(this.buffered(n))}},{key:"_enqueueOp",value:function(n,t,e,a,i){var l=this;if(!this.mediaSource)return Promise.resolve();var c=this._queue[n]=this._queue[n]||[],u={exec:t,promise:go(),opName:e,context:a};return i?(c.splice(0,0,u),this._mseFullFlag[n]=!1,this._startQueue(n)):c.push(u),this.isOpened||this.isEnded?c.length===1&&this._startQueue(n):this._openPromise.then(function(){c.length===1&&l._startQueue(n)}),u.promise}},{key:"_enqueueBlockingOp",value:function(){var r=sa(Lt().mark(function t(e,a,i){var l=this,c,u;return Lt().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(this.mediaSource){f.next=2;break}return f.abrupt("return",Promise.resolve());case 2:if(c=Object.keys(this._sourceBuffer),c.length){f.next=5;break}return f.abrupt("return",e());case 5:return u=[],c.forEach(function(h){var p=l._queue[h],v=go();u.push(v),p.push({exec:function(){v.resolve()},promise:v,opName:a,context:i}),p.length===1&&l._startQueue(h)}),f.abrupt("return",Promise.all(u).then(function(){try{return e()}finally{c.forEach(function(h){var p=l._queue[h],v=l._sourceBuffer[h];p==null||p.shift(),(!v||!v.updating)&&l._startQueue(h)})}}));case 8:case"end":return f.stop()}},t,this)}));function n(t,e,a){return r.apply(this,arguments)}return n}()},{key:"_startQueue",value:function(n){var t=this._queue[n];if(t){var e=t[0];if(e&&!this._mseFullFlag[n])try{e.exec()}catch(l){if(l&&l.message&&l.message.indexOf("SourceBuffer is full")>=0){var a;this._mseFullFlag[n]=!0,e.context&&Ua(e.context)==="object"&&(e.context.isFull=!0),this._logger.error("[MSE error], context,",e.context," ,name,",e.opName,",err,SourceBuffer is full"),e==null||(a=e.promise)===null||a===void 0||a.reject(new ht(He.MEDIA,He.SUB_TYPES.MSE_FULL,l))}else{var i;this._logger.error(l),e==null||(i=e.promise)===null||i===void 0||i.reject(l.constructor===ht?l:new ht(He.MEDIA,He.SUB_TYPES.MSE_OTHER,l)),t.shift(),this._startQueue(n)}}}}},{key:"setTimeoffset",value:function(n,t,e){var a=this;return this._enqueueOp(n,function(){t<0&&(t+=.001),a._sourceBuffer[n].timestampOffset=t,a._onSBUpdateEnd(n)},"setTimeoffset",e)}},{key:"abort",value:function(n,t){var e=this;return this.isOpened?this._enqueueOp(n,function(){e._sourceBuffer[n].abort(),e._onSBUpdateEnd(n)},"abort",t):Promise.resolve()}}],[{key:"isSupported",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"',t=hh();if(!t)return!1;try{return t.isTypeSupported(n)}catch(e){return this._logger.error(n,e),!1}}},{key:"isMMSOnly",value:function(){return typeof ManagedMediaSource<"u"&&typeof MediaSource>"u"}},{key:"getDefaultConfig",value:function(){return{openLog:!1,preferMMS:!1}}}]),o}();ee(en,"VIDEO","video"),ee(en,"AUDIO","audio");var Ga={FETCH:"fetch",XHR:"xhr"},ur={ARRAY_BUFFER:"arraybuffer",TEXT:"text",JSON:"json"},Xn=function(o){ir(n,o);var r=lr(n);function n(t,e,a,i){var l;return cn(this,n),l=r.call(this,i),ee(_e(l),"retryCount",0),ee(_e(l),"isTimeout",!1),ee(_e(l),"loaderType",Ga.FETCH),ee(_e(l),"startTime",0),ee(_e(l),"endTime",0),ee(_e(l),"options",{}),l.url=t,l.request=e,l.response=a,l}return un(n)}(Di(Error)),ph=Object.prototype.toString;function oS(o){return o!==null&&Ua(o)==="object"}function vh(o){if(ph.call(o)!=="[object Object]")return!1;var r=Object.getPrototypeOf(o);return r===null||r===Object.prototype}function rS(o){return ph.call(o)==="[object Date]"}function mh(o){if(!(!o||o[0]===null||o[0]===void 0||o[0]===0&&(o[1]===null||o[1]===void 0))){var r="bytes="+o[0]+"-";return o[1]&&(r+=o[1]),r}}function gh(o){return encodeURIComponent(o).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yh(o,r){if(!!o){if(!r)return o;var n,t=Object.keys(r).map(function(a){if(n=r[a],n!=null)return Array.isArray(n)?a=a+"[]":n=[n],n.map(function(i){return rS(i)?i=i.toISOString():oS(i)&&(i=JSON.stringify(i)),"".concat(gh(a),"=").concat(gh(i))}).join("&")}).filter(Boolean).join("&");if(t){var e=o.indexOf("#");e!==-1&&(o=o.slice(0,e)),o+=(o.indexOf("?")===-1?"?":"&")+t}return o}}function Ml(o,r,n,t,e,a,i,l,c,u,d){e=e!=null?parseFloat(e):null,t=parseInt(t||"0",10),Number.isNaN(t)&&(t=0);var f={range:c,vid:u,index:l,contentLength:t,age:e,startTime:a,firstByteTime:i,endTime:Date.now(),priOptions:d};return{data:o,done:r,options:f,response:n}}function Nl(o,r){return Math.round(o*8*1e3/r/1024)}var be={ERROR:"error",TTFB:"core.ttfb",LOAD_START:"core.loadstart",LOAD_RESPONSE_HEADERS:"core.loadresponseheaders",LOAD_COMPLETE:"core.loadcomplete",LOAD_RETRY:"core.loadretry",SOURCEBUFFER_CREATED:"core.sourcebuffercreated",MEDIASOURCE_OPENED:"core.mediasourceopened",ANALYZE_DURATION_EXCEEDED:"core.analyzedurationexceeded",APPEND_BUFFER:"core.appendbuffer",REMOVE_BUFFER:"core.removebuffer",BUFFEREOS:"core.buffereos",KEYFRAME:"core.keyframe",CHASEFRAME:"core.chaseframe",METADATA_PARSED:"core.metadataparsed",SEI:"core.sei",SEI_IN_TIME:"core.seiintime",FLV_SCRIPT_DATA:"core.flvscriptdata",LOWDECODE:"core.lowdecode",SWITCH_URL_SUCCESS:"core.switchurlsuccess",SWITCH_URL_FAILED:"core.switchurlfailed",SPEED:"core.speed",HLS_MANIFEST_LOADED:"core.hlsmanifestloaded",HLS_LEVEL_LOADED:"core.hlslevelloaded",DEMUXED_TRACK:"core.demuxedtrack",STREAM_EXCEPTION:"core.streamexception",LARGE_AV_FIRST_FRAME_GAP_DETECT:"LARGE_AV_FIRST_FRAME_GAP_DETECT",LARGE_VIDEO_DTS_GAP_DETECT:"LARGE_VIDEO_DTS_GAP_DETECT",LARGE_AUDIO_DTS_GAP_DETECT:"LARGE_AUDIO_DTS_GAP_DETECT",AUDIO_GAP_DETECT:"AUDIO_GAP_DETECT",AUDIO_OVERLAP_DETECT:"AUDIO_OVERLAP_DETECT",MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT:"MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT",REAL_TIME_SPEED:"real_time_speed"},_h=2*1024*1024,Rl=function(o){ir(n,o);var r=lr(n);function n(){var t;return cn(this,n),t=r.call(this),ee(_e(t),"_abortController",null),ee(_e(t),"_timeoutTimer",null),ee(_e(t),"_reader",null),ee(_e(t),"_response",null),ee(_e(t),"_aborted",!1),ee(_e(t),"_index",-1),ee(_e(t),"_range",null),ee(_e(t),"_receivedLength",0),ee(_e(t),"_running",!1),ee(_e(t),"_logger",null),ee(_e(t),"_vid",""),ee(_e(t),"_firtstByte",0),ee(_e(t),"_onProcessMinLen",0),ee(_e(t),"_onCancel",null),ee(_e(t),"_priOptions",null),t}return un(n,[{key:"load",value:function(e){var a,i=this,l=e.url,c=e.vid,u=e.timeout,d=e.responseType,f=e.onProgress,h=e.index,p=e.onTimeout,v=e.onCancel,g=e.range,m=e.transformResponse,_=e.request,b=e.params,y=e.logger,w=e.method,S=e.headers,D=e.body,C=e.mode,B=e.credentials,A=e.cache,L=e.redirect,I=e.referrer,E=e.referrerPolicy,x=e.onProcessMinLen,k=e.priOptions,O=e.streamRes,P=e.firstMaxChunkSize;this._logger=y,this._aborted=!1,this._onProcessMinLen=x,this._onCancel=v,this._abortController=typeof AbortController<"u"&&new AbortController,this._running=!0,this._index=h,this._range=g||[0,0],this._vid=c||l,this._priOptions=k||{},this._firstMaxChunkSize=P;var R={method:w,headers:S,body:D,mode:C,credentials:B,cache:A,redirect:L,referrer:I,referrerPolicy:E,signal:(a=this._abortController)===null||a===void 0?void 0:a.signal},N=!1;clearTimeout(this._timeoutTimer),l=yh(l,b);var H=mh(g);H&&(_?S=_.headers:S=R.headers=R.headers||(Headers?new Headers:{}),Headers&&S instanceof Headers?S.append("Range",H):S.Range=H),u&&(this._timeoutTimer=setTimeout(function(){if(N=!0,i.cancel(),p){var U=new Xn(l,R,null,"timeout");U.isTimeout=!0,p(U,{index:i._index,range:i._range,vid:i._vid,priOptions:i._priOptions})}},u));var K=Date.now();return this._logger.debug("[fetch load start], index,",h,",range,",g),new Promise(function(U,le){var ae=O?new Promise(function(q){q(O)}):fetch(_||l,_?void 0:R);ae.then(function(){var q=sa(Lt().mark(function we(de){var ze,et,at,Pt;return Lt().wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(clearTimeout(i._timeoutTimer),i._response=de,!(i._aborted||!i._running)){Je.next=4;break}return Je.abrupt("return");case 4:if(m&&(de=m(de,l)||de),de.ok){Je.next=7;break}throw new Xn(l,R,de,"bad network response");case 7:if(ze=Date.now(),d!==ur.TEXT){Je.next=15;break}return Je.next=11,de.text();case 11:et=Je.sent,i._running=!1,Je.next=37;break;case 15:if(d!==ur.JSON){Je.next=22;break}return Je.next=18,de.json();case 18:et=Je.sent,i._running=!1,Je.next=37;break;case 22:if(!f){Je.next=29;break}return i.resolve=U,i.reject=le,i._loadChunk(de,f,K,ze),Je.abrupt("return");case 29:return Je.next=31,de.arrayBuffer();case 31:et=Je.sent,et=new Uint8Array(et),i._running=!1,at=Date.now()-K,Pt=Nl(et.byteLength,at),i.emit(be.REAL_TIME_SPEED,{speed:Pt,len:et.byteLength,time:at,vid:i._vid,index:i._index,range:i._range,priOptions:i._priOptions});case 37:i._logger.debug("[fetch load end], index,",h,",range,",g),U(Ml(et,!0,de,de.headers.get("Content-Length"),de.headers.get("age"),K,ze,h,g,i._vid,i._priOptions));case 39:case"end":return Je.stop()}},we)}));return function(we){return q.apply(this,arguments)}}()).catch(function(q){var we;clearTimeout(i._timeoutTimer),i._running=!1,!(i._aborted&&!N)&&(q=q instanceof Xn?q:new Xn(l,R,null,(we=q)===null||we===void 0?void 0:we.message),q.startTime=K,q.endTime=Date.now(),q.isTimeout=N,q.options={index:i._index,range:i._range,vid:i._vid,priOptions:i._priOptions},le(q))})})}},{key:"cancel",value:function(){var t=sa(Lt().mark(function a(){return Lt().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!this._aborted){l.next=2;break}return l.abrupt("return");case 2:if(this._aborted=!0,this._running=!1,!this._response){l.next=14;break}if(l.prev=5,!this._reader){l.next=9;break}return l.next=9,this._reader.cancel();case 9:l.next=13;break;case 11:l.prev=11,l.t0=l.catch(5);case 13:this._response=this._reader=null;case 14:if(this._abortController){try{this._abortController.abort()}catch{}this._abortController=null}this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions});case 16:case"end":return l.stop()}},a,this,[[5,11]])}));function e(){return t.apply(this,arguments)}return e}()},{key:"_loadChunk",value:function(e,a,i,l){var c=this;if(!e.body||!e.body.getReader){this._running=!1;var u=new Xn(e.url,"",e,"onProgress of bad response.body.getReader");u.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},this.reject(u);return}this._onProcessMinLen>0&&(this._cache=new Uint8Array(_h),this._writeIdx=0);var d=this._reader=e.body.getReader(),f,h,p,v=function(){var g=sa(Lt().mark(function m(){var _,b,y,w,S,D,C,B,A,L;return Lt().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return h=Date.now(),E.prev=1,E.next=4,d.read();case 4:f=E.sent,p=Date.now(),E.next=13;break;case 8:return E.prev=8,E.t0=E.catch(1),p=Date.now(),c._aborted||(c._running=!1,E.t0.options={index:c._index,range:c._range,vid:c._vid,priOptions:c._priOptions},c.reject(E.t0)),E.abrupt("return");case 13:if(b=((_=c._range)===null||_===void 0?void 0:_.length)>0?c._range[0]:0,y=b+c._receivedLength,!c._aborted){E.next=19;break}return c._running=!1,a(void 0,!1,{range:[y,y],vid:c._vid,index:c._index,startTime:h,endTime:p,st:i,firstByteTime:l,priOptions:c._priOptions},e),E.abrupt("return");case 19:w=f.value?f.value.byteLength:0,c._receivedLength+=w,c._logger.debug("\u3010fetchLoader,onProgress call\u3011,task,",c._range,", start,",y,", end,",b+c._receivedLength,", done,",f.done),c._onProcessMinLen>0?c._writeIdx+w>=c._onProcessMinLen||f.done?(S=new Uint8Array(c._writeIdx+w),S.set(c._cache.slice(0,c._writeIdx),0),w>0&&S.set(f.value,c._writeIdx),c._writeIdx=0,c._logger.debug("\u3010fetchLoader,onProgress enough\u3011,done,",f.done,",len,",S.byteLength,", writeIdx,",c._writeIdx)):w>0&&c._writeIdx+w<_h?(c._cache.set(f.value,c._writeIdx),c._writeIdx+=w,c._logger.debug("\u3010fetchLoader,onProgress cache\u3011,len,",w,", writeIdx,",c._writeIdx)):w>0&&(D=new Uint8Array(c._writeIdx+w+2048),c._logger.debug("\u3010fetchLoader,onProgress extra start\u3011,size,",c._writeIdx+w+2048,", datalen,",w,", writeIdx,",c._writeIdx),D.set(c._cache.slice(0,c._writeIdx),0),w>0&&D.set(f.value,c._writeIdx),c._writeIdx+=w,delete c._cache,c._cache=D,c._logger.debug("\u3010fetchLoader,onProgress extra end\u3011,len,",w,", writeIdx,",c._writeIdx)):S=f.value,(S&&S.byteLength>0||f.done)&&(c._firstMaxChunkSize&&(c._firtstByte?c._cacheData&&(B=new Uint8Array(c._cacheData.byteLength+S.byteLength),B.set(c._cacheData,0),B.set(S,c._cacheData.byteLength),S=B,c._cacheData=null):(c._firtstByte++,C=S.slice(0,c._firstMaxChunkSize),c._cacheData=S.slice(c._firstMaxChunkSize),S=C)),a(S,f.done,{range:[c._range[0]+c._receivedLength-(S?S.byteLength:0),c._range[0]+c._receivedLength],vid:c._vid,index:c._index,startTime:h,endTime:p,st:i,firstByteTime:l,priOptions:c._priOptions},e)),f.done?(A=Date.now()-i,L=Nl(c._receivedLength,A),c.emit(be.REAL_TIME_SPEED,{speed:L,len:c._receivedLength,time:A,vid:c._vid,index:c._index,range:c._range,priOptions:c._priOptions}),c._running=!1,c._logger.debug("[fetchLoader onProgress end],task,",c._range,",done,",f.done),c.resolve(Ml(f,!0,e,e.headers.get("Content-Length"),e.headers.get("age"),i,l,c._index,c._range,c._vid,c._priOptions))):c._firstMaxChunkSize?setTimeout(function(){v()},0):v();case 25:case"end":return E.stop()}},m,null,[[1,8]])}));return function(){return g.apply(this,arguments)}}();v()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}}],[{key:"isSupported",value:function(){return typeof fetch<"u"}}]),n}(io);function iS(o){return rr({loaderType:Ga.FETCH,retry:0,retryDelay:0,timeout:0,request:null,onTimeout:void 0,onProgress:void 0,onRetryError:void 0,transformRequest:void 0,transformResponse:void 0,transformError:void 0,responseType:ur.TEXT,range:void 0,url:"",params:void 0,method:"GET",headers:{},body:void 0,mode:void 0,credentials:void 0,cache:void 0,redirect:void 0,referrer:void 0,referrerPolicy:void 0,integrity:void 0,onProcessMinLen:0},o)}var sS=function(o){ir(n,o);var r=lr(n);function n(){var t;return cn(this,n),t=r.call(this),ee(_e(t),"_xhr",null),ee(_e(t),"_aborted",!1),ee(_e(t),"_timeoutTimer",null),ee(_e(t),"_range",null),ee(_e(t),"_receivedLength",0),ee(_e(t),"_url",null),ee(_e(t),"_onProgress",null),ee(_e(t),"_index",-1),ee(_e(t),"_headers",null),ee(_e(t),"_currentChunkSizeKB",384),ee(_e(t),"_timeout",null),ee(_e(t),"_xhr",null),ee(_e(t),"_withCredentials",null),ee(_e(t),"_startTime",-1),ee(_e(t),"_loadCompleteResolve",null),ee(_e(t),"_loadCompleteReject",null),ee(_e(t),"_runing",!1),ee(_e(t),"_logger",!1),ee(_e(t),"_vid",""),ee(_e(t),"_responseType",void 0),ee(_e(t),"_credentials",void 0),ee(_e(t),"_method",void 0),ee(_e(t),"_transformResponse",void 0),ee(_e(t),"_firstRtt",void 0),ee(_e(t),"_onCancel",null),ee(_e(t),"_priOptions",null),t}return un(n,[{key:"load",value:function(e){var a=this;clearTimeout(this._timeoutTimer),this._logger=e.logger,this._range=e.range,this._onProgress=e.onProgress,this._index=e.index,this._headers=e.headers,this._withCredentials=e.credentials==="include"||e.credentials==="same-origin",this._body=e.body||null,e.method&&(this._method=e.method),this._timeout=e.timeout||null,this._runing=!0,this._vid=e.vid||e.url,this._responseType=e.responseType,this._firstRtt=-1,this._onTimeout=e.onTimeout,this._onCancel=e.onCancel,this._request=e.request,this._priOptions=e.priOptions||{},this._logger.debug("\u3010xhrLoader task\u3011, range",this._range),this._url=yh(e.url,e.params);var i=Date.now();return new Promise(function(l,c){a._loadCompleteResolve=l,a._loadCompleteReject=c,a._startLoad()}).catch(function(l){if(clearTimeout(a._timeoutTimer),a._runing=!1,!a._aborted)throw l=l instanceof Xn?l:new Xn(a._url,a._request),l.startTime=i,l.endTime=Date.now(),l.options={index:a._index,vid:a._vid,priOptions:a._priOptions},l})}},{key:"_startLoad",value:function(){var e=null;if(this._responseType===ur.ARRAY_BUFFER&&this._range&&this._range.length>1)if(this._onProgress){this._firstRtt=-1;var a=this._currentChunkSizeKB*1024,i=this._range[0]+this._receivedLength,l=this._range[1];a<this._range[1]-i&&(l=i+a),e=[i,l],this._logger.debug("[xhr_loader->],tast :",this._range,", SubRange, ",e)}else e=this._range,this._logger.debug("[xhr_loader->],tast :",this._range,", allRange, ",e);this._internalOpen(e)}},{key:"_internalOpen",value:function(e){var a=this;try{this._startTime=Date.now();var i=this._xhr=new XMLHttpRequest;i.open(this._method||"GET",this._url,!0),i.responseType=this._responseType,this._timeout&&(i.timeout=this._timeout),i.withCredentials=this._withCredentials,i.onload=this._onLoad.bind(this),i.onreadystatechange=this._onReadyStatechange.bind(this),i.onerror=function(u){var d,f,h;a._running=!1;var p=new Xn(a._url,a._request,u==null||(d=u.currentTarget)===null||d===void 0?void 0:d.response,"xhr.onerror.status:"+(u==null||(f=u.currentTarget)===null||f===void 0?void 0:f.status)+",statusText,"+(u==null||(h=u.currentTarget)===null||h===void 0?void 0:h.statusText));p.options={index:a._index,range:a._range,vid:a._vid,priOptions:a._priOptions},a._loadCompleteReject(p)},i.ontimeout=function(u){a.cancel();var d=new Xn(a._url,a._request,{status:408},"timeout");a._onTimeout&&(d.isTimeout=!0,a._onTimeout(d,{index:a._index,range:a._range,vid:a._vid,priOptions:a._priOptions})),d.options={index:a._index,range:a._range,vid:a._vid,priOptions:a._priOptions},a._loadCompleteReject(d)};var l=this._headers||{},c=mh(e);c&&(l.Range=c),l&&Object.keys(l).forEach(function(u){i.setRequestHeader(u,l[u])}),this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),i.send(this._body)}catch(u){u.options={index:this._index,range:e,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(u)}}},{key:"_onReadyStatechange",value:function(e){var a=e.target;a.readyState===2&&this._firstRtt<0&&(this._firstRtt=Date.now())}},{key:"_onLoad",value:function(e){var a,i=e.target.status;if(i<200||i>299){var l=new Xn(this._url,null,rr(rr({},e.target.response),{},{status:i}),"bad response,status:"+i);return l.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(l)}var c=null,u=!1,d,f=((a=this._range)===null||a===void 0?void 0:a.length)>0?this._range[0]:0;if(this._responseType===ur.ARRAY_BUFFER){var h,p=new Uint8Array(e.target.response);if(d=f+this._receivedLength,p&&p.byteLength>0){this._receivedLength+=p.byteLength;var v=Date.now()-this._startTime,g=Nl(this._receivedLength,v);this.emit(be.REAL_TIME_SPEED,{speed:g,len:this._receivedLength,time:v,vid:this._vid,index:this._index,range:[d,f+this._receivedLength],priOptions:this._priOptions})}c=p,((h=this._range)===null||h===void 0?void 0:h.length)>1&&this._range[1]&&this._receivedLength<this._range[1]-this._range[0]?u=!1:u=!0,this._logger.debug("[xhr load done->], tast :",this._range,", start",d,"end ",f+this._receivedLength,",dataLen,",p?p.byteLength:0,",receivedLength",this._receivedLength,",index,",this._index,", done,",u)}else u=!0,c=e.target.response;var m={ok:i>=200&&i<300,status:i,statusText:this._xhr.statusText,url:this._xhr.responseURL,headers:this._getHeaders(this._xhr),body:this._xhr.response};this._transformResponse&&(m=this._transformResponse(m,this._url)||m),this._onProgress&&this._onProgress(c,u,{index:this._index,vid:this._vid,range:[d,f+this._receivedLength],startTime:this._startTime,endTime:Date.now(),priOptions:this._priOptions},m),u?(this._runing=!1,this._loadCompleteResolve&&this._loadCompleteResolve(Ml(this._onProgress?null:c,u,m,m.headers["content-length"],m.headers.age,this._startTime,this._firstRtt,this._index,this._range,this._vid,this._priOptions))):this._startLoad()}},{key:"cancel",value:function(){if(!this._aborted&&(this._aborted=!0,this._runing=!1,Pi(ja(n.prototype),"removeAllListeners",this).call(this),this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions}),this._xhr))return this._xhr.abort()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}},{key:"_getHeaders",value:function(e){var a=e.getAllResponseHeaders().trim().split(`\r
|
|
258
|
-
`),i={},l=QC(a),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,d=u.split(": ");i[d[0].toLowerCase()]=d.slice(1).join(": ")}}catch(f){l.e(f)}finally{l.f()}return i}}],[{key:"isSupported",value:function(){return typeof XMLHttpRequest<"u"}}]),n}(io),lS=["retry","retryDelay","onRetryError","transformError"],cS=function(){function o(r,n){cn(this,o),this.promise=go(),this.alive=!!n.onProgress,!n.logger&&(n.logger=new Yn("Loader")),this._loaderType=r,this._loader=r===Ga.FETCH&&typeof fetch<"u"?new Rl:new sS,this._config=n,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=n.retryCheckFunc,this._logger=n.logger}return un(o,[{key:"exec",value:function(){var n=this,t=this._config,e=t.retry,a=t.retryDelay,i=t.onRetryError,l=t.transformError,c=KC(t,lS),u=function(){var d=sa(Lt().mark(function f(){var h,p,v;return Lt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.prev=0,m.next=3,n._loader.load(c);case 3:h=m.sent,n.promise.resolve(h),m.next=27;break;case 7:if(m.prev=7,m.t0=m.catch(0),n._loader.running=!1,n._logger.debug("[task request catch err]",m.t0),!n._canceled){m.next=13;break}return m.abrupt("return");case 13:if(m.t0.loaderType=n._loaderType,m.t0.retryCount=n._retryCount,p=m.t0,l&&(p=l(p)||p),i&&n._retryCount>0&&i(p,n._retryCount,{index:c.index,vid:c.vid,range:c.range,priOptions:c.priOptions}),n._retryCount++,v=!0,n._retryCheckFunc&&(v=n._retryCheckFunc(m.t0)),!(v&&n._retryCount<=e)){m.next=26;break}return clearTimeout(n._retryTimer),n._logger.debug("[task request setTimeout],retry",n._retryCount,",retry range,",c.range),n._retryTimer=setTimeout(u,a),m.abrupt("return");case 26:n.promise.reject(p);case 27:case"end":return m.stop()}},f,null,[[0,7]])}));return function(){return d.apply(this,arguments)}}();return u(),this.promise}},{key:"cancel",value:function(){var r=sa(Lt().mark(function t(){return Lt().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return clearTimeout(this._retryTimer),this._canceled=!0,this._loader.running=!1,a.abrupt("return",this._loader.cancel());case 4:case"end":return a.stop()}},t,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"running",get:function(){return this._loader&&this._loader.running}},{key:"loader",get:function(){return this._loader}}]),o}();function uS(o){return o&&!o.paused&&!o.ended&&o.playbackRate!==0&&o.readyState!==0}function dS(o){if(!o)return{};if(typeof o.getVideoPlaybackQuality=="function"){var r=o.getVideoPlaybackQuality();return{droppedVideoFrames:r.droppedVideoFrames||r.corruptedVideoFrames,totalVideoFrames:r.totalVideoFrames,creationTime:r.creationTime}}return{droppedVideoFrames:o.webkitDroppedFrameCount,totalVideoFrames:o.webkitDecodedFrameCount,creationTime:performance.now()}}function Ii(){for(var o=arguments.length,r=new Array(o),n=0;n<o;n++)r[n]=arguments[n];if(r=r.filter(Boolean),r.length<2)return r[0];var t=new Uint8Array(r.reduce(function(a,i){return a+i.byteLength},0)),e=0;return r.forEach(function(a){t.set(a,e),e+=a.byteLength}),t}function fS(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new Promise(function(r){return setTimeout(r,o)})}var _o=function(o){ir(n,o);var r=lr(n);function n(t){var e;return cn(this,n),e=r.call(this,t),ee(_e(e),"type",Ga.FETCH),ee(_e(e),"_queue",[]),ee(_e(e),"_alive",[]),ee(_e(e),"_currentTask",null),ee(_e(e),"_finnalUrl",""),ee(_e(e),"_config",void 0),e._config=iS(t),(e._config.loaderType===Ga.XHR||!Rl.isSupported())&&(e.type=Ga.XHR),e.log=t.logger,e}return un(n,[{key:"isFetch",value:function(){return this.type===Ga.FETCH}},{key:"load",value:function(e){var a=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};typeof e=="string"||!e?i.url=e||i.url||this._config.url:i=e,i=Object.assign({},this._config,i),i.params&&(i.params=Object.assign({},i.params)),i.headers&&vh(i.headers)&&(i.headers=Object.assign({},i.headers)),i.body&&vh(i.body)&&(i.body=Object.assign({},i.body)),i.transformRequest&&(i=i.transformRequest(i)||i),i.logger=this.log;var l=new cS(this.type,i);return l.loader.on(be.REAL_TIME_SPEED,function(c){a.emit(be.REAL_TIME_SPEED,c)}),this._queue.push(l),this._queue.length===1&&(!this._currentTask||!this._currentTask.running)&&this._processTask(),l.promise}},{key:"cancel",value:function(){var t=sa(Lt().mark(function a(){var i;return Lt().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return i=this._queue.map(function(u){return u.cancel()}).concat(this._alive.map(function(u){return u.cancel()})),this._currentTask&&i.push(this._currentTask.cancel()),this._queue=[],this._alive=[],c.next=6,Promise.all(i);case 6:return c.next=8,fS();case 8:case"end":return c.stop()}},a,this)}));function e(){return t.apply(this,arguments)}return e}()},{key:"_processTask",value:function(){var e=this;if(this._currentTask=this._queue.shift(),!!this._currentTask){this._currentTask.alive&&this._alive.push(this._currentTask);var a=this._currentTask.exec().catch(function(i){});!(a&&typeof a.finally=="function")||a.finally(function(){var i,l;(i=e._currentTask)!==null&&i!==void 0&&i.alive&&((l=e._alive)===null||l===void 0?void 0:l.length)>0&&(e._alive=e._alive.filter(function(c){return c&&c!==e._currentTask})),e._processTask()})}}}],[{key:"isFetchSupport",value:function(){return Rl.isSupported()}}]),n}(io),hS=function(){function o(){cn(this,o),ee(this,"_prevCurrentTime",0)}return un(o,[{key:"do",value:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,e=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!!n){var i=n.currentTime,l=0;if(this._prevCurrentTime===i){var c=dn.info(dn.get(n),i);if(!c.buffers.length)return;e&&c.nextStart||c.nextStart&&c.nextStart-i<t?l=c.nextStart+.1:c.end&&c.end-i>a&&!n.seeking&&(l=i+.1)}this._prevCurrentTime=i,l&&i!==l&&(n.currentTime=l)}}}]),o}(),pS=function(){function o(r){var n=this;cn(this,o),ee(this,"_seiSet",new Set),this.emitter=r,r.on(be.SEI,function(t){t&&n._seiSet.add(t)})}return un(o,[{key:"throw",value:function(n,t){var e=this;if(!(n==null||!this._seiSet.size)){var a=n-.2,i=n+.2,l=[];this._seiSet.forEach(function(c){c.time>=a&&c.time<=i&&l.push(c)}),l.forEach(function(c){e._seiSet.delete(c),e.emitter.emit(be.SEI_IN_TIME,c)}),t&&this._seiSet.forEach(function(c){c.time<n-5&&e._seiSet.delete(c)})}}},{key:"reset",value:function(){this._seiSet.clear()}}]),o}(),vS=1e3,mS=50,gS=3,yS=3e3,_S=function(){function o(r){cn(this,o),ee(this,"_chunkSpeed",0),ee(this,"_chunkCache",[]),ee(this,"_speeds",[]),ee(this,"_totalSize",0),ee(this,"_totalCost",0),this._opts=r||{}}return un(o,[{key:"addRecord",value:function(n,t){!n||!t||(this._speeds.push(8e3*n/t),this._speeds=this._speeds.slice(-gS))}},{key:"addChunkRecord",value:function(n,t){var e,a;if(!(!n||!t||n<(((e=this._opts)===null||e===void 0?void 0:e.skipChunkSize)||vS))){this._totalSize+=n,this._totalCost+=t,this._chunkSpeed=8e3*n/t,this._chunkCache.push({size:n,duration:t,timestamp:performance.now()});var i=((a=this._opts)===null||a===void 0?void 0:a.chunkCountForSpeed)||mS;this._chunkCache.length>i&&(this._chunkCache=this._chunkCache.slice(-i))}}},{key:"getAvgSpeed",value:function(){var n;if(!this._chunkCache.length&&!this._speeds.length)return 0;if(this._speeds.length)return this._speeds.reduce(function(l,c){return l+=c})/this._speeds.length;var t=this._chunkCache[this._chunkCache.length-1],e=performance.now()-t.timestamp;e>(((n=this._opts)===null||n===void 0?void 0:n.longtimeNoReceived)||yS)&&this._chunkCache.push({size:0,duration:e,timestamp:performance.now()});var a=this._chunkCache.reduce(function(l,c){return l+=c.size},0),i=this._chunkCache.reduce(function(l,c){return l+=c.duration},0);return 8e3*a/i}},{key:"getLatestSpeed",value:function(){return!this._chunkCache.length&&!this._speeds.length?0:this._speeds.length?this._speeds[this._speeds.length-1]:this._chunkSpeed}},{key:"getTotalSize",value:function(){return this._totalSize}},{key:"getTotalCost",value:function(){return this._totalCost}},{key:"reset",value:function(){this._chunkCache=[],this._speeds=[],this._totalSize=0,this._totalCost=0}}]),o}(),wh=function(){function o(r){cn(this,o),ee(this,"encodeType",""),ee(this,"audioCodec",""),ee(this,"videoCodec",""),ee(this,"domain",""),ee(this,"fps",0),ee(this,"bitrate",0),ee(this,"width",0),ee(this,"height",0),ee(this,"samplerate",0),ee(this,"channelCount",0),ee(this,"gop",0),ee(this,"_bitsAccumulateSize",0),ee(this,"_bitsAccumulateDuration",0),ee(this,"_startGopId",-1),this._timescale=r}return un(o,[{key:"getStats",value:function(){return{encodeType:this.encodeType,audioCodec:this.audioCodec,videoCodec:this.videoCodec,domain:this.domain,fps:this.fps,bitrate:this.bitrate,width:this.width,height:this.height,samplerate:this.samplerate,channelCount:this.channelCount,gop:this.gop}}},{key:"setEncodeType",value:function(n){this.encodeType=n}},{key:"setFpsFromScriptData",value:function(n){var t,e=n.data,a=e==null||(t=e.onMetaData)===null||t===void 0?void 0:t.framerate;a&&a>0&&a<100&&(this.fps=a)}},{key:"setVideoMeta",value:function(n){if(this.width=n.width,this.height=n.height,this.videoCodec=n.codec,this.encodeType=n.codecType,n.fpsNum&&n.fpsDen){var t=n.fpsNum/n.fpsDen;t>0&&t<100&&(this.fps=t)}}},{key:"setAudioMeta",value:function(n){this.audioCodec=n.codec,this.samplerate=n.sampleRate,this.channelCount=n.channelCount}},{key:"setDomain",value:function(n){this.domain=n.split("/").slice(2,3)[0]}},{key:"updateBitrate",value:function(n){var t=this;if((!this.fps||this.fps>=100)&&n.length){var e=n.reduce(function(a,i){return a+=i.duration},0)/n.length;this.fps=Math.round(this._timescale/e)}n.forEach(function(a){t._startGopId===-1&&(t._startGopId=a.gopId),a.gopId===t._startGopId&&t.gop++,t._bitsAccumulateDuration+=a.duration/(t._timescale/1e3),t._bitsAccumulateSize+=a.units.reduce(function(i,l){return i+=l.length},0),t._bitsAccumulateDuration>=1e3&&(t.bitrate=t._bitsAccumulateSize*8,t._bitsAccumulateDuration=0,t._bitsAccumulateSize=0)})}}]),o}(),wS=function(){function o(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;cn(this,o),ee(this,"_core",null),ee(this,"_samples",[]),this._core=r,this._timescale=n,this._stats=new wh(n),this._bindEvents()}return un(o,[{key:"getStats",value:function(){var n,t,e,a,i,l,c,u,d,f,h,p=((n=this._core)===null||n===void 0?void 0:n.media)||{},v=p.currentTime,g=v===void 0?0:v,m=p.decodeFps,_=m===void 0?0:m;return rr(rr({},this._stats.getStats()),{},{downloadSpeed:((t=this._core)===null||t===void 0||(e=t.speedInfo)===null||e===void 0?void 0:e.call(t).speed)||0,avgSpeed:((a=this._core)===null||a===void 0||(i=a.speedInfo)===null||i===void 0?void 0:i.call(a).avgSpeed)||0,totalReceivedByte:((l=this._core)===null||l===void 0||(c=l.speedInfo)===null||c===void 0?void 0:c.call(l).totalSize)||0,totalReceivedCost:((u=this._core)===null||u===void 0||(d=u.speedInfo)===null||d===void 0?void 0:d.call(u).totalCost)||0,currentTime:g,bufferEnd:((f=this._core)===null||f===void 0||(h=f.bufferInfo())===null||h===void 0?void 0:h.remaining)||0,decodeFps:_})}},{key:"_bindEvents",value:function(){var n=this;this._core.on(be.DEMUXED_TRACK,function(t){var e=t.videoTrack;return n._stats.updateBitrate(e.samples)}),this._core.on(be.FLV_SCRIPT_DATA,function(t){n._stats.setFpsFromScriptData(t)}),this._core.on(be.METADATA_PARSED,function(t){t.type==="video"?n._stats.setVideoMeta(t.track):n._stats.setAudioMeta(t.track)}),this._core.on(be.TTFB,function(t){n._stats.setDomain(t.responseUrl)})}},{key:"reset",value:function(){this._samples=[],this._stats=new wh(this._timescale)}}]),o}();function bS(o,r){var n=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(n!=null){var t,e,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(o)).next,r===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(t=a.call(n)).done)&&(l.push(t.value),l.length!==r);c=!0);}catch(d){u=!0,e=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw e}}return l}}function pt(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function bh(o,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(o,Eh(t.key),t)}}function vt(o,r,n){return r&&bh(o.prototype,r),n&&bh(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}function ne(o,r,n){return r=Eh(r),r in o?Object.defineProperty(o,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[r]=n,o}function ES(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),r&&Vl(o,r)}function Mi(o){return Mi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mi(o)}function Vl(o,r){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Vl(o,r)}function CS(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function SS(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function kS(o,r){if(r&&(typeof r=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SS(o)}function TS(o){var r=CS();return function(){var t=Mi(o),e;if(r){var a=Mi(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return kS(this,e)}}function xS(o,r){return AS(o)||bS(o,r)||Fl(o,r)||OS()}function hn(o){return BS(o)||DS(o)||Fl(o)||PS()}function BS(o){if(Array.isArray(o))return Hl(o)}function AS(o){if(Array.isArray(o))return o}function DS(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function Fl(o,r){if(!!o){if(typeof o=="string")return Hl(o,r);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hl(o,r)}}function Hl(o,r){(r==null||r>o.length)&&(r=o.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=o[n];return t}function PS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
259
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
260
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LS(o,r){var n=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!n){if(Array.isArray(o)||(n=Fl(o))||r&&o&&typeof o.length=="number"){n&&(o=n);var t=0,e=function(){};return{s:e,n:function(){return t>=o.length?{done:!0}:{done:!1,value:o[t++]}},e:function(c){throw c},f:e}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
261
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,l;return{s:function(){n=n.call(o)},n:function(){var c=n.next();return a=c.done,c},e:function(c){i=!0,l=c},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}}}function IS(o,r){if(typeof o!="object"||o===null)return o;var n=o[Symbol.toPrimitive];if(n!==void 0){var t=n.call(o,r||"default");if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(o)}function Eh(o){var r=IS(o,"string");return typeof r=="symbol"?r:String(r)}var Ca={VIDEO:"video",AUDIO:"audio",METADATA:"metadata"},Sa={AV1:"av1",AVC:"avc",HEVC:"hevc"},En={AAC:"aac",G711PCMA:"g7110a",G711PCMU:"g7110m",OPUS:"opus",MP3:"mp3"},xn={LARGE_AV_SHIFT:"LARGE_AV_SHIFT",LARGE_VIDEO_GAP:"LARGE_VIDEO_GAP",LARGE_VIDEO_GAP_BETWEEN_CHUNK:"LARGE_VIDEO_GAP_BETWEEN_CHUNK",LARGE_AUDIO_GAP:"LARGE_AUDIO_GAP",AUDIO_FILLED:"AUDIO_FILLED",AUDIO_DROPPED:"AUDIO_DROPPED"},Ch=function(){function o(){pt(this,o),ne(this,"id",1),ne(this,"type",Ca.VIDEO),ne(this,"codecType",Sa.AVC),ne(this,"pid",-1),ne(this,"hvcC",void 0),ne(this,"codec",""),ne(this,"timescale",0),ne(this,"formatTimescale",0),ne(this,"sequenceNumber",0),ne(this,"baseMediaDecodeTime",0),ne(this,"baseDts",0),ne(this,"duration",0),ne(this,"warnings",[]),ne(this,"samples",[]),ne(this,"pps",[]),ne(this,"sps",[]),ne(this,"vps",[]),ne(this,"fpsNum",0),ne(this,"fpsDen",0),ne(this,"sarRatio",[]),ne(this,"width",0),ne(this,"height",0),ne(this,"nalUnitSize",4),ne(this,"present",!1),ne(this,"isVideoEncryption",!1),ne(this,"isAudioEncryption",!1),ne(this,"isVideo",!0),ne(this,"lastKeyFrameDts",0),ne(this,"kid",null),ne(this,"pssh",null),ne(this,"ext",void 0)}return vt(o,[{key:"reset",value:function(){this.sequenceNumber=this.width=this.height=this.fpsDen=this.fpsNum=this.duration=this.baseMediaDecodeTime=this.timescale=0,this.codec="",this.present=!1,this.pid=-1,this.pps=[],this.sps=[],this.vps=[],this.sarRatio=[],this.samples=[],this.warnings=[],this.hvcC=null}},{key:"firstDts",get:function(){return this.samples.length?this.samples[0].dts:null}},{key:"firstPts",get:function(){return this.samples.length?this.samples[0].pts:null}},{key:"samplesDuration",get:function(){if(this.samples.length>0){var n=this.samples[0],t=this.samples[this.samples.length-1];return t.dts-n.dts+t.duration}return 0}},{key:"exist",value:function(){return/av01/.test(this.codec)?!0:!!(this.pps.length&&this.sps.length&&this.codec)}},{key:"hasSample",value:function(){return!!this.samples.length}},{key:"isEncryption",get:function(){return this.isVideoEncryption}}]),o}(),Sh=function(){function o(){pt(this,o),ne(this,"id",2),ne(this,"type",Ca.AUDIO),ne(this,"codecType",En.AAC),ne(this,"pid",-1),ne(this,"codec",""),ne(this,"container",""),ne(this,"sequenceNumber",0),ne(this,"sampleDuration",0),ne(this,"timescale",0),ne(this,"formatTimescale",0),ne(this,"baseMediaDecodeTime",0),ne(this,"duration",0),ne(this,"warnings",[]),ne(this,"samples",[]),ne(this,"baseDts",0),ne(this,"sampleSize",16),ne(this,"sampleRate",0),ne(this,"channelCount",0),ne(this,"objectType",0),ne(this,"sampleRateIndex",0),ne(this,"config",[]),ne(this,"present",!1),ne(this,"isVideoEncryption",!1),ne(this,"isAudioEncryption",!1),ne(this,"kid",null),ne(this,"ext",void 0)}return vt(o,[{key:"reset",value:function(){this.sequenceNumber=0,this.timescale=0,this.sampleDuration=0,this.sampleRate=0,this.channelCount=0,this.baseMediaDecodeTime=0,this.present=!1,this.pid=-1,this.codec="",this.samples=[],this.config=[],this.warnings=[]}},{key:"exist",value:function(){return!!(this.sampleRate&&this.channelCount&&(this.codec||this.container)&&(this.codecType===En.AAC||this.codecType===En.G711PCMA||this.codecType===En.G711PCMU||this.codecType===En.OPUS||this.codecType===En.MP3))}},{key:"hasSample",value:function(){return!!this.samples.length}},{key:"isEncryption",get:function(){return this.isAudioEncryption}},{key:"firstDts",get:function(){return this.samples.length?this.samples[0].dts:null}},{key:"firstPts",get:function(){return this.samples.length?this.samples[0].pts:null}},{key:"samplesDuration",get:function(){if(this.samples.length>0){var n=this.samples[0],t=this.samples[this.samples.length-1];return t.dts-n.dts+t.duration}return 0}}]),o}(),zl=function(){function o(r,n,t){pt(this,o),ne(this,"flag",{}),ne(this,"keyframe",!1),ne(this,"gopId",0),ne(this,"duration",0),ne(this,"size",0),ne(this,"units",[]),ne(this,"chromaFormat",420),this.originPts=this.pts=r,this.originDts=this.dts=n,t&&(this.units=t)}return vt(o,[{key:"cts",get:function(){return this.pts-this.dts}},{key:"setToKeyframe",value:function(){this.keyframe=!0,this.flag.dependsOn=2,this.flag.isNonSyncSample=0}}]),o}(),dr=vt(function o(r,n,t,e){pt(this,o),ne(this,"duration",1024),ne(this,"flag",{dependsOn:2,isNonSyncSample:0}),ne(this,"keyframe",!0),this.originPts=this.pts=this.dts=r,this.data=n,this.size=n.byteLength,this.sampleOffset=e,t&&(this.duration=t)}),MS=vt(function o(r,n){pt(this,o),ne(this,"time",0),this.data=r,this.originPts=this.pts=n}),NS=function(o){ES(n,o);var r=TS(n);function n(){return pt(this,n),r.apply(this,arguments)}return vt(n)}(MS),kh=function(){function o(){pt(this,o),ne(this,"id",3),ne(this,"type",Ca.METADATA),ne(this,"timescale",0),ne(this,"flvScriptSamples",[]),ne(this,"seiSamples",[])}return vt(o,[{key:"exist",value:function(){return!!((this.flvScriptSamples.length||this.seiSamples.length)&&this.timescale)}},{key:"reset",value:function(){this.timescale=0,this.flvScriptSamples=[],this.seiSamples=[]}},{key:"hasSample",value:function(){return!!(this.flvScriptSamples.length||this.seiSamples.length)}}]),o}(),Ni=function(){function o(r){pt(this,o),this.name=r||"",this._prefix="[".concat(this.name,"]")}return vt(o,[{key:"warn",value:function(){var n;if(!o.disabled){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];(n=console).warn.apply(n,[this._prefix].concat(e))}}}],[{key:"enable",value:function(){o.disabled=!1}},{key:"disable",value:function(){o.disabled=!0}}]),o}();ne(Ni,"disabled",!0);var Ri=typeof window<"u",Ul=Ri&&navigator.userAgent.toLocaleLowerCase(),RS=Ri&&/^((?!chrome|android).)*safari/.test(Ul),Th=Ri&&Ul.includes("firefox"),VS=Ri&&Ul.includes("android"),la=function(){function o(){pt(this,o)}return vt(o,null,[{key:"getRateIndexByRate",value:function(n){return o.FREQ.indexOf(n)}},{key:"parseADTS",value:function(n,t){for(var e=n.length,a=0;a+2<e&&!(n[a]===255&&(n[a+1]&246)===240);)a++;if(!(a>=e)){var i=a,l=[],c=(n[a+2]&60)>>>2,u=o.FREQ[c];if(!u)throw new Error("Invalid sampling index: ".concat(c));for(var d=((n[a+2]&192)>>>6)+1,f=(n[a+2]&1)<<2|(n[a+3]&192)>>>6,h=o._getConfig(c,f,d),p=h.config,v=h.codec,g,m,_=0,b=o.getFrameDuration(u);a+7<e;){if(n[a]!==255||(n[a+1]&246)!==240){a++;continue}if(m=(n[a+3]&3)<<11|n[a+4]<<3|(n[a+5]&224)>>5,!m||e-a<m)break;g=(~n[a+1]&1)*2,l.push({pts:t+_*b,data:n.subarray(a+7+g,a+m)}),_++,a+=m}return{skip:i,remaining:a>=e?void 0:n.subarray(a),frames:l,samplingFrequencyIndex:c,sampleRate:u,objectType:d,channelCount:f,codec:v,config:p,originCodec:"mp4a.40.".concat(d)}}}},{key:"parseAudioSpecificConfig",value:function(n){if(!!n.length){var t=n[0]>>>3,e=(n[0]&7)<<1|n[1]>>>7,a=(n[1]&120)>>>3,i=o.FREQ[e];if(!!i){var l=o._getConfig(e,a,t),c=l.config,u=l.codec;return{samplingFrequencyIndex:e,sampleRate:i,objectType:t,channelCount:a,config:c,codec:u,originCodec:"mp4a.40.".concat(t)}}}}},{key:"getFrameDuration",value:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:9e4;return 1024*t/n}},{key:"_getConfig",value:function(n,t,e){var a=[],i,l;return Th?n>=6?(i=5,l=n-3):(i=2,l=n):VS?(i=2,l=n):(i=5,l=n,n>=6?l=n-3:t===1&&(i=2,l=n)),a[0]=i<<3,a[0]|=(n&14)>>1,a[1]=(n&1)<<7,a[1]|=t<<3,i===5&&(a[1]|=(l&14)>>1,a[2]=(l&1)<<7,a[2]|=2<<2,a[3]=0),{config:a,codec:"mp4a.40.".concat(i)}}},{key:"getSilentFrame",value:function(n,t){switch(n){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}]),o}();ne(la,"FREQ",[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350]);function Cn(){for(var o=arguments.length,r=new Array(o),n=0;n<o;n++)r[n]=arguments[n];r=r.filter(Boolean);var t=new Uint8Array(r.reduce(function(a,i){return a+i.byteLength},0)),e=0;return r.forEach(function(a){t.set(a,e),e+=a.byteLength}),t}var FS=Math.pow(2,32);function st(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(o[r]<<8)+(o[r+1]||0)}function HS(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(o[r]<<16)+(o[r+1]<<8)+(o[r+2]||0)}function fe(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(o[r]<<24>>>0)+(o[r+1]<<16)+(o[r+2]<<8)+(o[r+3]||0)}function Wa(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return fe(o,r)*FS+fe(o,r+4)}function xh(o){for(var r="avc1.",n,t=0;t<3;t++)n=o[t].toString(16),n.length<2&&(n="0".concat(n)),r+=n;return r}function Bh(o){if(!Array.isArray(o)){for(var r=[],n="",t=0;t<o.length;t++)t%2&&(n=o[t-1]+o[t],r.push(parseInt(n,16)),n="");return r}return o.map(function(e){return parseInt(e,16)})}function jl(o,r){return Number(o+"."+r)}function zS(o){if(o.length<5)return 0;var r=Math.hypot(o[0],o[3]),n=Math.hypot(o[1],o[4]);return r===0||n===0?0:180*Math.atan2(o[1]/n,o[0]/r)/Math.PI}var ka=function(){function o(){pt(this,o)}return vt(o,null,[{key:"parseAnnexB",value:function(n){var t=n.byteLength-1,e=0;do{if(n[t]===0)e++;else break;t--}while(t>0);e>=3&&(n=n.subarray(0,t+1));for(var a=n.length,i=2,l=0;n[i]!==null&&n[i]!==void 0&&n[i]!==1;)i++;if(i++,l=i+2,l>=a)return[];for(var c=[];l<a;)switch(n[l]){case 0:if(n[l-1]!==0){l+=2;break}else if(n[l-2]!==0){l++;break}else if(l<a-1&&n[l+1]!==1){l++;break}i!==l-2&&c.push(n.subarray(i,l-2));do l++;while(n[l]!==1&&l<a);i=l+1,l=i+2;break;case 1:if(n[l-1]!==0||n[l-2]!==0){l+=3;break}i!==l-2&&c.push(n.subarray(i,l-2)),i=l+1,l=i+2;break;default:l+=3;break}return i<a&&c.push(n.subarray(i)),c}},{key:"parseAvcC",value:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:4;if(!(n.length<4)){for(var e=n.length,a=[],i=0,l;i+t<e;)if(l=fe(n,i),t===3&&(l>>>=8),i+=t,!!l){if(i+l>e)break;a.push(n.subarray(i,i+l)),i+=l}return a}}},{key:"parseSEI",value:function(n,t){for(var e=n.length,a=t?2:1,i=0,l=0,c="";n[a]===255;)i+=255,a++;for(i+=n[a++];n[a]===255;)l+=255,a++;if(l+=n[a++],i===5&&e>a+16)for(var u=0;u<16;u++)c+=n[a].toString(16),a++;return{payload:n.subarray(a,a+l),type:i,size:l,uuid:c}}},{key:"removeEPB",value:function(n){for(var t=n.byteLength,e=[],a=1;a<t-2;)n[a]===0&&n[a+1]===0&&n[a+2]===3?(e.push(a+2),a+=2):a++;if(!e.length)return n;var i=t-e.length,l=new Uint8Array(i),c=0;for(a=0;a<i;c++,a++)c===e[0]&&(c++,e.shift()),l[a]=n[c];return l}}]),o}(),Gl=function(){function o(r){if(pt(this,o),ne(this,"_bytesAvailable",void 0),ne(this,"_bitsAvailable",0),ne(this,"_word",0),!r)throw new Error("ExpGolomb data params is required");this._data=r,this._bytesAvailable=r.byteLength,this._bytesAvailable&&this._loadWord()}return vt(o,[{key:"bitsAvailable",get:function(){return this._bitsAvailable}},{key:"_loadWord",value:function(){var n=this._data.byteLength-this._bytesAvailable,t=Math.min(4,this._bytesAvailable);if(t===0)throw new Error("No bytes available");var e=new Uint8Array(4);e.set(this._data.subarray(n,n+t)),this._word=new DataView(e.buffer).getUint32(0),this._bitsAvailable=t*8,this._bytesAvailable-=t}},{key:"skipBits",value:function(n){if(this._bitsAvailable>n)this._word<<=n,this._bitsAvailable-=n;else{n-=this._bitsAvailable;var t=Math.floor(n/8);n-=t*8,this._bytesAvailable-=t,this._loadWord(),this._word<<=n,this._bitsAvailable-=n}}},{key:"readBits",value:function(n){if(n>32)throw new Error("Cannot read more than 32 bits");var t=Math.min(this._bitsAvailable,n),e=this._word>>>32-t;return this._bitsAvailable-=t,this._bitsAvailable>0?this._word<<=t:this._bytesAvailable>0&&this._loadWord(),t=n-t,t>0&&this._bitsAvailable?e<<t|this.readBits(t):e}},{key:"skipLZ",value:function(){var n;for(n=0;n<this._bitsAvailable;++n)if((this._word&2147483648>>>n)!==0)return this._word<<=n,this._bitsAvailable-=n,n;return this._loadWord(),n+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"readUEG",value:function(){var n=this.skipLZ();return this.readBits(n+1)-1}},{key:"readEG",value:function(){var n=this.readUEG();return 1&n?1+n>>>1:-1*(n>>>1)}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readUByte",value:function(){return this.readBits(8)}},{key:"skipScalingList",value:function(n){for(var t=8,e=8,a,i=0;i<n;i++)e!==0&&(a=this.readEG(),e=(t+a+256)%256),t=e===0?t:e}}]),o}(),US=function(){function o(){pt(this,o)}return vt(o,null,[{key:"parseAVCDecoderConfigurationRecord",value:function(n){if(!(n.length<7)){for(var t=(n[4]&3)+1,e,a=[],i=[],l=6,c=n[5]&31,u,d=0;d<c;d++)if(u=n[l]<<8|n[l+1],l+=2,!!u){var f=n.subarray(l,l+u);l+=u,a.push(f),e||(e=o.parseSPS(ka.removeEPB(f)))}var h=n[l];l++;for(var p,v=0;v<h;v++)p=n[l]<<8|n[l+1],l+=2,p&&(i.push(n.subarray(l,l+p)),l+=p);return{sps:e,spsArr:a,ppsArr:i,nalUnitSize:t}}}},{key:"parseSPS",value:function(n){var t=new Gl(n);t.readUByte();var e=t.readUByte(),a=t.readUByte(),i=t.readUByte();t.skipUEG();var l=420;if(e===100||e===110||e===122||e===244||e===44||e===83||e===86||e===118||e===128||e===138||e===144){var c=t.readUEG();if(c<=3&&(l=[0,420,422,444][c]),c===3&&t.skipBits(1),t.skipUEG(),t.skipUEG(),t.skipBits(1),t.readBool())for(var u=c!==3?8:12,d=0;d<u;d++)t.readBool()&&(d<6?t.skipScalingList(16):t.skipScalingList(64))}t.skipUEG();var f=t.readUEG();if(f===0)t.readUEG();else if(f===1){t.skipBits(1),t.skipUEG(),t.skipUEG();for(var h=t.readUEG(),p=0;p<h;p++)t.skipUEG()}t.skipUEG(),t.skipBits(1);var v=t.readUEG(),g=t.readUEG(),m=t.readBits(1);m===0&&t.skipBits(1),t.skipBits(1);var _=0,b=0,y=0,w=0;t.readBool()&&(_=t.readUEG(),b=t.readUEG(),y=t.readUEG(),w=t.readUEG());var S,D,C,B,A;if(t.readBool()){if(t.readBool()){var L=t.readUByte();switch(L){case 1:S=[1,1];break;case 2:S=[12,11];break;case 3:S=[10,11];break;case 4:S=[16,11];break;case 5:S=[40,33];break;case 6:S=[24,11];break;case 7:S=[20,11];break;case 8:S=[32,11];break;case 9:S=[80,33];break;case 10:S=[18,11];break;case 11:S=[15,11];break;case 12:S=[64,33];break;case 13:S=[160,99];break;case 14:S=[4,3];break;case 15:S=[3,2];break;case 16:S=[2,1];break;case 255:{S=[t.readUByte()<<8|t.readUByte(),t.readUByte()<<8|t.readUByte()];break}}}if(t.readBool()&&t.readBool(),t.readBool()&&(t.readBits(4),t.readBool()&&t.readBits(24)),t.readBool()&&(t.readUEG(),t.readUEG()),t.readBool()){var I=t.readBits(32),E=t.readBits(32);D=t.readBool(),C=E,B=I*2,A=C/B}}return{codec:xh(n.subarray(1,4)),profileIdc:e,profileCompatibility:a,levelIdc:i,chromaFormat:l,width:Math.ceil((v+1)*16-2*(_+b)),height:(2-m)*(g+1)*16-(m?2:4)*(y+w),sarRatio:S,fpsNum:C,fpsDen:B,fps:A,fixedFrame:D}}}]),o}(),Ah=function(){function o(){pt(this,o)}return vt(o,null,[{key:"parseHEVCDecoderConfigurationRecord",value:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(n.length<23)){t=t||{};for(var e=(n[21]&3)+1,a,i,l=[],c=[],u=[],d=23,f=n[22],h,p,v,g=0;g<f;g++){h=n[d]&63,p=n[d+1]<<8|n[d+2],d+=3;for(var m=0;m<p;m++)if(v=n[d]<<8|n[d+1],d+=2,!!v){switch(h){case 32:{var _=n.subarray(d,d+v);a||(a=o.parseVPS(ka.removeEPB(_),t)),u.push(_)}break;case 33:{var b=n.subarray(d,d+v);i||(i=o.parseSPS(ka.removeEPB(b),t)),l.push(b)}break;case 34:c.push(n.subarray(d,d+v));break}d+=v}}return{hvcC:t,sps:i,spsArr:l,ppsArr:c,vpsArr:u,nalUnitSize:e}}}},{key:"parseVPS",value:function(n,t){t=t||{};var e=new Gl(n);e.readUByte(),e.readUByte(),e.readBits(12);var a=e.readBits(3);return t.numTemporalLayers=Math.max(t.numTemporalLayers||0,a+1),e.readBits(17),o._parseProfileTierLevel(e,a,t),t}},{key:"parseSPS",value:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t=t||{};var e=new Gl(n);e.readUByte(),e.readUByte(),e.readBits(4);var a=e.readBits(3);t.numTemporalLayers=Math.max(a+1,t.numTemporalLayers||0),t.temporalIdNested=e.readBits(1),o._parseProfileTierLevel(e,a,t),e.readUEG();var i=t.chromaFormatIdc=e.readUEG(),l=420;i<=3&&(l=[0,420,422,444][i]);var c=0;i===3&&(c=e.readBits(1));var u=e.readUEG(),d=e.readUEG(),f=e.readBits(1),h,p,v,g;if(f===1&&(h=e.readUEG(),p=e.readUEG(),v=e.readUEG(),g=e.readUEG()),t.bitDepthLumaMinus8=e.readUEG(),t.bitDepthChromaMinus8=e.readUEG(),f===1){var m=(i===1||i===2)&&c===0?2:1,_=i===1&&c===0?2:1;u-=m*(p+h),d-=_*(g+v)}return{codec:"hev1.1.6.L93.B0",width:u,height:d,chromaFormat:l,hvcC:t}}},{key:"_parseProfileTierLevel",value:function(n,t,e){var a=e.generalTierFlag||0;e.generalProfileSpace=n.readBits(2),e.generalTierFlag=Math.max(n.readBits(1),a),e.generalProfileIdc=Math.max(n.readBits(5),e.generalProfileIdc||0),e.generalProfileCompatibilityFlags=n.readBits(32),e.generalConstraintIndicatorFlags=[n.readBits(8),n.readBits(8),n.readBits(8),n.readBits(8),n.readBits(8),n.readBits(8)];var i=n.readBits(8);a<e.generalTierFlag?e.generalLevelIdc=i:e.generalLevelIdc=Math.max(i,e.generalLevelIdc||0);var l=[],c=[];if(t>n.bitsAvailable)throw new Error("maxSubLayersMinus inavlid size ".concat(t));for(var u=0;u<t;u++)l[u]=n.readBits(1),c[u]=n.readBits(1);t>0&&n.readBits((8-t)*2);for(var d=0;d<t;d++)l[d]!==0&&(n.readBits(2),n.readBits(1),n.readBits(5),n.readBits(16),n.readBits(16),n.readBits(4),n.readBits(16),n.readBits(16),n.readBits(12)),c[d]!==0&&n.readBits(8)}}]),o}(),jS=9e4/2,Dh=3,Vi=9e4,Wl=5*9e4,Kl=9e4,GS=9e4/2,WS=9e4*5,KS=function(){function o(r,n,t,e){pt(this,o),this.videoTrack=r,this.audioTrack=n,this.metadataTrack=t,this._baseDts=-1,this._baseVideoDts=-1,this._baseAudioDts=-1,this._baseDtsInited=!1,this._audioNextPts=void 0,this._videoNextDts=void 0,this._audioTimestampBreak=!1,this._videoTimestampBreak=!1,this._lastAudioExceptionGapDot=0,this._lastAudioExceptionOverlapDot=0,this._lastAudioExceptionLargeGapDot=0,this._needForceFixLargeGap=e==null?void 0:e.forceFixLargeGap,this._largeGapThreshold=(e==null?void 0:e.largeGapThreshold)||WS}return vt(o,[{key:"fix",value:function(){var n=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;t=Math.round(t*9e4);var i=this.videoTrack,l=this.audioTrack,c=i.samples,u=l.samples;if(!(!c.length&&!u.length)){var d=c[0],f=u[0],h=0;if(c.length&&u.length&&(h=d.dts-f.pts),this._baseDtsInited||this._calculateBaseDts(this.audioTrack,this.videoTrack),e&&(this._calculateBaseDts(this.audioTrack,this.videoTrack),this._baseDts-=t,this._baseAudioDts-=t,this._baseVideoDts-=t),!a){this._videoNextDts=h>0?t+h:t,this._audioNextPts=h>0?t:t-h,this._needForceFixLargeGap&&(this._videoNextDts=0,this._audioNextPts=0);var p=d?d.dts-this._baseDts-this._videoNextDts:0,v=f?f.pts-this._baseDts-this._audioNextPts:0;Math.abs(p||v)>Kl&&(this._calculateBaseDts(this.audioTrack,this.videoTrack),this._baseDts-=t)}if(this._resetBaseDtsWhenStreamBreaked(),this._fixAudio(l),this._fixVideo(i),this.metadataTrack.exist()){var g=this.metadataTrack.timescale;this.metadataTrack.seiSamples.forEach(function(m){m.pts=m.originPts-n._baseDts,m.time=Math.max(0,m.pts)/g})}i.samples.length&&(i.baseMediaDecodeTime=i.samples[0].dts),l.samples.length&&(l.baseMediaDecodeTime=l.samples[0].pts*l.timescale/9e4)}}},{key:"_fixVideo",value:function(n){var t=this,e=n.samples;if(!!e.length){if(e.forEach(function(C){C.dts-=t._needForceFixLargeGap?t._baseVideoDts:t._baseDts,C.pts-=t._needForceFixLargeGap?t._baseVideoDts:t._baseDts}),this._videoNextDts===void 0){var a=e[0];this._videoNextDts=a.dts}var i=e.length,l=0,c=e[0],u=e[1],d=this._videoNextDts-c.dts;if(Math.abs(d)>GS){var f;if(n.warnings.push({type:xn.LARGE_VIDEO_GAP_BETWEEN_CHUNK,nextDts:this._videoNextDts/90,firstSampleDts:c.dts/90,nextSampleDts:(((f=e[1])===null||f===void 0?void 0:f.dts)||0)/90,sampleDuration:d/90}),c.dts+=d,c.pts+=d,u&&Math.abs(u.dts-c.dts)>Kl)this._videoTimestampBreak=!0,e.forEach(function(C,B){B!==0&&(C.dts+=d,C.pts+=d)});else for(var h=1;h<=i-1;h++){var p,v=(p=e[h])===null||p===void 0?void 0:p.dts,g=e[h-1].dts;v&&v-g<0&&(e[h].dts+=d,e[h].pts+=d)}}var m;if(n.fpsNum&&n.fpsDen&&(m=n.timescale*(n.fpsDen/n.fpsNum)),m<90*10&&(m=0),!m){var _=n.samples[0],b=n.samples[1];m=i===1?9e3:Math.floor(b.dts-_.dts)}for(var y=0;y<i;y++){var w=e[y].dts,S=e[y+1];if(y<i-1?l=S.dts-w:e[y-1]?l=Math.min(w-e[y-1].dts,m):l=m,l>Kl||l<0){this._videoTimestampBreak=!0,l=this._audioTimestampBreak?m:Math.max(l,30*90);var D=this._audioNextPts||0;S&&S.dts>D&&(l=m),n.warnings.push({type:xn.LARGE_VIDEO_GAP,time:w/n.timescale,dts:w,originDts:e[y].originDts,nextDts:this._videoNextDts,sampleDuration:l,refSampleDuration:m})}e[y].duration=l,this._videoNextDts+=l}}}},{key:"_fixAudio",value:function(n){var t=this,e=n.samples;if(!!e.length){if(n.codecType===En.MP3){this.lastAudioSample&&e.unshift(this.lastAudioSample);for(var a=0;a<e.length;a++){var i=e[a];if(e[a+1])i.duration=e[a+1].pts-i.pts;else break;i.pts-=this._baseDts,i.dts=i.pts}this.lastAudioSample=e.pop();return}e.forEach(function(l){l.pts-=t._needForceFixLargeGap?t._baseAudioDts:t._baseDts,l.dts=l.pts}),this._doFixAudioInternal(n,e,9e4)}}},{key:"_calculateBaseDts",value:function(n,t){var e=n.samples,a=t.samples;if(!e.length&&!a.length)return!1;var i=1/0,l=1/0;e.length&&(n.baseDts=i=e[0].pts,this._baseAudioDts=i),a.length&&(t.baseDts=l=a[0].dts,this._baseVideoDts=l),this._baseDts=Math.min(i,l);var c=l-i,u=!1;return Number.isFinite(c)&&Math.abs(c)>jS&&t.warnings.push({type:xn.LARGE_AV_SHIFT,videoBaseDts:l,audioBasePts:i,baseDts:this._baseDts,delta:c}),Number.isFinite(c)&&Math.abs(c)>this._largeGapThreshold*Vi&&(u=!0),this._baseDtsInited||(u&&this._needForceFixLargeGap?this._needForceFixLargeGap=!0:this._needForceFixLargeGap=!1),this._baseDtsInited=!0,!0}},{key:"_resetBaseDtsWhenStreamBreaked",value:function(){if(this._baseDtsInited&&this._videoTimestampBreak&&this._audioTimestampBreak){var n=this._calculateBaseDts(this.audioTrack,this.videoTrack);if(!n)return;this._baseDts-=Math.min(this._audioNextPts,this._videoNextDts),this._audioLastSample=null,this._videoLastSample=null,this._videoTimestampBreak=!1,this._audioTimestampBreak=!1}}},{key:"_doFixAudioInternal",value:function(n,t,e){n.sampleDuration||(n.sampleDuration=la.getFrameDuration(n.timescale,e));var a=n.sampleDuration;if(this._audioNextPts===void 0){var i=t[0];this._audioNextPts=i.pts}for(var l=0;l<t.length;l++){var c=this._audioNextPts,u=t[l],d=u.pts-c;if(!this._audioTimestampBreak&&d>=Dh*a&&d<=Vi&&!RS){var f=la.getSilentFrame(n.codec,n.channelCount)||t[0].data.subarray(),h=Math.floor(d/a);Math.abs(u.pts-this._lastAudioExceptionGapDot)>Wl&&(this._lastAudioExceptionGapDot=u.pts),n.warnings.push({type:xn.AUDIO_FILLED,pts:u.pts/90,originPts:u.originPts,count:h,nextPts:c/90,refSampleDuration:a});for(var p=0;p<h;p++){var v=new dr(Math.floor(c),f);v.originPts=Math.floor(this._baseDts+c),t.splice(l,0,v),this._audioNextPts+=a,l++}l--}else d<=-Dh*a&&d>=-1*Vi?(Math.abs(u.pts-this._lastAudioExceptionOverlapDot)>Wl&&(this._lastAudioExceptionOverlapDot=u.pts,n.warnings.push({type:xn.AUDIO_DROPPED,pts:u.pts/90,originPts:u.originPts,nextPts:c/90,refSampleDuration:a})),t.splice(l,1),l--):(Math.abs(d)>=Vi&&(this._audioTimestampBreak=!0,Math.abs(u.pts-this._lastAudioExceptionLargeGapDot)>Wl&&(this._lastAudioExceptionLargeGapDot=u.pts,n.warnings.push({type:xn.LARGE_AUDIO_GAP,time:u.pts/1e3,pts:u.pts/90,originPts:u.originPts,nextPts:c/90,sampleDuration:d,refSampleDuration:a}))),u.dts=u.pts=c,this._audioNextPts+=a)}}}]),o}(),YS=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],XS=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],JS=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],QS=[0,1,1,4],Fi=null,Ph=function(){function o(){pt(this,o)}return vt(o,null,[{key:"isHeader",value:function(n,t){return t+1<n.length&&n[t]===255&&(n[t+1]&224)===224&&(n[t+1]&6)!==0}},{key:"appendFrame",value:function(n,t,e,a,i){if(!(e+24>t.length)){var l=o.parseHeader(t,e);if(l&&e+l.frameLength<=t.length){var c=l.samplesPerFrame*9e4/l.sampleRate,u=a+i*c,d={data:t.subarray(e,e+l.frameLength),pts:u,dts:u};return d.size=d.data.byteLength,n.config=[],n.channelCount=l.channelCount,n.sampleRate=l.sampleRate,Th?n.codec="mp3":n.container="audio/mpeg",n.samples.push(d),{length:l.frameLength}}}}},{key:"parseHeader",value:function(n,t){var e=n[t+1]>>3&3,a=n[t+1]>>1&3,i=n[t+2]>>4&15,l=n[t+2]>>2&3;if(e!==1&&i!==0&&i!==15&&l!==3){var c=n[t+2]>>1&1,u=n[t+3]>>6,d=e===3?3-a:a===3?3:4,f=YS[d*14+i-1]*1e3,h=e===3?0:e===2?1:2,p=XS[h*3+l],v=u===3?1:2,g=JS[e][a],m=QS[a],_=g*8*m,b=Math.floor(g*f/p+c)*m;if(Fi===null){var y=navigator.userAgent||"",w=y.match(/Chrome\/(\d+)/i);Fi=w?parseInt(w[1]):0}var S=!!Fi&&Fi<=87;return S&&a===2&&f>=224e3&&u===0&&(n[t+3]=n[t+3]|128),{sampleRate:p,channelCount:v,frameLength:b,samplesPerFrame:_}}}}]),o}(),Bn=new Ni("TsDemuxer"),Oh=function(){function o(r,n,t){var e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};pt(this,o),ne(this,"_pmtId",-1),ne(this,"_remainingPacketData",null),ne(this,"_videoPesData",[]),ne(this,"_audioPesData",[]),ne(this,"_gopId",0),this.videoTrack=r||new Ch,this.audioTrack=n||new Sh,this.metadataTrack=t||new kh,this._fixer=new KS(this.videoTrack,this.audioTrack,this.metadataTrack,e)}return vt(o,[{key:"demux",value:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=this.audioTrack,i=this.videoTrack,l=this.metadataTrack;t&&(this._pmtId=-1,i.reset(),a.reset(),l.reset()),!e||t?(this._remainingPacketData=null,this._videoPesData=[],this._audioPesData=[]):(i.samples=[],a.samples=[],l.seiSamples=[],i.warnings=[],a.warnings=[],this._remainingPacketData&&(n=Cn(this._remainingPacketData,n),this._remainingPacketData=null));var c=n.length,u=c%188;u&&(this._remainingPacketData=n.subarray(c-u),c-=u);for(var d=i.pid,f=a.pid,h=0;h<c;h+=188){if(n[h]!==71)throw new Error("TS packet did not start with 0x47");var p=!!(n[h+1]&64),v=((n[h+1]&31)<<8)+n[h+2],g=(n[h+3]&48)>>4,m=void 0;if(g>1){if(m=h+5+n[h+4],m===h+188)continue}else m=h+4;switch(v){case 0:p&&(m+=n[m]+1),this._pmtId=(n[m+10]&31)<<8|n[m+11];break;case this._pmtId:{p&&(m+=n[m]+1);var _=m+3+((n[m+1]&15)<<8|n[m+2])-4,b=(n[m+10]&15)<<8|n[m+11];for(m+=12+b;m<_;){var y=(n[m+1]&31)<<8|n[m+2];switch(n[m]){case 15:a.pid=f=y;break;case 3:case 4:a.pid===-1&&(a.pid=f=y,a.codecType=En.MP3);break;case 27:if(d!==-1)break;i.codecType=Sa.AVC,i.pid=d=y;break;case 36:if(d!==-1)break;i.codecType=Sa.HEVC,i.pid=d=y;break;default:Bn.warn("Unsupported stream. type: ".concat(n[m],", pid: ").concat(y))}m+=((n[m+3]&15)<<8|n[m+4])+5}}break;case d:p&&this._videoPesData.length&&this._parseVideoData(),this._videoPesData.push(n.subarray(m,h+188));break;case f:p&&this._audioPesData.length&&this._parseAudioData(),this._audioPesData.push(n.subarray(m,h+188));break;case 17:case 8191:break;default:Bn.warn("Unknown pid: ".concat(v))}}return this._parseVideoData(),this._parseAudioData(),a.formatTimescale=i.formatTimescale=i.timescale=l.timescale=9e4,a.timescale=a.sampleRate||0,{videoTrack:i,audioTrack:a,metadataTrack:l}}},{key:"fix",value:function(n,t,e){return this._fixer.fix(n,t,e),{videoTrack:this.videoTrack,audioTrack:this.audioTrack,metadataTrack:this.metadataTrack}}},{key:"demuxAndFix",value:function(n,t,e,a){return this.demux(n,t,e),this.fix(a,t,e)}},{key:"_parseVideoData",value:function(){if(!!this._videoPesData.length){var n=o._parsePES(Cn.apply(void 0,hn(this._videoPesData)));if(!n){Bn.warn("Cannot parse video pes",this._videoPesData);return}var t=ka.parseAnnexB(n.data);t?this._createVideoSample(t,n.pts,n.dts):Bn.warn("Cannot parse avc units",n),this._videoPesData=[]}}},{key:"_createVideoSample",value:function(n,t,e){var a=this;if(!!n.length){var i=this.videoTrack,l=i.codecType===Sa.HEVC,c=new zl(t,e);n.forEach(function(u){var d=l?u[0]>>>1&63:u[0]&31;switch(d){case 5:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:if(!l&&d!==5||l&&d===5)break;c.setToKeyframe(),a._gopId++;break;case 6:case 39:case 40:if(!l&&d!==6||l&&d===6)break;a.metadataTrack.seiSamples.push(new NS(ka.parseSEI(ka.removeEPB(u),l),t));return;case 32:if(!l)break;if(!i.vps.length){var f=Ah.parseVPS(ka.removeEPB(u),i.hvcC);i.hvcC=i.hvcC||f,i.vps=[u]}break;case 7:case 33:if(!l&&d!==7||l&&d===7)break;if(!i.sps.length){var h=ka.removeEPB(u),p=l?Ah.parseSPS(h,i.hvcC):US.parseSPS(h);i.sps=[u],i.hvcC=i.hvcC||p.hvcC,i.codec=p.codec,i.width=p.width,i.height=p.height,i.sarRatio=p.sarRatio,i.fpsNum=p.fpsNum,i.fpsDen=p.fpsDen}break;case 8:case 34:if(!l&&d!==8||l&&d===8)break;i.pps.length||(i.pps=[u]);break;case 9:case 35:break;case 38:if(l){for(var v=!1,g=2;g<u.byteLength;g++)if(u[g]===255){v=!0;break}if(!v)return}break}c.units.push(u)}),c.gopId=this._gopId,this._pushVideoSample(i,c)}}},{key:"_pushVideoSample",value:function(n,t){if(t.units.length)if(t.pts===null||t.pts===void 0){Bn.warn("Video sample no pts",t);var e=n.samples[n.samples.length-1];e?(t.pts=e.pts,t.dts=e.dts):Bn.warn("Drop video sample",t)}else n.samples.push(t)}},{key:"_parseAudioData",value:function(){if(!!this._audioPesData.length){var n=o._parsePES(Cn.apply(void 0,hn(this._audioPesData)));if(!n){Bn.warn("Cannot parse audio pes",this._audioPesData);return}switch(this.audioTrack.codecType){case En.AAC:this._parseAacData(n);break;case En.MP3:this._parseMPEG(n);break}this._audioPesData=[]}}},{key:"_parseAacData",value:function(n){var t=this.audioTrack,e=n.pts;if(e==null){if(Bn.warn("AAC pes not pts",t),!t.samples.length||!t.sampleRate)return;e=t.samples[t.samples.length-1].pts+la.getFrameDuration(t.sampleRate)}var a=la.parseADTS(n.data,e);if(a){var i;t.codec=a.codec,t.channelCount=a.channelCount,t.sampleRate=a.sampleRate,t.objectType=a.objectType,t.sampleRateIndex=a.samplingFrequencyIndex,t.config=a.config,(i=t.samples).push.apply(i,hn(a.frames.map(function(l){return new dr(l.pts,l.data)}))),a.skip&&Bn.warn("Skip aac adts ".concat(a.skip," bits")),a.remaining&&Bn.warn("Remaining aac adts ".concat(a.remaining," bits"))}else Bn.warn("Cannot parse aac adts",n)}},{key:"_parseMPEG",value:function(n){var t=n.data,e=t.length,a=0,i=0,l=n.pts;if(l===void 0){Bn.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;i<e;)if(Ph.isHeader(t,i)){var c=Ph.appendFrame(this.audioTrack,t,i,l,a);if(c)i+=c.length,a++;else break}else i++}}],[{key:"probe",value:function(n){return n.length?n[0]===71&&n[188]===71&&n[376]===71:!1}},{key:"_parsePES",value:function(n){var t=n[8];if(!(t==null||n.length<t+9)){var e=n[0]<<16|n[1]<<8|n[2];if(e===1){var a=(n[4]<<8)+n[5];if(!(a&&a>n.length-6)){var i,l,c=n[7];return c&192&&(i=(n[9]&14)*536870912+(n[10]&255)*4194304+(n[11]&254)*16384+(n[12]&255)*128+(n[13]&254)/2,c&64?(l=(n[14]&14)*536870912+(n[15]&255)*4194304+(n[16]&254)*16384+(n[17]&255)*128+(n[18]&254)/2,i-l>60*9e4&&(i=l)):l=i),{data:n.subarray(9+t),pts:i,dts:l}}}}}}]),o}(),Yl=function(){function o(r,n,t){pt(this,o),this.dv=new DataView(r),this.start=this.offset=n||this.dv.byteOffset,this.end=t?this.start+t:this.start+this.dv.byteLength}return vt(o,[{key:"buffer",get:function(){return this.dv.buffer}},{key:"unreadLength",get:function(){return Math.max(this.end-this.offset,0)}},{key:"size",get:function(){return this.end-this.start}},{key:"readFloat",value:function(n){var t=0;switch(n){case 4:t=this.dv.getFloat32(this.offset);break;case 8:t=this.dv.getFloat64(this.offset);break;default:throw new Error("read ".concat(n,"-byte float is not supported"))}return this.offset+=n,t}},{key:"back",value:function(n){this.offset-=n}},{key:"skip",value:function(n){this.offset+=n}},{key:"readInt",value:function(n){var t=this.offset;switch(this.offset+=n,n){case 1:return this.dv.getInt8(t);case 2:return this.dv.getInt16(t);case 4:return this.dv.getInt32(t);default:throw new Error("read ".concat(n,"-byte integers is not supported"))}}},{key:"read",value:function(n){var t=this.offset;switch(this.offset+=n,n){case 1:return this.dv.getUint8(t);case 2:return this.dv.getUint16(t);case 3:return(this.dv.getUint16(t)<<8)+this.dv.getUint8(t+2);case 4:return this.dv.getUint32(t);default:return this.back(n-4),this.read(n-4)+this.dv.getUint32(t)*Math.pow(256,n-4)}}},{key:"write",value:function(n,t){var e=this.offset;switch(this.offset+=n,n){case 1:return this.dv.setUint8(e,t);case 2:return this.dv.setUint16(e,t);case 3:return this.dv.setUint8(e,t>>>16),this.dv.setUint16(e+1,65535&t);case 4:return this.dv.setUint32(e,t);default:throw new Error("write ".concat(n,"-byte integers is not supported"))}}},{key:"readToBuffer",value:function(n){var t;return this.offset||n?t=this.dv.buffer.slice(this.offset,n?this.offset+n:this.end):t=this.dv.buffer,this.offset+=t.byteLength,t}},{key:"readToUint8",value:function(n){var t=new Uint8Array(this.dv.buffer,this.offset,n||this.unreadLength);return this.offset+=t.byteLength,t}},{key:"readString",value:function(n){for(var t=0,e="";t<n;t++)e+=String.fromCharCode(this.dv.getUint8(this.offset)),this.offset++;return e}}],[{key:"fromUint8",value:function(n){return new o(n.buffer,n.byteOffset,n.byteLength)}},{key:"concatUint8s",value:function(n){var t=new Uint8Array(n.reduce(function(a,i){return a+i.byteLength},0)),e=0;return n.forEach(function(a){t.set(a,e),e+=a.byteLength}),t}},{key:"concatUint8",value:function(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];return this.concatUint8s(t)}}]),o}(),ZS=function(){function o(r,n){pt(this,o),this.offset=0,this.val=r,this.size=n}return vt(o,[{key:"skip",value:function(n){this.offset+=n}},{key:"read",value:function(n){var t=this.size-this.offset-n;if(t>=0){var e=0,a=0;if(this.offset+=n,this.size>31){for(;a<n;a++)e+=Math.pow(2,a);return this.val/Math.pow(2,t)&e}else{for(;a<n;a++)e+=1<<a;return this.val>>>t&e}}throw new Error("the number of the read operation exceeds the total length limit of bits")}}],[{key:"fromByte",value:function(n,t){return new o(n.read(t),t<<3)}}]),o}(),lt=function(){function o(){pt(this,o)}return vt(o,null,[{key:"findBox",value:function(n,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=[];if(!n)return a;for(var i=0,l="",c=0;n.length>7;){if(i=fe(n),l=String.fromCharCode.apply(null,n.subarray(4,8)),c=8,i===1?(i=Wa(n,8),c+=8):i||(i=n.length),!t[0]||l===t[0]){var u=n.subarray(0,i);if(t.length<2)a.push({start:e,size:i,headerSize:c,type:l,data:u});else return o.findBox(u.subarray(c),t.slice(1),e+c)}e+=i,n=n.subarray(i)}return a}},{key:"tfhd",value:function(n){return Ae(n,!0,function(t,e){t.trackId=fe(e);var a=4,i=t.flags&255&1,l=t.flags&255&2,c=t.flags&255&8,u=t.flags&255&16,d=t.flags&255&32;i&&(a+=4,t.baseDataOffset=fe(e,a),a+=4),l&&(t.sampleDescriptionIndex=fe(e,a),a+=4),c&&(t.defaultSampleDuration=fe(e,a),a+=4),u&&(t.defaultSampleSize=fe(e,a),a+=4),d&&(t.defaultSampleFlags=fe(e,a))})}},{key:"sidx",value:function(n){return Ae(n,!0,function(t,e){var a=0;t.reference_ID=fe(e,a),a+=4,t.timescale=fe(e,a),a+=4,t.version===0?(t.earliest_presentation_time=fe(e,a),a+=4,t.first_offset=fe(e,a),a+=4):(t.earliest_presentation_time=Wa(e,a),a+=8,t.first_offset=Wa(e,a),a+=8),a+=2,t.references=[];var i=st(e,a);a+=2;for(var l=0;l<i;l++){var c={};t.references.push(c);var u=fe(e,a);a+=4,c.reference_type=u>>31&1,c.referenced_size=u&2147483647,c.subsegment_duration=fe(e,a),a+=4,u=fe(e,a),a+=4,c.starts_with_SAP=u>>31&1,c.SAP_type=u>>28&7,c.SAP_delta_time=u&268435455}})}},{key:"moov",value:function(n){return Ae(n,!1,function(t,e,a){t.mvhd=o.mvhd(o.findBox(e,["mvhd"],a)[0]),t.trak=o.findBox(e,["trak"],a).map(function(i){return o.trak(i)}),t.pssh=o.pssh(o.findBox(e,["pssh"],a)[0])})}},{key:"mvhd",value:function(n){return Ae(n,!0,function(t,e){var a=0;t.version===1?(t.timescale=fe(e,16),t.duration=Wa(e,20),a+=28):(t.timescale=fe(e,8),t.duration=fe(e,12),a+=16),t.nextTrackId=fe(e,a+76)})}},{key:"trak",value:function(n){return Ae(n,!1,function(t,e,a){t.tkhd=o.tkhd(o.findBox(e,["tkhd"],a)[0]),t.mdia=o.mdia(o.findBox(e,["mdia"],a)[0])})}},{key:"tkhd",value:function(n){return Ae(n,!0,function(t,e){var a=Yl.fromUint8(e);t.version===1?(a.read(8),a.read(8),t.trackId=a.read(4),a.read(4),t.duration=a.read(8)):(a.read(4),a.read(4),t.trackId=a.read(4),a.read(4),t.duration=a.read(4)),a.skip(16),t.matrix=[];for(var i=0;i<36;i++)t.matrix.push(a.read(1));a.back(36);for(var l=[],c=0,u;c<3;c++)l.push(jl(a.readInt(2),a.readInt(2))),l.push(jl(a.readInt(2),a.readInt(2))),u=a.readInt(4),l.push(jl(u>>30,u&1073741823));t.rotation=zS(l),t.width=a.read(4),t.height=a.read(4)})}},{key:"mdia",value:function(n){return Ae(n,!1,function(t,e,a){t.mdhd=o.mdhd(o.findBox(e,["mdhd"],a)[0]),t.hdlr=o.hdlr(o.findBox(e,["hdlr"],a)[0]),t.minf=o.minf(o.findBox(e,["minf"],a)[0])})}},{key:"mdhd",value:function(n){return Ae(n,!0,function(t,e){var a=0;t.version===1?(t.timescale=fe(e,16),t.duration=Wa(e,20),a+=28):(t.timescale=fe(e,8),t.duration=fe(e,12),a+=16);var i=st(e,a);t.language=String.fromCharCode((i>>10&31)+96,(i>>5&31)+96,(i&31)+96)})}},{key:"hdlr",value:function(n){return Ae(n,!0,function(t,e){t.version===0&&(t.handlerType=String.fromCharCode.apply(null,e.subarray(4,8)))})}},{key:"minf",value:function(n){return Ae(n,!1,function(t,e,a){t.vmhd=o.vmhd(o.findBox(e,["vmhd"],a)[0]),t.smhd=o.smhd(o.findBox(e,["smhd"],a)[0]),t.stbl=o.stbl(o.findBox(e,["stbl"],a)[0])})}},{key:"vmhd",value:function(n){return Ae(n,!0,function(t,e){t.graphicsmode=st(e),t.opcolor=[st(e,2),st(e,4),st(e,6)]})}},{key:"smhd",value:function(n){return Ae(n,!0,function(t,e){t.balance=st(e)})}},{key:"stbl",value:function(n){return Ae(n,!1,function(t,e,a){var i,l,c;t.stsd=o.stsd(o.findBox(e,["stsd"],a)[0]),t.stts=o.stts(o.findBox(e,["stts"],a)[0]),t.ctts=o.ctts(o.findBox(e,["ctts"],a)[0]),t.stsc=o.stsc(o.findBox(e,["stsc"],a)[0]),t.stsz=o.stsz(o.findBox(e,["stsz"],a)[0]),t.stco=o.stco(o.findBox(e,["stco"],a)[0]),t.stco||(t.co64=o.co64(o.findBox(e,["co64"],a)[0]),t.stco=t.co64);var u=(i=t.stsd.entries[0])===null||i===void 0||(l=i.sinf)===null||l===void 0||(c=l.schi)===null||c===void 0?void 0:c.tenc.default_IV_size;t.stss=o.stss(o.findBox(e,["stss"],a)[0]),t.senc=o.senc(o.findBox(e,["senc"],a)[0],u)})}},{key:"senc",value:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:8;return Ae(n,!0,function(e,a){var i=0,l=fe(a,i);i+=4,e.samples=[];for(var c=0;c<l;c++){var u={};u.InitializationVector=[];for(var d=0;d<t;d++)u.InitializationVector[d]=a[i+d];if(i+=t,e.flags&2){u.subsamples=[];var f=st(a,i);i+=2;for(var h=0;h<f;h++){var p={};p.BytesOfClearData=st(a,i),i+=2,p.BytesOfProtectedData=fe(a,i),i+=4,u.subsamples.push(p)}}e.samples.push(u)}})}},{key:"pssh",value:function(n){return Ae(n,!0,function(t,e){for(var a=[],i=[],l=0,c=0;c<16;c++)i.push(Jl(e[l+c]));if(l+=16,t.version>0){var u=fe(e,l);l+=4;for(var d=0;d<(""+u).length;d++)for(var f=0;f<16;f++){var h=e[l];l+=1,a.push(Jl(h))}}var p=fe(e,l);t.data_size=p,l+=4,t.kid=a,t.system_id=i,t.buffer=e})}},{key:"stsd",value:function(n){return Ae(n,!0,function(t,e,a){t.entryCount=fe(e),t.entries=o.findBox(e.subarray(4),[],a+4).map(function(i){switch(i.type){case"av01":return o.av01(i);case"avc1":case"avc2":case"avc3":case"avc4":return o.avc1(i);case"hvc1":case"hev1":return o.hvc1(i);case"mp4a":return o.mp4a(i);case"alaw":case"ulaw":return o.alaw(i);case"enca":return Ae(i,!1,function(l,c,u){l.channelCount=st(c,16),l.samplesize=st(c,18),l.sampleRate=fe(c,24)/(1<<16),c=c.subarray(28),l.sinf=o.sinf(o.findBox(c,["sinf"],u)[0]),l.esds=o.esds(o.findBox(c,["esds"],u)[0])});case"encv":return Ae(i,!1,function(l,c,u){l.width=st(c,24),l.height=st(c,26),l.horizresolution=fe(c,28),l.vertresolution=fe(c,32),c=c.subarray(78),l.sinf=o.sinf(o.findBox(c,["sinf"],u)[0]),l.avcC=o.avcC(o.findBox(c,["avcC"],u)[0]),l.hvcC=o.hvcC(o.findBox(c,["hvcC"],u)[0]),l.pasp=o.pasp(o.findBox(c,["pasp"],u)[0])})}}).filter(Boolean)})}},{key:"tenc",value:function(n){return Ae(n,!1,function(t,e){var a=6;t.default_IsEncrypted=e[a],a+=1,t.default_IV_size=e[a],a+=1,t.default_KID=[];for(var i=0;i<16;i++)t.default_KID.push(Jl(e[a])),a+=1})}},{key:"schi",value:function(n){return Ae(n,!1,function(t,e,a){t.tenc=o.tenc(o.findBox(e,["tenc"],a)[0])})}},{key:"sinf",value:function(n){return Ae(n,!1,function(t,e,a){t.schi=o.schi(o.findBox(e,["schi"],a)[0]),t.frma=o.frma(o.findBox(e,["frma"],a)[0])})}},{key:"frma",value:function(n){return Ae(n,!1,function(t,e){t.data_format="";for(var a=0;a<4;a++)t.data_format+=String.fromCharCode(e[a])})}},{key:"colr",value:function(n){return Ae(n,!1,function(t,e){var a=Yl.fromUint8(e);t.data=n.data,t.colorType=a.readString(4),t.colorType==="nclx"?(t.colorPrimaries=a.read(2),t.transferCharacteristics=a.read(2),t.matrixCoefficients=a.read(2),t.fullRangeFlag=a.read(1)>>7):(t.colorType==="rICC"||t.colorType==="prof")&&(t.iccProfile=e.readToUint8())})}},{key:"av01",value:function(n){return Ae(n,!1,function(t,e,a){var i=Xl(t,e),l=e.subarray(i);a+=i,t.av1C=o.av1C(o.findBox(l,["av1C"],a)[0]),t.colr=o.colr(o.findBox(l,["colr"],a)[0])})}},{key:"av1C",value:function(n){return Ae(n,!1,function(t,e){t.data=n.data;var a=Yl.fromUint8(e),i=ZS.fromByte(a,4);t.marker=i.read(1),t.version=i.read(7),t.seqProfile=i.read(3),t.seqLevelIdx0=i.read(5),t.seqTier0=i.read(1),t.highBitdepth=i.read(1),t.twelveBit=i.read(1),t.monochrome=i.read(1),t.chromaSubsamplingX=i.read(1),t.chromaSubsamplingY=i.read(1),t.chromaSamplePosition=i.read(2),t.reserved=i.read(3),t.initialPresentationDelayPresent=i.read(1),t.initialPresentationDelayPresent?t.initialPresentationDelayMinusOne=i.read(4):t.initialPresentationDelayMinusOne=0,t.configOBUs=a.readToUint8();var l;t.seqLevelIdx0===2&&t.highBitdepth===1?l=t.twelveBit===1?"12":"10":t.seqProfile<=2&&(l=t.highBitdepth===1?"10":"08"),t.codec=["av01",t.seqProfile,(t.seqLevelIdx0<10?"0"+t.seqLevelIdx0:t.seqLevelIdx0)+(t.seqTier0?"H":"M"),l].join(".")})}},{key:"avc1",value:function(n){return Ae(n,!1,function(t,e,a){var i=Xl(t,e),l=e.subarray(i);a+=i,t.avcC=o.avcC(o.findBox(l,["avcC"],a)[0]),t.pasp=o.pasp(o.findBox(l,["pasp"],a)[0])})}},{key:"avcC",value:function(n){return Ae(n,!1,function(t,e){t.data=n.data,t.configurationVersion=e[0],t.AVCProfileIndication=e[1],t.profileCompatibility=e[2],t.AVCLevelIndication=e[3],t.codec=xh([e[1],e[2],e[3]]),t.lengthSizeMinusOne=e[4]&3,t.spsLength=e[5]&31,t.sps=[];for(var a=6,i=0;i<t.spsLength;i++){var l=st(e,a);a+=2,t.sps.push(e.subarray(a,a+l)),a+=l}t.ppsLength=e[a],a+=1,t.pps=[];for(var c=0;c<t.ppsLength;c++){var u=st(e,a);a+=2,t.pps.push(e.subarray(a,a+=u)),a+=u}})}},{key:"hvc1",value:function(n){return Ae(n,!1,function(t,e,a){var i=Xl(t,e),l=e.subarray(i);a+=i,t.hvcC=o.hvcC(o.findBox(l,["hvcC"],a)[0]),t.pasp=o.pasp(o.findBox(l,["pasp"],a)[0])})}},{key:"hvcC",value:function(n){return Ae(n,!1,function(t,e){t.data=n.data,t.codec="hev1.1.6.L93.B0",t.configurationVersion=e[0];var a=e[1];t.generalProfileSpace=a>>6,t.generalTierFlag=(a&32)>>5,t.generalProfileIdc=a&31,t.generalProfileCompatibility=fe(e,2),t.generalConstraintIndicatorFlags=e.subarray(6,12),t.generalLevelIdc=e[12],t.avgFrameRate=st(e,19),t.numOfArrays=e[22],t.vps=[],t.sps=[],t.pps=[];for(var i=23,l=0,c=0,u=0,d=0;d<t.numOfArrays;d++){l=e[i]&63,c=st(e,i+1),i+=3;for(var f=[],h=0;h<c;h++)u=st(e,i),i+=2,f.push(e.subarray(i,i+u)),i+=u;if(l===32){var p;(p=t.vps).push.apply(p,f)}else if(l===33){var v;(v=t.sps).push.apply(v,f)}else if(l===34){var g;(g=t.pps).push.apply(g,f)}}})}},{key:"pasp",value:function(n){return Ae(n,!1,function(t,e){t.hSpacing=fe(e),t.vSpacing=fe(e,4)})}},{key:"mp4a",value:function(n){return Ae(n,!1,function(t,e,a){var i=Ih(t,e);t.esds=o.esds(o.findBox(e.subarray(i),["esds"],a+i)[0])})}},{key:"esds",value:function(n){return Ae(n,!0,function(t,e){t.codec="mp4a.";for(var a=0,i=0,l=0,c=0;e.length;){for(a=0,c=e[a],i=e[a+1],a+=2;i&128;)l=(i&127)<<7,i=e[a],a+=1;if(l+=i&127,c===3)e=e.subarray(a+3);else if(c===4)t.codec+=(e[a].toString(16)+".").padStart(3,"0"),e=e.subarray(a+13);else if(c===5){var u=t.config=e.subarray(a,a+l),d=(u[0]&248)>>3;d===31&&u.length>=2&&(d=32+((u[0]&7)<<3)+((u[1]&224)>>5)),t.objectType=d,t.codec+=d.toString(16),t.codec[t.codec.length-1]==="."&&(t.codec=t.codec.substring(0,t.codec.length-1));return}else{t.codec[t.codec.length-1]==="."&&(t.codec=t.codec.substring(0,t.codec.length-1));return}}})}},{key:"alaw",value:function(n){return Ae(n,!1,function(t,e){Ih(t,e)})}},{key:"stts",value:function(n){return Ae(n,!0,function(t,e){for(var a=fe(e),i=[],l=4,c=0;c<a;c++)i.push({count:fe(e,l),delta:fe(e,l+4)}),l+=8;t.entryCount=a,t.entries=i})}},{key:"ctts",value:function(n){return Ae(n,!0,function(t,e){var a=fe(e),i=[],l=4;if(t.version===1)for(var c=0;c<a;c++)i.push({count:fe(e,l),offset:fe(e,l+4)}),l+=8;else for(var u=0;u<a;u++)i.push({count:fe(e,l),offset:-(~fe(e,l+4)+1)}),l+=8;t.entryCount=a,t.entries=i})}},{key:"stsc",value:function(n){return Ae(n,!0,function(t,e){for(var a=fe(e),i=[],l=4,c=0;c<a;c++)i.push({firstChunk:fe(e,l),samplesPerChunk:fe(e,l+4),sampleDescriptionIndex:fe(e,l+8)}),l+=12;t.entryCount=a,t.entries=i})}},{key:"stsz",value:function(n){return Ae(n,!0,function(t,e){var a=fe(e),i=fe(e,4),l=[];if(!a)for(var c=8,u=0;u<i;u++)l.push(fe(e,c)),c+=4;t.sampleSize=a,t.sampleCount=i,t.entrySizes=l})}},{key:"stco",value:function(n){return Ae(n,!0,function(t,e){for(var a=fe(e),i=[],l=4,c=0;c<a;c++)i.push(fe(e,l)),l+=4;t.entryCount=a,t.entries=i})}},{key:"co64",value:function(n){return Ae(n,!0,function(t,e){for(var a=fe(e),i=[],l=4,c=0;c<a;c++)i.push(Wa(e,l)),l+=8;t.entryCount=a,t.entries=i})}},{key:"stss",value:function(n){return Ae(n,!0,function(t,e){for(var a=fe(e),i=[],l=4,c=0;c<a;c++)i.push(fe(e,l)),l+=4;t.entryCount=a,t.entries=i})}},{key:"moof",value:function(n){return Ae(n,!1,function(t,e,a){t.mfhd=o.mfhd(o.findBox(e,["mfhd"],a)[0]),t.traf=o.findBox(e,["traf"],a).map(function(i){return o.traf(i)})})}},{key:"mfhd",value:function(n){return Ae(n,!0,function(t,e){t.sequenceNumber=fe(e)})}},{key:"traf",value:function(n){return Ae(n,!1,function(t,e,a){t.tfhd=o.tfhd(o.findBox(e,["tfhd"],a)[0]),t.tfdt=o.tfdt(o.findBox(e,["tfdt"],a)[0]),t.trun=o.trun(o.findBox(e,["trun"],a)[0])})}},{key:"trun",value:function(n){return Ae(n,!0,function(t,e){var a=t.version,i=t.flags,l=e.length,c=t.sampleCount=fe(e),u=4;if(l>u&&i&1&&(t.dataOffset=-(~fe(e,u)+1),u+=4),l>u&&i&4&&(t.firstSampleFlags=fe(e,u),u+=4),t.samples=[],l>u)for(var d,f=0;f<c;f++)d={},i&256&&(d.duration=fe(e,u),u+=4),i&512&&(d.size=fe(e,u),u+=4),i&1024&&(d.flags=fe(e,u),u+=4),i&2048&&(a?d.cts=-(~fe(e,u+4)+1):d.cts=fe(e,u),u+=4),t.samples.push(d)})}},{key:"tfdt",value:function(n){return Ae(n,!0,function(t,e){t.version===1?t.baseMediaDecodeTime=Wa(e):t.baseMediaDecodeTime=fe(e)})}},{key:"probe",value:function(n){return!!o.findBox(n,["ftyp"])}},{key:"parseSampleFlags",value:function(n){return{isLeading:(n[0]&12)>>>2,dependsOn:n[0]&3,isDependedOn:(n[1]&192)>>>6,hasRedundancy:(n[1]&48)>>>4,paddingValue:(n[1]&14)>>>1,isNonSyncSample:n[1]&1,degradationPriority:n[2]<<8|n[3]}}},{key:"moovToTrack",value:function(n,t,e){var a,i,l=n.trak;if(!(!l||!l.length)){var c=l.find(function(It){var Mt,Nt;return((Mt=It.mdia)===null||Mt===void 0||(Nt=Mt.hdlr)===null||Nt===void 0?void 0:Nt.handlerType)==="vide"}),u=l.find(function(It){var Mt,Nt;return((Mt=It.mdia)===null||Mt===void 0||(Nt=Mt.hdlr)===null||Nt===void 0?void 0:Nt.handlerType)==="soun"});if(c&&t){var d,f,h,p,v,g,m,_=t,b=(d=c.tkhd)===null||d===void 0?void 0:d.trackId;b!=null&&(_.id=c.tkhd.trackId),_.tkhdDuration=c.tkhd.duration,_.mvhdDurtion=n.mvhd.duration,_.mvhdTimecale=n.mvhd.timescale,_.timescale=_.formatTimescale=c.mdia.mdhd.timescale,_.duration=c.mdia.mdhd.duration||_.mvhdDurtion/_.mvhdTimecale*_.timescale,_.rotation=c.tkhd.rotation,_.matrix=c.tkhd.matrix;var y=c.mdia.minf.stbl.stsd.entries[0];if(_.width=y.width,_.height=y.height,y.pasp&&(_.sarRatio=[y.pasp.hSpacing,y.pasp.vSpacing]),y.av1C)_.codecType=Sa.AV1,_.codec=y.av1C.codec,_.av1C=y.av1C.data,y.colr&&(_.colr=y.colr.data);else if(y.hvcC)_.codecType=Sa.HEVC,_.codec=y.hvcC.codec,_.vps=y.hvcC.vps,_.sps=y.hvcC.sps,_.pps=y.hvcC.pps,_.hvcC=y.hvcC.data;else if(y.avcC)_.codec=y.avcC.codec,_.sps=y.avcC.sps,_.pps=y.avcC.pps;else throw new Error("unknown video stsd entry");if(_.present=!0,_.ext={},_.ext.stss=(f=c.mdia)===null||f===void 0||(h=f.minf)===null||h===void 0||(p=h.stbl)===null||p===void 0?void 0:p.stss,_.ext.ctts=(v=c.mdia)===null||v===void 0||(g=v.minf)===null||g===void 0||(m=g.stbl)===null||m===void 0?void 0:m.ctts,y&&y.type==="encv"){var w,S,D,C,B,A,L,I;_.isVideoEncryption=!0,y.default_KID=(w=y.sinf)===null||w===void 0||(S=w.schi)===null||S===void 0?void 0:S.tenc.default_KID,y.default_IsEncrypted=(D=y.sinf)===null||D===void 0||(C=D.schi)===null||C===void 0?void 0:C.tenc.default_IsEncrypted,y.default_IV_size=(B=y.sinf)===null||B===void 0||(A=B.schi)===null||A===void 0?void 0:A.tenc.default_IV_size,_.videoSenc=c.mdia.minf.stbl.senc&&c.mdia.minf.stbl.senc.samples,y.data_format=(L=y.sinf)===null||L===void 0||(I=L.frma)===null||I===void 0?void 0:I.data_format,_.useEME=n.useEME,_.kidValue=n.kidValue,_.pssh=n.pssh,_.encv=y}}if(u&&e){var E,x,k,O,P,R,N,H,K,U=e,le=(E=u.tkhd)===null||E===void 0?void 0:E.trackId;le!=null&&(U.id=u.tkhd.trackId),U.tkhdDuration=u.tkhd.duration,U.mvhdDurtion=n.mvhd.duration,U.mvhdTimecale=n.mvhd.timescale,U.timescale=U.formatTimescale=u.mdia.mdhd.timescale,U.duration=u.mdia.mdhd.duration||U.mvhdDurtion/U.mvhdTimecale*U.timescale;var ae=u.mdia.minf.stbl.stsd.entries[0];switch(U.sampleSize=ae.sampleSize,U.sampleRate=ae.sampleRate,U.channelCount=ae.channelCount,U.present=!0,ae.type){case"alaw":U.codecType=U.codec=En.G711PCMA,U.sampleRate=8e3;break;case"ulaw":U.codecType=U.codec=En.G711PCMU,U.sampleRate=8e3;break;default:U.sampleDuration=la.getFrameDuration(U.sampleRate,U.timescale),U.sampleRateIndex=la.getRateIndexByRate(U.sampleRate),U.objectType=((a=ae.esds)===null||a===void 0?void 0:a.objectType)||2,ae.esds&&(U.config=Array.from(ae.esds.config)),U.codec=((i=ae.esds)===null||i===void 0?void 0:i.codec)||"mp4a.40.2";break}if(U.sampleDuration=la.getFrameDuration(U.sampleRate,U.timescale),U.objectType=((x=ae.esds)===null||x===void 0?void 0:x.objectType)||2,ae.esds&&(ae.esds.config?U.config=Array.from(ae.esds.config):console.warn("esds config is null")),U.codec=((k=ae.esds)===null||k===void 0?void 0:k.codec)||"mp4a.40.2",U.sampleRateIndex=la.getRateIndexByRate(U.sampleRate),U.ext={},U.ext.stss=(O=u.mdia)===null||O===void 0||(P=O.minf)===null||P===void 0||(R=P.stbl)===null||R===void 0?void 0:R.stss,U.ext.ctts=(N=u.mdia)===null||N===void 0||(H=N.minf)===null||H===void 0||(K=H.stbl)===null||K===void 0?void 0:K.ctts,U.present=!0,ae&&ae.type==="enca"){var q,we,de,ze,et,at,Pt,Rt;U.isAudioEncryption=!0,ae.data_format=(q=ae.sinf)===null||q===void 0||(we=q.frma)===null||we===void 0?void 0:we.data_format,ae.default_KID=(de=ae.sinf)===null||de===void 0||(ze=de.schi)===null||ze===void 0?void 0:ze.tenc.default_KID,ae.default_IsEncrypted=(et=ae.sinf)===null||et===void 0||(at=et.schi)===null||at===void 0?void 0:at.tenc.default_IsEncrypted,ae.default_IV_size=(Pt=ae.sinf)===null||Pt===void 0||(Rt=Pt.schi)===null||Rt===void 0?void 0:Rt.tenc.default_IV_size,U.audioSenc=u.mdia.minf.stbl.senc&&u.mdia.minf.stbl.senc.samples,U.useEME=n.useEME,U.kidValue=n.kidValue,U.enca=ae}}if(e&&(e.isVideoEncryption=t?t.isVideoEncryption:!1),t&&(t.isAudioEncryption=e?e.isAudioEncryption:!1),t!=null&&t.encv||e!=null&&e.enca){var Je,ct,mt=t==null||(Je=t.encv)===null||Je===void 0?void 0:Je.default_KID,tn=e==null||(ct=e.enca)===null||ct===void 0?void 0:ct.default_KID,Vt=mt||tn?(mt||tn).join(""):null;t&&(t.kid=Vt),e&&(e.kid=Vt)}return t&&(t.flags=3841),e&&(e.flags=1793),{videoTrack:t,audioTrack:e}}}},{key:"evaluateDefaultDuration",value:function(n,t,e){var a,i=t==null||(a=t.samples)===null||a===void 0?void 0:a.length;if(!i)return 1024;var l=1024*i/t.timescale;return l*n.timescale/e}},{key:"moofToSamples",value:function(n,t,e){var a={};return n.mfhd&&(t&&(t.sequenceNumber=n.mfhd.sequenceNumber),e&&(e.sequenceNumber=n.mfhd.sequenceNumber)),n.traf.forEach(function(i){var l=i.tfhd,c=i.tfdt,u=i.trun;if(!(!l||!u)){c&&(t&&t.id===l.trackId&&(t.baseMediaDecodeTime=c.baseMediaDecodeTime),e&&e.id===l.trackId&&(e.baseMediaDecodeTime=c.baseMediaDecodeTime));var d=l.defaultSampleSize||0,f=l.defaultSampleDuration||o.evaluateDefaultDuration(t,e,u.samples.length||u.sampleCount),h=u.dataOffset||0,p=0,v=-1;if(!u.samples.length&&u.sampleCount){a[l.trackId]=[];for(var g=0;g<u.sampleCount;g++)a[l.trackId].push({offset:h,dts:p,duration:f,size:d}),p+=f,h+=d}else a[l.trackId]=u.samples.map(function(m,_){return m={offset:h,dts:p,pts:p+(m.cts||0),duration:m.duration||f,size:m.size||d,gopId:v,keyframe:_===0||m.flags!==null&&m.flags!==void 0&&(m.flags&65536)>>>0!==65536},m.keyframe&&(v++,m.gopId=v),p+=m.duration,h+=m.size,m})}}),a}},{key:"moovToSamples",value:function(n){var t=n.trak;if(!(!t||!t.length)){var e=t.find(function(L){var I,E;return((I=L.mdia)===null||I===void 0||(E=I.hdlr)===null||E===void 0?void 0:E.handlerType)==="vide"}),a=t.find(function(L){var I,E;return((I=L.mdia)===null||I===void 0||(E=I.hdlr)===null||E===void 0?void 0:E.handlerType)==="soun"});if(!(!e&&!a)){var i,l;if(e){var c,u,d=(c=e.mdia)===null||c===void 0||(u=c.minf)===null||u===void 0?void 0:u.stbl;if(!d)return;var f=d.stts,h=d.stsc,p=d.stsz,v=d.stco,g=d.stss,m=d.ctts;if(!f||!h||!p||!v||!g)return;i=Lh(f,h,p,v,m,g)}if(a){var _,b,y,w=(_=a.mdia)===null||_===void 0||(b=_.minf)===null||b===void 0?void 0:b.stbl;if(!w)return;var S=(y=a.mdia.mdhd)===null||y===void 0?void 0:y.timescale,D=w.stts,C=w.stsc,B=w.stsz,A=w.stco;if(!S||!D||!C||!B||!A)return;l=Lh(D,C,B,A)}return{videoSamples:i,audioSamples:l}}}}}]),o}();function Lh(o,r,n,t,e,a){var i=[],l=e==null?void 0:e.entries,c=r.entries,u=t.entries,d=n.entrySizes,f=a==null?void 0:a.entries,h;f&&(h={},f.forEach(function(C){h[C-1]=!0}));var p;l&&(p=[],l.forEach(function(C){for(var B=C.count,A=C.offset,L=0;L<B;L++)p.push(A)}));var v,g=-1,m=0,_=0,b=0,y=0,w=0,S=c[0].samplesPerChunk,D=c[1]?c[1].firstChunk-1:1/0;return o.entries.forEach(function(C){for(var B=C.count,A=C.delta,L=0;L<B;L++)v={dts:m,duration:A,size:d[_]||n.sampleSize,offset:u[b]+w,index:_},f&&(v.keyframe=h[_],v.keyframe&&g++,v.gopId=g),p&&_<p.length&&(v.pts=v.dts+p[_]),i.push(v),m+=A,_++,_<S?w+=v.size:(b++,w=0,b>=D&&(y++,D=c[y+1]?c[y+1].firstChunk-1:1/0),S+=c[y].samplesPerChunk)}),i}function Xl(o,r){return o.dataReferenceIndex=st(r,6),o.width=st(r,24),o.height=st(r,26),o.horizresolution=fe(r,28),o.vertresolution=fe(r,32),o.frameCount=st(r,40),o.depth=st(r,74),78}function Ih(o,r){return o.dataReferenceIndex=st(r,6),o.channelCount=st(r,16),o.sampleSize=st(r,18),o.sampleRate=fe(r,24)/(1<<16),28}function Ae(o,r,n){if(!!o){if(o.size!==o.data.length)throw new Error("box ".concat(o.type," size !== data.length"));var t={start:o.start,size:o.size,headerSize:o.headerSize,type:o.type};return r&&(t.version=o.data[o.headerSize],t.flags=HS(o.data,o.headerSize+1),t.headerSize+=4),n(t,o.data.subarray(t.headerSize),t.start+t.headerSize),t}}var qS=function(r,n,t){for(var e=String(t),a=n>>0,i=Math.ceil(a/e.length),l=[],c=String(r);i--;)l.push(e);return l.join("").substring(0,a-c.length)+c},Jl=function(){for(var r=[],n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];return t.forEach(function(a){r.push(qS(Number(a).toString(16),2,0))}),r[0]},$S=function(){function o(r,n,t){pt(this,o),ne(this,"__loadedMoofWraps",[]),ne(this,"__lastRemainData",null),ne(this,"__lastRemainDataStart",0),ne(this,"__nextMoofStart",-1),this.videoTrack=r||new Ch,this.audioTrack=n||new Sh,this.metadataTrack=t||new kh}return vt(o,[{key:"demuxPart",value:function(n,t,e){var a=this,i=this.videoTrack,l=this.audioTrack,c=i.exist(),u=l.exist(),d=/av01/.test(i.codec);i.samples=[],l.samples=[];var f=n,h=t;if(this.__lastRemainData){var p=this.__lastRemainDataStart+this.__lastRemainData.byteLength,v=t<=p&&t>this.__lastRemainDataStart&&t+n.byteLength>p;if(v){var g=n.subarray(this.__lastRemainData.byteLength+this.__lastRemainDataStart-t);f=Cn(this.__lastRemainData,g),h=this.__lastRemainDataStart,this.__lastRemainData=null}else this.__lastRemainData=null,this.__lastRemainDataStart=0,this.__nextMoofStart=-1}if(!e){var m=lt.findBox(f,["moov"])[0];if(!m)throw new Error("cannot found moov box");e=lt.moov(m)}if(f){var _=h+f.byteLength;!c&&!u&<.moovToTrack(e,i,l);var b=[];this.__nextMoofStart<0?lt.findBox(f,["moof"],h).forEach(function(C){return b.push(C)}):this.__nextMoofStart>=h&&this.__nextMoofStart<=_-8&<.findBox(f.subarray(this.__nextMoofStart-h),["moof"],this.__nextMoofStart).forEach(function(C){return b.push(C)}),b.filter(function(C){return C.size<=C.data.length}).forEach(function(C){var B=lt.moof(C);a.__nextMoofStart=B.start+Math.max.apply(Math,hn(B.traf.map(function(A){return A.trun.samples.reduce(function(L,I){return L+I.size},A.trun.dataOffset||0)}))),a.__loadedMoofWraps.push({start:B.start,nextMoofStart:a.__nextMoofStart,moof:B}),a.__loadedMoofWraps.sort(function(A,L){return A.start-L.start})});var y=LS(this.__loadedMoofWraps),w;try{var S=function(){var B=w.value;if(B.start>_||B.nextMoofStart<h)return"continue";var A=B.start,L=lt.moofToSamples(B.moof,i,l),I=i.baseMediaDecodeTime,E=l.baseMediaDecodeTime,x;Object.keys(L).forEach(function(k){i.id==k?L[k].some(function(O){var P=O.offset+=A;if(!(P<h)){if(P+O.size>_)return!0;var R=new zl((O.pts||O.dts)+I,O.dts+I);R.duration=O.duration,R.gopId=O.gopId,O.keyframe&&R.setToKeyframe();var N=f.subarray(P-h,P-h+O.size);if(R.data=N,!d)for(var H=0,K=N.length-1;H<K;)x=fe(N,H),H+=4,R.units.push(N.subarray(H,H+x)),H+=x;a.__lastRemainDataStart=P+O.size,i.samples.push(R)}}):l.id==k&&L[k].some(function(O){var P=O.offset+A;if(!(P<h)){if(P+O.size>_)return!0;var R=f.subarray(P-h,P-h+O.size);l.samples.push(new dr(O.dts+E,R,O.duration)),a.__lastRemainDataStart=P+O.size}})})};for(y.s();!(w=y.n()).done;)var D=S()}catch(C){y.e(C)}finally{y.f()}}return this.__lastRemainDataStart>h&&this.__lastRemainDataStart<f.byteLength+h?this.__lastRemainData=f.subarray(this.__lastRemainDataStart-h):(this.__lastRemainData=f,this.__lastRemainDataStart=h),i.samples.length&&(i.baseMediaDecodeTime=i.samples[0].pts),l.samples.length&&(l.baseMediaDecodeTime=l.samples[0].pts),{videoTrack:i,audioTrack:l,metadataTrack:this.metadataTrack}}},{key:"demux",value:function(n,t){var e=this.videoTrack,a=this.audioTrack,i=e.exist(),l=a.exist();if(e.samples=[],a.samples=[],t){if(!l){var c=lt.findBox(t,["moov"])[0];if(!c)throw new Error("cannot found moov box");lt.moovToTrack(lt.moov(c),null,a)}var u=lt.findBox(t,["moof"])[0];if(u){var d=lt.moofToSamples(lt.moof(u),null,a)[a.id],f=a.baseMediaDecodeTime;if(d){var h=u.start;d.map(function(w){w.offset+=h;var S=t.subarray(w.offset,w.offset+w.size);a.samples.push(new dr(w.dts+f,S,w.duration))})}}}if(n){if(!i&&!l){var p=lt.findBox(n,["moov"])[0];if(!p)throw new Error("cannot found moov box");lt.moovToTrack(lt.moov(p),e,a)}var v=lt.findBox(n,["moof"])[0];if(v){var g=lt.moofToSamples(lt.moof(v),e,a),m=e.baseMediaDecodeTime,_=a.baseMediaDecodeTime,b=v.start,y;Object.keys(g).forEach(function(w){e.id==w?g[w].map(function(S){S.offset+=b;var D=new zl((S.pts||S.dts)+m,S.dts+m);D.duration=S.duration,D.gopId=S.gopId,S.keyframe&&D.setToKeyframe();var C=n.subarray(S.offset,S.offset+S.size);D.data=C;for(var B=0,A=C.length-1;B<A;)y=fe(C,B),B+=4,D.units.push(C.subarray(B,B+y)),B+=y;e.samples.push(D)}):a.id==w&&g[w].map(function(S){S.offset+=b;var D=n.subarray(S.offset,S.offset+S.size);a.samples.push(new dr(S.dts+_,D,S.duration))})})}}return{videoTrack:e,audioTrack:a,metadataTrack:this.metadataTrack}}},{key:"reset",value:function(){this.videoTrack.reset(),this.audioTrack.reset(),this.metadataTrack.reset()}}],[{key:"probe",value:function(n){return lt.probe(n)}}]),o}();function e7(o){for(var r=0,n=arguments.length,t=new Array(n>1?n-1:0),e=1;e<n;e++)t[e-1]=arguments[e];t.forEach(function(l){r+=l.length});var a=new o(r),i=0;return t.forEach(function(l){a.set(l,i),i+=l.length}),a}var Xt=function(){function o(){pt(this,o),this.buffer=new Uint8Array(0)}return vt(o,[{key:"write",value:function(){for(var n=this,t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];e.forEach(function(i){i?n.buffer=e7(Uint8Array,n.buffer,i):window.console.warn(i)})}}],[{key:"writeUint16",value:function(n){return new Uint8Array([n>>8&255,n&255])}},{key:"writeUint32",value:function(n){return new Uint8Array([n>>24,n>>16&255,n>>8&255,n&255])}}]),o}(),Mh=Math.pow(2,32)-1,Fe=function(){function o(){pt(this,o)}return vt(o,null,[{key:"box",value:function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),a=1;a<t;a++)e[a-1]=arguments[a];e=e.filter(Boolean);var i=8+e.reduce(function(u,d){return u+d.byteLength},0),l=new Uint8Array(i);l[0]=i>>24&255,l[1]=i>>16&255,l[2]=i>>8&255,l[3]=i&255,l.set(n,4);var c=8;return e.forEach(function(u){l.set(u,c),c+=u.byteLength}),l}},{key:"ftyp",value:function(n){var t=n.find(function(e){return e.type===Ca.VIDEO&&e.codecType===Sa.HEVC});return t?o.FTYPHEV1:o.FTYPAVC1}},{key:"initSegment",value:function(n){var t=o.ftyp(n),e=Cn(t,o.moov(n));return e}},{key:"pssh",value:function(n){var t=new Uint8Array([1,0,0,0].concat([16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75],[0,0,0,1],Bh(n.kid),[0,0,0,0]));return o.box(o.types.pssh,t)}},{key:"moov",value:function(n){if(n[0].useEME&&(n[0].encv||n[0].enca)){n[0].pssh||(n[0].pssh={kid:n[0].kid});var t=this.pssh(n[0].pssh);return o.box.apply(o,[o.types.moov,o.mvhd(n[0].mvhdDurtion||n[0].duration,n[0].mvhdTimecale||n[0].timescale),o.mvex(n)].concat(hn(n.map(function(e){return o.trak(e)})),[t]))}else return o.box.apply(o,[o.types.moov,o.mvhd(n[0].mvhdDurtion||n[0].duration,n[0].mvhdTimecale||n[0].timescale)].concat(hn(n.map(function(e){return o.trak(e)})),[o.mvex(n)]))}},{key:"mvhd",value:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:9e4,e=o.box(o.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]));return e}},{key:"trak",value:function(n){var t=o.box(o.types.trak,o.tkhd(n.id,n.tkhdDuration||0,n.width,n.height),o.mdia(n));return t}},{key:"tkhd",value:function(n,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=o.box(o.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,n>>24&255,n>>16&255,n>>8&255,n&255,0,0,0,0,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,e>>8&255,e&255,0,0,a>>8&255,a&255,0,0]));return i}},{key:"mdia",value:function(n){var t=o.box(o.types.mdia,o.mdhd(n.duration,n.timescale),o.hdlr(n.type),o.minf(n));return t}},{key:"mdhd",value:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:9e4,e=o.box(o.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,85,196,0,0]));return e}},{key:"hdlr",value:function(n){var t=o.box(o.types.hdlr,o.HDLR_TYPES[n]);return t}},{key:"minf",value:function(n){var t=o.box(o.types.minf,n.type===Ca.VIDEO?o.VMHD:o.SMHD,o.DINF,o.stbl(n));return t}},{key:"stbl",value:function(n){var t=[];n&&n.ext&&n.ext.stss&&t.push(o.stss(n.ext.stss.entries));var e=o.box(o.types.stbl,o.stsd(n),o.STTS,t[0],o.STSC,o.STSZ,o.STCO);return e}},{key:"stsd",value:function(n){var t;n.type==="audio"?n.useEME&&n.enca?t=o.enca(n):n.codecType===En.OPUS?t=o.opus(n):t=o.mp4a(n):n.useEME&&n.encv?t=o.encv(n):n.av1C?t=o.av01(n):t=o.avc1hev1(n);var e=o.box(o.types.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),t);return e}},{key:"enca",value:function(n){var t=n.enca.channelCount,e=n.enca.sampleRate,a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,e>>8&255,e&255,0,0]),i=o.esds(n.config),l=o.sinf(n.enca);return o.box(o.types.enca,a,i,l)}},{key:"encv",value:function(n){var t,e,a=n.sps.length>0?n.sps[0]:[],i=n.pps.length>0?n.pps[0]:[],l=n.width,c=n.height,u=n.sarRatio[0],d=n.sarRatio[1],f=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,l&255,c>>8&255,c&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),h=new Uint8Array((t=(e=[1,a[1],a[2],a[3],255,225,a.length>>>8&255,a.length&255]).concat.apply(e,hn(a)).concat([1,i.length>>>8&255,i.length&255])).concat.apply(t,hn(i))),p=new Uint8Array([0,0,88,57,0,15,200,192,0,4,86,72]),v=o.sinf(n.encv),g=new Uint8Array([u>>24,u>>16&255,u>>8&255,u&255,d>>24,d>>16&255,d>>8&255,d&255]);return o.box(o.types.encv,f,o.box(o.types.avcC,h),o.box(o.types.btrt,p),v,o.box(o.types.pasp,g))}},{key:"schi",value:function(n){var t=new Uint8Array([]),e=o.tenc(n);return o.box(o.types.schi,t,e)}},{key:"tenc",value:function(n){var t=new Uint8Array([0,0,0,0,0,0,n.default_IsEncrypted&255,n.default_IV_size&255].concat(Bh(n.default_KID)));return o.box(o.types.tenc,t)}},{key:"sinf",value:function(n){var t=new Uint8Array([]),e=new Uint8Array([n.data_format.charCodeAt(0),n.data_format.charCodeAt(1),n.data_format.charCodeAt(2),n.data_format.charCodeAt(3)]),a=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]),i=o.schi(n);return o.box(o.types.sinf,t,o.box(o.types.frma,e),o.box(o.types.schm,a),i)}},{key:"av01",value:function(n){return o.box(o.types.av01,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n.width>>8&255,n.width&255,n.height>>8&255,n.height&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),n.av1C,n.colr)}},{key:"avc1hev1",value:function(n){var t=n.codecType===Sa.HEVC,e=t?o.types.hvc1:o.types.avc1,a=t?o.hvcC(n):o.avcC(n),i=[new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n.width>>8&255,n.width&255,n.height>>8&255,n.height&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),a];return t?i.push(o.box(o.types.fiel,new Uint8Array([1,0]))):n.sarRatio&&n.sarRatio.length>1&&i.push(o.pasp(n.sarRatio)),o.box.apply(o,[e].concat(i))}},{key:"avcC",value:function(n){var t,e,a=[],i=[],l;return n.sps.forEach(function(c){l=c.byteLength,a.push(l>>>8&255),a.push(l&255),a.push.apply(a,hn(c))}),n.pps.forEach(function(c){l=c.byteLength,i.push(l>>>8&255),i.push(l&255),i.push.apply(i,hn(c))}),o.box(o.types.avcC,new Uint8Array((t=(e=[1,a[3],a[4],a[5],255,224|n.sps.length]).concat.apply(e,a).concat([n.pps.length])).concat.apply(t,i)))}},{key:"hvcC",value:function(n){var t=n.hvcC;if(t instanceof ArrayBuffer||t instanceof Uint8Array)return t;var e=n.vps,a=n.sps,i=n.pps,l;if(t){var c=t.generalProfileCompatibilityFlags,u=t.generalConstraintIndicatorFlags,d=(e.length&&1)+(a.length&&1)+(i.length&&1);l=[1,t.generalProfileSpace<<6|t.generalTierFlag<<5|t.generalProfileIdc,c>>>24,c>>>16,c>>>8,c,u[0],u[1],u[2],u[3],u[4],u[5],t.generalLevelIdc,240,0,252,t.chromaFormatIdc|252,t.bitDepthLumaMinus8|248,t.bitDepthChromaMinus8|248,0,0,t.numTemporalLayers<<3|t.temporalIdNested<<2|3,d];var f=function(p){var v;l.push(p.length>>8,p.length),(v=l).push.apply(v,hn(p))};e.length&&(l.push(160,0,e.length),e.forEach(f)),a.length&&(l.push(161,0,a.length),a.forEach(f)),i.length&&(l.push(162,0,i.length),i.forEach(f))}else l=[1,1,96,0,0,0,144,0,0,0,0,0,93,240,0,252,253,248,248,0,0,15,3,160,0,1,0,24,64,1,12,1,255,255,1,96,0,0,3,0,144,0,0,3,0,0,3,0,93,153,152,9,161,0,1,0,45,66,1,1,1,96,0,0,3,0,144,0,0,3,0,0,3,0,93,160,2,128,128,45,22,89,153,164,147,43,154,128,128,128,130,0,0,3,0,2,0,0,3,0,50,16,162,0,1,0,7,68,1,193,114,180,98,64];return o.box(o.types.hvcC,new Uint8Array(l))}},{key:"pasp",value:function(n){var t=xS(n,2),e=t[0],a=t[1];return o.box(o.types.pasp,new Uint8Array([e>>24,e>>16&255,e>>8&255,e&255,a>>24,a>>16&255,a>>8&255,a&255]))}},{key:"mp4a",value:function(n){return o.box(o.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n.channelCount,0,16,0,0,0,0,n.sampleRate>>8&255,n.sampleRate&255,0,0]),n.config.length?o.esds(n.config):void 0)}},{key:"esds",value:function(n){var t=n.length,e=o.box(o.types.esds,new Uint8Array([0,0,0,0,3,23+t,0,0,0,4,15+t,64,21,0,6,0,0,0,218,192,0,0,218,192,5].concat([t]).concat(n).concat([6,1,2])));return e}},{key:"opus",value:function(n){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n.channelCount,0,16,0,0,0,0,n.sampleRate>>8&255,n.sampleRate&255,0,0]),e=n.config.length?o.dOps(n):[];return o.box(o.types.Opus,t,e)}},{key:"dOps",value:function(n){if(n.config)return n.config[4]=n.sampleRate>>>24&255,n.config[5]=n.sampleRate>>>16&255,n.config[6]=n.sampleRate>>>8&255,n.config[7]=n.sampleRate&255,o.box(o.types.dOps,n.config)}},{key:"mvex",value:function(n){var t=o.box.apply(o,[o.types.mvex].concat(hn(n.map(function(e){return o.trex(e.id)}))));return t}},{key:"trex",value:function(n){var t=o.box(o.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]));return t}},{key:"trex1",value:function(n){var t=o.box(o.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,0,0,0,1,0,0,2,0,0,0,0,0,0,1,0,0]));return t}},{key:"trex2",value:function(n){var t=o.box(o.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,0,0,0,1,0,0,4,0,0,0,0,0,2,0,0,0]));return t}},{key:"moof",value:function(n){var t=o.box.apply(o,[o.types.moof,o.mfhd(n[0].samples?n[0].samples[0].gopId:0)].concat(hn(n.map(function(e){return o.traf(e)}))));return t}},{key:"mfhd",value:function(n){var t=o.box(o.types.mfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255]));return t}},{key:"traf",value:function(n){var t=o.tfhd(n.id),e=o.tfdt(n,n.baseMediaDecodeTime),a=0,i;if(n.isVideo&&n.videoSenc&&(i=n.videoSenc,i.forEach(function(x){a=a+8,x.subsamples&&x.subsamples.length&&(a=a+2,a=a+x.subsamples.length*6)})),n.videoSencLength=a,!n.useEME||!n.isVideoEncryption&&!n.isAudioEncryption){var l=o.sdtp(n),c=16+20+8+16+8+8;return o.box(o.types.traf,t,e,l,o.trun(n.samples,l.byteLength+c))}else if(n.isVideoEncryption)if(n.isVideo){var u=o.saiz(n),d=o.saio(n),f=o.trun1(n),h=o.senc(n),p=o.box(o.types.traf,t,e,u,d,f,h);return p}else if(n.isAudioEncryption){var m=o.sbgp(),_=o.saiz(n),b=o.saio(n),y=o.senc(n),w=o.trun1(n),S=o.box(o.types.traf,t,e,m,_,b,y,w);return S}else{var v=o.sbgp(),g=o.trun1(n);return o.box(o.types.traf,t,e,v,g)}else if(n.isVideo){var D=o.trun1(n);return o.box(o.types.traf,t,e,D)}else{var C=o.sbgp(),B=o.saiz(n),A=o.saio(n),L=o.senc(n),I=o.trun1(n),E=o.box(o.types.traf,t,e,C,B,A,L,I);return E}}},{key:"sdtp",value:function(n){var t=new Xt;return n.samples.forEach(function(e){t.write(new Uint8Array(n.isVideo?[e.keyframe?32:16]:[16]))}),o.box(o.types.sdtp,this.extension(0,0),t.buffer)}},{key:"trun1",value:function(n){var t=new Xt,e=Xt.writeUint32(n.samples.length),a=null;if(n.isVideo){var i=n.videoSencLength;a=Xt.writeUint32(n.samples.length*16+i+149),!n.isVideoEncryption&&n.isAudioEncryption&&(a=Xt.writeUint32(n.samples.length*16+92))}else{var l=n.samples.length*12+124;n.isAudioEncryption&&(l=n.samples.length*12+8*n.audioSenc.length+177),a=Xt.writeUint32(l)}return n.samples.forEach(function(c){t.write(Xt.writeUint32(c.duration)),t.write(Xt.writeUint32(c.size)),t.write(Xt.writeUint32(c.keyframe?33554432:65536)),n.isVideo&&t.write(Xt.writeUint32(c.cts?c.cts:0))}),o.box(o.types.trun,this.extension(0,n.flags),e,a,t.buffer)}},{key:"senc",value:function(n){var t=new Xt,e=n.samples.length,a=n.isVideo?16:8,i=n.isVideo?2:0,l=[],c=0;return n.isVideo?(l=n.videoSenc,c=n.videoSencLength):l=n.audioSenc,c=c||a*e,t.write(Xt.writeUint32(16+c),o.types.senc,this.extension(0,i)),t.write(Xt.writeUint32(e)),l.forEach(function(u){for(var d=0;d<u.InitializationVector.length;d++)t.write(new Uint8Array([u.InitializationVector[d]]));u.subsamples&&u.subsamples.length&&(t.write(Xt.writeUint16(u.subsamples.length)),u.subsamples.forEach(function(f){t.write(Xt.writeUint16(f.BytesOfClearData)),t.write(Xt.writeUint32(f.BytesOfProtectedData))}))}),t.buffer}},{key:"saio",value:function(n){var t=n.samples.length*12+141;!n.isVideo&&n.isAudioEncryption&&(t=149);var e=new Uint8Array([1,0,0,0,0,0,0,1,0,0,0,0,t>>24&255,t>>16&255,t>>8&255,t&255]);return o.box(o.types.saio,e)}},{key:"saiz",value:function(n){var t=n.samples.length,e=new Uint8Array([0,0,0,0,16,t>>24&255,t>>16&255,t>>8&255,t&255]);return o.box(o.types.saiz,e)}},{key:"sbgp",value:function(){var n=new Uint8Array([114,111,108,108,0,0,0,1,0,0,1,25,0,0,0,1]);return o.box(o.types.sbgp,this.extension(0,0),n)}},{key:"extension",value:function(n,t){return new Uint8Array([n,t>>16&255,t>>8&255,t&255])}},{key:"tfhd",value:function(n){return o.box(o.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255]))}},{key:"tfdt",value:function(n,t){var e=Math.floor(t/(Mh+1)),a=Math.floor(t%(Mh+1));return n.useEME&&(n.isVideoEncryption||n.isAudioEncryption)?o.box(o.types.tfdt,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255])):o.box(o.types.tfdt,new Uint8Array([1,0,0,0,e>>24,e>>16&255,e>>8&255,e&255,a>>24,a>>16&255,a>>8&255,a&255]))}},{key:"trun",value:function(n,t){var e=n.length,a=12+16*e;t+=8+a;var i=new Uint8Array(a);i.set([0,0,15,1,e>>>24&255,e>>>16&255,e>>>8&255,e&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0);for(var l=0;l<e;l++){var c=n[l],u=c.duration,d=c.size,f=c.flag,h=f===void 0?{}:f,p=c.cts,v=p===void 0?0:p;i.set([u>>>24&255,u>>>16&255,u>>>8&255,u&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255,h.isLeading<<2|(h.dependsOn===null||h.dependsOn===void 0?1:h.dependsOn),h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|(h.isNonSyncSample===null||h.isNonSyncSample===void 0?1:h.isNonSyncSample),h.degradationPriority&240<<8,h.degradationPriority&15,v>>>24&255,v>>>16&255,v>>>8&255,v&255],12+16*l)}return o.box(o.types.trun,i)}},{key:"moovMP4",value:function(n){return o.box.apply(o,[o.types.moov,o.mvhd(n[0].duration,n[0].timescale)].concat(hn(n.map(function(t){return o.trackMP4(t)}))))}},{key:"trackMP4",value:function(n){return o.box(o.types.trak,o.tkhd(n.id,n.duration,n.width,n.height),o.mdiaMP4(n))}},{key:"mdiaMP4",value:function(n){return o.box(o.types.mdia,o.mdhd(n.duration,n.timescale),o.hdlr(n.type),o.minfMP4(n))}},{key:"minfMP4",value:function(n){return o.box(o.types.minf,n.type===Ca.VIDEO?o.VMHD:o.SMHD,o.DINF,o.stblMP4(n))}},{key:"stblMP4",value:function(n){var t=n.ext,e=[o.stsd(n),o.stts(t.stts),o.stsc(t.stsc),o.stsz(t.stsz),o.stco(t.stco)];return t.stss.length&&e.push(o.stss(t.stss)),t.ctts.length&&e.push(o.ctts(t.ctts)),o.box.apply(o,[o.types.stbl].concat(e))}},{key:"stts",value:function(n){var t=n.length,e=new Uint8Array(8*t),a=0;return n.forEach(function(i){var l=i.value,c=i.count;e.set([c>>24,c>>16&255,c>>8&255,c&255,l>>24,l>>16&255,l>>8&255,l&255],a),a+=8}),o.box(o.types.stts,Cn(new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255]),e))}},{key:"stsc",value:function(n){var t=n.length,e=new Uint8Array(12*t),a=0;return n.forEach(function(i){var l=i.firstChunk,c=i.samplesPerChunk,u=i.sampleDescIndex;e.set([l>>24,l>>16&255,l>>8&255,l&255,c>>24,c>>16&255,c>>8&255,c&255,u>>24,u>>16&255,u>>8&255,u&255],a),a+=12}),o.box(o.types.stsc,Cn(new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255]),e))}},{key:"stsz",value:function(n){var t=n.length,e=new Uint8Array(4*t),a=0;return n.forEach(function(i){e.set([i>>24,i>>16&255,i>>8&255,i&255],a),a+=4}),o.box(o.types.stsz,Cn(new Uint8Array([0,0,0,0,0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255]),e))}},{key:"stco",value:function(n){var t=n.length,e=new Uint8Array(4*t),a=0;return n.forEach(function(i){e.set([i>>24,i>>16&255,i>>8&255,i&255],a),a+=4}),o.box(o.types.stco,Cn(new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255]),e))}},{key:"stss",value:function(n){var t=n.length,e=new Uint8Array(4*t),a=0;return n.forEach(function(i){e.set([i>>24,i>>16&255,i>>8&255,i&255],a),a+=4}),o.box(o.types.stss,Cn(new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255]),e))}},{key:"ctts",value:function(n){var t=n.length,e=new Uint8Array(8*t),a=0;return n.forEach(function(i){var l=i.value,c=i.count;e.set([c>>24,c>>16&255,c>>8&255,c&255,l>>24,l>>16&255,l>>8&255,l&255],a),a+=8}),o.box(o.types.ctts,Cn(new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255]),e))}},{key:"styp",value:function(){return o.box(o.types.styp,new Uint8Array([109,115,100,104,0,0,0,0,109,115,100,104,109,115,105,120]))}},{key:"sidx",value:function(n){var t=n.timescale,e=n.samples[0].duration,a=e*n.samples.length,i=n.samples[0].sampleOffset*e,l=8;n.samples.forEach(function(h){l+=h.size});var c=0;if(n.isVideo){var u=0,d;n.videoSenc&&(d=n.videoSenc),n.isVideo&&d.forEach(function(h){u=u+8,h.subsamples&&h.subsamples.length&&(u=u+2,u=u+h.subsamples.length*6)}),n.videoSencLength=u,c=l+141+n.samples.length*16+u,n.useEME&&n.isAudioEncryption&&!n.isVideoEncryption&&(c=l+n.samples.length*16+84)}else c=l+116+n.samples.length*12,n.useEME&&n.isAudioEncryption&&(c=l+169+n.samples.length*12+8*n.audioSenc.length);var f=new Uint8Array([0,0,0,0,0,0,0,n.id&255,t>>24&255,t>>16&255,t>>8&255,t&255,i>>24&255,i>>16&255,i>>8&255,i&255,0,0,0,0,0,0,0,1,0,c>>16&255,c>>8&255,c&255,a>>24&255,a>>16&255,a>>8&255,a&255,144,0,0,0]);return o.box(o.types.sidx,f)}},{key:"mdat",value:function(n){var t=o.box(o.types.mdat,n);return t}}]),o}();ne(Fe,"types",["Opus","dOps","av01","av1C","avc1","avcC","hvc1","hvcC","dinf","dref","esds","ftyp","hdlr","mdat","mdhd","mdia","mfhd","minf","moof","moov","mp4a","mvex","mvhd","pasp","stbl","stco","stsc","stsd","stsz","stts","tfdt","tfhd","traf","trak","trex","tkhd","vmhd","smhd","ctts","stss","styp","pssh","sidx","sbgp","saiz","saio","senc","trun","encv","enca","sinf","btrt","frma","tenc","schm","schi","mehd","fiel","sdtp"].reduce(function(o,r){return o[r]=[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3)],o},Object.create(null))),ne(Fe,"HDLR_TYPES",{video:new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),audio:new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0])}),ne(Fe,"FTYPAVC1",Fe.box(Fe.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]))),ne(Fe,"FTYPHEV1",Fe.box(Fe.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,104,101,118,49]))),ne(Fe,"DINF",Fe.box(Fe.types.dinf,Fe.box(Fe.types.dref,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1])))),ne(Fe,"VMHD",Fe.box(Fe.types.vmhd,new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]))),ne(Fe,"SMHD",Fe.box(Fe.types.smhd,new Uint8Array([0,0,0,0,0,0,0,0]))),ne(Fe,"StblTable",new Uint8Array([0,0,0,0,0,0,0,0])),ne(Fe,"STTS",Fe.box(Fe.types.stts,Fe.StblTable)),ne(Fe,"STSC",Fe.box(Fe.types.stsc,Fe.StblTable)),ne(Fe,"STSZ",Fe.box(Fe.types.stsz,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]))),ne(Fe,"STCO",Fe.box(Fe.types.stco,Fe.StblTable));var Nh=function(){function o(r,n){pt(this,o),this.name=r||"",this._prefix="[".concat(this.name,"]"),o.disabled=n}return vt(o,[{key:"debug",value:function(){var n;if(!o.disabled){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];(n=console).debug.apply(n,[this._prefix].concat(e))}}},{key:"log",value:function(){var n;if(!o.disabled){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];(n=console).log.apply(n,[this._prefix].concat(e))}}},{key:"warn",value:function(){var n;if(!o.disabled){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];(n=console).warn.apply(n,[this._prefix].concat(e))}}},{key:"error",value:function(){var n;if(!o.disabled){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];(n=console).error.apply(n,[this._prefix].concat(e))}}},{key:"table",value:function(){var n;o.disabled||(console.group(this._prefix),(n=console).table.apply(n,arguments),console.groupEnd())}}],[{key:"enable",value:function(){o.disabled=!1}},{key:"disable",value:function(){o.disabled=!0}}]),o}();ne(Nh,"disabled",!0);var t7=function(){function o(r,n,t){pt(this,o),this.videoTrack=r,this.audioTrack=n;var e=/Chrome\/([^.]+)/.exec(navigator.userAgent);this.forceFirstIDR=e&&Number(e[1])<50,this.log=new Nh("FMP4Remuxer",t&&t.openLog?!t.openLog:!0)}return vt(o,[{key:"remux",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=this.videoTrack,a=this.audioTrack,i=e.exist(),l=a.exist(),c,u,d,f=[];n&&(t&&t.initMerge?(i&&f.push(this.videoTrack),l&&f.push(this.audioTrack),d=Fe.initSegment(f)):(i&&(c=Fe.initSegment([this.videoTrack])),l&&(u=Fe.initSegment([this.audioTrack]))));var h,p;return i&&e.hasSample()&&(h=this._remuxVideo()),l&&a.hasSample()&&(p=this._remuxAudio()),e.samples=[],a.samples=[],{initSegment:d,videoInitSegment:c,audioInitSegment:u,videoSegment:h,audioSegment:p}}},{key:"_remuxVideo",value:function(){var n=this.videoTrack;this.forceFirstIDR&&(n.samples[0].flag={dependsOn:2,isNonSyncSample:0});var t=n.samples,e=/av01/.test(n.codec),a=0;e?t.forEach(function(y){a+=y.data.byteLength}):t.forEach(function(y){a+=y.units.reduce(function(w,S){return w+S.byteLength},0),a+=y.units.length*4});var i=new Uint8Array(a);if(e)for(var l=0,c=t.length,u=0,d;l<c;l++)d=t[l],i.set(d.data,u),d.size=d.data.byteLength,u+=d.size;else for(var f=new DataView(i.buffer),h=function(w,S){S=t[p];var D=0;S.units.forEach(function(C){f.setUint32(w,C.byteLength),w+=4,i.set(C,w),w+=C.byteLength,D+=4+C.byteLength}),S.size=D,g=w,m=S},p=0,v=t.length,g=0,m;p<v;p++)h(g,m);var _=Fe.mdat(i),b=Fe.moof([n]);return Cn(b,_)}},{key:"_remuxAudio",value:function(){var n=this.audioTrack,t=new Uint8Array(n.samples.reduce(function(i,l){return i+l.size},0));n.samples.reduce(function(i,l){return t.set(l.data,i),i+l.size},0);var e=Fe.mdat(t),a=Fe.moof([n]);return Cn(a,e)}},{key:"reset",value:function(){this.videoTrack.reset(),this.audioTrack.reset()}}]),o}(),n7=function(){function o(){At(this,o);var r=window.crypto||window.msCrypto;this.subtle=r&&(r.subtle||r.webkitSubtle),this.externalDecryptor=null}return Dt(o,[{key:"destroy",value:function(){var n;(n=this.externalDecryptor)!==null&&n!==void 0&&n.destroy&&this.externalDecryptor.destroy()}},{key:"decrypt",value:function(n,t){if(!(!n&&!t)){var e=[];return n&&(e[0]=this._decryptSegment(n)),t&&(e[1]=this._decryptSegment(t)),Promise.all(e)}}},{key:"_decryptSegment",value:function(){var r=qe(he().mark(function t(e){var a;return he().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(a=e.data,!e.key){l.next=5;break}return l.next=4,this._decryptData(e.data,e.key,e.keyIv);case 4:a=l.sent;case 5:if(e.map){l.next=7;break}return l.abrupt("return",a);case 7:return l.abrupt("return",Ii(e.map,a));case 8:case"end":return l.stop()}},t,this)}));function n(t){return r.apply(this,arguments)}return n}()},{key:"_decryptData",value:function(){var r=qe(he().mark(function t(e,a,i){var l;return he().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!this.externalDecryptor){u.next=6;break}return u.next=3,this.externalDecryptor.decrypt(e,a,i);case 3:return u.abrupt("return",u.sent);case 6:if(this.subtle){u.next=8;break}throw new Error("crypto is not defined");case 8:return u.next=10,this.subtle.importKey("raw",a,{name:"AES-CBC"},!1,["encrypt","decrypt"]);case 10:return l=u.sent,u.t0=Uint8Array,u.next=14,this.subtle.decrypt({name:"AES-CBC",iv:i},l,e);case 14:return u.t1=u.sent,u.abrupt("return",new u.t0(u.t1));case 16:case"end":return u.stop()}},t,this)}));function n(t,e,a){return r.apply(this,arguments)}return n}()}]),o}(),Xe=$e($e({},be),{},{STREAM_PARSED:"core.streamparsed",NO_AUDIO_TRACK:"core.noaudiotrack",SUBTITLE_SEGMENTS:"core.subtitlesegments",SUBTITLE_PLAYLIST:"core.subtitleplaylist",SEI_PAYLOAD_TIME:"core.seipayloadtime",APPEND_COST:"core.appendcost"}),Ql=new Yn("Transmuxer"),Rh=function(){function o(r,n,t,e){At(this,o),z(this,"_initSegmentId",""),this.hls=r,this._demuxer=n?new $S:new Oh(null,null,null,e),this._isMP4=n,t&&(this._remuxer=new t7(this._demuxer.videoTrack,this._demuxer.audioTrack))}return Dt(o,[{key:"transmux",value:function(n,t,e,a,i,l){var c=this._demuxer;try{this._isMP4?c.demux(n,t):c.demuxAndFix(Ii(n,t),e,a,i)}catch(D){throw new ht(He.DEMUX,He.SUB_TYPES.HLS,D)}var u=c.videoTrack,d=c.audioTrack,f=c.metadataTrack,h={codec:u.codec,timescale:u.timescale,firstDts:u.firstDts/u.timescale,firstPts:u.firstPts/u.timescale,duration:u.samplesDuration/u.timescale},p={codec:d.codec,timescale:d.timescale,firstDts:d.firstDts/u.timescale,firstPts:d.firstPts/u.timescale,duration:d.samplesDuration/u.timescale,container:d.container},v="".concat(u.codec,"/").concat(u.width,"/").concat(u.height,"/").concat(d.codec,"/").concat(d.config);if(v!==this._initSegmentId&&(this._initSegmentId=v,l=!0),this._fireEvents(u,d,f,e||l),this.hls.emit(Xe.DEMUXED_TRACK,{videoTrack:u,audioTrack:d}),this._remuxer){l&&this.hls.isLive&&!this.hls.config.mseLowLatency&&(u.duration=this.hls.totalDuration*u.timescale,d.duration=this.hls.totalDuration*d.timescale);try{var g=this._remuxer.remux(l),m=g.videoInitSegment,_=g.videoSegment,b=g.audioInitSegment,y=g.audioSegment,w=Ii(m,_),S=Ii(b,y);return[w?$e($e({},h),{},{data:w}):void 0,S?$e($e({},p),{},{data:S}):void 0]}catch(D){throw new ht(He.REMUX,He.SUB_TYPES.FMP4,D)}}else return[u,d]}},{key:"_fireEvents",value:function(n,t,e,a){var i=this,l=[n,t],c="discontinuity: ".concat(a);l.forEach(function(u){var d;(d=u.samples)!==null&&d!==void 0&&d.length&&(c+="; ".concat(u.samples.length," ").concat(u.type===Ca.VIDEO?"video":"audio"," samples, firstDts/firstPts/duration: ").concat((u.firstDts/u.timescale).toFixed(3),"/").concat((u.firstPts/u.timescale).toFixed(3),"/").concat((u.samplesDuration/u.timescale).toFixed(3))),a&&u.exist()&&i.hls.emit(Xe.METADATA_PARSED,{type:u.type,track:u,meta:$e({codec:u.codec,timescale:u.timescale,baseDts:u.baseDts},u.type===Ca.VIDEO?{width:u.width,height:u.height,sarRatio:u.sarRatio}:{codec:u.codec,channelCount:u.channelCount,sampleRate:u.sampleRate})})}),Ql.debug(c),n.warnings.forEach(function(u){var d;switch(u.type){case xn.LARGE_AV_SHIFT:d=Xe.LARGE_AV_FIRST_FRAME_GAP_DETECT;break;case xn.LARGE_VIDEO_GAP:d=Xe.LARGE_VIDEO_DTS_GAP_DETECT;break;case xn.LARGE_VIDEO_GAP_BETWEEN_CHUNK:d=Xe.MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT;break}d&&i.hls.emit(Xe.STREAM_EXCEPTION,$e($e({},u),{},{type:d})),Ql.warn("video exception",u)}),t.warnings.forEach(function(u){var d;switch(u.type){case xn.LARGE_AUDIO_GAP:d=Xe.LARGE_AUDIO_DTS_GAP_DETECT;break;case xn.AUDIO_FILLED:d=Xe.AUDIO_GAP_DETECT;break;case xn.AUDIO_DROPPED:d=Xe.AUDIO_OVERLAP_DETECT;break}d&&i.hls.emit(Xe.STREAM_EXCEPTION,$e($e({},u),{},{type:d})),Ql.warn("audio exception",u)}),n.samples.forEach(function(u){u.keyframe&&i.hls.emit(Xe.KEYFRAME,{pts:u.pts})}),e.seiSamples.forEach(function(u){i.hls.emit(Xe.SEI,$e($e({},u),{},{originPts:u.originPts/90,sei:{code:u.data.type,content:u.data.payload,dts:u.pts}}))})}}]),o}(),a7=["data"],o7=["data"],Vh=new Yn("BufferService"),r7=function(){function o(r){var n=this;At(this,o),z(this,"_decryptor",new n7),z(this,"_transmuxer",null),z(this,"_mse",null),z(this,"_softVideo",null),z(this,"_sourceCreated",!1),z(this,"_needInitSegment",!0),z(this,"_directAppend",!1),this.hls=r,r.config.softDecode?this._softVideo=r.media:(this._mse=new en(null,{preferMMS:r.config.preferMMS}),r.config.url&&this._mse.bindMedia(r.media).then(function(t){n.hls.emit(be.MEDIASOURCE_OPENED,t)})),r.config.decryptor&&(this._decryptor.externalDecryptor=r.config.decryptor)}return Dt(o,[{key:"baseDts",get:function(){var n,t,e;return(n=this._transmuxer)===null||n===void 0||(t=n._demuxer)===null||t===void 0||(e=t._fixer)===null||e===void 0?void 0:e._baseDts}},{key:"nbSb",get:function(){var n;return(n=this._mse)!==null&&n!==void 0&&n._sourceBuffer?Object.keys(this._mse._sourceBuffer).length:0}},{key:"msIsOpened",get:function(){var n;return(n=this._mse)===null||n===void 0?void 0:n.isOpened}},{key:"msHasOpTasks",get:function(){var n;return(n=this._mse)===null||n===void 0?void 0:n.hasOpTasks}},{key:"msStreaming",get:function(){var n;return(n=this._mse)===null||n===void 0?void 0:n.streaming}},{key:"updateDuration",value:function(){var r=qe(he().mark(function t(e){return he().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(Vh.debug("update duration",e),!this._mse){i.next=9;break}if(this._mse.isOpened){i.next=5;break}return i.next=5,this._mse.open();case 5:return i.next=7,this._mse.updateDuration(e);case 7:i.next=10;break;case 9:this._softVideo&&(this._softVideo.duration=e);case 10:case"end":return i.stop()}},t,this)}));function n(t){return r.apply(this,arguments)}return n}()},{key:"createSource",value:function(n,t,e,a){if(!this._sourceCreated){var i=n||t;if(!!i){if(Oh.probe(i))this._transmuxer||(this._transmuxer=new Rh(this.hls,!1,!this._softVideo,this.hls.config.fixerConfig));else if(lt.probe(i))if(this._softVideo)this._transmuxer||(this._transmuxer=new Rh(this.hls,!0,null,this.hls.config.fixerConfig));else{this._directAppend=!0;var l=!1;n&&!e&<.findBox(n,["moov","trak"]).forEach(function(c){var u=lt.findBox(c.data,["trak","mdia","minf","stbl","stsd"])[0];if(u){var d=lt.stsd(u).entries[0];if(d){if(d.hvcC)e=d.hvcC.codec||"hev1.1.6.L93.B0";else if(d.avcC)e=d.avcC.codec;else if(d.sampleRate||d.esds){var f;a=((f=d.esds)===null||f===void 0?void 0:f.codec)||"mp4a.40.2",l=!0}}}}),t&&!a&<.findBox(t,["moov","trak","mdia","minf","stbl","stsd"]).forEach(function(c){var u=lt.stsd(c).entries[0];u&&u.esds&&(a=u.esds.codec)}),n&&!e&&(e="avc1.42e01e"),t&&!a&&(a="mp4a.40.2"),l&&(e+=", ".concat(a),a=""),this._createMseSource(e,a)}else throw new ht(He.OTHER,null,null,null,"unsupported stream");this._softVideo&&(this._sourceCreated=!0)}}}},{key:"appendBuffer",value:function(){var r=qe(he().mark(function t(e,a,i,l,c,u,d){var f=this,h,p,v,g,m,_,b,y,w,S,D,C,B,A,L;return he().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(!(!(i!=null&&i.length)&&!(l!=null&&l.length))){E.next=2;break}return E.abrupt("return");case 2:if(h=function(){var k;if((k=f.hls)!==null&&k!==void 0&&k.emit){var O;(O=f.hls)===null||O===void 0||O.emit(be.APPEND_BUFFER,{start:e.start,end:e.end})}},!this._directAppend){E.next=8;break}return p=[],i&&p.push(this._mse.append(en.VIDEO,i)),l&&p.push(this._mse.append(en.AUDIO,l)),E.abrupt("return",Promise.all(p).then(h));case 8:if(v=this._needInitSegment||c,g=this._transmuxer.transmux(i,l,v,u,d,this._needInitSegment||c),m=ia(g,2),_=m[0],b=m[1],l&&a&&(a==null||a.setTrackExist(!1,!0)),l&&e&&(e==null||e.setTrackExist(!0,!1)),a||e==null||e.setTrackExist(!!_,!!b),_&&!b&&this.hls.emit(Xe.NO_AUDIO_TRACK),!this._softVideo){E.next=20;break}this._softVideo.appendBuffer(_,b),this._needInitSegment=!1,h(),E.next=32;break;case 20:if(!this._mse){E.next=32;break}return y=!this._sourceCreated,y&&this._createMseSource(_==null?void 0:_.codec,b==null?void 0:b.codec,b==null?void 0:b.container),this._needInitSegment=!1,w=this._mse,S=[],v&&!y&&this._handleCodecChange(_,b).forEach(function(x){return S.push(x)}),_&&(D=_.data,C=Pl(_,a7),S.push(w.append(en.VIDEO,D,C))),b&&(B=b.data,A=Pl(b,o7),S.push(w.append(en.AUDIO,B,A))),L=Promise.all(S),L.then(h),E.abrupt("return",L);case 32:case"end":return E.stop()}},t,this)}));function n(t,e,a,i,l,c,u){return r.apply(this,arguments)}return n}()},{key:"removeBuffer",value:function(){var r=qe(he().mark(function t(){var e=this,a,i,l,c=arguments;return he().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(a=c.length>0&&c[0]!==void 0?c[0]:0,i=c.length>1&&c[1]!==void 0?c[1]:1/0,l=this.hls.media,!(!this._mse||!l||a<0||i<a||a>=this._mse.duration)){d.next=5;break}return d.abrupt("return");case 5:return d.abrupt("return",this._mse.clearBuffer(a,i).then(function(){return e.hls.emit(be.REMOVE_BUFFER,{start:a,end:i,removeEnd:i})}));case 6:case"end":return d.stop()}},t,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"evictBuffer",value:function(){var r=qe(he().mark(function t(e){var a,i,l,c;return he().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(a=this.hls.media,!(!this._mse||!a||!e||e<0)){d.next=3;break}return d.abrupt("return");case 3:if(i=a.currentTime,l=i-e,!(l<=0)){d.next=7;break}return d.abrupt("return");case 7:if(c=dn.start(dn.get(a)),!(c+1>=l)){d.next=10;break}return d.abrupt("return");case 10:return d.abrupt("return",this.removeBuffer(0,l));case 11:case"end":return d.stop()}},t,this)}));function n(t){return r.apply(this,arguments)}return n}()},{key:"clearAllBuffer",value:function(){var r=qe(he().mark(function t(){return he().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!this._mse){a.next=2;break}return a.abrupt("return",this._mse.clearAllBuffer());case 2:case"end":return a.stop()}},t,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"decryptBuffer",value:function(n,t){return this._decryptor.decrypt(n,t)}},{key:"reset",value:function(){var r=qe(he().mark(function t(){var e,a=arguments;return he().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(e=a.length>0&&a[0]!==void 0?a[0]:!1,!(this._mse&&!e)){l.next=8;break}return this._transmuxer=null,this._sourceCreated=!1,l.next=6,this._mse.unbindMedia();case 6:return l.next=8,this._mse.bindMedia(this.hls.media);case 8:this._needInitSegment=!0,this._directAppend=!1;case 10:case"end":return l.stop()}},t,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"endOfStream",value:function(){var r=qe(he().mark(function t(){return he().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!this._mse){a.next=5;break}if(!this._sourceCreated){a.next=5;break}return a.next=4,this._mse.endOfStream();case 4:this.hls.emit(be.BUFFEREOS);case 5:this._softVideo&&this._softVideo.endOfStream();case 6:case"end":return a.stop()}},t,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"setLiveSeekableRange",value:function(){var r=qe(he().mark(function t(e,a){return he().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:this._mse&&this._mse.setLiveSeekableRange(e,a);case 1:case"end":return l.stop()}},t,this)}));function n(t,e){return r.apply(this,arguments)}return n}()},{key:"detachMedia",value:function(){var r=qe(he().mark(function t(){return he().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!this._mse){a.next=3;break}return a.next=3,this._mse.unbindMedia();case 3:case"end":return a.stop()}},t,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"destroy",value:function(){var r=qe(he().mark(function t(){var e;return he().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return(e=this._decryptor)===null||e===void 0||e.destroy(),i.next=3,this.detachMedia();case 3:this._decryptor=null,this._mse=null,this._softVideo=null;case 6:case"end":return i.stop()}},t,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"_createMseSource",value:function(n,t,e){Vh.debug("create mse source, videoCodec=".concat(n,", audioCodec=").concat(t));var a=this._mse;!a||(n&&(a.createSource(en.VIDEO,"video/mp4;codecs=".concat(n)),this._sourceCreated=!0),t?(a.createSource(en.AUDIO,"audio/mp4;codecs=".concat(t)),this._sourceCreated=!0):e&&(a.createSource(en.AUDIO,"".concat(e,';codecs=""')),this._sourceCreated=!0),this.hls.emit(be.SOURCEBUFFER_CREATED))}},{key:"_handleCodecChange",value:function(n,t){var e=[],a=this._mse,i=[{type:en.VIDEO,codecs:n==null?void 0:n.codec},{type:en.AUDIO,codecs:t==null?void 0:t.codec}];return i.filter(function(l){return!!l.codecs}).forEach(function(l){var c=l.type,u=l.codecs,d=a.getSourceBuffer(c);if(d){var f=u.split(",")[0];new RegExp(f,"ig").test(d.mimeType)||e.push(a.changeType(c,"".concat(c,"/mp4;codecs=").concat(u)))}}),e}},{key:"seamlessSwitch",value:function(){this._needInitSegment=!0}},{key:"isFull",value:function(){var n,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:en.VIDEO;return(n=this._mse)===null||n===void 0?void 0:n.isFull(t)}}]),o}();function i7(o){var r=(o==null?void 0:o.media)||document.createElement("video");return $e($e({maxPlaylistSize:50,retryCount:3,retryDelay:1e3,pollRetryCount:2,loadTimeout:1e4,manifestLoadTimeout:1e4,preloadTime:30,softDecode:!1,bufferBehind:10,maxJumpDistance:3,startTime:0,useLowLatency:!0,targetLatency:10,maxLatency:20,allowedStreamTrackChange:!0,seiInTime:!1,manifestList:[],minSegmentsStartPlay:3,preferMMS:!1,preferMMSStreaming:!1,mseLowLatency:!0,fixerConfig:{forceFixLargeGap:!1,largeGapThreshold:5}},o),{},{media:r})}var s7=Dt(function o(){At(this,o),z(this,"version",0),z(this,"streams",[]),z(this,"isMaster",!0)}),Fh={Audio:"AUDIO",Video:"VIDEO",SubTitle:"SUBTITLE",ClosedCaptions:"CLOSED-CAPTIONS"},Hi={CLEAR_KEY:"org.w3.clearkey",FAIRPLAY:["urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2","com.apple.streamingkeydelivery"],WIDEVINE:["urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine.alpha","com.widevine"],PLAYREADY:["urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95","com.microsoft.playready"]};function Hh(o){for(var r=[],n=0;n<o.length;n++)Array.isArray(o[n])?r=r.concat(Hh(o[n])):r.push(o[n]);return r}var Zl=Dt(function o(){At(this,o),z(this,"id",0),z(this,"url",""),z(this,"default",!1),z(this,"autoSelect",!1),z(this,"forced",!1),z(this,"group",""),z(this,"name",""),z(this,"lang",""),z(this,"segments",[]),z(this,"endSN",0)}),l7=function(o){Ti(n,o);var r=Bi(n);function n(){var t;At(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),z(Ve(t),"mediaType",Fh.Audio),z(Ve(t),"channels",0),t}return Dt(n)}(Zl),c7=function(o){Ti(n,o);var r=Bi(n);function n(){var t;At(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),z(Ve(t),"mediaType",Fh.SubTitle),t}return Dt(n)}(Zl),u7=Dt(function o(){At(this,o),z(this,"id",0),z(this,"bitrate",0),z(this,"width",0),z(this,"height",0),z(this,"name",""),z(this,"url",""),z(this,"audioCodec",""),z(this,"videoCodec",""),z(this,"textCodec",""),z(this,"audioGroup",""),z(this,"audioStreams",[]),z(this,"subtitleStreams",[]),z(this,"closedCaptionsStream",[])}),d7=Dt(function o(){At(this,o),z(this,"version",0),z(this,"url",""),z(this,"type",""),z(this,"startCC",0),z(this,"endCC",0),z(this,"startSN",0),z(this,"endSN",0),z(this,"totalDuration",0),z(this,"targetDuration",0),z(this,"partTargetDuration",0),z(this,"canSkipUntil",0),z(this,"canSkipDateRanges",!1),z(this,"skippedSegments",0),z(this,"canBlockReload",!1),z(this,"partHoldBack",0),z(this,"live",!0),z(this,"lowLatency",!1),z(this,"endPartIndex",0),z(this,"segments",[]),z(this,"dateRanges",{}),z(this,"skippedSegments",0)}),zi=function(){function o(r){At(this,o),z(this,"sn",0),z(this,"cc",0),z(this,"url",""),z(this,"parentUrl",""),z(this,"title",""),z(this,"start",0),z(this,"duration",0),z(this,"dataTime",""),z(this,"key",null),z(this,"byteRange",null),z(this,"isInitSegment",!1),z(this,"initSegment",null),z(this,"isLast",!1),z(this,"hasAudio",!1),z(this,"hasVideo",!1),z(this,"independent",!1),z(this,"partIndex",0),this.parentUrl=r}return Dt(o,[{key:"end",get:function(){return this.start+this.duration}},{key:"setTrackExist",value:function(n,t){this.hasVideo=n,this.hasAudio=t}},{key:"setByteRange",value:function(n,t){this.byteRange=[0];var e=n.split("@");e.length===1&&t&&t.byteRange?(this.byteRange[0]=t.byteRange[1]||0,this.byteRange[0]&&(this.byteRange[0]+=1)):this.byteRange[0]=parseInt(e[1]),this.byteRange[1]=this.byteRange[0]+parseInt(e[0])-1}}]),o}(),f7=function(){function o(r){At(this,o),z(this,"method",""),z(this,"url",""),z(this,"iv",null),z(this,"keyFormat",""),z(this,"keyFormatVersions",""),r instanceof o&&(this.method=r.method,this.url=r.url,this.keyFormat=r.keyFormat,this.keyFormatVersions=r.keyFormatVersions,r.iv&&(this.iv=new Uint8Array(r.iv)))}return Dt(o,[{key:"clone",value:function(n){var t=new o(this);return n!=null&&t.setIVFromSN(n),t}},{key:"setIVFromSN",value:function(n){if(!this.iv&&this.method==="AES-128"&&typeof n=="number"&&this.url){this.iv=new Uint8Array(16);for(var t=12;t<16;t++)this.iv[t]=n>>8*(15-t)&255}}},{key:"isSegmentEncrypted",value:function(){var n=this.method;return n==="AES-128"}},{key:"isValidKeySystem",value:function(){var n=Hh([Hi.CLEAR_KEY,Hi.FAIRPLAY,Hi.WIDEVINE,Hi.PLAYREADY]).indexOf(this.keyFormat)>-1;if(!n)return!1;var t=["SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)>-1;return!!t}},{key:"isSupported",value:function(){return this.method?this.isSegmentEncrypted()?!0:!!this.isValidKeySystem():!1}}]),o}(),h7=function(){function o(r,n,t){At(this,o),this.msn=r,this.part=n,this.skip=t}return Dt(o,[{key:"addDirectives",value:function(n){var t=new self.URL(n);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}]),o}(),p7=/^#(EXT[^:]*)(?::(.*))?$/,zh=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g,v7=/^(?:[a-zA-Z0-9+\-.]+:)?\/\//,m7=/^((?:[a-zA-Z0-9+\-.]+:)?\/\/[^/?#]*)?([^?#]*\/)?/;function g7(o){return o.split(/[\r\n]/).map(function(r){return r.trim()}).filter(Boolean)}function Uh(o){var r=o.match(p7);if(!(!r||!r[1]))return[r[1].replace("EXT-X-",""),r[2]]}function Jn(o){for(var r={},n=zh.exec(o);n;)r[n[1]]=n[2]||n[3],n=zh.exec(o);return r}function wo(o,r){if(!r||!o||v7.test(o))return o;var n=m7.exec(r);return n?o[0]==="/"?n[1]+o:n[1]+n[2]+o:o}var y7={audio:[/^mp4a/,/^vorbis$/,/^opus$/,/^flac$/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function ql(o,r){var n=y7[o];if(!(!n||!r||!r.length)){for(var t=0;t<n.length;t++)for(var e=0;e<r.length;e++)if(n[t].test(r[e]))return r[e]}}function _7(o,r){var n;if(r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&o[t]!==r[t]){n=t;break}}var e=null;o.DURATION&&(e=parseFloat(o.DURATION),Number.isFinite(e)?o._endDate&&(e=(o._endDate.getTime()-o._startDate.getTime())/1e3):e=null);var a=w7(o.CUE||o["X-CUE"],{pre:!1,post:!1,once:!1});return!!o.ID&&!n&&Number.isFinite(o._startDate.getTime())&&(e===null||e>=0)&&(o.END_ON_NEXT!=="YES"||!!o.CLASS)&&(!o.CUE||!a.pre&&!a.post||a.pre!==a.post)&&(o.CLASS!=="com.apple.hls.interstitial"||"X-ASSET-URI"in o||"X-ASSET-LIST"in o)}function w7(o,r){return(o?o.split(/[ ,]+/):[]).reduce(function(n,t){return n[t.toLowerCase()]=!0,n},r)}function b7(o,r){for(var n=new s7,t=0,e,a=[],i=[];e=o[t++];){var l=Uh(e);if(!!l){var c=ia(l,2),u=c[0],d=c[1];if(u==="VERSION")n.version=parseInt(d);else if(u==="MEDIA"&&d){var f=Jn(d),h=void 0;switch(f.TYPE){case"AUDIO":h=new l7;break;case"SUBTITLES":h=new c7;break;default:h=new Zl}h.url=wo(f.URI,r),h.default=f.DEFAULT==="YES",h.autoSelect=f.AUTOSELECT==="YES",h.group=f["GROUP-ID"],h.name=f.NAME,h.lang=f.LANGUAGE,f.CHANNELS&&(h.channels=Number(f.CHANNELS.split("/")[0]),Number.isNaN(h.channels)&&(h.channels=0)),f.TYPE==="AUDIO"&&f.URI&&a.push(h),f.TYPE==="SUBTITLES"&&i.push(h)}else if(u==="STREAM-INF"&&d){var p=new u7,v=Jn(d);if(p.bitrate=parseInt(v["AVERAGE-BANDWIDTH"]||v.BANDWIDTH),p.name=v.NAME,p.url=wo(o[t++],r),v.RESOLUTION){var g=v.RESOLUTION.split("x"),m=ia(g,2),_=m[0],b=m[1];p.width=parseInt(_),p.height=parseInt(b)}if(v.CODECS){var y=v.CODECS.split(/[ ,]+/).filter(Boolean);p.videoCodec=ql("video",y),p.audioCodec=ql("audio",y),p.textCodec=ql("text",y)}p.audioGroup=v.AUDIO,p.subtitleGroup=v.SUBTITLES,n.streams.push(p)}}}return n.streams.forEach(function(w,S){w.id=S}),a.length&&(a.forEach(function(w,S){w.id=S}),n.streams.forEach(function(w){w.audioGroup&&(w.audioStreams=a.filter(function(S){return S.group===w.audioGroup}))})),i.length&&(i.forEach(function(w,S){w.id=S}),n.streams.forEach(function(w){w.subtitleGroup&&(w.subtitleStreams=i.filter(function(S){return S.group===w.subtitleGroup}))})),n}function E7(o,r,n){var t=new d7;t.url=r;for(var e=new zi(r),a=null,i=null,l=0,c=0,u=0,d=0,f,h=!1,p=0;f=o[d++];){if(f[0]!=="#"){if(t.lowLatency){c++;continue}e.sn=c,e.cc=u,e.url=wo(f,r),i&&(e.key=i.clone(c)),a&&(e.initSegment=a),t.segments.push(e),e=new zi(r),c++;continue}var v=Uh(f);if(!!v){var g=ia(v,2),m=g[0],_=g[1];switch(m){case"VERSION":t.version=parseInt(_);break;case"PLAYLIST-TYPE":t.type=_==null?void 0:_.toUpperCase();break;case"TARGETDURATION":t.targetDuration=parseFloat(_);break;case"PART-INF":{n&&(t.lowLatency=!0);var b=Jn(_);b["PART-TARGET"]&&(t.partTargetDuration=parseFloat(b["PART-TARGET"]))}break;case"SERVER-CONTROL":{var y=Jn(_);t.canBlockReload=y["CAN-BLOCK-RELOAD"]==="YES",t.partHoldBack=parseFloat(y["PART-HOLD-BACK"]||0),t.canSkipUntil=parseFloat(y["CAN-SKIP-UNTIL"]||0),t.canSkipDateRanges=t.canSkipUntil>0&&y["CAN-SKIP-DATERANGES"]==="YES"}break;case"ENDLIST":h=!0;break;case"MEDIA-SEQUENCE":c=t.startSN=parseInt(_);break;case"DISCONTINUITY-SEQUENCE":u=t.startCC=parseInt(_);break;case"DISCONTINUITY":u++;break;case"BYTERANGE":e.setByteRange(_,t.segments[t.segments.length-1]);break;case"PART":{if(!t.lowLatency)break;var w=Jn(_);e.duration=parseFloat(w.DURATION),e.independent=w.INDEPENDENT==="YES",e.sn=c,e.cc=u,e.partIndex=p,e.start=l,e.duration=parseFloat(w.DURATION),l+=e.duration,e.url=wo(w.URI,r),i&&(e.key=i.clone(c)),a&&(e.initSegment=a),t.segments.push(e),e=new zi(r),p++}break;case"PRELOAD-HINT":{var S=Jn(_);if(t.preloadHint=S,S.TYPE==="PART"&&S.URI){var D=S.URI.split(".ts")[0].split("-");t.nextSN=D[3],t.nextIndex=D[D.length-1]}}break;case"PROGRAM-DATE-TIME":e.dataTime=_;break;case"EXTINF":{if(t.lowLatency){p=0;break}var C=_.split(","),B=ia(C,2),A=B[0],L=B[1];e.start=l,e.duration=parseFloat(A),l+=e.duration,e.title=L}break;case"KEY":{var I=Jn(_);if(I.METHOD==="NONE"){i=null;break}if(i=new f7,i.method=I.METHOD,i.url=/^blob:/.test(I.URI)?I.URI:wo(I.URI,r),i.keyFormat=I.KEYFORMAT||"identity",i.keyFormatVersions=I.KEYFORMATVERSIONS,!i.isSupported())throw new Error("encrypt ".concat(I.METHOD,"/").concat(I.KEYFORMAT," is not supported"));if(I.IV){var E=I.IV.slice(2);E=(E.length&1?"0":"")+E,i.iv=new Uint8Array(E.length/2);for(var x=0,k=E.length/2;x<k;x++)i.iv[x]=parseInt(E.slice(x*2,x*2+2),16)}}break;case"MAP":{var O=Jn(_);e.url=wo(O.URI,r),O.BYTERANGE&&e.setByteRange(O.BYTERANGE),e.isInitSegment=!0,e.sn=0,i&&(e.key=i.clone(0)),a=e,e=new zi(r)}break;case"SKIP":{var P=Jn(_),R=parseInt(P["SKIPPED-SEGMENTS"],10);R<=Number.MAX_SAFE_INTEGER&&(t.skippedSegments+=R,c+=R)}break;case"DATERANGE":{var N=Jn(_),H=t.dateRanges[N.ID];N._startDate=H?H._startDate:new Date(N["START-DATE"]);var K=(H==null?void 0:H._endDate)||new Date(N.END_DATE);Number.isFinite(K)&&(N._endDate=K),(_7(N,H)||t.skippedSegments)&&(t.dateRanges[N.ID]=N)}break}}}t.segments=t.segments.filter(function(le){return le.duration!==0});var U=t.segments[t.segments.length-1];return U&&(h&&(U.isLast=!0),t.endSN=U.sn,t.endPartIndex=U.partIndex),h&&(t.live=!1),t.totalDuration=l,t.endCC=u,t}var Ui=function(){function o(){At(this,o)}return Dt(o,null,[{key:"parse",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0;if(!n.includes("#EXTM3U"))throw new Error("Invalid m3u8 file");var a=g7(n);return o.isMediaPlaylist(n)?E7(a,t,e):b7(a,t)}},{key:"isMediaPlaylist",value:function(n){return n.includes("#EXTINF:")||n.includes("#EXT-X-TARGETDURATION:")}}]),o}(),C7=function(){function o(r){var n=this;At(this,o),z(this,"_emitOnLoaded",function(c,u){var d=c.response,f=c.options,h=f||{},p=h.firstByteTime,v=h.startTime,g=h.endTime,m=h.contentLength,_=g-v;n.hls.emit(be.SPEED,{time:_,byteLength:m,url:u}),n.hls.emit(be.LOAD_COMPLETE,{url:u,elapsed:_||0}),n.hls.emit(be.TTFB,{url:u,responseUrl:d.url,elapsed:p-v}),n.hls.emit(be.LOAD_RESPONSE_HEADERS,{headers:d.headers,url:u})}),z(this,"_onLoaderRetry",function(c,u){n.hls.emit(Xe.LOAD_RETRY,{error:ht.network(c),retryTime:u})}),this.hls=r,this._timer=null,this._useLowLatency=r.config.useLowLatency;var t=this.hls.config,e=t.retryCount,a=t.retryDelay,i=t.manifestLoadTimeout,l=t.fetchOptions;this._loader=new _o($e($e({},l),{},{responseType:"text",retry:e,retryDelay:a,timeout:i,onRetryError:this._onLoaderRetry})),this._audioLoader=new _o($e($e({},l),{},{responseType:"text",retry:e,retryDelay:a,timeout:i,onRetryError:this._onLoaderRetry})),this._subtitleLoader=new _o($e($e({},l),{},{responseType:"text",retry:e,retryDelay:a,timeout:i,onRetryError:this._onLoaderRetry}))}return Dt(o,[{key:"load",value:function(){var r=qe(he().mark(function t(e,a,i){var l,c,u,d,f,h,p,v,g,m,_,b,y,w,S,D,C,B,A,L;return he().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return l=[this._loader.load(e)],a&&l.push(this._audioLoader.load(a)),i&&l.push(this._subtitleLoader.load(i)),E.prev=3,E.next=6,Promise.all(l);case 6:if(v=E.sent,g=ia(v,3),m=g[0],_=g[1],b=g[2],m){E.next=13;break}return E.abrupt("return",[]);case 13:this._emitOnLoaded(m,e),c=m.data,f=m.response.url||e,a?(u=_==null?void 0:_.data,d=b==null?void 0:b.data,h=(_==null||(y=_.response)===null||y===void 0?void 0:y.url)||a,p=(b==null||(w=b.response)===null||w===void 0?void 0:w.url)||i,u&&this._emitOnLoaded(_,a),d&&this._emitOnLoaded(b,i)):(d=_==null?void 0:_.data,p=(_==null||(S=_.response)===null||S===void 0?void 0:S.url)||i,d&&this._emitOnLoaded(_,i)),E.next=22;break;case 19:throw E.prev=19,E.t0=E.catch(3),ht.network(E.t0);case 22:if(D=this.hls.config.onPreM3U8Parse,E.prev=23,D&&(c=D(c)||c,u&&(u=D(u,!0)||u),d&&(d=D(d,!0)||d)),C=Ui.parse(c,f,this._useLowLatency),!(((L=C)===null||L===void 0?void 0:L.live)===!1&&C.segments&&!C.segments.length)){E.next=28;break}throw new Error("empty segments list");case 28:u&&(B=Ui.parse(u,h,this._useLowLatency)),d&&(A=Ui.parse(d,p,this._useLowLatency)),E.next=35;break;case 32:throw E.prev=32,E.t1=E.catch(23),new ht(He.MANIFEST,He.SUB_TYPES.HLS,E.t1);case 35:return C&&(C.isMaster?this.hls.emit(Xe.HLS_MANIFEST_LOADED,{playlist:C}):(this._useLowLatency&&(C.canBlockReload?this.deliveryDirectives=new h7(C.nextSN,C.nextIndex,""):this.deliveryDirectives=null),this.hls.emit(Xe.HLS_LEVEL_LOADED,{playlist:C}))),E.abrupt("return",[C,B,A]);case 37:case"end":return E.stop()}},t,this,[[3,19],[23,32]])}));function n(t,e,a){return r.apply(this,arguments)}return n}()},{key:"parseText",value:function(n,t){var e=this.hls.config.onPreM3U8Parse,a;try{var i;if(e&&(n=e(n)||n),a=Ui.parse(n,t,this._useLowLatency),((i=a)===null||i===void 0?void 0:i.live)===!1&&a.segments&&!a.segments.length)throw new Error("empty segments list")}catch(l){throw new ht(He.MANIFEST,He.SUB_TYPES.HLS,l)}return a&&(a.isMaster?this.hls.emit(Xe.HLS_MANIFEST_LOADED,{playlist:a}):this.hls.emit(Xe.HLS_LEVEL_LOADED,{playlist:a})),[a]}},{key:"poll",value:function(n,t,e,a,i,l){var c=this;clearTimeout(this._timer),l=l||3e3;var u=this.hls.config.pollRetryCount,d=function(){var f=qe(he().mark(function h(){var p,v;return he().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return clearTimeout(c._timer),p=n,m.prev=2,c.deliveryDirectives&&(p=c.deliveryDirectives.addDirectives(n)),m.next=6,c.load(p,t,e);case 6:if(v=m.sent,v[0]){m.next=9;break}return m.abrupt("return");case 9:u=c.hls.config.pollRetryCount,a(v[0],v[1],v[2]),m.next=17;break;case 13:m.prev=13,m.t0=m.catch(2),u--,u<=0&&i(m.t0);case 17:c._timer=setTimeout(d,l);case 18:case"end":return m.stop()}},h,null,[[2,13]])}));return function(){return f.apply(this,arguments)}}();this._timer=setTimeout(d,l)}},{key:"stopPoll",value:function(){return clearTimeout(this._timer),this.cancel()}},{key:"cancel",value:function(){return Promise.all([this._loader.cancel(),this._audioLoader.cancel()])}}]),o}();function jh(o,r,n){return r>n&&(n=r),Math.min(Math.max(o,r),n)}var $l=new Yn("playlist"),Gh=function(){function o(r,n,t){At(this,o),z(this,"live",void 0),z(this,"id",0),z(this,"bitrate",0),z(this,"width",0),z(this,"height",0),z(this,"name",""),z(this,"url",""),z(this,"audioCodec",""),z(this,"videoCodec",""),z(this,"textCodec",""),z(this,"startCC",0),z(this,"endCC",0),z(this,"startSN",0),z(this,"endSN",-1),z(this,"totalDuration",0),z(this,"targetDuration",0),z(this,"partTargetDuration",0),z(this,"canSkipUntil",0),z(this,"canSkipDateRanges",!1),z(this,"skippedSegments",0),z(this,"canBlockReload",!1),z(this,"partHoldBack",0),z(this,"lowLatency",!1),z(this,"endPartIndex",0),z(this,"snDiff",null),z(this,"segments",[]),z(this,"audioStreams",[]),z(this,"subtitleStreams",[]),z(this,"closedCaptions",[]),z(this,"currentAudioStream",null),z(this,"currentSubtitleStream",null),this.update(this._setLLPlaybackPoint(r),n,t)}return Dt(o,[{key:"lastSegment",get:function(){return this.segments.length?this.segments[this.segments.length-1]:null}},{key:"segmentDuration",get:function(){var n;return this.targetDuration||((n=this.segments[0])===null||n===void 0?void 0:n.duration)||0}},{key:"liveEdge",get:function(){return this.endTime},set:function(n){this.endTime=n}},{key:"endTime",get:function(){var n;return((n=this.lastSegment)===null||n===void 0?void 0:n.end)||0},set:function(n){var t=this.lastSegment;t&&(t.duration=n-t.start)}},{key:"currentSubtitleEndSn",get:function(){var n;return((n=this.currentSubtitleStream)===null||n===void 0?void 0:n.endSN)||0}},{key:"clearOldSegment",value:function(n,t){return this.currentAudioStream&&this._clearSegments(n,t),this._clearSegments(n,t)}},{key:"getAudioSegment",value:function(n){if(!(!n||!this.currentAudioStream)){var t=n.sn-this.snDiff;return this.currentAudioStream.segments.find(function(e){return e.sn===t})}}},{key:"update",value:function(n,t){this.url=n.url,Array.isArray(n.segments)?((this.live===null||this.live===void 0)&&(this.live=n.live),this._updateSegments(n,this),this.startCC=n.startCC,this.endCC=n.endCC,this.startSN=n.startSN,this.endSN=n.endSN||-1,this.totalDuration=n.totalDuration,this.targetDuration=n.targetDuration,this.live=n.live,this.lowLatency=n.lowLatency,this.canBlockReload=n.canBlockReload,this.canSkipDateRanges=n.canSkipDateRanges,this.canSkipUntil=n.canSkipUntil,this.partHoldBack=n.partHoldBack,this.partTargetDuration=n.partTargetDuration,this.skippedSegments=n.skippedSegments,this.endPartIndex=n.endPartIndex,t&&this.currentAudioStream&&Array.isArray(t.segments)&&(this._updateSegments(t,this.currentAudioStream),(this.snDiff===null||this.snDiff===void 0)&&n.segments.length&&t.segments.length&&(this.snDiff=n.segments[0].sn-t.segments[0].sn))):(this.id=n.id,this.bitrate=n.bitrate,this.width=n.width,this.height=n.height,this.name=n.name,this.audioCodec=n.audioCodec,this.videoCodec=n.videoCodec,this.textCodec=n.textCodec,this.audioStreams=n.audioStreams,this.subtitleStreams=n.subtitleStreams,!this.currentAudioStream&&this.audioStreams.length&&(this.currentAudioStream=this.audioStreams.find(function(e){return e.default})||this.audioStreams[0]),!this.currentSubtitleStream&&this.subtitleStreams.length&&(this.currentSubtitleStream=this.subtitleStreams.find(function(e){return e.default})||this.subtitleStreams[0]))}},{key:"updateSubtitle",value:function(n){var t=this;if(!!(n&&this.currentSubtitleStream&&Array.isArray(n.segments))){var e=this._updateSegments(n,this.currentSubtitleStream),a=this.currentSubtitleStream.segments;if(a.length>100&&(this.currentSubtitleStream.segments=a.slice(100)),!!e)return e.map(function(i){return{sn:i.sn,url:i.url,duration:i.duration,start:i.start,end:i.end,lang:t.currentSubtitleStream.lang}})}}},{key:"switchSubtitle",value:function(n){var t=this.subtitleStreams.find(function(a){return a.lang===n}),e=this.currentSubtitleStream;t&&(this.currentSubtitleStream=t,e.segments=[])}},{key:"_setLLPlaybackPoint",value:function(n){if(!n.lowLatency||!n.segments.length)return n;for(var t=n.totalDuration-n.partHoldBack,e=n.segments,a=0,i=0,l=e.length;i<l;i++)e[i].start<=t&&e[i].independent&&(a=i);var c=e.slice(a),u=0;return c.forEach(function(d){d.start=u,u=d.end}),n.segments=c,n.totalDuration=u,n.startSN=c[0].sn,n.startCC=c[0].cc,$l.log("set ll-hls playback point: SN=".concat(n.startSN," partIndex=").concat(c[0].partIndex,", duration=").concat(u)),n}},{key:"_clearSegments",value:function(n,t){for(var e=0,a=this.segments,i=0,l=a.length;i<l;i++)if(a[i].end>=n){e=i;break}return e>t&&(e=t),e&&(this.segments=this.segments.slice(e),this.currentAudioStream&&(this.currentAudioStream.segments=this.currentAudioStream.segments.slice(e))),t-e}},{key:"_updateSegments",value:function(n,t){var e=t.segments;if(this.live){var a,i=n.lowLatency,l=e[e.length-1],c=(a=l==null?void 0:l.sn)!==null&&a!==void 0?a:-1,u=(l==null?void 0:l.partIndex)||0,d=c<n.endSN&&n.segments.length;if(i&&(d=d||u<n.endPartIndex),d){$l.log("update segments: endSN:".concat(c,", partIndex:").concat(u," --> endSN:").concat(n.endSN,", partIndex:").concat(n.endPartIndex));var f=n.segments.findIndex(function(m){return m.sn===c&&m.partIndex===u}),h=f<0?n.segments:n.segments.slice(f+1);if(e.length&&h.length){var p=l.end,v=p;h.forEach(function(m){m.start=p,p=m.end}),$l.log("liveEdge: ".concat(v," -> ").concat(p));var g=(l==null?void 0:l.cc)||-1;g>h[0].cc&&h.forEach(function(m){return m.cc+=g})}return t.endSN=n.endSN,t.segments=e.concat(h),h}}else t.segments=n.segments}}]),o}(),S7=function(){function o(r){At(this,o),z(this,"streams",[]),z(this,"currentStream",null),z(this,"dvrWindow",0),z(this,"_segmentPointer",-1),this.hls=r}return Dt(o,[{key:"lowLatency",get:function(){var n;return(n=this.currentStream)===null||n===void 0?void 0:n.lowLatency}},{key:"lastSegment",get:function(){var n;return(n=this.currentStream)===null||n===void 0?void 0:n.lastSegment}},{key:"currentSegment",get:function(){var n;return(n=this.currentSegments)===null||n===void 0?void 0:n[this._segmentPointer]}},{key:"nextSegment",get:function(){var n;return(n=this.currentSegments)===null||n===void 0?void 0:n[this._segmentPointer+1]}},{key:"currentSegments",get:function(){var n;return(n=this.currentStream)===null||n===void 0?void 0:n.segments}},{key:"currentSubtitleEndSn",get:function(){var n;return(n=this.currentStream)===null||n===void 0?void 0:n.currentSubtitleEndSn}},{key:"liveEdge",get:function(){var n;return(n=this.currentStream)===null||n===void 0?void 0:n.liveEdge},set:function(n){this.currentStream&&(this.currentStream.liveEdge=n)}},{key:"totalDuration",get:function(){var n;return((n=this.currentStream)===null||n===void 0?void 0:n.totalDuration)||0}},{key:"seekRange",get:function(){var n=this.currentSegments;if(!(!n||!n.length))return[n[0].start,n[n.length-1].end]}},{key:"nbSegments",get:function(){var n;return((n=this.currentSegments)===null||n===void 0?void 0:n.length)||0}},{key:"isEmpty",get:function(){var n;return!((n=this.currentSegments)!==null&&n!==void 0&&n.length)}},{key:"isLive",get:function(){var n;return(n=this.currentStream)===null||n===void 0?void 0:n.live}},{key:"hadSegmentLoaded",get:function(){return this._segmentPointer!==-1}},{key:"hasSubtitle",get:function(){var n;return!!((n=this.currentStream)!==null&&n!==void 0&&n.currentSubtitleStream)}},{key:"getAudioSegment",value:function(n){var t;return(t=this.currentStream)===null||t===void 0?void 0:t.getAudioSegment(n)}},{key:"moveSegmentPointer",value:function(n){var t;n==null&&(n=this._segmentPointer+1),this._segmentPointer=jh(n,-1,(t=this.currentSegments)===null||t===void 0?void 0:t.length)}},{key:"reset",value:function(){this.streams=[],this.currentStream=null,this.dvrWindow=0,this._segmentPointer=-1}},{key:"getSegmentByIndex",value:function(n){var t;return(t=this.currentSegments)===null||t===void 0?void 0:t[n]}},{key:"setNextSegmentByIndex",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this._segmentPointer=n-1}},{key:"setNextSegmentBySN",value:function(){var n,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=(n=this.currentSegments)===null||n===void 0?void 0:n.findIndex(function(a){return a.sn===t});return e!==-1&&this.setNextSegmentByIndex(e+1),e}},{key:"findSegmentIndexByTime",value:function(n){var t=this.currentSegments;if(t){for(var e=0,a=t.length,i;e<a;e++)if(i=t[e],n>=i.start&&n<i.end)return e;var l=t[t.length-1];if(Math.abs(n-(l==null?void 0:l.end))<.2)return t.length-1}}},{key:"upsertPlaylist",value:function(n,t,e){var a=this;if(!!n){if(n.isMaster)this.streams.length=n.streams.length,n.streams.filter(function(u){return u.url}).forEach(function(u,d){a.streams[d]?a.streams[d].update(u):a.streams[d]=new Gh(u)}),this.currentStream=this.streams[0];else if(Array.isArray(n.segments)){var i=this.currentStream;if(i){i.update(n,t,e);var l=i.updateSubtitle(e);l&&this.hls.emit(Xe.SUBTITLE_SEGMENTS,{list:l})}else this.reset(),this.currentStream=this.streams[0]=new Gh(n,t,e)}var c=this.currentStream;c&&this.hls.isLive&&!this.dvrWindow&&(this.dvrWindow=this.currentSegments.reduce(function(u,d){return u+=d.duration,u},0))}}},{key:"updateSegmentsRanges",value:function(n,t){var e,a=(e=this.currentSegments)===null||e===void 0?void 0:e.filter(function(i){return i.sn>=n});a.forEach(function(i){i.start=t,t=i.end})}},{key:"switchSubtitle",value:function(n){var t;(t=this.currentStream)===null||t===void 0||t.switchSubtitle(n)}},{key:"clearOldSegment",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.hls.config.maxPlaylistSize||50,t=this.currentStream;if(!(!this.dvrWindow||!t)){var e=t.endTime-this.dvrWindow;if(!(e<=0)){var a=t.segments;a.length<=n||(this._segmentPointer=t.clearOldSegment(e,this._segmentPointer))}}}},{key:"checkSegmentTrackChange",value:function(n,t){var e=this.findSegmentIndexByTime(n),a=this.getSegmentByIndex(e);if(!!a&&!(!a.hasAudio&&!a.hasVideo)){if(t!==2&&a.hasAudio&&a.hasVideo)return a;if(!(a.end-n>.3)){var i=this.getSegmentByIndex(e+1);if(!!i&&!(!i.hasAudio&&!i.hasVideo)&&(i.hasAudio!==a.hasAudio||i.hasVideo!==a.hasVideo))return i}}}},{key:"feedbackLiveEdge",value:function(n,t){var e,a=this.currentSegments;if(!!a){var i=((e=this.lastSegment)===null||e===void 0?void 0:e.sn)===n.sn;if(i){this.liveEdge=t;return}this.updateSegmentsRanges(n.sn+1,t)}}}]),o}(),k7=function(){function o(r){var n=this;At(this,o),z(this,"error",null),z(this,"_emitOnLoaded",function(c,u){var d=c.data,f=c.response,h=c.options,p=h||{},v=p.firstByteTime,g=p.startTime,m=p.endTime,_=p.contentLength,b=m-g;n._bandwidthService.addRecord(_||d.byteLength,b),n.hls.emit(be.SPEED,{time:b,byteLength:_,url:u}),n.hls.emit(be.LOAD_COMPLETE,{url:u,elapsed:b||0}),n.hls.emit(be.TTFB,{url:u,responseUrl:f.url,elapsed:v-g}),n.hls.emit(be.LOAD_RESPONSE_HEADERS,{headers:f.headers,url:u})}),z(this,"_onLoaderRetry",function(c,u){n.hls.emit(be.LOAD_RETRY,{error:ht.network(c),retryTime:u})}),this.hls=r,this._bandwidthService=new _S,this._mapCache={},this._keyCache={};var t=this.hls.config,e=t.retryCount,a=t.retryDelay,i=t.loadTimeout,l=t.fetchOptions;this._segmentLoader=new _o($e($e({},l),{},{responseType:"arraybuffer",retry:e,retryDelay:a,timeout:i,onRetryError:this._onLoaderRetry})),this._audioSegmentLoader=new _o($e($e({},l),{},{responseType:"arraybuffer",retry:e,retryDelay:a,timeout:i,onRetryError:this._onLoaderRetry})),this._keyLoader=new _o($e($e({},l),{},{responseType:"arraybuffer",retry:e,retryDelay:a,timeout:i,onRetryError:this._onLoaderRetry}))}return Dt(o,[{key:"speedInfo",value:function(){return{speed:this._bandwidthService.getLatestSpeed(),avgSpeed:this._bandwidthService.getAvgSpeed()}}},{key:"load",value:function(n,t,e){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:e,i=[];return n&&(i[0]=this.loadVideoSegment(n,e)),t&&(i[1]=this.loadAudioSegment(t,a)),Promise.all(i)}},{key:"loadVideoSegment",value:function(n,t){return this._loadSegment(this._segmentLoader,n,t)}},{key:"loadAudioSegment",value:function(n,t){return this._loadSegment(this._audioSegmentLoader,n,t)}},{key:"_loadSegment",value:function(){var r=qe(he().mark(function t(e,a,i){var l=this,c,u,d,f,h,p,v,g,m,_,b,y,w,S,D;return he().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return v=[],this.hls.emit(be.LOAD_START,{url:a.url}),v[0]=e.load(a.url),i&&a.initSegment&&(m=a.initSegment.url,u=this._mapCache[m],u||(this.hls.emit(be.LOAD_START,{url:m}),v[1]=e.load(m).then(function(A){if(A){var L=Object.keys(l._mapCache);L>30&&(l._mapCache={}),u=l._mapCache[m]=A.data,l._emitOnLoaded(A,m)}})),_=(g=a.initSegment.key)===null||g===void 0?void 0:g.url,_&&(p=a.initSegment.key.iv,h=this._keyCache[_],h||(this.hls.emit(be.LOAD_START,{url:_}),v[2]=this._keyLoader.load(_).then(function(A){A&&(h=l._keyCache[_]=A.data,l._emitOnLoaded(A,_))})))),b=(c=a.key)===null||c===void 0?void 0:c.url,b&&a.key.isSegmentEncrypted()&&(f=a.key.iv,d=this._keyCache[b],d||(this.hls.emit(be.LOAD_START,{url:b}),v[3]=this._keyLoader.load(b).then(function(A){A&&(d=l._keyCache[b]=A.data,l._emitOnLoaded(A,b))}))),B.next=8,Promise.all(v);case 8:if(y=B.sent,w=ia(y,1),S=w[0],S){B.next=13;break}return B.abrupt("return");case 13:return D=S.data,this._emitOnLoaded(S,a.url),B.abrupt("return",{data:D,map:u,key:d,mapKey:h,keyIv:f,mapKeyIv:p});case 16:case"end":return B.stop()}},t,this)}));function n(t,e,a){return r.apply(this,arguments)}return n}()},{key:"reset",value:function(){this.error=null,this._mapCache={},this._keyCache={},this._bandwidthService.reset()}},{key:"cancel",value:function(){var r=qe(he().mark(function t(){return he().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Promise.all([this._keyLoader.cancel(),this._segmentLoader.cancel(),this._audioSegmentLoader.cancel()]);case 2:case"end":return a.stop()}},t,this)}));function n(){return r.apply(this,arguments)}return n}()}]),o}(),Jt=new Yn("hls"),bo=function(o){Ti(n,o);var r=Bi(n);function n(t){var e;return At(this,n),e=r.call(this),z(Ve(e),"version",n.version),z(Ve(e),"media",null),z(Ve(e),"config",null),z(Ve(e),"_manifestLoader",null),z(Ve(e),"_segmentLoader",null),z(Ve(e),"_playlist",null),z(Ve(e),"_bufferService",null),z(Ve(e),"_gapService",null),z(Ve(e),"_seiService",null),z(Ve(e),"_stats",null),z(Ve(e),"_prevSegSn",null),z(Ve(e),"_prevSegCc",null),z(Ve(e),"_tickTimer",null),z(Ve(e),"_tickInterval",500),z(Ve(e),"_segmentProcessing",!1),z(Ve(e),"_reloadOnPlay",!1),z(Ve(e),"_switchUrlOpts",null),z(Ve(e),"_isProcessQuotaExceeded",!1),z(Ve(e),"_loadSegment",qe(he().mark(function a(){var i,l,c,u,d,f,h,p,v;return he().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!(e._segmentProcessing||!e.media)){m.next=2;break}return m.abrupt("return");case 2:if(i=e._playlist,l=i.nextSegment,c=i.lastSegment,u=Ve(e),d=u.config,f=.016,h=Math.min(Math.max((c==null?void 0:c.duration)-f/2||0,f),.1),l){m.next=8;break}return m.abrupt("return");case 8:if(e.isLive){m.next=18;break}if(p=e.bufferInfo(),e.media.paused&&!e.media.currentTime&&(p=e.bufferInfo(p.nextStart||.5)),v=Math.abs(p.end-e.media.duration)<h,!(p.remaining>=d.preloadTime||v)){m.next=15;break}return e._tryEos(),m.abrupt("return");case 15:if(!(d.preferMMSStreaming&&!e._bufferService.msStreaming)){m.next=17;break}return m.abrupt("return");case 17:!e._urlSwitching&&e._prevSegSn!==l.sn-1&&p.end&&Math.abs(l.start-p.end)>1&&e._playlist.setNextSegmentByIndex(e._playlist.findSegmentIndexByTime(p.end+.1));case 18:return m.abrupt("return",e._loadSegmentDirect());case 19:case"end":return m.stop()}},a)}))),z(Ve(e),"_onLoadeddata",function(){e.isLive&&!e.config.mseLowLatency&&e.media.duration!==1/0&&e._bufferService.updateDuration(1/0).catch(function(a){})}),z(Ve(e),"_onPlay",qe(he().mark(function a(){return he().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!(e.media.seeking&&e.media.currentTime===0)){l.next=3;break}return Jt.debug("replay currentTime 0, return"),l.abrupt("return");case 3:if(clearTimeout(e._disconnectTimer),!e._reloadOnPlay){l.next=9;break}e._reloadOnPlay=!1,e.replay(!0),l.next=12;break;case 9:return l.next=11,e._loadSegment();case 11:e._startTick();case 12:case"end":return l.stop()}},a)}))),z(Ve(e),"_onPause",function(){if(e.isLive){if(!e._reloadOnPlay){var a=e.config.disconnectTime;if(a==null&&(a=e._playlist.dvrWindow),!Number.isFinite(a))return;clearTimeout(e._disconnectTimer),e._disconnectTimer=setTimeout(function(){e._reloadOnPlay=!0,e._clear()},a||0)}}else e._stopTick()}),z(Ve(e),"_onSeeking",qe(he().mark(function a(){var i,l,c,u,d,f,h;return he().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(e.media){v.next=2;break}return v.abrupt("return");case 2:if(e._onCheckQuotaExceeded(),i=e.media.currentTime,l=e._playlist.seekRange,!l){v.next=10;break}if(c=jh(i,l[0],e.isLive?l[1]:e.media.duration),!(c>=0&&Math.abs(i-c)>=.1)){v.next=10;break}return e.media.currentTime=c,v.abrupt("return");case 10:if(u=e._playlist.currentSegment,d=dn.info(dn.get(e.media),i,.1),!u){v.next=17;break}if(!(d.end&&Math.abs(d.end-u.end)<.2)){v.next=15;break}return v.abrupt("return");case 15:if(!(e.isLive&&d.end)){v.next=17;break}return v.abrupt("return");case 17:if(f=e._playlist.findSegmentIndexByTime(i),h=e._playlist.getSegmentByIndex(f),!(f==null||!h||e._segmentProcessing&&h===e._playlist.nextSegment)){v.next=21;break}return v.abrupt("return");case 21:return Jt.debug("seek to",i,h),e._playlist.setNextSegmentByIndex(f),e._stopTick(),v.next=26,e._segmentLoader.cancel();case 26:if(e._segmentProcessing=!1,!(!d.end||e.isLive)){v.next=30;break}return v.next=30,e._loadSegmentDirect(!0);case 30:e._startTick();case 31:case"end":return v.stop()}},a)}))),z(Ve(e),"_onTimeupdate",function(){if(!!e.media){var a=e.config;if(a.isLive&&a.maxLatency&&a.targetLatency){var i=e._playlist.liveEdge;if(!i)return;var l=i-e.media.currentTime;l>=a.maxLatency&&(Jt.debug("latency jump, currentTime:".concat(e.media.currentTime,", liveEdge:").concat(i,", latency=").concat(l)),e.media.currentTime=i-a.targetLatency)}if(a.seiInTime){var c;(c=e._seiService)===null||c===void 0||c.throw(e.media.currentTime)}a.allowedStreamTrackChange&&!a.softDecode&&e.media.readyState&&e._checkStreamTrackChange(e.media.currentTime)}}),z(Ve(e),"_tick",function(){if(!!e.media){e._startTick();var a=e.media,i=e._segmentLoader.error;if(e._onCheckQuotaExceeded(),e._isProcessQuotaExceeded&&(e._bufferService.isFull()||(e._isProcessQuotaExceeded=!1,e._segmentProcessing=!1)),i){var l=.5;(!a.readyState||e.bufferInfo(l).remaining<1)&&(i.fatal=!0,e._emitError(ht.network(i)));return}a.readyState&&(uS(a)?(e._loadSegment(),e._gapService&&e._gapService.do(a,e.config.maxJumpDistance,e.isLive)):a.readyState<2&&e._gapService&&e._gapService.do(a,e.config.maxJumpDistance,a.currentTime?e.isLive:!0)),e.isLive||e._tryEos()}}),e.config=t=i7(t),e.media=e.config.media,e._manifestLoader=new C7(Ve(e)),e._segmentLoader=new k7(Ve(e)),e._playlist=new S7(Ve(e)),e._bufferService=new r7(Ve(e)),t.seiInTime&&(e._seiService=new pS(Ve(e))),t.softDecode||(e._gapService=new hS),e._stats=new wS(Ve(e),9e4),e.media.addEventListener("loadeddata",e._onLoadeddata),e.media.addEventListener("play",e._onPlay),e.media.addEventListener("pause",e._onPause),e.media.addEventListener("seeking",e._onSeeking),e.media.addEventListener("timeupdate",e._onTimeupdate),e}return Dt(n,[{key:"isLive",get:function(){return this._playlist.isLive}},{key:"streams",get:function(){return this._playlist.streams}},{key:"currentStream",get:function(){return this._playlist.currentStream}},{key:"hasSubtitle",get:function(){return this._playlist.hasSubtitle}},{key:"totalDuration",get:function(){return this._playlist.totalDuration}},{key:"baseDts",get:function(){var e;return(e=this._bufferService)===null||e===void 0?void 0:e.baseDts}},{key:"abrSwitchPoint",get:function(){var e=this._urlSwitching?this._playlist.currentSegment:this._playlist.nextSegment;return e?e.start+e.duration/2:null}},{key:"speedInfo",value:function(){return this._segmentLoader.speedInfo()}},{key:"bufferInfo",value:function(){var e,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:.1;return dn.info(dn.get(this.media),(e=this.media)===null||e===void 0?void 0:e.currentTime,a)}},{key:"getStats",value:function(){return this._stats.getStats()}},{key:"playbackQuality",value:function(){return dS(this.media)}},{key:"load",value:function(){var t=qe(he().mark(function a(){var i,l,c,u=arguments;return he().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return i=u.length>0&&u[0]!==void 0?u[0]:"",l=u.length>1&&u[1]!==void 0?u[1]:{},c=typeof l=="boolean"?l:!!(l!=null&&l.reuseMse),or(l)==="object"&&l!==null&&l!==void 0&&l.clearSwitchStatus&&(this._urlSwitching=!1,this._switchUrlOpts=null,this.config.startTime=void 0),i&&(this.config.url=i),i=this.config.url,f.next=8,this._reset(c);case 8:return f.next=10,this._loadData(i);case 10:this._startTick();case 11:case"end":return f.stop()}},a,this)}));function e(){return t.apply(this,arguments)}return e}()},{key:"_loadData",value:function(){var t=qe(he().mark(function a(i){var l,c,u,d,f,h,p,v,g,m,_,b,y;return he().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:try{i&&(i=i.trim())}catch{}if(i){S.next=3;break}throw this._emitError(new ht(He.OTHER,He.SUB_TYPES.OPTION,null,null,"m3u8 url is missing"));case 3:return S.next=5,this._loadM3U8(i);case 5:if(l=S.sent,c=this._playlist.currentStream,!this._urlSwitching){S.next=23;break}if(!this.isLive){S.next=14;break}u=this._playlist.setNextSegmentBySN(this._prevSegSn),Jt.log("segment nb=".concat(this._prevSegSn," index of ").concat(u," in the new playlist")),u===-1&&(this._prevSegCc=null,this._prevSegSn=null),S.next=23;break;case 14:if(c.bitrate===0&&(d=this._switchUrlOpts)!==null&&d!==void 0&&d.bitrate&&(c.bitrate=(p=this._switchUrlOpts)===null||p===void 0?void 0:p.bitrate),v=typeof((f=this._switchUrlOpts)===null||f===void 0?void 0:f.startTime)=="number"?(h=this._switchUrlOpts)===null||h===void 0?void 0:h.startTime:this._getSeamlessSwitchPoint(),this.config.startTime=v,g=this._playlist.findSegmentIndexByTime(v),m=this._playlist.getSegmentByIndex(g+1),!m){S.next=23;break}return _=m.start,S.next=23,this._bufferService.removeBuffer(_);case 23:if(l){S.next=25;break}return S.abrupt("return");case 25:if(!this.isLive){S.next=36;break}if(this._bufferService.setLiveSeekableRange(0,4294967295),Jt.log("totalDuration first time got:",this._playlist.totalDuration),Jt.log("nb segments got:",this._playlist.nbSegments),this.config.targetLatency<this._playlist.totalDuration&&(this.config.targetLatency=this._playlist.totalDuration,this.config.maxLatency=1.5*this.config.targetLatency),l.isMaster||this._pollM3U8(i),!(this._playlist.nbSegments<this.config.minSegmentsStartPlay)){S.next=33;break}return S.abrupt("return");case 33:return S.next=35,this._loadSegment();case 35:return S.abrupt("return");case 36:return S.next=38,this._bufferService.updateDuration(c.totalDuration);case 38:return b=this.config.startTime,b&&((y=this._switchUrlOpts)!==null&&y!==void 0&&y.seamless||(this.media.currentTime=b),this._playlist.setNextSegmentByIndex(this._playlist.findSegmentIndexByTime(b)||0)),S.next=42,this._loadSegment();case 42:case"end":return S.stop()}},a,this)}));function e(a){return t.apply(this,arguments)}return e}()},{key:"replay",value:function(){var t=qe(he().mark(function a(i){return he().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this.config.startTime=0,this._urlSwitching=!1,this._switchUrlOpts=null,c.next=5,this.load();case 5:return this._reloadOnPlay=!1,c.abrupt("return",this.media.play(!i));case 7:case"end":return c.stop()}},a,this)}));function e(a){return t.apply(this,arguments)}return e}()},{key:"switchURL",value:function(){var t=qe(he().mark(function a(i){var l,c,u,d,f,h,p,v=arguments;return he().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:l=v.length>1&&v[1]!==void 0?v[1]:{},c={seamless:!1,startTime:0,bitrate:0},m.t0=or(l),m.next=m.t0==="number"?5:m.t0==="boolean"?7:m.t0==="object"?9:11;break;case 5:return l={startTime:l},m.abrupt("break",12);case 7:return l={seamless:l},m.abrupt("break",12);case 9:for(u in l)(l[u]===void 0||l[u]===null)&&delete l[u];return m.abrupt("break",12);case 11:throw"unsupported switchURL args: ".concat(l);case 12:if(l=Object.assign({},c,l),d=l,f=d.seamless,h=d.startTime,this.config.url=i,this.config.startTime=h,this._switchUrlOpts=l,f){m.next=38;break}if(m.prev=18,!this.config.softDecode){m.next=23;break}m.t1=this.load(i),m.next=26;break;case 23:return m.next=25,this.load(i);case 25:m.t1=m.sent;case 26:p=m.t1,m.next=33;break;case 29:throw m.prev=29,m.t2=m.catch(18),this.emit(Xe.SWITCH_URL_FAILED,m.t2),m.t2;case 33:return this._reloadOnPlay=!1,p&&this.emit(Xe.SWITCH_URL_SUCCESS,{url:i}),m.abrupt("return",this.media.play(!0));case 38:return this._urlSwitching=!0,this.isLive||(this._prevSegSn=null,this._prevSegCc=null),this._playlist.reset(),this._bufferService.seamlessSwitch(),m.next=44,this._clear();case 44:return m.next=46,this._loadData(i);case 46:this._startTick();case 47:this._switchUrlOpts=null;case 48:case"end":return m.stop()}},a,this,[[18,29]])}));function e(a){return t.apply(this,arguments)}return e}()},{key:"switchStream",value:function(){var t=qe(he().mark(function a(i){var l,c,u,d,f,h=arguments;return he().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(l=h.length>1&&h[1]!==void 0?h[1]:!0,c=this.currentStream,u=this.streams,!(!c||c.id===i||!u||u.length<2)){v.next=5;break}return v.abrupt("return");case 5:if(d=u.find(function(g){return g.id===i}),d){v.next=8;break}return v.abrupt("return");case 8:return v.prev=8,v.next=11,this._clear();case 11:if(!l){v.next=14;break}return v.next=14,this._bufferService.clearAllBuffer();case 14:v.next=19;break;case 16:throw v.prev=16,v.t0=v.catch(8),this._emitError(ht.create(v.t0));case 19:if(c.currentAudioStream&&d.audioStreams.length>2&&(f=c.currentAudioStream.id,d.currentAudioStream=d.audioStreams.find(function(g){return g.id===f})||d.currentAudioStream),this._playlist.currentStream=d,v.prev=21,!(this.isLive||!d.segments.length)){v.next=25;break}return v.next=25,this._refreshM3U8();case 25:return this._playlist.setNextSegmentByIndex(this._playlist.findSegmentIndexByTime(this.media.currentTime)||0),this._prevSegCc=null,v.next=29,this._loadSegmentDirect();case 29:v.next=35;break;case 31:throw v.prev=31,v.t1=v.catch(21),this._playlist.currentStream=c,v.t1;case 35:return this._startTick(),v.abrupt("return",d);case 37:case"end":return v.stop()}},a,this,[[8,16],[21,31]])}));function e(a){return t.apply(this,arguments)}return e}()},{key:"switchAudioStream",value:function(){var t=qe(he().mark(function a(i){var l,c,u,d,f=arguments;return he().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(l=f.length>1&&f[1]!==void 0?f[1]:!0,c=this.currentStream,c){p.next=4;break}return p.abrupt("return");case 4:if(u=c.currentAudioStream,!(!u||u.id===i||c.audioStreams.length<2)){p.next=7;break}return p.abrupt("return");case 7:if(d=c.audioStreams.find(function(v){return v.id===i}),d){p.next=10;break}return p.abrupt("return");case 10:return p.prev=10,p.next=13,this._clear();case 13:if(!l){p.next=16;break}return p.next=16,this._bufferService.clearAllBuffer();case 16:p.next=21;break;case 18:throw p.prev=18,p.t0=p.catch(10),this._emitError(ht.create(p.t0));case 21:if(c.currentAudioStream=d,p.prev=22,!(this.isLive||!d.segments.length)){p.next=26;break}return p.next=26,this._refreshM3U8();case 26:return this._playlist.setNextSegmentByIndex(this._playlist.findSegmentIndexByTime(this.media.currentTime)||0),this._prevSegCc=null,p.next=30,this._loadSegmentDirect();case 30:p.next=36;break;case 32:throw p.prev=32,p.t1=p.catch(22),c.currentAudioStream=u,p.t1;case 36:return this._startTick(),p.abrupt("return",d);case 38:case"end":return p.stop()}},a,this,[[10,18],[22,32]])}));function e(a){return t.apply(this,arguments)}return e}()},{key:"switchSubtitleStream",value:function(){var t=qe(he().mark(function a(i){return he().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this._playlist.switchSubtitle(i),c.next=3,this._manifestLoader.stopPoll();case 3:return c.next=5,this._refreshM3U8();case 5:case"end":return c.stop()}},a,this)}));function e(a){return t.apply(this,arguments)}return e}()},{key:"detachMedia",value:function(){var t=qe(he().mark(function a(){return he().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!this._bufferService){l.next=3;break}return l.next=3,this._bufferService.detachMedia();case 3:case"end":return l.stop()}},a,this)}));function e(){return t.apply(this,arguments)}return e}()},{key:"destroy",value:function(){var t=qe(he().mark(function a(){var i;return he().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.media){c.next=2;break}return c.abrupt("return");case 2:return this.removeAllListeners(),this._playlist.reset(),this._segmentLoader.reset(),(i=this._seiService)===null||i===void 0||i.reset(),this.media.removeEventListener("loadeddata",this._onLoadeddata),this.media.removeEventListener("play",this._onPlay),this.media.removeEventListener("pause",this._onPause),this.media.removeEventListener("seeking",this._onSeeking),this.media.removeEventListener("timeupdate",this._onTimeupdate),c.next=13,Promise.all([this._clear(),this._bufferService.destroy()]);case 13:this.media=null;case 14:case"end":return c.stop()}},a,this)}));function e(){return t.apply(this,arguments)}return e}()},{key:"_loadM3U8",value:function(){var t=qe(he().mark(function a(i){var l,c,u,d,f,h,p;return he().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(g.prev=0,d=(c=this.config.manifestList)===null||c===void 0||(u=c.filter(function(m){return m.url===i})[0])===null||u===void 0?void 0:u.manifest,!d){g.next=6;break}g.t0=this._manifestLoader.parseText(d,i),g.next=9;break;case 6:return g.next=8,this._manifestLoader.load(i);case 8:g.t0=g.sent;case 9:f=g.t0,h=ia(f,1),l=h[0],g.next=17;break;case 14:throw g.prev=14,g.t1=g.catch(0),this._emitError(ht.create(g.t1));case 17:if(l){g.next=19;break}return g.abrupt("return");case 19:if(this._playlist.upsertPlaylist(l),!l.isMaster){g.next=24;break}return(p=this._playlist.currentStream.subtitleStreams)!==null&&p!==void 0&&p.length&&this.emit(Xe.SUBTITLE_PLAYLIST,{list:this._playlist.currentStream.subtitleStreams}),g.next=24,this._refreshM3U8();case 24:return this.emit(Xe.STREAM_PARSED),g.abrupt("return",l);case 26:case"end":return g.stop()}},a,this,[[0,14]])}));function e(a){return t.apply(this,arguments)}return e}()},{key:"_refreshM3U8",value:function(){var e,a,i=this,l=this._playlist.currentStream;if(!l||!l.url)throw this._emitError(ht.create(null,null,new Error("m3u8 url is not defined")));var c=l.url,u=(e=l.currentAudioStream)===null||e===void 0?void 0:e.url,d=(a=l.currentSubtitleStream)===null||a===void 0?void 0:a.url;return this._manifestLoader.load(c,u,d).then(function(f){var h=ia(f,3),p=h[0],v=h[1],g=h[2];!p||(i._playlist.upsertPlaylist(p,v,g),i.isLive&&i._pollM3U8(c,u,d))}).catch(function(f){throw i._emitError(ht.create(f))})}},{key:"_pollM3U8",value:function(e,a,i){var l=this,c=this._playlist.isEmpty,u;if(this._playlist.lowLatency)u=(this._playlist.currentStream.partTargetDuration||0)*1e3;else{var d;u=(((d=this._playlist.lastSegment)===null||d===void 0?void 0:d.duration)||0)*1e3}this._manifestLoader.poll(e,a,i,function(f,h,p){l._playlist.upsertPlaylist(f,h,p),l._playlist.clearOldSegment();var v=f&&c&&!l._playlist.isEmpty;(v||!l._playlist.hadSegmentLoaded&&l._playlist.nbSegments>=l.config.minSegmentsStartPlay)&&l._loadSegment(),c&&(c=l._playlist.isEmpty)},function(f){l._emitError(ht.create(f))},u)}},{key:"_loadSegmentDirect",value:function(){var t=qe(he().mark(function a(i){var l,c,u,d,f,h;return he().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(l=this._playlist.nextSegment,l){v.next=3;break}return v.abrupt("return");case 3:return c=!1,u=null,v.prev=5,this._segmentProcessing=!0,Jt.log("load segment, sn:".concat(l.sn,", [").concat(l.start,", ").concat(l.end,"], partIndex:").concat(l.partIndex)),v.next=10,this._reqAndBufferSegment(l,this._playlist.getAudioSegment(l));case 10:c=v.sent,v.next=16;break;case 13:v.prev=13,v.t0=v.catch(5),u=v.t0;case 16:return v.prev=16,this._segmentProcessing=!1,v.finish(16);case 19:if(!u){v.next=26;break}if(!this._bufferService.isFull()){v.next=25;break}return Jt.log("load segment, sn:".concat(l.sn,", partIndex:").concat(l.partIndex)),this._segmentProcessing=!0,this._isProcessQuotaExceeded=!0,v.abrupt("return",!1);case 25:return v.abrupt("return",this._emitError(ht.create(u)));case 26:return c&&(f=this.bufferInfo().end,this.isLive&&!this.media.seeking&&f&&Math.abs(l.end-f)>1&&(Jt.warn("segment: ".concat(l.sn," expected end=").concat(l.end,", real end=").concat(f)),this._playlist.feedbackLiveEdge(l,f)),h=((d=this._playlist.currentStream)===null||d===void 0?void 0:d.url)===l.parentUrl,this._urlSwitching&&!h&&(Jt.warn("pre playlist segment appended!"),this._bufferService.seamlessSwitch()),this.isLive&&this._urlSwitching&&h&&(this._urlSwitching=!1,this.emit(Xe.SWITCH_URL_SUCCESS,{url:this.config.url})),this._playlist.moveSegmentPointer(),l.isLast?this._end():i||this._loadSegment()),v.abrupt("return",c);case 28:case"end":return v.stop()}},a,this,[[5,13,16,19]])}));function e(a){return t.apply(this,arguments)}return e}()},{key:"_reqAndBufferSegment",value:function(){var t=qe(he().mark(function a(i,l){var c,u,d,f,h,p,v,g,m,_,b;return he().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return u=i?i.cc:l.cc,d=this._prevSegCc!==u,f=[],w.prev=3,w.next=6,this._segmentLoader.load(i,l,d);case 6:f=w.sent,w.next=14;break;case 9:throw w.prev=9,w.t0=w.catch(3),w.t0.fatal=!1,this._segmentLoader.error=w.t0,w.t0;case 14:if(f[0]){w.next=16;break}return w.abrupt("return");case 16:return w.next=18,(c=this._bufferService).decryptBuffer.apply(c,RC(f));case 18:if(h=w.sent,h){w.next=21;break}return w.abrupt("return");case 21:return p=i?i.sn:l.sn,v=i?i.start:l.start,g=this._playlist.currentStream,this._bufferService.createSource(h[0],h[1],g==null?void 0:g.videoCodec,g==null?void 0:g.audioCodec),m=Date.now(),_=this._prevSegSn===p-1,this.isLive&&this._urlSwitching&&(b=this.bufferInfo().end,this._playlist.updateSegmentsRanges(p,b),Jt.warn("update the new playlist liveEdge, segment id=".concat(p,", buffer start=").concat(b,", liveEdge=").concat(this._playlist.liveEdge)),v=b),w.next=30,this._bufferService.appendBuffer(i,l,h[0],h[1],d,_,v);case 30:return this.emit(Xe.APPEND_COST,{elapsed:Date.now()-m,url:i.url}),w.next=33,this._bufferService.evictBuffer(this.config.bufferBehind);case 33:return this._prevSegCc=u,this._prevSegSn=p,w.abrupt("return",!0);case 36:case"end":return w.stop()}},a,this,[[3,9]])}));function e(a,i){return t.apply(this,arguments)}return e}()},{key:"_onCheckQuotaExceeded",value:function(){var t=qe(he().mark(function a(){var i,l,c,u,d,f;return he().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:i=this.media.currentTime,l=this.media.buffered,c=!1,u=0;case 4:if(!(u<l.length)){p.next=11;break}if(!(l.start(0)>=i&&i<l.end(u))){p.next=8;break}return c=!0,p.abrupt("break",11);case 8:u++,p.next=4;break;case 11:if(!this._bufferService.isFull()){p.next=17;break}if(d=c?this.config.bufferBehind:5,f=this.media.currentTime,!(f-d>0)){p.next=17;break}return p.next=17,this._bufferService.removeBuffer(0,f-d);case 17:case"end":return p.stop()}},a,this)}));function e(){return t.apply(this,arguments)}return e}()},{key:"_checkStreamTrackChange",value:function(e){var a=this._playlist.checkSegmentTrackChange(e,this._bufferService.nbSb);!a||this.switchURL(this.config.url,a.start+.2)}},{key:"_clear",value:function(){var t=qe(he().mark(function a(){return he().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return clearTimeout(this._disconnectTimer),this._stopTick(),l.next=4,Promise.all([this._segmentLoader.cancel(),this._manifestLoader.stopPoll()]);case 4:this._segmentProcessing=!1;case 5:case"end":return l.stop()}},a,this)}));function e(){return t.apply(this,arguments)}return e}()},{key:"_reset",value:function(){var t=qe(he().mark(function a(){var i,l,c=arguments;return he().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return l=c.length>0&&c[0]!==void 0?c[0]:!1,this._reloadOnPlay=!1,this._prevSegSn=null,this._prevSegCc=null,this._switchUrlOpts=null,this._playlist.reset(),this._segmentLoader.reset(),(i=this._seiService)===null||i===void 0||i.reset(),this._stats.reset(),d.next=11,this._clear();case 11:return d.abrupt("return",this._bufferService.reset(l));case 12:case"end":return d.stop()}},a,this)}));function e(){return t.apply(this,arguments)}return e}()},{key:"_end",value:function(){this._clear(),this._bufferService.endOfStream(),(this.media.readyState<=2||this.media.buffered.length>1)&&this._startTick()}},{key:"_stopTick",value:function(){this._tickTimer&&clearTimeout(this._tickTimer),this._tickTimer=null}},{key:"_startTick",value:function(){this._stopTick(),this._tickTimer=setTimeout(this._tick,this._tickInterval)}},{key:"_emitError",value:function(e){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(((a=e.originError)===null||a===void 0?void 0:a.fatal)===!1)Jt.warn(e);else{var l,c,u;Jt.table(e),Jt.error(e),Jt.error((l=this.media)===null||l===void 0?void 0:l.error),(c=this.media)!==null&&c!==void 0&&c.readyState&&this.media.pause(),this._stopTick(),this._urlSwitching&&(this._urlSwitching=!1,this.emit(Xe.SWITCH_URL_FAILED,e)),this.emit(Xe.ERROR,e),i&&this._end(),(u=this._seiService)===null||u===void 0||u.reset()}return e}},{key:"_getSeamlessSwitchPoint",value:function(){var e=this.media,a=e.currentTime;if(!e.paused){var i,l=this._playlist.findSegmentIndexByTime(e.currentTime),c=this._playlist.getSegmentByIndex(l),u=(i=this._stats)===null||i===void 0?void 0:i.getStats().downloadSpeed;if(u&&c){var d=c.duration*this._playlist.currentStream.bitrate/u+1;a+=d}else a+=5}return a}},{key:"_tryEos",value:function(){var e,a,i=this.media,l=this._playlist,c=l.nextSegment,u=l.lastSegment,d=(!c||u&&dn.isBuffered(i,u.start+u.duration/2))&&i.readyState&&i.duration>0&&((e=this._bufferService)===null||e===void 0?void 0:e.msIsOpened)&&!((a=this._bufferService)!==null&&a!==void 0&&a.msHasOpTasks);if(!!d){var f=this.bufferInfo();i.paused&&!i.currentTime&&(f=this.bufferInfo(f.nextStart||.5));var h=Math.abs(f.end-i.duration)<.1||!this.isLive&&u&&f.end>=u.start+u.duration;h&&this._bufferService.endOfStream()}}}],[{key:"isSupported",value:function(e){return!e||e==="video"||e==="audio"?en.isSupported():typeof WebAssembly<"u"}},{key:"enableLogger",value:function(){Yn.enable(),Ni.enable()}},{key:"disableLogger",value:function(){Yn.disable(),Ni.disable()}}]),n}(io);z(bo,"version","3.0.22");try{localStorage.getItem("xgd")?bo.enableLogger():bo.disableLogger()}catch{}var T7=function(){function o(r,n){var t=this;At(this,o),z(this,"_opts",null),z(this,"_plugin",null),z(this,"_onLowDecode",function(){var e,a,i,l,c=t._opts,u=c.media,d=c.innerDegrade;(e=t._plugin)===null||e===void 0||(a=e.player)===null||a===void 0||a.emit("lowdecode",u.degradeInfo),(i=t._plugin)===null||i===void 0||(l=i.player)===null||l===void 0||l.emit("core_event",$e($e({},u.degradeInfo),{},{eventName:Xe.LOWDECODE})),d===1&&t._degrade(u.src)}),z(this,"_degrade",function(e){var a=t._plugin.player,i=a.video;if(!(i&&i.TAG!=="MVideo")){var l=a.video.degradeVideo;a.video=l,i.degrade(e),e&&(a.config.url=e);var c=a.root.firstChild;c.TAG==="MVideo"&&a.root.replaceChild(l,c);var u=t._plugin.constructor.pluginName.toLowerCase();a.unRegisterPlugin(u),a.once("canplay",function(){a.play()})}}),z(this,"forceDegradeToVideo",function(e){var a=t._opts.innerDegrade;a===1&&t._degrade(e)}),this._opts=r,this._plugin=n,this._init()}return Dt(o,[{key:"_init",value:function(){var n=this._opts,t=n.media,e=n.preloadTime,a=n.innerDegrade,i=n.isLive;if(!!t){if(!i&&t.setPlayMode){t.setPlayMode("VOD");return}a&&t.setAttribute("innerdegrade",a),e&&t.setAttribute("preloadtime",e),this._bindEvents()}}},{key:"_bindEvents",value:function(){var n=this._opts.media;n.addEventListener("lowdecode",this._onLowDecode)}},{key:"destroy",value:function(){var n,t;(n=this._opts)===null||n===void 0||(t=n.media)===null||t===void 0||t.removeEventListener("lowdecode",this._onLowDecode),this._plugin=null}}]),o}(),x7=["currentTime"];function B7(o,r){var n=r.player,t=n.currentTime,e={startTime:t};switch(or(o)){case"boolean":e.seamless=o;break;case"object":{var a=o.currentTime,i=Pl(o,x7);Object.assign(e,i),typeof a=="number"&&(e.startTime=a);break}}return e}var ec=function(o){Ti(n,o);var r=Bi(n);function n(){var t;At(this,n);for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=r.call.apply(r,[this].concat(a)),z(Ve(t),"logger",Jt),z(Ve(t),"hls",null),z(Ve(t),"pluginExtension",null),z(Ve(t),"getStats",function(){var l;return(l=t.hls)===null||l===void 0?void 0:l.getStats()}),z(Ve(t),"_onSwitchSubtitle",function(l){var c,u=l.lang;(c=t.hls)===null||c===void 0||c.switchSubtitleStream(u)}),z(Ve(t),"_keepPauseStatus",function(){var l=t.player.paused;!l||t.player.once("canplay",function(){t.player.pause()})}),t}return Dt(n,[{key:"core",get:function(){return this.hls}},{key:"version",get:function(){var e;return(e=this.hls)===null||e===void 0?void 0:e.version}},{key:"softDecode",get:function(){var e,a,i=(e=this.player)===null||e===void 0||(a=e.config)===null||a===void 0?void 0:a.mediaType;return!!i&&i!=="video"&&i!=="audio"&&i!=="offscreen-video"}},{key:"beforePlayerInit",value:function(){var e=this,a=this.player.config,i=this.player.media||this.player.video,l=a.hls||{};if(!(!a.url&&!a.__allowHlsEmptyUrl__||!this.softDecode&&!l.preferMMS&&en.isMMSOnly())){this.hls&&this.hls.destroy();var c=Object.getOwnPropertyDescriptor(this.player,"switchURL");(!c||c.writable)&&(this.player.switchURL=function(f,h){return new Promise(function(p,v){var g=e.player,m=e.hls;if(m){var _,b,y=B7(h,e);g.config.url=f,m.switchURL(f,y).then(function(){return p(!0)}).catch(v),!y.seamless&&(_=e.player.config)!==null&&_!==void 0&&(b=_.hls)!==null&&b!==void 0&&b.keepStatusAfterSwitch&&e._keepPauseStatus()}else v()})});var u=this.player.switchURL;if(this.player.handleSource=!1,l.innerDegrade=l.innerDegrade||a.innerDegrade,(l.disconnectTime===null||l.disconnectTime===void 0)&&(l.disconnectTime=0),this.hls=new bo($e({softDecode:this.softDecode,isLive:a.isLive,media:i,startTime:a.startTime,url:a.url},l)),this.softDecode||Gn.defineGetterOrSetter(this.player,{url:{get:function(){var h,p;return(h=e.hls)===null||h===void 0||(p=h.media)===null||p===void 0?void 0:p.src},configurable:!0}}),this.softDecode&&(this.pluginExtension=new T7($e({isLive:a.isLive,media:i},l),this),this.player.forceDegradeToVideo=function(){for(var f,h=arguments.length,p=new Array(h),v=0;v<h;v++)p[v]=arguments[v];return(f=e.pluginExtension)===null||f===void 0?void 0:f.forceDegradeToVideo.apply(f,p)}),a.isLive){var d;(d=this.player)===null||d===void 0||d.useHooks("replay",function(){var f;return(f=e.hls)===null||f===void 0?void 0:f.replay()})}this.on(er,u),this.on(pf,this._onSwitchSubtitle),this.on(di,this.destroy.bind(this)),this._transError(),this._transCoreEvent(be.TTFB),this._transCoreEvent(be.LOAD_START),this._transCoreEvent(be.LOAD_RESPONSE_HEADERS),this._transCoreEvent(be.LOAD_COMPLETE),this._transCoreEvent(be.LOAD_RETRY),this._transCoreEvent(be.SOURCEBUFFER_CREATED),this._transCoreEvent(be.MEDIASOURCE_OPENED),this._transCoreEvent(be.APPEND_BUFFER),this._transCoreEvent(be.REMOVE_BUFFER),this._transCoreEvent(be.BUFFEREOS),this._transCoreEvent(be.KEYFRAME),this._transCoreEvent(be.METADATA_PARSED),this._transCoreEvent(be.DEMUXED_TRACK),this._transCoreEvent(be.SEI),this._transCoreEvent(be.SEI_IN_TIME),this._transCoreEvent(be.SPEED),this._transCoreEvent(be.HLS_MANIFEST_LOADED),this._transCoreEvent(be.HLS_LEVEL_LOADED),this._transCoreEvent(be.STREAM_EXCEPTION),this._transCoreEvent(be.SWITCH_URL_SUCCESS),this._transCoreEvent(be.SWITCH_URL_FAILED),this._transCoreEvent(Xe.NO_AUDIO_TRACK),this._transCoreEvent(Xe.STREAM_PARSED),this._transCoreEvent(Xe.SUBTITLE_SEGMENTS),this._transCoreEvent(Xe.SUBTITLE_PLAYLIST),this._transCoreEvent(Xe.APPEND_COST),a.url&&this.hls.load(a.url,{reuseMse:!0}).catch(function(f){})}}},{key:"destroy",value:function(){var e;this.hls&&(this.hls.destroy(),this.hls=null),(e=this.pluginExtension)===null||e===void 0||e.destroy(),this.pluginExtension=null}},{key:"_transError",value:function(){var e=this;this.hls.on(Xe.ERROR,function(a){e.player&&e.player.emit(so,new Zo(e.player,a))})}},{key:"_transCoreEvent",value:function(e){var a=this;this.hls.on(e,function(i){a.player&&(a.player.emit("core_event",$e($e({},i),{},{eventName:e})),e===be.SEI_IN_TIME&&a.hls.hasSubtitle&&a._emitSeiPaylodTime(i))})}},{key:"_emitSeiPaylodTime",value:function(e){try{var a=JSON.parse(Array.from(e.data.payload).map(function(i){return String.fromCharCode(i)}).join("").slice(0,-1));if(!a.rtmp_dts)return;this.player.emit("core_event",{eventName:Xe.SEI_PAYLOAD_TIME,time:a.rtmp_dts})}catch{}}}],[{key:"pluginName",get:function(){return"hls"}},{key:"isSupported",value:function(e,a){return bo.isSupported(e,a)}}]),n}(Gn);z(ec,"Hls",bo),z(ec,"EVENT",Xe);const Xk="",A7={class:"video-container"},D7={key:0,class:"video-list"},P7=["onClick"],O7={class:"video-item-title"},L7={class:"video-player"},I7={key:0},M7={class:"dialog-footer"},N7={key:0,class:"video-controls"},R7={class:"video-counter"},V7={key:1,class:"spacer"},F7=s.defineComponent({__name:"index",props:{isLive:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},sourceList:{default:null}},setup(o,{expose:r}){const n=o,t=s.ref(!1);s.ref(!1),s.ref(!1);const e=s.ref({fullscreen:!1,switchFullscreen:!0}),a=s.ref(""),i=s.ref(null),l=s.ref(null);s.ref({});const c=s.ref();s.ref(!1);const u=s.computed(()=>{if(typeof n.isLive=="boolean")return n.isLive;if(n.sourceList){let y="";if(typeof n.sourceList=="string")y=n.sourceList;else if(Array.isArray(n.sourceList)&&n.sourceList.length>0){const w=n.sourceList[0];typeof w=="string"?y=w:typeof w=="object"&&w!==null&&w.url&&(y=w.url)}else typeof n.sourceList=="object"&&n.sourceList!==null&&n.sourceList.url&&(y=n.sourceList.url);if(y.includes(".m3u8"))return!0;if(y.includes(".mp4"))return!1}return n.isLive}),d=s.ref([]),f=s.ref(0),h=(y,w)=>{if(typeof y=="string"){const S=y.split("/");return S[S.length-1]||`\u89C6\u9891 ${w+1}`}else if(typeof y=="object"&&y!==null){if(y.title)return y.title;if(y.url){const S=y.url.split("/");return S[S.length-1]||`\u89C6\u9891 ${w+1}`}}return`\u89C6\u9891 ${w+1}`},p=y=>{if(!y){i.value="\u6682\u65E0\u89C6\u9891\u6570\u636E";return}l.value&&(l.value.destroy(),l.value=null);const w=document.getElementById("mse");if(!w)return;const S={id:"mse",url:y,autoplay:n.autoplay,fluid:!0,playsinline:!0,"x5-video-player-type":"h5","x5-video-player-fullscreen":!0,"x5-video-orientation":"portraint",controls:!0,poster:"",playbackRate:!0,lang:"zh-cn",rotate:{clockwise:!1,innerRotate:!0},screenShot:!0,videoAttributes:{crossOrigin:"anonymous"},pip:!0,keyShortcut:!0,closeVideoClick:!1,plugins:[]};(y.includes(".m3u8")||u.value)&&S.plugins.push(ec),w&&(l.value=new zt(S),l.value.on(sn,()=>{}),l.value.on($o,()=>{}),l.value.on(Ra,()=>{}),l.value.on(ci,()=>{}))},v=y=>{if(y<0||y>=d.value.length)return;f.value=y;const w=d.value[y];let S="";typeof w=="string"?S=w:typeof w=="object"&&w!==null&&(S=w.url||""),S&&s.nextTick(()=>{p(S)})},g=y=>{if(t.value=!0,a.value="\u89C6\u9891\u64AD\u653E",!y){i.value="\u6682\u65E0\u89C6\u9891\u6570\u636E";return}if(Array.isArray(y)){if(d.value=y,f.value=0,y.length>0){const w=y[0];let S="";typeof w=="string"?S=w:typeof w=="object"&&w!==null&&(S=w.url||""),S&&s.nextTick(()=>{p(S)})}}else{d.value=[y],f.value=0;let w="";typeof y=="string"?w=y:typeof y=="object"&&y!==null&&(w=y.url||""),w&&s.nextTick(()=>{p(w)})}},m=()=>{t.value=!1};s.onBeforeUnmount(()=>{l.value&&(l.value.destroy(),l.value=null)});const _=()=>{if(!d.value||d.value.length<=1)return;const y=(f.value+1)%d.value.length;v(y)},b=()=>{if(!d.value||d.value.length<=1)return;const y=f.value===0?d.value.length-1:f.value-1;v(y)};return r({showDetail:g,cancel:m,playNext:_,playPrevious:b,playVideoByIndex:v}),(y,w)=>{const S=s.resolveComponent("el-scrollbar"),D=s.resolveComponent("el-card"),C=s.resolveComponent("el-button"),B=s.resolveComponent("el-dialog");return s.openBlock(),s.createBlock(B,{modelValue:t.value,"onUpdate:modelValue":w[0]||(w[0]=A=>t.value=A),title:a.value,width:"80%","close-on-click-modal":!1,fullscreen:e.value.fullscreen,"before-close":m,"destroy-on-close":""},{footer:s.withCtx(()=>[s.createElementVNode("div",M7,[d.value&&d.value.length>1?(s.openBlock(),s.createElementBlock("div",N7,[s.createVNode(C,{onClick:b,disabled:d.value.length<=1},{default:s.withCtx(()=>w[4]||(w[4]=[s.createTextVNode("\u4E0A\u4E00\u4E2A")])),_:1},8,["disabled"]),s.createElementVNode("span",R7,s.toDisplayString(f.value+1)+"/"+s.toDisplayString(d.value.length),1),s.createVNode(C,{onClick:_,disabled:d.value.length<=1},{default:s.withCtx(()=>w[5]||(w[5]=[s.createTextVNode("\u4E0B\u4E00\u4E2A")])),_:1},8,["disabled"])])):(s.openBlock(),s.createElementBlock("div",V7)),s.createVNode(C,{onClick:m},{default:s.withCtx(()=>w[6]||(w[6]=[s.createTextVNode("\u5173\u95ED")])),_:1})])]),default:s.withCtx(()=>[s.createVNode(D,{shadow:"never",class:"video-card"},{default:s.withCtx(()=>[s.createElementVNode("div",A7,[d.value&&d.value.length>1?(s.openBlock(),s.createElementBlock("div",D7,[w[1]||(w[1]=s.createElementVNode("div",{class:"list-title"},"\u64AD\u653E\u5217\u8868",-1)),s.createVNode(S,{height:"calc(100% - 40px)"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d.value,(A,L)=>(s.openBlock(),s.createElementBlock("div",{key:L,class:s.normalizeClass(["video-item",{active:L===f.value}]),onClick:I=>v(L)},[s.createElementVNode("div",O7,s.toDisplayString(h(A,L)),1)],10,P7))),128))]),_:1})])):s.createCommentVNode("",!0),s.createElementVNode("div",L7,[w[2]||(w[2]=s.createElementVNode("div",{class:"prism-player",id:"player-con"},null,-1)),s.createElementVNode("div",{class:"prism-player",ref_key:"playerTemp",ref:c},null,512),w[3]||(w[3]=s.createElementVNode("div",{id:"mse"},null,-1)),!d.value||d.value.length===0?(s.openBlock(),s.createElementBlock("p",I7,s.toDisplayString(i.value),1)):s.createCommentVNode("",!0)])])]),_:1})]),_:1},8,["modelValue","title","fullscreen"])}}}),Jk="",Wh=ot(Ot(F7,[["__scopeId","data-v-ff2620d5"]])),H7={TLayoutPage:Su,TLayoutPageItem:ku,TQueryCondition:Tu,TTable:bd,TForm:Ed,TSelect:Cd,TSelectTable:Td,TDetail:xd,TButton:Bd,TStepWizard:Ad,TTimerBtn:Dd,TModuleForm:Pd,TAdaptivePage:Od,TDatePicker:Ld,TRadio:Id,TCheckbox:Md,TChart:Nd,TTabs:Rd,TSelectIcon:Vd,TInput:Fd,PgzCheckbox:Hd,PgzHtmlPreviewModal:zd,PgzSearchSelect:jd,PgzTdtMark:Gd,PgzVideoXgModal:Wh,PgzTdtPloygon:Wd},Kh={install(o){Object.entries(H7).forEach(([r,n])=>{o.component(r,n)})}};if(typeof window<"u"&&window.Vue){const o=window.Vue,r=o.createApp;o.createApp=function(...n){const t=r.apply(this,n);return Kh.install(t),window.ElementPlus&&t.use(window.ElementPlus),t}}function z7(o){typeof window<"u"&&(window.pgzHttpConfig=window.pgzHttpConfig||{},window.pgzHttpConfig.clientId=o)}Ue.PgzCheckbox=Hd,Ue.PgzHtmlPreviewModal=zd,Ue.PgzSearchSelect=jd,Ue.PgzTdtMark=Gd,Ue.PgzTdtPloygon=Wd,Ue.PgzVideoXgModal=Wh,Ue.TAdaptivePage=Od,Ue.TButton=Bd,Ue.TChart=Nd,Ue.TCheckbox=Md,Ue.TDatePicker=Ld,Ue.TDetail=xd,Ue.TForm=Ed,Ue.TInput=Fd,Ue.TLayoutPage=Su,Ue.TLayoutPageItem=ku,Ue.TModuleForm=Pd,Ue.TQueryCondition=Tu,Ue.TRadio=Id,Ue.TSelect=Cd,Ue.TSelectIcon=Vd,Ue.TSelectTable=Td,Ue.TStepWizard=Ad,Ue.TTable=bd,Ue.TTabs=Rd,Ue.TTimerBtn=Dd,Ue.debounce=fs,Ue.default=Kh,Ue.formatNumber=f0,Ue.setupClientId=z7,Ue.setupHttp=l0,Ue.throttle=u0,Object.defineProperties(Ue,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|