UNPKG

@gdyfe/ssml

Version:
20 lines 234 kB
"use strict";var gd=Object.defineProperty;var md=(e,t,r)=>t in e?gd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var vt=(e,t,r)=>(md(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("vue"),Y=require("@wangeditor/editor"),Bl=require("pinyin-pro"),St=require("element-plus"),yr=require("@element-plus/icons-vue");var Al=!1;function Ru(e,t,r){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,r),r):(e[t]=r,r)}function Zi(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function Dd(){return wl().__VUE_DEVTOOLS_GLOBAL_HOOK__}function wl(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Cd=typeof Proxy=="function",yd="devtools-plugin:setup",Ed="plugin:settings:set";let pr,da;function Bd(){var e;return pr!==void 0||(typeof window<"u"&&window.performance?(pr=!0,da=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(pr=!0,da=global.perf_hooks.performance):pr=!1),pr}function Ad(){return Bd()?da.now():Date.now()}class wd{constructor(t,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=r;const i={};if(t.settings)for(const p in t.settings){const d=t.settings[p];i[p]=d.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let f=Object.assign({},i);try{const p=localStorage.getItem(s),d=JSON.parse(p);Object.assign(f,d)}catch{}this.fallbacks={getSettings(){return f},setSettings(p){try{localStorage.setItem(s,JSON.stringify(p))}catch{}f=p},now(){return Ad()}},r&&r.on(Ed,(p,d)=>{p===this.plugin.id&&this.fallbacks.setSettings(d)}),this.proxiedOn=new Proxy({},{get:(p,d)=>this.target?this.target.on[d]:(...g)=>{this.onQueue.push({method:d,args:g})}}),this.proxiedTarget=new Proxy({},{get:(p,d)=>this.target?this.target[d]:d==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(d)?(...g)=>(this.targetQueue.push({method:d,args:g,resolve:()=>{}}),this.fallbacks[d](...g)):(...g)=>new Promise(m=>{this.targetQueue.push({method:d,args:g,resolve:m})})})}async setRealTarget(t){this.target=t;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function _l(e,t){const r=e,i=wl(),s=Dd(),f=Cd&&r.enableEarlyProxy;if(s&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!f))s.emit(yd,e,t);else{const p=f?new wd(r,s):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:p}),p&&t(p.proxiedTarget)}}/*! * pinia v2.1.6 * (c) 2023 Eduardo San Martin Morote * @license MIT */let Yr;const Er=e=>Yr=e,Fl=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Yn(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Jt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Jt||(Jt={}));const Xu=typeof window<"u",Xr=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&Xu,Ao=(()=>typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null})();function _d(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}function Oa(e,t,r){const i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){Ol(i.response,t,r)},i.onerror=function(){console.error("could not download file")},i.send()}function bl(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function ju(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(r)}}const Mu=typeof navigator=="object"?navigator:{userAgent:""},xl=(()=>/Macintosh/.test(Mu.userAgent)&&/AppleWebKit/.test(Mu.userAgent)&&!/Safari/.test(Mu.userAgent))(),Ol=Xu?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!xl?Fd:"msSaveOrOpenBlob"in Mu?bd:xd:()=>{};function Fd(e,t="download",r){const i=document.createElement("a");i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?bl(i.href)?Oa(e,t,r):(i.target="_blank",ju(i)):ju(i)):(i.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(i.href)},4e4),setTimeout(function(){ju(i)},0))}function bd(e,t="download",r){if(typeof e=="string")if(bl(e))Oa(e,t,r);else{const i=document.createElement("a");i.href=e,i.target="_blank",setTimeout(function(){ju(i)})}else navigator.msSaveOrOpenBlob(_d(e,r),t)}function xd(e,t,r,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),typeof e=="string")return Oa(e,t,r);const s=e.type==="application/octet-stream",f=/constructor/i.test(String(Ao.HTMLElement))||"safari"in Ao,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||s&&f||xl)&&typeof FileReader<"u"){const d=new FileReader;d.onloadend=function(){let g=d.result;if(typeof g!="string")throw i=null,new Error("Wrong reader.result type");g=p?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=g:location.assign(g),i=null},d.readAsDataURL(e)}else{const d=URL.createObjectURL(e);i?i.location.assign(d):location.href=d,i=null,setTimeout(function(){URL.revokeObjectURL(d)},4e4)}}function Ke(e,t){const r="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(r,t):t==="error"?console.error(r):t==="warn"?console.warn(r):console.log(r)}function Sa(e){return"_a"in e&&"install"in e}function Sl(){if(!("clipboard"in navigator))return Ke("Your browser doesn't support the Clipboard API","error"),!0}function Nl(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(Ke('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Od(e){if(!Sl())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),Ke("Global state copied to clipboard.")}catch(t){if(Nl(t))return;Ke("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function Sd(e){if(!Sl())try{Tl(e,JSON.parse(await navigator.clipboard.readText())),Ke("Global state pasted from clipboard.")}catch(t){if(Nl(t))return;Ke("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Nd(e){try{Ol(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){Ke("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let an;function Td(){an||(an=document.createElement("input"),an.type="file",an.accept=".json");function e(){return new Promise((t,r)=>{an.onchange=async()=>{const i=an.files;if(!i)return t(null);const s=i.item(0);return t(s?{text:await s.text(),file:s}:null)},an.oncancel=()=>t(null),an.onerror=r,an.click()})}return e}async function Pd(e){try{const r=await Td()();if(!r)return;const{text:i,file:s}=r;Tl(e,JSON.parse(i)),Ke(`Global state imported from "${s.name}".`)}catch(t){Ke("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Tl(e,t){for(const r in t){const i=e.state.value[r];i&&Object.assign(i,t[r])}}function jt(e){return{_custom:{display:e}}}const Pl="🍍 Pinia (root)",ha="_root";function kd(e){return Sa(e)?{id:ha,label:Pl}:{id:e.$id,label:e.$id}}function $d(e){if(Sa(e)){const r=Array.from(e._s.keys()),i=e._s;return{state:r.map(f=>({editable:!0,key:f,value:e.state.value[f]})),getters:r.filter(f=>i.get(f)._getters).map(f=>{const p=i.get(f);return{editable:!1,key:f,value:p._getters.reduce((d,g)=>(d[g]=p[g],d),{})}})}}const t={state:Object.keys(e.$state).map(r=>({editable:!0,key:r,value:e.$state[r]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(r=>({editable:!1,key:r,value:e[r]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(r=>({editable:!0,key:r,value:e[r]}))),t}function Id(e){return e?Array.isArray(e)?e.reduce((t,r)=>(t.keys.push(r.key),t.operations.push(r.type),t.oldValue[r.key]=r.oldValue,t.newValue[r.key]=r.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:jt(e.type),key:jt(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Rd(e){switch(e){case Jt.direct:return"mutation";case Jt.patchFunction:return"$patch";case Jt.patchObject:return"$patch";default:return"unknown"}}let gr=!0;const Vu=[],Gn="pinia:mutations",nt="pinia",{assign:Ld}=Object,Hu=e=>"🍍 "+e;function jd(e,t){_l({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Vu,app:e},r=>{typeof r.now!="function"&&Ke("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),r.addTimelineLayer({id:Gn,label:"Pinia 🍍",color:15064968}),r.addInspector({id:nt,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Od(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Sd(t),r.sendInspectorTree(nt),r.sendInspectorState(nt)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Nd(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Pd(t),r.sendInspectorTree(nt),r.sendInspectorState(nt)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:i=>{const s=t._s.get(i);s?typeof s.$reset!="function"?Ke(`Cannot reset "${i}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),Ke(`Store "${i}" reset.`)):Ke(`Cannot reset "${i}" store because it wasn't found.`,"warn")}}]}),r.on.inspectComponent((i,s)=>{const f=i.componentInstance&&i.componentInstance.proxy;if(f&&f._pStores){const p=i.componentInstance.proxy._pStores;Object.values(p).forEach(d=>{i.instanceData.state.push({type:Hu(d.$id),key:"state",editable:!0,value:d._isOptionsAPI?{_custom:{value:v.toRaw(d.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>d.$reset()}]}}:Object.keys(d.$state).reduce((g,m)=>(g[m]=d.$state[m],g),{})}),d._getters&&d._getters.length&&i.instanceData.state.push({type:Hu(d.$id),key:"getters",editable:!1,value:d._getters.reduce((g,m)=>{try{g[m]=d[m]}catch(w){g[m]=w}return g},{})})})}}),r.on.getInspectorTree(i=>{if(i.app===e&&i.inspectorId===nt){let s=[t];s=s.concat(Array.from(t._s.values())),i.rootNodes=(i.filter?s.filter(f=>"$id"in f?f.$id.toLowerCase().includes(i.filter.toLowerCase()):Pl.toLowerCase().includes(i.filter.toLowerCase())):s).map(kd)}}),r.on.getInspectorState(i=>{if(i.app===e&&i.inspectorId===nt){const s=i.nodeId===ha?t:t._s.get(i.nodeId);if(!s)return;s&&(i.state=$d(s))}}),r.on.editInspectorState((i,s)=>{if(i.app===e&&i.inspectorId===nt){const f=i.nodeId===ha?t:t._s.get(i.nodeId);if(!f)return Ke(`store "${i.nodeId}" not found`,"error");const{path:p}=i;Sa(f)?p.unshift("state"):(p.length!==1||!f._customProperties.has(p[0])||p[0]in f.$state)&&p.unshift("$state"),gr=!1,i.set(f,p,i.state.value),gr=!0}}),r.on.editComponentState(i=>{if(i.type.startsWith("🍍")){const s=i.type.replace(/^🍍\s*/,""),f=t._s.get(s);if(!f)return Ke(`store "${s}" not found`,"error");const{path:p}=i;if(p[0]!=="state")return Ke(`Invalid path for store "${s}": ${p} Only state can be modified.`);p[0]="$state",gr=!1,i.set(f,p,i.state.value),gr=!0}})})}function Md(e,t){Vu.includes(Hu(t.$id))||Vu.push(Hu(t.$id)),_l({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Vu,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},r=>{const i=typeof r.now=="function"?r.now.bind(r):Date.now;t.$onAction(({after:p,onError:d,name:g,args:m})=>{const w=kl++;r.addTimelineEvent({layerId:Gn,event:{time:i(),title:"🛫 "+g,subtitle:"start",data:{store:jt(t.$id),action:jt(g),args:m},groupId:w}}),p(A=>{An=void 0,r.addTimelineEvent({layerId:Gn,event:{time:i(),title:"🛬 "+g,subtitle:"end",data:{store:jt(t.$id),action:jt(g),args:m,result:A},groupId:w}})}),d(A=>{An=void 0,r.addTimelineEvent({layerId:Gn,event:{time:i(),logType:"error",title:"💥 "+g,subtitle:"end",data:{store:jt(t.$id),action:jt(g),args:m,error:A},groupId:w}})})},!0),t._customProperties.forEach(p=>{v.watch(()=>v.unref(t[p]),(d,g)=>{r.notifyComponentUpdate(),r.sendInspectorState(nt),gr&&r.addTimelineEvent({layerId:Gn,event:{time:i(),title:"Change",subtitle:p,data:{newValue:d,oldValue:g},groupId:An}})},{deep:!0})}),t.$subscribe(({events:p,type:d},g)=>{if(r.notifyComponentUpdate(),r.sendInspectorState(nt),!gr)return;const m={time:i(),title:Rd(d),data:Ld({store:jt(t.$id)},Id(p)),groupId:An};d===Jt.patchFunction?m.subtitle="⤵️":d===Jt.patchObject?m.subtitle="🧩":p&&!Array.isArray(p)&&(m.subtitle=p.type),p&&(m.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:p}}),r.addTimelineEvent({layerId:Gn,event:m})},{detached:!0,flush:"sync"});const s=t._hotUpdate;t._hotUpdate=v.markRaw(p=>{s(p),r.addTimelineEvent({layerId:Gn,event:{time:i(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:jt(t.$id),info:jt("HMR update")}}}),r.notifyComponentUpdate(),r.sendInspectorTree(nt),r.sendInspectorState(nt)});const{$dispose:f}=t;t.$dispose=()=>{f(),r.notifyComponentUpdate(),r.sendInspectorTree(nt),r.sendInspectorState(nt),r.getSettings().logStoreChanges&&Ke(`Disposed "${t.$id}" store 🗑`)},r.notifyComponentUpdate(),r.sendInspectorTree(nt),r.sendInspectorState(nt),r.getSettings().logStoreChanges&&Ke(`"${t.$id}" store installed 🆕`)})}let kl=0,An;function wo(e,t,r){const i=t.reduce((s,f)=>(s[f]=v.toRaw(e)[f],s),{});for(const s in i)e[s]=function(){const f=kl,p=r?new Proxy(e,{get(...g){return An=f,Reflect.get(...g)},set(...g){return An=f,Reflect.set(...g)}}):e;An=f;const d=i[s].apply(p,arguments);return An=void 0,d}}function Vd({app:e,store:t,options:r}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!r.state,wo(t,Object.keys(r.actions),t._isOptionsAPI);const i=t._hotUpdate;v.toRaw(t)._hotUpdate=function(s){i.apply(this,arguments),wo(t,Object.keys(s._hmrPayload.actions),!!t._isOptionsAPI)},Md(e,t)}function zd(){const e=v.effectScope(!0),t=e.run(()=>v.ref({}));let r=[],i=[];const s=v.markRaw({install(f){Er(s),s._a=f,f.provide(Fl,s),f.config.globalProperties.$pinia=s,Xr&&jd(f,s),i.forEach(p=>r.push(p)),i=[]},use(f){return!this._a&&!Al?i.push(f):r.push(f),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return Xr&&typeof Proxy<"u"&&s.use(Vd),s}function $l(e,t){for(const r in t){const i=t[r];if(!(r in e))continue;const s=e[r];Yn(s)&&Yn(i)&&!v.isRef(i)&&!v.isReactive(i)?e[r]=$l(s,i):e[r]=i}return e}const Il=()=>{};function _o(e,t,r,i=Il){e.push(t);const s=()=>{const f=e.indexOf(t);f>-1&&(e.splice(f,1),i())};return!r&&v.getCurrentScope()&&v.onScopeDispose(s),s}function dr(e,...t){e.slice().forEach(r=>{r(...t)})}const qd=e=>e();function va(e,t){e instanceof Map&&t instanceof Map&&t.forEach((r,i)=>e.set(i,r)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const i=t[r],s=e[r];Yn(s)&&Yn(i)&&e.hasOwnProperty(r)&&!v.isRef(i)&&!v.isReactive(i)?e[r]=va(s,i):e[r]=i}return e}const Hd=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Ud(e){return!Yn(e)||!e.hasOwnProperty(Hd)}const{assign:bt}=Object;function Fo(e){return!!(v.isRef(e)&&e.effect)}function bo(e,t,r,i){const{state:s,actions:f,getters:p}=t,d=r.state.value[e];let g;function m(){!d&&(process.env.NODE_ENV==="production"||!i)&&(r.state.value[e]=s?s():{});const w=process.env.NODE_ENV!=="production"&&i?v.toRefs(v.ref(s?s():{}).value):v.toRefs(r.state.value[e]);return bt(w,f,Object.keys(p||{}).reduce((A,y)=>(process.env.NODE_ENV!=="production"&&y in w&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${y}" in store "${e}".`),A[y]=v.markRaw(v.computed(()=>{Er(r);const P=r._s.get(e);return p[y].call(P,P)})),A),{}))}return g=ga(e,m,t,r,i,!0),g}function ga(e,t,r={},i,s,f){let p;const d=bt({actions:{}},r);if(process.env.NODE_ENV!=="production"&&!i._e.active)throw new Error("Pinia destroyed");const g={deep:!0};process.env.NODE_ENV!=="production"&&!Al&&(g.onTrigger=k=>{m?P=k:m==!1&&!T._hotUpdating&&(Array.isArray(P)?P.push(k):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let m,w,A=[],y=[],P;const F=i.state.value[e];!f&&!F&&(process.env.NODE_ENV==="production"||!s)&&(i.state.value[e]={});const _=v.ref({});let L;function z(k){let q;m=w=!1,process.env.NODE_ENV!=="production"&&(P=[]),typeof k=="function"?(k(i.state.value[e]),q={type:Jt.patchFunction,storeId:e,events:P}):(va(i.state.value[e],k),q={type:Jt.patchObject,payload:k,storeId:e,events:P});const Q=L=Symbol();v.nextTick().then(()=>{L===Q&&(m=!0)}),w=!0,dr(A,q,i.state.value[e])}const H=f?function(){const{state:q}=r,Q=q?q():{};this.$patch(se=>{bt(se,Q)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Il;function N(){p.stop(),A=[],y=[],i._s.delete(e)}function S(k,q){return function(){Er(i);const Q=Array.from(arguments),se=[],he=[];function Be(xe){se.push(xe)}function Xe(xe){he.push(xe)}dr(y,{args:Q,name:k,store:T,after:Be,onError:Xe});let Ne;try{Ne=q.apply(this&&this.$id===e?this:T,Q)}catch(xe){throw dr(he,xe),xe}return Ne instanceof Promise?Ne.then(xe=>(dr(se,xe),xe)).catch(xe=>(dr(he,xe),Promise.reject(xe))):(dr(se,Ne),Ne)}}const R=v.markRaw({actions:{},getters:{},state:[],hotState:_}),M={_p:i,$id:e,$onAction:_o.bind(null,y),$patch:z,$reset:H,$subscribe(k,q={}){const Q=_o(A,k,q.detached,()=>se()),se=p.run(()=>v.watch(()=>i.state.value[e],he=>{(q.flush==="sync"?w:m)&&k({storeId:e,type:Jt.direct,events:P},he)},bt({},g,q)));return Q},$dispose:N},T=v.reactive(process.env.NODE_ENV!=="production"||Xr?bt({_hmrPayload:R,_customProperties:v.markRaw(new Set)},M):M);i._s.set(e,T);const G=i._a&&i._a.runWithContext||qd,X=i._e.run(()=>(p=v.effectScope(),G(()=>p.run(t))));for(const k in X){const q=X[k];if(v.isRef(q)&&!Fo(q)||v.isReactive(q))process.env.NODE_ENV!=="production"&&s?Ru(_.value,k,v.toRef(X,k)):f||(F&&Ud(q)&&(v.isRef(q)?q.value=F[k]:va(q,F[k])),i.state.value[e][k]=q),process.env.NODE_ENV!=="production"&&R.state.push(k);else if(typeof q=="function"){const Q=process.env.NODE_ENV!=="production"&&s?q:S(k,q);X[k]=Q,process.env.NODE_ENV!=="production"&&(R.actions[k]=q),d.actions[k]=q}else process.env.NODE_ENV!=="production"&&Fo(q)&&(R.getters[k]=f?r.getters[k]:q,Xu&&(X._getters||(X._getters=v.markRaw([]))).push(k))}if(bt(T,X),bt(v.toRaw(T),X),Object.defineProperty(T,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?_.value:i.state.value[e],set:k=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");z(q=>{bt(q,k)})}}),process.env.NODE_ENV!=="production"&&(T._hotUpdate=v.markRaw(k=>{T._hotUpdating=!0,k._hmrPayload.state.forEach(q=>{if(q in T.$state){const Q=k.$state[q],se=T.$state[q];typeof Q=="object"&&Yn(Q)&&Yn(se)?$l(Q,se):k.$state[q]=se}Ru(T,q,v.toRef(k.$state,q))}),Object.keys(T.$state).forEach(q=>{q in k.$state||Zi(T,q)}),m=!1,w=!1,i.state.value[e]=v.toRef(k._hmrPayload,"hotState"),w=!0,v.nextTick().then(()=>{m=!0});for(const q in k._hmrPayload.actions){const Q=k[q];Ru(T,q,S(q,Q))}for(const q in k._hmrPayload.getters){const Q=k._hmrPayload.getters[q],se=f?v.computed(()=>(Er(i),Q.call(T,T))):Q;Ru(T,q,se)}Object.keys(T._hmrPayload.getters).forEach(q=>{q in k._hmrPayload.getters||Zi(T,q)}),Object.keys(T._hmrPayload.actions).forEach(q=>{q in k._hmrPayload.actions||Zi(T,q)}),T._hmrPayload=k._hmrPayload,T._getters=k._getters,T._hotUpdating=!1})),Xr){const k={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(q=>{Object.defineProperty(T,q,bt({value:T[q]},k))})}return i._p.forEach(k=>{if(Xr){const q=p.run(()=>k({store:T,app:i._a,pinia:i,options:d}));Object.keys(q||{}).forEach(Q=>T._customProperties.add(Q)),bt(T,q)}else bt(T,p.run(()=>k({store:T,app:i._a,pinia:i,options:d})))}),process.env.NODE_ENV!=="production"&&T.$state&&typeof T.$state=="object"&&typeof T.$state.constructor=="function"&&!T.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be state: () => new MyClass() Found in store "${T.$id}".`),F&&f&&r.hydrate&&r.hydrate(T.$state,F),m=!0,w=!0,T}function Wd(e,t,r){let i,s;const f=typeof t=="function";if(typeof e=="string")i=e,s=f?r:t;else if(s=e,i=e.id,process.env.NODE_ENV!=="production"&&typeof i!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function p(d,g){const m=v.hasInjectionContext();if(d=(process.env.NODE_ENV==="test"&&Yr&&Yr._testing?null:d)||(m?v.inject(Fl,null):null),d&&Er(d),process.env.NODE_ENV!=="production"&&!Yr)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia? const pinia = createPinia() app.use(pinia) This will fail in production.`);d=Yr,d._s.has(i)||(f?ga(i,t,s,d):bo(i,s,d),process.env.NODE_ENV!=="production"&&(p._pinia=d));const w=d._s.get(i);if(process.env.NODE_ENV!=="production"&&g){const A="__hot:"+i,y=f?ga(A,t,s,d,!0):bo(A,bt({},s),d,!0);g._hotUpdate(y),delete d.state.value[A],d._s.delete(A)}if(process.env.NODE_ENV!=="production"&&Xu){const A=v.getCurrentInstance();if(A&&A.proxy&&!g){const y=A.proxy,P="_pStores"in y?y._pStores:y._pStores={};P[i]=w}}return w}return p.$id=i,p}function ma(e,t,r,i,s){const f=t===void 0?void 0:t.key;return{sel:e,data:t,children:r,text:i,elm:s,key:f}}const xo=Array.isArray;function Qi(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function Rl(e,t,r){if(e.ns="http://www.w3.org/2000/svg",r!=="foreignObject"&&t!==void 0)for(let i=0;i<t.length;++i){const s=t[i];if(typeof s=="string")continue;const f=s.data;f!==void 0&&Rl(f,s.children,s.sel)}}function Oo(e,t,r){let i={},s,f,p;if(r!==void 0?(t!==null&&(i=t),xo(r)?s=r:Qi(r)?f=r.toString():r&&r.sel&&(s=[r])):t!=null&&(xo(t)?s=t:Qi(t)?f=t.toString():t&&t.sel?s=[t]:i=t),s!==void 0)for(p=0;p<s.length;++p)Qi(s[p])&&(s[p]=ma(void 0,void 0,void 0,s[p],void 0));return e[0]==="s"&&e[1]==="v"&&e[2]==="g"&&(e.length===3||e[3]==="."||e[3]==="#")&&Rl(i,s,e),ma(e,i,s,f,void 0)}function Ll(e,t){for(const r of e)r!=null&&r!==!1&&r!==""&&(Array.isArray(r)?Ll(r,t):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?t.push(ma(void 0,void 0,void 0,String(r),void 0)):t.push(r));return t}function te(e,t,...r){const i=Ll(r,[]);return typeof e=="function"?e(t,i):i.length===1&&!i[0].sel&&i[0].text?Oo(e,t,i[0].text):Oo(e,t,i)}te||(te={});function Cr(e){if(e)return{emit:e.emit,off:e.off,on:e.on,once:e.once}}var st=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jl="Expected a function",So=0/0,Gd="[object Symbol]",Kd=/^\s+|\s+$/g,Yd=/^[-+]0x[0-9a-f]+$/i,Jd=/^0b[01]+$/i,Xd=/^0o[0-7]+$/i,Zd=parseInt,Qd=typeof st=="object"&&st&&st.Object===Object&&st,eh=typeof self=="object"&&self&&self.Object===Object&&self,th=Qd||eh||Function("return this")(),nh=Object.prototype,rh=nh.toString,uh=Math.max,ih=Math.min,ea=function(){return th.Date.now()};function ah(e,t,r){var i,s,f,p,d,g,m=0,w=!1,A=!1,y=!0;if(typeof e!="function")throw new TypeError(jl);t=No(t)||0,Uu(r)&&(w=!!r.leading,A="maxWait"in r,f=A?uh(No(r.maxWait)||0,t):f,y="trailing"in r?!!r.trailing:y);function P(M){var T=i,G=s;return i=s=void 0,m=M,p=e.apply(G,T),p}function F(M){return m=M,d=setTimeout(z,t),w?P(M):p}function _(M){var T=M-g,G=M-m,X=t-T;return A?ih(X,f-G):X}function L(M){var T=M-g,G=M-m;return g===void 0||T>=t||T<0||A&&G>=f}function z(){var M=ea();if(L(M))return H(M);d=setTimeout(z,_(M))}function H(M){return d=void 0,y&&i?P(M):(i=s=void 0,p)}function N(){d!==void 0&&clearTimeout(d),m=0,i=g=s=d=void 0}function S(){return d===void 0?p:H(ea())}function R(){var M=ea(),T=L(M);if(i=arguments,s=this,g=M,T){if(d===void 0)return F(g);if(A)return d=setTimeout(z,t),P(g)}return d===void 0&&(d=setTimeout(z,t)),p}return R.cancel=N,R.flush=S,R}function sh(e,t,r){var i=!0,s=!0;if(typeof e!="function")throw new TypeError(jl);return Uu(r)&&(i="leading"in r?!!r.leading:i,s="trailing"in r?!!r.trailing:s),ah(e,t,{leading:i,maxWait:t,trailing:s})}function Uu(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function oh(e){return!!e&&typeof e=="object"}function lh(e){return typeof e=="symbol"||oh(e)&&rh.call(e)==Gd}function No(e){if(typeof e=="number")return e;if(lh(e))return So;if(Uu(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Uu(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Kd,"");var r=Jd.test(e);return r||Xd.test(e)?Zd(e.slice(2),r?2:8):Yd.test(e)?So:+e}var fh=sh;const wr=tu(fh);function To(e,t){Y.SlateEditor.withoutNormalizing(e,()=>{const r=Y.SlateEditor.start(e,t),i=Y.SlateEditor.end(e,t);Y.SlateTransforms.insertText(e," ",{at:r}),Y.SlateTransforms.insertText(e," ",{at:{path:i.path,offset:i.offset+1}}),Y.SlateTransforms.select(e,{anchor:{path:r.path,offset:r.offset+1},focus:{path:i.path,offset:i.offset+1}})})}function ch(e,t){Y.SlateEditor.withoutNormalizing(e,()=>{const r=Y.SlateEditor.before(e,t),i=Y.SlateEditor.after(e,t);if(!r||!i)return;const s={anchor:{path:r.path,offset:r.offset-1},focus:{path:r.path,offset:r.offset}},f={anchor:{path:i.path,offset:i.offset},focus:{path:i.path,offset:i.offset+1}};Y.SlateEditor.string(e,s)===" "&&Y.SlateTransforms.delete(e,{at:s}),Y.SlateEditor.string(e,f)===" "&&Y.SlateTransforms.delete(e,{at:f})})}function Ml(e,t){return wr(r=>{r.preventDefault();const i=Y.DomEditor.findPath(e,t);Y.SlateTransforms.delete(e,{at:i})})}function nu(e,t){return wr(r=>{r.preventDefault();const i=Y.DomEditor.findPath(e,t);ch(e,i),Y.SlateTransforms.unwrapNodes(e,{at:i})})}function _r(e,t){return wr(r=>{r.preventDefault(),e.isFocused()||e.focus(),e.select(Y.DomEditor.findPath(e,t)),Cr(e).emit("ssml-remark-click",e,t)})}const Da={"200ms":"换气","500ms":"0.5s","1000ms":"1s","2000ms":"2s"},ph=Object.entries(Da).map(([e,t])=>({value:e,label:t}));function dh(e){if(e in Da)return Da[e];const t=parseInt(e);return isNaN(t)?e:`${(t/1e3).toFixed(1)}s`}const hh={type:"ssml-break",renderElem:(e,t,r)=>{const i=e,s=dh((i==null?void 0:i.time)||"");return te("span",{className:"ssml-wrapper",contentEditable:"false"},te("span",{className:"remark",style:{"background-color":"var(--ssml-break)"},on:{mousedown:f=>f.preventDefault(),click:[_r(r,i)]}},te("span",{className:"iconfont icon-roundclosefill",on:{click:[Ml(r,i)]}}),te("span",{className:"data-content",attrs:{"data-content":s}})),te("span",{className:"iconfont icon-tingdun",style:{color:"var(--ssml-break)"}}))}},xt={type:"ssml-break",elTypeAttrName:"data-w-e-type",timeAttrName:"time",strengthAttrName:"data-strength"},vh=e=>{const{isInline:t,isVoid:r}=e,i=e;return i.isInline=s=>Y.DomEditor.getNodeType(s)===xt.type?!0:t(s),i.isVoid=s=>Y.DomEditor.getNodeType(s)===xt.type?!0:r(s),i},gh={type:xt.type,elemToHtml:e=>{const{time:t="",strength:r}=e,i=`${xt.elTypeAttrName}="${xt.type}"`,s=t?` ${xt.timeAttrName}="${t}"`:"",f=r?` ${xt.strengthAttrName}="${r}"`:"";return`<span ${i}${s}${f} data-w-e-is-void data-w-e-is-inline></span>`}},mh={selector:`span[${xt.elTypeAttrName}="${xt.type}"]`,parseElemHtml:e=>{const t=e.getAttribute(xt.strengthAttrName)||"",r=e.getAttribute(xt.timeAttrName)||"";return{type:xt.type,time:r,strength:t,children:[{text:""}]}}},Dh={editorPlugin:vh,elemsToHtml:[gh],parseElemsHtml:[mh],renderElems:[hh]};var Wu={exports:{}};/** * @license * lodash 3.10.1 (Custom Build) <https://lodash.com/> * Build: `lodash modern -d -o ./index.js` * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <https://lodash.com/license> */Wu.exports;(function(e,t){(function(){var r,i="3.10.1",s=1,f=2,p=4,d=8,g=16,m=32,w=64,A=128,y=256,P=30,F="...",_=150,L=16,z=200,H=1,N=2,S="Expected a function",R="__lodash_placeholder__",M="[object Arguments]",T="[object Array]",G="[object Boolean]",X="[object Date]",k="[object Error]",q="[object Function]",Q="[object Map]",se="[object Number]",he="[object Object]",Be="[object RegExp]",Xe="[object Set]",Ne="[object String]",xe="[object WeakMap]",Me="[object ArrayBuffer]",Et="[object Float32Array]",gt="[object Float64Array]",Ue="[object Int8Array]",le="[object Int16Array]",de="[object Int32Array]",Le="[object Uint8Array]",Te="[object Uint8ClampedArray]",ot="[object Uint16Array]",Ze="[object Uint32Array]",lt=/\b__p \+= '';/g,Zt=/\b(__p \+=) '' \+/g,bn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,cn=/&(?:amp|lt|gt|quot|#39|#96);/g,pn=/[&<>"'`]/g,br=RegExp(cn.source),xr=RegExp(pn.source),Or=/<%-([\s\S]+?)%>/g,Sr=/<%([\s\S]+?)%>/g,xn=/<%=([\s\S]+?)%>/g,Nr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,Mt=/^\w*$/,Qt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,ft=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,ct=RegExp(ft.source),On=/[\u0300-\u036f\ufe20-\ufe23]/g,Bt=/\\(\\)?/g,Vt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Sn=/\w*$/,mt=/^0[xX]/,en=/^\[object .+?Constructor\]$/,Nn=/^\d+$/,At=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,tn=/($^)/,er=/['\n\r\u2028\u2029\\]/g,Tn=function(){var $="[A-Z\\xc0-\\xd6\\xd8-\\xde]",K="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp($+"+(?="+$+K+")|"+$+"?"+K+"|"+$+"+|[0-9]+","g")}(),Tr=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],Nt=-1,ve={};ve[Et]=ve[gt]=ve[Ue]=ve[le]=ve[de]=ve[Le]=ve[Te]=ve[ot]=ve[Ze]=!0,ve[M]=ve[T]=ve[Me]=ve[G]=ve[X]=ve[k]=ve[q]=ve[Q]=ve[se]=ve[he]=ve[Be]=ve[Xe]=ve[Ne]=ve[xe]=!1;var Ce={};Ce[M]=Ce[T]=Ce[Me]=Ce[G]=Ce[X]=Ce[Et]=Ce[gt]=Ce[Ue]=Ce[le]=Ce[de]=Ce[se]=Ce[he]=Ce[Be]=Ce[Ne]=Ce[Le]=Ce[Te]=Ce[ot]=Ce[Ze]=!0,Ce[k]=Ce[q]=Ce[Q]=Ce[Xe]=Ce[xe]=!1;var tr={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss"},Pr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},uu={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},dn={function:!0,object:!0},Qu={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},zt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pn=t&&!t.nodeType&&t,kn=e&&!e.nodeType&&e,ei=Pn&&kn&&typeof st=="object"&&st&&st.Object&&st,ti=dn[typeof self]&&self&&self.Object&&self,iu=dn[typeof window]&&window&&window.Object&&window,Tt=kn&&kn.exports===Pn&&Pn,Pt=ei||iu!==(this&&this.window)&&iu||ti||this;function kr($,K){if($!==K){var ae=$===null,ge=$===r,me=$===$,Ie=K===null,wt=K===r,He=K===K;if($>K&&!Ie||!me||ae&&!wt&&He||ge&&He)return 1;if($<K&&!ae||!He||Ie&&!ge&&me||wt&&me)return-1}return 0}function au($,K,ae){for(var ge=$.length,me=ae?ge:-1;ae?me--:++me<ge;)if(K($[me],me,$))return me;return-1}function hn($,K,ae){if(K!==K)return lu($,ae);for(var ge=ae-1,me=$.length;++ge<me;)if($[ge]===K)return ge;return-1}function ni($){return typeof $=="function"||!1}function Ae($){return $==null?"":$+""}function su($,K){for(var ae=-1,ge=$.length;++ae<ge&&K.indexOf($.charAt(ae))>-1;);return ae}function ou($,K){for(var ae=$.length;ae--&&K.indexOf($.charAt(ae))>-1;);return ae}function ri($,K){return kr($.criteria,K.criteria)||$.index-K.index}function ui($,K,ae){for(var ge=-1,me=$.criteria,Ie=K.criteria,wt=me.length,He=ae.length;++ge<wt;){var _t=kr(me[ge],Ie[ge]);if(_t){if(ge>=He)return _t;var In=ae[ge];return _t*(In==="asc"||In===!0?1:-1)}}return $.index-K.index}function ii($){return tr[$]}function vn($){return Pr[$]}function ai($,K,ae){return K?$=Qu[$]:ae&&($=zt[$]),"\\"+$}function si($){return"\\"+zt[$]}function lu($,K,ae){for(var ge=$.length,me=K+(ae?0:-1);ae?me--:++me<ge;){var Ie=$[me];if(Ie!==Ie)return me}return-1}function Ve($){return!!$&&typeof $=="object"}function fu($){return $<=160&&$>=9&&$<=13||$==32||$==160||$==5760||$==6158||$>=8192&&($<=8202||$==8232||$==8233||$==8239||$==8287||$==12288||$==65279)}function gn($,K){for(var ae=-1,ge=$.length,me=-1,Ie=[];++ae<ge;)$[ae]===K&&($[ae]=R,Ie[++me]=ae);return Ie}function $r($,K){for(var ae,ge=-1,me=$.length,Ie=-1,wt=[];++ge<me;){var He=$[ge],_t=K?K(He,ge,$):He;(!ge||ae!==_t)&&(ae=_t,wt[++Ie]=He)}return wt}function cu($){for(var K=-1,ae=$.length;++K<ae&&fu($.charCodeAt(K)););return K}function $n($){for(var K=$.length;K--&&fu($.charCodeAt(K)););return K}function Ir($){return uu[$]}function pu($){$=$?kt.defaults(Pt.Object(),$,kt.pick(Pt,Tr)):Pt;var K=$.Array,ae=$.Date,ge=$.Error,me=$.Function,Ie=$.Math,wt=$.Number,He=$.Object,_t=$.RegExp,In=$.String,pt=$.TypeError,du=K.prototype,Rr=He.prototype,oi=In.prototype,hu=me.prototype.toString,Pe=Rr.hasOwnProperty,Lr=0,ut=Rr.toString,li=Pt._,vu=_t("^"+hu.call(Pe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fi=$.ArrayBuffer,Rn=$.clearTimeout,ci=$.parseFloat,gu=Ie.pow,pi=Rr.propertyIsEnumerable,mu=fr($,"Set"),nr=$.setTimeout,rr=du.splice,Du=$.Uint8Array,Cu=fr($,"WeakMap"),ur=Ie.ceil,Ln=fr(He,"create"),$t=Ie.floor,jr=fr(K,"isArray"),qt=$.isFinite,yu=fr(He,"keys"),ze=Ie.max,We=Ie.min,Eu=fr(ae,"now"),nn=$.parseInt,mn=Ie.random,di=wt.NEGATIVE_INFINITY,jn=wt.POSITIVE_INFINITY,ir=4294967295,Bu=ir-1,hi=ir>>>1,Au=9007199254740991,Mn=Cu&&new Cu,ar={};function l(n){if(Ve(n)&&!oe(n)&&!(n instanceof j)){if(n instanceof O)return n;if(Pe.call(n,"__chain__")&&Pe.call(n,"__wrapped__"))return js(n)}return new O(n)}function B(){}function O(n,u,a){this.__wrapped__=n,this.__actions__=a||[],this.__chain__=!!u}l.support={},l.templateSettings={escape:Or,evaluate:Sr,interpolate:xn,variable:"",imports:{_:l}};function j(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=jn,this.__views__=[]}function fe(){var n=new j(this.__wrapped__);return n.__actions__=at(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=at(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=at(this.__views__),n}function De(){if(this.__filtered__){var n=new j(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function we(){var n=this.__wrapped__.value(),u=this.__dir__,a=oe(n),o=u<0,c=a?n.length:0,h=xf(0,c,this.__views__),D=h.start,E=h.end,b=E-D,I=o?E:D-1,V=this.__iteratees__,U=V.length,ee=0,Z=We(b,this.__takeCount__);if(!a||c<z||c==b&&Z==b)return os(o&&a?n.reverse():n,this.__actions__);var Ee=[];e:for(;b--&&ee<Z;){I+=u;for(var Fe=-1,je=n[I];++Fe<U;){var Ge=V[Fe],qe=Ge.iteratee,et=Ge.type,be=qe(je);if(et==N)je=be;else if(!be){if(et==H)continue e;break e}}Ee[ee++]=je}return Ee}function ie(){this.__data__={}}function _e(n){return this.has(n)&&delete this.__data__[n]}function dt(n){return n=="__proto__"?r:this.__data__[n]}function it(n){return n!="__proto__"&&Pe.call(this.__data__,n)}function Vn(n,u){return n!="__proto__"&&(this.__data__[n]=u),this}function sr(n){var u=n?n.length:0;for(this.data={hash:Ln(null),set:new mu};u--;)this.push(n[u])}function Dn(n,u){var a=n.data,o=typeof u=="string"||$e(u)?a.set.has(u):a.hash[u];return o?0:-1}function wu(n){var u=this.data;typeof n=="string"||$e(n)?u.set.add(n):u.hash[n]=!0}function of(n,u){for(var a=-1,o=n.length,c=-1,h=u.length,D=K(o+h);++a<o;)D[a]=n[a];for(;++c<h;)D[a++]=u[c];return D}function at(n,u){var a=-1,o=n.length;for(u||(u=K(o));++a<o;)u[a]=n[a];return u}function It(n,u){for(var a=-1,o=n.length;++a<o&&u(n[a],a,n)!==!1;);return n}function lf(n,u){for(var a=n.length;a--&&u(n[a],a,n)!==!1;);return n}function Ha(n,u){for(var a=-1,o=n.length;++a<o;)if(!u(n[a],a,n))return!1;return!0}function ff(n,u,a,o){for(var c=-1,h=n.length,D=o,E=D;++c<h;){var b=n[c],I=+u(b);a(I,D)&&(D=I,E=b)}return E}function vi(n,u){for(var a=-1,o=n.length,c=-1,h=[];++a<o;){var D=n[a];u(D,a,n)&&(h[++c]=D)}return h}function or(n,u){for(var a=-1,o=n.length,c=K(o);++a<o;)c[a]=u(n[a],a,n);return c}function Mr(n,u){for(var a=-1,o=u.length,c=n.length;++a<o;)n[c+a]=u[a];return n}function Ua(n,u,a,o){var c=-1,h=n.length;for(o&&h&&(a=n[++c]);++c<h;)a=u(a,n[c],c,n);return a}function cf(n,u,a,o){var c=n.length;for(o&&c&&(a=n[--c]);c--;)a=u(a,n[c],c,n);return a}function Wa(n,u){for(var a=-1,o=n.length;++a<o;)if(u(n[a],a,n))return!0;return!1}function pf(n,u){for(var a=n.length,o=0;a--;)o+=+u(n[a])||0;return o}function df(n,u){return n===r?u:n}function Ga(n,u,a,o){return n===r||!Pe.call(o,a)?u:n}function gi(n,u,a){for(var o=-1,c=Qe(u),h=c.length;++o<h;){var D=c[o],E=n[D],b=a(E,u[D],D,n,u);((b===b?b!==E:E===E)||E===r&&!(D in n))&&(n[D]=b)}return n}function Vr(n,u){return u==null?n:Ya(u,Qe(u),n)}function Ka(n,u){for(var a=-1,o=n==null,c=!o&&Ye(n),h=c?n.length:0,D=u.length,E=K(D);++a<D;){var b=u[a];c?E[a]=yn(b,h)?n[b]:r:E[a]=o?r:n[b]}return E}function Ya(n,u,a){a||(a={});for(var o=-1,c=u.length;++o<c;){var h=u[o];a[h]=n[h]}return a}function _u(n,u,a){var o=typeof n;return o=="function"?u===r?n:Dt(n,u,a):n==null?Wn:o=="object"?Hr(n):u===r?Iu(n):ns(n,u)}function zn(n,u,a,o,c,h,D){var E;if(a&&(E=c?a(n,o,c):a(n)),E!==r)return E;if(!$e(n))return n;var b=oe(n);if(b){if(E=Of(n),!u)return at(n,E)}else{var I=ut.call(n),V=I==q;if(I==he||I==M||V&&!c){if(E=Sf(V?{}:n),!u)return Vr(E,n)}else return Ce[I]?Nf(n,I,u):c?n:{}}h||(h=[]),D||(D=[]);for(var U=h.length;U--;)if(h[U]==n)return D[U];return h.push(n),D.push(E),(b?It:rn)(n,function(ee,Z){E[Z]=zn(ee,u,a,Z,n,h,D)}),E}var zr=function(){function n(){}return function(u){if($e(u)){n.prototype=u;var a=new n;n.prototype=r}return a||{}}}();function Ja(n,u,a){if(typeof n!="function")throw new pt(S);return nr(function(){n.apply(r,a)},u)}function qr(n,u){var a=n?n.length:0,o=[];if(!a)return o;var c=-1,h=lr(),D=h==hn,E=D&&u.length>=z?bi(u):null,b=u.length;E&&(h=Dn,D=!1,u=E);e:for(;++c<a;){var I=n[c];if(D&&I===I){for(var V=b;V--;)if(u[V]===I)continue e;o.push(I)}else h(u,I,0)<0&&o.push(I)}return o}var Rt=hs(rn),mi=hs(Ci,!0);function hf(n,u){var a=!0;return Rt(n,function(o,c,h){return a=!!u(o,c,h),a}),a}function vf(n,u,a,o){var c=o,h=c;return Rt(n,function(D,E,b){var I=+u(D,E,b);(a(I,c)||I===o&&I===h)&&(c=I,h=D)}),h}function gf(n,u,a,o){var c=n.length;for(a=a==null?0:+a||0,a<0&&(a=-a>c?0:c+a),o=o===r||o>c?c:+o||0,o<0&&(o+=c),c=a>o?0:o>>>0,a>>>=0;a<c;)n[a++]=u;return n}function Xa(n,u){var a=[];return Rt(n,function(o,c,h){u(o,c,h)&&a.push(o)}),a}function Za(n,u,a,o){var c;return a(n,function(h,D,E){if(u(h,D,E))return c=o?D:h,!1}),c}function ht(n,u,a,o){o||(o=[]);for(var c=-1,h=n.length;++c<h;){var D=n[c];Ve(D)&&Ye(D)&&(a||oe(D)||un(D))?u?ht(D,u,a,o):Mr(o,D):a||(o[o.length]=D)}return o}var Di=vs(),Qa=vs(!0);function es(n,u){return Di(n,u,Bn)}function rn(n,u){return Di(n,u,Qe)}function Ci(n,u){return Qa(n,u,Qe)}function yi(n,u){for(var a=-1,o=u.length,c=-1,h=[];++a<o;){var D=u[a];Un(n[D])&&(h[++c]=D)}return h}function qn(n,u,a){if(n!=null){a!==r&&a in Lt(n)&&(u=[a]);for(var o=0,c=u.length;n!=null&&o<c;)n=n[u[o++]];return o&&o==c?n:r}}function Fu(n,u,a,o,c,h){return n===u?!0:n==null||u==null||!$e(n)&&!Ve(u)?n!==n&&u!==u:mf(n,u,Fu,a,o,c,h)}function mf(n,u,a,o,c,h,D){var E=oe(n),b=oe(u),I=T,V=T;E||(I=ut.call(n),I==M?I=he:I!=he&&(E=cr(n))),b||(V=ut.call(u),V==M?V=he:V!=he&&(b=cr(u)));var U=I==he,ee=V==he,Z=I==V;if(Z&&!(E||U))return Ff(n,u,I);if(!c){var Ee=U&&Pe.call(n,"__wrapped__"),Fe=ee&&Pe.call(u,"__wrapped__");if(Ee||Fe)return a(Ee?n.value():n,Fe?u.value():u,o,c,h,D)}if(!Z)return!1;h||(h=[]),D||(D=[]);for(var je=h.length;je--;)if(h[je]==n)return D[je]==u;h.push(n),D.push(u);var Ge=(E?_f:bf)(n,u,a,o,c,h,D);return h.pop(),D.pop(),Ge}function ts(n,u,a){var o=u.length,c=o,h=!a;if(n==null)return!c;for(n=Lt(n);o--;){var D=u[o];if(h&&D[2]?D[1]!==n[D[0]]:!(D[0]in n))return!1}for(;++o<c;){D=u[o];var E=D[0],b=n[E],I=D[1];if(h&&D[2]){if(b===r&&!(E in n))return!1}else{var V=a?a(b,I,E):r;if(!(V===r?Fu(I,b,a,!0):V))return!1}}return!0}function Ei(n,u){var a=-1,o=Ye(n)?K(n.length):[];return Rt(n,function(c,h,D){o[++a]=u(c,h,D)}),o}function Hr(n){var u=Ts(n);if(u.length==1&&u[0][2]){var a=u[0][0],o=u[0][1];return function(c){return c==null?!1:c[a]===o&&(o!==r||a in Lt(c))}}return function(c){return ts(c,u)}}function ns(n,u){var a=oe(n),o=Hn(n)&&Ps(u),c=n+"";return n=En(n),function(h){if(h==null)return!1;var D=c;if(h=Lt(h),(a||!o)&&!(D in h)){if(h=n.length==1?h:qn(h,Ft(n,0,-1)),h==null)return!1;D=Wr(n),h=Lt(h)}return h[D]===u?u!==r||D in h:Fu(u,h[D],r,!0)}}function rs(n,u,a,o,c){if(!$e(n))return n;var h=Ye(u)&&(oe(u)||cr(u)),D=h?r:Qe(u);return It(D||u,function(E,b){if(D&&(b=E,E=u[b]),Ve(E))o||(o=[]),c||(c=[]),Df(n,u,b,rs,a,o,c);else{var I=n[b],V=a?a(I,E,b,n,u):r,U=V===r;U&&(V=E),(V!==r||h&&!(b in n))&&(U||(V===V?V!==I:I===I))&&(n[b]=V)}}),n}function Df(n,u,a,o,c,h,D){for(var E=h.length,b=u[a];E--;)if(h[E]==b){n[a]=D[E];return}var I=n[a],V=c?c(I,b,a,n,u):r,U=V===r;U&&(V=b,Ye(b)&&(oe(b)||cr(b))?V=oe(I)?I:Ye(I)?at(I):[]:Pu(b)||un(b)?V=un(I)?fo(I):Pu(I)?I:{}:U=!1),h.push(b),D.push(V),U?n[a]=o(V,b,c,h,D):(V===V?V!==I:I===I)&&(n[a]=V)}function Bi(n){return function(u){return u==null?r:u[n]}}function Cf(n){var u=n+"";return n=En(n),function(a){return qn(a,n,u)}}function us(n,u){for(var a=n?u.length:0;a--;){var o=u[a];if(o!=c&&yn(o)){var c=o;rr.call(n,o,1)}}return n}function Ai(n,u){return n+$t(mn()*(u-n+1))}function yf(n,u,a,o,c){return c(n,function(h,D,E){a=o?(o=!1,h):u(a,h,D,E)}),a}var is=Mn?function(n,u){return Mn.set(n,u),n}:Wn;function Ft(n,u,a){var o=-1,c=n.length;u=u==null?0:+u||0,u<0&&(u=-u>c?0:c+u),a=a===r||a>c?c:+a||0,a<0&&(a+=c),c=u>a?0:a-u>>>0,u>>>=0;for(var h=K(c);++o<c;)h[o]=n[o+u];return h}function Ef(n,u){var a;return Rt(n,function(o,c,h){return a=u(o,c,h),!a}),!!a}function as(n,u){var a=n.length;for(n.sort(u);a--;)n[a]=n[a].value;return n}function ss(n,u,a){var o=Oe(),c=-1;u=or(u,function(D){return o(D)});var h=Ei(n,function(D){var E=or(u,function(b){return b(D)});return{criteria:E,index:++c,value:D}});return as(h,function(D,E){return ui(D,E,a)})}function Bf(n,u){var a=0;return Rt(n,function(o,c,h){a+=+u(o,c,h)||0}),a}function wi(n,u){var a=-1,o=lr(),c=n.length,h=o==hn,D=h&&c>=z,E=D?bi():null,b=[];E?(o=Dn,h=!1):(D=!1,E=u?[]:b);e:for(;++a<c;){var I=n[a],V=u?u(I,a,n):I;if(h&&I===I){for(var U=E.length;U--;)if(E[U]===V)continue e;u&&E.push(V),b.push(I)}else o(E,V,0)<0&&((u||D)&&E.push(V),b.push(I))}return b}function _i(n,u){for(var a=-1,o=u.length,c=K(o);++a<o;)c[a]=n[u[a]];return c}function bu(n,u,a,o){for(var c=n.length,h=o?c:-1;(o?h--:++h<c)&&u(n[h],h,n););return a?Ft(n,o?0:h,o?h+1:c):Ft(n,o?h+1:0,o?c:h)}function os(n,u){var a=n;a instanceof j&&(a=a.value());for(var o=-1,c=u.length;++o<c;){var h=u[o];a=h.func.apply(h.thisArg,Mr([a],h.args))}return a}function Fi(n,u,a){var o=0,c=n?n.length:o;if(typeof u=="number"&&u===u&&c<=hi){for(;o<c;){var h=o+c>>>1,D=n[h];(a?D<=u:D<u)&&D!==null?o=h+1:c=h}return c}return ls(n,u,Wn,a)}function ls(n,u,a,o){u=a(u);for(var c=0,h=n?n.length:0,D=u!==u,E=u===null,b=u===r;c<h;){var I=$t((c+h)/2),V=a(n[I]),U=V!==r,ee=V===V;if(D)var Z=ee||o;else E?Z=ee&&U&&(o||V!=null):b?Z=ee&&(o||U):V==null?Z=!1:Z=o?V<=u:V<u;Z?c=I+1:h=I}return We(h,Bu)}function Dt(n,u,a){if(typeof n!="function")return Wn;if(u===r)return n;switch(a){case 1:return function(o){return n.call(u,o)};case 3:return function(o,c,h){return n.call(u,o,c,h)};case 4:return function(o,c,h,D){return n.call(u,o,c,h,D)};case 5:return function(o,c,h,D,E){return n.call(u,o,c,h,D,E)}}return function(){return n.apply(u,arguments)}}function fs(n){var u=new fi(n.byteLength),a=new Du(u);return a.set(new Du(n)),u}function cs(n,u,a){for(var o=a.length,c=-1,h=ze(n.length-o,0),D=-1,E=u.length,b=K(E+h);++D<E;)b[D]=u[D];for(;++c<o;)b[a[c]]=n[c];for(;h--;)b[D++]=n[c++];return b}function ps(n,u,a){for(var o=-1,c=a.length,h=-1,D=ze(n.length-c,0),E=-1,b=u.length,I=K(D+b);++h<D;)I[h]=n[h];for(var V=h;++E<b;)I[V+E]=u[E];for(;++o<c;)I[V+a[o]]=n[h++];return I}function xu(n,u){return function(a,o,c){var h=u?u():{};if(o=Oe(o,c,3),oe(a))for(var D=-1,E=a.length;++D<E;){var b=a[D];n(h,b,o(b,D,a),a)}else Rt(a,function(I,V,U){n(h,I,o(I,V,U),U)});return h}}function ds(n){return ye(function(u,a){var o=-1,c=u==null?0:a.length,h=c>2?a[c-2]:r,D=c>2?a[2]:r,E=c>1?a[c-1]:r;for(typeof h=="function"?(h=Dt(h,E,5),c-=2):(h=typeof E=="function"?E:r,c-=h?1:0),D&&ce(a[0],a[1],D)&&(h=c<3?r:h,c=1);++o<c;){var b=a[o];b&&n(u,b,h)}return u})}function hs(n,u){return function(a,o){var c=a?Ur(a):0;if(!Ht(c))return n(a,o);for(var h=u?c:-1,D=Lt(a);(u?h--:++h<c)&&o(D[h],h,D)!==!1;);return a}}function vs(n){return function(u,a,o){for(var c=Lt(u),h=o(u),D=h.length,E=n?D:-1;n?E--:++E<D;){var b=h[E];if(a(c[b],b,c)===!1)break}return u}}function Af(n,u){var a=Su(n);function o(){var c=this&&this!==Pt&&this instanceof o?a:n;return c.apply(u,arguments)}return o}function bi(n){return Ln&&mu?new sr(n):null}function Ou(n){return function(u){for(var a=-1,o=go(po(u)),c=o.length,h="";++a<c;)h=n(h,o[a],a);return h}}function Su(n){return function(){var u=arguments;switch(u.length){case 0:return new n;case 1:return new n(u[0]);case 2:return new n(u[0],u[1]);case 3:return new n(u[0],u[1],u[2]);case 4:return new n(u[0],u[1],u[2],u[3]);case 5:return new n(u[0],u[1],u[2],u[3],u[4]);case 6:return new n(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new n(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var a=zr(n.prototype),o=n.apply(a,u);return $e(o)?o:a}}function gs(n){function u(a,o,c){c&&ce(a,o,c)&&(o=r);var h=Cn(a,n,r,r,r,r,r,o);return h.placeholder=u.placeholder,h}return u}function ms(n,u){return ye(function(a){var o=a[0];return o==null?o:(a.push(u),n.apply(r,a))})}function Ds(n,u){return function(a,o,c){if(c&&ce(a,o,c)&&(o=r),o=Oe(o,c,3),o.length==1){a=oe(a)?a:Pi(a);var h=ff(a,o,n,u);if(!(a.length&&h===u))return h}return vf(a,o,n,u)}}function Cs(n,u){return function(a,o,c){if(o=Oe(o,c,3),oe(a)){var h=au(a,o,u);return h>-1?a[h]:r}return Za(a,o,n)}}function ys(n){return function(u,a,o){return u&&u.length?(a=Oe(a,o,3),au(u,a,n)):-1}}function Es(n){return function(u,a,o){return a=Oe(a,o,3),Za(u,a,n,!0)}}function Bs(n){return function(){for(var u,a=arguments.length,o=n?a:-1,c=0,h=K(a);n?o--:++o<a;){var D=h[c++]=arguments[o];if(typeof D!="function")throw new pt(S);!u&&O.prototype.thru&&Nu(D)=="wrapper"&&(u=new O([],!0))}for(o=u?-1:a;++o<a;){D=h[o];var E=Nu(D),b=E=="wrapper"?Si(D):r;b&&Ti(b[0])&&b[1]==(A|d|m|y)&&!b[4].length&&b[9]==1?u=u[Nu(b[0])].apply(u,b[3]):u=D.length==1&&Ti(D)?u[E]():u.thru(D)}return function(){var I=arguments,V=I[0];if(u&&I.length==1&&oe(V)&&V.length>=z)return u.plant(V).value();for(var U=0,ee=a?h[U].apply(this,I):V;++U<a;)ee=h[U].call(this,ee);return ee}}}function As(n,u){return function(a,o,c){return typeof o=="function"&&c===r&&oe(a)?n(a,o):u(a,Dt(o,c,3))}}function ws(n){return function(u,a,o){return(typeof a!="function"||o!==r)&&(a=Dt(a,o,3)),n(u,a,Bn)}}function _s(n){return function(u,a,o){return(typeof a!="function"||o!==r)&&(a=Dt(a,o,3)),n(u,a)}}function Fs(n){return function(u,a,o){var c={};return a=Oe(a,o,3),rn(u,function(h,D,E){var b=a(h,D,E);D=n?b:D,h=n?h:b,c[D]=h}),c}}function bs(n){return function(u,a,o){return u=Ae(u),(n?u:"")+Ss(u,a,o)+(n?"":u)}}function xs(n){var u=ye(function(a,o){var c=gn(o,u.placeholder);return Cn(a,n,r,o,c)});return u}function Os(n,u){return function(a,o,c,h){var D=arguments.length<3;return typeof o=="function"&&h===r&&oe(a)?n(a,o,c,D):yf(a,Oe(o,h,4),c,D,u)}}function xi(n,u,a,o,c,h,D,E,b,I){var V=u&A,U=u&s,ee=u&f,Z=u&d,Ee=u&p,Fe=u&g,je=ee?r:Su(n);function Ge(){for(var qe=arguments.length,et=qe,be=K(qe);et--;)be[et]=arguments[et];if(o&&(be=cs(be,o,c)),h&&(be=ps(be,h,D)),Z||Fe){var Ut=Ge.placeholder,Ji=gn(be,Ut);if(qe-=Ji.length,qe<I){var fd=E?at(E):r,cd=ze(I-qe,0),pd=Z?Ji:r,dd=Z?r:Ji,hd=Z?be:r,vd=Z?r:be;u|=Z?m:w,u&=~(Z?w:m),Ee||(u&=~(s|f));var yo=[n,u,a,hd,pd,vd,dd,fd,b,cd],Xi=xi.apply(r,yo);return Ti(n)&&Rs(Xi,yo),Xi.placeholder=Ut,Xi}}var Eo=U?a:this,Bo=ee?Eo[n]:n;return E&&(be=Pf(be,E)),V&&b<be.length&&(be.length=b),this&&this!==Pt&&this instanceof Ge&&(Bo=je||Su(n)),Bo.apply(Eo,be)}return Ge}function Ss(n,u,a){var o=n.length;if(u=+u,o>=u||!qt(u))return"";var c=u-o;return a=a==null?" ":a+"",ho(a,ur(c/a.length)).slice(0,c)}function wf(n,u,a,o){var c=u&s,h=Su(n);function D(){for(var E=-1,b=arguments.length,I=-1,V=o.length,U=K(V+b);++I<V;)U[I]=o[I];for(;b--;)U[I++]=arguments[++E];var ee=this&&this!==Pt&&this instanceof D?h:n;return ee.apply(c?a:this,U)}return D}function Oi(n){var u=Ie[n];return function(a,o){return o=o===r?0:+o||0,o?(o=gu(10,o),u(a*o)/o):u(a)}}function Ns(n){return function(u,a,o,c){var h=Oe(o);return o==null&&h===_u?Fi(u,a,n):ls(u,a,h(o,c,1),n)}}function Cn(n,u,a,o