1import{_ as Dg}from"./NavBreadcrumbs.vue.Ik2-PxS4.js";import{_ as Vr,a as $g,b as Eg,c as Mg,u as Ps,d as Og,e as bg,H as qn,V as Wg,f as Bg,g as Fg,h as Hg,i as Ug,j as zg,k as Ng,l as qg}from"./HeaderButtons.ftoGTXTP.js";import{_ as Gg,o as Y,c as et,r as Nn,g as Ve,h as ye,i as Ts,j as Pt,k as Kg,l as H,m as cu,a as K,b as st,w as ct,d as Dt,t as lt,F as Ee,n as gn,q as Se,v as Zg,s as oe,e as Rs,x as Au,y as Yg,z as Xg,A as Vg,B as Qg,C as Jg,D as jg,I as t0,E as e0,G as n0,H as zn,J as r0,u as i0,K as s0}from"./entry.B-oUbplU.js";import o0 from"./Icon.puJbyWLQ.js";import{_ as a0}from"./ListenButton.vue.w9J_5ZsQ.js";const u0={},l0={class:"text-[22px] leading-[145%] lg:text-[24px] lg:leading-[32px]"};function h0(c,s){return Y(),et("h2",l0,[Nn(c.$slots,"default")])}const Qr=Gg(u0,[["render",h0]]),ku=()=>({addWordToWordListUrl:s=>`https://classroom.laoshi.io/library/?addWordId=${s}&type=list`}),f0={key:0},c0={class:"flex flex-row gap-3"},d0=K("div",{class:"w-[19px] h-[19px] relative"},[K("div",{class:"w-px h-[17px] left-[9px] top-[1px] absolute bg-white"}),K("div",{class:"w-px h-[17px] left-[1px] top-[10px] absolute origin-top-left -rotate-90 bg-white"})],-1),_0=Ve({__name:"AddToWordListDropdown",props:{words:{}},setup(c){const s=c,{addWordToWordListUrl:r}=ku(),l=ye(!1),h=ye(),d=ye(),v=ye(),S=()=>{l.value=!0,d.value&&v.value&&(h.value=Mg(d.value,v.value,{placement:"bottom-start",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,2]}}]})),window==null||window.addEventListener("keydown",k)},A=()=>{var D;l.value=!1,(D=h.value)==null||D.destroy(),window==null||window.removeEventListener("keydown",k)},k=D=>{D.key==="Escape"&&A()},L=()=>l.value?A():S(),R=Ts(),q=Pt(()=>s.words.map(D=>({id:D.id,meaning:D.translations[R.locale.value]})).filter(D=>D.meaning.length));return(D,rt)=>{const at=Vr,O=$g,W=Rs,ue=Eg,gt=Kg("click-outside");return H(q).length?cu((Y(),et("div",f0,[K("div",{ref_key:"activatorEl",ref:d},[st(at,{onClick:L},{default:ct(()=>[K("div",c0,[d0,Dt(" "+lt(D.$t("hanziClientAddToWordList")),1)])]),_:1})],512),cu(K("div",{ref_key:"dropdownEl",ref:v},[st(ue,{class:"border border-gray-300 rounded-2xl overflow-auto max-h-[550px]"},{default:ct(()=>[(Y(!0),et(Ee,null,gn(H(q),wt=>(Y(),Se(W,{key:wt.id,href:H(r)(wt.id),"aria-label":D.$t("hanziClientAddWordToWordList",[D.$i18n.locale])},{default:ct(()=>[st(O,{class:"min-w-[300px] py-4 px-2"},{default:ct(()=>[Dt(lt(wt.meaning),1)]),_:2},1024)]),_:2},1032,["href","aria-label"]))),128))]),_:1})],512),[[Zg,H(l)]])])),[[gt,A]]):oe("",!0)}}});var ws;const pn=typeof window>"u"?global:window,Pu=()=>((pn==null?void 0:pn.performance)||Date).now(),xs=pn.requestAnimationFrame||(c=>setTimeout(()=>c(Pu()),1e3/60)),du=pn.cancelAnimationFrame||clearTimeout;function Gr(c){return c[c.length-1]}function Tu(c,s){const r={...c};for(const l in s){const h=c[l],d=s[l];h!==d&&(h&&d&&typeof h=="object"&&typeof d=="object"&&!Array.isArray(d)?r[l]=Tu(h,d):r[l]=d)}return r}function p0(c,s){const r=c.split("."),l={};let h=l;for(let d=0;d<r.length;d++){const v=d===r.length-1?s:{};h[r[d]]=v,h=v}return l}let _u=0;function Ru(){return _u++,_u}function Nr(c){return c.reduce((r,l)=>l+r,0)/c.length}function $e(c){const s=c.toUpperCase().trim();if(/^#([A-F0-9]{3}){1,2}$/.test(s)){let l=s.substring(1).split("");l.length===3&&(l=[l[0],l[0],l[1],l[1],l[2],l[2]]);const h=`${l.join("")}`;return{r:parseInt(h.slice(0,2),16),g:parseInt(h.slice(2,4),16),b:parseInt(h.slice(4,6),16),a:1}}const r=s.match(/^RGBA?\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*(\d*\.?\d+))?\)$/);if(r)return{r:parseInt(r[1],10),g:parseInt(r[2],10),b:parseInt(r[3],10),a:parseFloat(r[4]||1,10)};throw new Error(`Invalid color: ${c}`)}const Gn=(c,s)=>new Array(s).fill(c),ys=((ws=pn.navigator)===null||ws===void 0?void 0:ws.userAgent)||"",g0=ys.indexOf("MSIE ")>0||ys.indexOf("Trident/")>0||ys.indexOf("Edge/")>0,Iu=()=>{},Lu=c=>c.split(/(^|\s+)(?=[A-Z])/).filter(s=>s!==" "),v0=/\s+|[, ]+/,Du=c=>{const[s,...r]=c.split(v0);return{cmd:s,values:r.map(l=>parseFloat(l))}};class m0{constructor(s,r,l=Iu){this._mutationChains=[],this._onStateChange=l,this.state={options:{drawingFadeDuration:r.drawingFadeDuration,drawingWidth:r.drawingWidth,drawingColor:$e(r.drawingColor),strokeColor:$e(r.strokeColor),outlineColor:$e(r.outlineColor),radicalColor:$e(r.radicalColor||r.strokeColor),highlightColor:$e(r.highlightColor)},character:{main:{opacity:r.showCharacter?1:0,strokes:{}},outline:{opacity:r.showOutline?1:0,strokes:{}},highlight:{opacity:1,strokes:{}}},userStrokes:null};for(let h=0;h<s.strokes.length;h++)this.state.character.main.strokes[h]={opacity:1,displayPortion:1},this.state.character.outline.strokes[h]={opacity:1,displayPortion:1},this.state.character.highlight.strokes[h]={opacity:0,displayPortion:1}}overwriteOnStateChange(s){this._onStateChange=s}updateState(s){const r=Tu(this.state,s);this._onStateChange(r,this.state),this.state=r}run(s,r={}){const l=s.map(h=>h.scope);return this.cancelMutations(l),new Promise(h=>{const d={_isActive:!0,_index:0,_resolve:h,_mutations:s,_loop:r.loop,_scopes:l};this._mutationChains.push(d),this._run(d)})}_run(s){if(!s._isActive)return;const r=s._mutations;if(s._index>=r.length)if(s._loop)s._index=0;else{s._isActive=!1,this._mutationChains=this._mutationChains.filter(h=>h!==s),s._resolve({canceled:!1});return}s._mutations[s._index].run(this).then(()=>{s._isActive&&(s._index++,this._run(s))})}_getActiveMutations(){return this._mutationChains.map(s=>s._mutations[s._index])}
1pauseAll(){this._getActiveMutations().forEach(s=>s.pause())}resumeAll(){this._getActiveMutations().forEach(s=>s.resume())}cancelMutations(s){for(const r of this._mutationChains)for(const l of r._scopes)for(const h of s)(l.startsWith(h)||h.startsWith(l))&&this._cancelMutationChain(r)}cancelAll(){this.cancelMutations([""])}_cancelMutationChain(s){var r;s._isActive=!1;for(let l=s._index;l<s._mutations.length;l++)s._mutations[l].cancel(this);(r=s._resolve)===null||r===void 0||r.call(s,{canceled:!0}),this._mutationChains=this._mutationChains.filter(l=>l!==s)}}const zr=1024;class pu{constructor(s){const{padding:r,width:l,height:h}=s;this.padding=r,this.width=l,this.height=h;const d=l-2*r,v=h-2*r;this.scale=Math.min(d/zr,v/zr),this.xOffset=r+(d-this.scale*zr)/2,this.yOffset=r+(v-this.scale*zr)/2,this.yOffset/=2}convertExternalPoint(s){const r=(s.x-this.xOffset)/this.scale,l=(s.y-this.yOffset)/this.scale;return{x:r,y:l}}}const Xe=(c,s)=>({x:c.x-s.x,y:c.y-s.y}),Kr=c=>Math.sqrt(Math.pow(c.x,2)+Math.pow(c.y,2)),ae=(c,s)=>Kr(Xe(c,s)),w0=(c,s)=>c.x===s.x&&c.y===s.y,As=(c,s=1)=>{const r=s*10;return{x:Math.round(r*c.x)/r,y:Math.round(r*c.y)/r}},Is=c=>{let s=c[0];return c.slice(1).reduce((l,h)=>{const d=ae(h,s);return s=h,l+d},0)},x0=(c,s)=>(c.x*s.x+c.y*s.y)/Kr(c)/Kr(s),Ls=(c,s,r)=>{const l=Xe(s,c),h=r/Kr(l);return{x:s.x+h*l.x,y:s.y+h*l.y}},y0=(c,s)=>{const r=c.length>=s.length?c:s,l=c.length>=s.length?s:c,h=(v,S,A,k)=>{if(v===0&&S===0)return ae(r[0],l[0]);if(v>0&&S===0)return Math.max(A[0],ae(r[v],l[0]));const L=k[k.length-1];return v===0&&S>0?Math.max(L,ae(r[0],l[S])):Math.max(Math.min(A[S],A[S-1],L),ae(r[v],l[S]))};let d=[];for(let v=0;v<r.length;v++){const S=[];for(let A=0;A<l.length;A++)S.push(h(v,A,d,S));d=S}return d[l.length-1]},S0=(c,s=.05)=>{const r=c.slice(0,1);for(const l of c.slice(1)){const h=r[r.length-1],d=ae(l,h);if(d>s){const v=Math.ceil(d/s),S=d/v;for(let A=0;A<v;A++)r.push(Ls(l,h,-1*S*(A+1)))}else r.push(l)}return r},C0=(c,s=30)=>{const l=Is(c)/(s-1),h=[c[0]],d=Gr(c),v=c.slice(1);for(let S=0;S<s-2;S++){let A=Gr(h),k=l,L=!1;for(;!L;){const R=ae(A,v[0]);if(R<k)k-=R,A=v.shift();else{const q=Ls(A,v[0],k-R);h.push(q),L=!0}}}return h.push(d),h},gu=c=>{const s=C0(c),r=Nr(s.map(A=>A.x)),l=Nr(s.map(A=>A.y)),h={x:r,y:l},d=s.map(A=>Xe(A,h)),v=Math.sqrt(Nr([Math.pow(d[0].x,2)+Math.pow(d[0].y,2),Math.pow(Gr(d).x,2)+Math.pow(Gr(d).y,2)])),S=d.map(A=>({x:A.x/v,y:A.y/v}));return S0(S)},A0=(c,s)=>c.map(r=>({x:Math.cos(s)*r.x-Math.sin(s)*r.y,y:Math.sin(s)*r.x+Math.cos(s)*r.y})),k0=c=>{if(c.length<3)return c;const s=[c[0],c[1]];return c.slice(2).forEach(r=>{const l=s.length,h=Xe(r,s[l-1]),d=Xe(s[l-1],s[l-2]);h.y*d.x-h.x*d.y===0&&s.pop(),s.push(r)}),s};function Ds(c,s=!1){const r=As(c[0]),l=c.slice(1);let h=`M ${r.x} ${r.y}`;return l.forEach(d=>{const{x:v,y:S}=As(d);h+=` L ${v} ${S}`}),s&&(h+="Z"),h}const $u=(c,s)=>{const r=k0(c);if(r.length<2)return r;const l=r[1],h=r[0],d=Ls(l,h,s),v=r.slice(1);return v.unshift(d),v},P0=350,T0=0,vu=250,R0=.4,I0=.35;function L0(c,s,r,l={}){const h=s.strokes,d=O0(c.points);if(d.length<2)return{isMatch:!1,meta:{isStrokeBackwards:!1}};const{isMatch:v,meta:S,avgDist:A}=qr(d,h[r],l);if(!v)return{isMatch:v,meta:S};const k=h.slice(r+1);let L=A;for(let R=0;R<k.length;R++){const{isMatch:q,avgDist:D}=qr(d,k[R],{...l,checkBackwards:!1});q&&D<L&&(L=D)}if(L<A){const R=.6*(L+A)/(2*A),{isMatch:q,meta:D}=qr(d,h[r],{...l,leniency:(l.leniency||1)*R});return{isMatch:q,meta:D}}return{isMatch:v,meta:S}}const D0=(c,s,r)=>{const l=ae(s.getStartingPoint(),c[0]),h=ae(s.getEndingPoint(),c[c.length-1]);return l<=vu*r&&h<=vu*r},$0=c=>{const s=[];let r=c[0];return c.slice(1).forEach(l=>{s.push(Xe(l,r)),r=l}),s},E0=(c,s)=>{const r=$0(c),l=s.getVectors(),h=r.map(v=>{const S=l.map(A=>x0(A,v));return Math.max(...S)});return Nr(h)>T0},M0=(c,s,r)=>r*(Is(c)+25)/(s.getLength()+25)>=I0,O0=c=>{if(c.length<2)return c;const[s,...r]=c,l=[s];for(const h of r)w0(h,l[l.length-1])||l.push(h);return l},b0=[Math.PI/16,Math.PI/32,0,-1*Math.PI/32,-1*Math.PI/16],W0=(c,s,r)=>{const l=gu(c),h=gu(s);let d=1/0;
1return b0.forEach(v=>{const S=y0(l,A0(h,v));S<d&&(d=S)}),d<=R0*r},qr=(c,s,r)=>{const{leniency:l=1,isOutlineVisible:h=!1,checkBackwards:d=!0}=r,v=s.getAverageDistance(c),S=h||s.strokeNum>0?.5:1,A=v<=P0*S*l;if(!A)return{isMatch:!1,avgDist:v,meta:{isStrokeBackwards:!1}};const k=D0(c,s,l),L=E0(c,s),R=W0(c,s.points,l),q=M0(c,s,l),D=A&&k&&L&&R&&q;return d&&!D&&qr([...c].reverse(),s,{...r,checkBackwards:!1}).isMatch?{isMatch:D,avgDist:v,meta:{isStrokeBackwards:!0}}:{isMatch:D,avgDist:v,meta:{isStrokeBackwards:!1}}};class B0{constructor(s,r,l){this.id=s,this.points=[r],this.externalPoints=[l]}appendPoint(s,r){this.points.push(s),this.externalPoints.push(r)}}class F0{constructor(s){this._duration=s,this._startTime=null,this._paused=!1,this.scope=`delay.${s}`}run(){return this._startTime=Pu(),this._runningPromise=new Promise(s=>{this._resolve=s,this._timeout=setTimeout(()=>this.cancel(),this._duration)}),this._runningPromise}pause(){if(this._paused)return;const s=performance.now()-(this._startTime||0);this._duration=Math.max(0,this._duration-s),clearTimeout(this._timeout),this._paused=!0}resume(){this._paused&&(this._startTime=performance.now(),this._timeout=setTimeout(()=>this.cancel(),this._duration),this._paused=!1)}cancel(){clearTimeout(this._timeout),this._resolve&&this._resolve(),this._resolve=void 0}}class ot{constructor(s,r,l={}){this._tick=h=>{if(this._startPauseTime!==null)return;const d=Math.min(1,(h-this._startTime-this._pausedDuration)/this._duration);if(d===1)this._renderState.updateState(this._values),this._frameHandle=void 0,this.cancel(this._renderState);else{const v=H0(d),S=Eu(this._startState,this._values,v);this._renderState.updateState(S),this._frameHandle=xs(this._tick)}},this.scope=s,this._valuesOrCallable=r,this._duration=l.duration||0,this._force=l.force,this._pausedDuration=0,this._startPauseTime=null}run(s){return this._values||this._inflateValues(s),this._duration===0&&s.updateState(this._values),this._duration===0||Mu(s.state,this._values)?Promise.resolve():(this._renderState=s,this._startState=s.state,this._startTime=performance.now(),this._frameHandle=xs(this._tick),new Promise(r=>{this._resolve=r}))}_inflateValues(s){const r=typeof this._valuesOrCallable=="function"?this._valuesOrCallable(s.state):this._valuesOrCallable;this._values=p0(this.scope,r)}pause(){this._startPauseTime===null&&(this._frameHandle&&du(this._frameHandle),this._startPauseTime=performance.now())}resume(){this._startPauseTime!==null&&(this._frameHandle=xs(this._tick),this._pausedDuration+=performance.now()-this._startPauseTime,this._startPauseTime=null)}cancel(s){var r;(r=this._resolve)===null||r===void 0||r.call(this),this._resolve=void 0,du(this._frameHandle||-1),this._frameHandle=void 0,this._force&&(this._values||this._inflateValues(s),s.updateState(this._values))}}ot.Delay=F0;function Eu(c,s,r){const l={};for(const h in s){const d=s[h],v=c==null?void 0:c[h];typeof v=="number"&&typeof d=="number"&&d>=0?l[h]=r*(d-v)+v:l[h]=Eu(v,d,r)}return l}function Mu(c,s){for(const r in s){const l=s[r],h=c==null?void 0:c[r];if(l>=0){if(l!==h)return!1}else if(!Mu(h,l))return!1}return!0}const H0=c=>-Math.cos(c*Math.PI)/2+.5,Ou=(c,s,r)=>[new ot(`character.${c}.strokes`,Gn({opacity:1,displayPortion:1},s.strokes.length),{duration:r,force:!0})],ks=(c,s,r)=>[new ot(`character.${c}`,{opacity:1,strokes:Gn({opacity:1,displayPortion:1},s.strokes.length)},{duration:r,force:!0})],vn=(c,s,r)=>[new ot(`character.${c}.opacity`,0,{duration:r,force:!0}),...Ou(c,s,0)],mu=(c,s,r)=>[new ot(`options.${c}`,s,{duration:r})],bu=(c,s,r)=>{const l=c.strokeNum,h=(c.getLength()+600)/(3*r);return[new ot("character.highlight.strokeColor",s),new ot("character.highlight",{opacity:1,strokes:{[l]:{displayPortion:0,opacity:0}}}),new ot(`character.highlight.strokes.${l}`,{displayPortion:1,opacity:1},{duration:h}),new ot(`character.highlight.strokes.${l}.opacity`,0,{duration:h})]},Wu=(c,s,r)=>{const l=s.strokeNum,h=(s.getLength()+600)/(3*r);return[new ot(`character.${c}`,{opacity:1,strokes:{[l]:{displayPortion:0,opacity:1}}}),new ot(`character.${c}.strokes.${l}.displayPortion`,1,{duration:h})]},U0=(c,s,r,l)=>{const h=v=>{const S=v.character[c],A={opacity:1,strokes:{}};for(let k=0;k<s.strokes.length;k++)A.strokes[k]={opacity:S.opacity*S.strokes[k].opacity};return A},d=s.strokes[r];return[new ot(`character.${c}`,h),...Wu(c,d,l)]},z0=(c,s,r)=>[new ot(`character.${c}.strokes.${s}`,{displayPortion:1,opacity:1},{duration:r,force:!0})],Bu=(c,s,r,l,h)=>{let d=vn(c,s,r);return d=d.concat(Ou(c,s,0)),d.push(new ot(`character.${c}`,{opacity:1,strokes:Gn({opacity:0}
1,s.strokes.length)},{force:!0})),s.strokes.forEach((v,S)=>{S>0&&d.push(new ot.Delay(h)),d=d.concat(Wu(c,v,l))}),d},N0=(c,s,r,l,h,d)=>{const v=Bu(c,s,r,l,h);return v.push(new ot.Delay(d)),v},q0=(c,s)=>[...vn("main",c,s),new ot("character.highlight",{opacity:1,strokes:Gn({opacity:0},c.strokes.length)},{force:!0}),new ot("character.main",{opacity:1,strokes:Gn({opacity:0},c.strokes.length)},{force:!0})],G0=(c,s)=>[new ot("quiz.activeUserStrokeId",c,{force:!0}),new ot(`userStrokes.${c}`,{points:[s],opacity:1},{force:!0})],K0=(c,s)=>[new ot(`userStrokes.${c}.points`,s,{force:!0})],wu=(c,s)=>[new ot(`userStrokes.${c}.opacity`,0,{duration:s}),new ot(`userStrokes.${c}`,null,{force:!0})],Z0=(c,s)=>[...vn("highlight",c),...ks("highlight",c,s/2),...vn("highlight",c,s/2)],Y0=c=>({pathString:Ds(c.externalPoints),points:c.points.map(s=>As(s))});class X0{constructor(s,r,l){this._currentStrokeIndex=0,this._mistakesOnStroke=0,this._totalMistakes=0,this._character=s,this._renderState=r,this._isActive=!1,this._positioner=l}startQuiz(s){return this._isActive=!0,this._options=s,this._currentStrokeIndex=0,this._mistakesOnStroke=0,this._totalMistakes=0,this._renderState.run(q0(this._character,s.strokeFadeDuration))}startUserStroke(s){if(!this._isActive)return null;if(this._userStroke)return this.endUserStroke();const r=this._positioner.convertExternalPoint(s),l=Ru();return this._userStroke=new B0(l,r,s),this._renderState.run(G0(l,r))}continueUserStroke(s){if(!this._userStroke)return Promise.resolve();const r=this._positioner.convertExternalPoint(s);this._userStroke.appendPoint(r,s);const l=this._userStroke.points.slice(0);return this._renderState.run(K0(this._userStroke.id,l))}setPositioner(s){this._positioner=s}endUserStroke(){var s;if(!this._userStroke)return;if(this._renderState.run(wu(this._userStroke.id,(s=this._options.drawingFadeDuration)!==null&&s!==void 0?s:300)),this._userStroke.points.length===1){this._userStroke=void 0;return}const{acceptBackwardsStrokes:r}=this._options,l=this._getCurrentStroke(),{isMatch:h,meta:d}=L0(this._userStroke,this._character,this._currentStrokeIndex,{isOutlineVisible:this._renderState.state.character.outline.opacity>0,leniency:this._options.leniency});if(h||d.isStrokeBackwards&&r)this._handleSuccess(d);else{this._handleFailure(d);const{showHintAfterMisses:S,highlightColor:A,strokeHighlightSpeed:k}=this._options;S!==!1&&this._mistakesOnStroke>=S&&this._renderState.run(bu(l,$e(A),k))}this._userStroke=void 0}cancel(){this._isActive=!1,this._userStroke&&this._renderState.run(wu(this._userStroke.id,this._options.drawingFadeDuration))}_getStrokeData({isCorrect:s,meta:r}){return{character:this._character.symbol,strokeNum:this._currentStrokeIndex,mistakesOnStroke:this._mistakesOnStroke,totalMistakes:this._totalMistakes,strokesRemaining:this._character.strokes.length-this._currentStrokeIndex-(s?1:0),drawnPath:Y0(this._userStroke),isBackwards:r.isStrokeBackwards}}_handleSuccess(s){if(!this._options)return;const{strokes:r,symbol:l}=this._character,{onCorrectStroke:h,onComplete:d,highlightOnComplete:v,strokeFadeDuration:S,strokeHighlightDuration:A}=this._options;h==null||h({...this._getStrokeData({isCorrect:!0,meta:s})});let k=z0("main",this._currentStrokeIndex,S);this._mistakesOnStroke=0,this._currentStrokeIndex+=1,this._currentStrokeIndex===r.length&&(this._isActive=!1,d==null||d({character:l,totalMistakes:this._totalMistakes}),v&&(k=k.concat(Z0(this._character,(A||0)*2)))),this._renderState.run(k)}_handleFailure(s){var r,l;this._mistakesOnStroke+=1,this._totalMistakes+=1,(r=(l=this._options).onMistake)===null||r===void 0||r.call(l,this._getStrokeData({isCorrect:!1,meta:s}))}_getCurrentStroke(){return this._character.strokes[this._currentStrokeIndex]}}function Ze(c){return document.createElementNS("http://www.w3.org/2000/svg",c)}function Me(c,s,r){c.setAttributeNS(null,s,r)}function Zr(c,s){Object.keys(s).forEach(r=>Me(c,r,s[r]))}function V0(c){let s="";return window.location&&window.location.href&&(s=window.location.href.replace(/#[^#]*$/,"").replace(/"/gi,"%22")),`url("${s}#${c}")`}function Fu(c){var s;c==null||(s=c.parentNode)===null||s===void 0||s.removeChild(c)}class Ye{constructor(s){this.stroke=s,this._pathLength=s.getLength()+Ye.STROKE_WIDTH/2}_getStrokeDashoffset(s){return this._pathLength*.999*(1-s)}_getColor({strokeColor:s,radicalColor:r}){return r&&this.stroke.isInRadical?r:s}
1}Ye.STROKE_WIDTH=200;const xu=200;class Q0 extends Ye{constructor(s){super(s),this._oldProps=void 0}mount(s){this._animationPath=Ze("path"),this._clip=Ze("clipPath"),this._strokePath=Ze("path");const r=`mask-${Ru()}`;Me(this._clip,"id",r),Me(this._strokePath,"d",this.stroke.path),this._animationPath.style.opacity="0",Me(this._animationPath,"clip-path",V0(r));const l=$u(this.stroke.points,xu/2);return Me(this._animationPath,"d",Ds(l)),Zr(this._animationPath,{stroke:"#FFFFFF","stroke-width":xu.toString(),fill:"none","stroke-linecap":"round","stroke-linejoin":"miter","stroke-dasharray":`${this._pathLength},${this._pathLength}`}),this._clip.appendChild(this._strokePath),s.defs.appendChild(this._clip),s.svg.appendChild(this._animationPath),this}render(s){var r,l;if(s===this._oldProps||!this._animationPath)return;s.displayPortion!==((r=this._oldProps)===null||r===void 0?void 0:r.displayPortion)&&(this._animationPath.style.strokeDashoffset=this._getStrokeDashoffset(s.displayPortion).toString());const h=this._getColor(s);if(!this._oldProps||h!==this._getColor(this._oldProps)){const{r:d,g:v,b:S,a:A}=h;Zr(this._animationPath,{stroke:`rgba(${d},${v},${S},${A})`})}s.opacity!==((l=this._oldProps)===null||l===void 0?void 0:l.opacity)&&(this._animationPath.style.opacity=s.opacity.toString()),this._oldProps=s}}class Ss{constructor(s){this._oldProps=void 0,this._strokeRenderers=s.strokes.map(r=>new Q0(r))}mount(s){const r=s.createSubRenderTarget();this._group=r.svg,this._strokeRenderers.forEach(l=>{l.mount(r)})}render(s){var r,l;if(s===this._oldProps||!this._group)return;const{opacity:h,strokes:d,strokeColor:v,radicalColor:S=null}=s;if(h!==((r=this._oldProps)===null||r===void 0?void 0:r.opacity)&&(this._group.style.opacity=h.toString(),!g0)){var A;h===0?this._group.style.display="none":((A=this._oldProps)===null||A===void 0?void 0:A.opacity)===0&&this._group.style.removeProperty("display")}const k=!this._oldProps||v!==this._oldProps.strokeColor||S!==this._oldProps.radicalColor;if(k||d!==((l=this._oldProps)===null||l===void 0?void 0:l.strokes))for(let R=0;R<this._strokeRenderers.length;R++){var L;!k&&(L=this._oldProps)!==null&&L!==void 0&&L.strokes&&d[R]===this._oldProps.strokes[R]||this._strokeRenderers[R].render({strokeColor:v,radicalColor:S,opacity:d[R].opacity,displayPortion:d[R].displayPortion})}this._oldProps=s}}class J0{constructor(){this._oldProps=void 0}mount(s){this._path=Ze("path"),s.svg.appendChild(this._path)}render(s){var r,l,h,d;if(!(!this._path||s===this._oldProps)){if(s.strokeColor!==((r=this._oldProps)===null||r===void 0?void 0:r.strokeColor)||s.strokeWidth!==((l=this._oldProps)===null||l===void 0?void 0:l.strokeWidth)){const{r:v,g:S,b:A,a:k}=s.strokeColor;Zr(this._path,{fill:"none",stroke:`rgba(${v},${S},${A},${k})`,"stroke-width":s.strokeWidth.toString(),"stroke-linecap":"round","stroke-linejoin":"round"})}s.opacity!==((h=this._oldProps)===null||h===void 0?void 0:h.opacity)&&Me(this._path,"opacity",s.opacity.toString()),s.points!==((d=this._oldProps)===null||d===void 0?void 0:d.points)&&Me(this._path,"d",Ds(s.points)),this._oldProps=s}}destroy(){Fu(this._path)}}class j0{constructor(s,r){this._character=s,this._positioner=r,this._mainCharRenderer=new Ss(s),this._outlineCharRenderer=new Ss(s),this._highlightCharRenderer=new Ss(s),this._userStrokeRe
1nderers={}}mount(s){const r=s.createSubRenderTarget(),l=r.svg,{xOffset:h,yOffset:d,scale:v}=this._positioner;Me(l,"transform",`translate(${h}, ${d}) scale(${v})`),this._outlineCharRenderer.mount(r),this._mainCharRenderer.mount(r),this._highlightCharRenderer.mount(r),this._positionedTarget=r}render(s){const{main:r,outline:l,highlight:h}=s.character,{outlineColor:d,radicalColor:v,highlightColor:S,strokeColor:A,drawingWidth:k,drawingColor:L}=s.options;this._outlineCharRenderer.render({opacity:l.opacity,strokes:l.strokes,strokeColor:d}),this._mainCharRenderer.render({opacity:r.opacity,strokes:r.strokes,strokeColor:A,radicalColor:v}),this._highlightCharRenderer.render({opacity:h.opacity,strokes:h.strokes,strokeColor:S});const R=s.userStrokes||{};for(const D in this._userStrokeRenderers)if(!R[D]){var q;(q=this._userStrokeRenderers[D])===null||q===void 0||q.destroy(),delete this._userStrokeRenderers[D]}for(const D in R){const rt=R[D];if(!rt)continue;const at={strokeWidth:k,strokeColor:L,...rt};(()=>{if(this._userStrokeRenderers[D])return this._userStrokeRe
1nderers[D];const W=new J0;return W.mount(this._positionedTarget),this._userStrokeRenderers[D]=W,W})().render(at)}}destroy(){Fu(this._positionedTarget.svg),this._positionedTarget.defs.innerHTML=""}}class Hu{constructor(s){this.node=s}addPointerStartListener(s){this.node.addEventListener("mousedown",r=>{s(this._eventify(r,this._getMousePoint))}),this.node.addEventListener("touchstart",r=>{s(this._eventify(r,this._getTouchPoint))})}addPointerMoveListener(s){this.node.addEventListener("mousemove",r=>{s(this._eventify(r,this._getMousePoint))}),this.node.addEventListener("touchmove",r=>{s(this._eventify(r,this._getTouchPoint))})}addPointerEndListener(s){document.addEventListener("mouseup",s),document.addEventListener("touchend",s)}getBoundingClientRect(){return this.node.getBoundingClientRect()}updateDimensions(s,r){this.node.setAttribute("width",`${s}`),this.node.setAttribute("height",`${r}`)}_eventify(s,r){return{getPoint:()=>r.call(this,s),preventDefault:()=>s.preventDefault()}}_getMousePoint(s){const{left:r,top:l}=this.getBoundingClientRect(),h=s.clientX-r,d=s.clientY-l;return{x:h,y:d}}_getTouchPoint(s){const{left:r,top:l}=this.getBoundingClientRect(),h=s.touches[0].clientX-r,d=s.touches[0].clientY-l;return{x:h,y:d}}}class Yr extends Hu{constructor(s,r){super(s),this.svg=s,this.defs=r,"createSVGPoint"in s&&(this._pt=s.createSVGPoint())}
1static init(s,r="100%",l="100%"){const h=typeof s=="string"?document.getElementById(s):s;if(!h)throw new Error(`HanziWriter target element not found: ${s}`);const d=h.nodeName.toUpperCase(),v=(()=>{if(d==="SVG"||d==="G")return h;{const A=Ze("svg");return h.appendChild(A),A}})();Zr(v,{width:r,height:l});const S=Ze("defs");return v.appendChild(S),new Yr(v,S)}createSubRenderTarget(){const s=Ze("g");return this.svg.appendChild(s),new Yr(s,this.defs)}_getMousePoint(s){if(this._pt&&(this._pt.x=s.clientX,this._pt.y=s.clientY,"getScreenCTM"in this.node)){var r;const l=this._pt.matrixTransform((r=this.node.getScreenCTM())===null||r===void 0?void 0:r.inverse());return{x:l.x,y:l.y}}return super._getMousePoint.call(this,s)}_getTouchPoint(s){if(this._pt&&(this._pt.x=s.touches[0].clientX,this._pt.y=s.touches[0].clientY,"getScreenCTM"in this.node)){var r;const l=this._pt.matrixTransform((r=this.node.getScreenCTM())===null||r===void 0?void 0:r.inverse());return{x:l.x,y:l.y}}return super._getTouchPoint(s)}}var tv={HanziWriterRenderer:j0,createRenderTarget:Yr.init};const Uu=(c,s)=>{c.beginPath();const r=s[0],l=s.slice(1);c.moveTo(r.x,r.y);for(const h of l)c.lineTo(h.x,h.y);c.stroke()},ev=c=>{const s=[r=>r.beginPath()];for(const r of Lu(c)){const{cmd:l,values:h}=Du(r);l==="M"?s.push(d=>d.moveTo(...h)):l==="L"?s.push(d=>d.lineTo(...h)):l==="C"?s.push(d=>d.bezierCurveTo(...h)):l==="Q"&&s.push(d=>d.quadraticCurveTo(...h))}return r=>s.forEach(l=>l(r))};class nv extends Ye{constructor(s,r=!0){super(s),r&&Path2D?this._path2D=new Path2D(this.stroke.path):this._pathCmd=ev(this.stroke.path),this._extendedMaskPoints=$u(this.stroke.points,Ye.STROKE_WIDTH/2)}render(s,r){if(r.opacity<.05)return;if(s.save(),this._path2D)s.clip(this._path2D);else{var l;(l=this._pathCmd)===null||l===void 0||l.call(this,s),s.globalAlpha=0,s.stroke(),s.clip()}const{r:h,g:d,b:v,a:S}=this._getColor(r),A=S===1?`rgb(${h},${d},${v})`:`rgb(${h},${d},${v},${S})`,k=this._getStrokeDashoffset(r.displayPortion);s.globalAlpha=r.opacity,s.strokeStyle=A,s.fillStyle=A,s.lineWidth=Ye.STROKE_WIDTH,s.lineCap="round",s.lineJoin="round",s.setLineDash([this._pathLength,this._pathLength],k),s.lineDashOffset=k,Uu(s,this._extendedMaskPoints),s.restore()}}class Cs{constructor(s){this._strokeRenderers=s.strokes.map(r=>new nv(r))}render(s,r){if(r.opacity<.05)return;const{opacity:l,strokeColor:h,radicalColor:d,strokes:v}=r;for(let S=0;S<this._strokeRenderers.length;S++)this._strokeRenderers[S].render(s,{strokeColor:h,radicalColor:d,opacity:v[S].opacity*l,displayPortion:v[S].displayPortion||0})}}function rv(c,s){if(s.opacity<.05)return;const{opacity:r,strokeWidth:l,strokeColor:h,points:d}=s,{r:v,g:S,b:A,a:k}=h;c.save(),c.globalAlpha=r,c.lineWidth=l,c.strokeStyle=`rgba(${v},${S},${A},${k})`,c.lineCap="round",c.lineJoin="round",Uu(c,d),c.restore()}class iv{constructor(s,r){this.destroy=Iu,this._character=s,this._positioner=r,this._mainCharRenderer=new Cs(s),this._outlineCharRenderer=new Cs(s),this._highlightCharRenderer=new Cs(s)}mount(s){this._target=s}_animationFrame(s){var r;const{width:l,height:h,scale:d,xOffset:v,yOffset:S}=this._positioner,A=this._target.getContext();A.clearRect(0,0,l,h),A.save(),A.translate(v,S),A.scale(d,d),s(A),A.restore(),(r=A.draw)===null||r===void 0||r.call(A)}render(s){const{outline:r,main:l,highlight:h}=s.character,{outlineColor:d,strokeColor:v,radicalColor:S,highlightColor:A,drawingColor:k,drawingWidth:L}=s.options;this._animationFrame(R=>{this._outlineCharRenderer.render(R,{...r,strokeColor:d}),this._mainCharRenderer.render(R,{...l,strokeColor:v,radicalColor:S}),this._highlightCharRenderer.render(R,{...h,strokeColor:A});const q=s.userStrokes||{};for(const D in q){const rt=q[D];if(rt){const at={strokeWidth:L,strokeColor:k,...rt};rv(R,at)}}})}}class $s extends Hu{constructor(s){super(s)}
1static init(s,r="100%",l="100%"){const h=typeof s=="string"?document.getElementById(s):s;if(!h)throw new Error(`HanziWriter target element not found: ${s}`);const d=h.nodeName.toUpperCase(),v=(()=>{if(d==="CANVAS")return h;const S=document.createElement("canvas");return h.appendChild(S),S})();return v.setAttribute("width",r),v.setAttribute("height",l),new $s(v)}getContext(){return this.node.getContext("2d")}}var sv={HanziWriterRenderer:iv,createRenderTarget:$s.init};const ov="2.0",av=c=>`https://cdn.jsdelivr.net/npm/hanzi-writer-data@${ov}/${c}.json`,uv=(c,s,r)=>{const l=new XMLHttpRequest;l.overrideMimeType&&l.overrideMimeType("application/json"),l.open("GET",av(c),!0),l.onerror=h=>{r(l,h)},l.onreadystatechange=()=>{l.readyState===4&&(l.status===200?s(JSON.parse(l.responseText)):l.status!==0&&r&&r(l))},l.send(null)},yu={charDataLoader:uv,onLoadCharDataError:null,onLoadCharDataSuccess:null,showOutline:!0,showCharacter:!0,renderer:"svg",width:0,height:0,padding:20,strokeAnimationSpeed:1,strokeFadeDuration:400,strokeHighlightDuration:200,strokeHighlightSpeed:2,delayBetweenStrokes:1e3,delayBetweenLoops:2e3,strokeColor:"#555",radicalColor:null,highlightColor:"#AAF",outlineColor:"#DDD",drawingColor:"#333",leniency:1,showHintAfterMisses:3,highlightOnComplete:!0,highlightCompleteColor:null,acceptBackwardsStrokes:!1,drawingFadeDuration:300,drawingWidth:4,strokeWidth:2,outlineWidth:2,rendererOverride:{}};class Su{constructor(s){this._loadCounter=0,this._isLoading=!1,this.loadingFailed=!1,this._options=s}_debouncedLoad(s,r){const l=v=>{if(r===this._loadCounter){var S;(S=this._resolve)===null||S===void 0||S.call(this,v)}},h=v=>{if(r===this._loadCounter){var S;(S=this._reject)===null||S===void 0||S.call(this,v)}},d=this._options.charDataLoader(s,l,h);d&&("then"in d?d.then(l).catch(h):l(d))}_setupLoadingPromise(){return new Promise((s,r)=>{this._resolve=s,this._reject=r}).then(s=>{var r,l;return this._isLoading=!1,(r=(l=this._options).onLoadCharDataSuccess)===null||r===void 0||r.call(l,s),s}).catch(s=>{if(this._isLoading=!1,this.loadingFailed=!0,this._options.onLoadCharDataError){this._options.onLoadCharDataError(s);return}if(s instanceof Error)throw s;const r=new Error(`Failed to load char data for ${this._loadingChar}`);throw r.reason=s,r})}loadCharData(s){this._loadingChar=s;const r=this._setupLoadingPromise();return this.loadingFailed=!1,this._isLoading=!0,this._loadCounter++,this._debouncedLoad(s,this._loadCounter),r}}class lv{constructor(s,r,l,h=!1){this.path=s,this.points=r,this.strokeNum=l,this.isInRadical=h}getStartingPoint(){return this.points[0]}getEndingPoint(){return this.points[this.points.length-1]}getLength(){return Is(this.points)}getVectors(){let s=this.points[0];return this.points.slice(1).map(l=>{const h=Xe(l,s);return s=l,h})}getDistance(s){const r=this.points.map(l=>ae(l,s));return Math.min(...r)}getAverageDistance(s){return s.reduce((l,h)=>l+this.getDistance(h),0)/s.length}}class Es{constructor(s,r){this.symbol=s,this.strokes=r}static fromObject(s,r,l=fv){const h=(l==null?void 0:l(r))||r,d=hv(h);return new Es(s,d)}}const hv=({radStrokes:c,strokes:s,medians:r})=>{const l=h=>{var d;return((d=c==null?void 0:c.indexOf(h))!==null&&d!==void 0?d:-1)>=0};return s.map((h,d)=>{const v=r[d].map(S=>{const[A,k]=S;return{x:A,y:k}});return new lv(h,v,d,l(d))})},fv=c=>{const s=c.strokes.map(r=>Lu(r).reduce((h,d)=>{const{cmd:v,values:S}=Du(d);if(v==="M"||v==="L"){const[A,k]=S;return h+`${v} ${A} ${900-k} `}if(v==="Q"){const[A,k,L,R]=S;return h+`${v} ${A} ${900-k} ${L} ${900-R} `}if(v==="C"){const[A,k,L,R,q,D]=S;return h+`${v} ${A} ${900-k} ${L} ${900-R} ${q} ${900-D} `}return v==="Z"?h+"Z":h+`${v} ${S.join(" ")}`},""));return{...c,strokes:s,medians:c.medians.map(r=>r.map(([l,h])=>[l,900-h]))}};class Oe{constructor(s,r={}){const{HanziWriterRenderer:l,createRenderTarget:h}=r.renderer==="canvas"?sv:tv,d=r.rendererOverride||{};this._renderer={HanziWriterRenderer:d.HanziWriterRenderer||l,createRenderTarget:d.createRenderTarget||h},this.target=this._renderer.createRenderTarget(s,r.width,r.height),this._options=this._assignOptions(r),this._loadingManager=new Su(this._options),this._setupListeners()}static create(s,r,l){const h=new Oe(s,l);return h.setCharacter(r),h}static loadCharacterData(s,r={}){const l=(()=>{const{_loadingManager:h,_loadingOptions:d}=Oe;return(h==null?void 0:h._loadingChar)===s&&d===r?h:new Su({...yu,...r})})();return Oe._loadingManager=l,Oe._loadingOptions=r,l.loadCharData(s)}static getScalingTransform(s,r,l=0){const h=new pu({width:s,height:r,padding:l}),{xOffset:d,yOffset:v,scale:S}=h;return{x:d,y:v,scale:S,transform:`translate(${d}, ${v}) scale(${S})`}}showCharacter(s={}){return this._options.showCharacter=!0,this._withData(()=>{var r;return(r=this._renderState)===null||r===void 0?void 0:r.run(ks("main",this._character,typeof s.duration=="number"?s.duration:this._options.strokeFadeDuration)).then(l=>{var h;
1return(h=s.onComplete)===null||h===void 0||h.call(s,l),l})})}hideCharacter(s={}){return this._options.showCharacter=!1,this._withData(()=>{var r;return(r=this._renderState)===null||r===void 0?void 0:r.run(vn("main",this._character,typeof s.duration=="number"?s.duration:this._options.strokeFadeDuration)).then(l=>{var h;return(h=s.onComplete)===null||h===void 0||h.call(s,l),l})})}animateCharacter(s={}){return this.cancelQuiz(),this._withData(()=>{var r;return(r=this._renderState)===null||r===void 0?void 0:r.run(Bu("main",this._character,this._options.strokeFadeDuration,this._options.strokeAnimationSpeed,this._options.delayBetweenStrokes)).then(l=>{var h;return(h=s.onComplete)===null||h===void 0||h.call(s,l),l})})}animateStroke(s,r={}){return this.cancelQuiz(),this._withData(()=>{var l;return(l=this._renderState)===null||l===void 0?void 0:l.run(U0("main",this._character,s,this._options.strokeAnimationSpeed)).then(h=>{var d;return(d=r.onComplete)===null||d===void 0||d.call(r,h),h})})}highlightStroke(s,r={}){const l=()=>{if(!(!this._character||!this._renderState))return this._renderState.run(bu(this._character.strokes[s],$e(this._options.highlightColor),this._options.strokeHighlightSpeed)).then(h=>{var d;return(d=r.onComplete)===null||d===void 0||d.call(r,h),h})};return this._withData(l)}async loopCharacterAnimation(){return this.cancelQuiz(),this._withData(()=>this._renderState.run(N0("main",this._character,this._options.strokeFadeDuration,this._options.strokeAnimationSpeed,this._options.delayBetweenStrokes,this._options.delayBetweenLoops),{loop:!0}))}pauseAnimation(){return this._withData(()=>{var s;return(s=this._renderState)===null||s===void 0?void 0:s.pauseAll()})}resumeAnimation(){return this._withData(()=>{var s;return(s=this._renderState)===null||s===void 0?void 0:s.resumeAll()})}showOutline(s={}){return this._options.showOutline=!0,this._withData(()=>{var r;return(r=this._renderState)===null||r===void 0?void 0:r.run(ks("outline",this._character,typeof s.duration=="number"?s.duration:this._options.strokeFadeDuration)).then(l=>{var h;return(h=s.onComplete)===null||h===void 0||h.call(s,l),l})})}hideOutline(s={}){return this._options.showOutline=!1,this._withData(()=>{var r;return(r=this._renderState)===null||r===void 0?void 0:r.run(vn("outline",this._character,typeof s.duration=="number"?s.duration:this._options.strokeFadeDuration)).then(l=>{var h;return(h=s.onComplete)===null||h===void 0||h.call(s,l),l})})}updateDimensions({width:s,height:r,padding:l}){if(s!==void 0&&(this._options.width=s),r!==void 0&&(this._options.height=r),l!==void 0&&(this._options.padding=l),this.target.updateDimensions(this._options.width,this._options.height),this._character&&this._renderState&&this._hanziWriterRenderer&&this._positioner){this._hanziWriterRenderer.destroy();const h=this._initAndMountHanziWriterRenderer(this._character);this._renderState.overwriteOnStateChange(d=>h.render(d)),h.render(this._renderState.state),this._quiz&&this._quiz.setPositioner(this._positioner)}}updateColor(s,r,l={}){var h;let d=[];const v=s==="radicalColor"&&!r?this._options.strokeColor:r,S=$e(v);this._options[s]=r;const A=(h=l.duration)!==null&&h!==void 0?h:this._options.strokeFadeDuration;return d=d.concat(mu(s,S,A)),s==="radicalColor"&&!r&&(d=d.concat(mu(s,null,0))),this._withData(()=>{var k;return(k=this._renderState)===null||k===void 0?void 0:k.run(d).then(L=>{var R;return(R=l.onComplete)===null||R===void 0||R.call(l,L),L})})}quiz(s={}){return this._withData(async()=>{this._character&&this._renderState&&this._positioner&&(this.cancelQuiz(),this._quiz=new X0(this._character,this._renderState,this._positioner),this._options={...this._options,...s},this._quiz.startQuiz(this._options))})}cancelQuiz(){this._quiz&&(this._quiz.cancel(),this._quiz=void 0)}setCharacter(s){return this.cancelQuiz(),this._char=s,this._hanziWriterRenderer&&this._hanziWriterRenderer.destroy(),this._renderState&&this._renderState.cancelAll(),this._hanziWriterRenderer=null,this._withDataPromise=this._loadingManager.loadCharData(s).then(r=>{if(!r||this._loadingManager.loadingFailed)return;this._character=Es.fromObject(s,r,this._options.processCharData),this._renderState=new m0(this._character,this._options,h=>l.render(h));const l=this._initAndMountHanziWriterRenderer(this._character);l.render(this._renderState.state)}),this._withDataPromise}_initAndMountHanziWriterRenderer(s){const{width:r,height:l,padding:h}=this._options;this._positioner=new pu({width:r,height:l,padding:h});const d=new this._renderer.HanziWriterRenderer(s,this._positioner);return d.mount(this.target),this._hanziWriterRenderer=d,d}async getCharacterData(){if(!this._char)throw new Error("setCharacter() must be called before calling getCharacterData()");return await this._withData(()=>this._character)}_assignOptions(s){const r={...yu,...s};return s.strokeAnimationDuration&&!s.strokeAnimationSpeed&&(r.strokeAnimationSpeed=500/s.strokeAnimationDuration),s.strokeHighlightDuration&&!s.strokeHighlightSpeed&&(r.strokeHighlightSpeed=500/r.strokeHighlightDuration),s.highlightCompleteColor||(r.highlightCompleteColor=r.highlightColor),this._fillWidthAndHeight(r)}_fillWidthAndHeight(s){const r={...s};if(r.width&&!r.height)r.height=r.width;else if(r.height&&!r.width)r.width=r.height;else if(!r.width&&!r.height){const{width:l,height:h}=this.target.getBoundingClientRect(),d=Math.min(l,h);r.width=d,r.height=d}return r}_withData(s){if(this._loadingManager.loadingFailed)throw Error("Failed to load character data. Call setCharacter and try again.");return this._withDataPromise?this._withDataPromise.then(()=>
1{if(!this._loadingManager.loadingFailed)return s()}):Promise.resolve().then(s)}_setupListeners(){this.target.addPointerStartListener(s=>{this._quiz&&(s.preventDefault(),this._quiz.startUserStroke(s.getPoint()))}),this.target.addPointerMoveListener(s=>{this._quiz&&(s.preventDefault(),this._quiz.continueUserStroke(s.getPoint()))}),this.target.addPointerEndListener(()=>{var s;(s=this._quiz)===null||s===void 0||s.endUserStroke()})}}Oe._loadingManager=null;Oe._loadingOptions=null;const cv={class:"flex flex-col gap-4"},dv={class:"flex flex-wrap"},_v=["id"],pv=K("line",{x1:"0",y1:"0",x2:"100",y2:"100",stroke:"#DDD"},null,-1),gv=K("line",{x1:"100",y1:"0",x2:"0",y2:"100",stroke:"#DDD"},null,-1),vv=K("line",{x1:"50",y1:"0",x2:"50",y2:"100",stroke:"#DDD"},null,-1),mv=K("line",{x1:"0",y1:"50",x2:"100",y2:"50",stroke:"#DDD"},null,-1),wv=[pv,gv,vv,mv],xv=Ve({__name:"StrokeAnimation",props:{wordSimplified:{},wordTraditional:{}},setup(c){const s=c,{switchValue:r}=Ps(),l=Xg(),h=ye([]),d=ye(!1),v=Pt(()=>r.value===1),S=Pt(()=>v.value?s.wordTraditional:s.wordSimplified),A=()=>{h.value=[],S.value.split("").forEach((L,R)=>{const q=Oe.create(`hanzi-writer-target-${R}`,S.value,{width:100,height:100,padding:10,strokeAnimationSpeed:.9,delayBetweenStrokes:60,charDataLoader:async(D,rt)=>{let at;v.value?at=fetch(`${l.public.storageBaseUrl}hieroglyphs/${s.wordTraditional[R]}-tr.json`).then(W=>W.ok?W:Promise.reject(W.status)).catch(()=>fetch(`${l.public.storageBaseUrl}hieroglyphs/${s.wordTraditional[R]}.json`)).then(W=>W.ok?W:Promise.reject(W.status)).catch(()=>fetch(`${l.public.storageBaseUrl}hieroglyphs/${s.wordSimplified[R]}.json`)).then(W=>W.ok?W:Promise.reject(W.status)):at=fetch(`${l.public.storageBaseUrl}hieroglyphs/${s.wordSimplified[R]}.json`).then(W=>W.ok?W:Promise.reject(W.status)).catch(()=>fetch(`${l.public.storageBaseUrl}hieroglyphs/${s.wordTraditional[R]}-tr.json`)).then(W=>W.ok?W:Promise.reject(W.status)).catch(()=>fetch(`${l.public.storageBaseUrl}hieroglyphs/${s.wordTraditional[R]}.json`)).then(W=>W.ok?W:Promise.reject(W.status));const O=await at.then(W=>W.json());rt(O)},processCharData:D=>D});h.value.push(q)})},k=()=>{d.value=!0;const L=500;h.value.forEach(q=>q.hideCharacter());const R=q=>{if(q>=h.value.length){d.value=!1;return}h.value[q].animateCharacter({onComplete:function(){setTimeout(function(){R(q+1)},L)}})};R(0)};return Au(()=>{A()}),Yg(r,()=>{h.value.forEach((L,R)=>{L.setCharacter(S.value[R])})}),(L,R)=>{const q=Qr,D=Vr;return Y(),et("div",cv,[st(q,null,{default:ct(()=>
1[Dt(lt(L.$t("hanziClientStrokeOrderTitle",[L.wordSimplified])),1)]),_:1}),K("div",dv,[(Y(!0),et(Ee,null,gn(H(S),(rt,at)=>(Y(),et("div",{key:at,class:"border-gray-200 border-1"},[(Y(),et("svg",{id:`hanzi-writer-target-${at}`,xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100"},wv,8,_v))]))),128))]),st(D,{class:"px-3 my-2 md:my-0 order-2 md:order-1 text-white text-lg rounded-3xl mr-2",disabled:H(d),onClick:k},{default:ct(()=>[Dt(lt(L.$t("hanziClientStrokeOrderAnimateButton")),1)]),_:1},8,["disabled"])])}}}),yv={class:"flex items-start justify-between pt-6 pb-9 rounded-t-2xl"},Sv=K("div",{class:"p-[18px] border-1 border-transparent ml-5"},null,-1),Cv={class:"text-2xl text-center"},Av={key:2,class:"m-5"},kv=Ve({__name:"BaseModal",props:{modelValue:{type:Boolean},width:{default:"520px"},fullHeight:{type:Boolean},position:{default:"bottom"},hideClose:{type:Boolean},clickToClose:{type:Boolean,default:!0},escToClose:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(c){const s=c,{getBreakpoint:r}=Vg(),l=Pt(()=>{const d=["border-0 md:mt-3 mx-auto rounded-t-2xl shadow-lg overflow-y-hidden relative flex flex-col w-full bg-white outline-none focus:outline-none"];return s.fullHeight&&d.push("full-height"),s.position==="center"&&d.push("rounded-b-2xl"),d.join(" ")}),h=Pt(()=>r()===Qg.sm?"100%":s.width);return(d,v)=>{const S=Og,A=Vr,k=bg;return Y(),Se(H(t0),jg({"content-class":H(l),"content-style":{maxWidth:H(h),maxHeight:"100vh"},"lock-scroll":"","click-to-close":d.clickToClose,"esc-to-close":d.escToClose,"model-value":d.modelValue,classes:[d.position==="center"?"modal-container--center":"modal-container--bottom"]},d.$attrs,{"onUpdate:modelValue":v[1]||(v[1]=L=>d.$emit("update:modelValue",L))}),{default:ct(()=>[K("div",yv,[Sv,K("h3",Cv,[Nn(d.$slots,"title")]),d.hideClose!==!0?(Y(),Se(A,{key:0,class:"mr-5 w-[36px]",outlined:"",rounded:"",size:"sm",onClick:v[0]||(v[0]=L=>d.$emit("update:modelValue",!1))},{default:ct(()=>
1[st(S,{size:"lg",name:"ei:close",alt:d.$t("close")},null,8,["alt"])]),_:1})):oe("",!0)]),Nn(d.$slots,"header-action"),d.$slots.default?(Y(),et("div",{key:0,class:Jg([d.fullHeight?["body-height"]:["flex-auto"],"relative px-9 pb-9 flex-auto modal-wrapper modal overflow-y-auto"])},[Nn(d.$slots,"default")],2)):oe("",!0),d.$slots.footer?(Y(),Se(k,{key:1,class:""})):oe("",!0),d.$slots.footer?(Y(),et("div",Av,[Nn(d.$slots,"footer")])):oe("",!0)]),_:3},16,["content-class","content-style","click-to-close","esc-to-close","model-value","classes"])}}}),Pv=""+globalThis.__publicAssetsURL("classroom.png"),Tv=K("img",{src:Pv},null,-1),Rv={class:"py-10 whitespace-pre-wrap"},Iv=Ve({__name:"AboutLaoshiClassroomModal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(c){return(s,r)=>{const l=Vr,h=kv;return Y(),Se(h,{"model-value":s.modelValue,width:"720px",position:"center","onUpdate:modelValue":r[0]||(r[0]=d=>s.$emit("update:modelValue",d))},{title:ct(()=>[Dt(" Laoshi Classroom ")]),default:ct(()=>[Tv,K("p",Rv,lt(s.$t("hanziClientAboutClassroom")),1),st(l,{class:"w-full",rounded:"",size:"lg",to:s.$t("hanziClientTeacherCabinetLink")},{default:ct(()=>[Dt(lt(s.$t("hanziClientLearnMore")),1)]),_:1},8,["to"])]),_:1},8,["model-value"])}}}),Lv={key:0},Dv={key:1,class:"flex flex-col gap-4"},$v={class:"flex flex-col gap-4"},Ev={class:"flex flex-row items-center gap-2 lg:gap-3"},Mv={class:"flex flex-row items-center gap-2 lg:gap-3"},Ov={class:"text-black/55"},bv={class:"flex items-center gap-1"},Wv={class:"text-black/55"},Bv={class:"text-black/55"},Fv=Ve({__name:"MeaningList",props:{words:{},word:{}},setup(c){const s=c,{addWordToWordListUrl:r}=ku(),l=k=>k?k.replaceAll("*",""):null,h=Ts().locale,d=ye(!1),v=()=>{d.value=!0},S=Pt(()=>s.words.map(k=>({id:k.id,meaning:k.translations[h.value],transcriptions:k.transcriptions})).filter(k=>k.meaning.length)),A=Pt(()=>!s.words.length||!S.value.length);return(k,L)=>{const R=Iv,q=Qr,D=o0,rt=Rs,at=a0;return H(A)?(Y(),et("div",Lv)):(Y(),et("div",Dv,[st(R,{modelValue:H(d),"onUpdate:modelValue":L[0]||(L[0]=O=>e0(d)?d.value=O:null)},null,8,["modelValue"]),st(q,null,{default:ct(()=>[Dt(lt(k.$t("hanziClientMeaningTitle",[k.word])),1)]),_:1}),K("ol",$v,[(Y(!0),et(Ee,null,gn(H(S),O=>(Y(),et("li",{key:O.id,class:"flex flex-col gap-[6px] text-[15px] leading-[19px] lg:text-[17px] lg:leading-[22px]"},[K("div",Ev,[st(rt,{class:"w-[24px] h-[24px] flex justify-center items-center",href:H(r)(O.id),"aria-label":k.$t("hanziClientAddWordToWordList",[O.meaning])},{default:ct(()=>[st(D,{name:"PlusIcon",size:"16px"})]),_:2},1032,["href","aria-label"]),K("span",null,lt(O.meaning),1)]),K("div",Mv,[st(at,{id:O.id},null,8,["id"]),K("span",Ov,lt(O.transcriptions.map(l).join("; ")),1)])]))),128))]),K("div",bv,[K("span",Wv,lt(k.$t("hanziClientAddToClassroom1")),1),st(D,{name:"PlusIcon",size:"16px"}),K("span",Bv,lt(k.$t("hanziClientAddToClassroom2")),1),K("button",{onClick:v},lt(k.$t("hanziClientAddToClassroom3")),1)])]))}}}),Hv={class:"flex flex-col gap-4"},Uv={class:"flex flex-row items-center gap-3"},zv={class:"text-[30px] leading-[39px] lg:text-[36px] lg:leading-[46px]",lang:"zh"},Nv={class:"text-[15px] leading-[19px] lg:text-[17px] lg:leading-[22px] text-black/55"},qv={class:"text-[15px] leading-[19px] lg:text-[17px] lg:leading-[22px]"},Gv=Ve({__name:"PhrasesList",props:{word:{},phrases:{}},setup(c){const{hanziType:s}=Ps();return(r,l)=>{const h=Qr,d=Bg;return Y(),et("div",Hv,[st(h,null,{default:ct(()=>[Dt(lt(r.$t("hanziClientPhrasesTitle",[r.word])),1)]),_:1}),(Y(!0),et(Ee,null,gn(r.phrases,v=>(Y(),et("div",{key:v.id,class:"flex flex-col gap-[6px]"},[K("div",Uv,[K("div",zv,[st(d,null,{fallback:ct(()=>[Dt(lt(H(s)===("HANZI_SIMPLIFIED"in r?r.HANZI_SIMPLIFIED:H(qn))?v.phrase.simplified:v.phrase.traditional),1)]),default:ct(()=>[st(H(Wg),{"highlight-class-name":"bg-gray-300 rounded-[4px] mb-1","search-words":[r.word],"auto-escape":!0,"text-to-highlight":H(s)===("HANZI_SIMPLIFIED"in r?r.HANZI_SIMPLIFIED:H(qn))?v.phrase.simplified:v.phrase.traditional},null,8,["search-words","text-to-highlight"])]),_:2},1024)])]),K("div",Nv,lt(v.transcription),1),K("div",qv,lt(v.translation),1)]))),128))])}}});var Xr={exports:{}};/** 2 * @license 3 * Lodash <https://lodash.com/>
4 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> 5 * Released under MIT license <https://lodash.com/license> 6 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> 7 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 8 */Xr.exports;(function(c,s){(function(){var r,l="4.17.21",h=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",S="Invalid `variable` option passed into `_.template`",A="__lodash_hash_undefined__",k=500,L="__lodash_placeholder__",R=1,q=2,D=4,rt=1,at=2,O=1,W=2,ue=4,gt=8,wt=16,St=32,Ft=64,$t=128,le=256,be=512,mn=30,We="...",Qe=800,Kn=16,wn=1,Zn=2,Yn=3,ee=1/0,Yt=9007199254740991,he=17976931348623157e292,Xn=NaN,ne=4294967295,zu=ne-1,Nu=ne>>>1,qu=[["ary",$t],["bind",O],["bindKey",W],["curry",gt],["curryRight",wt],["flip",be],["partial",St],["partialRight",Ft],["rearg",le]],Je="[object Arguments]",Vn="[object Array]",Gu="[object AsyncFunction]",xn="[object Boolean]",yn="[object Date]",Ku="[object DOMException]",Qn="[object Error]",Jn="[object Function]",Ms="[object GeneratorFunction]",Xt="[object Map]",Sn="[object Number]",Zu="[object Null]",fe="[object Object]",Os="[object Promise]",Yu="[object Proxy]",Cn="[object RegExp]",Vt="[object Set]",An="[object String]",jn="[object Symbol]",Xu="[object Undefined]",kn="[object WeakMap]",Vu="[object WeakSet]",Pn="[object ArrayBuffer]",je="[object DataView]",Jr="[object Float32Array]",jr="[object Float64Array]",ti="[object Int8Array]",ei="[object Int16Array]",ni="[object Int32Array]",ri="[object Uint8Array]",ii="[object Uint8ClampedArray]",si="[object Uint16Array]",oi="[object Uint32Array]",Qu=/\b__p \+= '';/g,Ju=/\b(__p \+=) '' \+/g,ju=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bs=/&(?:amp|lt|gt|quot|#39);/g,Ws=/[&<>"']/g,tl=RegExp(bs.source),el=RegExp(Ws.source),nl=/<%-([\s\S]+?)%>/g,rl=/<%([\s\S]+?)%>/g,Bs=/<%=([\s\S]+?)%>/g,il=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sl=/^\w*$/,ol=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ai=/[\\^$.*+?()[\]{}|]/g,al=RegExp(ai.source),ui=/^\s+/,ul=/\s/,ll=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,hl=/\{\n\/\* \[wrapped with (.+)\] \*/,fl=/,? & /,cl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dl=/[()=,{}\[\]\/\s]/,_l=/\\(\\)?/g,pl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fs=/\w*$/,gl=/^[-+]0x[0-9a-f]+$/i,vl=/^0b[01]+$/i,ml=/^\[object .+?Constructor\]$/,wl=/^0o[0-7]+$/i,xl=/^(?:0|[1-9]\d*)$/,yl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 4,107 bytes, line 8
87f]/g,tr=/($^)/,Sl=/['\n\r\u2028\u2029\\]/g,er="\\ud800-\\udfff",Cl="\\u0300-\\u036f",Al="\\ufe20-\\ufe2f",kl="\\u20d0-\\u20ff",Hs=Cl+Al+kl,Us="\\u2700-\\u27bf",zs="a-z\\xdf-\\xf6\\xf8-\\xff",Pl="\\xac\\xb1\\xd7\\xf7",Tl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rl="\\u2000-\\u206f",Il=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ns="A-Z\\xc0-\\xd6\\xd8-\\xde",qs="\\ufe0e\\ufe0f",Gs=Pl+Tl+Rl+Il,li="['â]",Ll="["+er+"]",Ks="["+Gs+"]",nr="["+Hs+"]",Zs="\\d+",Dl="["+Us+"]",Ys="["+zs+"]",Xs="[^"+er+Gs+Zs+Us+zs+Ns+"]",hi="\\ud83c[\\udffb-\\udfff]",$l="(?:"+nr+"|"+hi+")",Vs="[^"+er+"]",fi="(?:\\ud83c[\\udde6-\\uddff]){2}",ci="[\\ud800-\\udbff][\\udc00-\\udfff]",tn="["+Ns+"]",Qs="\\u200d",Js="(?:"+Ys+"|"+Xs+")",El="(?:"+tn+"|"+Xs+")",js="(?:"+li+"(?:d|ll|m|re|s|t|ve))?",to="(?:"+li+"(?:D|LL|M|RE|S|T|VE))?",eo=$l+"?",no="["+qs+"]?",Ml="(?:"+Qs+"(?:"+[Vs,fi,ci].join("|")+")"+no+eo+")*",Ol="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ro=no+eo+Ml,Wl="(?:"+[Dl,fi,ci].join("|")+")"+ro,Bl="(?:"+[Vs+nr+"?",nr,fi,ci,Ll].join("|")+")",Fl=RegExp(li,"g"),Hl=RegExp(nr,"g"),di=RegExp(hi+"(?="+hi+")|"+Bl+ro,"g"),Ul=RegExp([tn+"?"+Ys+"+"+js+"(?="+[Ks,tn,"$"].join("|")+")",El+"+"+to+"(?="+[Ks,tn+Js,"$"].join("|")+")",tn+"?"+Js+"+"+js,tn+"+"+to,bl,Ol,Zs,Wl].join("|"),"g"),zl=RegExp("["+Qs+er+Hs+qs+"]"),Nl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ql=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Gl=-1,tt={};tt[Jr]=tt[jr]=tt[ti]=tt[ei]=tt[ni]=tt[ri]=tt[ii]=tt[si]=tt[oi]=!0,tt[Je]=tt[Vn]=tt[Pn]=tt[xn]=tt[je]=tt[yn]=tt[Qn]=tt[Jn]=tt[Xt]=tt[Sn]=tt[fe]=tt[Cn]=tt[Vt]=tt[An]=tt[kn]=!1;var j={};j[Je]=j[Vn]=j[Pn]=j[je]=j[xn]=j[yn]=j[Jr]=j[jr]=j[ti]=j[ei]=j[ni]=j[Xt]=j[Sn]=j[fe]=j[Cn]=j[Vt]=j[An]=j[jn]=j[ri]=j[ii]=j[si]=j[oi]=!0,j[Qn]=j[Jn]=j[kn]=!1;var Kl={Ã:"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",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"},Zl={"&":"&","<":"<",">":">",'"':""","'":"'"},Yl={"&":"&","<":"<",">":">",""":'"',"'":"'"},Xl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vl=parseFloat,Ql=parseInt,io=typeof zn=="object"&&zn&&zn.Object===Object&&zn,Jl=typeof self=="object"&&self&&self.Object===Object&&self,vt=io||Jl||Function("return this")(),_i=s&&!s.nodeType&&s,Be=_i&&!0&&c&&!c.nodeType&&c,so=Be&&Be.exports===_i,pi=so&&io.process,Ht=function(){try{var p=Be&&Be.require&&Be.require("util").t
vendor: 19,316 bytes, line 8
8ypes;return p||pi&&pi.binding&&pi.binding("util")}catch{}}(),oo=Ht&&Ht.isArrayBuffer,ao=Ht&&Ht.isDate,uo=Ht&&Ht.isMap,lo=Ht&&Ht.isRegExp,ho=Ht&&Ht.isSet,fo=Ht&&Ht.isTypedArray;function Et(p,w,m){switch(m.length){case 0:return p.call(w);case 1:return p.call(w,m[0]);case 2:return p.call(w,m[0],m[1]);case 3:return p.call(w,m[0],m[1],m[2])}return p.apply(w,m)}function jl(p,w,m,T){for(var b=-1,X=p==null?0:p.length;++b<X;){var dt=p[b];w(T,dt,m(dt),p)}return T}function Ut(p,w){for(var m=-1,T=p==null?0:p.length;++m<T&&w(p[m],m,p)!==!1;);return p}function th(p,w){for(var m=p==null?0:p.length;m--&&w(p[m],m,p)!==!1;);return p}function co(p,w){for(var m=-1,T=p==null?0:p.length;++m<T;)if(!w(p[m],m,p))return!1;return!0}function Ce(p,w){for(var m=-1,T=p==null?0:p.length,b=0,X=[];++m<T;){var dt=p[m];w(dt,m,p)&&(X[b++]=dt)}return X}function rr(p,w){var m=p==null?0:p.length;return!!m&&en(p,w,0)>-1}function gi(p,w,m){for(var T=-1,b=p==null?0:p.length;++T<b;)if(m(w,p[T]))return!0;return!1}function nt(p,w){for(var m=-1,T=p==null?0:p.length,b=Array(T);++m<T;)b[m]=w(p[m],m,p);return b}function Ae(p,w){for(var m=-1,T=w.length,b=p.length;++m<T;)p[b+m]=w[m];return p}function vi(p,w,m,T){var b=-1,X=p==null?0:p.length;for(T&&X&&(m=p[++b]);++b<X;)m=w(m,p[b],b,p);return m}function eh(p,w,m,T){var b=p==null?0:p.length;for(T&&b&&(m=p[--b]);b--;)m=w(m,p[b],b,p);return m}function mi(p,w){for(var m=-1,T=p==null?0:p.length;++m<T;)if(w(p[m],m,p))return!0;return!1}var nh=wi("length");function rh(p){return p.split("")}function ih(p){return p.match(cl)||[]}function _o(p,w,m){var T;return m(p,function(b,X,dt){if(w(b,X,dt))return T=X,!1}),T}function ir(p,w,m,T){for(var b=p.length,X=m+(T?1:-1);T?X--:++X<b;)if(w(p[X],X,p))return X;return-1}function en(p,w,m){return w===w?gh(p,w,m):ir(p,po,m)}function sh(p,w,m,T){for(var b=m-1,X=p.length;++b<X;)if(T(p[b],w))return b;return-1}function po(p){return p!==p}function go(p,w){var m=p==null?0:p.length;return m?yi(p,w)/m:Xn}function wi(p){return function(w){return w==null?r:w[p]}}function xi(p){return function(w){return p==null?r:p[w]}}function vo(p,w,m,T,b){return b(p,function(X,dt,J){m=T?(T=!1,X):w(m,X,dt,J)}),m}function oh(p,w){var m=p.length;for(p.sort(w);m--;)p[m]=p[m].value;return p}function yi(p,w){for(var m,T=-1,b=p.length;++T<b;){var X=w(p[T]);X!==r&&(m=m===r?X:m+X)}return m}function Si(p,w){for(var m=-1,T=Array(p);++m<p;)T[m]=w(m);return T}function ah(p,w){return nt(w,function(m){return[m,p[m]]})}function mo(p){return p&&p.slice(0,So(p)+1).replace(ui,"")}function Mt(p){return function(w){return p(w)}}function Ci(p,w){return nt(w,function(m){return p[m]})}function Tn(p,w){return p.has(w)}function wo(p,w){for(var m=-1,T=p.length;++m<T&&en(w,p[m],0)>-1;);return m}function xo(p,w){for(var m=p.length;m--&&en(w,p[m],0)>-1;);return m}function uh(p,w){for(var m=p.length,T=0;m--;)p[m]===w&&++T;return T}var lh=xi(Kl),hh=xi(Zl);function fh(p){return"\\"+Xl[p]}function ch(p,w){return p==null?r:p[w]}function nn(p){return zl.test(p)}function dh(p){return Nl.test(p)}function _h(p){for(var w,m=[];!(w=p.next()).done;)m.push(w.value);return m}function Ai(p){var w=-1,m=Array(p.size);return p.forEach(function(T,b){m[++w]=[b,T]}),m}function yo(p,w){return function(m){return p(w(m))}}function ke(p,w){for(var m=-1,T=p.length,b=0,X=[];++m<T;){var dt=p[m];(dt===w||dt===L)&&(p[m]=L,X[b++]=m)}return X}function sr(p){var w=-1,m=Array(p.size);return p.forEach(function(T){m[++w]=T}),m}function ph(p){var w=-1,m=Array(p.size);return p.forEach(function(T){m[++w]=[T,T]}),m}function gh(p,w,m){for(var T=m-1,b=p.length;++T<b;)if(p[T]===w)return T;return-1}function vh(p,w,m){for(var T=m+1;T--;)if(p[T]===w)return T;return T}function rn(p){return nn(p)?wh(p):nh(p)}function Qt(p){return nn(p)?xh(p):rh(p)}function So(p){for(var w=p.length;w--&&ul.test(p.charAt(w)););return w}var mh=xi(Yl);function wh(p){for(var w=di.lastIndex=0;di.test(p);)++w;return w}function xh(p){return p.match(di)||[]}function yh(p){return p.match(Ul)||[]}var Sh=function p(w){w=w==null?vt:sn.defaults(vt.Object(),w,sn.pick(vt,ql));var m=w.Array,T=w.Date,b=w.Error,X=w.Function,dt=w.Math,J=w.Object,ki=w.RegExp,Ch=w.String,zt=w.TypeError,or=m.prototype,Ah=X.prototype,on=J.prototype,ar=w["__core-js_shared__"],ur=Ah.toString,Q=on.hasOwnProperty,kh=0,Co=function(){var t=/[^.]+$/.exec(ar&&ar.keys&&ar.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),lr=on.toString,Ph=ur.call(J),Th=vt._,Rh=ki("^"+ur.call(Q).replace(ai,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hr=so?w.Buffer:r,Pe=w.Symbol,fr=w.Uint8Array,Ao=hr?hr.allocUnsafe:r,cr=yo(J.getPrototypeOf,J),ko=J.create,Po=on.propertyIsEnumerable,dr=or.splice,To=Pe?Pe.isConcatSpreadable:r,Rn=Pe?Pe.iterator:r,Fe=Pe?Pe.toStringTag:r,_r=function(){try{var t=qe(J,"defineProperty");return t({},"",{}),t}catch{}}(),Ih=w.clearTimeout!==vt.clearTimeout&&w.clearTimeout,Lh=T&&T.now!==vt.Date.now&&T.now,Dh=w.setTimeout!==vt.setTimeout&&w.setTimeout,pr=dt.ceil,gr=dt.floor,Pi=J.getOwnPropertySymbols,$h=hr?hr.isBuffer:r,Ro=w.isFinite,Eh=or.join,Mh=yo(J.keys,J),_t=dt.max,xt=dt.min,Oh=T.now,bh=w.parseInt,Io=dt.random,Wh=or.reverse,Ti=qe(w,"DataView"),In=qe(w,"Map"),Ri=qe(w,"Promise"),an=qe(w,"Set"),Ln=qe(w,"WeakMap"),Dn=qe(J,"create"),vr=Ln&&new Ln,un={},Bh=Ge(Ti),Fh=Ge(In),Hh=Ge(Ri),Uh=Ge(an),zh=Ge(Ln),mr=Pe?Pe.prototype:r,$n=mr?mr.valueOf:r,Lo=mr?mr.toString:r;function a(t){if(ut(t)&&!B(t)&&!(t instanceof G)){if(t instanceof Nt)return t;if(Q.call(t,"__wrapped__"))return Da(t)}return new Nt(t)}var ln=function(){function t(){}return function(e){if(!it(e))return{};if(ko)return ko(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function wr(){}function Nt(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}a.templateSettings={escape:nl,evaluate:rl,interpolate:Bs,variable:"",imports:{_:a}},a.prototype=wr.prototype,a.prototype.constructor=a,Nt.prototype=ln(wr.prototype),Nt.prototype.constructor=Nt;function G(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ne,this.__views__=[]}function Nh(){var t=new G(this.__wrapped__);return t.__actions__=Tt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Tt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Tt(this.__views__),t}function qh(){if(this.__filtered__){var t=new G(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Gh(){var t=this.__wrapped__.value(),e=this.__dir__,n=B(t),i=e<0,o=n?t.length:0,u=ic(0,o,this.__views__),f=u.start,_=u.end,g=_-f,x=i?_:f-1,y=this.__iteratees__,C=y.length,P=0,I=xt(g,this.__takeCount__);if(!n||!i&&o==g&&I==g)return ta(t,this.__actions__);var E=[];t:for(;g--&&P<I;){x+=e;for(var U=-1,M=t[x];++U<C;){var N=y[U],Z=N.iteratee,Wt=N.type,kt=Z(M);if(Wt==Zn)M=kt;else if(!kt){if(Wt==wn)continue t;break t}}E[P++]=M}return E}G.prototype=ln(wr.prototype),G.prototype.constructor=G;function He(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Kh(){this.__data__=Dn?Dn(null):{},this.size=0}function Zh(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Yh(t){var e=this.__data__;if(Dn){var n=e[t];return n===A?r:n}return Q.call(e,t)?e[t]:r}function Xh(t){var e=this.__data__;return Dn?e[t]!==r:Q.call(e,t)}function Vh(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Dn&&e===r?A:e,this}He.prototype.clear=Kh,He.prototype.delete=Zh,He.prototype.get=Yh,He.prototype.has=Xh,He.prototype.set=Vh;function ce(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Qh(){this.__data__=[],this.size=0}function Jh(t){var e=this.__data__,n=xr(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():dr.call(e,n,1),--this.size,!0}function jh(t){var e=this.__data__,n=xr(e,t);return n<0?r:e[n][1]}function tf(t){return xr(this.__data__,t)>-1}function ef(t,e){var n=this.__data__,i=xr(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}ce.prototype.clear=Qh,ce.prototype.delete=Jh,ce.prototype.get=jh,ce.prototype.has=tf,ce.prototype.set=ef;function de(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function nf(){this.size=0,this.__data__={hash:new He,map:new(In||ce),string:new He}}function rf(t){var e=$r(this,t).delete(t);return this.size-=e?1:0,e}function sf(t){return $r(this,t).get(t)}function of(t){return $r(this,t).has(t)}function af(t,e){var n=$r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}de.prototype.clear=nf,de.prototype.delete=rf,de.prototype.get=sf,de.prototype.has=of,de.prototype.set=af;function Ue(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new de;++e<n;)this.add(t[e])}function uf(t){return this.__data__.set(t,A),this}function lf(t){return this.__data__.has(t)}Ue.prototype.add=Ue.prototype.push=uf,Ue.prototype.has=lf;function Jt(t){var e=this.__data__=new ce(t);this.size=e.size}function hf(){this.__data__=new ce,this.size=0}function ff(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function cf(t){return this.__data__.get(t)}function df(t){return this.__data__.has(t)}function _f(t,e){var n=this.__data__;if(n instanceof ce){var i=n.__data__;if(!In||i.length<h-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new de(i)}return n.set(t,e),this.size=n.size,this}Jt.prototype.clear=hf,Jt.prototype.delete=ff,Jt.prototype.get=cf,Jt.prototype.has=df,Jt.prototype.set=_f;function Do(t,e){var n=B(t),i=!n&&Ke(t),o=!n&&!i&&De(t),u=!n&&!i&&!o&&dn(t),f=n||i||o||u,_=f?Si(t.length,Ch):[],g=_.length;for(var x in t)(e||Q.call(t,x))&&!(f&&(x=="length"||o&&(x=="offset"||x=="parent")||u&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||ve(x,g)))&&_.push(x);return _}function $o(t){var e=t.length;return e?t[Fi(0,e-1)]:r}function pf(t,e){return Er(Tt(t),ze(e,0,t.length))}function gf(t){return Er(Tt(t))}function Ii(t,e,n){(n!==r&&!jt(t[e],n)||n===r&&!(e in t))&&_e(t,e,n)}function En(t,e,n){var i=t[e];(!(Q.call(t,e)&&jt(i,n))||n===r&&!(e in t))&&_e(t,e,n)}function xr(t,e){for(var n=t.length;n--;)if(jt(t[n][0],e))return n;return-1}function vf(t,e,n,i){return Te(t,function(o,u,f){e(i,o,n(o),f)}),i}function Eo(t,e){return t&&ie(e,pt(e),t)}function mf(t,e){return t&&ie(e,It(e),t)}function _e(t,e,n){e=="__proto__"&&_r?_r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Li(t,e){for(var n=-1,i=e.length,o=m(i),u=t==null;++n<i;)o[n]=u?r:hs(t,e[n]);return o}function ze(t,e,n){return t===t&&(n!==r&&(t=t<=n?t:n),e!==r&&(t=t>=e?t:e)),t}function qt(t,e,n,i,o,u){var f,_=e&R,g=e&q,x=e&D;if(n&&(f=o?n(t,i,o,u):n(t)),f!==r)return f;if(!it(t))return t;var y=B(t);if(y){if(f=oc(t),!_)return Tt(t,f)}else{var C=yt(t),P=C==Jn||C==Ms;if(De(t))return ra(t,_);if(C==fe||C==Je||P&&!o){if(f=g||P?{}:Sa(t),!_)return g?Xf(t,mf(f,t)):Yf(t,Eo(f,t))}else{if(!j[C])return o?t:{};f=ac(t,C,_)}}u||(u=new Jt);var I=u.get(t);if(I)return I;u.set(t,f),Qa(t)?t.forEach(function(M){f.add(qt(M,e,n,M,t,u))}):Xa(t)&&t.forEach(function(M,N){f.set(N,qt(M,e,n,N,t,u))});var E=x?g?Vi:Xi:g?It:pt,U=y?r:E(t);return Ut(U||t,function(M,N){U&&(N=M,M=t[N]),En(f,N,qt(M,e,n,N,t,u))}),f}function wf(t){var e=pt(t);return function(n){return Mo(n,t,e)}}function Mo(t,e,n){var i=n.length;if(t==null)return!i;for(t=J(t);i--;){var o=n[i],u=e[o],f=t[o];if(f===r&&!(o in t)||!u(f))return!1}return!0}function Oo(t,e,n){if(typeof t!="function")throw new zt(v);return Hn(function(){t.apply(r,n)},e)}function Mn(t,e,n,i){var o=-1,u=rr,f=!0,_=t.length,g=[],x=e.length;if(!_)return g;n&&(e=nt(e,Mt(n))),i?(u=gi,f=!1):e.length>=h&&(u=Tn,f=!1,e=new Ue(e));t:for(;++o<_;){var y=t[o],C=n==null?y:n(y);if(y=i||y!==0?y:0,f&&C===C){for(var P=x;P--;)if(e[P]===C)continue t;g.push(y)}else u(e,C,i)||g.push(y)}return g}var Te=ua(re),bo=ua($i,!0);function xf(t,e){var n=!0;return Te(t,function(i,o,u){return n=!!e(i,o,u),n}),n}function yr(t,e,n){for(var i=-1,o=t.length;++i<o;){var u=t[i],f=e(u);if(f!=null&&(_===r?f===f&&!bt(f):n(f,_)))var _=f,g=u}return g}function yf(t,e,n,i){var o=t.length;for(n=F(n),n<0&&(n=-n>o?0:o+n),i=i===r||i>o?o:F(i),i<0&&(i+=o),i=n>i?0:ja(i);n<i;)t[n++]=e;return t}function Wo(t,e){var n=[];return Te(t,function(i,o,u){e(i,o,u)&&n.push(i)}),n}function mt(t,e,n,i,o){var u=-1,f=t.length;for(n||(n=lc),o||(o=[]);++u<f;){var _=t[u];e>0&&n(_)?e>1?mt(_,e-1,n,i,o):Ae(o,_):i||(o[o.length]=_)}return o}var Di=la(),Bo=la(!0);function re(t,e){return t&&Di(t,e,pt)}function $i(t,e){return t&&Bo(t,e,pt)}function Sr(t,e){return Ce(e,function(n){return me(t[n])})}function Ne(t,e){e=Ie(e,t);for(var n=0,i=e.length;t!=null&&n<i;)t=t[se(e[n++])];return n&&n==i?t:r}function Fo(t,e,n){var i=e(t);return B(t)?i:Ae(i,n(t))}function Ct(t){return t==null?t===r?Xu:Zu:Fe&&Fe in J(t)?rc(t):gc(t)}function Ei(t,e){return t>e}function Sf(t,e){return t!=null&&Q.call(t,e)}function Cf(t,e){return t!=null&&e in J(t)}function Af(t,e,n){return t>=xt(e,n)&&t<_t(e,n)}function Mi(t,e,n){for(var i=n?gi:rr,o=t[0].length,u=t.length,f=u,_=m(u),g=1/0,x=[];f--;){var y=t[f];f&&e&&(y=nt(y,Mt(e))),g=xt(y.length,g),_[f]=!n&&(e||o>=120&&y.length>=120)?new Ue(f&&y):r}y=t[0];var C=-1,P=_[0];t:for(;++C<o&&x.length<g;){var I=y[C],E=e?e(I):I;if(I=n||I!==0?I:0,!(P?Tn(P,E):i(x,E,n))){for(f=u;--f;){var U=_[f];if(!(U?Tn(U,E):i(t[f],E,n)))continue t}P&&P.push(E),x.push(I)}}return x}function kf(t,e,n,i){return re(t,function(o,u,f){e(i,n(o),u,f)}),i}function On(t,e,n){e=Ie(e,t),t=Pa(t,e);var i=t==null?t:t[se(Kt(e))];return i==null?r:Et(i,t,n)}function Ho(t){return ut(t)&&Ct(t)==Je}function Pf(t){return ut(t)&&Ct(t)==Pn}function Tf(t){return ut(t)&&Ct(t)==yn}function bn(t,e,n,i,o){return t===e?!0:t==null||e==null||!ut(t)&&!ut(e)?t!==t&&e!==e:Rf(t,e,n,i,bn,o)}function Rf(t,e,n,i,o,u){var f=B(t),_=B(e),g=f?Vn:yt(t),x=_?Vn:yt(e);g=g==Je?fe:g,x=x==Je?fe:x;var y=g==fe,C=x==fe,P=g==x;if(P&&De(t)){if(!De(e))return!1;f=!0,y=!1}if(P&&!y)return u||(u=new Jt),f||dn(t)?wa(t,e,n,i,o,u):ec(t,e,g,n,i,o,u);if(!(n&rt)){var I=y&&Q.call(t,"__wrapped__"),E=C&&Q.call(e,"__wrapped__");if(I||E){var U=I?t.value():t,M=E?e.value():e;return u||(u=new Jt),o(U,M,n,i,u)}}return P?(u||(u=new Jt),nc(t,e,n,i,o,u)):!1}function If(t){return ut(t)&&yt(t)==Xt}function Oi(t,e,n,i){var o=n.length,u=o,f=!i;if(t==null)return!u;for(t=J(t);o--;){var _=n[o];if(f&&_[2]?_[1]!==t[_[0]]:!(_[0]in t))return!1}for(;++o<u;){_=n[o];var g=_[0],x=t[g],y=_[1];if(f&&_[2]){if(x===r&&!(g in t))return!1}else{var C=new Jt;if(i)var P=i(x,y,g,t,e,C);if(!(P===r?bn(y,x,rt|at,i,C):P))return!1}}return!0}function Uo(t){if(!it(t)||fc(t))return!1;var e=me(t)?Rh:ml;return e.test(Ge(t))}function Lf(t){return ut(t)&&Ct(t)==Cn}function Df(t){return ut(t)&&yt(t)==Vt}function $f(t){return ut(t)&&Fr(t.length)&&!!tt[Ct(t)]}function zo(t){return typeof t=="function"?t:t==null?Lt:typeof t=="object"?B(t)?Go(t[0],t[1]):qo(t):hu(t)}function bi(t){if(!Fn(t))return Mh(t);var e=[];for(var n in J(t))Q.call(t,n)&&n!="constructor"&&e.push(n);return e}function Ef(t){if(!it(t))return pc(t);var e=Fn(t),n=[];for(var i in t)i=="constructor"&&(e||!Q.call(t,i))||n.push(i);return n}function Wi(t,e){return t<e}function No(t,e){var n=-1,i=Rt(t)?m(t.length):[];return Te(t,function(o,u,f){i[++n]=e(o,u,f)}),i}function qo(t){var e=Ji(t);return e.length==1&&e[0][2]?Aa(e[0][0],e[0][1]):function(n){return n===t||Oi(n,t,e)}}function Go(t,e){return ts(t)&&Ca(e)?Aa(se(t),e):function(n){var i=hs(n,t);return i===r&&i===e?fs(n,t):bn(e,i,rt|at)}}function Cr(t,e,n,i,o){t!==e&&Di(e,function(u,f){if(o||(o=new Jt),it(u))Mf(t,e,f,n,Cr,i,o);else{var _=i?i(ns(t,f),u,f+"",t,e,o):r;_===r&&(_=u),Ii(t,f,_)}},It)}function Mf(t,e,n,i,o,u,f){var _=ns(t,n),g=ns(e,n),x=f.get(g);if(x){Ii(t,n,x);return}var y=u?u(_,g,n+"",t,e,f):r,C=y===r;if(C){var P=B(g),I=!P&&De(g),E=!P&&!I&&dn(g);y=g,P||I||E?B(_)?y=_:ht(_)?y=Tt(_):I?(C=!1,y=ra(g,!0)):E?(C=!1,y=ia(g,!0)):y=[]:Un(g)||Ke(g)?(y=_,Ke(_)?y=tu(_):(!it(_)||me(_))&&(y=Sa(g))):C=!1}C&&(f.set(g,y),o(y,g,i,u,f),f.delete(g)),Ii(t,n,y)}function Ko(t,e){var n=t.length;if(n)return e+=e<0?n:0,ve(e,n)?t[e]:r}function Zo(t,e,n){e.length?e=nt(e,function(u){return B(u)?function(f){return Ne(f,u.length===1?u[0]:u)}:u}):e=[Lt];var i=-1;e=nt(e,Mt($()));var o=No(t,function(u,f,_){var g=nt(e,function(x){return x(u)});return{criteria:g,index:++i,value:u}});return oh(o,function(u,f){return Zf(u,f,n)})}function Of(t,e){return Yo(t,e,function(n,i){return fs(t,i)})}function Yo(t,e,n){for(var i=-1,o=e.length,u={};++i<o;){var f=e[i],_=Ne(t,f);n(_,f)&&Wn(u,Ie(f,t),_)}return u}function bf(t){return function(e){return Ne(e,t)}}function Bi(t,e,n,i){var o=i?sh:en,u=-1,f=e.length,_=t;for(t===e&&(e=Tt(e)),n&&(_=nt(t,Mt(n)));++u<f;)for(var g=0,x=e[u],y=n?n(x):x;(g=o(_,y,g,i))>-1;)_!==t&&dr.call(_,g,1),dr.call(t,g,1);return t}function Xo(t,e){for(var n=t?e.length:0,i=n-1;n--;){var o=e[n];if(n==i||o!==u){var u=o;ve(o)?dr.call(t,o,1):zi(t,o)}}return t}function Fi(t,e){return t+gr(Io()*(e-t+1))}function Wf(t,e,n,i){for(var o=-1,u=_t(pr((e-t)/(n||1)),0),f=m(u);u--;)f[i?u:++o]=t,t+=n;return f}function Hi(t,e){var n="";if(!t||e<1||e>Yt)return n;do e%2&&(n+=t),e=gr(e/2),e&&(t+=t);while(e);return n}function z(t,e){return rs(ka(t,e,Lt),t+"")}function Bf(t){return $o(_n(t))}function Ff(t,e){var n=_n(t);return Er(n,ze(e,0,n.length))}function Wn(t,e,n,i){if(!it(t))return t;e=Ie(e,t);for(var o=-1,u=e.length,f=u-1,_=t;_!=null&&++o<u;){var g=se(e[o]),x=n;if(g==="__proto__"||g==="constructor"||g==="prototype")return t;if(o!=f){var y=_[g];x=i?i(y,g,_):r,x===r&&(x=it(y)?y:ve(e[o+1])?[]:{})}En(_,g,x),_=_[g]}return t}var Vo=vr?function(t,e){return vr.set(t,e),t}:Lt,Hf=_r?function(t,e){return _r(t,"toString",{configurable:!0,enumerable:!1,value:ds(e),writable:!0})}:Lt;function Uf(t){return Er(_n(t))}function Gt(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var u=m(o);++i<o;)u[i]=t[i+e];return u}function zf(t,e){var n;return Te(t,function(i,o,u){return n=e(i,o,u),!n}),!!n}function Ar(t,e,n){var i=0,o=t==null?i:t.length;if(typeof e=="number"&&e===e&&o<=Nu){for(;i<o;){var u=i+o>>>1,f=t[u];f!==null&&!bt(f)&&(n?f<=e:f<e)?i=u+1:o=u}return o}return Ui(t,e,Lt,n)}function Ui(t,e,n,i){var o=0,u=t==null?0:t.length;if(u===0)return 0;e=n(e);for(var f=e!==e,_=e===null,g=bt(e),x=e===r;o<u;){var y=gr((o+u)/2),C=n(t[y]),P=C!==r,I=C===null,E=C===C,U=bt(C);if(f)var M=i||E;else x?M=E&&(i||P):_?M=E&&P&&(i||!I):g?M=E&&P&&!I&&(i||!U):I||U?M=!1:M=i?C<=e:C<e;M?o=y+1:u=y}return xt(u,zu)}function Qo(t,e){for(var n=-1,i=t.length,o=0,u=[];++n<i;){var f=t[n],_=e?e(f):f;if(!n||!jt(_,g)){var g=_;u[o++]=f===0?0:f}}return u}function Jo(t){return typeof t=="number"?t:bt(t)?Xn:+t}function Ot(t){if(typeof t=="string")return t;if(B(t))return nt(t,Ot)+"";if(bt(t))return Lo?Lo.call(t):"";var e=t+"";return e=="0"&&1/t==-ee?"-0":e}function Re(t,e,n){var i=-1,o=rr,u=t.length,f=!0,_=[],g=_;if(n)f=!1,o=gi;else if(u>=h){var x=e?null:jf(t);if(x)return sr(x);f=!1,o=Tn,g=new Ue}else g=e?[]:_;t:for(;++i<u;){var y=t[i],C=e?e(y):y;if(y=n||y!==0?y:0,f&&C===C){for(var P=g.length;P--;)if(g[P]===C)continue t;e&&g.push(C),_.push(y)}else o(g,C,n)||(g!==_&&g.push(C),_.push(y))}return _}function zi(t,e){return e=Ie(e,t),t=Pa(t,e),t==null||delete t[se(Kt(e))]}function jo(t,e,n,i){return Wn(t,e,n(Ne(t,e)),i)}function kr(t,e,n,i){for(var o=t.length,u=i?o:-1;
vendor: 4,132 bytes, line 8
8(i?u--:++u<o)&&e(t[u],u,t););return n?Gt(t,i?0:u,i?u+1:o):Gt(t,i?u+1:0,i?o:u)}function ta(t,e){var n=t;return n instanceof G&&(n=n.value()),vi(e,function(i,o){return o.func.apply(o.thisArg,Ae([i],o.args))},n)}function Ni(t,e,n){var i=t.length;if(i<2)return i?Re(t[0]):[];for(var o=-1,u=m(i);++o<i;)for(var f=t[o],_=-1;++_<i;)_!=o&&(u[o]=Mn(u[o]||f,t[_],e,n));return Re(mt(u,1),e,n)}function ea(t,e,n){for(var i=-1,o=t.length,u=e.length,f={};++i<o;){var _=i<u?e[i]:r;n(f,t[i],_)}return f}function qi(t){return ht(t)?t:[]}function Gi(t){return typeof t=="function"?t:Lt}function Ie(t,e){return B(t)?t:ts(t,e)?[t]:La(V(t))}var Nf=z;function Le(t,e,n){var i=t.length;return n=n===r?i:n,!e&&n>=i?t:Gt(t,e,n)}var na=Ih||function(t){return vt.clearTimeout(t)};function ra(t,e){if(e)return t.slice();var n=t.length,i=Ao?Ao(n):new t.constructor(n);return t.copy(i),i}function Ki(t){var e=new t.constructor(t.byteLength);return new fr(e).set(new fr(t)),e}function qf(t,e){var n=e?Ki(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Gf(t){var e=new t.constructor(t.source,Fs.exec(t));return e.lastIndex=t.lastIndex,e}function Kf(t){return $n?J($n.call(t)):{}}function ia(t,e){var n=e?Ki(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function sa(t,e){if(t!==e){var n=t!==r,i=t===null,o=t===t,u=bt(t),f=e!==r,_=e===null,g=e===e,x=bt(e);if(!_&&!x&&!u&&t>e||u&&f&&g&&!_&&!x||i&&f&&g||!n&&g||!o)return 1;if(!i&&!u&&!x&&t<e||x&&n&&o&&!i&&!u||_&&n&&o||!f&&o||!g)return-1}return 0}function Zf(t,e,n){for(var i=-1,o=t.criteria,u=e.criteria,f=o.length,_=n.length;++i<f;){var g=sa(o[i],u[i]);if(g){if(i>=_)return g;var x=n[i];return g*(x=="desc"?-1:1)}}return t.index-e.index}function oa(t,e,n,i){for(var o=-1,u=t.length,f=n.length,_=-1,g=e.length,x=_t(u-f,0),y=m(g+x),C=!i;++_<g;)y[_]=e[_];for(;++o<f;)(C||o<u)&&(y[n[o]]=t[o]);for(;x--;)y[_++]=t[o++];return y}function aa(t,e,n,i){for(var o=-1,u=t.length,f=-1,_=n.length,g=-1,x=e.length,y=_t(u-_,0),C=m(y+x),P=!i;++o<y;)C[o]=t[o];for(var I=o;++g<x;)C[I+g]=e[g];for(;++f<_;)(P||o<u)&&(C[I+n[f]]=t[o++]);return C}function Tt(t,e){var n=-1,i=t.length;for(e||(e=m(i));++n<i;)e[n]=t[n];return e}function ie(t,e,n,i){var o=!n;n||(n={});for(var u=-1,f=e.length;++u<f;){var _=e[u],g=i?i(n[_],t[_],_,n,t):r;g===r&&(g=t[_]),o?_e(n,_,g):En(n,_,g)}return n}function Yf(t,e){return ie(t,ji(t),e)}function Xf(t,e){return ie(t,xa(t),e)}function Pr(t,e){return function(n,i){var o=B(n)?jl:vf,u=e?e():{};return o(n,t,$(i,2),u)}}function hn(t){return z(function(e,n){var i=-1,o=n.length,u=o>1?n[o-1]:r,f=o>2?n[2]:r;for(u=t.length>3&&typeof u=="function"?(o--,u):r,f&&At(n[0],n[1],f)&&(u=o<3?r:u,o=1),e=J(e);++i<o;){var _=n[i];_&&t(e,_,i,u)}return e})}function ua(t,e){return function(n,i){if(n==null)return n;if(!Rt(n))return t(n,i);for(var o=n.length,u=e?o:-1,f=J(n);(e?u--:++u<o)&&i(f[u],u,f)!==!1;);return n}}function la(t){return function(e,n,i){for(var o=-1,u=J(e),f=i(e),_=f.length;_--;){var g=f[t?_:++o];if(n(u[g],g,u)===!1)break}return e}}function Vf(t,e,n){var i=e&O,o=Bn(t);function u(){var f=this&&this!==vt&&this instanceof u?o:t;return f.apply(i?n:this,arguments)}return u}function ha(t){return function(e){e=V(e);var n=nn(e)?Qt(e):r,i=n?n[0]:e.charAt(0),o=n?Le(n,1).join(""):e.slice(1);return i[t]()+o}}function fn(t){return function(e){return vi(uu(au(e).replace(Fl,"")),t,"")}}function Bn(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=ln(t.prototype),i=t.apply(n,e);return it(i)?i:n}}function Qf(t,e,n){var i=Bn(t);function o(){for(var u=arguments.length,f=m(u),_=u,g=cn(o);_--;)f[_]=arguments[_];var x=u<3&&f[0]!==g&&f[u-1]!==g?[]:ke(f,g);if(u-=x.length,u<n)return pa(t,e,Tr,o.placeholder,r,f,x,r,r,n-u);var y=this&&this!==vt&&this instanceof o?i:t;return Et(y,this,f)}return o}function fa(t){return function(e,n,i){var o=J(e);
vendor: 14,031 bytes, lines 8-10
8if(!Rt(e)){var u=$(n,3);e=pt(e),n=function(_){return u(o[_],_,o)}}var f=t(e,n,i);return f>-1?o[u?e[f]:f]:r}}function ca(t){return ge(function(e){var n=e.length,i=n,o=Nt.prototype.thru;for(t&&e.reverse();i--;){var u=e[i];if(typeof u!="function")throw new zt(v);if(o&&!f&&Dr(u)=="wrapper")var f=new Nt([],!0)}for(i=f?i:n;++i<n;){u=e[i];var _=Dr(u),g=_=="wrapper"?Qi(u):r;g&&es(g[0])&&g[1]==($t|gt|St|le)&&!g[4].length&&g[9]==1?f=f[Dr(g[0])].apply(f,g[3]):f=u.length==1&&es(u)?f[_]():f.thru(u)}return function(){var x=arguments,y=x[0];if(f&&x.length==1&&B(y))return f.plant(y).value();for(var C=0,P=n?e[C].apply(this,x):y;++C<n;)P=e[C].call(this,P);return P}})}function Tr(t,e,n,i,o,u,f,_,g,x){var y=e&$t,C=e&O,P=e&W,I=e&(gt|wt),E=e&be,U=P?r:Bn(t);function M(){for(var N=arguments.length,Z=m(N),Wt=N;Wt--;)Z[Wt]=arguments[Wt];if(I)var kt=cn(M),Bt=uh(Z,kt);if(i&&(Z=oa(Z,i,o,I)),u&&(Z=aa(Z,u,f,I)),N-=Bt,I&&N<x){var ft=ke(Z,kt);return pa(t,e,Tr,M.placeholder,n,Z,ft,_,g,x-N)}var te=C?n:this,xe=P?te[t]:t;return N=Z.length,_?Z=vc(Z,_):E&&N>1&&Z.reverse(),y&&g<N&&(Z.length=g),this&&this!==vt&&this instanceof M&&(xe=U||Bn(xe)),xe.apply(te,Z)}return M}function da(t,e){return function(n,i){return kf(n,t,e(i),{})}}function Rr(t,e){return function(n,i){var o;if(n===r&&i===r)return e;if(n!==r&&(o=n),i!==r){if(o===r)return i;typeof n=="string"||typeof i=="string"?(n=Ot(n),i=Ot(i)):(n=Jo(n),i=Jo(i)),o=t(n,i)}return o}}function Zi(t){return ge(function(e){return e=nt(e,Mt($())),z(function(n){var i=this;return t(e,function(o){return Et(o,i,n)})})})}function Ir(t,e){e=e===r?" ":Ot(e);var n=e.length;if(n<2)return n?Hi(e,t):e;var i=Hi(e,pr(t/rn(e)));return nn(e)?Le(Qt(i),0,t).join(""):i.slice(0,t)}function Jf(t,e,n,i){var o=e&O,u=Bn(t);function f(){for(var _=-1,g=arguments.length,x=-1,y=i.length,C=m(y+g),P=this&&this!==vt&&this instanceof f?u:t;++x<y;)C[x]=i[x];for(;g--;)C[x++]=arguments[++_];return Et(P,o?n:this,C)}return f}function _a(t){return function(e,n,i){return i&&typeof i!="number"&&At(e,n,i)&&(n=i=r),e=we(e),n===r?(n=e,e=0):n=we(n),i=i===r?e<n?1:-1:we(i),Wf(e,n,i,t)}}function Lr(t){return function(e,n){return typeof e=="string"&&typeof n=="string"||(e=Zt(e),n=Zt(n)),t(e,n)}}function pa(t,e,n,i,o,u,f,_,g,x){var y=e>,C=y?f:r,P=y?r:f,I=y?u:r,E=y?r:u;e|=y?St:Ft,e&=~(y?Ft:St),e&ue||(e&=~(O|W));var U=[t,e,o,I,C,E,P,_,g,x],M=n.apply(r,U);return es(t)&&Ta(M,U),M.placeholder=i,Ra(M,t,e)}function Yi(t){var e=dt[t];return function(n,i){if(n=Zt(n),i=i==null?0:xt(F(i),292),i&&Ro(n)){var o=(V(n)+"e").split("e"),u=e(o[0]+"e"+(+o[1]+i));return o=(V(u)+"e").split("e"),+(o[0]+"e"+(+o[1]-i))}return e(n)}}var jf=an&&1/sr(new an([,-0]))[1]==ee?function(t){return new an(t)}:gs;function ga(t){return function(e){var n=yt(e);return n==Xt?Ai(e):n==Vt?ph(e):ah(e,t(e))}}function pe(t,e,n,i,o,u,f,_){var g=e&W;if(!g&&typeof t!="function")throw new zt(v);var x=i?i.length:0;if(x||(e&=~(St|Ft),i=o=r),f=f===r?f:_t(F(f),0),_=_===r?_:F(_),x-=o?o.length:0,e&Ft){var y=i,C=o;i=o=r}var P=g?r:Qi(t),I=[t,e,n,i,o,y,C,u,f,_];if(P&&_c(I,P),t=I[0],e=I[1],n=I[2],i=I[3],o=I[4],_=I[9]=I[9]===r?g?0:t.length:_t(I[9]-x,0),!_&&e&(gt|wt)&&(e&=~(gt|wt)),!e||e==O)var E=Vf(t,e,n);else e==gt||e==wt?E=Qf(t,e,_):(e==St||e==(O|St))&&!o.length?E=Jf(t,e,n,i):E=Tr.apply(r,I);var U=P?Vo:Ta;return Ra(U(E,I),t,e)}function va(t,e,n,i){return t===r||jt(t,on[n])&&!Q.call(i,n)?e:t}function ma(t,e,n,i,o,u){return it(t)&&it(e)&&(u.set(e,t),Cr(t,e,r,ma,u),u.delete(e)),t}function tc(t){return Un(t)?r:t}function wa(t,e,n,i,o,u){var f=n&rt,_=t.length,g=e.length;if(_!=g&&!(f&&g>_))return!1;var x=u.get(t),y=u.get(e);if(x&&y)return x==e&&y==t;var C=-1,P=!0,I=n&at?new Ue:r;for(u.set(t,e),u.set(e,t);++C<_;){var E=t[C],U=e[C];if(i)var M=f?i(U,E,C,e,t,u):i(E,U,C,t,e,u);if(M!==r){if(M)continue;P=!1;break}if(I){if(!mi(e,function(N,Z){if(!Tn(I,Z)&&(E===N||o(E,N,n,i,u)))return I.push(Z)})){P=!1;break}}else if(!(E===U||o(E,U,n,i,u))){P=!1;break}}return u.delete(t),u.delete(e),P}function ec(t,e,n,i,o,u,f){switch(n){case je:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Pn:return!(t.byteLength!=e.byteLength||!u(new fr(t),new fr(e)));case xn:case yn:case Sn:return jt(+t,+e);case Qn:return t.name==e.name&&t.message==e.message;case Cn:case An:return t==e+"";case Xt:var _=Ai;case Vt:var g=i&rt;if(_||(_=sr),t.size!=e.size&&!g)return!1;var x=f.get(t);if(x)return x==e;i|=at,f.set(t,e);var y=wa(_(t),_(e),i,o,u,f);return f.delete(t),y;case jn:if($n)return $n.call(t)==$n.call(e)}return!1}function nc(t,e,n,i,o,u){var f=n&rt,_=Xi(t),g=_.length,x=Xi(e),y=x.length;if(g!=y&&!f)return!1;for(var C=g;C--;){var P=_[C];if(!(f?P in e:Q.call(e,P)))return!1}var I=u.get(t),E=u.get(e);if(I&&E)return I==e&&E==t;var U=!0;u.set(t,e),u.set(e,t);for(var M=f;++C<g;){P=_[C];var N=t[P],Z=e[P];if(i)var Wt=f?i(Z,N,P,e,t,u):i(N,Z,P,t,e,u);if(!(Wt===r?N===Z||o(N,Z,n,i,u):Wt)){U=!1;break}M||(M=P=="constructor")}if(U&&!M){var kt=t.constructor,Bt=e.constructor;kt!=Bt&&"constructor"in t&&"constructor"in e&&!(typeof kt=="function"&&kt instanceof kt&&typeof Bt=="function"&&Bt instanceof Bt)&&(U=!1)}return u.delete(t),u.delete(e),U}function ge(t){return rs(ka(t,r,Ma),t+"")}function Xi(t){return Fo(t,pt,ji)}function Vi(t){return Fo(t,It,xa)}var Qi=vr?function(t){return vr.get(t)}:gs;function Dr(t){for(var e=t.name+"",n=un[e],i=Q.call(un,e)?n.length:0;i--;){var o=n[i],u=o.func;if(u==null||u==t)return o.name}return e}function cn(t){var e=Q.call(a,"placeholder")?a:t;return e.placeholder}function $(){var t=a.iteratee||_s;return t=t===_s?zo:t,arguments.length?t(arguments[0],arguments[1]):t}function $r(t,e){var n=t.__data__;return hc(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Ji(t){for(var e=pt(t),n=e.length;n--;){var i=e[n],o=t[i];e[n]=[i,o,Ca(o)]}return e}function qe(t,e){var n=ch(t,e);return Uo(n)?n:r}function rc(t){var e=Q.call(t,Fe),n=t[Fe];try{t[Fe]=r;var i=!0}catch{}var o=lr.call(t);return i&&(e?t[Fe]=n:delete t[Fe]),o}var ji=Pi?function(t){return t==null?[]:(t=J(t),Ce(Pi(t),function(e){return Po.call(t,e)}))}:vs,xa=Pi?function(t){for(var e=[];t;)Ae(e,ji(t)),t=cr(t);return e}:vs,yt=Ct;(Ti&&yt(new Ti(new ArrayBuffer(1)))!=je||In&&yt(new In)!=Xt||Ri&&yt(Ri.resolve())!=Os||an&&yt(new an)!=Vt||Ln&&yt(new Ln)!=kn)&&(yt=function(t){var e=Ct(t),n=e==fe?t.constructor:r,i=n?Ge(n):"";if(i)switch(i){case Bh:return je;case Fh:return Xt;case Hh:return Os;case Uh:return Vt;case zh:return kn}return e});function ic(t,e,n){for(var i=-1,o=n.length;++i<o;){var u=n[i],f=u.size;switch(u.type){case"drop":t+=f;break;case"dropRight":e-=f;break;case"take":e=xt(e,t+f);break;case"takeRight":t=_t(t,e-f);break}}return{start:t,end:e}}function sc(t){var e=t.match(hl);return e?e[1].split(fl):[]}function ya(t,e,n){e=Ie(e,t);for(var i=-1,o=e.length,u=!1;++i<o;){var f=se(e[i]);if(!(u=t!=null&&n(t,f)))break;t=t[f]}return u||++i!=o?u:(o=t==null?0:t.length,!!o&&Fr(o)&&ve(f,o)&&(B(t)||Ke(t)))}function oc(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Q.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Sa(t){return typeof t.constructor=="function"&&!Fn(t)?ln(cr(t)):{}}function ac(t,e,n){var i=t.constructor;switch(e){case Pn:return Ki(t);case xn:case yn:return new i(+t);case je:return qf(t,n);case Jr:case jr:case ti:case ei:case ni:case ri:case ii:case si:case oi:return ia(t,n);case Xt:return new i;case Sn:case An:return new i(t);case Cn:return Gf(t);case Vt:return new i;case jn:return Kf(t)}}function uc(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(ll,`{ 9/* [wrapped with `+e+`] */ 10`)}function lc(t){return B(t)||Ke(t)||!!(To&&t&&t[To])}function ve(t,e){var n=typeof t;return e=e??Yt,!!e&&(n=="number"||n!="symbol"&&xl.test(t))&&t>-1&&t%1==0&&t<e}function At(t,e,n){if(!it(n))return!1;var i=typeof e;return(i=="number"?Rt(n)&&ve(e,n.length):i=="string"&&e in n)?jt(n[e],t):!1}function ts(t,e){if(B(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||bt(t)?!0:sl.test(t)||!il.test(t)||e!=null&&t in J(e)}function hc(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function es(t){var e=Dr(t),n=a[e];if(typeof n!="function"||!(e in G.prototype))return!1;if(t===n)return!0;var i=Qi(n);return!!i&&t===i[0]}function fc(t){return!!Co&&Co in t}var cc=ar?me:ms;function Fn(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||on;return t===n}function Ca(t){return t===t&&!it(t)}function Aa(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==r||t in J(n))}}function dc(t){var e=Wr(t,function(i){return n.size===k&&n.clear(),i}),n=e.cache;return e}function _c(t,e){var n=t[1],i=e[1],o=n|i,u=o<(O|W|$t),f=i==$t&&n==gt||i==$t&&n==le&&t[7].length<=e[8]||i==($t|le)&&e[7].length<=e[8]&&n==gt;if(!(u||f))return t;i&O&&(t[2]=e[2],o|=n&O?0:ue);var _=e[3];if(_){var g=t[3];t[3]=g?oa(g,_,e[4]):_,t[4]=g?ke(t[3],L):e[4]}return _=e[5],_&&(g=t[5],t[5]=g?aa(g,_,e[6]):_,t[6]=g?ke(t[5],L):e[6]),_=e[7],_&&(t[7]=_),i&$t&&(t[8]=t[8]==null?e[8]:xt(t[8],e[8])),t[9]==null&&(t[9]=e[9]),t[0]=e[0],t[1]=o,t}function pc(t){var e=[];if(t!=null)for(var n in J(t))e.push(n);return e}function gc(t){return lr.call(t)}function ka(t,e,n){return e=_t(e===r?t.length-1:e,0),function(){for(var i=arguments,o=-1,u=_t(i.length-e,0),f=m(u);++o<u;)f[o]=i[e+o];o=-1;for(var _=m(e+1);++o<e;)_[o]=i[o];return _[e]=n(f),Et(t,this,_)}}function Pa(t,e){return e.length<2?t:Ne(t,Gt(e,0,-1))}function vc(t,e){for(var n=t.length,i=xt(e.length,n),o=Tt(t);i--;){var u=e[i];t[i]=ve(u,n)?o[u]:r}return t}function ns(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Ta=Ia(Vo),Hn=Dh||function(t,e){return vt.setTimeout(t,e)},rs=Ia(Hf);function Ra(t,e,n){var i=e+"";return rs(t,uc(i,mc(sc(i),n)))}function Ia(t){var e=0,n=0;return function(){var i=Oh(),o=Kn-(i-n);if(n=i,o>0){if(++e>=Qe)return arguments[0]}else e=0;return t.apply(r,arguments)}}function Er(t,e){var n=-1,i=t.length,o=i-1;for(e=e===r?i:e;++n<e;){var u=Fi(n,o),f=t[u];t[u]=t[n],t[n]=f}return t.length=e,t}var La=dc(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ol,function(n,i,o,u){e.push(o?u.replace(_l,"$1"):i||n)}),e});function se(t){if(typeof t=="string"||bt(t))return t;var e=t+"";return e=="0"&&1/t==-ee?"-0":e}function Ge(t){if(t!=null){try{return ur.call(t)}catch{}try{return t+""}catch{}}return""}function mc(t,e){return Ut(qu,function(n){var i="_."+n[0];e&n[1]&&!rr(t,i)&&t.push(i)}),t.sort()}function Da(t){if(t instanceof G)return t.clone();var e=new Nt(t.__wrapped__,t.__chain__);return e.__actions__=Tt(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function wc(t,e,n){(n?At(t,e,n):e===r)?e=1:e=_t(F(e),0);var i=t==null?0:t.length;if(!i||e<1)return[];for(var o=0,u=0,f=m(pr(i/e));o<i;)f[u++]=Gt(t,o,o+=e);return f}function xc(t){for(var e=-1,n=t==null?0:t.length,i=0,o=[];++e<n;){var u=t[e];u&&(o[i++]=u)}return o}function yc(){var t=arguments.length;if(!t)return[];for(var e=m(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Ae(B(n)?Tt(n):[n],mt(e,1))}var Sc=z(function(t,e){return ht(t)?Mn(t,mt(e,1,ht,!0)):[]}),Cc=z(function(t,e){var n=Kt(e);return ht(n)&&(n=r),ht(t)?Mn(t,mt(e,1,ht,!0),$(n,2)):[]}),Ac=z(function(t,e){var n=Kt(e);return ht(n)&&(n=r),ht(t)?Mn(t,mt(e,1,ht,!0),r,n):[]});function kc(t,e,n){var i=t==null?0:t.length;return i?(e=n||e===r?1:F(e),Gt(t,e<0?0:e,i)):[]}function Pc(t,e,n){var i=t==null?0:t.length;return i?(e=n||e===r?1:F(e),e=i-e,Gt(t,0,e<0?0:e)):[]}function Tc(t,e){return t&&t.length?kr(t,$(e,3),!0,!0):[]}function Rc(t,e){return t&&t.length?kr(t,$(e,3),!0):[]}function Ic(t,e,n,i){var o=t==null?0:t.length;return o?(n&&typeof n!="number"&&At(t,e,n)&&(n=0,i=o),yf(t,e,n,i)):[]}function $a(t,e,n){var i=t==null?0:t.length;if(!i)return-1;var o=n==null?0:F(n);return o<0&&(o=_t(i+o,0)),ir(t,$(e,3),o)}function Ea(t,e,n){var i=t==null?0:t.length;if(!i)return-1;var o=i-1;return n!==r&&(o=F(n),o=n<0?_t(i+o,0):xt(o,i-1)),ir(t,$(e,3),o,!0)}function Ma(t){var e=t==null?0:t.length;return e?mt(t,1):[]}function Lc(t){var e=t==null?0:t.length;return e?mt(t,ee):[]}function Dc(t,e){var n=t==null?0:t.length;return n?(e=e===r?1:F(e),mt(t,e)):[]}function $c(t){for(var e=-1,n=t==null?0:t.length,i={};++e<n;){var o=t[e];i[o[0]]=o[1]}return i}function Oa(t){return t&&t.length?t[0]:r}function Ec(t,e,n){var i=t==null?0:t.length;if(!i)return-1;var o=n==null?0:F(n);return o<0&&(o=_t(i+o,0)),en(t,e,o)}function Mc(t){var e=t==null?0:t.length;return e?Gt(t,0,-1):[]}var Oc=z(function(t){var e=nt(t,qi);return e.length&&e[0]===t[0]?Mi(e):[]}),bc=z(function(t){var e=Kt(t),n=nt(t,qi);return e===Kt(n)?e=r:n.pop(),n.length&&n[0]===t[0]?Mi(n,$(e,2)):[]}),Wc=z(function(t){var e=Kt(t),n=nt(t,qi);return e=typeof e=="function"?e:r,e&&n.pop(),n.length&&n[0]===t[0]?Mi(n,r,e):[]});function Bc(t,e){return t==null?"":Eh.call(t,e)}function Kt(t){var e=t==null?0:t.length;return e?t[e-1]:r}function Fc(t,e,n){var i=t==null?0:t.length;if(!i)return-1;var o=i;return n!==r&&(o=F(n),o=o<0?_t(i+o,0):xt(o,i-1)),e===e?vh(t,e,o):ir(t,po,o,!0)}function Hc(t,e){return t&&t.length?Ko(t,F(e)):r}var Uc=z(ba);function ba(t,e){return t&&t.length&&e&&e.length?Bi(t,e):t}function zc(t,e,n){return t&&t.length&&e&&e.length?Bi(t,e,$(n,2)):t}function Nc(t,e,n){return t&&t.length&&e&&e.length?Bi(t,e,r,n):t}var qc=ge(function(t,e){var n=t==null?0:t.length,i=Li(t,e);return Xo(t,nt(e,function(o){return ve(o,n)?+o:o}).sort(sa)),i});function Gc(t,e){var n=[];if(!(t&&t.length))return n;var i=-1,o=[],u=t.length;for(e=$(e,3);++i<u;){var f=t[i];e(f,i,t)&&(n.push(f),o.push(i))}return Xo(t,o),n}function is(t){return t==null?t:Wh.call(t)}function Kc(t,e,n){var i=t==null?0:t.length;return i?(n&&typeof n!="number"&&At(t,e,n)?(e=0,n=i):(e=e==null?0:F(e),n=n===r?i:F(n)),Gt(t,e,n)):[]}function Zc(t,e){return Ar(t,e)}function Yc(t,e,n){return Ui(t,e,$(n,2))}function Xc(t,e){var n=t==null?0:t.length;if(n){var i=Ar(t,e);if(i<n&&jt(t[i],e))return i}return-1}function Vc(t,e){return Ar(t,e,!0)}function Qc(t,e,n){return Ui(t,e,$(n,2),!0)}
vendor: 9,811 bytes, line 10
10function Jc(t,e){var n=t==null?0:t.length;if(n){var i=Ar(t,e,!0)-1;if(jt(t[i],e))return i}return-1}function jc(t){return t&&t.length?Qo(t):[]}function td(t,e){return t&&t.length?Qo(t,$(e,2)):[]}function ed(t){var e=t==null?0:t.length;return e?Gt(t,1,e):[]}function nd(t,e,n){return t&&t.length?(e=n||e===r?1:F(e),Gt(t,0,e<0?0:e)):[]}function rd(t,e,n){var i=t==null?0:t.length;return i?(e=n||e===r?1:F(e),e=i-e,Gt(t,e<0?0:e,i)):[]}function id(t,e){return t&&t.length?kr(t,$(e,3),!1,!0):[]}function sd(t,e){return t&&t.length?kr(t,$(e,3)):[]}var od=z(function(t){return Re(mt(t,1,ht,!0))}),ad=z(function(t){var e=Kt(t);return ht(e)&&(e=r),Re(mt(t,1,ht,!0),$(e,2))}),ud=z(function(t){var e=Kt(t);return e=typeof e=="function"?e:r,Re(mt(t,1,ht,!0),r,e)});function ld(t){return t&&t.length?Re(t):[]}function hd(t,e){return t&&t.length?Re(t,$(e,2)):[]}function fd(t,e){return e=typeof e=="function"?e:r,t&&t.length?Re(t,r,e):[]}function ss(t){if(!(t&&t.length))return[];var e=0;return t=Ce(t,function(n){if(ht(n))return e=_t(n.length,e),!0}),Si(e,function(n){return nt(t,wi(n))})}function Wa(t,e){if(!(t&&t.length))return[];var n=ss(t);return e==null?n:nt(n,function(i){return Et(e,r,i)})}var cd=z(function(t,e){return ht(t)?Mn(t,e):[]}),dd=z(function(t){return Ni(Ce(t,ht))}),_d=z(function(t){var e=Kt(t);return ht(e)&&(e=r),Ni(Ce(t,ht),$(e,2))}),pd=z(function(t){var e=Kt(t);return e=typeof e=="function"?e:r,Ni(Ce(t,ht),r,e)}),gd=z(ss);function vd(t,e){return ea(t||[],e||[],En)}function md(t,e){return ea(t||[],e||[],Wn)}var wd=z(function(t){var e=t.length,n=e>1?t[e-1]:r;return n=typeof n=="function"?(t.pop(),n):r,Wa(t,n)});function Ba(t){var e=a(t);return e.__chain__=!0,e}function xd(t,e){return e(t),t}function Mr(t,e){return e(t)}var yd=ge(function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(u){return Li(u,t)};return e>1||this.__actions__.length||!(i instanceof G)||!ve(n)?this.thru(o):(i=i.slice(n,+n+(e?1:0)),i.__actions__.push({func:Mr,args:[o],thisArg:r}),new Nt(i,this.__chain__).thru(function(u){return e&&!u.length&&u.push(r),u}))});function Sd(){return Ba(this)}function Cd(){return new Nt(this.value(),this.__chain__)}function Ad(){this.__values__===r&&(this.__values__=Ja(this.value()));var t=this.__index__>=this.__values__.length,e=t?r:this.__values__[this.__index__++];return{done:t,value:e}}function kd(){return this}function Pd(t){for(var e,n=this;n instanceof wr;){var i=Da(n);i.__index__=0,i.__values__=r,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e}function Td(){var t=this.__wrapped__;if(t instanceof G){var e=t;return this.__actions__.length&&(e=new G(this)),e=e.reverse(),e.__actions__.push({func:Mr,args:[is],thisArg:r}),new Nt(e,this.__chain__)}return this.thru(is)}function Rd(){return ta(this.__wrapped__,this.__actions__)}var Id=Pr(function(t,e,n){Q.call(t,n)?++t[n]:_e(t,n,1)});function Ld(t,e,n){var i=B(t)?co:xf;return n&&At(t,e,n)&&(e=r),i(t,$(e,3))}function Dd(t,e){var n=B(t)?Ce:Wo;return n(t,$(e,3))}var $d=fa($a),Ed=fa(Ea);function Md(t,e){return mt(Or(t,e),1)}function Od(t,e){return mt(Or(t,e),ee)}function bd(t,e,n){return n=n===r?1:F(n),mt(Or(t,e),n)}function Fa(t,e){var n=B(t)?Ut:Te;return n(t,$(e,3))}function Ha(t,e){var n=B(t)?th:bo;return n(t,$(e,3))}var Wd=Pr(function(t,e,n){Q.call(t,n)?t[n].push(e):_e(t,n,[e])});function Bd(t,e,n,i){t=Rt(t)?t:_n(t),n=n&&!i?F(n):0;var o=t.length;return n<0&&(n=_t(o+n,0)),Hr(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&en(t,e,n)>-1}var Fd=z(function(t,e,n){var i=-1,o=typeof e=="function",u=Rt(t)?m(t.length):[];return Te(t,function(f){u[++i]=o?Et(e,f,n):On(f,e,n)}),u}),Hd=Pr(function(t,e,n){_e(t,n,e)});function Or(t,e){var n=B(t)?nt:No;return n(t,$(e,3))}function Ud(t,e,n,i){return t==null?[]:(B(e)||(e=e==null?[]:[e]),n=i?r:n,B(n)||(n=n==null?[]:[n]),Zo(t,e,n))}var zd=Pr(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});function Nd(t,e,n){var i=B(t)?vi:vo,o=arguments.length<3;return i(t,$(e,4),n,o,Te)}function qd(t,e,n){var i=B(t)?eh:vo,o=arguments.length<3;return i(t,$(e,4),n,o,bo)}function Gd(t,e){var n=B(t)?Ce:Wo;return n(t,Br($(e,3)))}function Kd(t){var e=B(t)?$o:Bf;return e(t)}function Zd(t,e,n){(n?At(t,e,n):e===r)?e=1:e=F(e);var i=B(t)?pf:Ff;return i(t,e)}function Yd(t){var e=B(t)?gf:Uf;return e(t)}function Xd(t){if(t==null)return 0;if(Rt(t))return Hr(t)?rn(t):t.length;var e=yt(t);return e==Xt||e==Vt?t.size:bi(t).length}function Vd(t,e,n){var i=B(t)?mi:zf;return n&&At(t,e,n)&&(e=r),i(t,$(e,3))}var Qd=z(function(t,e){if(t==null)return[];var n=e.length;return n>1&&At(t,e[0],e[1])?e=[]:n>2&&At(e[0],e[1],e[2])&&(e=[e[0]]),Zo(t,mt(e,1),[])}),br=Lh||function(){return vt.Date.now()};function Jd(t,e){if(typeof e!="function")throw new zt(v);return t=F(t),function(){if(--t<1)return e.apply(this,arguments)}}function Ua(t,e,n){return e=n?r:e,e=t&&e==null?t.length:e,pe(t,$t,r,r,r,r,e)}function za(t,e){var n;if(typeof e!="function")throw new zt(v);return t=F(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=r),n}}var os=z(function(t,e,n){var i=O;if(n.length){var o=ke(n,cn(os));i|=St}return pe(t,i,e,n,o)}),Na=z(function(t,e,n){var i=O|W;if(n.length){var o=ke(n,cn(Na));i|=St}return pe(e,i,t,n,o)});function qa(t,e,n){e=n?r:e;var i=pe(t,gt,r,r,r,r,r,e);return i.placeholder=qa.placeholder,i}function Ga(t,e,n){e=n?r:e;var i=pe(t,wt,r,r,r,r,r,e);return i.placeholder=Ga.placeholder,i}function Ka(t,e,n){var i,o,u,f,_,g,x=0,y=!1,C=!1,P=!0;if(typeof t!="function")throw new zt(v);e=Zt(e)||0,it(n)&&(y=!!n.leading,C="maxWait"in n,u=C?_t(Zt(n.maxWait)||0,e):u,P="trailing"in n?!!n.trailing:P);function I(ft){var te=i,xe=o;return i=o=r,x=ft,f=t.apply(xe,te),f}function E(ft){return x=ft,_=Hn(N,e),y?I(ft):f}function U(ft){var te=ft-g,xe=ft-x,fu=e-te;return C?xt(fu,u-xe):fu}function M(ft){var te=ft-g,xe=ft-x;return g===r||te>=e||te<0||C&&xe>=u}function N(){var ft=br();if(M(ft))return Z(ft);_=Hn(N,U(ft))}function Z(ft){return _=r,P&&i?I(ft):(i=o=r,f)}function Wt(){_!==r&&na(_),x=0,i=g=o=_=r}function kt(){return _===r?f:Z(br())}function Bt(){var ft=br(),te=M(ft);if(i=arguments,o=this,g=ft,te){if(_===r)return E(g);if(C)return na(_),_=Hn(N,e),I(g)}return _===r&&(_=Hn(N,e)),f}return Bt.cancel=Wt,Bt.flush=kt,Bt}var jd=z(function(t,e){return Oo(t,1,e)}),t_=z(function(t,e,n){return Oo(t,Zt(e)||0,n)});function e_(t){return pe(t,be)}function Wr(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new zt(v);var n=function(){var i=arguments,o=e?e.apply(this,i):i[0],u=n.cache;if(u.has(o))return u.get(o);var f=t.apply(this,i);return n.cache=u.set(o,f)||u,f};return n.cache=new(Wr.Cache||de),n}Wr.Cache=de;function Br(t){if(typeof t!="function")throw new zt(v);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function n_(t){return za(2,t)}var r_=Nf(function(t,e){e=e.length==1&&B(e[0])?nt(e[0],Mt($())):nt(mt(e,1),Mt($()));var n=e.length;return z(function(i){for(var o=-1,u=xt(i.length,n);++o<u;)i[o]=e[o].call(this,i[o]);return Et(t,this,i)})}),as=z(function(t,e){var n=ke(e,cn(as));return pe(t,St,r,e,n)}),Za=z(function(t,e){var n=ke(e,cn(Za));return pe(t,Ft,r,e,n)}),i_=ge(function(t,e){return pe(t,le,r,r,r,e)});function s_(t,e){if(typeof t!="function")throw new zt(v);return e=e===r?e:F(e),z(t,e)}function o_(t,e){if(typeof t!="function")throw new zt(v);return e=e==null?0:_t(F(e),0),z(function(n){var i=n[e],o=Le(n,0,e);return i&&Ae(o,i),Et(t,this,o)})}function a_(t,e,n){var i=!0,o=!0;if(typeof t!="function")throw new zt(v);return it(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Ka(t,e,{leading:i,maxWait:e,trailing:o})}function u_(t){return Ua(t,1)}function l_(t,e){return as(Gi(e),t)}function h_(){if(!arguments.length)return[];var t=arguments[0];return B(t)?t:[t]}function f_(t){return qt(t,D)}function c_(t,e){return e=typeof e=="function"?e:r,qt(t,D,e)}function d_(t){return qt(t,R|D)}function __(t,e){return e=typeof e=="function"?e:r,qt(t,R|D,e)}function p_(t,e){return e==null||Mo(t,e,pt(e))}function jt(t,e){return t===e||t!==t&&e!==e}var g_=Lr(Ei),v_=Lr(function(t,e){return t>=e}),Ke=Ho(function(){return arguments}())?Ho:function(t){return ut(t)&&Q.call(t,"callee")&&!Po.call(t,"callee")},B=m.isArray,m_=oo?Mt(oo):Pf;function Rt(t){return t!=null&&Fr(t.length)&&!me(t)}function ht(t){return ut(t)&&Rt(t)}function w_(t){return t===!0||t===!1||ut(t)&&Ct(t)==xn}var De=$h||ms,x_=ao?Mt(ao):Tf;function y_(t){return ut(t)&&t.nodeType===1&&!Un(t)}function S_(t){if(t==null)return!0;if(Rt(t)&&(B(t)||typeof t=="string"||typeof t.splice=="function"||De(t)||dn(t)||Ke(t)))return!t.length;var e=yt(t);if(e==Xt||e==Vt)return!t.size;if(Fn(t))return!bi(t).length;for(var n in t)if(Q.call(t,n))return!1;return!0}function C_(t,e){return bn(t,e)}function A_(t,e,n){n=typeof n=="function"?n:r;var i=n?n(t,e):r;return i===r?bn(t,e,r,n):!!i}function us(t){if(!ut(t))return!1;var e=Ct(t);return e==Qn||e==Ku||typeof t.message=="string"&&typeof t.name=="string"&&!Un(t)}function k_(t){return typeof t=="number"&&Ro(t)}function me(t){if(!it(t))return!1;var e=Ct(t);return e==Jn||e==Ms||e==Gu||e==Yu}function Ya(t){return typeof t=="number"&&t==F(t)}function Fr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Yt}function it(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function ut(t){return t!=null&&typeof t=="object"}var Xa=uo?Mt(uo):If;function P_(t,e){return t===e||Oi(t,e,Ji(e))}function T_(t,e,n){return n=typeof n=="function"?n:r,Oi(t,e,Ji(e),n)}function R_(t){return Va(t)&&t!=+t}function I_(t){if(cc(t))throw new b(d);return Uo(t)}function L_(t){return t===null}function D_(t){return t==null}function Va(t){return typeof t=="number"||ut(t)&&Ct(t)==Sn}function Un(t){if(!ut(t)||Ct(t)!=fe)return!1;var e=cr(t);if(e===null)return!0;
vendor: 5,153 bytes, line 10
10var n=Q.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&ur.call(n)==Ph}var ls=lo?Mt(lo):Lf;function $_(t){return Ya(t)&&t>=-Yt&&t<=Yt}var Qa=ho?Mt(ho):Df;function Hr(t){return typeof t=="string"||!B(t)&&ut(t)&&Ct(t)==An}function bt(t){return typeof t=="symbol"||ut(t)&&Ct(t)==jn}var dn=fo?Mt(fo):$f;function E_(t){return t===r}function M_(t){return ut(t)&&yt(t)==kn}function O_(t){return ut(t)&&Ct(t)==Vu}var b_=Lr(Wi),W_=Lr(function(t,e){return t<=e});function Ja(t){if(!t)return[];if(Rt(t))return Hr(t)?Qt(t):Tt(t);if(Rn&&t[Rn])return _h(t[Rn]());var e=yt(t),n=e==Xt?Ai:e==Vt?sr:_n;return n(t)}function we(t){if(!t)return t===0?t:0;if(t=Zt(t),t===ee||t===-ee){var e=t<0?-1:1;return e*he}return t===t?t:0}function F(t){var e=we(t),n=e%1;return e===e?n?e-n:e:0}function ja(t){return t?ze(F(t),0,ne):0}function Zt(t){if(typeof t=="number")return t;if(bt(t))return Xn;if(it(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=it(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=mo(t);var n=vl.test(t);return n||wl.test(t)?Ql(t.slice(2),n?2:8):gl.test(t)?Xn:+t}function tu(t){return ie(t,It(t))}function B_(t){return t?ze(F(t),-Yt,Yt):t===0?t:0}function V(t){return t==null?"":Ot(t)}var F_=hn(function(t,e){if(Fn(e)||Rt(e)){ie(e,pt(e),t);return}for(var n in e)Q.call(e,n)&&En(t,n,e[n])}),eu=hn(function(t,e){ie(e,It(e),t)}),Ur=hn(function(t,e,n,i){ie(e,It(e),t,i)}),H_=hn(function(t,e,n,i){ie(e,pt(e),t,i)}),U_=ge(Li);function z_(t,e){var n=ln(t);return e==null?n:Eo(n,e)}var N_=z(function(t,e){t=J(t);var n=-1,i=e.length,o=i>2?e[2]:r;for(o&&At(e[0],e[1],o)&&(i=1);++n<i;)for(var u=e[n],f=It(u),_=-1,g=f.length;++_<g;){var x=f[_],y=t[x];(y===r||jt(y,on[x])&&!Q.call(t,x))&&(t[x]=u[x])}return t}),q_=z(function(t){return t.push(r,ma),Et(nu,r,t)});function G_(t,e){return _o(t,$(e,3),re)}function K_(t,e){return _o(t,$(e,3),$i)}function Z_(t,e){return t==null?t:Di(t,$(e,3),It)}function Y_(t,e){return t==null?t:Bo(t,$(e,3),It)}function X_(t,e){return t&&re(t,$(e,3))}function V_(t,e){return t&&$i(t,$(e,3))}function Q_(t){return t==null?[]:Sr(t,pt(t))}function J_(t){return t==null?[]:Sr(t,It(t))}function hs(t,e,n){var i=t==null?r:Ne(t,e);return i===r?n:i}function j_(t,e){return t!=null&&ya(t,e,Sf)}function fs(t,e){return t!=null&&ya(t,e,Cf)}var tp=da(function(t,e,n){e!=null&&typeof e.toString!="function"&&(e=lr.call(e)),t[e]=n},ds(Lt)),ep=da(function(t,e,n){e!=null&&typeof e.toString!="function"&&(e=lr.call(e)),Q.call(t,e)?t[e].push(n):t[e]=[n]},$),np=z(On);function pt(t){return Rt(t)?Do(t):bi(t)}function It(t){return Rt(t)?Do(t,!0):Ef(t)}function rp(t,e){var n={};return e=$(e,3),re(t,function(i,o,u){_e(n,e(i,o,u),i)}),n}function ip(t,e){var n={};return e=$(e,3),re(t,function(i,o,u){_e(n,o,e(i,o,u))}),n}var sp=hn(function(t,e,n){Cr(t,e,n)}),nu=hn(function(t,e,n,i){Cr(t,e,n,i)}),op=ge(function(t,e){var n={};if(t==null)return n;var i=!1;e=nt(e,function(u){return u=Ie(u,t),i||(i=u.length>1),u}),ie(t,Vi(t),n),i&&(n=qt(n,R|q|D,tc));for(var o=e.length;o--;)zi(n,e[o]);return n});function ap(t,e){return ru(t,Br($(e)))}var up=ge(function(t,e){return t==null?{}:Of(t,e)});function ru(t,e){if(t==null)return{};var n=nt(Vi(t),function(i){return[i]});return e=$(e),Yo(t,n,function(i,o){return e(i,o[0])})}function lp(t,e,n){e=Ie(e,t);var i=-1,o=e.length;for(o||(o=1,t=r);++i<o;){var u=t==null?r:t[se(e[i])];u===r&&(i=o,u=n),t=me(u)?u.call(t):u}return t}function hp(t,e,n){return t==null?t:Wn(t,e,n)}function fp(t,e,n,i){return i=typeof i=="function"?i:r,t==null?t:Wn(t,e,n,i)}var iu=ga(pt),su=ga(It);function cp(t,e,n){var i=B(t),o=i||De(t)||dn(t);if(e=$(e,4),n==null){var u=t&&t.constructor;o?n=i?new u:[]:it(t)?n=me(u)?ln(cr(t)):{}:n={}}return(o?Ut:re)(t,function(f,_,g){return e(n,f,_,g)}),n}function dp(t,e){return t==null?!0:zi(t,e)}function _p(t,e,n){return t==null?t:jo(t,e,Gi(n))}function pp(t,e,n,i){return i=typeof i=="function"?i:r,t==null?t:jo(t,e,Gi(n),i)}function _n(t){return t==null?[]:Ci(t,pt(t))}function gp(t){return t==null?[]:Ci(t,It(t))}function vp(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=Zt(n),n=n===n?n:0),e!==r&&(e=Zt(e),e=e===e?e:0),ze(Zt(t),e,n)}function mp(t,e,n){return e=we(e),n===r?(n=e,e=0):n=we(n),t=Zt(t),Af(t,e,n)}function wp(t,e,n){if(n&&typeof n!="boolean"&&At(t,e,n)&&(e=n=r),n===r&&(typeof e=="boolean"?(n=e,e=r):typeof t=="boolean"&&(n=t,t=r)),t===r&&e===r?(t=0,e=1):(t=we(t),e===r?(e=t,t=0):e=we(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var o=Io();return xt(t+o*(e-t+Vl("1e-"+((o+"").length-1))),e)}return Fi(t,e)}var xp=fn(function(t,e,n){return e=e.toLowerCase(),t+(n?ou(e):e)});function ou(t){return cs(V(t).toLowerCase())}function au(t){return t=V(t),t&&t.replace(yl,lh).replace(Hl,"")}function yp(t,e,n){t=V(t),e=Ot(e);var i=t.length;n=n===r?i:ze(F(n),0,i);var o=n;return n-=e.length,n>=0&&t.slice(n,o)==e}function Sp(t){return t=V(t),t&&el.test(t)?t.replace(Ws,hh):t}function Cp(t){return t=V(t),t&&al.test(t)?t.replace(ai,"\\$&"):t}var Ap=fn(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),kp=fn(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Pp=ha("toLowerCase");function Tp(t,e,n){t=V(t),e=F(e);var i=e?rn(t):0;if(!e||i>=e)return t;var o=(e-i)/2;
vendor: 12,165 bytes, lines 10-27
10return Ir(gr(o),n)+t+Ir(pr(o),n)}function Rp(t,e,n){t=V(t),e=F(e);var i=e?rn(t):0;return e&&i<e?t+Ir(e-i,n):t}function Ip(t,e,n){t=V(t),e=F(e);var i=e?rn(t):0;return e&&i<e?Ir(e-i,n)+t:t}function Lp(t,e,n){return n||e==null?e=0:e&&(e=+e),bh(V(t).replace(ui,""),e||0)}function Dp(t,e,n){return(n?At(t,e,n):e===r)?e=1:e=F(e),Hi(V(t),e)}function $p(){var t=arguments,e=V(t[0]);return t.length<3?e:e.replace(t[1],t[2])}var Ep=fn(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});function Mp(t,e,n){return n&&typeof n!="number"&&At(t,e,n)&&(e=n=r),n=n===r?ne:n>>>0,n?(t=V(t),t&&(typeof e=="string"||e!=null&&!ls(e))&&(e=Ot(e),!e&&nn(t))?Le(Qt(t),0,n):t.split(e,n)):[]}var Op=fn(function(t,e,n){return t+(n?" ":"")+cs(e)});function bp(t,e,n){return t=V(t),n=n==null?0:ze(F(n),0,t.length),e=Ot(e),t.slice(n,n+e.length)==e}function Wp(t,e,n){var i=a.templateSettings;n&&At(t,e,n)&&(e=r),t=V(t),e=Ur({},e,i,va);var o=Ur({},e.imports,i.imports,va),u=pt(o),f=Ci(o,u),_,g,x=0,y=e.interpolate||tr,C="__p += '",P=ki((e.escape||tr).source+"|"+y.source+"|"+(y===Bs?pl:tr).source+"|"+(e.evaluate||tr).source+"|$","g"),I="//# sourceURL="+(Q.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Gl+"]")+` 11`;t.replace(P,function(M,N,Z,Wt,kt,Bt){return Z||(Z=Wt),C+=t.slice(x,Bt).replace(Sl,fh),N&&(_=!0,C+=`' + 12__e(`+N+`) + 13'`),kt&&(g=!0,C+=`'; 14`+kt+`; 15__p += '`),Z&&(C+=`' + 16((__t = (`+Z+`)) == null ? '' : __t) + 17'`),x=Bt+M.length,M}),C+=`'; 18`;var E=Q.call(e,"variable")&&e.variable;if(!E)C=`with (obj) { 19`+C+` 20} 21`;else if(dl.test(E))throw new b(S);C=(g?C.replace(Qu,""):C).replace(Ju,"$1").replace(ju,"$1;"),C="function("+(E||"obj")+`) { 22`+(E?"":`obj || (obj = {}); 23`)+"var __t, __p = ''"+(_?", __e = _.escape":"")+(g?`, __j = Array.prototype.join; 24function print() { __p += __j.call(arguments, '') } 25`:`; 26`)+C+`return __p 27}`;var U=lu(function(){return X(u,I+"return "+C).apply(r,f)});if(U.source=C,us(U))throw U;return U}function Bp(t){return V(t).toLowerCase()}function Fp(t){return V(t).toUpperCase()}function Hp(t,e,n){if(t=V(t),t&&(n||e===r))return mo(t);if(!t||!(e=Ot(e)))return t;var i=Qt(t),o=Qt(e),u=wo(i,o),f=xo(i,o)+1;return Le(i,u,f).join("")}function Up(t,e,n){if(t=V(t),t&&(n||e===r))return t.slice(0,So(t)+1);if(!t||!(e=Ot(e)))return t;var i=Qt(t),o=xo(i,Qt(e))+1;return Le(i,0,o).join("")}function zp(t,e,n){if(t=V(t),t&&(n||e===r))return t.replace(ui,"");if(!t||!(e=Ot(e)))return t;var i=Qt(t),o=wo(i,Qt(e));return Le(i,o).join("")}function Np(t,e){var n=mn,i=We;if(it(e)){var o="separator"in e?e.separator:o;n="length"in e?F(e.length):n,i="omission"in e?Ot(e.omission):i}t=V(t);var u=t.length;if(nn(t)){var f=Qt(t);u=f.length}if(n>=u)return t;var _=n-rn(i);if(_<1)return i;var g=f?Le(f,0,_).join(""):t.slice(0,_);if(o===r)return g+i;if(f&&(_+=g.length-_),ls(o)){if(t.slice(_).search(o)){var x,y=g;for(o.global||(o=ki(o.source,V(Fs.exec(o))+"g")),o.lastIndex=0;x=o.exec(y);)var C=x.index;g=g.slice(0,C===r?_:C)}}else if(t.indexOf(Ot(o),_)!=_){var P=g.lastIndexOf(o);P>-1&&(g=g.slice(0,P))}return g+i}function qp(t){return t=V(t),t&&tl.test(t)?t.replace(bs,mh):t}var Gp=fn(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),cs=ha("toUpperCase");function uu(t,e,n){return t=V(t),e=n?r:e,e===r?dh(t)?yh(t):ih(t):t.match(e)||[]}var lu=z(function(t,e){try{return Et(t,r,e)}catch(n){return us(n)?n:new b(n)}}),Kp=ge(function(t,e){return Ut(e,function(n){n=se(n),_e(t,n,os(t[n],t))}),t});function Zp(t){var e=t==null?0:t.length,n=$();return t=e?nt(t,function(i){if(typeof i[1]!="function")throw new zt(v);return[n(i[0]),i[1]]}):[],z(function(i){for(var o=-1;++o<e;){var u=t[o];if(Et(u[0],this,i))return Et(u[1],this,i)}})}function Yp(t){return wf(qt(t,R))}function ds(t){return function(){return t}}function Xp(t,e){return t==null||t!==t?e:t}var Vp=ca(),Qp=ca(!0);function Lt(t){return t}function _s(t){return zo(typeof t=="function"?t:qt(t,R))}function Jp(t){return qo(qt(t,R))}function jp(t,e){return Go(t,qt(e,R))}var tg=z(function(t,e){return function(n){return On(n,t,e)}}),eg=z(function(t,e){return function(n){return On(t,n,e)}});function ps(t,e,n){var i=pt(e),o=Sr(e,i);n==null&&!(it(e)&&(o.length||!i.length))&&(n=e,e=t,t=this,o=Sr(e,pt(e)));var u=!(it(n)&&"chain"in n)||!!n.chain,f=me(t);return Ut(o,function(_){var g=e[_];t[_]=g,f&&(t.prototype[_]=function(){var x=this.__chain__;if(u||x){var y=t(this.__wrapped__),C=y.__actions__=Tt(this.__actions__);return C.push({func:g,args:arguments,thisArg:t}),y.__chain__=x,y}return g.apply(t,Ae([this.value()],arguments))})}),t}function ng(){return vt._===this&&(vt._=Th),this}function gs(){}function rg(t){return t=F(t),z(function(e){return Ko(e,t)})}var ig=Zi(nt),sg=Zi(co),og=Zi(mi);function hu(t){return ts(t)?wi(se(t)):bf(t)}function ag(t){return function(e){return t==null?r:Ne(t,e)}}var ug=_a(),lg=_a(!0);function vs(){return[]}function ms(){return!1}function hg(){return{}}function fg(){return""}function cg(){return!0}function dg(t,e){if(t=F(t),t<1||t>Yt)return[];var n=ne,i=xt(t,ne);e=$(e),t-=ne;for(var o=Si(i,e);++n<t;)e(n);return o}function _g(t){return B(t)?nt(t,se):bt(t)?[t]:Tt(La(V(t)))}function pg(t){var e=++kh;return V(t)+e}var gg=Rr(function(t,e){return t+e},0),vg=Yi("ceil"),mg=Rr(function(t,e){return t/e},1),wg=Yi("floor");function xg(t){return t&&t.length?yr(t,Lt,Ei):r}function yg(t,e){return t&&t.length?yr(t,$(e,2),Ei):r}function Sg(t){return go(t,Lt)}function Cg(t,e){return go(t,$(e,2))}function Ag(t){return t&&t.length?yr(t,Lt,Wi):r}function kg(t,e){return t&&t.length?yr(t,$(e,2),Wi):r}var Pg=Rr(function(t,e){return t*e},1),Tg=Yi("round"),Rg=Rr(function(t,e){return t-e},0);function Ig(t){return t&&t.length?yi(t,Lt):0}function Lg(t,e){return t&&t.length?yi(t,$(e,2)):0}return a.after=Jd,a.ary=Ua,a.assign=F_,a.assignIn=eu,a.assignInWith=Ur,a.assignWith=H_,a.at=U_,a.before=za,a.bind=os,a.bindAll=Kp,a.bindKey=Na,a.castArray=h_,a.chain=Ba,a.chunk=wc,a.compact=xc,a.concat=yc,a.cond=Zp,a.conforms=Yp,a.constant=ds,a.countBy=Id,a.create=z_,a.curry=qa,a.curryRight=Ga,a.debounce=Ka,a.defaults=N_,a.defaultsDeep=q_,a.defer=jd,a.delay=t_,a.difference=Sc,a.differenceBy=Cc,a.differenceWith=Ac,a.drop=kc,a.dropRight=Pc,a.dropRightWhile=Tc,a.dropWhile=Rc,a.fill=Ic,a.filter=Dd,a.flatMap=Md,a.flatMapDeep=Od,a.flatMapDepth=bd,a.flatten=Ma,a.flattenDeep=Lc,a.flattenDepth=Dc,a.flip=e_,a.flow=Vp,a.flowRight=Qp,a.fromPairs=$c,a.functions=Q_,a.functionsIn=J_,a.groupBy=Wd,a.initial=Mc,a.intersection=Oc,a.intersectionBy=bc,a.intersectionWith=Wc,a.invert=tp,a.invertBy=ep,a.invokeMap=Fd,a.iteratee=_s,a.keyBy=Hd,a.keys=pt,a.keysIn=It,a.map=Or,a.mapKeys=rp,a.mapValues=ip,a.matches=Jp,a.matchesProperty=jp,a.memoize=Wr,a.merge=sp,a.mergeWith=nu,a.method=tg,a.methodOf=eg,a.mixin=ps,a.negate=Br,a.nthArg=rg,a.omit=op,a.omitBy=ap,a.once=n_,a.orderBy=Ud,a.over=ig,a.overArgs=r_,a.overEvery=sg,a.overSome=og,a.partial=as,a.partialRight=Za,a.partition=zd,a.pick=up,a.pickBy=ru,a.property=hu,a.propertyOf=ag,a.pull=Uc,a.pullAll=ba,a.pullAllBy=zc,a.pullAllWith=Nc,a.pullAt=qc,a.range=ug,a.rangeRight=lg,a.rearg=i_,a.reject=Gd,a.remove=Gc,a.rest=s_,a.reverse=is,a.sampleSize=Zd,a.set=hp,a.setWith=fp,a.shuffle=Yd,a.slice=Kc,a.sortBy=Qd,a.sortedUniq=jc,a.sortedUniqBy=td,a.split=Mp,a.spread=o_,a.tail=ed,a.take=nd,a.takeRight=rd,a.takeRightWhile=id,a.takeWhile=sd,a.tap=xd,a.throttle=a_,a.thru=Mr,a.toArray=Ja,a.toPairs=iu,a.toPairsIn=su,a.toPath=_g,a.toPlainObject=tu,a.transform=cp,a.unary=u_,a.union=od,a.unionBy=ad,a.unionWith=ud,a.uniq=ld,a.uniqBy=hd,a.uniqWith=fd,a.unset=dp,a.unzip=ss,a.unzipWith=Wa,a.update=_p,a.updateWith=pp,a.values=_n,a.valuesIn=gp,a.without=cd,a.words=uu,a.wrap=l_,a.xor=dd,a.xorBy=_d,a.xorWith=pd,a.zip=gd,a.zipObject=vd,a.zipObjectDeep=md,a.zipWith=wd,a.entries=iu,a.entriesIn=su,a.extend=eu,a.extendWith=Ur,ps(a,a),a.add=gg,a.attempt=lu,a.camelCase=xp,a.capitalize=ou,a.ceil=vg,a.clamp=vp,a.clone=f_,a.cloneDeep=d_,a.cloneDeepWith=__,a.cloneWith=c_,a.conformsTo=p_,a.deburr=au,a.defaultTo=Xp,a.divide=mg,a.endsWith=yp,a.eq=jt,a.escape=Sp,a.escapeRegExp=Cp,a.every=Ld,a.find=$d,a.findIndex=$a,a.findKey=G_,a.findLast=Ed,a.findLastIndex=Ea,a.findLastKey=K_,a.floor=wg,a.forEach=Fa,a.forEachRight=Ha,a.forIn=Z_,a.forInRight=Y_,a.forOwn=X_,a.forOwnRight=V_,a.get=hs,a.gt=g_,a.gte=v_,a.has=j_,a.hasIn=fs,a.head=Oa,a.identity=Lt,a.includes=Bd,a.indexOf=Ec,a.inRange=mp,a.invoke=np,a.isArguments=Ke,a.isArray=B,a.isArrayBuffer=m_,a.isArrayLike=Rt,a.isArrayLikeObject=ht,a.isBoolean=w_,a.isBuffer=De,a.isDate=x_,a.isElement=y_,a.isEmpty=S_,a.isEqual=C_,a.isEqualWith=A_,a.isError=us,a.isFinite=k_,a.isFunction=me,a.isInteger=Ya,a.isLength=Fr,a.isMap=Xa,a.isMatch=P_,a.isMatchWith=T_,a.isNaN=R_,a.isNative=I_,a.isNil=D_,a.isNull=L_,a.isNumber=Va,a.isObject=it,a.isObjectLike=ut,a.isPlainObject=Un,a.isRegExp=ls,a.isSafeInteger=$_,a.isSet=Qa,a.isString=Hr,a.isSymbol=bt,a.isTypedArray=dn,a.isUndefined=E_,a.isWeakMap=M_,a.isWeakSet=O_,a.join=Bc,a.kebabCase=Ap,a.last=Kt,a.lastIndexOf=Fc,a.lowerCase=kp,a.lowerFirst=Pp,a.lt=b_,a.lte=W_,a.max=xg,a.maxBy=yg,a.mean=Sg,a.meanBy=Cg,a.min=Ag,a.minBy=kg,a.stubArray=vs,a.stubFalse=ms,a.stubObject=hg,a.stubString=fg,a.stubTrue=cg,a.multiply=Pg,a.nth=Hc,a.noConflict=ng,a.noop=gs,a.now=br,a.pad=Tp,a.padEnd=Rp,a.padStart=Ip,a.parseInt=Lp,a.random=wp,a.reduce=Nd,a.reduceRight=qd,a.repeat=Dp,a.replace=$p,a.result=lp,a.round=Tg,a.runInContext=p,a.sample=Kd,a.size=Xd,a.snakeCase=Ep,a.some=Vd,a.sortedIndex=Zc,a.sortedIndexBy=Yc,a.sortedIndexOf=Xc,a.sortedLastIndex=Vc,a.sortedLastIndexBy=Qc,a.sortedLastIndexOf=Jc,a.startCase=Op,a.startsWith=bp,a.subtract=Rg,a.sum=Ig,a.sumBy=Lg,a.template=Wp,a.times=dg,a.toFinite=we,a.toInteger=F,a.toLength=ja,a.toLower=Bp,a.toNumber=Zt,a.toSafeInteger=B_,a.toString=V,a.toUpper=Fp,a.trim=Hp,a.trimEnd=Up,a.trimStart=zp,a.truncate=Np,a.unescape=qp,a.uniqueId=pg,a.upperCase=Gp,a.upperFirst=cs,a.each=Fa,a.eachRight=Ha,a.first=Oa,ps(a,function(){var t={};return re(a,function(e,n){Q.call(a.prototype,n)||(t[n]=e)}),t}(),{chain:!1}),a.VERSION=l,Ut(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){a[t].placeholder=a}),Ut(["drop","take"],function(t,e){G.prototype[t]=function(n){n=n===r?1:_t(F(n),0);var i=this.__filtered__&&!e?new G(this):this.clone();return i.__filtered__?i.__takeCount__=xt(n,i.__takeCount__):i.__views__.push({size:xt(n,ne),type:t+(i.__dir__<0?"Right":"")}),i},G.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),Ut(["filter","map","takeWhile"],function(t,e){var n=e+1,i=n==wn||n==Yn;G.prototype[t]=function(o){var u=this.clone();return u.__iteratees__.push({iteratee:$(o,3),type:n}),u.__filtered__=u.__filtered__||i,u}}),Ut(["head","last"],function(t,e){var n="take"+(e?"Right":"");G.prototype[t]=function(){return this[n](1).value()[0]}}),Ut(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");G.prototype[t]=function(){return this.__filtered__?new G(this):this[n](1)}}),G.prototype.compact=function(){return this.filter(Lt)},G.prototype.find=function(t){return this.filter(t).head()},G.prototype.findLast=function(t){return this.reverse().find(t)},G.prototype.invokeMap=z(function(t,e){return typeof t=="function"?new G(this):this.map(function(n){return On(n,t,e)})}),G.prototype.reject=function(t){return this.filter(Br($(t)))},G.prototype.slice=function(t,e){t=F(t);var n=this;return n.__filtered__&&(t>0||e<0)?new G(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(e=F(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},G.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},G.prototype.toArray=function(){return this.take(ne)},re(G.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=a[i?"take"+(e=="last"?"Right":""):e],u=i||/^find/.test(e);o&&(a.prototype[e]=function(){var f=this.__wrapped__,_=i?[1]:arguments,g=f instanceof G,x=_[0],y=g||B(f),C=function(N){var Z=o.apply(a,Ae([N],_));return i&&P?Z[0]:Z};y&&n&&typeof x=="function"&&x.length!=1&&(g=y=!1);var P=this.__chain__,I=!!this.__actions__.length,E=u&&!P,U=g&&!I;if(!u&&y){f=U?f:new G(this);var M=t.apply(f,_);return M.__actions__.push({func:Mr,args:[C],thisArg:r}),new Nt(M,P)}return E&&U?t.apply(this,_):(M=this.thru(C),E?i?M.value()[0]:M.value(
27):M)})}),Ut(["pop","push","shift","sort","splice","unshift"],function(t){var e=or[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);a.prototype[t]=function(){var o=arguments;if(i&&!this.__chain__){var u=this.value();return e.apply(B(u)?u:[],o)}return this[n](function(f){return e.apply(B(f)?f:[],o)})}}),re(G.prototype,function(t,e){var n=a[e];if(n){var i=n.name+"";Q.call(un,i)||(un[i]=[]),un[i].push({name:e,func:n})}}),un[Tr(r,W).name]=[{name:"wrapper",func:r}],G.prototype.clone=Nh,G.prototype.reverse=qh,G.prototype.value=Gh,a.prototype.at=yd,a.prototype.chain=Sd,a.prototype.commit=Cd,a.prototype.next=Ad,a.prototype.plant=Pd,a.prototype.reverse=Td,a.prototype.toJSON=a.prototype.valueOf=a.prototype.value=Rd,a.prototype.first=a.prototype.head,Rn&&(a.prototype[Rn]=kd),a},sn=Sh();Be?((Be.exports=sn)._=sn,_i._=sn):vt._=sn}).call(zn)})(Xr,Xr.exports);var Kv=Xr.exports;const Zv=n0(Kv),Cu=/[^\u4E00-\u9FA5]/g,Yv={class:"px-4 lg:px-0 flex flex-col gap-12 lg:gap-[60px]"},Xv={class:"flex flex-col lg:grid lg:grid-rows-1 lg:grid-cols-2 gap-12 lg:gap-10"},Vv={class:"flex flex-col"},Qv={class:"flex flex-col justify-between gap-4"},Jv={key:0,class:"flex flex-row gap-2"},jv={class:"text-[83px] leading-[102px]",lang:"zh"},t1={key:0,class:"flex flex-col lg:grid lg:grid-rows-1 lg:grid-cols-2 gap-12 lg:gap-10"},e1={class:"flex flex-col lg:grid lg:grid-rows-1 lg:grid-cols-2 gap-12 lg:gap-10"},n1={key:0,class:"flex flex-col gap-4"},r1={class:"flex gap-4"},l1=Ve({__name:"[word]",async setup(c){let s,r;const l=Ts(),h=ye(Fg("word","").value),{data:d}=([s,r]=r0(async()=>Ng(`word-${h.value}-${l.locale.value}`,async()=>{try{const O=l.locale.value;return await $fetch(`/api/word/${h.value}?lang=${O}`)}catch(O){console.log(O)}})),s=await s,r(),s);i0({title:l.t("hanziClientWordMetaTitle",[h.value]),meta:[{name:"description",content:l.t("hanziClientWordMetaDescription",[h.value])}]});const{hanziType:v}=Ps(),S=Pt(()=>{var O;return((O=d.value)==null?void 0:O.traditionalWord)||h.value}),A=Pt(()=>v.value===qn?h.value:S.value),k=Pt(()=>h.value.replace(Cu,"")),L=Pt(()=>S.value.replace(Cu,"")),R=Pt(()=>[...new Set(k.value.split(""))]),q=Pt(()=>[...new Set(L.value.split(""))]),D=Pt(()=>v.value===qn?R.value:q.value),rt=Pt(()=>{var O;return Zv.uniq(((O=d.value)==null?void 0:O.categories)||[])}),at=ye("");return Au(async()=>{var gt,wt,St;const W=s0().$branch,ue=(wt=(gt=d==null?void 0:d.value)==null?void 0:gt.words)==null?void 0:wt[0].id;if(ue){const Ft=`laoshi://share.laoshi.io/word?id=${ue}`,$t={campaign:"static words",feature:"words",stage:"web",data:{$android_deeplink_path:Ft,$ios_url:Ft,$ios_deeplink_path:Ft,$desktop_url:`https://share.laoshi.io/word?id=${(St=d.value)==null?void 0:St.words[0].id}`}},le=new Promise((be,mn)=>W.link($t,function(We,Qe){We?mn(We):be(Qe)}));at.value=await le}}),(O,W)=>{var We,Qe,Kn,wn,Zn,Yn,ee,Yt;const ue=Dg,gt=qg,wt=Qr,St=_0,Ft=xv,$t=Fv,le=Gv,be=Rs,mn=zg;return Y(),et("main",null,[st(Hg),st(ue,{"hsk-categories":H(rt),word:H(A)},null,8,["hsk-categories","word"]),K("div",Yv,[K("div",Xv,[K("div",Vv,[K("div",Qv,[H(rt).length?(Y(),et("div",Jv,[(Y(!0),et(Ee,null,gn(H(rt),he=>(Y(),Se(gt,{key:he,"component-style":"button","is-white":!1,name:he,style:{height:"32px"}},{default:ct(()=>[Dt(lt(he),1)]),_:2},1032,["name"]))),128))])):(Y(),Se(wt,{key:1},{default:ct(()=>[H(v)===("HANZI_SIMPLIFIED"in O?O.HANZI_SIMPLIFIED:H(qn))?(Y(),et(Ee,{key:0},[Dt(lt(O.$t("hanziClientSimplifiedChinese")),1)],64)):H(v)===("HANZI_TRADITIONAL"in O?O.HANZI_TRADITIONAL:H(Ug))?(Y(),et(Ee,{key:1},[Dt(lt(O.$t("hanziClientTraditionalChinese")),1)],64)):oe("",!0)]),_:1})),K("div",jv,lt(H(A)),1),st(St,{words:((We=H(d))==null?void 0:We.words)||[]},null,8,["words"])])]),H(k).length?(Y(),Se(Ft,{key:0,"word-simplified":H(k),"word-traditional":H(L)},null,8,["word-simplified","word-traditional"])):oe("",!0)]),(Kn=(Qe=H(d))==null?void 0:Qe.words)!=null&&Kn.length||(Zn=(wn=H(d))==null?void 0:wn.phrases)!=null&&Zn.length?(Y(),et("div",t1,[st($t,{words:((Yn=H(d))==null?void 0:Yn.words)||[],word:H(A)},null,8,["words","word"]),(Yt=(ee=H(d))==null?void 0:ee.phrases)!=null&&Yt.length?(Y(),Se(le,{key:0,phrases:H(d).phrases,word:H(A)},null,8,["phrases","word"])):oe("",!0)])):oe("",!0),K("div",e1,[H(A).length>1?(Y(),et("div",n1,[st(wt,null,{default:ct(()=>
27[Dt(lt(O.$t("hanziClientRelatedWordsHeader")),1)]),_:1}),K("ul",r1,[(Y(!0),et(Ee,null,gn(H(D),he=>(Y(),et("li",{key:he},[st(be,{class:"text-black text-4xl leading-[46px]",to:`/${O.$i18n.locale}/${he}/`},{default:ct(()=>[Dt(lt(he),1)]),_:2},1032,["to"])]))),128))])])):oe("",!0)])]),st(mn,{to:H(at),title:O.$t("hanziClientContinueInApp")},null,8,["to","title"])])}}});export{l1 as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.