ai-chat-bot-interface 1.8.4 → 1.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.js +2393 -2313
- package/dist/index.umd.cjs +34 -34
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(Fe,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(Fe=typeof globalThis<"u"?globalThis:Fe||self,a(Fe.ChatUI={},Fe.Vue))})(this,function(Fe,a){"use strict";/*!
|
|
2
2
|
* shared v9.14.5
|
|
3
3
|
* (c) 2025 kazuya kawaguchi
|
|
4
4
|
* Released under the MIT License.
|
|
5
|
-
*/function dt(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Pu={};function $u(e){Pu[e]||(Pu[e]=!0,dt(e))}const yt=typeof window<"u";let
|
|
6
|
-
`)}function
|
|
5
|
+
*/function dt(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Pu={};function $u(e){Pu[e]||(Pu[e]=!0,dt(e))}const yt=typeof window<"u";let Ge,Vt;if(process.env.NODE_ENV!=="production"){const e=yt&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Ge=t=>{e.mark(t)},Vt=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Ss=/\{([0-9a-zA-Z]+)\}/g;function Ir(e,...t){return t.length===1&&ee(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Ss,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Et=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Is=(e,t,n)=>Os({l:e,k:t,s:n}),Os=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Te=e=>typeof e=="number"&&isFinite(e),Ls=e=>zu(e)==="[object Date]",Xt=e=>zu(e)==="[object RegExp]",Hn=e=>Q(e)&&Object.keys(e).length===0,$e=Object.assign,Fs=Object.create,le=(e=null)=>Fs(e);let Bu;const kt=()=>Bu||(Bu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:le());function Vu(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function Ru(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Ms(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,u,o)=>`${u}="${Ru(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,u,o)=>`${u}='${Ru(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&dt("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript:")}),e}const Ps=Object.prototype.hasOwnProperty;function ut(e,t){return Ps.call(e,t)}const Ne=Array.isArray,be=e=>typeof e=="function",M=e=>typeof e=="string",ce=e=>typeof e=="boolean",ee=e=>e!==null&&typeof e=="object",$s=e=>ee(e)&&be(e.then)&&be(e.catch),ju=Object.prototype.toString,zu=e=>ju.call(e),Q=e=>{if(!ee(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},Bs=e=>e==null?"":Ne(e)||Q(e)&&e.toString===ju?JSON.stringify(e,null,2):String(e);function Vs(e,t=""){return e.reduce((n,r,u)=>u===0?n+r:n+t+r,"")}const Uu=2;function Rs(e,t=0,n=e.length){const r=e.split(/\r?\n/);let u=0;const o=[];for(let i=0;i<r.length;i++)if(u+=r[i].length+1,u>=t){for(let s=i-Uu;s<=i+Uu||n>u;s++){if(s<0||s>=r.length)continue;const l=s+1;o.push(`${l}${" ".repeat(3-String(l).length)}| ${r[s]}`);const c=r[s].length;if(s===i){const f=t-(u-c)+1,d=Math.max(1,n>u?c-f:n-t);o.push(" | "+" ".repeat(f)+"^".repeat(d))}else if(s>i){if(n>u){const f=Math.max(Math.min(n-u,c),1);o.push(" | "+"^".repeat(f))}u+=c+1}}break}return o.join(`
|
|
6
|
+
`)}function Wn(e){let t=e;return()=>++t}function js(){const e=new Map;return{events:e,on(n,r){const u=e.get(n);u&&u.push(r)||e.set(n,[r])},off(n,r){const u=e.get(n);u&&u.splice(u.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(u=>u(r)),(e.get("*")||[]).slice().map(u=>u(n,r))}}}const Yn=e=>!ee(e)||Ne(e);function Gn(e,t){if(Yn(e)||Yn(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:u}=n.pop();Object.keys(r).forEach(o=>{o!=="__proto__"&&(ee(r[o])&&!ee(u[o])&&(u[o]=Array.isArray(r[o])?[]:le()),Yn(u[o])||Yn(r[o])?u[o]=r[o]:n.push({src:r[o],des:u[o]}))})}}/*!
|
|
7
7
|
* message-compiler v9.14.5
|
|
8
8
|
* (c) 2025 kazuya kawaguchi
|
|
9
9
|
* Released under the MIT License.
|
|
10
|
-
*/function zs(e,t,n){return{line:e,column:t,offset:n}}function
|
|
11
|
-
`,Js="\u2028",Qs="\u2029";function el(e){const t=e;let n=0,r=1,u=1,o=0;const i=x=>t[x]===Ks&&t[x+1]===je,s=x=>t[x]===je,l=x=>t[x]===Qs,c=x=>t[x]===Js,f=x=>i(x)||s(x)||l(x)||c(x),d=()=>n,_=()=>r,p=()=>u,m=()=>o,C=x=>i(x)||l(x)||c(x)?je:t[x],D=()=>C(n),N=()=>C(n+o);function v(){return o=0,f(n)&&(r++,u=0),i(n)&&n++,n++,u++,t[n]}function g(){return i(n+o)&&o++,o++,t[n+o]}function E(){n=0,r=1,u=1,o=0}function w(x=0){o=x}function h(){const x=n+o;for(;x!==n;)v();o=0}return{index:d,line:_,column:p,peekOffset:m,charAt:C,currentChar:D,currentPeek:N,next:v,peek:g,reset:E,resetPeek:w,skipToPeek:h}}const Nt=void 0,tl=".",Gu="'",nl="tokenizer";function rl(e,t={}){const n=t.location!==!1,r=el(e),u=()=>r.index(),o=()=>zs(r.line(),r.column(),r.index()),i=o(),s=u(),l={currentType:14,offset:s,startLoc:i,endLoc:i,lastType:14,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:f}=t;function d(b,y,I,...B){const xe=c();if(y.column+=I,y.offset+=I,f){const _e=n?Gn(xe.startLoc,y):null,ie=Zt(b,_e,{domain:nl,args:B});f(ie)}}function _(b,y,I){b.endLoc=o(),b.currentType=y;const B={type:y};return n&&(B.loc=Gn(b.startLoc,b.endLoc)),I!=null&&(B.value=I),B}const p=b=>_(b,14);function m(b,y){return b.currentChar()===y?(b.next(),y):(d(j.EXPECTED_TOKEN,o(),0,y),"")}function C(b){let y="";for(;b.currentPeek()===xt||b.currentPeek()===je;)y+=b.currentPeek(),b.peek();return y}function D(b){const y=C(b);return b.skipToPeek(),y}function N(b){if(b===Nt)return!1;const y=b.charCodeAt(0);return y>=97&&y<=122||y>=65&&y<=90||y===95}function v(b){if(b===Nt)return!1;const y=b.charCodeAt(0);return y>=48&&y<=57}function g(b,y){const{currentType:I}=y;if(I!==2)return!1;C(b);const B=N(b.currentPeek());return b.resetPeek(),B}function E(b,y){const{currentType:I}=y;if(I!==2)return!1;C(b);const B=b.currentPeek()==="-"?b.peek():b.currentPeek(),xe=v(B);return b.resetPeek(),xe}function w(b,y){const{currentType:I}=y;if(I!==2)return!1;C(b);const B=b.currentPeek()===Gu;return b.resetPeek(),B}function h(b,y){const{currentType:I}=y;if(I!==8)return!1;C(b);const B=b.currentPeek()===".";return b.resetPeek(),B}function x(b,y){const{currentType:I}=y;if(I!==9)return!1;C(b);const B=N(b.currentPeek());return b.resetPeek(),B}function k(b,y){const{currentType:I}=y;if(!(I===8||I===12))return!1;C(b);const B=b.currentPeek()===":";return b.resetPeek(),B}function T(b,y){const{currentType:I}=y;if(I!==10)return!1;const B=()=>{const _e=b.currentPeek();return _e==="{"?N(b.peek()):_e==="@"||_e==="%"||_e==="|"||_e===":"||_e==="."||_e===xt||!_e?!1:_e===je?(b.peek(),B()):V(b,!1)},xe=B();return b.resetPeek(),xe}function $(b){C(b);const y=b.currentPeek()==="|";return b.resetPeek(),y}function z(b){const y=C(b),I=b.currentPeek()==="%"&&b.peek()==="{";return b.resetPeek(),{isModulo:I,hasSpace:y.length>0}}function V(b,y=!0){const I=(xe=!1,_e="",ie=!1)=>{const S=b.currentPeek();return S==="{"?_e==="%"?!1:xe:S==="@"||!S?_e==="%"?!0:xe:S==="%"?(b.peek(),I(xe,"%",!0)):S==="|"?_e==="%"||ie?!0:!(_e===xt||_e===je):S===xt?(b.peek(),I(!0,xt,ie)):S===je?(b.peek(),I(!0,je,ie)):!0},B=I();return y&&b.resetPeek(),B}function ae(b,y){const I=b.currentChar();return I===Nt?Nt:y(I)?(b.next(),I):null}function U(b){const y=b.charCodeAt(0);return y>=97&&y<=122||y>=65&&y<=90||y>=48&&y<=57||y===95||y===36}function W(b){return ae(b,U)}function R(b){const y=b.charCodeAt(0);return y>=97&&y<=122||y>=65&&y<=90||y>=48&&y<=57||y===95||y===36||y===45}function ye(b){return ae(b,R)}function Oe(b){const y=b.charCodeAt(0);return y>=48&&y<=57}function P(b){return ae(b,Oe)}function J(b){const y=b.charCodeAt(0);return y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102}function F(b){return ae(b,J)}function ee(b){let y="",I="";for(;y=P(b);)I+=y;return I}function Z(b){D(b);const y=b.currentChar();return y!=="%"&&d(j.EXPECTED_TOKEN,o(),0,y),b.next(),"%"}function Ie(b){let y="";for(;;){const I=b.currentChar();if(I==="{"||I==="}"||I==="@"||I==="|"||!I)break;if(I==="%")if(V(b))y+=I,b.next();else break;else if(I===xt||I===je)if(V(b))y+=I,b.next();else{if($(b))break;y+=I,b.next()}else y+=I,b.next()}return y}function ue(b){D(b);let y="",I="";for(;y=ye(b);)I+=y;return b.currentChar()===Nt&&d(j.UNTERMINATED_CLOSING_BRACE,o(),0),I}function ft(b){D(b);let y="";return b.currentChar()==="-"?(b.next(),y+=`-${ee(b)}`):y+=ee(b),b.currentChar()===Nt&&d(j.UNTERMINATED_CLOSING_BRACE,o(),0),y}function A(b){return b!==Gu&&b!==je}function G(b){D(b),m(b,"'");let y="",I="";for(;y=ae(b,A);)y==="\\"?I+=X(b):I+=y;const B=b.currentChar();return B===je||B===Nt?(d(j.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),B===je&&(b.next(),m(b,"'")),I):(m(b,"'"),I)}function X(b){const y=b.currentChar();switch(y){case"\\":case"'":return b.next(),`\\${y}`;case"u":return ne(b,y,4);case"U":return ne(b,y,6);default:return d(j.UNKNOWN_ESCAPE_SEQUENCE,o(),0,y),""}}function ne(b,y,I){m(b,y);let B="";for(let xe=0;xe<I;xe++){const _e=F(b);if(!_e){d(j.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${y}${B}${b.currentChar()}`);break}B+=_e}return`\\${y}${B}`}function ke(b){return b!=="{"&&b!=="}"&&b!==xt&&b!==je}function de(b){D(b);let y="",I="";for(;y=ae(b,ke);)I+=y;return I}function Ne(b){let y="",I="";for(;y=W(b);)I+=y;return I}function O(b){const y=I=>{const B=b.currentChar();return B==="{"||B==="%"||B==="@"||B==="|"||B==="("||B===")"||!B||B===xt?I:(I+=B,b.next(),y(I))};return y("")}function H(b){D(b);const y=m(b,"|");return D(b),y}function We(b,y){let I=null;switch(b.currentChar()){case"{":return y.braceNest>=1&&d(j.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),b.next(),I=_(y,2,"{"),D(b),y.braceNest++,I;case"}":return y.braceNest>0&&y.currentType===2&&d(j.EMPTY_PLACEHOLDER,o(),0),b.next(),I=_(y,3,"}"),y.braceNest--,y.braceNest>0&&D(b),y.inLinked&&y.braceNest===0&&(y.inLinked=!1),I;case"@":return y.braceNest>0&&d(j.UNTERMINATED_CLOSING_BRACE,o(),0),I=nt(b,y)||p(y),y.braceNest=0,I;default:{let xe=!0,_e=!0,ie=!0;if($(b))return y.braceNest>0&&d(j.UNTERMINATED_CLOSING_BRACE,o(),0),I=_(y,1,H(b)),y.braceNest=0,y.inLinked=!1,I;if(y.braceNest>0&&(y.currentType===5||y.currentType===6||y.currentType===7))return d(j.UNTERMINATED_CLOSING_BRACE,o(),0),y.braceNest=0,Ee(b,y);if(xe=g(b,y))return I=_(y,5,ue(b)),D(b),I;if(_e=E(b,y))return I=_(y,6,ft(b)),D(b),I;if(ie=w(b,y))return I=_(y,7,G(b)),D(b),I;if(!xe&&!_e&&!ie)return I=_(y,13,de(b)),d(j.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,I.value),D(b),I;break}}return I}function nt(b,y){const{currentType:I}=y;let B=null;const xe=b.currentChar();switch((I===8||I===9||I===12||I===10)&&(xe===je||xe===xt)&&d(j.INVALID_LINKED_FORMAT,o(),0),xe){case"@":return b.next(),B=_(y,8,"@"),y.inLinked=!0,B;case".":return D(b),b.next(),_(y,9,".");case":":return D(b),b.next(),_(y,10,":");default:return $(b)?(B=_(y,1,H(b)),y.braceNest=0,y.inLinked=!1,B):h(b,y)||k(b,y)?(D(b),nt(b,y)):x(b,y)?(D(b),_(y,12,Ne(b))):T(b,y)?(D(b),xe==="{"?We(b,y)||B:_(y,11,O(b))):(I===8&&d(j.INVALID_LINKED_FORMAT,o(),0),y.braceNest=0,y.inLinked=!1,Ee(b,y))}}function Ee(b,y){let I={type:14};if(y.braceNest>0)return We(b,y)||p(y);if(y.inLinked)return nt(b,y)||p(y);switch(b.currentChar()){case"{":return We(b,y)||p(y);case"}":return d(j.UNBALANCED_CLOSING_BRACE,o(),0),b.next(),_(y,3,"}");case"@":return nt(b,y)||p(y);default:{if($(b))return I=_(y,1,H(b)),y.braceNest=0,y.inLinked=!1,I;const{isModulo:xe,hasSpace:_e}=z(b);if(xe)return _e?_(y,0,Ie(b)):_(y,4,Z(b));if(V(b))return _(y,0,Ie(b));break}}return I}function Bt(){const{currentType:b,offset:y,startLoc:I,endLoc:B}=l;return l.lastType=b,l.lastOffset=y,l.lastStartLoc=I,l.lastEndLoc=B,l.offset=u(),l.startLoc=o(),r.currentChar()===Nt?_(l,14):Ee(r,l)}return{nextToken:Bt,currentOffset:u,currentPosition:o,context:c}}const ul="parser",ol=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function al(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function il(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function u(g,E,w,h,...x){const k=g.currentPosition();if(k.offset+=h,k.column+=h,n){const T=t?Gn(w,k):null,$=Zt(E,T,{domain:ul,args:x});n($)}}function o(g,E,w,h,...x){const k=g.currentPosition();if(k.offset+=h,k.column+=h,r){const T=t?Gn(w,k):null;r(Ws(E,T,x))}}function i(g,E,w){const h={type:g};return t&&(h.start=E,h.end=E,h.loc={start:w,end:w}),h}function s(g,E,w,h){t&&(g.end=E,g.loc&&(g.loc.end=w))}function l(g,E){const w=g.context(),h=i(3,w.offset,w.startLoc);return h.value=E,s(h,g.currentOffset(),g.currentPosition()),h}function c(g,E){const w=g.context(),{lastOffset:h,lastStartLoc:x}=w,k=i(5,h,x);return k.index=parseInt(E,10),g.nextToken(),s(k,g.currentOffset(),g.currentPosition()),k}function f(g,E,w){const h=g.context(),{lastOffset:x,lastStartLoc:k}=h,T=i(4,x,k);return T.key=E,w===!0&&(T.modulo=!0),g.nextToken(),s(T,g.currentOffset(),g.currentPosition()),T}function d(g,E){const w=g.context(),{lastOffset:h,lastStartLoc:x}=w,k=i(9,h,x);return k.value=E.replace(ol,al),g.nextToken(),s(k,g.currentOffset(),g.currentPosition()),k}function _(g){const E=g.nextToken(),w=g.context(),{lastOffset:h,lastStartLoc:x}=w,k=i(8,h,x);return E.type!==12?(u(g,j.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),k.value="",s(k,h,x),{nextConsumeToken:E,node:k}):(E.value==null&&u(g,j.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,ut(E)),k.value=E.value||"",s(k,g.currentOffset(),g.currentPosition()),{node:k})}function p(g,E){const w=g.context(),h=i(7,w.offset,w.startLoc);return h.value=E,s(h,g.currentOffset(),g.currentPosition()),h}function m(g){const E=g.context(),w=i(6,E.offset,E.startLoc);let h=g.nextToken();if(h.type===9){const x=_(g);w.modifier=x.node,h=x.nextConsumeToken||g.nextToken()}switch(h.type!==10&&u(g,j.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(h)),h=g.nextToken(),h.type===2&&(h=g.nextToken()),h.type){case 11:h.value==null&&u(g,j.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(h)),w.key=p(g,h.value||"");break;case 5:h.value==null&&u(g,j.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(h)),w.key=f(g,h.value||"");break;case 6:h.value==null&&u(g,j.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(h)),w.key=c(g,h.value||"");break;case 7:h.value==null&&u(g,j.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(h)),w.key=d(g,h.value||"");break;default:{u(g,j.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const x=g.context(),k=i(7,x.offset,x.startLoc);return k.value="",s(k,x.offset,x.startLoc),w.key=k,s(w,x.offset,x.startLoc),{nextConsumeToken:h,node:w}}}return s(w,g.currentOffset(),g.currentPosition()),{node:w}}function C(g){const E=g.context(),w=E.currentType===1?g.currentOffset():E.offset,h=E.currentType===1?E.endLoc:E.startLoc,x=i(2,w,h);x.items=[];let k=null,T=null;do{const V=k||g.nextToken();switch(k=null,V.type){case 0:V.value==null&&u(g,j.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(V)),x.items.push(l(g,V.value||""));break;case 6:V.value==null&&u(g,j.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(V)),x.items.push(c(g,V.value||""));break;case 4:T=!0;break;case 5:V.value==null&&u(g,j.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(V)),x.items.push(f(g,V.value||"",!!T)),T&&(o(g,Xn.USE_MODULO_SYNTAX,E.lastStartLoc,0,ut(V)),T=null);break;case 7:V.value==null&&u(g,j.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(V)),x.items.push(d(g,V.value||""));break;case 8:{const ae=m(g);x.items.push(ae.node),k=ae.nextConsumeToken||null;break}}}while(E.currentType!==14&&E.currentType!==1);const $=E.currentType===1?E.lastOffset:g.currentOffset(),z=E.currentType===1?E.lastEndLoc:g.currentPosition();return s(x,$,z),x}function D(g,E,w,h){const x=g.context();let k=h.items.length===0;const T=i(1,E,w);T.cases=[],T.cases.push(h);do{const $=C(g);k||(k=$.items.length===0),T.cases.push($)}while(x.currentType!==14);return k&&u(g,j.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),s(T,g.currentOffset(),g.currentPosition()),T}function N(g){const E=g.context(),{offset:w,startLoc:h}=E,x=C(g);return E.currentType===14?x:D(g,w,h,x)}function v(g){const E=rl(g,Hu({},e)),w=E.context(),h=i(0,w.offset,w.startLoc);return t&&h.loc&&(h.loc.source=g),h.body=N(E),e.onCacheKey&&(h.cacheKey=e.onCacheKey(g)),w.currentType!==14&&u(E,j.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,g[w.offset]||""),s(h,E.currentOffset(),E.currentPosition()),h}return{parse:v}}function ut(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function sl(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function Xu(e,t){for(let n=0;n<e.length;n++)Or(e[n],t)}function Or(e,t){switch(e.type){case 1:Xu(e.cases,t),t.helper("plural");break;case 2:Xu(e.items,t);break;case 6:{Or(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function ll(e,t={}){const n=sl(e);n.helper("normalize"),e.body&&Or(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function cl(e){const t=e.body;return t.type===2?Zu(t):t.cases.forEach(n=>Zu(n)),e}function Zu(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Yu(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const fl="minifier";function Kt(e){switch(e.t=e.type,e.type){case 0:{const t=e;Kt(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Kt(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Kt(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Kt(t.key),t.k=t.key,delete t.key,t.modifier&&(Kt(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Zt(j.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:fl,args:[e.type]})}delete e.type}const dl="parser";function _l(e,t){const{filename:n,breakLineCode:r,needIndent:u}=t,o=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:u,indentLevel:0};o&&e.loc&&(i.source=e.loc.source);const s=()=>i;function l(C,D){i.code+=C}function c(C,D=!0){const N=D?r:"";l(u?N+" ".repeat(C):N)}function f(C=!0){const D=++i.indentLevel;C&&c(D)}function d(C=!0){const D=--i.indentLevel;C&&c(D)}function _(){c(i.indentLevel)}return{context:s,push:l,indent:f,deindent:d,newline:_,helper:C=>`_${C}`,needIndent:()=>i.needIndent}}function hl(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Jt(e,t.key),t.modifier?(e.push(", "),Jt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ml(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const u=t.items.length;for(let o=0;o<u&&(Jt(e,t.items[o]),o!==u-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function pl(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const u=t.cases.length;for(let o=0;o<u&&(Jt(e,t.cases[o]),o!==u-1);o++)e.push(", ");e.deindent(r()),e.push("])")}}function gl(e,t){t.body?Jt(e,t.body):e.push("null")}function Jt(e,t){const{helper:n}=e;switch(t.type){case 0:gl(e,t);break;case 1:pl(e,t);break;case 2:ml(e,t);break;case 6:hl(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Zt(j.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:dl,args:[t.type]})}}const bl=(e,t={})=>{const n=Wu(t.mode)?t.mode:"normal",r=Wu(t.filename)?t.filename:"message.intl";t.sourceMap;const u=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
10
|
+
*/function zs(e,t,n){return{line:e,column:t,offset:n}}function Xn(e,t,n){return{start:e,end:t}}const Us=/\{([0-9a-zA-Z]+)\}/g;function qu(e,...t){return t.length===1&&qs(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Us,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Hu=Object.assign,Wu=e=>typeof e=="string",qs=e=>e!==null&&typeof e=="object";function Yu(e,t=""){return e.reduce((n,r,u)=>u===0?n+r:n+t+r,"")}const Zn={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Hs={[Zn.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Ws(e,t,...n){const r=qu(Hs[e],...n||[]),u={message:String(r),code:e};return t&&(u.location=t),u}const z={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Ys={[z.EXPECTED_TOKEN]:"Expected token: '{0}'",[z.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[z.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[z.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[z.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[z.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[z.EMPTY_PLACEHOLDER]:"Empty placeholder",[z.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[z.INVALID_LINKED_FORMAT]:"Invalid linked format",[z.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[z.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[z.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[z.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[z.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[z.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Zt(e,t,n={}){const{domain:r,messages:u,args:o}=n,i=qu((u||Ys)[e]||"",...o||[]),s=new SyntaxError(String(i));return s.code=e,t&&(s.location=t),s.domain=r,s}function Gs(e){throw e}const Xs=/<\/?[\w\s="/.':;#-\/]+>/,Zs=e=>Xs.test(e),xt=" ",Ks="\r",Ve=`
|
|
11
|
+
`,Js="\u2028",Qs="\u2029";function el(e){const t=e;let n=0,r=1,u=1,o=0;const i=C=>t[C]===Ks&&t[C+1]===Ve,s=C=>t[C]===Ve,l=C=>t[C]===Qs,c=C=>t[C]===Js,f=C=>i(C)||s(C)||l(C)||c(C),d=()=>n,_=()=>r,p=()=>u,m=()=>o,x=C=>i(C)||l(C)||c(C)?Ve:t[C],D=()=>x(n),N=()=>x(n+o);function v(){return o=0,f(n)&&(r++,u=0),i(n)&&n++,n++,u++,t[n]}function g(){return i(n+o)&&o++,o++,t[n+o]}function E(){n=0,r=1,u=1,o=0}function w(C=0){o=C}function h(){const C=n+o;for(;C!==n;)v();o=0}return{index:d,line:_,column:p,peekOffset:m,charAt:x,currentChar:D,currentPeek:N,next:v,peek:g,reset:E,resetPeek:w,skipToPeek:h}}const Nt=void 0,tl=".",Gu="'",nl="tokenizer";function rl(e,t={}){const n=t.location!==!1,r=el(e),u=()=>r.index(),o=()=>zs(r.line(),r.column(),r.index()),i=o(),s=u(),l={currentType:14,offset:s,startLoc:i,endLoc:i,lastType:14,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:f}=t;function d(b,y,I,...R){const Ee=c();if(y.column+=I,y.offset+=I,f){const he=n?Xn(Ee.startLoc,y):null,se=Zt(b,he,{domain:nl,args:R});f(se)}}function _(b,y,I){b.endLoc=o(),b.currentType=y;const R={type:y};return n&&(R.loc=Xn(b.startLoc,b.endLoc)),I!=null&&(R.value=I),R}const p=b=>_(b,14);function m(b,y){return b.currentChar()===y?(b.next(),y):(d(z.EXPECTED_TOKEN,o(),0,y),"")}function x(b){let y="";for(;b.currentPeek()===xt||b.currentPeek()===Ve;)y+=b.currentPeek(),b.peek();return y}function D(b){const y=x(b);return b.skipToPeek(),y}function N(b){if(b===Nt)return!1;const y=b.charCodeAt(0);return y>=97&&y<=122||y>=65&&y<=90||y===95}function v(b){if(b===Nt)return!1;const y=b.charCodeAt(0);return y>=48&&y<=57}function g(b,y){const{currentType:I}=y;if(I!==2)return!1;x(b);const R=N(b.currentPeek());return b.resetPeek(),R}function E(b,y){const{currentType:I}=y;if(I!==2)return!1;x(b);const R=b.currentPeek()==="-"?b.peek():b.currentPeek(),Ee=v(R);return b.resetPeek(),Ee}function w(b,y){const{currentType:I}=y;if(I!==2)return!1;x(b);const R=b.currentPeek()===Gu;return b.resetPeek(),R}function h(b,y){const{currentType:I}=y;if(I!==8)return!1;x(b);const R=b.currentPeek()===".";return b.resetPeek(),R}function C(b,y){const{currentType:I}=y;if(I!==9)return!1;x(b);const R=N(b.currentPeek());return b.resetPeek(),R}function k(b,y){const{currentType:I}=y;if(!(I===8||I===12))return!1;x(b);const R=b.currentPeek()===":";return b.resetPeek(),R}function A(b,y){const{currentType:I}=y;if(I!==10)return!1;const R=()=>{const he=b.currentPeek();return he==="{"?N(b.peek()):he==="@"||he==="%"||he==="|"||he===":"||he==="."||he===xt||!he?!1:he===Ve?(b.peek(),R()):j(b,!1)},Ee=R();return b.resetPeek(),Ee}function B(b){x(b);const y=b.currentPeek()==="|";return b.resetPeek(),y}function U(b){const y=x(b),I=b.currentPeek()==="%"&&b.peek()==="{";return b.resetPeek(),{isModulo:I,hasSpace:y.length>0}}function j(b,y=!0){const I=(Ee=!1,he="",se=!1)=>{const T=b.currentPeek();return T==="{"?he==="%"?!1:Ee:T==="@"||!T?he==="%"?!0:Ee:T==="%"?(b.peek(),I(Ee,"%",!0)):T==="|"?he==="%"||se?!0:!(he===xt||he===Ve):T===xt?(b.peek(),I(!0,xt,se)):T===Ve?(b.peek(),I(!0,Ve,se)):!0},R=I();return y&&b.resetPeek(),R}function ie(b,y){const I=b.currentChar();return I===Nt?Nt:y(I)?(b.next(),I):null}function W(b){const y=b.charCodeAt(0);return y>=97&&y<=122||y>=65&&y<=90||y>=48&&y<=57||y===95||y===36}function q(b){return ie(b,W)}function Z(b){const y=b.charCodeAt(0);return y>=97&&y<=122||y>=65&&y<=90||y>=48&&y<=57||y===95||y===36||y===45}function te(b){return ie(b,Z)}function Pe(b){const y=b.charCodeAt(0);return y>=48&&y<=57}function He(b){return ie(b,Pe)}function $(b){const y=b.charCodeAt(0);return y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102}function K(b){return ie(b,$)}function F(b){let y="",I="";for(;y=He(b);)I+=y;return I}function ae(b){D(b);const y=b.currentChar();return y!=="%"&&d(z.EXPECTED_TOKEN,o(),0,y),b.next(),"%"}function Y(b){let y="";for(;;){const I=b.currentChar();if(I==="{"||I==="}"||I==="@"||I==="|"||!I)break;if(I==="%")if(j(b))y+=I,b.next();else break;else if(I===xt||I===Ve)if(j(b))y+=I,b.next();else{if(B(b))break;y+=I,b.next()}else y+=I,b.next()}return y}function Be(b){D(b);let y="",I="";for(;y=te(b);)I+=y;return b.currentChar()===Nt&&d(z.UNTERMINATED_CLOSING_BRACE,o(),0),I}function We(b){D(b);let y="";return b.currentChar()==="-"?(b.next(),y+=`-${F(b)}`):y+=F(b),b.currentChar()===Nt&&d(z.UNTERMINATED_CLOSING_BRACE,o(),0),y}function S(b){return b!==Gu&&b!==Ve}function P(b){D(b),m(b,"'");let y="",I="";for(;y=ie(b,S);)y==="\\"?I+=V(b):I+=y;const R=b.currentChar();return R===Ve||R===Nt?(d(z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),R===Ve&&(b.next(),m(b,"'")),I):(m(b,"'"),I)}function V(b){const y=b.currentChar();switch(y){case"\\":case"'":return b.next(),`\\${y}`;case"u":return ne(b,y,4);case"U":return ne(b,y,6);default:return d(z.UNKNOWN_ESCAPE_SEQUENCE,o(),0,y),""}}function ne(b,y,I){m(b,y);let R="";for(let Ee=0;Ee<I;Ee++){const he=K(b);if(!he){d(z.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${y}${R}${b.currentChar()}`);break}R+=he}return`\\${y}${R}`}function re(b){return b!=="{"&&b!=="}"&&b!==xt&&b!==Ve}function je(b){D(b);let y="",I="";for(;y=ie(b,re);)I+=y;return I}function _e(b){let y="",I="";for(;y=q(b);)I+=y;return I}function O(b){const y=I=>{const R=b.currentChar();return R==="{"||R==="%"||R==="@"||R==="|"||R==="("||R===")"||!R||R===xt?I:(I+=R,b.next(),y(I))};return y("")}function G(b){D(b);const y=m(b,"|");return D(b),y}function Je(b,y){let I=null;switch(b.currentChar()){case"{":return y.braceNest>=1&&d(z.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),b.next(),I=_(y,2,"{"),D(b),y.braceNest++,I;case"}":return y.braceNest>0&&y.currentType===2&&d(z.EMPTY_PLACEHOLDER,o(),0),b.next(),I=_(y,3,"}"),y.braceNest--,y.braceNest>0&&D(b),y.inLinked&&y.braceNest===0&&(y.inLinked=!1),I;case"@":return y.braceNest>0&&d(z.UNTERMINATED_CLOSING_BRACE,o(),0),I=Ye(b,y)||p(y),y.braceNest=0,I;default:{let Ee=!0,he=!0,se=!0;if(B(b))return y.braceNest>0&&d(z.UNTERMINATED_CLOSING_BRACE,o(),0),I=_(y,1,G(b)),y.braceNest=0,y.inLinked=!1,I;if(y.braceNest>0&&(y.currentType===5||y.currentType===6||y.currentType===7))return d(z.UNTERMINATED_CLOSING_BRACE,o(),0),y.braceNest=0,Yt(b,y);if(Ee=g(b,y))return I=_(y,5,Be(b)),D(b),I;if(he=E(b,y))return I=_(y,6,We(b)),D(b),I;if(se=w(b,y))return I=_(y,7,P(b)),D(b),I;if(!Ee&&!he&&!se)return I=_(y,13,je(b)),d(z.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,I.value),D(b),I;break}}return I}function Ye(b,y){const{currentType:I}=y;let R=null;const Ee=b.currentChar();switch((I===8||I===9||I===12||I===10)&&(Ee===Ve||Ee===xt)&&d(z.INVALID_LINKED_FORMAT,o(),0),Ee){case"@":return b.next(),R=_(y,8,"@"),y.inLinked=!0,R;case".":return D(b),b.next(),_(y,9,".");case":":return D(b),b.next(),_(y,10,":");default:return B(b)?(R=_(y,1,G(b)),y.braceNest=0,y.inLinked=!1,R):h(b,y)||k(b,y)?(D(b),Ye(b,y)):C(b,y)?(D(b),_(y,12,_e(b))):A(b,y)?(D(b),Ee==="{"?Je(b,y)||R:_(y,11,O(b))):(I===8&&d(z.INVALID_LINKED_FORMAT,o(),0),y.braceNest=0,y.inLinked=!1,Yt(b,y))}}function Yt(b,y){let I={type:14};if(y.braceNest>0)return Je(b,y)||p(y);if(y.inLinked)return Ye(b,y)||p(y);switch(b.currentChar()){case"{":return Je(b,y)||p(y);case"}":return d(z.UNBALANCED_CLOSING_BRACE,o(),0),b.next(),_(y,3,"}");case"@":return Ye(b,y)||p(y);default:{if(B(b))return I=_(y,1,G(b)),y.braceNest=0,y.inLinked=!1,I;const{isModulo:Ee,hasSpace:he}=U(b);if(Ee)return he?_(y,0,Y(b)):_(y,4,ae(b));if(j(b))return _(y,0,Y(b));break}}return I}function Ce(){const{currentType:b,offset:y,startLoc:I,endLoc:R}=l;return l.lastType=b,l.lastOffset=y,l.lastStartLoc=I,l.lastEndLoc=R,l.offset=u(),l.startLoc=o(),r.currentChar()===Nt?_(l,14):Yt(r,l)}return{nextToken:Ce,currentOffset:u,currentPosition:o,context:c}}const ul="parser",ol=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function al(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function il(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function u(g,E,w,h,...C){const k=g.currentPosition();if(k.offset+=h,k.column+=h,n){const A=t?Xn(w,k):null,B=Zt(E,A,{domain:ul,args:C});n(B)}}function o(g,E,w,h,...C){const k=g.currentPosition();if(k.offset+=h,k.column+=h,r){const A=t?Xn(w,k):null;r(Ws(E,A,C))}}function i(g,E,w){const h={type:g};return t&&(h.start=E,h.end=E,h.loc={start:w,end:w}),h}function s(g,E,w,h){t&&(g.end=E,g.loc&&(g.loc.end=w))}function l(g,E){const w=g.context(),h=i(3,w.offset,w.startLoc);return h.value=E,s(h,g.currentOffset(),g.currentPosition()),h}function c(g,E){const w=g.context(),{lastOffset:h,lastStartLoc:C}=w,k=i(5,h,C);return k.index=parseInt(E,10),g.nextToken(),s(k,g.currentOffset(),g.currentPosition()),k}function f(g,E,w){const h=g.context(),{lastOffset:C,lastStartLoc:k}=h,A=i(4,C,k);return A.key=E,w===!0&&(A.modulo=!0),g.nextToken(),s(A,g.currentOffset(),g.currentPosition()),A}function d(g,E){const w=g.context(),{lastOffset:h,lastStartLoc:C}=w,k=i(9,h,C);return k.value=E.replace(ol,al),g.nextToken(),s(k,g.currentOffset(),g.currentPosition()),k}function _(g){const E=g.nextToken(),w=g.context(),{lastOffset:h,lastStartLoc:C}=w,k=i(8,h,C);return E.type!==12?(u(g,z.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),k.value="",s(k,h,C),{nextConsumeToken:E,node:k}):(E.value==null&&u(g,z.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,ot(E)),k.value=E.value||"",s(k,g.currentOffset(),g.currentPosition()),{node:k})}function p(g,E){const w=g.context(),h=i(7,w.offset,w.startLoc);return h.value=E,s(h,g.currentOffset(),g.currentPosition()),h}function m(g){const E=g.context(),w=i(6,E.offset,E.startLoc);let h=g.nextToken();if(h.type===9){const C=_(g);w.modifier=C.node,h=C.nextConsumeToken||g.nextToken()}switch(h.type!==10&&u(g,z.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ot(h)),h=g.nextToken(),h.type===2&&(h=g.nextToken()),h.type){case 11:h.value==null&&u(g,z.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ot(h)),w.key=p(g,h.value||"");break;case 5:h.value==null&&u(g,z.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ot(h)),w.key=f(g,h.value||"");break;case 6:h.value==null&&u(g,z.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ot(h)),w.key=c(g,h.value||"");break;case 7:h.value==null&&u(g,z.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ot(h)),w.key=d(g,h.value||"");break;default:{u(g,z.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const C=g.context(),k=i(7,C.offset,C.startLoc);return k.value="",s(k,C.offset,C.startLoc),w.key=k,s(w,C.offset,C.startLoc),{nextConsumeToken:h,node:w}}}return s(w,g.currentOffset(),g.currentPosition()),{node:w}}function x(g){const E=g.context(),w=E.currentType===1?g.currentOffset():E.offset,h=E.currentType===1?E.endLoc:E.startLoc,C=i(2,w,h);C.items=[];let k=null,A=null;do{const j=k||g.nextToken();switch(k=null,j.type){case 0:j.value==null&&u(g,z.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ot(j)),C.items.push(l(g,j.value||""));break;case 6:j.value==null&&u(g,z.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ot(j)),C.items.push(c(g,j.value||""));break;case 4:A=!0;break;case 5:j.value==null&&u(g,z.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ot(j)),C.items.push(f(g,j.value||"",!!A)),A&&(o(g,Zn.USE_MODULO_SYNTAX,E.lastStartLoc,0,ot(j)),A=null);break;case 7:j.value==null&&u(g,z.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ot(j)),C.items.push(d(g,j.value||""));break;case 8:{const ie=m(g);C.items.push(ie.node),k=ie.nextConsumeToken||null;break}}}while(E.currentType!==14&&E.currentType!==1);const B=E.currentType===1?E.lastOffset:g.currentOffset(),U=E.currentType===1?E.lastEndLoc:g.currentPosition();return s(C,B,U),C}function D(g,E,w,h){const C=g.context();let k=h.items.length===0;const A=i(1,E,w);A.cases=[],A.cases.push(h);do{const B=x(g);k||(k=B.items.length===0),A.cases.push(B)}while(C.currentType!==14);return k&&u(g,z.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),s(A,g.currentOffset(),g.currentPosition()),A}function N(g){const E=g.context(),{offset:w,startLoc:h}=E,C=x(g);return E.currentType===14?C:D(g,w,h,C)}function v(g){const E=rl(g,Hu({},e)),w=E.context(),h=i(0,w.offset,w.startLoc);return t&&h.loc&&(h.loc.source=g),h.body=N(E),e.onCacheKey&&(h.cacheKey=e.onCacheKey(g)),w.currentType!==14&&u(E,z.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,g[w.offset]||""),s(h,E.currentOffset(),E.currentPosition()),h}return{parse:v}}function ot(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function sl(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function Xu(e,t){for(let n=0;n<e.length;n++)Or(e[n],t)}function Or(e,t){switch(e.type){case 1:Xu(e.cases,t),t.helper("plural");break;case 2:Xu(e.items,t);break;case 6:{Or(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function ll(e,t={}){const n=sl(e);n.helper("normalize"),e.body&&Or(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function cl(e){const t=e.body;return t.type===2?Zu(t):t.cases.forEach(n=>Zu(n)),e}function Zu(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Yu(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const fl="minifier";function Kt(e){switch(e.t=e.type,e.type){case 0:{const t=e;Kt(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Kt(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Kt(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Kt(t.key),t.k=t.key,delete t.key,t.modifier&&(Kt(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Zt(z.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:fl,args:[e.type]})}delete e.type}const dl="parser";function _l(e,t){const{filename:n,breakLineCode:r,needIndent:u}=t,o=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:u,indentLevel:0};o&&e.loc&&(i.source=e.loc.source);const s=()=>i;function l(x,D){i.code+=x}function c(x,D=!0){const N=D?r:"";l(u?N+" ".repeat(x):N)}function f(x=!0){const D=++i.indentLevel;x&&c(D)}function d(x=!0){const D=--i.indentLevel;x&&c(D)}function _(){c(i.indentLevel)}return{context:s,push:l,indent:f,deindent:d,newline:_,helper:x=>`_${x}`,needIndent:()=>i.needIndent}}function hl(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Jt(e,t.key),t.modifier?(e.push(", "),Jt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ml(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const u=t.items.length;for(let o=0;o<u&&(Jt(e,t.items[o]),o!==u-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function pl(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const u=t.cases.length;for(let o=0;o<u&&(Jt(e,t.cases[o]),o!==u-1);o++)e.push(", ");e.deindent(r()),e.push("])")}}function gl(e,t){t.body?Jt(e,t.body):e.push("null")}function Jt(e,t){const{helper:n}=e;switch(t.type){case 0:gl(e,t);break;case 1:pl(e,t);break;case 2:ml(e,t);break;case 6:hl(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Zt(z.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:dl,args:[t.type]})}}const bl=(e,t={})=>{const n=Wu(t.mode)?t.mode:"normal",r=Wu(t.filename)?t.filename:"message.intl";t.sourceMap;const u=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
12
12
|
`,o=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],s=_l(e,{filename:r,breakLineCode:u,needIndent:o});s.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(o),i.length>0&&(s.push(`const { ${Yu(i.map(f=>`${f}: _${f}`),", ")} } = ctx`),s.newline()),s.push("return "),Jt(s,e),s.deindent(o),s.push("}"),delete e.helpers;const{code:l,map:c}=s.context();return{ast:e,code:l,map:c?c.toJSON():void 0}};function yl(e,t={}){const n=Hu({},t),r=!!n.jit,u=!!n.minify,o=n.optimize==null?!0:n.optimize,s=il(n).parse(e);return r?(o&&cl(s),u&&Kt(s),{ast:s,code:""}):(ll(s,n),bl(s,n))}/*!
|
|
13
13
|
* core-base v9.14.5
|
|
14
14
|
* (c) 2025 kazuya kawaguchi
|
|
15
15
|
* Released under the MIT License.
|
|
16
|
-
*/function El(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ot(e){return te(e)&&Lr(e)===0&&(rt(e,"b")||rt(e,"body"))}const Ku=["b","body"];function kl(e){return At(e,Ku)}const Ju=["c","cases"];function xl(e){return At(e,Ju,[])}const Qu=["s","static"];function Cl(e){return At(e,Qu)}const eo=["i","items"];function vl(e){return At(e,eo,[])}const to=["t","type"];function Lr(e){return At(e,to)}const no=["v","value"];function Zn(e,t){const n=At(e,no);if(n!=null)return n;throw yn(t)}const ro=["m","modifier"];function wl(e){return At(e,ro)}const uo=["k","key"];function Dl(e){const t=At(e,uo);if(t)return t;throw yn(6)}function At(e,t,n){for(let r=0;r<t.length;r++){const u=t[r];if(rt(e,u)&&e[u]!=null)return e[u]}return n}const oo=[...Ku,...Ju,...Qu,...eo,...uo,...ro,...no,...to];function yn(e){return new Error(`unhandled node type: ${e}`)}const Tt=[];Tt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Tt[1]={w:[1],".":[2],"[":[4],o:[7]},Tt[2]={w:[2],i:[3,0],0:[3,0]},Tt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Tt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Tt[5]={"'":[4,0],o:8,l:[5,0]},Tt[6]={'"':[4,0],o:8,l:[6,0]};const Nl=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Al(e){return Nl.test(e)}function Tl(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Sl(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Il(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Al(t)?Tl(t):"*"+t}function Ol(e){const t=[];let n=-1,r=0,u=0,o,i,s,l,c,f,d;const _=[];_[0]=()=>{i===void 0?i=s:i+=s},_[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},_[2]=()=>{_[0](),u++},_[3]=()=>{if(u>0)u--,r=4,_[0]();else{if(u=0,i===void 0||(i=Il(i),i===!1))return!1;_[1]()}};function p(){const m=e[n+1];if(r===5&&m==="'"||r===6&&m==='"')return n++,s="\\"+m,_[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&p())){if(l=Sl(o),d=Tt[r],c=d[l]||d.l||8,c===8||(r=c[0],c[1]!==void 0&&(f=_[c[1]],f&&(s=o,f()===!1))))return;if(r===7)return t}}const ao=new Map;function Ll(e,t){return te(e)?e[t]:null}function Fl(e,t){if(!te(e))return null;let n=ao.get(t);if(n||(n=Ol(t),n&&ao.set(t,n)),!n)return null;const r=n.length;let u=e,o=0;for(;o<r;){const i=n[o];if(oo.includes(i)&&ot(u))return null;const s=u[i];if(s===void 0||pe(u))return null;u=s,o++}return u}const Ml=e=>e,Pl=e=>"",$l="text",Bl=e=>e.length===0?"":Vs(e),Vl=Bs;function io(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Rl(e){const t=Le(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Le(e.named.count)||Le(e.named.n))?Le(e.named.count)?e.named.count:Le(e.named.n)?e.named.n:t:t}function jl(e,t){t.count||(t.count=e),t.n||(t.n=e)}function zl(e={}){const t=e.locale,n=Rl(e),r=te(e.pluralRules)&&M(t)&&pe(e.pluralRules[t])?e.pluralRules[t]:io,u=te(e.pluralRules)&&M(t)&&pe(e.pluralRules[t])?io:void 0,o=N=>N[r(n,N.length,u)],i=e.list||[],s=N=>i[N],l=e.named||se();Le(e.pluralIndex)&&jl(n,l);const c=N=>l[N];function f(N){const v=pe(e.messages)?e.messages(N):te(e.messages)?e.messages[N]:!1;return v||(e.parent?e.parent.message(N):Pl)}const d=N=>e.modifiers?e.modifiers[N]:Ml,_=Q(e.processor)&&pe(e.processor.normalize)?e.processor.normalize:Bl,p=Q(e.processor)&&pe(e.processor.interpolate)?e.processor.interpolate:Vl,m=Q(e.processor)&&M(e.processor.type)?e.processor.type:$l,D={list:s,named:c,plural:o,linked:(N,...v)=>{const[g,E]=v;let w="text",h="";v.length===1?te(g)?(h=g.modifier||h,w=g.type||w):M(g)&&(h=g||h):v.length===2&&(M(g)&&(h=g||h),M(E)&&(w=E||w));const x=f(N)(D),k=w==="vnode"&&Te(x)&&h?x[0]:x;return h?d(h)(k,w):k},message:f,type:m,interpolate:p,normalize:_,values:Re(se(),i,l)};return D}let En=null;function Ul(e){En=e}function ql(e,t,n){En&&En.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Hl=Wl("function:translate");function Wl(e){return t=>En&&En.emit(e,t)}const so=Xn.__EXTEND_POINT__,jt=Hn(so),ze={NOT_FOUND_KEY:so,FALLBACK_TO_TRANSLATE:jt(),CANNOT_FORMAT_NUMBER:jt(),FALLBACK_TO_NUMBER_FORMAT:jt(),CANNOT_FORMAT_DATE:jt(),FALLBACK_TO_DATE_FORMAT:jt(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:jt(),__EXTEND_POINT__:jt()},Yl={[ze.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ze.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ze.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ze.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ze.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ze.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ze.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function zt(e,...t){return Ir(Yl[e],...t)}const lo=j.__EXTEND_POINT__,Ut=Hn(lo),Fe={INVALID_ARGUMENT:lo,INVALID_DATE_ARGUMENT:Ut(),INVALID_ISO_DATE_ARGUMENT:Ut(),NOT_SUPPORT_NON_STRING_MESSAGE:Ut(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Ut(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Ut(),NOT_SUPPORT_LOCALE_TYPE:Ut(),__EXTEND_POINT__:Ut()};function _t(e){return Zt(e,null,process.env.NODE_ENV!=="production"?{messages:Gl}:void 0)}const Gl={[Fe.INVALID_ARGUMENT]:"Invalid arguments",[Fe.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Fe.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Fe.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Fe.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Fe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Fe.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Fr(e,t){return t.locale!=null?co(t.locale):co(e.locale)}let Mr;function co(e){if(M(e))return e;if(pe(e)){if(e.resolvedOnce&&Mr!=null)return Mr;if(e.constructor.name==="Function"){const t=e();if($s(t))throw _t(Fe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Mr=t}else throw _t(Fe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw _t(Fe.NOT_SUPPORT_LOCALE_TYPE)}function Xl(e,t,n){return[...new Set([n,...Te(t)?t:te(t)?Object.keys(t):M(t)?[t]:[n]])]}function fo(e,t,n){const r=M(n)?n:kn,u=e;u.__localeChainCache||(u.__localeChainCache=new Map);let o=u.__localeChainCache.get(r);if(!o){o=[];let i=[n];for(;Te(i);)i=_o(o,i,t);const s=Te(t)||!Q(t)?t:t.default?t.default:null;i=M(s)?[s]:s,Te(i)&&_o(o,i,!1),u.__localeChainCache.set(r,o)}return o}function _o(e,t,n){let r=!0;for(let u=0;u<t.length&&le(r);u++){const o=t[u];M(o)&&(r=Zl(e,t[u],n))}return r}function Zl(e,t,n){let r;const u=t.split("-");do{const o=u.join("-");r=Kl(e,o,n),u.splice(-1,1)}while(u.length&&r===!0);return r}function Kl(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const u=t.replace(/!/g,"");e.push(u),(Te(n)||Q(n))&&n[u]&&(r=n[u])}return r}const Jl="9.14.5",Kn=-1,kn="en-US",Jn="",ho=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ql(){return{upper:(e,t)=>t==="text"&&M(e)?e.toUpperCase():t==="vnode"&&te(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&M(e)?e.toLowerCase():t==="vnode"&&te(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&M(e)?ho(e):t==="vnode"&&te(e)&&"__v_isVNode"in e?ho(e.children):e}}let mo;function po(e){mo=e}let go;function ec(e){go=e}let bo;function tc(e){bo=e}let yo=null;const nc=e=>{yo=e},rc=()=>yo;let Eo=null;const ko=e=>{Eo=e},uc=()=>Eo;let xo=0;function oc(e={}){const t=pe(e.onWarn)?e.onWarn:dt,n=M(e.version)?e.version:Jl,r=M(e.locale)||pe(e.locale)?e.locale:kn,u=pe(r)?kn:r,o=Te(e.fallbackLocale)||Q(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u,i=Q(e.messages)?e.messages:Pr(u),s=Q(e.datetimeFormats)?e.datetimeFormats:Pr(u),l=Q(e.numberFormats)?e.numberFormats:Pr(u),c=Re(se(),e.modifiers,Ql()),f=e.pluralRules||se(),d=pe(e.missing)?e.missing:null,_=le(e.missingWarn)||Xt(e.missingWarn)?e.missingWarn:!0,p=le(e.fallbackWarn)||Xt(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,C=!!e.unresolving,D=pe(e.postTranslation)?e.postTranslation:null,N=Q(e.processor)?e.processor:null,v=le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter,E=pe(e.messageCompiler)?e.messageCompiler:mo;process.env.NODE_ENV!=="production"&&pe(e.messageCompiler)&&$u(zt(ze.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const w=pe(e.messageResolver)?e.messageResolver:go||Ll,h=pe(e.localeFallbacker)?e.localeFallbacker:bo||Xl,x=te(e.fallbackContext)?e.fallbackContext:void 0,k=e,T=te(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,$=te(k.__numberFormatters)?k.__numberFormatters:new Map,z=te(k.__meta)?k.__meta:{};xo++;const V={version:n,cid:xo,locale:r,fallbackLocale:o,messages:i,modifiers:c,pluralRules:f,missing:d,missingWarn:_,fallbackWarn:p,fallbackFormat:m,unresolving:C,postTranslation:D,processor:N,warnHtmlMessage:v,escapeParameter:g,messageCompiler:E,messageResolver:w,localeFallbacker:h,fallbackContext:x,onWarn:t,__meta:z};return V.datetimeFormats=s,V.numberFormats=l,V.__datetimeFormatters=T,V.__numberFormatters=$,process.env.NODE_ENV!=="production"&&(V.__v_emitter=k.__v_emitter!=null?k.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&ql(V,n,z),V}const Pr=e=>({[e]:se()});function Qn(e,t){return e instanceof RegExp?e.test(t):e}function Co(e,t){return e instanceof RegExp?e.test(t):e}function $r(e,t,n,r,u){const{missing:o,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:n,key:t,type:u,groupId:`${u}:${t}`})}if(o!==null){const s=o(e,n,t,u);return M(s)?s:t}else return process.env.NODE_ENV!=="production"&&Co(r,t)&&i(zt(ze.NOT_FOUND_KEY,{key:t,locale:n})),t}function xn(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function vo(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function ac(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(vo(e,t[r]))return!0;return!1}function Br(e){return n=>ic(n,e)}function ic(e,t){const n=kl(t);if(n==null)throw yn(0);if(Lr(n)===1){const o=xl(n);return e.plural(o.reduce((i,s)=>[...i,wo(e,s)],[]))}else return wo(e,n)}function wo(e,t){const n=Cl(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=vl(t).reduce((u,o)=>[...u,Vr(e,o)],[]);return e.normalize(r)}}function Vr(e,t){const n=Lr(t);switch(n){case 3:return Zn(t,n);case 9:return Zn(t,n);case 4:{const r=t;if(rt(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(rt(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw yn(n)}case 5:{const r=t;if(rt(r,"i")&&Le(r.i))return e.interpolate(e.list(r.i));if(rt(r,"index")&&Le(r.index))return e.interpolate(e.list(r.index));throw yn(n)}case 6:{const r=t,u=wl(r),o=Dl(r);return e.linked(Vr(e,o),u?Vr(e,u):void 0,e.type)}case 7:return Zn(t,n);case 8:return Zn(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const sc="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Do(e,t){t&&Zs(e)&&dt(Ir(sc,{source:e}))}const No=e=>e;let Qt=se();function Ao(e){e.code===Xn.USE_MODULO_SYNTAX&&dt(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
16
|
+
*/function El(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function at(e){return ee(e)&&Lr(e)===0&&(ut(e,"b")||ut(e,"body"))}const Ku=["b","body"];function kl(e){return At(e,Ku)}const Ju=["c","cases"];function xl(e){return At(e,Ju,[])}const Qu=["s","static"];function Cl(e){return At(e,Qu)}const eo=["i","items"];function vl(e){return At(e,eo,[])}const to=["t","type"];function Lr(e){return At(e,to)}const no=["v","value"];function Kn(e,t){const n=At(e,no);if(n!=null)return n;throw En(t)}const ro=["m","modifier"];function wl(e){return At(e,ro)}const uo=["k","key"];function Dl(e){const t=At(e,uo);if(t)return t;throw En(6)}function At(e,t,n){for(let r=0;r<t.length;r++){const u=t[r];if(ut(e,u)&&e[u]!=null)return e[u]}return n}const oo=[...Ku,...Ju,...Qu,...eo,...uo,...ro,...no,...to];function En(e){return new Error(`unhandled node type: ${e}`)}const Tt=[];Tt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Tt[1]={w:[1],".":[2],"[":[4],o:[7]},Tt[2]={w:[2],i:[3,0],0:[3,0]},Tt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Tt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Tt[5]={"'":[4,0],o:8,l:[5,0]},Tt[6]={'"':[4,0],o:8,l:[6,0]};const Nl=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Al(e){return Nl.test(e)}function Tl(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Sl(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Il(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Al(t)?Tl(t):"*"+t}function Ol(e){const t=[];let n=-1,r=0,u=0,o,i,s,l,c,f,d;const _=[];_[0]=()=>{i===void 0?i=s:i+=s},_[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},_[2]=()=>{_[0](),u++},_[3]=()=>{if(u>0)u--,r=4,_[0]();else{if(u=0,i===void 0||(i=Il(i),i===!1))return!1;_[1]()}};function p(){const m=e[n+1];if(r===5&&m==="'"||r===6&&m==='"')return n++,s="\\"+m,_[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&p())){if(l=Sl(o),d=Tt[r],c=d[l]||d.l||8,c===8||(r=c[0],c[1]!==void 0&&(f=_[c[1]],f&&(s=o,f()===!1))))return;if(r===7)return t}}const ao=new Map;function Ll(e,t){return ee(e)?e[t]:null}function Fl(e,t){if(!ee(e))return null;let n=ao.get(t);if(n||(n=Ol(t),n&&ao.set(t,n)),!n)return null;const r=n.length;let u=e,o=0;for(;o<r;){const i=n[o];if(oo.includes(i)&&at(u))return null;const s=u[i];if(s===void 0||be(u))return null;u=s,o++}return u}const Ml=e=>e,Pl=e=>"",$l="text",Bl=e=>e.length===0?"":Vs(e),Vl=Bs;function io(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Rl(e){const t=Te(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Te(e.named.count)||Te(e.named.n))?Te(e.named.count)?e.named.count:Te(e.named.n)?e.named.n:t:t}function jl(e,t){t.count||(t.count=e),t.n||(t.n=e)}function zl(e={}){const t=e.locale,n=Rl(e),r=ee(e.pluralRules)&&M(t)&&be(e.pluralRules[t])?e.pluralRules[t]:io,u=ee(e.pluralRules)&&M(t)&&be(e.pluralRules[t])?io:void 0,o=N=>N[r(n,N.length,u)],i=e.list||[],s=N=>i[N],l=e.named||le();Te(e.pluralIndex)&&jl(n,l);const c=N=>l[N];function f(N){const v=be(e.messages)?e.messages(N):ee(e.messages)?e.messages[N]:!1;return v||(e.parent?e.parent.message(N):Pl)}const d=N=>e.modifiers?e.modifiers[N]:Ml,_=Q(e.processor)&&be(e.processor.normalize)?e.processor.normalize:Bl,p=Q(e.processor)&&be(e.processor.interpolate)?e.processor.interpolate:Vl,m=Q(e.processor)&&M(e.processor.type)?e.processor.type:$l,D={list:s,named:c,plural:o,linked:(N,...v)=>{const[g,E]=v;let w="text",h="";v.length===1?ee(g)?(h=g.modifier||h,w=g.type||w):M(g)&&(h=g||h):v.length===2&&(M(g)&&(h=g||h),M(E)&&(w=E||w));const C=f(N)(D),k=w==="vnode"&&Ne(C)&&h?C[0]:C;return h?d(h)(k,w):k},message:f,type:m,interpolate:p,normalize:_,values:$e(le(),i,l)};return D}let kn=null;function Ul(e){kn=e}function ql(e,t,n){kn&&kn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Hl=Wl("function:translate");function Wl(e){return t=>kn&&kn.emit(e,t)}const so=Zn.__EXTEND_POINT__,Rt=Wn(so),Re={NOT_FOUND_KEY:so,FALLBACK_TO_TRANSLATE:Rt(),CANNOT_FORMAT_NUMBER:Rt(),FALLBACK_TO_NUMBER_FORMAT:Rt(),CANNOT_FORMAT_DATE:Rt(),FALLBACK_TO_DATE_FORMAT:Rt(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Rt(),__EXTEND_POINT__:Rt()},Yl={[Re.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Re.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Re.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Re.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Re.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Re.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Re.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function jt(e,...t){return Ir(Yl[e],...t)}const lo=z.__EXTEND_POINT__,zt=Wn(lo),Se={INVALID_ARGUMENT:lo,INVALID_DATE_ARGUMENT:zt(),INVALID_ISO_DATE_ARGUMENT:zt(),NOT_SUPPORT_NON_STRING_MESSAGE:zt(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:zt(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:zt(),NOT_SUPPORT_LOCALE_TYPE:zt(),__EXTEND_POINT__:zt()};function _t(e){return Zt(e,null,process.env.NODE_ENV!=="production"?{messages:Gl}:void 0)}const Gl={[Se.INVALID_ARGUMENT]:"Invalid arguments",[Se.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Se.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Se.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Se.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Se.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Se.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Fr(e,t){return t.locale!=null?co(t.locale):co(e.locale)}let Mr;function co(e){if(M(e))return e;if(be(e)){if(e.resolvedOnce&&Mr!=null)return Mr;if(e.constructor.name==="Function"){const t=e();if($s(t))throw _t(Se.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Mr=t}else throw _t(Se.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw _t(Se.NOT_SUPPORT_LOCALE_TYPE)}function Xl(e,t,n){return[...new Set([n,...Ne(t)?t:ee(t)?Object.keys(t):M(t)?[t]:[n]])]}function fo(e,t,n){const r=M(n)?n:xn,u=e;u.__localeChainCache||(u.__localeChainCache=new Map);let o=u.__localeChainCache.get(r);if(!o){o=[];let i=[n];for(;Ne(i);)i=_o(o,i,t);const s=Ne(t)||!Q(t)?t:t.default?t.default:null;i=M(s)?[s]:s,Ne(i)&&_o(o,i,!1),u.__localeChainCache.set(r,o)}return o}function _o(e,t,n){let r=!0;for(let u=0;u<t.length&&ce(r);u++){const o=t[u];M(o)&&(r=Zl(e,t[u],n))}return r}function Zl(e,t,n){let r;const u=t.split("-");do{const o=u.join("-");r=Kl(e,o,n),u.splice(-1,1)}while(u.length&&r===!0);return r}function Kl(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const u=t.replace(/!/g,"");e.push(u),(Ne(n)||Q(n))&&n[u]&&(r=n[u])}return r}const Jl="9.14.5",Jn=-1,xn="en-US",Qn="",ho=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ql(){return{upper:(e,t)=>t==="text"&&M(e)?e.toUpperCase():t==="vnode"&&ee(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&M(e)?e.toLowerCase():t==="vnode"&&ee(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&M(e)?ho(e):t==="vnode"&&ee(e)&&"__v_isVNode"in e?ho(e.children):e}}let mo;function po(e){mo=e}let go;function ec(e){go=e}let bo;function tc(e){bo=e}let yo=null;const nc=e=>{yo=e},rc=()=>yo;let Eo=null;const ko=e=>{Eo=e},uc=()=>Eo;let xo=0;function oc(e={}){const t=be(e.onWarn)?e.onWarn:dt,n=M(e.version)?e.version:Jl,r=M(e.locale)||be(e.locale)?e.locale:xn,u=be(r)?xn:r,o=Ne(e.fallbackLocale)||Q(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u,i=Q(e.messages)?e.messages:Pr(u),s=Q(e.datetimeFormats)?e.datetimeFormats:Pr(u),l=Q(e.numberFormats)?e.numberFormats:Pr(u),c=$e(le(),e.modifiers,Ql()),f=e.pluralRules||le(),d=be(e.missing)?e.missing:null,_=ce(e.missingWarn)||Xt(e.missingWarn)?e.missingWarn:!0,p=ce(e.fallbackWarn)||Xt(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,x=!!e.unresolving,D=be(e.postTranslation)?e.postTranslation:null,N=Q(e.processor)?e.processor:null,v=ce(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter,E=be(e.messageCompiler)?e.messageCompiler:mo;process.env.NODE_ENV!=="production"&&be(e.messageCompiler)&&$u(jt(Re.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const w=be(e.messageResolver)?e.messageResolver:go||Ll,h=be(e.localeFallbacker)?e.localeFallbacker:bo||Xl,C=ee(e.fallbackContext)?e.fallbackContext:void 0,k=e,A=ee(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,B=ee(k.__numberFormatters)?k.__numberFormatters:new Map,U=ee(k.__meta)?k.__meta:{};xo++;const j={version:n,cid:xo,locale:r,fallbackLocale:o,messages:i,modifiers:c,pluralRules:f,missing:d,missingWarn:_,fallbackWarn:p,fallbackFormat:m,unresolving:x,postTranslation:D,processor:N,warnHtmlMessage:v,escapeParameter:g,messageCompiler:E,messageResolver:w,localeFallbacker:h,fallbackContext:C,onWarn:t,__meta:U};return j.datetimeFormats=s,j.numberFormats=l,j.__datetimeFormatters=A,j.__numberFormatters=B,process.env.NODE_ENV!=="production"&&(j.__v_emitter=k.__v_emitter!=null?k.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&ql(j,n,U),j}const Pr=e=>({[e]:le()});function er(e,t){return e instanceof RegExp?e.test(t):e}function Co(e,t){return e instanceof RegExp?e.test(t):e}function $r(e,t,n,r,u){const{missing:o,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:n,key:t,type:u,groupId:`${u}:${t}`})}if(o!==null){const s=o(e,n,t,u);return M(s)?s:t}else return process.env.NODE_ENV!=="production"&&Co(r,t)&&i(jt(Re.NOT_FOUND_KEY,{key:t,locale:n})),t}function Cn(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function vo(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function ac(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(vo(e,t[r]))return!0;return!1}function Br(e){return n=>ic(n,e)}function ic(e,t){const n=kl(t);if(n==null)throw En(0);if(Lr(n)===1){const o=xl(n);return e.plural(o.reduce((i,s)=>[...i,wo(e,s)],[]))}else return wo(e,n)}function wo(e,t){const n=Cl(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=vl(t).reduce((u,o)=>[...u,Vr(e,o)],[]);return e.normalize(r)}}function Vr(e,t){const n=Lr(t);switch(n){case 3:return Kn(t,n);case 9:return Kn(t,n);case 4:{const r=t;if(ut(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(ut(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw En(n)}case 5:{const r=t;if(ut(r,"i")&&Te(r.i))return e.interpolate(e.list(r.i));if(ut(r,"index")&&Te(r.index))return e.interpolate(e.list(r.index));throw En(n)}case 6:{const r=t,u=wl(r),o=Dl(r);return e.linked(Vr(e,o),u?Vr(e,u):void 0,e.type)}case 7:return Kn(t,n);case 8:return Kn(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const sc="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Do(e,t){t&&Zs(e)&&dt(Ir(sc,{source:e}))}const No=e=>e;let Qt=le();function Ao(e){e.code===Zn.USE_MODULO_SYNTAX&&dt(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
17
17
|
reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
|
|
18
|
-
(message compiler warning message: ${e.message})`)}function To(e,t={}){let n=!1;const r=t.onError||Gs;return t.onError=u=>{n=!0,r(u)},{...yl(e,t),detectError:n}}const lc=(e,t)=>{if(!M(e))throw _t(
|
|
19
|
-
${c}`:l)}else throw i},onCacheKey:i=>Is(t,n,i)}}function hc(e){if(M(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function mc(e,t,n,r){const{modifiers:u,pluralRules:o,messageResolver:i,fallbackLocale:s,fallbackWarn:l,missingWarn:c,fallbackContext:f}=e,_={locale:t,modifiers:u,pluralRules:o,messages:p=>{let m=i(n,p);if(m==null&&f){const[,,
|
|
18
|
+
(message compiler warning message: ${e.message})`)}function To(e,t={}){let n=!1;const r=t.onError||Gs;return t.onError=u=>{n=!0,r(u)},{...yl(e,t),detectError:n}}const lc=(e,t)=>{if(!M(e))throw _t(Se.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(t.onWarn=Ao);{const n=ce(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Do(e,n);const u=(t.onCacheKey||No)(e),o=Qt[u];if(o)return o;const{code:i,detectError:s}=To(e,t),l=new Function(`return ${i}`)();return s?l:Qt[u]=l}};function cc(e,t){if(process.env.NODE_ENV!=="production"&&(t.onWarn=Ao),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&M(e)){const n=ce(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Do(e,n);const u=(t.onCacheKey||No)(e),o=Qt[u];if(o)return o;const{ast:i,detectError:s}=To(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),l=Br(i);return s?l:Qt[u]=l}else{if(process.env.NODE_ENV!=="production"&&!at(e))return dt(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const r=Qt[n];return r||(Qt[n]=Br(e))}else return Br(e)}}const So=()=>"",Qe=e=>be(e);function Io(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:u,messageCompiler:o,fallbackLocale:i,messages:s}=e,[l,c]=Rr(...t),f=ce(c.missingWarn)?c.missingWarn:e.missingWarn,d=ce(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,_=ce(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,m=M(c.default)||ce(c.default)?ce(c.default)?o?l:()=>l:c.default:n?o?l:()=>l:"",x=n||m!=="",D=Fr(e,c);_&&fc(c);let[N,v,g]=p?[l,D,s[D]||le()]:Oo(e,l,D,i,d,f),E=N,w=l;if(!p&&!(M(E)||at(E)||Qe(E))&&x&&(E=m,w=E),!p&&(!(M(E)||at(E)||Qe(E))||!M(v)))return u?Jn:l;if(process.env.NODE_ENV!=="production"&&M(E)&&e.messageCompiler==null)return dt(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`),l;let h=!1;const C=()=>{h=!0},k=Qe(E)?E:Lo(e,l,v,E,w,C);if(h)return E;const A=mc(e,v,g,c),B=zl(A),U=dc(e,k,B);let j=r?r(U,l):U;if(_&&M(j)&&(j=Ms(j)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const ie={timestamp:Date.now(),key:M(l)?l:Qe(E)?E.key:"",locale:v||(Qe(E)?E.locale:""),format:M(E)?E:Qe(E)?E.source:"",message:j};ie.meta=$e({},e.__meta,rc()||{}),Hl(ie)}return j}function fc(e){Ne(e.list)?e.list=e.list.map(t=>M(t)?Vu(t):t):ee(e.named)&&Object.keys(e.named).forEach(t=>{M(e.named[t])&&(e.named[t]=Vu(e.named[t]))})}function Oo(e,t,n,r,u,o){const{messages:i,onWarn:s,messageResolver:l,localeFallbacker:c}=e,f=c(e,r,n);let d=le(),_,p=null,m=n,x=null;const D="translate";for(let N=0;N<f.length;N++){if(_=x=f[N],process.env.NODE_ENV!=="production"&&n!==_&&!vo(n,_)&&er(u,t)&&s(jt(Re.FALLBACK_TO_TRANSLATE,{key:t,target:_})),process.env.NODE_ENV!=="production"&&n!==_){const w=e.__v_emitter;w&&w.emit("fallback",{type:D,key:t,from:m,to:x,groupId:`${D}:${t}`})}d=i[_]||le();let v=null,g,E;if(process.env.NODE_ENV!=="production"&&yt&&(v=window.performance.now(),g="intlify-message-resolve-start",E="intlify-message-resolve-end",Ge&&Ge(g)),(p=l(d,t))===null&&(p=d[t]),process.env.NODE_ENV!=="production"&&yt){const w=window.performance.now(),h=e.__v_emitter;h&&v&&p&&h.emit("message-resolve",{type:"message-resolve",key:t,message:p,time:w-v,groupId:`${D}:${t}`}),g&&E&&Ge&&Vt&&(Ge(E),Vt("intlify message resolve",g,E))}if(M(p)||at(p)||Qe(p))break;if(!ac(_,f)){const w=$r(e,t,_,o,D);w!==t&&(p=w)}m=x}return[p,_,d]}function Lo(e,t,n,r,u,o){const{messageCompiler:i,warnHtmlMessage:s}=e;if(Qe(r)){const _=r;return _.locale=_.locale||n,_.key=_.key||t,_}if(i==null){const _=()=>r;return _.locale=n,_.key=t,_}let l=null,c,f;process.env.NODE_ENV!=="production"&&yt&&(l=window.performance.now(),c="intlify-message-compilation-start",f="intlify-message-compilation-end",Ge&&Ge(c));const d=i(r,_c(e,n,u,r,s,o));if(process.env.NODE_ENV!=="production"&&yt){const _=window.performance.now(),p=e.__v_emitter;p&&l&&p.emit("message-compilation",{type:"message-compilation",message:r,time:_-l,groupId:`translate:${t}`}),c&&f&&Ge&&Vt&&(Ge(f),Vt("intlify message compilation",c,f))}return d.locale=n,d.key=t,d.source=r,d}function dc(e,t,n){let r=null,u,o;process.env.NODE_ENV!=="production"&&yt&&(r=window.performance.now(),u="intlify-message-evaluation-start",o="intlify-message-evaluation-end",Ge&&Ge(u));const i=t(n);if(process.env.NODE_ENV!=="production"&&yt){const s=window.performance.now(),l=e.__v_emitter;l&&r&&l.emit("message-evaluation",{type:"message-evaluation",value:i,time:s-r,groupId:`translate:${t.key}`}),u&&o&&Ge&&Vt&&(Ge(o),Vt("intlify message evaluation",u,o))}return i}function Rr(...e){const[t,n,r]=e,u=le();if(!M(t)&&!Te(t)&&!Qe(t)&&!at(t))throw _t(Se.INVALID_ARGUMENT);const o=Te(t)?String(t):(Qe(t),t);return Te(n)?u.plural=n:M(n)?u.default=n:Q(n)&&!Hn(n)?u.named=n:Ne(n)&&(u.list=n),Te(r)?u.plural=r:M(r)?u.default=r:Q(r)&&$e(u,r),[o,u]}function _c(e,t,n,r,u,o){return{locale:t,key:n,warnHtmlMessage:u,onError:i=>{if(o&&o(i),process.env.NODE_ENV!=="production"){const s=hc(r),l=`Message compilation error: ${i.message}`,c=i.location&&s&&Rs(s,i.location.start.offset,i.location.end.offset),f=e.__v_emitter;f&&s&&f.emit("compile-error",{message:s,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${n}`}),console.error(c?`${l}
|
|
19
|
+
${c}`:l)}else throw i},onCacheKey:i=>Is(t,n,i)}}function hc(e){if(M(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function mc(e,t,n,r){const{modifiers:u,pluralRules:o,messageResolver:i,fallbackLocale:s,fallbackWarn:l,missingWarn:c,fallbackContext:f}=e,_={locale:t,modifiers:u,pluralRules:o,messages:p=>{let m=i(n,p);if(m==null&&f){const[,,x]=Oo(f,p,t,s,l,c);m=i(x,p)}if(M(m)||at(m)){let x=!1;const N=Lo(e,p,t,m,p,()=>{x=!0});return x?So:N}else return Qe(m)?m:So}};return e.processor&&(_.processor=e.processor),r.list&&(_.list=r.list),r.named&&(_.named=r.named),Te(r.plural)&&(_.pluralIndex=r.plural),_}const Fo=typeof Intl<"u",Mo={dateTimeFormat:Fo&&typeof Intl.DateTimeFormat<"u",numberFormat:Fo&&typeof Intl.NumberFormat<"u"};function Po(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:u,onWarn:o,localeFallbacker:i}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Mo.dateTimeFormat)return o(jt(Re.CANNOT_FORMAT_DATE)),Qn;const[l,c,f,d]=jr(...t),_=ce(f.missingWarn)?f.missingWarn:e.missingWarn,p=ce(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,m=!!f.part,x=Fr(e,f),D=i(e,u,x);if(!M(l)||l==="")return new Intl.DateTimeFormat(x,d).format(c);let N={},v,g=null,E=x,w=null;const h="datetime format";for(let A=0;A<D.length;A++){if(v=w=D[A],process.env.NODE_ENV!=="production"&&x!==v&&er(p,l)&&o(jt(Re.FALLBACK_TO_DATE_FORMAT,{key:l,target:v})),process.env.NODE_ENV!=="production"&&x!==v){const B=e.__v_emitter;B&&B.emit("fallback",{type:h,key:l,from:E,to:w,groupId:`${h}:${l}`})}if(N=n[v]||{},g=N[l],Q(g))break;$r(e,l,v,_,h),E=w}if(!Q(g)||!M(v))return r?Jn:l;let C=`${v}__${l}`;Hn(d)||(C=`${C}__${JSON.stringify(d)}`);let k=s.get(C);return k||(k=new Intl.DateTimeFormat(v,$e({},g,d)),s.set(C,k)),m?k.formatToParts(c):k.format(c)}const $o=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function jr(...e){const[t,n,r,u]=e,o=le();let i=le(),s;if(M(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw _t(Se.INVALID_ISO_DATE_ARGUMENT);const c=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(c);try{s.toISOString()}catch{throw _t(Se.INVALID_ISO_DATE_ARGUMENT)}}else if(Ls(t)){if(isNaN(t.getTime()))throw _t(Se.INVALID_DATE_ARGUMENT);s=t}else if(Te(t))s=t;else throw _t(Se.INVALID_ARGUMENT);return M(n)?o.key=n:Q(n)&&Object.keys(n).forEach(l=>{$o.includes(l)?i[l]=n[l]:o[l]=n[l]}),M(r)?o.locale=r:Q(r)&&(i=r),Q(u)&&(i=u),[o.key||"",s,o,i]}function Bo(e,t,n){const r=e;for(const u in n){const o=`${t}__${u}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function Vo(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:u,onWarn:o,localeFallbacker:i}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Mo.numberFormat)return o(jt(Re.CANNOT_FORMAT_NUMBER)),Qn;const[l,c,f,d]=zr(...t),_=ce(f.missingWarn)?f.missingWarn:e.missingWarn,p=ce(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,m=!!f.part,x=Fr(e,f),D=i(e,u,x);if(!M(l)||l==="")return new Intl.NumberFormat(x,d).format(c);let N={},v,g=null,E=x,w=null;const h="number format";for(let A=0;A<D.length;A++){if(v=w=D[A],process.env.NODE_ENV!=="production"&&x!==v&&er(p,l)&&o(jt(Re.FALLBACK_TO_NUMBER_FORMAT,{key:l,target:v})),process.env.NODE_ENV!=="production"&&x!==v){const B=e.__v_emitter;B&&B.emit("fallback",{type:h,key:l,from:E,to:w,groupId:`${h}:${l}`})}if(N=n[v]||{},g=N[l],Q(g))break;$r(e,l,v,_,h),E=w}if(!Q(g)||!M(v))return r?Jn:l;let C=`${v}__${l}`;Hn(d)||(C=`${C}__${JSON.stringify(d)}`);let k=s.get(C);return k||(k=new Intl.NumberFormat(v,$e({},g,d)),s.set(C,k)),m?k.formatToParts(c):k.format(c)}const Ro=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function zr(...e){const[t,n,r,u]=e,o=le();let i=le();if(!Te(t))throw _t(Se.INVALID_ARGUMENT);const s=t;return M(n)?o.key=n:Q(n)&&Object.keys(n).forEach(l=>{Ro.includes(l)?i[l]=n[l]:o[l]=n[l]}),M(r)?o.locale=r:Q(r)&&(i=r),Q(u)&&(i=u),[o.key||"",s,o,i]}function jo(e,t,n){const r=e;for(const u in n){const o=`${t}__${u}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}El();/*!
|
|
20
20
|
* vue-i18n v9.14.5
|
|
21
21
|
* (c) 2025 kazuya kawaguchi
|
|
22
22
|
* Released under the MIT License.
|
|
23
|
-
*/const pc="9.14.5";function gc(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(kt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(kt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1)}const zo=ze.__EXTEND_POINT__,Ct=Hn(zo),Ue={FALLBACK_TO_ROOT:zo,NOT_SUPPORTED_PRESERVE:Ct(),NOT_SUPPORTED_FORMATTER:Ct(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Ct(),NOT_SUPPORTED_GET_CHOICE_INDEX:Ct(),COMPONENT_NAME_LEGACY_COMPATIBLE:Ct(),NOT_FOUND_PARENT_SCOPE:Ct(),IGNORE_OBJ_FLATTEN:Ct(),NOTICE_DROP_ALLOW_COMPOSITION:Ct(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Ct()},bc={[Ue.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Ue.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Ue.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Ue.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Ue.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Ue.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Ue.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Ue.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Ue.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Ue.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function er(e,...t){return Ir(bc[e],...t)}const Uo=Fe.__EXTEND_POINT__,qe=Hn(Uo),Ce={UNEXPECTED_RETURN_TYPE:Uo,INVALID_ARGUMENT:qe(),MUST_BE_CALL_SETUP_TOP:qe(),NOT_INSTALLED:qe(),NOT_AVAILABLE_IN_LEGACY_MODE:qe(),REQUIRED_VALUE:qe(),INVALID_VALUE:qe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:qe(),NOT_INSTALLED_WITH_PROVIDE:qe(),UNEXPECTED_ERROR:qe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:qe(),BRIDGE_SUPPORT_VUE_2_ONLY:qe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:qe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:qe(),__EXTEND_POINT__:qe()};function St(e,...t){return Zt(e,null,process.env.NODE_ENV!=="production"?{messages:yc,args:t}:void 0)}const yc={[Ce.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Ce.INVALID_ARGUMENT]:"Invalid argument",[Ce.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Ce.NOT_INSTALLED]:"Need to install with `app.use` function",[Ce.UNEXPECTED_ERROR]:"Unexpected error",[Ce.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Ce.REQUIRED_VALUE]:"Required in value: {0}",[Ce.INVALID_VALUE]:"Invalid value",[Ce.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Ce.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Ce.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Ce.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Ce.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[Ce.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Ur=Et("__translateVNode"),qr=Et("__datetimeParts"),Hr=Et("__numberParts"),Wr=Et("__enableEmitter"),Yr=Et("__disableEmitter"),Ec=Et("__setPluralRules"),qo=Et("__injectWithOption"),Gr=Et("__dispose");function Cn(e){if(!te(e)||ot(e))return e;for(const t in e)if(rt(e,t))if(!t.includes("."))te(e[t])&&Cn(e[t]);else{const n=t.split("."),r=n.length-1;let u=e,o=!1;for(let i=0;i<r;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in u||(u[n[i]]=se()),!te(u[n[i]])){process.env.NODE_ENV!=="production"&&dt(er(Ue.IGNORE_OBJ_FLATTEN,{key:n[i]})),o=!0;break}u=u[n[i]]}if(o||(ot(u)?oo.includes(n[r])||delete e[t]:(u[n[r]]=e[t],delete e[t])),!ot(u)){const i=u[n[r]];te(i)&&Cn(i)}}return e}function Xr(e,t){const{messages:n,__i18n:r,messageResolver:u,flatJson:o}=t,i=Q(n)?n:Te(r)?se():{[e]:se()};if(Te(r)&&r.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:c}=s;l?(i[l]=i[l]||se(),Yn(c,i[l])):Yn(c,i)}else M(s)&&Yn(JSON.parse(s),i)}),u==null&&o)for(const s in i)rt(i,s)&&Cn(i[s]);return i}function Ho(e){return e.type}function kc(e,t,n){let r=te(t.messages)?t.messages:se();"__i18nGlobal"in n&&(r=Xr(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const u=Object.keys(r);u.length&&u.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(te(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(te(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Wo(e){return a.createVNode(a.Text,null,e,0)}const Yo="__INTLIFY_META__",Go=()=>[],xc=()=>!1;let Xo=0;function Zo(e){return(t,n,r,u)=>e(n,r,a.getCurrentInstance()||void 0,u)}const Cc=()=>{const e=a.getCurrentInstance();let t=null;return e&&(t=Ho(e)[Yo])?{[Yo]:t}:null};function vc(e={},t){const{__root:n,__injectWithOption:r}=e,u=n===void 0,o=e.flatJson,i=yt?a.ref:a.shallowRef,s=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&s&&$u(er(Ue.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let l=le(e.inheritLocale)?e.inheritLocale:!0;const c=i(n&&l?n.locale.value:M(e.locale)?e.locale:kn),f=i(n&&l?n.fallbackLocale.value:M(e.fallbackLocale)||Te(e.fallbackLocale)||Q(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),d=i(Xr(c.value,e)),_=i(Q(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),p=i(Q(e.numberFormats)?e.numberFormats:{[c.value]:{}});let m=n?n.missingWarn:le(e.missingWarn)||Xt(e.missingWarn)?e.missingWarn:!0,C=n?n.fallbackWarn:le(e.fallbackWarn)||Xt(e.fallbackWarn)?e.fallbackWarn:!0,D=n?n.fallbackRoot:le(e.fallbackRoot)?e.fallbackRoot:!0,N=!!e.fallbackFormat,v=pe(e.missing)?e.missing:null,g=pe(e.missing)?Zo(e.missing):null,E=pe(e.postTranslation)?e.postTranslation:null,w=n?n.warnHtmlMessage:le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,h=!!e.escapeParameter;const x=n?n.modifiers:Q(e.modifiers)?e.modifiers:{};let k=e.pluralRules||n&&n.pluralRules,T;T=(()=>{u&&ko(null);const S={version:pc,locale:c.value,fallbackLocale:f.value,messages:d.value,modifiers:x,pluralRules:k,missing:g===null?void 0:g,missingWarn:m,fallbackWarn:C,fallbackFormat:N,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:w,escapeParameter:h,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};S.datetimeFormats=_.value,S.numberFormats=p.value,S.__datetimeFormatters=Q(T)?T.__datetimeFormatters:void 0,S.__numberFormatters=Q(T)?T.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(S.__v_emitter=Q(T)?T.__v_emitter:void 0);const L=oc(S);return u&&ko(L),L})(),xn(T,c.value,f.value);function z(){return[c.value,f.value,d.value,_.value,p.value]}const V=a.computed({get:()=>c.value,set:S=>{c.value=S,T.locale=c.value}}),ae=a.computed({get:()=>f.value,set:S=>{f.value=S,T.fallbackLocale=f.value,xn(T,c.value,S)}}),U=a.computed(()=>d.value),W=a.computed(()=>_.value),R=a.computed(()=>p.value);function ye(){return pe(E)?E:null}function Oe(S){E=S,T.postTranslation=S}function P(){return v}function J(S){S!==null&&(g=Zo(S)),v=S,T.missing=g}function F(S,L){return S!=="translate"||!L.resolvedMessage}const ee=(S,L,oe,Ae,Vt,Sr)=>{z();let bn;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,u||(T.fallbackContext=n?uc():void 0),bn=S(T)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,u||(T.fallbackContext=void 0)}if(oe!=="translate exists"&&Le(bn)&&bn===Kn||oe==="translate exists"&&!bn){const[Gt,Yb]=L();if(process.env.NODE_ENV!=="production"&&n&&M(Gt)&&F(oe,Yb)&&(D&&(Qn(C,Gt)||Co(m,Gt))&&dt(er(Ue.FALLBACK_TO_ROOT,{key:Gt,type:oe})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ts}=T;Ts&&D&&Ts.emit("fallback",{type:oe,key:Gt,to:"global",groupId:`${oe}:${Gt}`})}return n&&D?Ae(n):Vt(Gt)}else{if(Sr(bn))return bn;throw St(Ce.UNEXPECTED_RETURN_TYPE)}};function Z(...S){return ee(L=>Reflect.apply(Io,null,[L,...S]),()=>Rr(...S),"translate",L=>Reflect.apply(L.t,L,[...S]),L=>L,L=>M(L))}function Ie(...S){const[L,oe,Ae]=S;if(Ae&&!te(Ae))throw St(Ce.INVALID_ARGUMENT);return Z(L,oe,Re({resolvedMessage:!0},Ae||{}))}function ue(...S){return ee(L=>Reflect.apply(Po,null,[L,...S]),()=>jr(...S),"datetime format",L=>Reflect.apply(L.d,L,[...S]),()=>Jn,L=>M(L))}function ft(...S){return ee(L=>Reflect.apply(Vo,null,[L,...S]),()=>zr(...S),"number format",L=>Reflect.apply(L.n,L,[...S]),()=>Jn,L=>M(L))}function A(S){return S.map(L=>M(L)||Le(L)||le(L)?Wo(String(L)):L)}const X={normalize:A,interpolate:S=>S,type:"vnode"};function ne(...S){return ee(L=>{let oe;const Ae=L;try{Ae.processor=X,oe=Reflect.apply(Io,null,[Ae,...S])}finally{Ae.processor=null}return oe},()=>Rr(...S),"translate",L=>L[Ur](...S),L=>[Wo(L)],L=>Te(L))}function ke(...S){return ee(L=>Reflect.apply(Vo,null,[L,...S]),()=>zr(...S),"number format",L=>L[Hr](...S),Go,L=>M(L)||Te(L))}function de(...S){return ee(L=>Reflect.apply(Po,null,[L,...S]),()=>jr(...S),"datetime format",L=>L[qr](...S),Go,L=>M(L)||Te(L))}function Ne(S){k=S,T.pluralRules=k}function O(S,L){return ee(()=>{if(!S)return!1;const oe=M(L)?L:c.value,Ae=nt(oe),Vt=T.messageResolver(Ae,S);return s?Vt!=null:ot(Vt)||Ke(Vt)||M(Vt)},()=>[S],"translate exists",oe=>Reflect.apply(oe.te,oe,[S,L]),xc,oe=>le(oe))}function H(S){let L=null;const oe=fo(T,f.value,c.value);for(let Ae=0;Ae<oe.length;Ae++){const Vt=d.value[oe[Ae]]||{},Sr=T.messageResolver(Vt,S);if(Sr!=null){L=Sr;break}}return L}function We(S){const L=H(S);return L??(n?n.tm(S)||{}:{})}function nt(S){return d.value[S]||{}}function Ee(S,L){if(o){const oe={[S]:L};for(const Ae in oe)rt(oe,Ae)&&Cn(oe[Ae]);L=oe[S]}d.value[S]=L,T.messages=d.value}function Bt(S,L){d.value[S]=d.value[S]||{};const oe={[S]:L};if(o)for(const Ae in oe)rt(oe,Ae)&&Cn(oe[Ae]);L=oe[S],Yn(L,d.value[S]),T.messages=d.value}function b(S){return _.value[S]||{}}function y(S,L){_.value[S]=L,T.datetimeFormats=_.value,Bo(T,S,L)}function I(S,L){_.value[S]=Re(_.value[S]||{},L),T.datetimeFormats=_.value,Bo(T,S,L)}function B(S){return p.value[S]||{}}function xe(S,L){p.value[S]=L,T.numberFormats=p.value,jo(T,S,L)}function _e(S,L){p.value[S]=Re(p.value[S]||{},L),T.numberFormats=p.value,jo(T,S,L)}Xo++,n&&yt&&(a.watch(n.locale,S=>{l&&(c.value=S,T.locale=S,xn(T,c.value,f.value))}),a.watch(n.fallbackLocale,S=>{l&&(f.value=S,T.fallbackLocale=S,xn(T,c.value,f.value))}));const ie={id:Xo,locale:V,fallbackLocale:ae,get inheritLocale(){return l},set inheritLocale(S){l=S,S&&n&&(c.value=n.locale.value,f.value=n.fallbackLocale.value,xn(T,c.value,f.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:U,get modifiers(){return x},get pluralRules(){return k||{}},get isGlobal(){return u},get missingWarn(){return m},set missingWarn(S){m=S,T.missingWarn=m},get fallbackWarn(){return C},set fallbackWarn(S){C=S,T.fallbackWarn=C},get fallbackRoot(){return D},set fallbackRoot(S){D=S},get fallbackFormat(){return N},set fallbackFormat(S){N=S,T.fallbackFormat=N},get warnHtmlMessage(){return w},set warnHtmlMessage(S){w=S,T.warnHtmlMessage=S},get escapeParameter(){return h},set escapeParameter(S){h=S,T.escapeParameter=S},t:Z,getLocaleMessage:nt,setLocaleMessage:Ee,mergeLocaleMessage:Bt,getPostTranslationHandler:ye,setPostTranslationHandler:Oe,getMissingHandler:P,setMissingHandler:J,[Ec]:Ne};return ie.datetimeFormats=W,ie.numberFormats=R,ie.rt=Ie,ie.te=O,ie.tm=We,ie.d=ue,ie.n=ft,ie.getDateTimeFormat=b,ie.setDateTimeFormat=y,ie.mergeDateTimeFormat=I,ie.getNumberFormat=B,ie.setNumberFormat=xe,ie.mergeNumberFormat=_e,ie[qo]=r,ie[Ur]=ne,ie[qr]=de,ie[Hr]=ke,process.env.NODE_ENV!=="production"&&(ie[Wr]=S=>{T.__v_emitter=S},ie[Yr]=()=>{T.__v_emitter=void 0}),ie}const Zr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function wc({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,u)=>[...r,...u.type===a.Fragment?u.children:[u]],[]):t.reduce((n,r)=>{const u=e[r];return u&&(n[r]=u()),n},se())}function Ko(e){return a.Fragment}Re({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Le(e)||!isNaN(e)}},Zr);function Dc(e){return Te(e)&&!M(e[0])}function Jo(e,t,n,r){const{slots:u,attrs:o}=t;return()=>{const i={part:!0};let s=se();e.locale&&(i.locale=e.locale),M(e.format)?i.key=e.format:te(e.format)&&(M(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((_,p)=>n.includes(p)?Re(se(),_,{[p]:e.format[p]}):_,se()));const l=r(e.value,i,s);let c=[i.key];Te(l)?c=l.map((_,p)=>{const m=u[_.type],C=m?m({[_.type]:_.value,index:p,parts:l}):[_.value];return Dc(C)&&(C[0].key=`${_.type}-${p}`),C}):M(l)&&(c=[l]);const f=Re(se(),o),d=M(e.tag)||te(e.tag)?e.tag:Ko();return a.h(d,f,c)}}Re({value:{type:Number,required:!0},format:{type:[String,Object]}},Zr),Re({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Zr);function Qo(e,t){}const Nc=Et("global-vue-i18n");function at(e={}){const t=a.getCurrentInstance();if(t==null)throw St(Ce.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw St(Ce.NOT_INSTALLED);const n=Ac(t),r=Sc(n),u=Ho(t),o=Tc(e,u);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw St(Ce.NOT_AVAILABLE_IN_LEGACY_MODE);return Fc(t,o,r,e)}if(o==="global")return kc(r,e,u),r;if(o==="parent"){let l=Ic(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&dt(er(Ue.NOT_FOUND_PARENT_SCOPE)),l=r),l}const i=n;let s=i.__getInstance(t);if(s==null){const l=Re({},e);"__i18n"in u&&(l.__i18n=u.__i18n),r&&(l.__root=r),s=vc(l),i.__composerExtend&&(s[Gr]=i.__composerExtend(s)),Lc(i,t,s),i.__setInstance(t,s)}return s}function Ac(e){{const t=a.inject(e.isCE?Nc:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw St(e.isCE?Ce.NOT_INSTALLED_WITH_PROVIDE:Ce.UNEXPECTED_ERROR);return t}}function Tc(e,t){return qn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Sc(e){return e.mode==="composition"?e.global:e.global.__composer}function Ic(e,t,n=!1){let r=null;const u=t.root;let o=Oc(t,n);for(;o!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(o);s!=null&&(r=s.__composer,n&&r&&!r[qo]&&(r=null))}if(r!=null||u===o)break;o=o.parent}return r}function Oc(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Lc(e,t,n){let r=null;a.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=js();const u=n;u[Wr]&&u[Wr](r),r.on("*",Qo)}},t),a.onUnmounted(()=>{const u=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",Qo),u[Yr]&&u[Yr](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const o=u[Gr];o&&(o(),delete u[Gr])},t)}function Fc(e,t,n,r={}){const u=t==="local",o=a.shallowRef(null);if(u&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw St(Ce.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=le(r.inheritLocale)?r.inheritLocale:!M(r.locale),s=a.ref(!u||i?n.locale.value:M(r.locale)?r.locale:kn),l=a.ref(!u||i?n.fallbackLocale.value:M(r.fallbackLocale)||Te(r.fallbackLocale)||Q(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:s.value),c=a.ref(Xr(s.value,r)),f=a.ref(Q(r.datetimeFormats)?r.datetimeFormats:{[s.value]:{}}),d=a.ref(Q(r.numberFormats)?r.numberFormats:{[s.value]:{}}),_=u?n.missingWarn:le(r.missingWarn)||Xt(r.missingWarn)?r.missingWarn:!0,p=u?n.fallbackWarn:le(r.fallbackWarn)||Xt(r.fallbackWarn)?r.fallbackWarn:!0,m=u?n.fallbackRoot:le(r.fallbackRoot)?r.fallbackRoot:!0,C=!!r.fallbackFormat,D=pe(r.missing)?r.missing:null,N=pe(r.postTranslation)?r.postTranslation:null,v=u?n.warnHtmlMessage:le(r.warnHtmlMessage)?r.warnHtmlMessage:!0,g=!!r.escapeParameter,E=u?n.modifiers:Q(r.modifiers)?r.modifiers:{},w=r.pluralRules||u&&n.pluralRules;function h(){return[s.value,l.value,c.value,f.value,d.value]}const x=a.computed({get:()=>o.value?o.value.locale.value:s.value,set:O=>{o.value&&(o.value.locale.value=O),s.value=O}}),k=a.computed({get:()=>o.value?o.value.fallbackLocale.value:l.value,set:O=>{o.value&&(o.value.fallbackLocale.value=O),l.value=O}}),T=a.computed(()=>o.value?o.value.messages.value:c.value),$=a.computed(()=>f.value),z=a.computed(()=>d.value);function V(){return o.value?o.value.getPostTranslationHandler():N}function ae(O){o.value&&o.value.setPostTranslationHandler(O)}function U(){return o.value?o.value.getMissingHandler():D}function W(O){o.value&&o.value.setMissingHandler(O)}function R(O){return h(),O()}function ye(...O){return o.value?R(()=>Reflect.apply(o.value.t,null,[...O])):R(()=>"")}function Oe(...O){return o.value?Reflect.apply(o.value.rt,null,[...O]):""}function P(...O){return o.value?R(()=>Reflect.apply(o.value.d,null,[...O])):R(()=>"")}function J(...O){return o.value?R(()=>Reflect.apply(o.value.n,null,[...O])):R(()=>"")}function F(O){return o.value?o.value.tm(O):{}}function ee(O,H){return o.value?o.value.te(O,H):!1}function Z(O){return o.value?o.value.getLocaleMessage(O):{}}function Ie(O,H){o.value&&(o.value.setLocaleMessage(O,H),c.value[O]=H)}function ue(O,H){o.value&&o.value.mergeLocaleMessage(O,H)}function ft(O){return o.value?o.value.getDateTimeFormat(O):{}}function A(O,H){o.value&&(o.value.setDateTimeFormat(O,H),f.value[O]=H)}function G(O,H){o.value&&o.value.mergeDateTimeFormat(O,H)}function X(O){return o.value?o.value.getNumberFormat(O):{}}function ne(O,H){o.value&&(o.value.setNumberFormat(O,H),d.value[O]=H)}function ke(O,H){o.value&&o.value.mergeNumberFormat(O,H)}const de={get id(){return o.value?o.value.id:-1},locale:x,fallbackLocale:k,messages:T,datetimeFormats:$,numberFormats:z,get inheritLocale(){return o.value?o.value.inheritLocale:i},set inheritLocale(O){o.value&&(o.value.inheritLocale=O)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(c.value)},get modifiers(){return o.value?o.value.modifiers:E},get pluralRules(){return o.value?o.value.pluralRules:w},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:_},set missingWarn(O){o.value&&(o.value.missingWarn=O)},get fallbackWarn(){return o.value?o.value.fallbackWarn:p},set fallbackWarn(O){o.value&&(o.value.missingWarn=O)},get fallbackRoot(){return o.value?o.value.fallbackRoot:m},set fallbackRoot(O){o.value&&(o.value.fallbackRoot=O)},get fallbackFormat(){return o.value?o.value.fallbackFormat:C},set fallbackFormat(O){o.value&&(o.value.fallbackFormat=O)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:v},set warnHtmlMessage(O){o.value&&(o.value.warnHtmlMessage=O)},get escapeParameter(){return o.value?o.value.escapeParameter:g},set escapeParameter(O){o.value&&(o.value.escapeParameter=O)},t:ye,getPostTranslationHandler:V,setPostTranslationHandler:ae,getMissingHandler:U,setMissingHandler:W,rt:Oe,d:P,n:J,tm:F,te:ee,getLocaleMessage:Z,setLocaleMessage:Ie,mergeLocaleMessage:ue,getDateTimeFormat:ft,setDateTimeFormat:A,mergeDateTimeFormat:G,getNumberFormat:X,setNumberFormat:ne,mergeNumberFormat:ke};function Ne(O){O.locale.value=s.value,O.fallbackLocale.value=l.value,Object.keys(c.value).forEach(H=>{O.mergeLocaleMessage(H,c.value[H])}),Object.keys(f.value).forEach(H=>{O.mergeDateTimeFormat(H,f.value[H])}),Object.keys(d.value).forEach(H=>{O.mergeNumberFormat(H,d.value[H])}),O.escapeParameter=g,O.fallbackFormat=C,O.fallbackRoot=m,O.fallbackWarn=p,O.missingWarn=_,O.warnHtmlMessage=v}return a.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw St(Ce.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const O=o.value=e.proxy.$i18n.__composer;t==="global"?(s.value=O.locale.value,l.value=O.fallbackLocale.value,c.value=O.messages.value,f.value=O.datetimeFormats.value,d.value=O.numberFormats.value):u&&Ne(O)}),de}if(gc(),__INTLIFY_JIT_COMPILATION__?po(cc):po(lc),ec(Fl),tc(fo),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=kt();e.__INTLIFY__=!0,Ul(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const ge=(e,t)=>{const n=e.__vccOpts||e;for(const[r,u]of t)n[r]=u;return n},Mc={},Pc={class:"icon-icon icon-icon-coz_broom",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};function $c(e,t){return a.openBlock(),a.createElementBlock("svg",Pc,t[0]||(t[0]=[a.createElementVNode("path",{d:"M9 2V6L4 6C2.89543 6 2 6.89543 2 8V21C2 22.1046 2.89543 23 4 23H20C21.1046 23 22 22.1046 22 21V8C22 6.89543 21.1046 6 20 6L15 6V2C15 0.895431 14.1046 0 13 0H11C9.89543 0 9 0.895431 9 2ZM13 2V8H20V12H4V8H11V2H13ZM4 14H20V21H9V18C9 17.4477 8.55228 17 8 17C7.44772 17 7 17.4477 7 18V21H4L4 14Z"},null,-1)]))}const Bc=ge(Mc,[["render",$c]]),Vc={},Rc={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};function jc(e,t){return a.openBlock(),a.createElementBlock("svg",Rc,t[0]||(t[0]=[a.createElementVNode("path",{d:"M4.96977 17.7929C4.57925 18.1834 4.57925 18.8166 4.96977 19.2071C5.3603 19.5976 5.99346 19.5976 6.38399 19.2071L12.1769 13.4142L17.9698 19.2071C18.3603 19.5976 18.9935 19.5976 19.384 19.2071C19.7745 18.8166 19.7745 18.1834 19.384 17.7929L13.5911 12L19.384 6.20711C19.7745 5.81658 19.7745 5.18342 19.384 4.79289C18.9935 4.40237 18.3603 4.40237 17.9698 4.79289L12.1769 10.5858L6.38399 4.79289C5.99347 4.40237 5.3603 4.40237 4.96978 4.79289C4.57925 5.18342 4.57925 5.81658 4.96978 6.20711L10.7627 12L4.96977 17.7929Z"},null,-1)]))}const ea=ge(Vc,[["render",jc]]);function ta(e,t={}){const r={...{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"},body:null,credentials:"same-origin",mode:"cors",cache:"default"},...t};if(console.log("====finalOptions====",r),r.method.toUpperCase()==="POST"&&!r.body)throw new Error("POST request must have a body");return fetch(e,r).then(u=>{if(!u.ok)throw new Error(`HTTP error! status: ${u.status}`);return u.json()}).catch(u=>{throw console.error("Fetch error:",u),u})}function zc(e,t={}){return ta(e,{...t,method:"GET"})}function tr(e,t={},n={}){return ta(e,{...n,method:"POST",body:JSON.stringify(t)})}/*!
|
|
23
|
+
*/const pc="9.14.5";function gc(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(kt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(kt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1)}const zo=Re.__EXTEND_POINT__,Ct=Wn(zo),ze={FALLBACK_TO_ROOT:zo,NOT_SUPPORTED_PRESERVE:Ct(),NOT_SUPPORTED_FORMATTER:Ct(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Ct(),NOT_SUPPORTED_GET_CHOICE_INDEX:Ct(),COMPONENT_NAME_LEGACY_COMPATIBLE:Ct(),NOT_FOUND_PARENT_SCOPE:Ct(),IGNORE_OBJ_FLATTEN:Ct(),NOTICE_DROP_ALLOW_COMPOSITION:Ct(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Ct()},bc={[ze.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[ze.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[ze.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[ze.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[ze.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[ze.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[ze.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[ze.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[ze.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[ze.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function tr(e,...t){return Ir(bc[e],...t)}const Uo=Se.__EXTEND_POINT__,Ue=Wn(Uo),ke={UNEXPECTED_RETURN_TYPE:Uo,INVALID_ARGUMENT:Ue(),MUST_BE_CALL_SETUP_TOP:Ue(),NOT_INSTALLED:Ue(),NOT_AVAILABLE_IN_LEGACY_MODE:Ue(),REQUIRED_VALUE:Ue(),INVALID_VALUE:Ue(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ue(),NOT_INSTALLED_WITH_PROVIDE:Ue(),UNEXPECTED_ERROR:Ue(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ue(),BRIDGE_SUPPORT_VUE_2_ONLY:Ue(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ue(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ue(),__EXTEND_POINT__:Ue()};function St(e,...t){return Zt(e,null,process.env.NODE_ENV!=="production"?{messages:yc,args:t}:void 0)}const yc={[ke.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[ke.INVALID_ARGUMENT]:"Invalid argument",[ke.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[ke.NOT_INSTALLED]:"Need to install with `app.use` function",[ke.UNEXPECTED_ERROR]:"Unexpected error",[ke.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[ke.REQUIRED_VALUE]:"Required in value: {0}",[ke.INVALID_VALUE]:"Invalid value",[ke.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[ke.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[ke.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[ke.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[ke.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[ke.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Ur=Et("__translateVNode"),qr=Et("__datetimeParts"),Hr=Et("__numberParts"),Wr=Et("__enableEmitter"),Yr=Et("__disableEmitter"),Ec=Et("__setPluralRules"),qo=Et("__injectWithOption"),Gr=Et("__dispose");function vn(e){if(!ee(e)||at(e))return e;for(const t in e)if(ut(e,t))if(!t.includes("."))ee(e[t])&&vn(e[t]);else{const n=t.split("."),r=n.length-1;let u=e,o=!1;for(let i=0;i<r;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in u||(u[n[i]]=le()),!ee(u[n[i]])){process.env.NODE_ENV!=="production"&&dt(tr(ze.IGNORE_OBJ_FLATTEN,{key:n[i]})),o=!0;break}u=u[n[i]]}if(o||(at(u)?oo.includes(n[r])||delete e[t]:(u[n[r]]=e[t],delete e[t])),!at(u)){const i=u[n[r]];ee(i)&&vn(i)}}return e}function Xr(e,t){const{messages:n,__i18n:r,messageResolver:u,flatJson:o}=t,i=Q(n)?n:Ne(r)?le():{[e]:le()};if(Ne(r)&&r.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:c}=s;l?(i[l]=i[l]||le(),Gn(c,i[l])):Gn(c,i)}else M(s)&&Gn(JSON.parse(s),i)}),u==null&&o)for(const s in i)ut(i,s)&&vn(i[s]);return i}function Ho(e){return e.type}function kc(e,t,n){let r=ee(t.messages)?t.messages:le();"__i18nGlobal"in n&&(r=Xr(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const u=Object.keys(r);u.length&&u.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(ee(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(ee(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Wo(e){return a.createVNode(a.Text,null,e,0)}const Yo="__INTLIFY_META__",Go=()=>[],xc=()=>!1;let Xo=0;function Zo(e){return(t,n,r,u)=>e(n,r,a.getCurrentInstance()||void 0,u)}const Cc=()=>{const e=a.getCurrentInstance();let t=null;return e&&(t=Ho(e)[Yo])?{[Yo]:t}:null};function vc(e={},t){const{__root:n,__injectWithOption:r}=e,u=n===void 0,o=e.flatJson,i=yt?a.ref:a.shallowRef,s=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&s&&$u(tr(ze.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let l=ce(e.inheritLocale)?e.inheritLocale:!0;const c=i(n&&l?n.locale.value:M(e.locale)?e.locale:xn),f=i(n&&l?n.fallbackLocale.value:M(e.fallbackLocale)||Ne(e.fallbackLocale)||Q(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),d=i(Xr(c.value,e)),_=i(Q(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),p=i(Q(e.numberFormats)?e.numberFormats:{[c.value]:{}});let m=n?n.missingWarn:ce(e.missingWarn)||Xt(e.missingWarn)?e.missingWarn:!0,x=n?n.fallbackWarn:ce(e.fallbackWarn)||Xt(e.fallbackWarn)?e.fallbackWarn:!0,D=n?n.fallbackRoot:ce(e.fallbackRoot)?e.fallbackRoot:!0,N=!!e.fallbackFormat,v=be(e.missing)?e.missing:null,g=be(e.missing)?Zo(e.missing):null,E=be(e.postTranslation)?e.postTranslation:null,w=n?n.warnHtmlMessage:ce(e.warnHtmlMessage)?e.warnHtmlMessage:!0,h=!!e.escapeParameter;const C=n?n.modifiers:Q(e.modifiers)?e.modifiers:{};let k=e.pluralRules||n&&n.pluralRules,A;A=(()=>{u&&ko(null);const T={version:pc,locale:c.value,fallbackLocale:f.value,messages:d.value,modifiers:C,pluralRules:k,missing:g===null?void 0:g,missingWarn:m,fallbackWarn:x,fallbackFormat:N,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:w,escapeParameter:h,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};T.datetimeFormats=_.value,T.numberFormats=p.value,T.__datetimeFormatters=Q(A)?A.__datetimeFormatters:void 0,T.__numberFormatters=Q(A)?A.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(T.__v_emitter=Q(A)?A.__v_emitter:void 0);const L=oc(T);return u&&ko(L),L})(),Cn(A,c.value,f.value);function U(){return[c.value,f.value,d.value,_.value,p.value]}const j=a.computed({get:()=>c.value,set:T=>{c.value=T,A.locale=c.value}}),ie=a.computed({get:()=>f.value,set:T=>{f.value=T,A.fallbackLocale=f.value,Cn(A,c.value,T)}}),W=a.computed(()=>d.value),q=a.computed(()=>_.value),Z=a.computed(()=>p.value);function te(){return be(E)?E:null}function Pe(T){E=T,A.postTranslation=T}function He(){return v}function $(T){T!==null&&(g=Zo(T)),v=T,A.missing=g}function K(T,L){return T!=="translate"||!L.resolvedMessage}const F=(T,L,oe,De,Bt,Sr)=>{U();let yn;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,u||(A.fallbackContext=n?uc():void 0),yn=T(A)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,u||(A.fallbackContext=void 0)}if(oe!=="translate exists"&&Te(yn)&&yn===Jn||oe==="translate exists"&&!yn){const[Gt,Zb]=L();if(process.env.NODE_ENV!=="production"&&n&&M(Gt)&&K(oe,Zb)&&(D&&(er(x,Gt)||Co(m,Gt))&&dt(tr(ze.FALLBACK_TO_ROOT,{key:Gt,type:oe})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ts}=A;Ts&&D&&Ts.emit("fallback",{type:oe,key:Gt,to:"global",groupId:`${oe}:${Gt}`})}return n&&D?De(n):Bt(Gt)}else{if(Sr(yn))return yn;throw St(ke.UNEXPECTED_RETURN_TYPE)}};function ae(...T){return F(L=>Reflect.apply(Io,null,[L,...T]),()=>Rr(...T),"translate",L=>Reflect.apply(L.t,L,[...T]),L=>L,L=>M(L))}function Y(...T){const[L,oe,De]=T;if(De&&!ee(De))throw St(ke.INVALID_ARGUMENT);return ae(L,oe,$e({resolvedMessage:!0},De||{}))}function Be(...T){return F(L=>Reflect.apply(Po,null,[L,...T]),()=>jr(...T),"datetime format",L=>Reflect.apply(L.d,L,[...T]),()=>Qn,L=>M(L))}function We(...T){return F(L=>Reflect.apply(Vo,null,[L,...T]),()=>zr(...T),"number format",L=>Reflect.apply(L.n,L,[...T]),()=>Qn,L=>M(L))}function S(T){return T.map(L=>M(L)||Te(L)||ce(L)?Wo(String(L)):L)}const V={normalize:S,interpolate:T=>T,type:"vnode"};function ne(...T){return F(L=>{let oe;const De=L;try{De.processor=V,oe=Reflect.apply(Io,null,[De,...T])}finally{De.processor=null}return oe},()=>Rr(...T),"translate",L=>L[Ur](...T),L=>[Wo(L)],L=>Ne(L))}function re(...T){return F(L=>Reflect.apply(Vo,null,[L,...T]),()=>zr(...T),"number format",L=>L[Hr](...T),Go,L=>M(L)||Ne(L))}function je(...T){return F(L=>Reflect.apply(Po,null,[L,...T]),()=>jr(...T),"datetime format",L=>L[qr](...T),Go,L=>M(L)||Ne(L))}function _e(T){k=T,A.pluralRules=k}function O(T,L){return F(()=>{if(!T)return!1;const oe=M(L)?L:c.value,De=Ye(oe),Bt=A.messageResolver(De,T);return s?Bt!=null:at(Bt)||Qe(Bt)||M(Bt)},()=>[T],"translate exists",oe=>Reflect.apply(oe.te,oe,[T,L]),xc,oe=>ce(oe))}function G(T){let L=null;const oe=fo(A,f.value,c.value);for(let De=0;De<oe.length;De++){const Bt=d.value[oe[De]]||{},Sr=A.messageResolver(Bt,T);if(Sr!=null){L=Sr;break}}return L}function Je(T){const L=G(T);return L??(n?n.tm(T)||{}:{})}function Ye(T){return d.value[T]||{}}function Yt(T,L){if(o){const oe={[T]:L};for(const De in oe)ut(oe,De)&&vn(oe[De]);L=oe[T]}d.value[T]=L,A.messages=d.value}function Ce(T,L){d.value[T]=d.value[T]||{};const oe={[T]:L};if(o)for(const De in oe)ut(oe,De)&&vn(oe[De]);L=oe[T],Gn(L,d.value[T]),A.messages=d.value}function b(T){return _.value[T]||{}}function y(T,L){_.value[T]=L,A.datetimeFormats=_.value,Bo(A,T,L)}function I(T,L){_.value[T]=$e(_.value[T]||{},L),A.datetimeFormats=_.value,Bo(A,T,L)}function R(T){return p.value[T]||{}}function Ee(T,L){p.value[T]=L,A.numberFormats=p.value,jo(A,T,L)}function he(T,L){p.value[T]=$e(p.value[T]||{},L),A.numberFormats=p.value,jo(A,T,L)}Xo++,n&&yt&&(a.watch(n.locale,T=>{l&&(c.value=T,A.locale=T,Cn(A,c.value,f.value))}),a.watch(n.fallbackLocale,T=>{l&&(f.value=T,A.fallbackLocale=T,Cn(A,c.value,f.value))}));const se={id:Xo,locale:j,fallbackLocale:ie,get inheritLocale(){return l},set inheritLocale(T){l=T,T&&n&&(c.value=n.locale.value,f.value=n.fallbackLocale.value,Cn(A,c.value,f.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:W,get modifiers(){return C},get pluralRules(){return k||{}},get isGlobal(){return u},get missingWarn(){return m},set missingWarn(T){m=T,A.missingWarn=m},get fallbackWarn(){return x},set fallbackWarn(T){x=T,A.fallbackWarn=x},get fallbackRoot(){return D},set fallbackRoot(T){D=T},get fallbackFormat(){return N},set fallbackFormat(T){N=T,A.fallbackFormat=N},get warnHtmlMessage(){return w},set warnHtmlMessage(T){w=T,A.warnHtmlMessage=T},get escapeParameter(){return h},set escapeParameter(T){h=T,A.escapeParameter=T},t:ae,getLocaleMessage:Ye,setLocaleMessage:Yt,mergeLocaleMessage:Ce,getPostTranslationHandler:te,setPostTranslationHandler:Pe,getMissingHandler:He,setMissingHandler:$,[Ec]:_e};return se.datetimeFormats=q,se.numberFormats=Z,se.rt=Y,se.te=O,se.tm=Je,se.d=Be,se.n=We,se.getDateTimeFormat=b,se.setDateTimeFormat=y,se.mergeDateTimeFormat=I,se.getNumberFormat=R,se.setNumberFormat=Ee,se.mergeNumberFormat=he,se[qo]=r,se[Ur]=ne,se[qr]=je,se[Hr]=re,process.env.NODE_ENV!=="production"&&(se[Wr]=T=>{A.__v_emitter=T},se[Yr]=()=>{A.__v_emitter=void 0}),se}const Zr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function wc({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,u)=>[...r,...u.type===a.Fragment?u.children:[u]],[]):t.reduce((n,r)=>{const u=e[r];return u&&(n[r]=u()),n},le())}function Ko(e){return a.Fragment}$e({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Te(e)||!isNaN(e)}},Zr);function Dc(e){return Ne(e)&&!M(e[0])}function Jo(e,t,n,r){const{slots:u,attrs:o}=t;return()=>{const i={part:!0};let s=le();e.locale&&(i.locale=e.locale),M(e.format)?i.key=e.format:ee(e.format)&&(M(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((_,p)=>n.includes(p)?$e(le(),_,{[p]:e.format[p]}):_,le()));const l=r(e.value,i,s);let c=[i.key];Ne(l)?c=l.map((_,p)=>{const m=u[_.type],x=m?m({[_.type]:_.value,index:p,parts:l}):[_.value];return Dc(x)&&(x[0].key=`${_.type}-${p}`),x}):M(l)&&(c=[l]);const f=$e(le(),o),d=M(e.tag)||ee(e.tag)?e.tag:Ko();return a.h(d,f,c)}}$e({value:{type:Number,required:!0},format:{type:[String,Object]}},Zr),$e({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Zr);function Qo(e,t){}const Nc=Et("global-vue-i18n");function it(e={}){const t=a.getCurrentInstance();if(t==null)throw St(ke.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw St(ke.NOT_INSTALLED);const n=Ac(t),r=Sc(n),u=Ho(t),o=Tc(e,u);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw St(ke.NOT_AVAILABLE_IN_LEGACY_MODE);return Fc(t,o,r,e)}if(o==="global")return kc(r,e,u),r;if(o==="parent"){let l=Ic(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&dt(tr(ze.NOT_FOUND_PARENT_SCOPE)),l=r),l}const i=n;let s=i.__getInstance(t);if(s==null){const l=$e({},e);"__i18n"in u&&(l.__i18n=u.__i18n),r&&(l.__root=r),s=vc(l),i.__composerExtend&&(s[Gr]=i.__composerExtend(s)),Lc(i,t,s),i.__setInstance(t,s)}return s}function Ac(e){{const t=a.inject(e.isCE?Nc:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw St(e.isCE?ke.NOT_INSTALLED_WITH_PROVIDE:ke.UNEXPECTED_ERROR);return t}}function Tc(e,t){return Hn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Sc(e){return e.mode==="composition"?e.global:e.global.__composer}function Ic(e,t,n=!1){let r=null;const u=t.root;let o=Oc(t,n);for(;o!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(o);s!=null&&(r=s.__composer,n&&r&&!r[qo]&&(r=null))}if(r!=null||u===o)break;o=o.parent}return r}function Oc(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Lc(e,t,n){let r=null;a.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=js();const u=n;u[Wr]&&u[Wr](r),r.on("*",Qo)}},t),a.onUnmounted(()=>{const u=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",Qo),u[Yr]&&u[Yr](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const o=u[Gr];o&&(o(),delete u[Gr])},t)}function Fc(e,t,n,r={}){const u=t==="local",o=a.shallowRef(null);if(u&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw St(ke.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=ce(r.inheritLocale)?r.inheritLocale:!M(r.locale),s=a.ref(!u||i?n.locale.value:M(r.locale)?r.locale:xn),l=a.ref(!u||i?n.fallbackLocale.value:M(r.fallbackLocale)||Ne(r.fallbackLocale)||Q(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:s.value),c=a.ref(Xr(s.value,r)),f=a.ref(Q(r.datetimeFormats)?r.datetimeFormats:{[s.value]:{}}),d=a.ref(Q(r.numberFormats)?r.numberFormats:{[s.value]:{}}),_=u?n.missingWarn:ce(r.missingWarn)||Xt(r.missingWarn)?r.missingWarn:!0,p=u?n.fallbackWarn:ce(r.fallbackWarn)||Xt(r.fallbackWarn)?r.fallbackWarn:!0,m=u?n.fallbackRoot:ce(r.fallbackRoot)?r.fallbackRoot:!0,x=!!r.fallbackFormat,D=be(r.missing)?r.missing:null,N=be(r.postTranslation)?r.postTranslation:null,v=u?n.warnHtmlMessage:ce(r.warnHtmlMessage)?r.warnHtmlMessage:!0,g=!!r.escapeParameter,E=u?n.modifiers:Q(r.modifiers)?r.modifiers:{},w=r.pluralRules||u&&n.pluralRules;function h(){return[s.value,l.value,c.value,f.value,d.value]}const C=a.computed({get:()=>o.value?o.value.locale.value:s.value,set:O=>{o.value&&(o.value.locale.value=O),s.value=O}}),k=a.computed({get:()=>o.value?o.value.fallbackLocale.value:l.value,set:O=>{o.value&&(o.value.fallbackLocale.value=O),l.value=O}}),A=a.computed(()=>o.value?o.value.messages.value:c.value),B=a.computed(()=>f.value),U=a.computed(()=>d.value);function j(){return o.value?o.value.getPostTranslationHandler():N}function ie(O){o.value&&o.value.setPostTranslationHandler(O)}function W(){return o.value?o.value.getMissingHandler():D}function q(O){o.value&&o.value.setMissingHandler(O)}function Z(O){return h(),O()}function te(...O){return o.value?Z(()=>Reflect.apply(o.value.t,null,[...O])):Z(()=>"")}function Pe(...O){return o.value?Reflect.apply(o.value.rt,null,[...O]):""}function He(...O){return o.value?Z(()=>Reflect.apply(o.value.d,null,[...O])):Z(()=>"")}function $(...O){return o.value?Z(()=>Reflect.apply(o.value.n,null,[...O])):Z(()=>"")}function K(O){return o.value?o.value.tm(O):{}}function F(O,G){return o.value?o.value.te(O,G):!1}function ae(O){return o.value?o.value.getLocaleMessage(O):{}}function Y(O,G){o.value&&(o.value.setLocaleMessage(O,G),c.value[O]=G)}function Be(O,G){o.value&&o.value.mergeLocaleMessage(O,G)}function We(O){return o.value?o.value.getDateTimeFormat(O):{}}function S(O,G){o.value&&(o.value.setDateTimeFormat(O,G),f.value[O]=G)}function P(O,G){o.value&&o.value.mergeDateTimeFormat(O,G)}function V(O){return o.value?o.value.getNumberFormat(O):{}}function ne(O,G){o.value&&(o.value.setNumberFormat(O,G),d.value[O]=G)}function re(O,G){o.value&&o.value.mergeNumberFormat(O,G)}const je={get id(){return o.value?o.value.id:-1},locale:C,fallbackLocale:k,messages:A,datetimeFormats:B,numberFormats:U,get inheritLocale(){return o.value?o.value.inheritLocale:i},set inheritLocale(O){o.value&&(o.value.inheritLocale=O)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(c.value)},get modifiers(){return o.value?o.value.modifiers:E},get pluralRules(){return o.value?o.value.pluralRules:w},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:_},set missingWarn(O){o.value&&(o.value.missingWarn=O)},get fallbackWarn(){return o.value?o.value.fallbackWarn:p},set fallbackWarn(O){o.value&&(o.value.missingWarn=O)},get fallbackRoot(){return o.value?o.value.fallbackRoot:m},set fallbackRoot(O){o.value&&(o.value.fallbackRoot=O)},get fallbackFormat(){return o.value?o.value.fallbackFormat:x},set fallbackFormat(O){o.value&&(o.value.fallbackFormat=O)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:v},set warnHtmlMessage(O){o.value&&(o.value.warnHtmlMessage=O)},get escapeParameter(){return o.value?o.value.escapeParameter:g},set escapeParameter(O){o.value&&(o.value.escapeParameter=O)},t:te,getPostTranslationHandler:j,setPostTranslationHandler:ie,getMissingHandler:W,setMissingHandler:q,rt:Pe,d:He,n:$,tm:K,te:F,getLocaleMessage:ae,setLocaleMessage:Y,mergeLocaleMessage:Be,getDateTimeFormat:We,setDateTimeFormat:S,mergeDateTimeFormat:P,getNumberFormat:V,setNumberFormat:ne,mergeNumberFormat:re};function _e(O){O.locale.value=s.value,O.fallbackLocale.value=l.value,Object.keys(c.value).forEach(G=>{O.mergeLocaleMessage(G,c.value[G])}),Object.keys(f.value).forEach(G=>{O.mergeDateTimeFormat(G,f.value[G])}),Object.keys(d.value).forEach(G=>{O.mergeNumberFormat(G,d.value[G])}),O.escapeParameter=g,O.fallbackFormat=x,O.fallbackRoot=m,O.fallbackWarn=p,O.missingWarn=_,O.warnHtmlMessage=v}return a.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw St(ke.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const O=o.value=e.proxy.$i18n.__composer;t==="global"?(s.value=O.locale.value,l.value=O.fallbackLocale.value,c.value=O.messages.value,f.value=O.datetimeFormats.value,d.value=O.numberFormats.value):u&&_e(O)}),je}if(gc(),__INTLIFY_JIT_COMPILATION__?po(cc):po(lc),ec(Fl),tc(fo),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=kt();e.__INTLIFY__=!0,Ul(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const me=(e,t)=>{const n=e.__vccOpts||e;for(const[r,u]of t)n[r]=u;return n},Mc={},Pc={class:"icon-icon icon-icon-coz_broom",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};function $c(e,t){return a.openBlock(),a.createElementBlock("svg",Pc,t[0]||(t[0]=[a.createElementVNode("path",{d:"M9 2V6L4 6C2.89543 6 2 6.89543 2 8V21C2 22.1046 2.89543 23 4 23H20C21.1046 23 22 22.1046 22 21V8C22 6.89543 21.1046 6 20 6L15 6V2C15 0.895431 14.1046 0 13 0H11C9.89543 0 9 0.895431 9 2ZM13 2V8H20V12H4V8H11V2H13ZM4 14H20V21H9V18C9 17.4477 8.55228 17 8 17C7.44772 17 7 17.4477 7 18V21H4L4 14Z"},null,-1)]))}const Bc=me(Mc,[["render",$c]]),Vc={},Rc={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};function jc(e,t){return a.openBlock(),a.createElementBlock("svg",Rc,t[0]||(t[0]=[a.createElementVNode("path",{d:"M4.96977 17.7929C4.57925 18.1834 4.57925 18.8166 4.96977 19.2071C5.3603 19.5976 5.99346 19.5976 6.38399 19.2071L12.1769 13.4142L17.9698 19.2071C18.3603 19.5976 18.9935 19.5976 19.384 19.2071C19.7745 18.8166 19.7745 18.1834 19.384 17.7929L13.5911 12L19.384 6.20711C19.7745 5.81658 19.7745 5.18342 19.384 4.79289C18.9935 4.40237 18.3603 4.40237 17.9698 4.79289L12.1769 10.5858L6.38399 4.79289C5.99347 4.40237 5.3603 4.40237 4.96978 4.79289C4.57925 5.18342 4.57925 5.81658 4.96978 6.20711L10.7627 12L4.96977 17.7929Z"},null,-1)]))}const ea=me(Vc,[["render",jc]]);function ta(e,t={}){const r={...{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"},body:null,credentials:"same-origin",mode:"cors",cache:"default"},...t};if(console.log("====finalOptions====",r),r.method.toUpperCase()==="POST"&&!r.body)throw new Error("POST request must have a body");return fetch(e,r).then(u=>{if(!u.ok)throw new Error(`HTTP error! status: ${u.status}`);return u.json()}).catch(u=>{throw console.error("Fetch error:",u),u})}function zc(e,t={}){return ta(e,{...t,method:"GET"})}function en(e,t={},n={}){return ta(e,{...n,method:"POST",body:JSON.stringify(t)})}/*!
|
|
24
24
|
* Viewer.js v1.11.7
|
|
25
25
|
* https://fengyuanchen.github.io/viewerjs
|
|
26
26
|
*
|
|
@@ -28,11 +28,11 @@ ${c}`:l)}else throw i},onCacheKey:i=>Is(t,n,i)}}function hc(e){if(M(e))return e;
|
|
|
28
28
|
* Released under the MIT license
|
|
29
29
|
*
|
|
30
30
|
* Date: 2024-11-24T04:32:19.116Z
|
|
31
|
-
*/function Uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function na(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ua(r.key),r)}}function qc(e,t,n){return t&&na(e.prototype,t),n&&na(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hc(e,t,n){return(t=ua(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ra(Object(n),!0).forEach(function(r){Hc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ra(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wc(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ua(e){var t=Wc(e,"string");return typeof t=="symbol"?t:t+""}function Jr(e){"@babel/helpers - typeof";return Jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jr(e)}var oa={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},Yc='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',nr=typeof window<"u"&&typeof window.document<"u",vt=nr?window:{},en=nr&&vt.document.documentElement?"ontouchstart"in vt.document.documentElement:!1,Qr=nr?"PointerEvent"in vt:!1,K="viewer",rr="move",aa="switch",vn="zoom",ur="".concat(K,"-active"),Gc="".concat(K,"-close"),or="".concat(K,"-fade"),eu="".concat(K,"-fixed"),Xc="".concat(K,"-fullscreen"),ia="".concat(K,"-fullscreen-exit"),qt="".concat(K,"-hide"),Zc="".concat(K,"-hide-md-down"),Kc="".concat(K,"-hide-sm-down"),Jc="".concat(K,"-hide-xs-down"),Je="".concat(K,"-in"),wn="".concat(K,"-invisible"),tn="".concat(K,"-loading"),Qc="".concat(K,"-move"),sa="".concat(K,"-open"),nn="".concat(K,"-show"),we="".concat(K,"-transition"),rn="click",tu="dblclick",la="dragstart",ca="focusin",fa="keydown",Qe="load",Ht="error",e0=en?"touchend touchcancel":"mouseup",t0=en?"touchmove":"mousemove",n0=en?"touchstart":"mousedown",da=Qr?"pointerdown":n0,_a=Qr?"pointermove":t0,ha=Qr?"pointerup pointercancel":e0,ma="resize",it="transitionend",pa="wheel",ga="ready",ba="show",ya="shown",Ea="hide",ka="hidden",xa="view",Dn="viewed",Ca="move",va="moved",wa="rotate",Da="rotated",Na="scale",Aa="scaled",Ta="zoom",Sa="zoomed",Ia="play",Oa="stop",ar="".concat(K,"Action"),nu=/\s\s*/,ir=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function Nn(e){return typeof e=="string"}var r0=Number.isNaN||vt.isNaN;function ve(e){return typeof e=="number"&&!r0(e)}function un(e){return typeof e>"u"}function on(e){return Jr(e)==="object"&&e!==null}var u0=Object.prototype.hasOwnProperty;function an(e){if(!on(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&u0.call(n,"isPrototypeOf")}catch{return!1}}function ce(e){return typeof e=="function"}function he(e,t){if(e&&ce(t))if(Array.isArray(e)||ve(e.length)){var n=e.length,r;for(r=0;r<n&&t.call(e,e[r],r,e)!==!1;r+=1);}else on(e)&&Object.keys(e).forEach(function(u){t.call(e,e[u],u,e)});return e}var Ge=Object.assign||function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return on(t)&&r.length>0&&r.forEach(function(o){on(o)&&Object.keys(o).forEach(function(i){t[i]=o[i]})}),t},o0=/^(?:width|height|left|top|marginLeft|marginTop)$/;function st(e,t){var n=e.style;he(t,function(r,u){o0.test(u)&&ve(r)&&(r+="px"),n[u]=r})}function a0(e){return Nn(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):e}function sn(e,t){return!e||!t?!1:e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function q(e,t){if(!(!e||!t)){if(ve(e.length)){he(e,function(r){q(r,t)});return}if(e.classList){e.classList.add(t);return}var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function re(e,t){if(!(!e||!t)){if(ve(e.length)){he(e,function(n){re(n,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function An(e,t,n){if(t){if(ve(e.length)){he(e,function(r){An(r,t,n)});return}n?q(e,t):re(e,t)}}var i0=/([a-z\d])([A-Z])/g;function ru(e){return e.replace(i0,"$1-$2").toLowerCase()}function ln(e,t){return on(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(ru(t)))}function uu(e,t,n){on(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(ru(t)),n)}var La=function(){var e=!1;if(nr){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(o){t=o}});vt.addEventListener("test",n,r),vt.removeEventListener("test",n,r)}return e}();function fe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=n;t.trim().split(nu).forEach(function(o){if(!La){var i=e.listeners;i&&i[o]&&i[o][n]&&(u=i[o][n],delete i[o][n],Object.keys(i[o]).length===0&&delete i[o],Object.keys(i).length===0&&delete e.listeners)}e.removeEventListener(o,u,r)})}function Y(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=n;t.trim().split(nu).forEach(function(o){if(r.once&&!La){var i=e.listeners,s=i===void 0?{}:i;u=function(){delete s[o][n],e.removeEventListener(o,u,r);for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];n.apply(e,f)},s[o]||(s[o]={}),s[o][n]&&e.removeEventListener(o,s[o][n],r),s[o][n]=u,e.listeners=s}e.addEventListener(o,u,r)})}function De(e,t,n,r){var u;return ce(Event)&&ce(CustomEvent)?u=new CustomEvent(t,Kr({bubbles:!0,cancelable:!0,detail:n},r)):(u=document.createEvent("CustomEvent"),u.initCustomEvent(t,!0,!0,n)),e.dispatchEvent(u)}function s0(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function sr(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,u=e.translateX,o=e.translateY,i=[];ve(u)&&u!==0&&i.push("translateX(".concat(u,"px)")),ve(o)&&o!==0&&i.push("translateY(".concat(o,"px)")),ve(t)&&t!==0&&i.push("rotate(".concat(t,"deg)")),ve(n)&&n!==1&&i.push("scaleX(".concat(n,")")),ve(r)&&r!==1&&i.push("scaleY(".concat(r,")"));var s=i.length?i.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function l0(e){return Nn(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var ou=vt.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(vt.navigator.userAgent);function Fa(e,t,n){var r=document.createElement("img");if(e.naturalWidth&&!ou)return n(e.naturalWidth,e.naturalHeight),r;var u=document.body||document.documentElement;return r.onload=function(){n(r.width,r.height),ou||u.removeChild(r)},he(t.inheritedAttributes,function(o){var i=e.getAttribute(o);i!==null&&r.setAttribute(o,i)}),r.src=e.src,ou||(r.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",u.appendChild(r)),r}function lr(e){switch(e){case 2:return Jc;case 3:return Kc;case 4:return Zc;default:return""}}function c0(e){var t=Kr({},e),n=[];return he(e,function(r,u){delete t[u],he(t,function(o){var i=Math.abs(r.startX-o.startX),s=Math.abs(r.startY-o.startY),l=Math.abs(r.endX-o.endX),c=Math.abs(r.endY-o.endY),f=Math.sqrt(i*i+s*s),d=Math.sqrt(l*l+c*c),_=(d-f)/f;n.push(_)})}),n.sort(function(r,u){return Math.abs(r)<Math.abs(u)}),n[0]}function cr(e,t){var n=e.pageX,r=e.pageY,u={endX:n,endY:r};return t?u:Kr({timeStamp:Date.now(),startX:n,startY:r},u)}function f0(e){var t=0,n=0,r=0;return he(e,function(u){var o=u.startX,i=u.startY;t+=o,n+=i,r+=1}),t/=r,n/=r,{pageX:t,pageY:n}}var d0={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var t=this.element.ownerDocument,n=t.body||t.documentElement;this.body=n,this.scrollbarWidth=window.innerWidth-t.documentElement.clientWidth,this.initialBodyPaddingRight=n.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(n).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t=this.options,n=this.parent,r;t.inline&&(r={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=r),(this.fulled||!r)&&(r=this.containerData),this.viewerData=Ge({},r)},renderViewer:function(){this.options.inline&&!this.fulled&&st(this.viewer,this.viewerData)},initList:function(){var t=this,n=this.element,r=this.options,u=this.list,o=[];u.innerHTML="",he(this.images,function(i,s){var l=i.src,c=i.alt||l0(l),f=t.getImageURL(i);if(l||f){var d=document.createElement("li"),_=document.createElement("img");he(r.inheritedAttributes,function(p){var m=i.getAttribute(p);m!==null&&_.setAttribute(p,m)}),r.navbar&&(_.src=l||f),_.alt=c,_.setAttribute("data-original-url",f||l),d.setAttribute("data-index",s),d.setAttribute("data-viewer-action","view"),d.setAttribute("role","button"),r.keyboard&&d.setAttribute("tabindex",0),d.appendChild(_),u.appendChild(d),o.push(d)}}),this.items=o,he(o,function(i){var s=i.firstElementChild,l,c;uu(s,"filled",!0),r.loading&&q(i,tn),Y(s,Qe,l=function(d){fe(s,Ht,c),r.loading&&re(i,tn),t.loadImage(d)},{once:!0}),Y(s,Ht,c=function(){fe(s,Qe,l),r.loading&&re(i,tn)},{once:!0})}),r.transition&&Y(n,Dn,function(){q(u,we)},{once:!0})},renderList:function(){var t=this.index,n=this.items[t];if(n){var r=n.nextElementSibling,u=parseInt(window.getComputedStyle(r||n).marginLeft,10),o=n.offsetWidth,i=o+u;st(this.list,Ge({width:i*this.length-u},sr({translateX:(this.viewerData.width-o)/2-i*t})))}},resetList:function(){var t=this.list;t.innerHTML="",re(t,we),st(t,sr({translateX:0}))},initImage:function(t){var n=this,r=this.options,u=this.image,o=this.viewerData,i=this.footer.offsetHeight,s=o.width,l=Math.max(o.height-i,i),c=this.imageData||{},f;this.imageInitializing={abort:function(){f.onload=null}},f=Fa(u,r,function(d,_){var p=d/_,m=Math.max(0,Math.min(1,r.initialCoverage)),C=s,D=l;n.imageInitializing=!1,l*p>s?D=s/p:C=l*p,m=ve(m)?m:.9,C=Math.min(C*m,d),D=Math.min(D*m,_);var N=(s-C)/2,v=(l-D)/2,g={left:N,top:v,x:N,y:v,width:C,height:D,oldRatio:1,ratio:C/d,aspectRatio:p,naturalWidth:d,naturalHeight:_},E=Ge({},g);r.rotatable&&(g.rotate=c.rotate||0,E.rotate=0),r.scalable&&(g.scaleX=c.scaleX||1,g.scaleY=c.scaleY||1,E.scaleX=1,E.scaleY=1),n.imageData=g,n.initialImageData=E,t&&t()})},renderImage:function(t){var n=this,r=this.image,u=this.imageData;if(st(r,Ge({width:u.width,height:u.height,marginLeft:u.x,marginTop:u.y},sr(u))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&sn(r,we)){var o=function(){n.imageRendering=!1,t()};this.imageRendering={abort:function(){fe(r,it,o)}},Y(r,it,o,{once:!0})}else t()},resetImage:function(){var t=this.image;t&&(this.viewing&&this.viewing.abort(),t.parentNode.removeChild(t),this.image=null,this.title.innerHTML="")}},_0={bind:function(){var t=this.options,n=this.viewer,r=this.canvas,u=this.element.ownerDocument;Y(n,rn,this.onClick=this.click.bind(this)),Y(n,la,this.onDragStart=this.dragstart.bind(this)),Y(r,da,this.onPointerDown=this.pointerdown.bind(this)),Y(u,_a,this.onPointerMove=this.pointermove.bind(this)),Y(u,ha,this.onPointerUp=this.pointerup.bind(this)),Y(u,fa,this.onKeyDown=this.keydown.bind(this)),Y(window,ma,this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&Y(n,pa,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&Y(r,tu,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,n=this.viewer,r=this.canvas,u=this.element.ownerDocument;fe(n,rn,this.onClick),fe(n,la,this.onDragStart),fe(r,da,this.onPointerDown),fe(u,_a,this.onPointerMove),fe(u,ha,this.onPointerUp),fe(u,fa,this.onKeyDown),fe(window,ma,this.onResize),t.zoomable&&t.zoomOnWheel&&fe(n,pa,this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&fe(r,tu,this.onDblclick)}},h0={click:function(t){var n=this.options,r=this.imageData,u=t.target,o=ln(u,ar);switch(!o&&u.localName==="img"&&u.parentElement.localName==="li"&&(u=u.parentElement,o=ln(u,ar)),en&&t.isTrusted&&u===this.canvas&&clearTimeout(this.clickCanvasTimeout),o){case"mix":this.played?this.stop():n.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(ln(u,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(n.loop);break;case"play":this.play(n.fullscreen);break;case"next":this.next(n.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-r.scaleX||-1);break;case"flip-vertical":this.scaleY(-r.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(t){t.preventDefault(),this.viewed&&t.target===this.image&&(en&&t.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(t.isTrusted?t:t.detail&&t.detail.originalEvent))},load:function(){var t=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var n=this.element,r=this.options,u=this.image,o=this.index,i=this.viewerData;re(u,wn),r.loading&&re(this.canvas,tn),u.style.cssText="height:0;"+"margin-left:".concat(i.width/2,"px;")+"margin-top:".concat(i.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){An(u,Qc,r.movable),An(u,we,r.transition),t.renderImage(function(){t.viewed=!0,t.viewing=!1,ce(r.viewed)&&Y(n,Dn,r.viewed,{once:!0}),De(n,Dn,{originalImage:t.images[o],index:o,image:u},{cancelable:!1})})})},loadImage:function(t){var n=t.target,r=n.parentNode,u=r.offsetWidth||30,o=r.offsetHeight||50,i=!!ln(n,"filled");Fa(n,this.options,function(s,l){var c=s/l,f=u,d=o;o*c>u?i?f=o*c:d=u/c:i?d=u/c:f=o*c,st(n,Ge({width:f,height:d},sr({translateX:(u-f)/2,translateY:(o-d)/2})))})},keydown:function(t){var n=this.options;if(n.keyboard){var r=t.keyCode||t.which||t.charCode;switch(r){case 13:this.viewer.contains(t.target)&&this.click(t);break}if(this.fulled)switch(r){case 27:this.played?this.stop():n.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(n.loop);break;case 38:t.preventDefault(),this.zoom(n.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(n.loop);break;case 40:t.preventDefault(),this.zoom(-n.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle());break}}},dragstart:function(t){t.target.localName==="img"&&t.preventDefault()},pointerdown:function(t){var n=this.options,r=this.pointers,u=t.buttons,o=t.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(ve(u)&&u!==1||ve(o)&&o!==0||t.ctrlKey))){t.preventDefault(),t.changedTouches?he(t.changedTouches,function(s){r[s.identifier]=cr(s)}):r[t.pointerId||0]=cr(t);var i=n.movable?rr:!1;n.zoomOnTouch&&n.zoomable&&Object.keys(r).length>1?i=vn:n.slideOnTouch&&(t.pointerType==="touch"||t.type==="touchstart")&&this.isSwitchable()&&(i=aa),n.transition&&(i===rr||i===vn)&&re(this.image,we),this.action=i}},pointermove:function(t){var n=this.pointers,r=this.action;!this.viewed||!r||(t.preventDefault(),t.changedTouches?he(t.changedTouches,function(u){Ge(n[u.identifier]||{},cr(u,!0))}):Ge(n[t.pointerId||0]||{},cr(t,!0)),this.change(t))},pointerup:function(t){var n=this,r=this.options,u=this.action,o=this.pointers,i;t.changedTouches?he(t.changedTouches,function(s){i=o[s.identifier],delete o[s.identifier]}):(i=o[t.pointerId||0],delete o[t.pointerId||0]),u&&(t.preventDefault(),r.transition&&(u===rr||u===vn)&&q(this.image,we),this.action=!1,en&&u!==vn&&i&&Date.now()-i.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){De(n.image,tu,{originalEvent:t})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,r.backdrop&&r.backdrop!=="static"&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){De(n.canvas,rn,{originalEvent:t})},50)))))},resize:function(){var t=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}he(this.player.getElementsByTagName("img"),function(n){Y(n,Qe,t.loadImage.bind(t),{once:!0}),De(n,Qe)})}},wheel:function(t){var n=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50);var r=Number(this.options.zoomRatio)||.1,u=1;t.deltaY?u=t.deltaY>0?1:-1:t.wheelDelta?u=-t.wheelDelta/120:t.detail&&(u=t.detail>0?1:-1),this.zoom(-u*r,!0,null,t)}}},m0={show:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.element,r=this.options;if(r.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(t),this;if(ce(r.show)&&Y(n,ba,r.show,{once:!0}),De(n,ba)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var u=this.viewer;if(re(u,qt),u.setAttribute("role","dialog"),u.setAttribute("aria-labelledby",this.title.id),u.setAttribute("aria-modal",!0),u.removeAttribute("aria-hidden"),r.transition&&!t){var o=this.shown.bind(this);this.transitioning={abort:function(){fe(u,it,o),re(u,Je)}},q(u,we),u.initialOffsetWidth=u.offsetWidth,Y(u,it,o,{once:!0}),q(u,Je)}else q(u,Je),this.shown();return this},hide:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.element,u=this.options;if(u.inline||this.hiding||!(this.isShown||this.showing))return this;if(ce(u.hide)&&Y(r,Ea,u.hide,{once:!0}),De(r,Ea)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var o=this.viewer,i=this.image,s=function(){re(o,Je),t.hidden()};if(u.transition&&!n){var l=function(d){d&&d.target===o&&(fe(o,it,l),t.hidden())},c=function(){sn(o,we)?(Y(o,it,l),re(o,Je)):s()};this.transitioning={abort:function(){t.viewed&&sn(i,we)?fe(i,it,c):sn(o,we)&&fe(o,it,l)}},this.viewed&&sn(i,we)?(Y(i,it,c,{once:!0}),this.zoomTo(0,!1,null,null,!0)):c()}else s();return this},view:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(n=Number(n)||0,this.hiding||this.played||n<0||n>=this.length||this.viewed&&n===this.index)return this;if(!this.isShown)return this.index=n,this.show();this.viewing&&this.viewing.abort();var r=this.element,u=this.options,o=this.title,i=this.canvas,s=this.items[n],l=s.querySelector("img"),c=ln(l,"originalUrl"),f=l.getAttribute("alt"),d=document.createElement("img");if(he(u.inheritedAttributes,function(D){var N=l.getAttribute(D);N!==null&&d.setAttribute(D,N)}),d.src=c,d.alt=f,ce(u.view)&&Y(r,xa,u.view,{once:!0}),De(r,xa,{originalImage:this.images[n],index:n,image:d})===!1||!this.isShown||this.hiding||this.played)return this;var _=this.items[this.index];_&&(re(_,ur),_.removeAttribute("aria-selected")),q(s,ur),s.setAttribute("aria-selected",!0),u.focus&&s.focus(),this.image=d,this.viewed=!1,this.index=n,this.imageData={},q(d,wn),u.loading&&q(i,tn),i.innerHTML="",i.appendChild(d),this.renderList(),o.innerHTML="";var p=function(){var N=t.imageData,v=Array.isArray(u.title)?u.title[1]:u.title;o.innerHTML=a0(ce(v)?v.call(t,d,N):"".concat(f," (").concat(N.naturalWidth," × ").concat(N.naturalHeight,")"))},m,C;return Y(r,Dn,p,{once:!0}),this.viewing={abort:function(){fe(r,Dn,p),d.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(d.src="",fe(d,Qe,m),t.timeout&&clearTimeout(t.timeout))}},d.complete?this.load():(Y(d,Qe,m=function(){fe(d,Ht,C),t.load()},{once:!0}),Y(d,Ht,C=function(){fe(d,Qe,m),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),re(d,wn),u.loading&&re(t.canvas,tn)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){re(d,wn),t.timeout=!1},1e3)),this},prev:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.index-1;return n<0&&(n=t?this.length-1:0),this.view(n),this},next:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.length-1,r=this.index+1;return r>n&&(r=t?0:n),this.view(r),this},move:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.imageData;return this.moveTo(un(t)?t:r.x+Number(t),un(n)?n:r.y+Number(n)),this},moveTo:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=this.element,i=this.options,s=this.imageData;if(t=Number(t),r=Number(r),this.viewed&&!this.played&&i.movable){var l=s.x,c=s.y,f=!1;if(ve(t)?f=!0:t=l,ve(r)?f=!0:r=c,f){if(ce(i.move)&&Y(o,Ca,i.move,{once:!0}),De(o,Ca,{x:t,y:r,oldX:l,oldY:c,originalEvent:u})===!1)return this;s.x=t,s.y=r,s.left=t,s.top=r,this.moving=!0,this.renderImage(function(){n.moving=!1,ce(i.moved)&&Y(o,va,i.moved,{once:!0}),De(o,va,{x:t,y:r,oldX:l,oldY:c,originalEvent:u},{cancelable:!1})})}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var n=this,r=this.element,u=this.options,o=this.imageData;if(t=Number(t),ve(t)&&this.viewed&&!this.played&&u.rotatable){var i=o.rotate;if(ce(u.rotate)&&Y(r,wa,u.rotate,{once:!0}),De(r,wa,{degree:t,oldDegree:i})===!1)return this;o.rotate=t,this.rotating=!0,this.renderImage(function(){n.rotating=!1,ce(u.rotated)&&Y(r,Da,u.rotated,{once:!0}),De(r,Da,{degree:t,oldDegree:i},{cancelable:!1})})}return this},scaleX:function(t){return this.scale(t,this.imageData.scaleY),this},scaleY:function(t){return this.scale(this.imageData.scaleX,t),this},scale:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,u=this.element,o=this.options,i=this.imageData;if(t=Number(t),r=Number(r),this.viewed&&!this.played&&o.scalable){var s=i.scaleX,l=i.scaleY,c=!1;if(ve(t)?c=!0:t=s,ve(r)?c=!0:r=l,c){if(ce(o.scale)&&Y(u,Na,o.scale,{once:!0}),De(u,Na,{scaleX:t,scaleY:r,oldScaleX:s,oldScaleY:l})===!1)return this;i.scaleX=t,i.scaleY=r,this.scaling=!0,this.renderImage(function(){n.scaling=!1,ce(o.scaled)&&Y(u,Aa,o.scaled,{once:!0}),De(u,Aa,{scaleX:t,scaleY:r,oldScaleX:s,oldScaleY:l},{cancelable:!1})})}}return this},zoom:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=this.imageData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(o.width*t/o.naturalWidth,n,r,u),this},zoomTo:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=this.element,l=this.options,c=this.pointers,f=this.imageData,d=f.x,_=f.y,p=f.width,m=f.height,C=f.naturalWidth,D=f.naturalHeight;if(t=Math.max(0,t),ve(t)&&this.viewed&&!this.played&&(i||l.zoomable)){if(!i){var N=Math.max(.01,l.minZoomRatio),v=Math.min(100,l.maxZoomRatio);t=Math.min(Math.max(t,N),v)}if(o)switch(o.type){case"wheel":l.zoomRatio>=.055&&t>.95&&t<1.05&&(t=1);break;case"pointermove":case"touchmove":case"mousemove":t>.99&&t<1.01&&(t=1);break}var g=C*t,E=D*t,w=g-p,h=E-m,x=f.ratio;if(ce(l.zoom)&&Y(s,Ta,l.zoom,{once:!0}),De(s,Ta,{ratio:t,oldRatio:x,originalEvent:o})===!1)return this;if(this.zooming=!0,o){var k=s0(this.viewer),T=c&&Object.keys(c).length>0?f0(c):{pageX:o.pageX,pageY:o.pageY};f.x-=w*((T.pageX-k.left-d)/p),f.y-=h*((T.pageY-k.top-_)/m)}else an(u)&&ve(u.x)&&ve(u.y)?(f.x-=w*((u.x-d)/p),f.y-=h*((u.y-_)/m)):(f.x-=w/2,f.y-=h/2);f.left=f.x,f.top=f.y,f.width=g,f.height=E,f.oldRatio=x,f.ratio=t,this.renderImage(function(){n.zooming=!1,ce(l.zoomed)&&Y(s,Sa,l.zoomed,{once:!0}),De(s,Sa,{ratio:t,oldRatio:x,originalEvent:o},{cancelable:!1})}),r&&this.tooltip()}return this},play:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var r=this.element,u=this.options;if(ce(u.play)&&Y(r,Ia,u.play,{once:!0}),De(r,Ia)===!1)return this;var o=this.player,i=this.loadImage.bind(this),s=[],l=0,c=0;if(this.played=!0,this.onLoadWhenPlay=i,n&&this.requestFullscreen(n),q(o,nn),he(this.items,function(_,p){var m=_.querySelector("img"),C=document.createElement("img");C.src=ln(m,"originalUrl"),C.alt=m.getAttribute("alt"),C.referrerPolicy=m.referrerPolicy,l+=1,q(C,or),An(C,we,u.transition),sn(_,ur)&&(q(C,Je),c=p),s.push(C),Y(C,Qe,i,{once:!0}),o.appendChild(C)}),ve(u.interval)&&u.interval>0){var f=function(){clearTimeout(t.playing.timeout),re(s[c],Je),c-=1,c=c>=0?c:l-1,q(s[c],Je),t.playing.timeout=setTimeout(f,u.interval)},d=function(){clearTimeout(t.playing.timeout),re(s[c],Je),c+=1,c=c<l?c:0,q(s[c],Je),t.playing.timeout=setTimeout(d,u.interval)};l>1&&(this.playing={prev:f,next:d,timeout:setTimeout(d,u.interval)})}return this},stop:function(){var t=this;if(!this.played)return this;var n=this.element,r=this.options;if(ce(r.stop)&&Y(n,Oa,r.stop,{once:!0}),De(n,Oa)===!1)return this;var u=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,he(u.getElementsByTagName("img"),function(o){fe(o,Qe,t.onLoadWhenPlay)}),re(u,nn),u.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,n=this.options,r=this.viewer,u=this.image,o=this.list;return!this.isShown||this.played||this.fulled||!n.inline?this:(this.fulled=!0,this.open(),q(this.button,ia),n.transition&&(re(o,we),this.viewed&&re(u,we)),q(r,eu),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("style"),st(r,{zIndex:n.zIndex}),n.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=Ge({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){n.transition&&setTimeout(function(){q(u,we),q(o,we)},0)})}),this)},exit:function(){var t=this,n=this.options,r=this.viewer,u=this.image,o=this.list;return!this.isShown||this.played||!this.fulled||!n.inline?this:(this.fulled=!1,this.close(),re(this.button,ia),n.transition&&(re(o,we),this.viewed&&re(u,we)),n.focus&&this.clearEnforceFocus(),r.removeAttribute("role"),r.removeAttribute("aria-labelledby"),r.removeAttribute("aria-modal"),re(r,eu),st(r,{zIndex:n.zIndexInline}),this.viewerData=Ge({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){n.transition&&setTimeout(function(){q(u,we),q(o,we)},0)})}),this)},tooltip:function(){var t=this,n=this.options,r=this.tooltipBox,u=this.imageData;return!this.viewed||this.played||!n.tooltip?this:(r.textContent="".concat(Math.round(u.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):n.transition?(this.fading&&De(r,it),q(r,nn),q(r,or),q(r,we),r.removeAttribute("aria-hidden"),r.initialOffsetWidth=r.offsetWidth,q(r,Je)):(q(r,nn),r.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){n.transition?(Y(r,it,function(){re(r,nn),re(r,or),re(r,we),r.setAttribute("aria-hidden",!0),t.fading=!1},{once:!0}),re(r,Je),t.fading=!0):(re(r,nn),r.setAttribute("aria-hidden",!0)),t.tooltipping=!1},1e3),this)},toggle:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,t):this.zoomTo(1,!0,null,t),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=Ge({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,n=this.element,r=this.options,u=this.isImg;if(u&&!n.parentNode)return this.destroy();var o=[];if(he(u?[n]:n.querySelectorAll("img"),function(c){ce(r.filter)?r.filter.call(t,c)&&o.push(c):t.getImageURL(c)&&o.push(c)}),!o.length)return this;if(this.images=o,this.length=o.length,this.ready){var i=[];if(he(this.items,function(c,f){var d=c.querySelector("img"),_=o[f];_&&d?(_.src!==d.src||_.alt!==d.alt)&&i.push(f):i.push(f)}),st(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var s=i.indexOf(this.index);if(s>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-s,this.length-1),0));else{var l=this.items[this.index];q(l,ur),l.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var t=this.element,n=this.options;return t[K]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),n.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):n.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),n.inline||fe(t,rn,this.onStart),t[K]=void 0,this):this}},p0={getImageURL:function(t){var n=this.options.url;return Nn(n)?n=t.getAttribute(n):ce(n)?n=n.call(this,t):n="",n},enforceFocus:function(){var t=this;this.clearEnforceFocus(),Y(document,ca,this.onFocusin=function(n){var r=t.viewer,u=n.target;if(!(u===document||u===r||r.contains(u))){for(;u;){if(u.getAttribute("tabindex")!==null||u.getAttribute("aria-modal")==="true")return;u=u.parentElement}r.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(fe(document,ca,this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;q(t,sa),this.scrollbarWidth>0&&(t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var t=this.body;re(t,sa),this.scrollbarWidth>0&&(t.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var t=this.element,n=this.options,r=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,n.focus&&(r.focus(),this.enforceFocus()),ce(n.shown)&&Y(t,ya,n.shown,{once:!0}),De(t,ya)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,n=this.options,r=this.viewer;n.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),q(r,qt),r.removeAttribute("role"),r.removeAttribute("aria-labelledby"),r.removeAttribute("aria-modal"),r.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(ce(n.hidden)&&Y(t,ka,n.hidden,{once:!0}),De(t,ka,null,{cancelable:!1}))},requestFullscreen:function(t){var n=this.element.ownerDocument;if(this.fulled&&!(n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement)){var r=n.documentElement;r.requestFullscreen?an(t)?r.requestFullscreen(t):r.requestFullscreen():r.webkitRequestFullscreen?r.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):r.mozRequestFullScreen?r.mozRequestFullScreen():r.msRequestFullscreen&&r.msRequestFullscreen()}},exitFullscreen:function(){var t=this.element.ownerDocument;this.fulled&&(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},change:function(t){var n=this.options,r=this.pointers,u=r[Object.keys(r)[0]];if(u){var o=u.endX-u.startX,i=u.endY-u.startY;switch(this.action){case rr:(o!==0||i!==0)&&(this.pointerMoved=!0,this.move(o,i,t));break;case vn:this.zoom(c0(r),!1,null,t);break;case aa:{this.action="switched";var s=Math.abs(o);s>1&&s>Math.abs(i)&&(this.pointers={},o>1?this.prev(n.loop):o<-1&&this.next(n.loop));break}}he(r,function(l){l.startX=l.endX,l.startY=l.endY})}},isSwitchable:function(){var t=this.imageData,n=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=n.width&&t.height<=n.height}},g0=vt.Viewer,b0=function(e){return function(){return e+=1,e}}(-1),cn=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Uc(this,e),!t||t.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=Ge({},oa,an(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=b0(),this.init()}return qc(e,[{key:"init",value:function(){var n=this,r=this.element,u=this.options;if(!r[K]){r[K]=this,u.focus&&!u.keyboard&&(u.focus=!1);var o=r.localName==="img",i=[];if(he(o?[r]:r.querySelectorAll("img"),function(c){ce(u.filter)?u.filter.call(n,c)&&i.push(c):n.getImageURL(c)&&i.push(c)}),this.isImg=o,this.length=i.length,this.images=i,this.initBody(),un(document.createElement(K).style.transition)&&(u.transition=!1),u.inline){var s=0,l=function(){if(s+=1,s===n.length){var f;n.initializing=!1,n.delaying={abort:function(){clearTimeout(f)}},f=setTimeout(function(){n.delaying=!1,n.build()},0)}};this.initializing={abort:function(){he(i,function(f){f.complete||(fe(f,Qe,l),fe(f,Ht,l))})}},he(i,function(c){if(c.complete)l();else{var f,d;Y(c,Qe,f=function(){fe(c,Ht,d),l()},{once:!0}),Y(c,Ht,d=function(){fe(c,Qe,f),l()},{once:!0})}})}else Y(r,rn,this.onStart=function(c){var f=c.target;f.localName==="img"&&(!ce(u.filter)||u.filter.call(n,f))&&n.view(n.images.indexOf(f))})}}},{key:"build",value:function(){if(!this.ready){var n=this.element,r=this.options,u=n.parentNode,o=document.createElement("div");o.innerHTML=Yc;var i=o.querySelector(".".concat(K,"-container")),s=i.querySelector(".".concat(K,"-title")),l=i.querySelector(".".concat(K,"-toolbar")),c=i.querySelector(".".concat(K,"-navbar")),f=i.querySelector(".".concat(K,"-button")),d=i.querySelector(".".concat(K,"-canvas"));if(this.parent=u,this.viewer=i,this.title=s,this.toolbar=l,this.navbar=c,this.button=f,this.canvas=d,this.footer=i.querySelector(".".concat(K,"-footer")),this.tooltipBox=i.querySelector(".".concat(K,"-tooltip")),this.player=i.querySelector(".".concat(K,"-player")),this.list=i.querySelector(".".concat(K,"-list")),i.id="".concat(K).concat(this.id),s.id="".concat(K,"Title").concat(this.id),q(s,r.title?lr(Array.isArray(r.title)?r.title[0]:r.title):qt),q(c,r.navbar?lr(r.navbar):qt),An(f,qt,!r.button),r.keyboard&&f.setAttribute("tabindex",0),r.backdrop&&(q(i,"".concat(K,"-backdrop")),!r.inline&&r.backdrop!=="static"&&uu(d,ar,"hide")),Nn(r.className)&&r.className&&r.className.split(nu).forEach(function(g){q(i,g)}),r.toolbar){var _=document.createElement("ul"),p=an(r.toolbar),m=ir.slice(0,3),C=ir.slice(7,9),D=ir.slice(9);p||q(l,lr(r.toolbar)),he(p?r.toolbar:ir,function(g,E){var w=p&&an(g),h=p?ru(E):g,x=w&&!un(g.show)?g.show:g;if(!(!x||!r.zoomable&&m.indexOf(h)!==-1||!r.rotatable&&C.indexOf(h)!==-1||!r.scalable&&D.indexOf(h)!==-1)){var k=w&&!un(g.size)?g.size:g,T=w&&!un(g.click)?g.click:g,$=document.createElement("li");r.keyboard&&$.setAttribute("tabindex",0),$.setAttribute("role","button"),q($,"".concat(K,"-").concat(h)),ce(T)||uu($,ar,h),ve(x)&&q($,lr(x)),["small","large"].indexOf(k)!==-1?q($,"".concat(K,"-").concat(k)):h==="play"&&q($,"".concat(K,"-large")),ce(T)&&Y($,rn,T),_.appendChild($)}}),l.appendChild(_)}else q(l,qt);if(!r.rotatable){var N=l.querySelectorAll('li[class*="rotate"]');q(N,wn),he(N,function(g){l.appendChild(g)})}if(r.inline)q(f,Xc),st(i,{zIndex:r.zIndexInline}),window.getComputedStyle(u).position==="static"&&st(u,{position:"relative"}),u.insertBefore(i,n.nextSibling);else{q(f,Gc),q(i,eu),q(i,or),q(i,qt),st(i,{zIndex:r.zIndex});var v=r.container;Nn(v)&&(v=n.ownerDocument.querySelector(v)),v||(v=this.body),v.appendChild(i)}if(r.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,ce(r.ready)&&Y(n,ga,r.ready,{once:!0}),De(n,ga)===!1){this.ready=!1;return}this.ready&&r.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=g0,e}},{key:"setDefaults",value:function(n){Ge(oa,an(n)&&n)}}])}();Ge(cn.prototype,d0,_0,h0,m0,p0);var y0=typeof global=="object"&&global&&global.Object===Object&&global;const Ma=y0;var E0=typeof self=="object"&&self&&self.Object===Object&&self,k0=Ma||E0||Function("return this")();const fr=k0;var x0=fr.Symbol;const dr=x0;var Pa=Object.prototype,C0=Pa.hasOwnProperty,v0=Pa.toString,Tn=dr?dr.toStringTag:void 0;function w0(e){var t=C0.call(e,Tn),n=e[Tn];try{e[Tn]=void 0;var r=!0}catch{}var u=v0.call(e);return r&&(t?e[Tn]=n:delete e[Tn]),u}var D0=Object.prototype,N0=D0.toString;function A0(e){return N0.call(e)}var T0="[object Null]",S0="[object Undefined]",$a=dr?dr.toStringTag:void 0;function _r(e){return e==null?e===void 0?S0:T0:$a&&$a in Object(e)?w0(e):A0(e)}function hr(e){return e!=null&&typeof e=="object"}var I0="[object Symbol]";function O0(e){return typeof e=="symbol"||hr(e)&&_r(e)==I0}var L0=Array.isArray;const F0=L0;var M0=/\s/;function P0(e){for(var t=e.length;t--&&M0.test(e.charAt(t)););return t}var $0=/^\s+/;function B0(e){return e&&e.slice(0,P0(e)+1).replace($0,"")}function Wt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ba=NaN,V0=/^[-+]0x[0-9a-f]+$/i,R0=/^0b[01]+$/i,j0=/^0o[0-7]+$/i,z0=parseInt;function Va(e){if(typeof e=="number")return e;if(O0(e))return Ba;if(Wt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=B0(e);var n=R0.test(e);return n||j0.test(e)?z0(e.slice(2),n?2:8):V0.test(e)?Ba:+e}function Ra(e){return e}var U0="[object AsyncFunction]",q0="[object Function]",H0="[object GeneratorFunction]",W0="[object Proxy]";function ja(e){if(!Wt(e))return!1;var t=_r(e);return t==q0||t==H0||t==U0||t==W0}var Y0=fr["__core-js_shared__"];const au=Y0;var za=function(){var e=/[^.]+$/.exec(au&&au.keys&&au.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function G0(e){return!!za&&za in e}var X0=Function.prototype,Z0=X0.toString;function K0(e){if(e!=null){try{return Z0.call(e)}catch{}try{return e+""}catch{}}return""}var J0=/[\\^$.*+?()[\]{}|]/g,Q0=/^\[object .+?Constructor\]$/,ef=Function.prototype,tf=Object.prototype,nf=ef.toString,rf=tf.hasOwnProperty,uf=RegExp("^"+nf.call(rf).replace(J0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function of(e){if(!Wt(e)||G0(e))return!1;var t=ja(e)?uf:Q0;return t.test(K0(e))}function af(e,t){return e==null?void 0:e[t]}function sf(e,t){var n=af(e,t);return of(n)?n:void 0}function lf(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var cf=800,ff=16,df=Date.now;function _f(e){var t=0,n=0;return function(){var r=df(),u=ff-(r-n);if(n=r,u>0){if(++t>=cf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function hf(e){return function(){return e}}var mf=function(){try{var e=sf(Object,"defineProperty");return e({},"",{}),e}catch{}}();const mr=mf;var pf=mr?function(e,t){return mr(e,"toString",{configurable:!0,enumerable:!1,value:hf(t),writable:!0})}:Ra,gf=_f(pf);const bf=gf;var yf=9007199254740991,Ef=/^(?:0|[1-9]\d*)$/;function Ua(e,t){var n=typeof e;return t=t??yf,!!t&&(n=="number"||n!="symbol"&&Ef.test(e))&&e>-1&&e%1==0&&e<t}function qa(e,t,n){t=="__proto__"&&mr?mr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function iu(e,t){return e===t||e!==e&&t!==t}var kf=Object.prototype,xf=kf.hasOwnProperty;function Ha(e,t,n){var r=e[t];(!(xf.call(e,t)&&iu(r,n))||n===void 0&&!(t in e))&&qa(e,t,n)}function Cf(e,t,n,r){var u=!n;n||(n={});for(var o=-1,i=t.length;++o<i;){var s=t[o],l=void 0;l===void 0&&(l=e[s]),u?qa(n,s,l):Ha(n,s,l)}return n}var Wa=Math.max;function vf(e,t,n){return t=Wa(t===void 0?e.length-1:t,0),function(){for(var r=arguments,u=-1,o=Wa(r.length-t,0),i=Array(o);++u<o;)i[u]=r[t+u];u=-1;for(var s=Array(t+1);++u<t;)s[u]=r[u];return s[t]=n(i),lf(e,this,s)}}function Ya(e,t){return bf(vf(e,t,Ra),e+"")}var wf=9007199254740991;function Ga(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=wf}function pr(e){return e!=null&&Ga(e.length)&&!ja(e)}function Xa(e,t,n){if(!Wt(n))return!1;var r=typeof t;return(r=="number"?pr(n)&&Ua(t,n.length):r=="string"&&t in n)?iu(n[t],e):!1}function Df(e){return Ya(function(t,n){var r=-1,u=n.length,o=u>1?n[u-1]:void 0,i=u>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(u--,o):void 0,i&&Xa(n[0],n[1],i)&&(o=u<3?void 0:o,u=1),t=Object(t);++r<u;){var s=n[r];s&&e(t,s,r,o)}return t})}var Nf=Object.prototype;function su(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Nf;return e===n}function Af(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Tf="[object Arguments]";function Za(e){return hr(e)&&_r(e)==Tf}var Ka=Object.prototype,Sf=Ka.hasOwnProperty,If=Ka.propertyIsEnumerable,Of=Za(function(){return arguments}())?Za:function(e){return hr(e)&&Sf.call(e,"callee")&&!If.call(e,"callee")};const Lf=Of;function Ff(){return!1}var Ja=typeof Be=="object"&&Be&&!Be.nodeType&&Be,Qa=Ja&&typeof module=="object"&&module&&!module.nodeType&&module,Mf=Qa&&Qa.exports===Ja,ei=Mf?fr.Buffer:void 0,Pf=ei?ei.isBuffer:void 0,$f=Pf||Ff;const Bf=$f;var Vf="[object Arguments]",Rf="[object Array]",jf="[object Boolean]",zf="[object Date]",Uf="[object Error]",qf="[object Function]",Hf="[object Map]",Wf="[object Number]",Yf="[object Object]",Gf="[object RegExp]",Xf="[object Set]",Zf="[object String]",Kf="[object WeakMap]",Jf="[object ArrayBuffer]",Qf="[object DataView]",ed="[object Float32Array]",td="[object Float64Array]",nd="[object Int8Array]",rd="[object Int16Array]",ud="[object Int32Array]",od="[object Uint8Array]",ad="[object Uint8ClampedArray]",id="[object Uint16Array]",sd="[object Uint32Array]",be={};be[ed]=be[td]=be[nd]=be[rd]=be[ud]=be[od]=be[ad]=be[id]=be[sd]=!0,be[Vf]=be[Rf]=be[Jf]=be[jf]=be[Qf]=be[zf]=be[Uf]=be[qf]=be[Hf]=be[Wf]=be[Yf]=be[Gf]=be[Xf]=be[Zf]=be[Kf]=!1;function ld(e){return hr(e)&&Ga(e.length)&&!!be[_r(e)]}function cd(e){return function(t){return e(t)}}var ti=typeof Be=="object"&&Be&&!Be.nodeType&&Be,Sn=ti&&typeof module=="object"&&module&&!module.nodeType&&module,fd=Sn&&Sn.exports===ti,lu=fd&&Ma.process,dd=function(){try{var e=Sn&&Sn.require&&Sn.require("util").types;return e||lu&&lu.binding&&lu.binding("util")}catch{}}();const ni=dd;var ri=ni&&ni.isTypedArray,_d=ri?cd(ri):ld;const hd=_d;var md=Object.prototype,pd=md.hasOwnProperty;function ui(e,t){var n=F0(e),r=!n&&Lf(e),u=!n&&!r&&Bf(e),o=!n&&!r&&!u&&hd(e),i=n||r||u||o,s=i?Af(e.length,String):[],l=s.length;for(var c in e)(t||pd.call(e,c))&&!(i&&(c=="length"||u&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ua(c,l)))&&s.push(c);return s}function gd(e,t){return function(n){return e(t(n))}}var bd=gd(Object.keys,Object);const yd=bd;var Ed=Object.prototype,kd=Ed.hasOwnProperty;function xd(e){if(!su(e))return yd(e);var t=[];for(var n in Object(e))kd.call(e,n)&&n!="constructor"&&t.push(n);return t}function Cd(e){return pr(e)?ui(e):xd(e)}var vd=Object.prototype,wd=vd.hasOwnProperty,Dd=Df(function(e,t){if(su(t)||pr(t)){Cf(t,Cd(t),e);return}for(var n in t)wd.call(t,n)&&Ha(e,n,t[n])});const Nd=Dd;function Ad(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Td=Object.prototype,Sd=Td.hasOwnProperty;function Id(e){if(!Wt(e))return Ad(e);var t=su(e),n=[];for(var r in e)r=="constructor"&&(t||!Sd.call(e,r))||n.push(r);return n}function Od(e){return pr(e)?ui(e,!0):Id(e)}var Ld=function(){return fr.Date.now()};const cu=Ld;var Fd="Expected a function",Md=Math.max,Pd=Math.min;function $d(e,t,n){var r,u,o,i,s,l,c=0,f=!1,d=!1,_=!0;if(typeof e!="function")throw new TypeError(Fd);t=Va(t)||0,Wt(n)&&(f=!!n.leading,d="maxWait"in n,o=d?Md(Va(n.maxWait)||0,t):o,_="trailing"in n?!!n.trailing:_);function p(h){var x=r,k=u;return r=u=void 0,c=h,i=e.apply(k,x),i}function m(h){return c=h,s=setTimeout(N,t),f?p(h):i}function C(h){var x=h-l,k=h-c,T=t-x;return d?Pd(T,o-k):T}function D(h){var x=h-l,k=h-c;return l===void 0||x>=t||x<0||d&&k>=o}function N(){var h=cu();if(D(h))return v(h);s=setTimeout(N,C(h))}function v(h){return s=void 0,_&&r?p(h):(r=u=void 0,i)}function g(){s!==void 0&&clearTimeout(s),c=0,r=l=u=s=void 0}function E(){return s===void 0?i:v(cu())}function w(){var h=cu(),x=D(h);if(r=arguments,u=this,l=h,x){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(N,t),p(l)}return s===void 0&&(s=setTimeout(N,t)),i}return w.cancel=g,w.flush=E,w}var oi=Object.prototype,Bd=oi.hasOwnProperty,Vd=Ya(function(e,t){e=Object(e);var n=-1,r=t.length,u=r>2?t[2]:void 0;for(u&&Xa(t[0],t[1],u)&&(r=1);++n<r;)for(var o=t[n],i=Od(o),s=-1,l=i.length;++s<l;){var c=i[s],f=e[c];(f===void 0||iu(f,oi[c])&&!Bd.call(e,c))&&(e[c]=o[c])}return e});const Rd=Vd,In=({images:e=[],options:t})=>{t=Nd(t,{inline:!1});const n=document.createElement("div"),r=a.h("div",{style:{display:"none"},class:["__viewer-token"]},e.map(s=>a.h("img",typeof s=="string"?{src:s}:s)));a.render(r,n);const u=n.firstElementChild;document.body.appendChild(u);const o=new cn(u,t),i=o.destroy.bind(o);return o.destroy=function(){return i(),a.render(null,n),o},o.show(),u.addEventListener("hidden",function(){this.viewer===o&&o.destroy()}),o},jd=({name:e="viewer",debug:t=!1}={})=>{async function n(f,d,_=!1,p=!1){await a.nextTick(),!(p&&!r(f))&&(_||!f[`$${e}`]?(i(f),f[`$${e}`]=new cn(f,d),c("Viewer created")):(f[`$${e}`].update(),c("Viewer updated")))}function r(f){const d=f.innerHTML.match(/<img([\w\W]+?)[\\/]?>/g),_=d?d.join(""):void 0;return f.__viewerImageDiffCache===_?(c("Element change detected, but image(s) has not changed"),!1):(c("Image change detected"),f.__viewerImageDiffCache=_,!0)}function u(f,d,_,p){s(f);const m=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(!m){c("Observer not supported");return}const C=new m(N=>{N.forEach(v=>{c(`Viewer mutation:${v.type}`),_(f,d,p,!0)})}),D={attributes:!0,childList:!0,characterData:!0,subtree:!0};C.observe(f,D),f.__viewerMutationObserver=C,c("Observer created")}function o(f,d,_,p){f.__viewerUnwatch=a.watch(()=>d.value,(m,C)=>{c("Change detected by watcher: ",d.value),p(f,m,!0,!1)},{deep:!0}),c("Watcher created, expression: ",d.value)}function i(f){!f[`$${e}`]||(f[`$${e}`].destroy(),delete f[`$${e}`],c("Viewer destroyed"))}function s(f){!f.__viewerMutationObserver||(f.__viewerMutationObserver.disconnect(),delete f.__viewerMutationObserver,c("observer destroyed"))}function l(f){!f.__viewerUnwatch||(f.__viewerUnwatch(),delete f.__viewerUnwatch,c("Watcher destroyed"))}function c(...f){t&&console.log(...f)}return{mounted(f,d,_){c("Viewer bind");const p=$d(n,50);p(f,d.value),o(f,d,_,p),d.modifiers.static||u(f,d.value,p,d.modifiers.rebuild)},unmounted(f){c("Viewer unbind"),s(f),l(f),i(f)}}},zd=a.defineComponent({name:"Viewer",props:{images:{type:Array,default:()=>[]},rebuild:{type:Boolean,default:!1},trigger:{type:Object,default:null},options:{type:Object,default:()=>null}},emits:["inited"],setup(e,{emit:t}){let n;const r=a.ref();function u(){n=new cn(r.value,e.options),t("inited",n)}function o(){n&&n.destroy()}function i(){o(),u()}function s(){n?(n.update(),t("inited",n)):u()}function l(){e.rebuild?i():s()}const c={deep:!0};return a.watch(()=>e.images,()=>{a.nextTick(()=>{l()})},c),a.watch(()=>e.trigger,()=>{a.nextTick(()=>{l()})},c),a.watch(()=>e.options,()=>{a.nextTick(()=>{i()})},c),a.onMounted(()=>u()),a.onUnmounted(()=>o()),{root:r,createViewer:u,rebuildViewer:i,updateViewer:s,destroyViewer:o}}}),Ud=(e,t)=>{const n=e.__vccOpts||e;for(const[r,u]of t)n[r]=u;return n},qd={ref:"root"};function Hd(e,t,n,r,u,o){return a.openBlock(),a.createElementBlock("div",qd,[a.renderSlot(e.$slots,"default",{images:e.images,options:e.options})],512)}const Wd=Ud(zd,[["render",Hd]]),Yd={install(e,{name:t="viewer",debug:n=!1,defaultOptions:r}={}){r&&cn.setDefaults(r),e.config.globalProperties[`$${t}Api`]=In,e.component(t,Rd(Wd,{name:t})),e.directive(t,jd({name:t,debug:n}))},setDefaults(e){cn.setDefaults(e)}},Gd={},Xd={width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zd(e,t){return a.openBlock(),a.createElementBlock("svg",Xd,t[0]||(t[0]=[a.createElementVNode("path",{d:"M10.3193 16.5L14.8193 12L10.3193 7.5",stroke:"currentColor","stroke-linecap":"round"},null,-1)]))}const ai=ge(Gd,[["render",Zd]]),Kd=["src"],Jd={class:"name"},Qd={class:"sub"},e1={class:"title"},t1={key:0},n1=["src"],r1=["src"],u1=ge({__name:"DishesCard",props:{info:{type:Object,required:!0},defMsg:{type:Object,default:()=>({})},open:{type:Boolean,default:!1}},setup(e){const{t,locale:n}=at(),r=e,u=a.ref(r.open),o=a.ref(null),i=a.ref(0),s=a.ref([]);a.onMounted(async()=>{u.value&&(await D(),await c(),setTimeout(()=>{l()},200))});const l=a.inject("triggerScrollToEnd"),c=()=>new Promise(async N=>{await a.nextTick();const v=[];s.value.hasOwnProperty("craftUrl")&&s.value.craftUrl&&v.push(s.value.craftUrl),v.length?(await f(v),await a.nextTick(),i.value=_.value?o.value.scrollHeight:0,u.value&&(i.value+=26),u.value=!0):u.value=!1,N()}),f=N=>{const v=[];return N.forEach(g=>{const E=new Image,w=new Promise((h,x)=>{E.onload=()=>h(E),E.onerror=()=>x(new Error(`加载${g}失败`)),E.src=g});v.push(w)}),Promise.all(v)},d=a.computed(()=>`${r.defMsg.energy}${r.info.energy}kcal,${r.defMsg.protein}${r.info.protein}g,${r.defMsg.fat}${r.info.fat}g,${r.defMsg.carbonwater}${r.info.carbonwater}g`);a.computed(()=>{var v,g;return(((g=(v=r.info)==null?void 0:v.makeMaterialList)==null?void 0:g.map(E=>E.material+E.usage+"g"))||[]).join("、")});const _=a.computed(()=>r.info.hasOwnProperty("cid")&&r.info.cid),p=a.computed(()=>{let N="92px";return _.value&&(N=u.value?i.value+66+"px":"118px"),N}),m=N=>{In({images:[N]})},C=async()=>{u.value?u.value=!1:(await D(),c())},D=async()=>{if(!(s.value.hasOwnProperty("makeCraftList")&&s.value.hasOwnProperty("makeMaterialList"))){const N=await tr("/api/cn.weis.api.Food/makeCraft",{method:"makeCraft",params:[{cid:r.info.cid}],token:localStorage.getItem("postToken")});N.errCode===0&&N.obj&&(s.value={...N.obj})}};return(N,v)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass({dishes_box:!0,is_open:u.value}),style:a.normalizeStyle({height:p.value})},[a.createElementVNode("div",{class:"dishes_wrap",onClick:a.withModifiers(C,["stop"])},[a.createElementVNode("img",{class:"img",src:e.info.primaryImgUrl,alt:"img",onClick:v[0]||(v[0]=a.withModifiers(g=>m(e.info.primaryImgUrl),["stop"]))},null,8,Kd),a.createElementVNode("div",null,[a.createElementVNode("div",Jd,[a.createElementVNode("span",null,a.toDisplayString(a.unref(n)==="en-US"?e.info.skunameEn:e.info.skuname),1),v[2]||(v[2]=a.createElementVNode("span",null,"×1",-1))]),a.createElementVNode("div",Qd,a.toDisplayString(d.value),1)])]),_.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dishes_details",ref_key:"contentRef",ref:o},[a.withDirectives(a.createElementVNode("div",{class:"switch_open",onClick:a.withModifiers(C,["stop"])},[a.createElementVNode("span",null,a.toDisplayString(a.unref(t)("dishes_card_view_details")),1),a.createVNode(ai,{class:"icon"})],512),[[a.vShow,!u.value]]),a.createElementVNode("div",e1,a.toDisplayString(a.unref(t)("dishes_card_craft")),1),s.value.makeVideosUrl?(a.openBlock(),a.createElementBlock("div",t1,[a.createElementVNode("video",{src:s.value.makeVideosUrl,width:"100%",controls:"true"},null,8,n1)])):a.createCommentVNode("",!0),a.createElementVNode("img",{src:s.value.craftUrl,width:"100%",alt:"craft"},null,8,r1),a.createElementVNode("div",{class:"collapse_btn",onClick:v[1]||(v[1]=a.withModifiers(g=>u.value=!1,["stop"]))},a.toDisplayString(a.unref(t)("dishes_card_collapse")),1)],512)):a.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-4901daf6"]]),o1={class:"dl_wrap"},a1={key:0},i1={key:0,class:"sep_line"},s1={key:1,class:"date"},l1={key:2,class:"date"},c1={key:1,style:{padding:"15px 0"}},f1={key:0,style:{"font-size":"10px","line-height":"16px",color:"#f16868"}},d1={key:1,class:"btn_group"},_1={class:"name"},h1={key:2,class:"btn_group"},m1={class:"name"},p1={class:"name"},g1={key:3,class:"btn_group"},b1={class:"name"},y1={class:"sub"},E1={class:"name"},k1={class:"sub"},x1=ge({__name:"DishesList",props:{skuList:{type:Array,required:!0,default:()=>[]},isMini:{type:Boolean,default:!1},channel:{type:String,default:"web"},defMsg:{type:Object,default:()=>({})}},emits:["select"],setup(e,{emit:t}){const{t:n,locale:r}=at(),u=e,o=()=>{console.log(u.skuList)},i=t;a.ref(!1);const s=a.ref(!1),l=(_,p)=>!1,c=_=>{let p=0;return((_==null?void 0:_.list)||[]).forEach(m=>{((m==null?void 0:m.getCategoryList)||[]).forEach(C=>{p+=C.energy||0})}),p},f=_=>u.skuList.slice(0,_).findIndex(p=>p.strDate===u.skuList[_].strDate)===-1,d=_=>{i("select",{type:_})};return(_,p)=>(a.openBlock(),a.createElementBlock("div",o1,[a.createElementVNode("div",{class:a.normalizeClass(["dl_list",{show_full:s.value}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.skuList,(m,C)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:m.category},[f(C)?(a.openBlock(),a.createElementBlock("div",a1,[C>0?(a.openBlock(),a.createElementBlock("div",i1)):a.createCommentVNode("",!0),a.unref(r)==="en-US"?(a.openBlock(),a.createElementBlock("div",s1,a.toDisplayString(m.strDate.slice(6))+"/"+a.toDisplayString(m.strDate.slice(4,6)),1)):(a.openBlock(),a.createElementBlock("div",l1,a.toDisplayString(m.strDate.slice(4,6))+"月"+a.toDisplayString(m.strDate.slice(6))+"日 ",1))])):a.createCommentVNode("",!0),m.list&&m.list.length?(a.openBlock(),a.createElementBlock("div",c1,[a.createElementVNode("p",{class:"title",onClick:a.withModifiers(o,["stop"])},a.toDisplayString(a.unref(n)(`dishes_cart_cate_${m.category}`))+" "+a.toDisplayString(c(m))+"kcal ",1),a.createElementVNode("div",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m.list,D=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:D.id},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(D.getCategoryList,(N,v)=>(a.openBlock(),a.createBlock(u1,{key:v,info:N,"def-msg":e.defMsg,open:l(N,m.category)},null,8,["info","def-msg","open"]))),128))],64))),128))])])):a.createCommentVNode("",!0)],64))),128))],2),a.createElementVNode("div",{class:a.normalizeClass(["dl_full",{show_full:s.value}]),onClick:p[0]||(p[0]=m=>s.value=!s.value)},a.toDisplayString(s.value?a.unref(n)("msg_obj_dishes_collapseMenu"):a.unref(n)("msg_obj_dishes_viewFullMenu")),3),e.isMini?(a.openBlock(),a.createElementBlock("div",f1,[a.createTextVNode(a.toDisplayString(a.unref(n)("msg_obj_dishes_warmTip")),1),p[6]||(p[6]=a.createElementVNode("br",null,null,-1)),a.createElementVNode("strong",null,a.toDisplayString(a.unref(n)("msg_obj_dishes_halfPriceSurprise")),1)])):a.createCommentVNode("",!0),e.channel==="cdc"?(a.openBlock(),a.createElementBlock("div",d1,[a.createElementVNode("div",{class:"btn btn_2",onClick:p[1]||(p[1]=a.withModifiers(m=>d("ship_order"),["stop"]))},[a.createElementVNode("span",_1,a.toDisplayString(a.unref(n)("msg_obj_dishes_orderNow")),1)])])):e.isMini?(a.openBlock(),a.createElementBlock("div",h1,[a.createElementVNode("div",{class:"btn btn_1",onClick:p[2]||(p[2]=a.withModifiers(m=>d("personalForm"),["stop"]))},[a.createElementVNode("span",m1,a.toDisplayString(a.unref(n)("msg_obj_dishes_personalizedRecipe")),1)]),a.createElementVNode("div",{class:"btn btn_2",onClick:p[3]||(p[3]=a.withModifiers(m=>d("ship_order"),["stop"]))},[a.createElementVNode("span",p1,a.toDisplayString(a.unref(n)("msg_obj_dishes_orderNow")),1)])])):(a.openBlock(),a.createElementBlock("div",g1,[e.channel!=="hft"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"btn btn_1",onClick:p[4]||(p[4]=a.withModifiers(m=>d("ship_order"),["stop"]))},[a.createElementVNode("span",b1,a.toDisplayString(a.unref(n)("msg_obj_dishes_deliveryOrder")),1),a.createElementVNode("span",y1,a.toDisplayString(a.unref(n)("msg_obj_dishes_deliveryToDoor")),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"btn btn_2",onClick:p[5]||(p[5]=a.withModifiers(m=>d("pick_order"),["stop"]))},[a.createElementVNode("span",E1,a.toDisplayString(a.unref(n)("msg_obj_dishes_pickupOrder")),1),a.createElementVNode("span",k1,a.toDisplayString(a.unref(n)("msg_obj_dishes_freeShipping")),1)])]))]))}},[["__scopeId","data-v-f8361b19"]]),C1={class:"card",style:{"margin-top":"15px"}},v1={class:"row"},w1={class:"name"},D1={class:"content"},N1={class:"title"},A1={class:"row"},T1={class:"name"},S1={class:"content"},I1={class:"row"},O1={class:"name"},L1={class:"content"},F1={class:"row"},M1={class:"name"},P1={class:"content"},$1={class:"row"},B1={class:"name"},V1={class:"content"},R1={class:"btn_group"},j1=ge({__name:"PlanCard",props:{info:{type:Object,required:!0},defMsg:{type:Object,required:!0}},emits:["select"],setup(e,{emit:t}){const{t:n}=at(),r={"01":n("msg_obj_plan_breakfast"),"02":n("msg_obj_plan_lunch"),"03":n("msg_obj_plan_dinner"),"04":n("msg_obj_plan_snack"),carbohydrateTotal:n("msg_obj_plan_carbohydrate"),proteinTotal:n("msg_obj_plan_protein"),fatTotal:n("msg_obj_plan_fat")},u=t,o=()=>{u("select",{})};return(i,s)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",C1,[a.createElementVNode("div",v1,[a.createElementVNode("div",w1,a.toDisplayString(a.unref(n)("msg_obj_plan_dailyIntake")),1),a.createElementVNode("div",D1,a.toDisplayString(e.info.totalIntake)+" kcal",1)])]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.info.planDetailList,l=>(a.openBlock(),a.createElementBlock("div",{key:i.category,class:"card"},[a.createElementVNode("div",N1,a.toDisplayString(r[l.category]),1),a.createElementVNode("div",A1,[a.createElementVNode("div",T1,a.toDisplayString(r[l.category])+"熱量",1),a.createElementVNode("div",S1,a.toDisplayString(l.totalKcal)+" kcal",1)]),s[0]||(s[0]=a.createElementVNode("div",{class:"sep"},null,-1)),a.createElementVNode("div",I1,[a.createElementVNode("div",O1,a.toDisplayString(r.carbohydrateTotal),1),a.createElementVNode("div",L1,a.toDisplayString(l.carbohydrateTotal)+" g",1)]),a.createElementVNode("div",F1,[a.createElementVNode("div",M1,a.toDisplayString(r.proteinTotal),1),a.createElementVNode("div",P1,a.toDisplayString(l.proteinTotal)+" g",1)]),a.createElementVNode("div",$1,[a.createElementVNode("div",B1,a.toDisplayString(r.fatTotal),1),a.createElementVNode("div",V1,a.toDisplayString(l.fatTotal)+" g",1)])]))),128)),a.createElementVNode("div",R1,[a.createElementVNode("div",{class:"btn btn_2",onClick:a.withModifiers(o,["stop"])},a.toDisplayString(a.unref(n)("msg_obj_plan_useThisPlan")),1)])],64))}},[["__scopeId","data-v-614ab537"]]),z1={},U1={width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q1(e,t){return a.openBlock(),a.createElementBlock("svg",U1,t[0]||(t[0]=[a.createElementVNode("path",{d:"M5.75335 4.13651C5.8677 3.70974 6.31858 3.36377 6.76041 3.36377C7.20223 3.36377 7.4677 3.70974 7.35335 4.13651L7.14629 4.90928L10.3463 4.90928L10.5533 4.13651C10.6677 3.70974 11.1186 3.36377 11.5604 3.36377C12.0022 3.36377 12.2677 3.70974 12.1533 4.13651L11.9463 4.90928H12.8282C13.2701 4.90928 13.5355 5.25525 13.4212 5.68202C13.3068 6.10879 12.8559 6.45476 12.4141 6.45476H11.5322L10.704 9.54561H11.5859C12.0277 9.54561 12.2932 9.89157 12.1788 10.3183C12.0645 10.7451 11.6136 11.0911 11.1718 11.0911H10.2899L10.0828 11.8639C9.96844 12.2907 9.51757 12.6367 9.07574 12.6367C8.63391 12.6367 8.36844 12.2907 8.4828 11.8639L8.68988 11.0911L5.48986 11.0911L5.28278 11.8639C5.16843 12.2907 4.71756 12.6367 4.27573 12.6367C3.8339 12.6367 3.56843 12.2907 3.68278 11.8639L3.88986 11.0911H3.17178C2.72995 11.0911 2.46448 10.7451 2.57884 10.3183C2.69319 9.89157 3.14407 9.54561 3.58589 9.54561H4.30397L4.67327 8.16737C4.78763 7.7406 5.2385 7.39463 5.68033 7.39463C6.12215 7.39463 6.38763 7.7406 6.27327 8.16737L5.90398 9.54561L9.10399 9.54561L9.93218 6.45476L4.41412 6.45476C3.97229 6.45476 3.70682 6.10879 3.82117 5.68202C3.93553 5.25524 4.3864 4.90928 4.82823 4.90928H5.54629L5.75335 4.13651Z",fill:"currentColor"},null,-1)]))}const H1=ge(z1,[["render",q1]]),W1={},Y1={width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G1(e,t){return a.openBlock(),a.createElementBlock("svg",Y1,t[0]||(t[0]=[a.createElementVNode("path",{d:"M1 16C1 7.71573 7.71573 1 16 1C24.2843 1 31 7.71573 31 16C31 24.2843 24.2843 31 16 31C7.71573 31 1 24.2843 1 16Z",fill:"currentColor"},null,-1),a.createElementVNode("path",{d:"M16.7066 8.29236L16 7.58578L15.2929 8.29289L9.29289 14.2929C8.90237 14.6834 8.90237 15.3166 9.29289 15.7071C9.68342 16.0976 10.3166 16.0976 10.7071 15.7071L15 11.4142L15 23C15 23.5523 15.4477 24 16 24C16.5523 24 17 23.5523 17 23L17 11.4142L21.2929 15.7071C21.6834 16.0976 22.3166 16.0976 22.7071 15.7071C23.0976 15.3166 23.0976 14.6834 22.7071 14.2929L16.7077 8.29351L16.7071 8.29289L16.7066 8.29236Z",fill:"#fff"},null,-1)]))}const X1=ge(W1,[["render",G1]]),Z1={name:"pictureIcon"},K1={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J1(e,t,n,r,u,o){return a.openBlock(),a.createElementBlock("svg",K1,t[0]||(t[0]=[a.createElementVNode("path",{d:"M2.875 6C2.875 4.34315 4.21815 3 5.875 3H19.875C21.5319 3 22.875 4.34315 22.875 6V18C22.875 19.6569 21.5319 21 19.875 21H5.875C4.21815 21 2.875 19.6569 2.875 18V6ZM5.875 5C5.32272 5 4.875 5.44772 4.875 6V16.0852L10.475 11.8852C11.8972 10.8185 13.8528 10.8185 15.275 11.8852L20.875 16.0852V6C20.875 5.44772 20.4273 5 19.875 5H5.875ZM8.28442 10.0852C9.11285 10.0852 9.78442 9.41363 9.78442 8.58521C9.78442 7.75678 9.11285 7.08521 8.28442 7.08521C7.456 7.08521 6.78442 7.75678 6.78442 8.58521C6.78442 9.41363 7.456 10.0852 8.28442 10.0852Z",fill:"currentColor"},null,-1)]))}const Q1=ge(Z1,[["render",J1]]),e_={},t_={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n_(e,t){return a.openBlock(),a.createElementBlock("svg",t_,t[0]||(t[0]=[a.createElementVNode("path",{d:"M18.0849 10.6565C19.9734 8.76795 19.9734 5.70607 18.0849 3.81756C16.1964 1.92905 13.1345 1.92905 11.246 3.81756L5.05399 10.0096C2.55177 12.5118 2.55177 16.5687 5.05399 19.0709C7.55622 21.5732 11.6131 21.5732 14.1154 19.0709L20.2421 12.9442C20.6326 12.5537 20.6326 11.9205 20.2421 11.53C19.8516 11.1394 19.2184 11.1394 18.8279 11.53L12.7011 17.6567C10.98 19.3779 8.18938 19.3779 6.46821 17.6567C4.74703 15.9355 4.74703 13.145 6.4682 11.4238L12.6602 5.23178C13.7677 4.12431 15.5632 4.12431 16.6707 5.23178C17.7781 6.33924 17.7781 8.13478 16.6707 9.24224L10.5401 15.3729C10.0481 15.8648 9.25051 15.8648 8.75856 15.3729C8.26661 14.8809 8.26661 14.0833 8.75856 13.5913L13.9435 8.40645C14.334 8.01592 14.334 7.38276 13.9435 6.99223C13.5529 6.60171 12.9198 6.60171 12.5292 6.99223L7.34435 12.1771C6.07135 13.4501 6.07135 15.5141 7.34435 16.7871C8.61735 18.0601 10.6813 18.0601 11.9543 16.7871L18.0849 10.6565Z",fill:"currentColor"},null,-1)]))}const r_=ge(e_,[["render",n_]]),u_=["width","height"],o_=["stroke"],a_=["stroke","stroke-dasharray","stroke-dashoffset"],ii={__name:"progressRing",props:{percent:{type:Number,default:75},size:{type:Number,default:48},color:{type:String,default:"#fff"},bgColor:{type:String,default:"#888"}},setup(e){const t=e,n=a.computed(()=>({l:2*Math.PI*45,p:2*Math.PI*45*(100-t.percent)/100}));return(r,u)=>(a.openBlock(),a.createElementBlock("svg",{width:e.size,height:e.size,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("circle",{cx:"50",cy:"50",r:"45",fill:"none",stroke:e.bgColor,"stroke-width":"8"},null,8,o_),a.createElementVNode("path",{id:"progressPath",d:`M 50 5\r
|
|
31
|
+
*/function Uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function na(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ua(r.key),r)}}function qc(e,t,n){return t&&na(e.prototype,t),n&&na(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hc(e,t,n){return(t=ua(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ra(Object(n),!0).forEach(function(r){Hc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ra(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wc(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ua(e){var t=Wc(e,"string");return typeof t=="symbol"?t:t+""}function Jr(e){"@babel/helpers - typeof";return Jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jr(e)}var oa={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},Yc='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',nr=typeof window<"u"&&typeof window.document<"u",vt=nr?window:{},tn=nr&&vt.document.documentElement?"ontouchstart"in vt.document.documentElement:!1,Qr=nr?"PointerEvent"in vt:!1,J="viewer",rr="move",aa="switch",wn="zoom",ur="".concat(J,"-active"),Gc="".concat(J,"-close"),or="".concat(J,"-fade"),eu="".concat(J,"-fixed"),Xc="".concat(J,"-fullscreen"),ia="".concat(J,"-fullscreen-exit"),Ut="".concat(J,"-hide"),Zc="".concat(J,"-hide-md-down"),Kc="".concat(J,"-hide-sm-down"),Jc="".concat(J,"-hide-xs-down"),et="".concat(J,"-in"),Dn="".concat(J,"-invisible"),nn="".concat(J,"-loading"),Qc="".concat(J,"-move"),sa="".concat(J,"-open"),rn="".concat(J,"-show"),ve="".concat(J,"-transition"),un="click",tu="dblclick",la="dragstart",ca="focusin",fa="keydown",tt="load",qt="error",e0=tn?"touchend touchcancel":"mouseup",t0=tn?"touchmove":"mousemove",n0=tn?"touchstart":"mousedown",da=Qr?"pointerdown":n0,_a=Qr?"pointermove":t0,ha=Qr?"pointerup pointercancel":e0,ma="resize",st="transitionend",pa="wheel",ga="ready",ba="show",ya="shown",Ea="hide",ka="hidden",xa="view",Nn="viewed",Ca="move",va="moved",wa="rotate",Da="rotated",Na="scale",Aa="scaled",Ta="zoom",Sa="zoomed",Ia="play",Oa="stop",ar="".concat(J,"Action"),nu=/\s\s*/,ir=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function An(e){return typeof e=="string"}var r0=Number.isNaN||vt.isNaN;function xe(e){return typeof e=="number"&&!r0(e)}function on(e){return typeof e>"u"}function an(e){return Jr(e)==="object"&&e!==null}var u0=Object.prototype.hasOwnProperty;function sn(e){if(!an(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&u0.call(n,"isPrototypeOf")}catch{return!1}}function fe(e){return typeof e=="function"}function pe(e,t){if(e&&fe(t))if(Array.isArray(e)||xe(e.length)){var n=e.length,r;for(r=0;r<n&&t.call(e,e[r],r,e)!==!1;r+=1);}else an(e)&&Object.keys(e).forEach(function(u){t.call(e,e[u],u,e)});return e}var Xe=Object.assign||function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return an(t)&&r.length>0&&r.forEach(function(o){an(o)&&Object.keys(o).forEach(function(i){t[i]=o[i]})}),t},o0=/^(?:width|height|left|top|marginLeft|marginTop)$/;function lt(e,t){var n=e.style;pe(t,function(r,u){o0.test(u)&&xe(r)&&(r+="px"),n[u]=r})}function a0(e){return An(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):e}function ln(e,t){return!e||!t?!1:e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function H(e,t){if(!(!e||!t)){if(xe(e.length)){pe(e,function(r){H(r,t)});return}if(e.classList){e.classList.add(t);return}var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function ue(e,t){if(!(!e||!t)){if(xe(e.length)){pe(e,function(n){ue(n,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function Tn(e,t,n){if(t){if(xe(e.length)){pe(e,function(r){Tn(r,t,n)});return}n?H(e,t):ue(e,t)}}var i0=/([a-z\d])([A-Z])/g;function ru(e){return e.replace(i0,"$1-$2").toLowerCase()}function cn(e,t){return an(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(ru(t)))}function uu(e,t,n){an(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(ru(t)),n)}var La=function(){var e=!1;if(nr){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(o){t=o}});vt.addEventListener("test",n,r),vt.removeEventListener("test",n,r)}return e}();function de(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=n;t.trim().split(nu).forEach(function(o){if(!La){var i=e.listeners;i&&i[o]&&i[o][n]&&(u=i[o][n],delete i[o][n],Object.keys(i[o]).length===0&&delete i[o],Object.keys(i).length===0&&delete e.listeners)}e.removeEventListener(o,u,r)})}function X(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=n;t.trim().split(nu).forEach(function(o){if(r.once&&!La){var i=e.listeners,s=i===void 0?{}:i;u=function(){delete s[o][n],e.removeEventListener(o,u,r);for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];n.apply(e,f)},s[o]||(s[o]={}),s[o][n]&&e.removeEventListener(o,s[o][n],r),s[o][n]=u,e.listeners=s}e.addEventListener(o,u,r)})}function we(e,t,n,r){var u;return fe(Event)&&fe(CustomEvent)?u=new CustomEvent(t,Kr({bubbles:!0,cancelable:!0,detail:n},r)):(u=document.createEvent("CustomEvent"),u.initCustomEvent(t,!0,!0,n)),e.dispatchEvent(u)}function s0(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function sr(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,u=e.translateX,o=e.translateY,i=[];xe(u)&&u!==0&&i.push("translateX(".concat(u,"px)")),xe(o)&&o!==0&&i.push("translateY(".concat(o,"px)")),xe(t)&&t!==0&&i.push("rotate(".concat(t,"deg)")),xe(n)&&n!==1&&i.push("scaleX(".concat(n,")")),xe(r)&&r!==1&&i.push("scaleY(".concat(r,")"));var s=i.length?i.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function l0(e){return An(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var ou=vt.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(vt.navigator.userAgent);function Fa(e,t,n){var r=document.createElement("img");if(e.naturalWidth&&!ou)return n(e.naturalWidth,e.naturalHeight),r;var u=document.body||document.documentElement;return r.onload=function(){n(r.width,r.height),ou||u.removeChild(r)},pe(t.inheritedAttributes,function(o){var i=e.getAttribute(o);i!==null&&r.setAttribute(o,i)}),r.src=e.src,ou||(r.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",u.appendChild(r)),r}function lr(e){switch(e){case 2:return Jc;case 3:return Kc;case 4:return Zc;default:return""}}function c0(e){var t=Kr({},e),n=[];return pe(e,function(r,u){delete t[u],pe(t,function(o){var i=Math.abs(r.startX-o.startX),s=Math.abs(r.startY-o.startY),l=Math.abs(r.endX-o.endX),c=Math.abs(r.endY-o.endY),f=Math.sqrt(i*i+s*s),d=Math.sqrt(l*l+c*c),_=(d-f)/f;n.push(_)})}),n.sort(function(r,u){return Math.abs(r)<Math.abs(u)}),n[0]}function cr(e,t){var n=e.pageX,r=e.pageY,u={endX:n,endY:r};return t?u:Kr({timeStamp:Date.now(),startX:n,startY:r},u)}function f0(e){var t=0,n=0,r=0;return pe(e,function(u){var o=u.startX,i=u.startY;t+=o,n+=i,r+=1}),t/=r,n/=r,{pageX:t,pageY:n}}var d0={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var t=this.element.ownerDocument,n=t.body||t.documentElement;this.body=n,this.scrollbarWidth=window.innerWidth-t.documentElement.clientWidth,this.initialBodyPaddingRight=n.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(n).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t=this.options,n=this.parent,r;t.inline&&(r={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=r),(this.fulled||!r)&&(r=this.containerData),this.viewerData=Xe({},r)},renderViewer:function(){this.options.inline&&!this.fulled&<(this.viewer,this.viewerData)},initList:function(){var t=this,n=this.element,r=this.options,u=this.list,o=[];u.innerHTML="",pe(this.images,function(i,s){var l=i.src,c=i.alt||l0(l),f=t.getImageURL(i);if(l||f){var d=document.createElement("li"),_=document.createElement("img");pe(r.inheritedAttributes,function(p){var m=i.getAttribute(p);m!==null&&_.setAttribute(p,m)}),r.navbar&&(_.src=l||f),_.alt=c,_.setAttribute("data-original-url",f||l),d.setAttribute("data-index",s),d.setAttribute("data-viewer-action","view"),d.setAttribute("role","button"),r.keyboard&&d.setAttribute("tabindex",0),d.appendChild(_),u.appendChild(d),o.push(d)}}),this.items=o,pe(o,function(i){var s=i.firstElementChild,l,c;uu(s,"filled",!0),r.loading&&H(i,nn),X(s,tt,l=function(d){de(s,qt,c),r.loading&&ue(i,nn),t.loadImage(d)},{once:!0}),X(s,qt,c=function(){de(s,tt,l),r.loading&&ue(i,nn)},{once:!0})}),r.transition&&X(n,Nn,function(){H(u,ve)},{once:!0})},renderList:function(){var t=this.index,n=this.items[t];if(n){var r=n.nextElementSibling,u=parseInt(window.getComputedStyle(r||n).marginLeft,10),o=n.offsetWidth,i=o+u;lt(this.list,Xe({width:i*this.length-u},sr({translateX:(this.viewerData.width-o)/2-i*t})))}},resetList:function(){var t=this.list;t.innerHTML="",ue(t,ve),lt(t,sr({translateX:0}))},initImage:function(t){var n=this,r=this.options,u=this.image,o=this.viewerData,i=this.footer.offsetHeight,s=o.width,l=Math.max(o.height-i,i),c=this.imageData||{},f;this.imageInitializing={abort:function(){f.onload=null}},f=Fa(u,r,function(d,_){var p=d/_,m=Math.max(0,Math.min(1,r.initialCoverage)),x=s,D=l;n.imageInitializing=!1,l*p>s?D=s/p:x=l*p,m=xe(m)?m:.9,x=Math.min(x*m,d),D=Math.min(D*m,_);var N=(s-x)/2,v=(l-D)/2,g={left:N,top:v,x:N,y:v,width:x,height:D,oldRatio:1,ratio:x/d,aspectRatio:p,naturalWidth:d,naturalHeight:_},E=Xe({},g);r.rotatable&&(g.rotate=c.rotate||0,E.rotate=0),r.scalable&&(g.scaleX=c.scaleX||1,g.scaleY=c.scaleY||1,E.scaleX=1,E.scaleY=1),n.imageData=g,n.initialImageData=E,t&&t()})},renderImage:function(t){var n=this,r=this.image,u=this.imageData;if(lt(r,Xe({width:u.width,height:u.height,marginLeft:u.x,marginTop:u.y},sr(u))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&ln(r,ve)){var o=function(){n.imageRendering=!1,t()};this.imageRendering={abort:function(){de(r,st,o)}},X(r,st,o,{once:!0})}else t()},resetImage:function(){var t=this.image;t&&(this.viewing&&this.viewing.abort(),t.parentNode.removeChild(t),this.image=null,this.title.innerHTML="")}},_0={bind:function(){var t=this.options,n=this.viewer,r=this.canvas,u=this.element.ownerDocument;X(n,un,this.onClick=this.click.bind(this)),X(n,la,this.onDragStart=this.dragstart.bind(this)),X(r,da,this.onPointerDown=this.pointerdown.bind(this)),X(u,_a,this.onPointerMove=this.pointermove.bind(this)),X(u,ha,this.onPointerUp=this.pointerup.bind(this)),X(u,fa,this.onKeyDown=this.keydown.bind(this)),X(window,ma,this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&X(n,pa,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&X(r,tu,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,n=this.viewer,r=this.canvas,u=this.element.ownerDocument;de(n,un,this.onClick),de(n,la,this.onDragStart),de(r,da,this.onPointerDown),de(u,_a,this.onPointerMove),de(u,ha,this.onPointerUp),de(u,fa,this.onKeyDown),de(window,ma,this.onResize),t.zoomable&&t.zoomOnWheel&&de(n,pa,this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&de(r,tu,this.onDblclick)}},h0={click:function(t){var n=this.options,r=this.imageData,u=t.target,o=cn(u,ar);switch(!o&&u.localName==="img"&&u.parentElement.localName==="li"&&(u=u.parentElement,o=cn(u,ar)),tn&&t.isTrusted&&u===this.canvas&&clearTimeout(this.clickCanvasTimeout),o){case"mix":this.played?this.stop():n.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(cn(u,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(n.loop);break;case"play":this.play(n.fullscreen);break;case"next":this.next(n.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-r.scaleX||-1);break;case"flip-vertical":this.scaleY(-r.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(t){t.preventDefault(),this.viewed&&t.target===this.image&&(tn&&t.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(t.isTrusted?t:t.detail&&t.detail.originalEvent))},load:function(){var t=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var n=this.element,r=this.options,u=this.image,o=this.index,i=this.viewerData;ue(u,Dn),r.loading&&ue(this.canvas,nn),u.style.cssText="height:0;"+"margin-left:".concat(i.width/2,"px;")+"margin-top:".concat(i.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){Tn(u,Qc,r.movable),Tn(u,ve,r.transition),t.renderImage(function(){t.viewed=!0,t.viewing=!1,fe(r.viewed)&&X(n,Nn,r.viewed,{once:!0}),we(n,Nn,{originalImage:t.images[o],index:o,image:u},{cancelable:!1})})})},loadImage:function(t){var n=t.target,r=n.parentNode,u=r.offsetWidth||30,o=r.offsetHeight||50,i=!!cn(n,"filled");Fa(n,this.options,function(s,l){var c=s/l,f=u,d=o;o*c>u?i?f=o*c:d=u/c:i?d=u/c:f=o*c,lt(n,Xe({width:f,height:d},sr({translateX:(u-f)/2,translateY:(o-d)/2})))})},keydown:function(t){var n=this.options;if(n.keyboard){var r=t.keyCode||t.which||t.charCode;switch(r){case 13:this.viewer.contains(t.target)&&this.click(t);break}if(this.fulled)switch(r){case 27:this.played?this.stop():n.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(n.loop);break;case 38:t.preventDefault(),this.zoom(n.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(n.loop);break;case 40:t.preventDefault(),this.zoom(-n.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle());break}}},dragstart:function(t){t.target.localName==="img"&&t.preventDefault()},pointerdown:function(t){var n=this.options,r=this.pointers,u=t.buttons,o=t.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(xe(u)&&u!==1||xe(o)&&o!==0||t.ctrlKey))){t.preventDefault(),t.changedTouches?pe(t.changedTouches,function(s){r[s.identifier]=cr(s)}):r[t.pointerId||0]=cr(t);var i=n.movable?rr:!1;n.zoomOnTouch&&n.zoomable&&Object.keys(r).length>1?i=wn:n.slideOnTouch&&(t.pointerType==="touch"||t.type==="touchstart")&&this.isSwitchable()&&(i=aa),n.transition&&(i===rr||i===wn)&&ue(this.image,ve),this.action=i}},pointermove:function(t){var n=this.pointers,r=this.action;!this.viewed||!r||(t.preventDefault(),t.changedTouches?pe(t.changedTouches,function(u){Xe(n[u.identifier]||{},cr(u,!0))}):Xe(n[t.pointerId||0]||{},cr(t,!0)),this.change(t))},pointerup:function(t){var n=this,r=this.options,u=this.action,o=this.pointers,i;t.changedTouches?pe(t.changedTouches,function(s){i=o[s.identifier],delete o[s.identifier]}):(i=o[t.pointerId||0],delete o[t.pointerId||0]),u&&(t.preventDefault(),r.transition&&(u===rr||u===wn)&&H(this.image,ve),this.action=!1,tn&&u!==wn&&i&&Date.now()-i.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){we(n.image,tu,{originalEvent:t})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,r.backdrop&&r.backdrop!=="static"&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){we(n.canvas,un,{originalEvent:t})},50)))))},resize:function(){var t=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}pe(this.player.getElementsByTagName("img"),function(n){X(n,tt,t.loadImage.bind(t),{once:!0}),we(n,tt)})}},wheel:function(t){var n=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50);var r=Number(this.options.zoomRatio)||.1,u=1;t.deltaY?u=t.deltaY>0?1:-1:t.wheelDelta?u=-t.wheelDelta/120:t.detail&&(u=t.detail>0?1:-1),this.zoom(-u*r,!0,null,t)}}},m0={show:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.element,r=this.options;if(r.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(t),this;if(fe(r.show)&&X(n,ba,r.show,{once:!0}),we(n,ba)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var u=this.viewer;if(ue(u,Ut),u.setAttribute("role","dialog"),u.setAttribute("aria-labelledby",this.title.id),u.setAttribute("aria-modal",!0),u.removeAttribute("aria-hidden"),r.transition&&!t){var o=this.shown.bind(this);this.transitioning={abort:function(){de(u,st,o),ue(u,et)}},H(u,ve),u.initialOffsetWidth=u.offsetWidth,X(u,st,o,{once:!0}),H(u,et)}else H(u,et),this.shown();return this},hide:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.element,u=this.options;if(u.inline||this.hiding||!(this.isShown||this.showing))return this;if(fe(u.hide)&&X(r,Ea,u.hide,{once:!0}),we(r,Ea)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var o=this.viewer,i=this.image,s=function(){ue(o,et),t.hidden()};if(u.transition&&!n){var l=function(d){d&&d.target===o&&(de(o,st,l),t.hidden())},c=function(){ln(o,ve)?(X(o,st,l),ue(o,et)):s()};this.transitioning={abort:function(){t.viewed&&ln(i,ve)?de(i,st,c):ln(o,ve)&&de(o,st,l)}},this.viewed&&ln(i,ve)?(X(i,st,c,{once:!0}),this.zoomTo(0,!1,null,null,!0)):c()}else s();return this},view:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(n=Number(n)||0,this.hiding||this.played||n<0||n>=this.length||this.viewed&&n===this.index)return this;if(!this.isShown)return this.index=n,this.show();this.viewing&&this.viewing.abort();var r=this.element,u=this.options,o=this.title,i=this.canvas,s=this.items[n],l=s.querySelector("img"),c=cn(l,"originalUrl"),f=l.getAttribute("alt"),d=document.createElement("img");if(pe(u.inheritedAttributes,function(D){var N=l.getAttribute(D);N!==null&&d.setAttribute(D,N)}),d.src=c,d.alt=f,fe(u.view)&&X(r,xa,u.view,{once:!0}),we(r,xa,{originalImage:this.images[n],index:n,image:d})===!1||!this.isShown||this.hiding||this.played)return this;var _=this.items[this.index];_&&(ue(_,ur),_.removeAttribute("aria-selected")),H(s,ur),s.setAttribute("aria-selected",!0),u.focus&&s.focus(),this.image=d,this.viewed=!1,this.index=n,this.imageData={},H(d,Dn),u.loading&&H(i,nn),i.innerHTML="",i.appendChild(d),this.renderList(),o.innerHTML="";var p=function(){var N=t.imageData,v=Array.isArray(u.title)?u.title[1]:u.title;o.innerHTML=a0(fe(v)?v.call(t,d,N):"".concat(f," (").concat(N.naturalWidth," × ").concat(N.naturalHeight,")"))},m,x;return X(r,Nn,p,{once:!0}),this.viewing={abort:function(){de(r,Nn,p),d.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(d.src="",de(d,tt,m),t.timeout&&clearTimeout(t.timeout))}},d.complete?this.load():(X(d,tt,m=function(){de(d,qt,x),t.load()},{once:!0}),X(d,qt,x=function(){de(d,tt,m),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),ue(d,Dn),u.loading&&ue(t.canvas,nn)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){ue(d,Dn),t.timeout=!1},1e3)),this},prev:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.index-1;return n<0&&(n=t?this.length-1:0),this.view(n),this},next:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.length-1,r=this.index+1;return r>n&&(r=t?0:n),this.view(r),this},move:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.imageData;return this.moveTo(on(t)?t:r.x+Number(t),on(n)?n:r.y+Number(n)),this},moveTo:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=this.element,i=this.options,s=this.imageData;if(t=Number(t),r=Number(r),this.viewed&&!this.played&&i.movable){var l=s.x,c=s.y,f=!1;if(xe(t)?f=!0:t=l,xe(r)?f=!0:r=c,f){if(fe(i.move)&&X(o,Ca,i.move,{once:!0}),we(o,Ca,{x:t,y:r,oldX:l,oldY:c,originalEvent:u})===!1)return this;s.x=t,s.y=r,s.left=t,s.top=r,this.moving=!0,this.renderImage(function(){n.moving=!1,fe(i.moved)&&X(o,va,i.moved,{once:!0}),we(o,va,{x:t,y:r,oldX:l,oldY:c,originalEvent:u},{cancelable:!1})})}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var n=this,r=this.element,u=this.options,o=this.imageData;if(t=Number(t),xe(t)&&this.viewed&&!this.played&&u.rotatable){var i=o.rotate;if(fe(u.rotate)&&X(r,wa,u.rotate,{once:!0}),we(r,wa,{degree:t,oldDegree:i})===!1)return this;o.rotate=t,this.rotating=!0,this.renderImage(function(){n.rotating=!1,fe(u.rotated)&&X(r,Da,u.rotated,{once:!0}),we(r,Da,{degree:t,oldDegree:i},{cancelable:!1})})}return this},scaleX:function(t){return this.scale(t,this.imageData.scaleY),this},scaleY:function(t){return this.scale(this.imageData.scaleX,t),this},scale:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,u=this.element,o=this.options,i=this.imageData;if(t=Number(t),r=Number(r),this.viewed&&!this.played&&o.scalable){var s=i.scaleX,l=i.scaleY,c=!1;if(xe(t)?c=!0:t=s,xe(r)?c=!0:r=l,c){if(fe(o.scale)&&X(u,Na,o.scale,{once:!0}),we(u,Na,{scaleX:t,scaleY:r,oldScaleX:s,oldScaleY:l})===!1)return this;i.scaleX=t,i.scaleY=r,this.scaling=!0,this.renderImage(function(){n.scaling=!1,fe(o.scaled)&&X(u,Aa,o.scaled,{once:!0}),we(u,Aa,{scaleX:t,scaleY:r,oldScaleX:s,oldScaleY:l},{cancelable:!1})})}}return this},zoom:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=this.imageData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(o.width*t/o.naturalWidth,n,r,u),this},zoomTo:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=this.element,l=this.options,c=this.pointers,f=this.imageData,d=f.x,_=f.y,p=f.width,m=f.height,x=f.naturalWidth,D=f.naturalHeight;if(t=Math.max(0,t),xe(t)&&this.viewed&&!this.played&&(i||l.zoomable)){if(!i){var N=Math.max(.01,l.minZoomRatio),v=Math.min(100,l.maxZoomRatio);t=Math.min(Math.max(t,N),v)}if(o)switch(o.type){case"wheel":l.zoomRatio>=.055&&t>.95&&t<1.05&&(t=1);break;case"pointermove":case"touchmove":case"mousemove":t>.99&&t<1.01&&(t=1);break}var g=x*t,E=D*t,w=g-p,h=E-m,C=f.ratio;if(fe(l.zoom)&&X(s,Ta,l.zoom,{once:!0}),we(s,Ta,{ratio:t,oldRatio:C,originalEvent:o})===!1)return this;if(this.zooming=!0,o){var k=s0(this.viewer),A=c&&Object.keys(c).length>0?f0(c):{pageX:o.pageX,pageY:o.pageY};f.x-=w*((A.pageX-k.left-d)/p),f.y-=h*((A.pageY-k.top-_)/m)}else sn(u)&&xe(u.x)&&xe(u.y)?(f.x-=w*((u.x-d)/p),f.y-=h*((u.y-_)/m)):(f.x-=w/2,f.y-=h/2);f.left=f.x,f.top=f.y,f.width=g,f.height=E,f.oldRatio=C,f.ratio=t,this.renderImage(function(){n.zooming=!1,fe(l.zoomed)&&X(s,Sa,l.zoomed,{once:!0}),we(s,Sa,{ratio:t,oldRatio:C,originalEvent:o},{cancelable:!1})}),r&&this.tooltip()}return this},play:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var r=this.element,u=this.options;if(fe(u.play)&&X(r,Ia,u.play,{once:!0}),we(r,Ia)===!1)return this;var o=this.player,i=this.loadImage.bind(this),s=[],l=0,c=0;if(this.played=!0,this.onLoadWhenPlay=i,n&&this.requestFullscreen(n),H(o,rn),pe(this.items,function(_,p){var m=_.querySelector("img"),x=document.createElement("img");x.src=cn(m,"originalUrl"),x.alt=m.getAttribute("alt"),x.referrerPolicy=m.referrerPolicy,l+=1,H(x,or),Tn(x,ve,u.transition),ln(_,ur)&&(H(x,et),c=p),s.push(x),X(x,tt,i,{once:!0}),o.appendChild(x)}),xe(u.interval)&&u.interval>0){var f=function(){clearTimeout(t.playing.timeout),ue(s[c],et),c-=1,c=c>=0?c:l-1,H(s[c],et),t.playing.timeout=setTimeout(f,u.interval)},d=function(){clearTimeout(t.playing.timeout),ue(s[c],et),c+=1,c=c<l?c:0,H(s[c],et),t.playing.timeout=setTimeout(d,u.interval)};l>1&&(this.playing={prev:f,next:d,timeout:setTimeout(d,u.interval)})}return this},stop:function(){var t=this;if(!this.played)return this;var n=this.element,r=this.options;if(fe(r.stop)&&X(n,Oa,r.stop,{once:!0}),we(n,Oa)===!1)return this;var u=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,pe(u.getElementsByTagName("img"),function(o){de(o,tt,t.onLoadWhenPlay)}),ue(u,rn),u.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,n=this.options,r=this.viewer,u=this.image,o=this.list;return!this.isShown||this.played||this.fulled||!n.inline?this:(this.fulled=!0,this.open(),H(this.button,ia),n.transition&&(ue(o,ve),this.viewed&&ue(u,ve)),H(r,eu),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("style"),lt(r,{zIndex:n.zIndex}),n.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=Xe({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){n.transition&&setTimeout(function(){H(u,ve),H(o,ve)},0)})}),this)},exit:function(){var t=this,n=this.options,r=this.viewer,u=this.image,o=this.list;return!this.isShown||this.played||!this.fulled||!n.inline?this:(this.fulled=!1,this.close(),ue(this.button,ia),n.transition&&(ue(o,ve),this.viewed&&ue(u,ve)),n.focus&&this.clearEnforceFocus(),r.removeAttribute("role"),r.removeAttribute("aria-labelledby"),r.removeAttribute("aria-modal"),ue(r,eu),lt(r,{zIndex:n.zIndexInline}),this.viewerData=Xe({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){n.transition&&setTimeout(function(){H(u,ve),H(o,ve)},0)})}),this)},tooltip:function(){var t=this,n=this.options,r=this.tooltipBox,u=this.imageData;return!this.viewed||this.played||!n.tooltip?this:(r.textContent="".concat(Math.round(u.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):n.transition?(this.fading&&we(r,st),H(r,rn),H(r,or),H(r,ve),r.removeAttribute("aria-hidden"),r.initialOffsetWidth=r.offsetWidth,H(r,et)):(H(r,rn),r.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){n.transition?(X(r,st,function(){ue(r,rn),ue(r,or),ue(r,ve),r.setAttribute("aria-hidden",!0),t.fading=!1},{once:!0}),ue(r,et),t.fading=!0):(ue(r,rn),r.setAttribute("aria-hidden",!0)),t.tooltipping=!1},1e3),this)},toggle:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,t):this.zoomTo(1,!0,null,t),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=Xe({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,n=this.element,r=this.options,u=this.isImg;if(u&&!n.parentNode)return this.destroy();var o=[];if(pe(u?[n]:n.querySelectorAll("img"),function(c){fe(r.filter)?r.filter.call(t,c)&&o.push(c):t.getImageURL(c)&&o.push(c)}),!o.length)return this;if(this.images=o,this.length=o.length,this.ready){var i=[];if(pe(this.items,function(c,f){var d=c.querySelector("img"),_=o[f];_&&d?(_.src!==d.src||_.alt!==d.alt)&&i.push(f):i.push(f)}),lt(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var s=i.indexOf(this.index);if(s>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-s,this.length-1),0));else{var l=this.items[this.index];H(l,ur),l.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var t=this.element,n=this.options;return t[J]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),n.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):n.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),n.inline||de(t,un,this.onStart),t[J]=void 0,this):this}},p0={getImageURL:function(t){var n=this.options.url;return An(n)?n=t.getAttribute(n):fe(n)?n=n.call(this,t):n="",n},enforceFocus:function(){var t=this;this.clearEnforceFocus(),X(document,ca,this.onFocusin=function(n){var r=t.viewer,u=n.target;if(!(u===document||u===r||r.contains(u))){for(;u;){if(u.getAttribute("tabindex")!==null||u.getAttribute("aria-modal")==="true")return;u=u.parentElement}r.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(de(document,ca,this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;H(t,sa),this.scrollbarWidth>0&&(t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var t=this.body;ue(t,sa),this.scrollbarWidth>0&&(t.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var t=this.element,n=this.options,r=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,n.focus&&(r.focus(),this.enforceFocus()),fe(n.shown)&&X(t,ya,n.shown,{once:!0}),we(t,ya)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,n=this.options,r=this.viewer;n.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),H(r,Ut),r.removeAttribute("role"),r.removeAttribute("aria-labelledby"),r.removeAttribute("aria-modal"),r.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(fe(n.hidden)&&X(t,ka,n.hidden,{once:!0}),we(t,ka,null,{cancelable:!1}))},requestFullscreen:function(t){var n=this.element.ownerDocument;if(this.fulled&&!(n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement)){var r=n.documentElement;r.requestFullscreen?sn(t)?r.requestFullscreen(t):r.requestFullscreen():r.webkitRequestFullscreen?r.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):r.mozRequestFullScreen?r.mozRequestFullScreen():r.msRequestFullscreen&&r.msRequestFullscreen()}},exitFullscreen:function(){var t=this.element.ownerDocument;this.fulled&&(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},change:function(t){var n=this.options,r=this.pointers,u=r[Object.keys(r)[0]];if(u){var o=u.endX-u.startX,i=u.endY-u.startY;switch(this.action){case rr:(o!==0||i!==0)&&(this.pointerMoved=!0,this.move(o,i,t));break;case wn:this.zoom(c0(r),!1,null,t);break;case aa:{this.action="switched";var s=Math.abs(o);s>1&&s>Math.abs(i)&&(this.pointers={},o>1?this.prev(n.loop):o<-1&&this.next(n.loop));break}}pe(r,function(l){l.startX=l.endX,l.startY=l.endY})}},isSwitchable:function(){var t=this.imageData,n=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=n.width&&t.height<=n.height}},g0=vt.Viewer,b0=function(e){return function(){return e+=1,e}}(-1),fn=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Uc(this,e),!t||t.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=Xe({},oa,sn(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=b0(),this.init()}return qc(e,[{key:"init",value:function(){var n=this,r=this.element,u=this.options;if(!r[J]){r[J]=this,u.focus&&!u.keyboard&&(u.focus=!1);var o=r.localName==="img",i=[];if(pe(o?[r]:r.querySelectorAll("img"),function(c){fe(u.filter)?u.filter.call(n,c)&&i.push(c):n.getImageURL(c)&&i.push(c)}),this.isImg=o,this.length=i.length,this.images=i,this.initBody(),on(document.createElement(J).style.transition)&&(u.transition=!1),u.inline){var s=0,l=function(){if(s+=1,s===n.length){var f;n.initializing=!1,n.delaying={abort:function(){clearTimeout(f)}},f=setTimeout(function(){n.delaying=!1,n.build()},0)}};this.initializing={abort:function(){pe(i,function(f){f.complete||(de(f,tt,l),de(f,qt,l))})}},pe(i,function(c){if(c.complete)l();else{var f,d;X(c,tt,f=function(){de(c,qt,d),l()},{once:!0}),X(c,qt,d=function(){de(c,tt,f),l()},{once:!0})}})}else X(r,un,this.onStart=function(c){var f=c.target;f.localName==="img"&&(!fe(u.filter)||u.filter.call(n,f))&&n.view(n.images.indexOf(f))})}}},{key:"build",value:function(){if(!this.ready){var n=this.element,r=this.options,u=n.parentNode,o=document.createElement("div");o.innerHTML=Yc;var i=o.querySelector(".".concat(J,"-container")),s=i.querySelector(".".concat(J,"-title")),l=i.querySelector(".".concat(J,"-toolbar")),c=i.querySelector(".".concat(J,"-navbar")),f=i.querySelector(".".concat(J,"-button")),d=i.querySelector(".".concat(J,"-canvas"));if(this.parent=u,this.viewer=i,this.title=s,this.toolbar=l,this.navbar=c,this.button=f,this.canvas=d,this.footer=i.querySelector(".".concat(J,"-footer")),this.tooltipBox=i.querySelector(".".concat(J,"-tooltip")),this.player=i.querySelector(".".concat(J,"-player")),this.list=i.querySelector(".".concat(J,"-list")),i.id="".concat(J).concat(this.id),s.id="".concat(J,"Title").concat(this.id),H(s,r.title?lr(Array.isArray(r.title)?r.title[0]:r.title):Ut),H(c,r.navbar?lr(r.navbar):Ut),Tn(f,Ut,!r.button),r.keyboard&&f.setAttribute("tabindex",0),r.backdrop&&(H(i,"".concat(J,"-backdrop")),!r.inline&&r.backdrop!=="static"&&uu(d,ar,"hide")),An(r.className)&&r.className&&r.className.split(nu).forEach(function(g){H(i,g)}),r.toolbar){var _=document.createElement("ul"),p=sn(r.toolbar),m=ir.slice(0,3),x=ir.slice(7,9),D=ir.slice(9);p||H(l,lr(r.toolbar)),pe(p?r.toolbar:ir,function(g,E){var w=p&&sn(g),h=p?ru(E):g,C=w&&!on(g.show)?g.show:g;if(!(!C||!r.zoomable&&m.indexOf(h)!==-1||!r.rotatable&&x.indexOf(h)!==-1||!r.scalable&&D.indexOf(h)!==-1)){var k=w&&!on(g.size)?g.size:g,A=w&&!on(g.click)?g.click:g,B=document.createElement("li");r.keyboard&&B.setAttribute("tabindex",0),B.setAttribute("role","button"),H(B,"".concat(J,"-").concat(h)),fe(A)||uu(B,ar,h),xe(C)&&H(B,lr(C)),["small","large"].indexOf(k)!==-1?H(B,"".concat(J,"-").concat(k)):h==="play"&&H(B,"".concat(J,"-large")),fe(A)&&X(B,un,A),_.appendChild(B)}}),l.appendChild(_)}else H(l,Ut);if(!r.rotatable){var N=l.querySelectorAll('li[class*="rotate"]');H(N,Dn),pe(N,function(g){l.appendChild(g)})}if(r.inline)H(f,Xc),lt(i,{zIndex:r.zIndexInline}),window.getComputedStyle(u).position==="static"&<(u,{position:"relative"}),u.insertBefore(i,n.nextSibling);else{H(f,Gc),H(i,eu),H(i,or),H(i,Ut),lt(i,{zIndex:r.zIndex});var v=r.container;An(v)&&(v=n.ownerDocument.querySelector(v)),v||(v=this.body),v.appendChild(i)}if(r.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,fe(r.ready)&&X(n,ga,r.ready,{once:!0}),we(n,ga)===!1){this.ready=!1;return}this.ready&&r.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=g0,e}},{key:"setDefaults",value:function(n){Xe(oa,sn(n)&&n)}}])}();Xe(fn.prototype,d0,_0,h0,m0,p0);var y0=typeof global=="object"&&global&&global.Object===Object&&global;const Ma=y0;var E0=typeof self=="object"&&self&&self.Object===Object&&self,k0=Ma||E0||Function("return this")();const fr=k0;var x0=fr.Symbol;const dr=x0;var Pa=Object.prototype,C0=Pa.hasOwnProperty,v0=Pa.toString,Sn=dr?dr.toStringTag:void 0;function w0(e){var t=C0.call(e,Sn),n=e[Sn];try{e[Sn]=void 0;var r=!0}catch{}var u=v0.call(e);return r&&(t?e[Sn]=n:delete e[Sn]),u}var D0=Object.prototype,N0=D0.toString;function A0(e){return N0.call(e)}var T0="[object Null]",S0="[object Undefined]",$a=dr?dr.toStringTag:void 0;function _r(e){return e==null?e===void 0?S0:T0:$a&&$a in Object(e)?w0(e):A0(e)}function hr(e){return e!=null&&typeof e=="object"}var I0="[object Symbol]";function O0(e){return typeof e=="symbol"||hr(e)&&_r(e)==I0}var L0=Array.isArray;const F0=L0;var M0=/\s/;function P0(e){for(var t=e.length;t--&&M0.test(e.charAt(t)););return t}var $0=/^\s+/;function B0(e){return e&&e.slice(0,P0(e)+1).replace($0,"")}function Ht(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ba=NaN,V0=/^[-+]0x[0-9a-f]+$/i,R0=/^0b[01]+$/i,j0=/^0o[0-7]+$/i,z0=parseInt;function Va(e){if(typeof e=="number")return e;if(O0(e))return Ba;if(Ht(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ht(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=B0(e);var n=R0.test(e);return n||j0.test(e)?z0(e.slice(2),n?2:8):V0.test(e)?Ba:+e}function Ra(e){return e}var U0="[object AsyncFunction]",q0="[object Function]",H0="[object GeneratorFunction]",W0="[object Proxy]";function ja(e){if(!Ht(e))return!1;var t=_r(e);return t==q0||t==H0||t==U0||t==W0}var Y0=fr["__core-js_shared__"];const au=Y0;var za=function(){var e=/[^.]+$/.exec(au&&au.keys&&au.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function G0(e){return!!za&&za in e}var X0=Function.prototype,Z0=X0.toString;function K0(e){if(e!=null){try{return Z0.call(e)}catch{}try{return e+""}catch{}}return""}var J0=/[\\^$.*+?()[\]{}|]/g,Q0=/^\[object .+?Constructor\]$/,ef=Function.prototype,tf=Object.prototype,nf=ef.toString,rf=tf.hasOwnProperty,uf=RegExp("^"+nf.call(rf).replace(J0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function of(e){if(!Ht(e)||G0(e))return!1;var t=ja(e)?uf:Q0;return t.test(K0(e))}function af(e,t){return e==null?void 0:e[t]}function sf(e,t){var n=af(e,t);return of(n)?n:void 0}function lf(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var cf=800,ff=16,df=Date.now;function _f(e){var t=0,n=0;return function(){var r=df(),u=ff-(r-n);if(n=r,u>0){if(++t>=cf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function hf(e){return function(){return e}}var mf=function(){try{var e=sf(Object,"defineProperty");return e({},"",{}),e}catch{}}();const mr=mf;var pf=mr?function(e,t){return mr(e,"toString",{configurable:!0,enumerable:!1,value:hf(t),writable:!0})}:Ra,gf=_f(pf);const bf=gf;var yf=9007199254740991,Ef=/^(?:0|[1-9]\d*)$/;function Ua(e,t){var n=typeof e;return t=t??yf,!!t&&(n=="number"||n!="symbol"&&Ef.test(e))&&e>-1&&e%1==0&&e<t}function qa(e,t,n){t=="__proto__"&&mr?mr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function iu(e,t){return e===t||e!==e&&t!==t}var kf=Object.prototype,xf=kf.hasOwnProperty;function Ha(e,t,n){var r=e[t];(!(xf.call(e,t)&&iu(r,n))||n===void 0&&!(t in e))&&qa(e,t,n)}function Cf(e,t,n,r){var u=!n;n||(n={});for(var o=-1,i=t.length;++o<i;){var s=t[o],l=void 0;l===void 0&&(l=e[s]),u?qa(n,s,l):Ha(n,s,l)}return n}var Wa=Math.max;function vf(e,t,n){return t=Wa(t===void 0?e.length-1:t,0),function(){for(var r=arguments,u=-1,o=Wa(r.length-t,0),i=Array(o);++u<o;)i[u]=r[t+u];u=-1;for(var s=Array(t+1);++u<t;)s[u]=r[u];return s[t]=n(i),lf(e,this,s)}}function Ya(e,t){return bf(vf(e,t,Ra),e+"")}var wf=9007199254740991;function Ga(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=wf}function pr(e){return e!=null&&Ga(e.length)&&!ja(e)}function Xa(e,t,n){if(!Ht(n))return!1;var r=typeof t;return(r=="number"?pr(n)&&Ua(t,n.length):r=="string"&&t in n)?iu(n[t],e):!1}function Df(e){return Ya(function(t,n){var r=-1,u=n.length,o=u>1?n[u-1]:void 0,i=u>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(u--,o):void 0,i&&Xa(n[0],n[1],i)&&(o=u<3?void 0:o,u=1),t=Object(t);++r<u;){var s=n[r];s&&e(t,s,r,o)}return t})}var Nf=Object.prototype;function su(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Nf;return e===n}function Af(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Tf="[object Arguments]";function Za(e){return hr(e)&&_r(e)==Tf}var Ka=Object.prototype,Sf=Ka.hasOwnProperty,If=Ka.propertyIsEnumerable,Of=Za(function(){return arguments}())?Za:function(e){return hr(e)&&Sf.call(e,"callee")&&!If.call(e,"callee")};const Lf=Of;function Ff(){return!1}var Ja=typeof Fe=="object"&&Fe&&!Fe.nodeType&&Fe,Qa=Ja&&typeof module=="object"&&module&&!module.nodeType&&module,Mf=Qa&&Qa.exports===Ja,ei=Mf?fr.Buffer:void 0,Pf=ei?ei.isBuffer:void 0,$f=Pf||Ff;const Bf=$f;var Vf="[object Arguments]",Rf="[object Array]",jf="[object Boolean]",zf="[object Date]",Uf="[object Error]",qf="[object Function]",Hf="[object Map]",Wf="[object Number]",Yf="[object Object]",Gf="[object RegExp]",Xf="[object Set]",Zf="[object String]",Kf="[object WeakMap]",Jf="[object ArrayBuffer]",Qf="[object DataView]",ed="[object Float32Array]",td="[object Float64Array]",nd="[object Int8Array]",rd="[object Int16Array]",ud="[object Int32Array]",od="[object Uint8Array]",ad="[object Uint8ClampedArray]",id="[object Uint16Array]",sd="[object Uint32Array]",ye={};ye[ed]=ye[td]=ye[nd]=ye[rd]=ye[ud]=ye[od]=ye[ad]=ye[id]=ye[sd]=!0,ye[Vf]=ye[Rf]=ye[Jf]=ye[jf]=ye[Qf]=ye[zf]=ye[Uf]=ye[qf]=ye[Hf]=ye[Wf]=ye[Yf]=ye[Gf]=ye[Xf]=ye[Zf]=ye[Kf]=!1;function ld(e){return hr(e)&&Ga(e.length)&&!!ye[_r(e)]}function cd(e){return function(t){return e(t)}}var ti=typeof Fe=="object"&&Fe&&!Fe.nodeType&&Fe,In=ti&&typeof module=="object"&&module&&!module.nodeType&&module,fd=In&&In.exports===ti,lu=fd&&Ma.process,dd=function(){try{var e=In&&In.require&&In.require("util").types;return e||lu&&lu.binding&&lu.binding("util")}catch{}}();const ni=dd;var ri=ni&&ni.isTypedArray,_d=ri?cd(ri):ld;const hd=_d;var md=Object.prototype,pd=md.hasOwnProperty;function ui(e,t){var n=F0(e),r=!n&&Lf(e),u=!n&&!r&&Bf(e),o=!n&&!r&&!u&&hd(e),i=n||r||u||o,s=i?Af(e.length,String):[],l=s.length;for(var c in e)(t||pd.call(e,c))&&!(i&&(c=="length"||u&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ua(c,l)))&&s.push(c);return s}function gd(e,t){return function(n){return e(t(n))}}var bd=gd(Object.keys,Object);const yd=bd;var Ed=Object.prototype,kd=Ed.hasOwnProperty;function xd(e){if(!su(e))return yd(e);var t=[];for(var n in Object(e))kd.call(e,n)&&n!="constructor"&&t.push(n);return t}function Cd(e){return pr(e)?ui(e):xd(e)}var vd=Object.prototype,wd=vd.hasOwnProperty,Dd=Df(function(e,t){if(su(t)||pr(t)){Cf(t,Cd(t),e);return}for(var n in t)wd.call(t,n)&&Ha(e,n,t[n])});const Nd=Dd;function Ad(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Td=Object.prototype,Sd=Td.hasOwnProperty;function Id(e){if(!Ht(e))return Ad(e);var t=su(e),n=[];for(var r in e)r=="constructor"&&(t||!Sd.call(e,r))||n.push(r);return n}function Od(e){return pr(e)?ui(e,!0):Id(e)}var Ld=function(){return fr.Date.now()};const cu=Ld;var Fd="Expected a function",Md=Math.max,Pd=Math.min;function $d(e,t,n){var r,u,o,i,s,l,c=0,f=!1,d=!1,_=!0;if(typeof e!="function")throw new TypeError(Fd);t=Va(t)||0,Ht(n)&&(f=!!n.leading,d="maxWait"in n,o=d?Md(Va(n.maxWait)||0,t):o,_="trailing"in n?!!n.trailing:_);function p(h){var C=r,k=u;return r=u=void 0,c=h,i=e.apply(k,C),i}function m(h){return c=h,s=setTimeout(N,t),f?p(h):i}function x(h){var C=h-l,k=h-c,A=t-C;return d?Pd(A,o-k):A}function D(h){var C=h-l,k=h-c;return l===void 0||C>=t||C<0||d&&k>=o}function N(){var h=cu();if(D(h))return v(h);s=setTimeout(N,x(h))}function v(h){return s=void 0,_&&r?p(h):(r=u=void 0,i)}function g(){s!==void 0&&clearTimeout(s),c=0,r=l=u=s=void 0}function E(){return s===void 0?i:v(cu())}function w(){var h=cu(),C=D(h);if(r=arguments,u=this,l=h,C){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(N,t),p(l)}return s===void 0&&(s=setTimeout(N,t)),i}return w.cancel=g,w.flush=E,w}var oi=Object.prototype,Bd=oi.hasOwnProperty,Vd=Ya(function(e,t){e=Object(e);var n=-1,r=t.length,u=r>2?t[2]:void 0;for(u&&Xa(t[0],t[1],u)&&(r=1);++n<r;)for(var o=t[n],i=Od(o),s=-1,l=i.length;++s<l;){var c=i[s],f=e[c];(f===void 0||iu(f,oi[c])&&!Bd.call(e,c))&&(e[c]=o[c])}return e});const Rd=Vd,On=({images:e=[],options:t})=>{t=Nd(t,{inline:!1});const n=document.createElement("div"),r=a.h("div",{style:{display:"none"},class:["__viewer-token"]},e.map(s=>a.h("img",typeof s=="string"?{src:s}:s)));a.render(r,n);const u=n.firstElementChild;document.body.appendChild(u);const o=new fn(u,t),i=o.destroy.bind(o);return o.destroy=function(){return i(),a.render(null,n),o},o.show(),u.addEventListener("hidden",function(){this.viewer===o&&o.destroy()}),o},jd=({name:e="viewer",debug:t=!1}={})=>{async function n(f,d,_=!1,p=!1){await a.nextTick(),!(p&&!r(f))&&(_||!f[`$${e}`]?(i(f),f[`$${e}`]=new fn(f,d),c("Viewer created")):(f[`$${e}`].update(),c("Viewer updated")))}function r(f){const d=f.innerHTML.match(/<img([\w\W]+?)[\\/]?>/g),_=d?d.join(""):void 0;return f.__viewerImageDiffCache===_?(c("Element change detected, but image(s) has not changed"),!1):(c("Image change detected"),f.__viewerImageDiffCache=_,!0)}function u(f,d,_,p){s(f);const m=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(!m){c("Observer not supported");return}const x=new m(N=>{N.forEach(v=>{c(`Viewer mutation:${v.type}`),_(f,d,p,!0)})}),D={attributes:!0,childList:!0,characterData:!0,subtree:!0};x.observe(f,D),f.__viewerMutationObserver=x,c("Observer created")}function o(f,d,_,p){f.__viewerUnwatch=a.watch(()=>d.value,(m,x)=>{c("Change detected by watcher: ",d.value),p(f,m,!0,!1)},{deep:!0}),c("Watcher created, expression: ",d.value)}function i(f){!f[`$${e}`]||(f[`$${e}`].destroy(),delete f[`$${e}`],c("Viewer destroyed"))}function s(f){!f.__viewerMutationObserver||(f.__viewerMutationObserver.disconnect(),delete f.__viewerMutationObserver,c("observer destroyed"))}function l(f){!f.__viewerUnwatch||(f.__viewerUnwatch(),delete f.__viewerUnwatch,c("Watcher destroyed"))}function c(...f){t&&console.log(...f)}return{mounted(f,d,_){c("Viewer bind");const p=$d(n,50);p(f,d.value),o(f,d,_,p),d.modifiers.static||u(f,d.value,p,d.modifiers.rebuild)},unmounted(f){c("Viewer unbind"),s(f),l(f),i(f)}}},zd=a.defineComponent({name:"Viewer",props:{images:{type:Array,default:()=>[]},rebuild:{type:Boolean,default:!1},trigger:{type:Object,default:null},options:{type:Object,default:()=>null}},emits:["inited"],setup(e,{emit:t}){let n;const r=a.ref();function u(){n=new fn(r.value,e.options),t("inited",n)}function o(){n&&n.destroy()}function i(){o(),u()}function s(){n?(n.update(),t("inited",n)):u()}function l(){e.rebuild?i():s()}const c={deep:!0};return a.watch(()=>e.images,()=>{a.nextTick(()=>{l()})},c),a.watch(()=>e.trigger,()=>{a.nextTick(()=>{l()})},c),a.watch(()=>e.options,()=>{a.nextTick(()=>{i()})},c),a.onMounted(()=>u()),a.onUnmounted(()=>o()),{root:r,createViewer:u,rebuildViewer:i,updateViewer:s,destroyViewer:o}}}),Ud=(e,t)=>{const n=e.__vccOpts||e;for(const[r,u]of t)n[r]=u;return n},qd={ref:"root"};function Hd(e,t,n,r,u,o){return a.openBlock(),a.createElementBlock("div",qd,[a.renderSlot(e.$slots,"default",{images:e.images,options:e.options})],512)}const Wd=Ud(zd,[["render",Hd]]),Yd={install(e,{name:t="viewer",debug:n=!1,defaultOptions:r}={}){r&&fn.setDefaults(r),e.config.globalProperties[`$${t}Api`]=On,e.component(t,Rd(Wd,{name:t})),e.directive(t,jd({name:t,debug:n}))},setDefaults(e){fn.setDefaults(e)}},Gd={},Xd={width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zd(e,t){return a.openBlock(),a.createElementBlock("svg",Xd,t[0]||(t[0]=[a.createElementVNode("path",{d:"M10.3193 16.5L14.8193 12L10.3193 7.5",stroke:"currentColor","stroke-linecap":"round"},null,-1)]))}const ai=me(Gd,[["render",Zd]]),Kd=["src"],Jd={class:"name"},Qd={class:"sub"},e1={class:"title"},t1={key:0},n1=["src"],r1=["src"],u1=me({__name:"DishesCard",props:{info:{type:Object,required:!0},defMsg:{type:Object,default:()=>({})},open:{type:Boolean,default:!1}},setup(e){const{t,locale:n}=it(),r=e,u=a.ref(r.open),o=a.ref(null),i=a.ref(0),s=a.ref([]);a.onMounted(async()=>{u.value&&(await D(),await c(),setTimeout(()=>{l()},200))});const l=a.inject("triggerScrollToEnd"),c=()=>new Promise(async N=>{await a.nextTick();const v=[];s.value.hasOwnProperty("craftUrl")&&s.value.craftUrl&&v.push(s.value.craftUrl),v.length?(await f(v),await a.nextTick(),i.value=_.value?o.value.scrollHeight:0,u.value&&(i.value+=26),u.value=!0):u.value=!1,N()}),f=N=>{const v=[];return N.forEach(g=>{const E=new Image,w=new Promise((h,C)=>{E.onload=()=>h(E),E.onerror=()=>C(new Error(`加载${g}失败`)),E.src=g});v.push(w)}),Promise.all(v)},d=a.computed(()=>`${r.defMsg.energy}${r.info.energy}kcal,${r.defMsg.protein}${r.info.protein}g,${r.defMsg.fat}${r.info.fat}g,${r.defMsg.carbonwater}${r.info.carbonwater}g`);a.computed(()=>{var v,g;return(((g=(v=r.info)==null?void 0:v.makeMaterialList)==null?void 0:g.map(E=>E.material+E.usage+"g"))||[]).join("、")});const _=a.computed(()=>r.info.hasOwnProperty("cid")&&r.info.cid),p=a.computed(()=>{let N="92px";return _.value&&(N=u.value?i.value+66+"px":"118px"),N}),m=N=>{On({images:[N]})},x=async()=>{u.value?u.value=!1:(await D(),c())},D=async()=>{if(!(s.value.hasOwnProperty("makeCraftList")&&s.value.hasOwnProperty("makeMaterialList"))){const N=await en("/api/cn.weis.api.Food/makeCraft",{method:"makeCraft",params:[{cid:r.info.cid}],token:localStorage.getItem("postToken")});N.errCode===0&&N.obj&&(s.value={...N.obj})}};return(N,v)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass({dishes_box:!0,is_open:u.value}),style:a.normalizeStyle({height:p.value})},[a.createElementVNode("div",{class:"dishes_wrap",onClick:a.withModifiers(x,["stop"])},[a.createElementVNode("img",{class:"img",src:e.info.primaryImgUrl,alt:"img",onClick:v[0]||(v[0]=a.withModifiers(g=>m(e.info.primaryImgUrl),["stop"]))},null,8,Kd),a.createElementVNode("div",null,[a.createElementVNode("div",Jd,[a.createElementVNode("span",null,a.toDisplayString(a.unref(n)==="en-US"?e.info.skunameEn:e.info.skuname),1),v[2]||(v[2]=a.createElementVNode("span",null,"×1",-1))]),a.createElementVNode("div",Qd,a.toDisplayString(d.value),1)])]),_.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dishes_details",ref_key:"contentRef",ref:o},[a.withDirectives(a.createElementVNode("div",{class:"switch_open",onClick:a.withModifiers(x,["stop"])},[a.createElementVNode("span",null,a.toDisplayString(a.unref(t)("dishes_card_view_details")),1),a.createVNode(ai,{class:"icon"})],512),[[a.vShow,!u.value]]),a.createElementVNode("div",e1,a.toDisplayString(a.unref(t)("dishes_card_craft")),1),s.value.makeVideosUrl?(a.openBlock(),a.createElementBlock("div",t1,[a.createElementVNode("video",{src:s.value.makeVideosUrl,width:"100%",controls:"true"},null,8,n1)])):a.createCommentVNode("",!0),a.createElementVNode("img",{src:s.value.craftUrl,width:"100%",alt:"craft"},null,8,r1),a.createElementVNode("div",{class:"collapse_btn",onClick:v[1]||(v[1]=a.withModifiers(g=>u.value=!1,["stop"]))},a.toDisplayString(a.unref(t)("dishes_card_collapse")),1)],512)):a.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-4901daf6"]]),o1={class:"dl_wrap"},a1={key:0},i1={key:0,class:"sep_line"},s1={key:1,class:"date"},l1={key:2,class:"date"},c1={key:1,style:{padding:"15px 0"}},f1={key:0,style:{"font-size":"10px","line-height":"16px",color:"#f16868"}},d1={key:1,class:"btn_group"},_1={class:"name"},h1={key:2,class:"btn_group"},m1={class:"name"},p1={class:"name"},g1={key:3,class:"btn_group"},b1={class:"name"},y1={class:"sub"},E1={class:"name"},k1={class:"sub"},x1=me({__name:"DishesList",props:{skuList:{type:Array,required:!0,default:()=>[]},isMini:{type:Boolean,default:!1},channel:{type:String,default:"web"},defMsg:{type:Object,default:()=>({})}},emits:["select"],setup(e,{emit:t}){const{t:n,locale:r}=it(),u=e,o=()=>{console.log(u.skuList)},i=t;a.ref(!1);const s=a.ref(!1),l=(_,p)=>!1,c=_=>{let p=0;return((_==null?void 0:_.list)||[]).forEach(m=>{((m==null?void 0:m.getCategoryList)||[]).forEach(x=>{p+=x.energy||0})}),p},f=_=>u.skuList.slice(0,_).findIndex(p=>p.strDate===u.skuList[_].strDate)===-1,d=_=>{i("select",{type:_})};return(_,p)=>(a.openBlock(),a.createElementBlock("div",o1,[a.createElementVNode("div",{class:a.normalizeClass(["dl_list",{show_full:s.value}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.skuList,(m,x)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:m.category},[f(x)?(a.openBlock(),a.createElementBlock("div",a1,[x>0?(a.openBlock(),a.createElementBlock("div",i1)):a.createCommentVNode("",!0),a.unref(r)==="en-US"?(a.openBlock(),a.createElementBlock("div",s1,a.toDisplayString(m.strDate.slice(6))+"/"+a.toDisplayString(m.strDate.slice(4,6)),1)):(a.openBlock(),a.createElementBlock("div",l1,a.toDisplayString(m.strDate.slice(4,6))+"月"+a.toDisplayString(m.strDate.slice(6))+"日 ",1))])):a.createCommentVNode("",!0),m.list&&m.list.length?(a.openBlock(),a.createElementBlock("div",c1,[a.createElementVNode("p",{class:"title",onClick:a.withModifiers(o,["stop"])},a.toDisplayString(a.unref(n)(`dishes_cart_cate_${m.category}`))+" "+a.toDisplayString(c(m))+"kcal ",1),a.createElementVNode("div",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m.list,D=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:D.id},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(D.getCategoryList,(N,v)=>(a.openBlock(),a.createBlock(u1,{key:v,info:N,"def-msg":e.defMsg,open:l(N,m.category)},null,8,["info","def-msg","open"]))),128))],64))),128))])])):a.createCommentVNode("",!0)],64))),128))],2),a.createElementVNode("div",{class:a.normalizeClass(["dl_full",{show_full:s.value}]),onClick:p[0]||(p[0]=m=>s.value=!s.value)},a.toDisplayString(s.value?a.unref(n)("msg_obj_dishes_collapseMenu"):a.unref(n)("msg_obj_dishes_viewFullMenu")),3),e.isMini?(a.openBlock(),a.createElementBlock("div",f1,[a.createTextVNode(a.toDisplayString(a.unref(n)("msg_obj_dishes_warmTip")),1),p[6]||(p[6]=a.createElementVNode("br",null,null,-1)),a.createElementVNode("strong",null,a.toDisplayString(a.unref(n)("msg_obj_dishes_halfPriceSurprise")),1)])):a.createCommentVNode("",!0),e.channel==="cdc"?(a.openBlock(),a.createElementBlock("div",d1,[a.createElementVNode("div",{class:"btn btn_2",onClick:p[1]||(p[1]=a.withModifiers(m=>d("ship_order"),["stop"]))},[a.createElementVNode("span",_1,a.toDisplayString(a.unref(n)("msg_obj_dishes_orderNow")),1)])])):e.isMini?(a.openBlock(),a.createElementBlock("div",h1,[a.createElementVNode("div",{class:"btn btn_1",onClick:p[2]||(p[2]=a.withModifiers(m=>d("personalForm"),["stop"]))},[a.createElementVNode("span",m1,a.toDisplayString(a.unref(n)("msg_obj_dishes_personalizedRecipe")),1)]),a.createElementVNode("div",{class:"btn btn_2",onClick:p[3]||(p[3]=a.withModifiers(m=>d("ship_order"),["stop"]))},[a.createElementVNode("span",p1,a.toDisplayString(a.unref(n)("msg_obj_dishes_orderNow")),1)])])):(a.openBlock(),a.createElementBlock("div",g1,[e.channel!=="hft"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"btn btn_1",onClick:p[4]||(p[4]=a.withModifiers(m=>d("ship_order"),["stop"]))},[a.createElementVNode("span",b1,a.toDisplayString(a.unref(n)("msg_obj_dishes_deliveryOrder")),1),a.createElementVNode("span",y1,a.toDisplayString(a.unref(n)("msg_obj_dishes_deliveryToDoor")),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"btn btn_2",onClick:p[5]||(p[5]=a.withModifiers(m=>d("pick_order"),["stop"]))},[a.createElementVNode("span",E1,a.toDisplayString(a.unref(n)("msg_obj_dishes_pickupOrder")),1),a.createElementVNode("span",k1,a.toDisplayString(a.unref(n)("msg_obj_dishes_freeShipping")),1)])]))]))}},[["__scopeId","data-v-f8361b19"]]),C1={class:"card",style:{"margin-top":"15px"}},v1={class:"row"},w1={class:"name"},D1={class:"content"},N1={class:"title"},A1={class:"row"},T1={class:"name"},S1={class:"content"},I1={class:"row"},O1={class:"name"},L1={class:"content"},F1={class:"row"},M1={class:"name"},P1={class:"content"},$1={class:"row"},B1={class:"name"},V1={class:"content"},R1={class:"btn_group"},j1=me({__name:"PlanCard",props:{info:{type:Object,required:!0},defMsg:{type:Object,required:!0}},emits:["select"],setup(e,{emit:t}){const{t:n}=it(),r={"01":n("msg_obj_plan_breakfast"),"02":n("msg_obj_plan_lunch"),"03":n("msg_obj_plan_dinner"),"04":n("msg_obj_plan_snack"),carbohydrateTotal:n("msg_obj_plan_carbohydrate"),proteinTotal:n("msg_obj_plan_protein"),fatTotal:n("msg_obj_plan_fat")},u=t,o=()=>{u("select",{})};return(i,s)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",C1,[a.createElementVNode("div",v1,[a.createElementVNode("div",w1,a.toDisplayString(a.unref(n)("msg_obj_plan_dailyIntake")),1),a.createElementVNode("div",D1,a.toDisplayString(e.info.totalIntake)+" kcal",1)])]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.info.planDetailList,l=>(a.openBlock(),a.createElementBlock("div",{key:i.category,class:"card"},[a.createElementVNode("div",N1,a.toDisplayString(r[l.category]),1),a.createElementVNode("div",A1,[a.createElementVNode("div",T1,a.toDisplayString(r[l.category])+"熱量",1),a.createElementVNode("div",S1,a.toDisplayString(l.totalKcal)+" kcal",1)]),s[0]||(s[0]=a.createElementVNode("div",{class:"sep"},null,-1)),a.createElementVNode("div",I1,[a.createElementVNode("div",O1,a.toDisplayString(r.carbohydrateTotal),1),a.createElementVNode("div",L1,a.toDisplayString(l.carbohydrateTotal)+" g",1)]),a.createElementVNode("div",F1,[a.createElementVNode("div",M1,a.toDisplayString(r.proteinTotal),1),a.createElementVNode("div",P1,a.toDisplayString(l.proteinTotal)+" g",1)]),a.createElementVNode("div",$1,[a.createElementVNode("div",B1,a.toDisplayString(r.fatTotal),1),a.createElementVNode("div",V1,a.toDisplayString(l.fatTotal)+" g",1)])]))),128)),a.createElementVNode("div",R1,[a.createElementVNode("div",{class:"btn btn_2",onClick:a.withModifiers(o,["stop"])},a.toDisplayString(a.unref(n)("msg_obj_plan_useThisPlan")),1)])],64))}},[["__scopeId","data-v-614ab537"]]),z1={},U1={width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q1(e,t){return a.openBlock(),a.createElementBlock("svg",U1,t[0]||(t[0]=[a.createElementVNode("path",{d:"M5.75335 4.13651C5.8677 3.70974 6.31858 3.36377 6.76041 3.36377C7.20223 3.36377 7.4677 3.70974 7.35335 4.13651L7.14629 4.90928L10.3463 4.90928L10.5533 4.13651C10.6677 3.70974 11.1186 3.36377 11.5604 3.36377C12.0022 3.36377 12.2677 3.70974 12.1533 4.13651L11.9463 4.90928H12.8282C13.2701 4.90928 13.5355 5.25525 13.4212 5.68202C13.3068 6.10879 12.8559 6.45476 12.4141 6.45476H11.5322L10.704 9.54561H11.5859C12.0277 9.54561 12.2932 9.89157 12.1788 10.3183C12.0645 10.7451 11.6136 11.0911 11.1718 11.0911H10.2899L10.0828 11.8639C9.96844 12.2907 9.51757 12.6367 9.07574 12.6367C8.63391 12.6367 8.36844 12.2907 8.4828 11.8639L8.68988 11.0911L5.48986 11.0911L5.28278 11.8639C5.16843 12.2907 4.71756 12.6367 4.27573 12.6367C3.8339 12.6367 3.56843 12.2907 3.68278 11.8639L3.88986 11.0911H3.17178C2.72995 11.0911 2.46448 10.7451 2.57884 10.3183C2.69319 9.89157 3.14407 9.54561 3.58589 9.54561H4.30397L4.67327 8.16737C4.78763 7.7406 5.2385 7.39463 5.68033 7.39463C6.12215 7.39463 6.38763 7.7406 6.27327 8.16737L5.90398 9.54561L9.10399 9.54561L9.93218 6.45476L4.41412 6.45476C3.97229 6.45476 3.70682 6.10879 3.82117 5.68202C3.93553 5.25524 4.3864 4.90928 4.82823 4.90928H5.54629L5.75335 4.13651Z",fill:"currentColor"},null,-1)]))}const H1=me(z1,[["render",q1]]),W1={},Y1={width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G1(e,t){return a.openBlock(),a.createElementBlock("svg",Y1,t[0]||(t[0]=[a.createElementVNode("path",{d:"M1 16C1 7.71573 7.71573 1 16 1C24.2843 1 31 7.71573 31 16C31 24.2843 24.2843 31 16 31C7.71573 31 1 24.2843 1 16Z",fill:"currentColor"},null,-1),a.createElementVNode("path",{d:"M16.7066 8.29236L16 7.58578L15.2929 8.29289L9.29289 14.2929C8.90237 14.6834 8.90237 15.3166 9.29289 15.7071C9.68342 16.0976 10.3166 16.0976 10.7071 15.7071L15 11.4142L15 23C15 23.5523 15.4477 24 16 24C16.5523 24 17 23.5523 17 23L17 11.4142L21.2929 15.7071C21.6834 16.0976 22.3166 16.0976 22.7071 15.7071C23.0976 15.3166 23.0976 14.6834 22.7071 14.2929L16.7077 8.29351L16.7071 8.29289L16.7066 8.29236Z",fill:"#fff"},null,-1)]))}const X1=me(W1,[["render",G1]]),Z1={name:"pictureIcon"},K1={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J1(e,t,n,r,u,o){return a.openBlock(),a.createElementBlock("svg",K1,t[0]||(t[0]=[a.createElementVNode("path",{d:"M2.875 6C2.875 4.34315 4.21815 3 5.875 3H19.875C21.5319 3 22.875 4.34315 22.875 6V18C22.875 19.6569 21.5319 21 19.875 21H5.875C4.21815 21 2.875 19.6569 2.875 18V6ZM5.875 5C5.32272 5 4.875 5.44772 4.875 6V16.0852L10.475 11.8852C11.8972 10.8185 13.8528 10.8185 15.275 11.8852L20.875 16.0852V6C20.875 5.44772 20.4273 5 19.875 5H5.875ZM8.28442 10.0852C9.11285 10.0852 9.78442 9.41363 9.78442 8.58521C9.78442 7.75678 9.11285 7.08521 8.28442 7.08521C7.456 7.08521 6.78442 7.75678 6.78442 8.58521C6.78442 9.41363 7.456 10.0852 8.28442 10.0852Z",fill:"currentColor"},null,-1)]))}const Q1=me(Z1,[["render",J1]]),e_={},t_={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n_(e,t){return a.openBlock(),a.createElementBlock("svg",t_,t[0]||(t[0]=[a.createElementVNode("path",{d:"M18.0849 10.6565C19.9734 8.76795 19.9734 5.70607 18.0849 3.81756C16.1964 1.92905 13.1345 1.92905 11.246 3.81756L5.05399 10.0096C2.55177 12.5118 2.55177 16.5687 5.05399 19.0709C7.55622 21.5732 11.6131 21.5732 14.1154 19.0709L20.2421 12.9442C20.6326 12.5537 20.6326 11.9205 20.2421 11.53C19.8516 11.1394 19.2184 11.1394 18.8279 11.53L12.7011 17.6567C10.98 19.3779 8.18938 19.3779 6.46821 17.6567C4.74703 15.9355 4.74703 13.145 6.4682 11.4238L12.6602 5.23178C13.7677 4.12431 15.5632 4.12431 16.6707 5.23178C17.7781 6.33924 17.7781 8.13478 16.6707 9.24224L10.5401 15.3729C10.0481 15.8648 9.25051 15.8648 8.75856 15.3729C8.26661 14.8809 8.26661 14.0833 8.75856 13.5913L13.9435 8.40645C14.334 8.01592 14.334 7.38276 13.9435 6.99223C13.5529 6.60171 12.9198 6.60171 12.5292 6.99223L7.34435 12.1771C6.07135 13.4501 6.07135 15.5141 7.34435 16.7871C8.61735 18.0601 10.6813 18.0601 11.9543 16.7871L18.0849 10.6565Z",fill:"currentColor"},null,-1)]))}const r_=me(e_,[["render",n_]]),u_=["width","height"],o_=["stroke"],a_=["stroke","stroke-dasharray","stroke-dashoffset"],ii={__name:"progressRing",props:{percent:{type:Number,default:75},size:{type:Number,default:48},color:{type:String,default:"#fff"},bgColor:{type:String,default:"#888"}},setup(e){const t=e,n=a.computed(()=>({l:2*Math.PI*45,p:2*Math.PI*45*(100-t.percent)/100}));return(r,u)=>(a.openBlock(),a.createElementBlock("svg",{width:e.size,height:e.size,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("circle",{cx:"50",cy:"50",r:"45",fill:"none",stroke:e.bgColor,"stroke-width":"8"},null,8,o_),a.createElementVNode("path",{id:"progressPath",d:`M 50 5\r
|
|
32
32
|
a 45 45 0 1 1 0 90\r
|
|
33
|
-
a 45 45 0 1 1 0 -90`,fill:"none",stroke:e.color,"stroke-width":"10","stroke-linecap":"round","stroke-dasharray":n.value.l,"stroke-dashoffset":n.value.p},null,8,a_)],8,u_))}},i_={},s_={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l_(e,t){return a.openBlock(),a.createElementBlock("svg",s_,t[0]||(t[0]=[a.createElementVNode("path",{d:"M13.5 4.5C13.5 3.67157 12.8284 3 12 3C11.1716 3 10.5 3.67157 10.5 4.5L10.5 10.5H4.5C3.67157 10.5 3 11.1716 3 12C3 12.8284 3.67157 13.5 4.5 13.5H10.5L10.5 19.5C10.5 20.3284 11.1716 21 12 21C12.8284 21 13.5 20.3284 13.5 19.5V13.5H19.5C20.3284 13.5 21 12.8284 21 12C21 11.1716 20.3284 10.5 19.5 10.5H13.5V4.5Z",fill:"currentColor"},null,-1)]))}const c_=ge(i_,[["render",l_]]),f_={},d_={width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function __(e,t){return a.openBlock(),a.createElementBlock("svg",d_,t[0]||(t[0]=[a.createElementVNode("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5",fill:"black","fill-opacity":"0.5"},null,-1),a.createElementVNode("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5",stroke:"currentColor"},null,-1),a.createElementVNode("path",{d:"M10.8284 6.58588C11.2189 6.19535 11.2189 5.56219 10.8284 5.17167C10.4379 4.78114 9.80471 4.78114 9.41419 5.17167L8 6.58586L6.58581 5.17167C6.19529 4.78114 5.56212 4.78114 5.1716 5.17167C4.78107 5.56219 4.78107 6.19535 5.1716 6.58588L6.58579 8.00007L5.17155 9.41431C4.78103 9.80483 4.78103 10.438 5.17155 10.8285C5.56207 11.219 6.19524 11.219 6.58576 10.8285L8 9.41428L9.41424 10.8285C9.80476 11.219 10.4379 11.219 10.8285 10.8285C11.219 10.438 11.219 9.80483 10.8285 9.41431L9.41421 8.00007L10.8284 6.58588Z",fill:"currentColor"},null,-1)]))}const h_=ge(f_,[["render",__]]),m_={},p_={width:"1em",height:"1em",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g_(e,t){return a.openBlock(),a.createElementBlock("svg",p_,t[0]||(t[0]=[a.createElementVNode("path",{d:"M21 7.64355C21 7.09127 21.4477 6.64355 22 6.64355C22.5523 6.64355 23 7.09127 23 7.64355V9.64355H25C25.5523 9.64355 26 10.0913 26 10.6436C26 11.1958 25.5523 11.6436 25 11.6436H23V13.6436C23 14.1958 22.5523 14.6436 22 14.6436C21.4477 14.6436 21 14.1958 21 13.6436V11.6436H19C18.4477 11.6436 18 11.1958 18 10.6436C18 10.0913 18.4477 9.64355 19 9.64355H21V7.64355ZM9 10.6436C9 10.0913 9.44772 9.64355 10 9.64355H16.164C16.7162 9.64355 17.164 9.19584 17.164 8.64355C17.164 8.09127 16.7162 7.64355 16.164 7.64355H10C8.34315 7.64355 7 8.9867 7 10.6436V22.8527C7 24.7723 9.0737 25.9757 10.7403 25.0233L15.035 22.5693C15.1861 22.4829 15.3571 22.4375 15.5311 22.4375H22C23.6569 22.4375 25 21.0944 25 19.4375V16.32C25 15.7677 24.5523 15.32 24 15.32C23.4477 15.32 23 15.7677 23 16.32V19.4375C23 19.9898 22.5523 20.4375 22 20.4375H15.5311C15.009 20.4375 14.496 20.5737 14.0427 20.8328L9.74807 23.2869C9.41474 23.4773 9 23.2366 9 22.8527V10.6436Z",fill:"currentColor"},null,-1)]))}const si=ge(m_,[["render",g_]]),b_={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"1em",height:"1em"},y_=["fill"],E_=["fill"],k_={__name:"sendLoadingIcon",props:{color:{type:String,default:"#000"},bg:{type:String,default:"#039938"}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("svg",b_,[a.createElementVNode("circle",{cx:"512",cy:"512",r:"512",fill:e.bg},null,8,y_),a.createElementVNode("path",{fill:e.color,d:"M512.042667 213.333333v74.666667a224 224 0 1 1-195.626667 114.773333l-65.194667-36.394666A298.666667 298.666667 0 1 0 512.042667 213.333333z"},n[0]||(n[0]=[a.createElementVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 512 512",to:"360 512 512",dur:"1.5s",repeatCount:"indefinite",fill:"freeze"},null,-1)]),8,E_)]))}},x_={class:"om_wrap"},C_={class:"om_quick"},v_=["onClick"],w_={class:"om_operate_box"},D_={class:"om_operate_wrap"},N_={class:"file_list"},A_=["src"],T_={key:2,class:"process"},S_={class:"om_operate"},I_=["placeholder"],O_={class:"btn_group"},L_={class:"om_extra",style:{display:"none"}},F_={class:"icon"},M_={class:"text"},P_={class:"om_ai_tips"},$_="https://prodstatic.weis1606.cn/api/smartFood/icon/pdf_icon.png",B_=ge({__name:"OperateModule",props:{modelValue:{type:String,default:""},token:{type:String,required:!0},tagList:{type:Array,required:!0},newChat:{type:Boolean,default:!1},defMsg:{type:Object,required:!0},isReq:{type:String,default:"00"}},emits:["update:modelValue","send","tag","call"],setup(e,{emit:t}){const{t:n}=at(),r=[{name:n("msg_obj_operate_photoAlbum"),icon:Q1,type:"photo"},{name:n("msg_obj_operate_file"),icon:r_,type:"file"}],u=a.ref(null),o=a.ref(null),i=a.ref(null),s=a.ref(!1),l=a.ref([]),c=e,f=t,d=a.computed(()=>({headers:{Authorization:`Bearer ${c.token}`,"Content-Type":"multipart/form-data"}}));a.watch(()=>c.modelValue,()=>{$()});const _=a.computed(()=>{switch(c.isReq){case"01":return{bg:"#fff",color:"#ccc"};case"02":return{bg:"#666",color:"#CDEBD7"};case"03":return{bg:"#ccc",color:"#fff"};case"04":return{bg:"#E5F4EB",color:"#fff"}}}),p=a.computed({get:()=>c.modelValue,set:U=>{f("update:modelValue",U),$()}});a.onMounted(()=>{$()}),a.onUnmounted(()=>{u.value&&(u.value.style.height="auto")});const m=U=>{p.value=U.target.value.replace(/^\n+|\n+$/g,"")},C=U=>{U.type==="upload"?w():f("tag",{...U})},D=()=>{if(!p.value)return;if(l.value.length&&l.value.findIndex(W=>W.percent<100)>-1){f("call",{message:c.defMsg.uploadingTips,reason:"is_uploading",value:"toast",type:"call"});return}const U=[{content:p.value,text:p.value}];console.log("====== u file list =======",l.value),l.value.length&&(U.push({type:"object_string",content:l.value.map(W=>({type:V(W.file_type),name:W.file.name,file_id:W.data.id,file_url:W.file_url}))}),s.value=!1),f("send",[...U]),x()},N=U=>{const W=U.target.files[0],R=new FileReader;R.onload=()=>previewUrl.value=R.result,R.readAsDataURL(W)},v=()=>{o.value&&o.value.click()},g=U=>{const W=U.target.files[0];console.log("=== file ===",U),W&&(l.value.push({file:W,file_type:W.type,file_url:URL.createObjectURL(W),size:(W.size/1024).toFixed(2),percent:0,data:{}}),console.log("=== 文件列表 ===",l.value),E(l.value.length-1))},E=async U=>{const W=l.value[U].file;console.log("========",W),p.value||(p.value=c.defMsg.fileText);const R=new FormData;R.append("file",W);const ye=new XMLHttpRequest;ye.open("POST","https://api.coze.cn/v1/files/upload"),ye.setRequestHeader("Authorization",d.value.headers.Authorization),ye.upload.onprogress=Oe=>{if(Oe.lengthComputable){const P=Math.round(Oe.loaded/Oe.total*100);console.log(`======进度======:${P}%`),l.value[U].percent=P}},ye.onreadystatechange=function(){if(console.log("============",ye),ye.readyState===XMLHttpRequest.DONE)if(ye.status===200){console.log("上传成功:",ye.responseText);const Oe=JSON.parse(ye.response);l.value[U].data=Oe.data}else console.error("上传失败:",ye.status)},ye.send(R)},w=()=>{x(!0),s.value=!0},h=()=>{x(!0),s.value=!1},x=(U=!1)=>{if(U)for(let W=l.value.length-1;W>=0;W-=1)k(W);o.value&&(o.value.value=""),l.value=[]},k=U=>{URL.revokeObjectURL(l.value[U].file_url),l.value.splice(U,1),o.value&&(o.value.value="")},T=()=>{f("call",{type:"new_chat"})},$=()=>{a.nextTick(()=>{u.value&&(u.value.style.height="auto",u.value.style.height=Math.min(u.value.scrollHeight,72)+"px")})},z=()=>{a.nextTick(()=>{window.scrollTo({top:Math.round(.7*window.innerHeight+.5476*window.innerWidth-416.4),behavior:"smooth"})})},V=U=>{if(U.includes("image"))return"image";if(U.includes("application"))return"file";if(U.includes("audio"))return"audio"},ae=()=>{};return(U,W)=>(a.openBlock(),a.createElementBlock("div",x_,[a.createElementVNode("div",C_,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.tagList,R=>(a.openBlock(),a.createElementBlock("div",{class:"tag",key:R.value,onClick:a.withModifiers(ye=>C(R),["stop"])},[a.createVNode(H1,{class:"icon"}),a.createTextVNode(" "+a.toDisplayString(R.name),1)],8,v_))),128))]),a.createElementVNode("div",w_,[e.newChat?(a.openBlock(),a.createElementBlock("div",{key:0,class:"new_chat",onClick:a.withModifiers(T,["stop"])},[a.createVNode(si)])):a.createCommentVNode("",!0),a.createElementVNode("div",D_,[a.createElementVNode("div",{class:a.normalizeClass(["file_list_box",{hidden:!s.value}])},[a.createElementVNode("div",N_,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.value,(R,ye)=>(a.openBlock(),a.createElementBlock("div",{key:ye,class:"file_card"},[R.file_type.toLocaleLowerCase().includes("pdf")?(a.openBlock(),a.createElementBlock("img",{key:0,class:"pdf",src:$_,width:"100%",alt:"img"})):(a.openBlock(),a.createElementBlock("img",{key:1,class:"img",src:R.file_url,width:"100%",alt:"img"},null,8,A_)),R.percent<100?(a.openBlock(),a.createElementBlock("div",T_,[a.createVNode(ii,{percent:R.percent},null,8,["percent"])])):(a.openBlock(),a.createBlock(h_,{key:3,class:"close",onClick:a.withModifiers(Oe=>k(ye),["stop"])},null,8,["onClick"]))]))),128)),l.value.length<4?(a.openBlock(),a.createElementBlock("div",{key:0,class:"file_add",onClick:a.withModifiers(v,["stop"])},[a.createVNode(c_)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"file_close",onClick:a.withModifiers(h,["stop"])},[a.createVNode(ea)])])],2),a.createElementVNode("div",S_,[a.withDirectives(a.createElementVNode("textarea",{"onUpdate:modelValue":W[0]||(W[0]=R=>p.value=R),ref_key:"txtEle",ref:u,class:"input",rows:"1",placeholder:e.defMsg.placeholder,onInput:m,onKeyup:a.withKeys(D,["enter"]),onFocus:z,onBlur:ae},null,40,I_),[[a.vModelText,p.value]]),a.createElementVNode("div",O_,[a.createElementVNode("div",{class:"btn",onClick:a.withModifiers(D,["stop"])},[e.isReq==="00"?(a.openBlock(),a.createBlock(X1,{key:0,style:a.normalizeStyle({color:p.value?"#039938":"#ccc"})},null,8,["style"])):(a.openBlock(),a.createBlock(k_,{key:1,bg:_.value.bg,color:_.value.color},null,8,["bg","color"]))])])])])]),a.createElementVNode("div",L_,[a.createElementVNode("input",{ref_key:"captureInput",ref:i,type:"file",accept:"image/*",capture:"environment",style:{display:"none"},onChange:N},null,544),a.createElementVNode("input",{ref_key:"uploadInput",ref:o,type:"file",accept:"image/*,application/pdf",style:{display:"none"},onChange:g},null,544),(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(r,R=>a.createElementVNode("div",{key:R.type,class:"card",onClick:a.withModifiers(v,["stop"])},[a.createElementVNode("div",F_,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(R.icon)))]),a.createElementVNode("div",M_,a.toDisplayString(R.name),1)])),64)),a.createVNode(ii,{percent:15})]),a.createElementVNode("div",P_,a.toDisplayString(e.defMsg.aiTips),1)]))}},[["__scopeId","data-v-53ffcfe8"]]),V_={},R_={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"1em",height:"1em"};function j_(e,t){return a.openBlock(),a.createElementBlock("svg",R_,t[0]||(t[0]=[a.createElementVNode("path",{d:"M395.21518 513.604544l323.135538-312.373427c19.052938-18.416442 19.052938-48.273447 0-66.660212-19.053961-18.416442-49.910737-18.416442-68.964698 0L291.75176 480.290811c-19.052938 18.416442-19.052938 48.273447 0 66.660212l357.633237 345.688183c9.525957 9.207709 22.01234 13.796214 34.497699 13.796214 12.485359 0 24.971741-4.588505 34.466999-13.82896 19.052938-18.416442 19.052938-48.242747 0-66.660212L395.21518 513.604544z",fill:"currentColor"},null,-1)]))}const z_=ge(V_,[["render",j_]]),U_={},q_={width:"1.5em",height:"1em",viewBox:"0 0 440 440",xmlns:"http://www.w3.org/2000/svg"};function H_(e,t){return a.openBlock(),a.createElementBlock("svg",q_,t[0]||(t[0]=[a.createStaticVNode('<circle id="ballA" cx="220" cy="220" r="50" fill="rgba(0,0,0,0.8)" opacity="0.1"><animate attributeName="cx" values="220; 40; 220; 400; 220" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1"></animate><animate attributeName="r" values="50; 80; 100; 80; 50" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1"></animate><animate attributeName="opacity" values="0.1; 0.6; 1; 0.6; 0.1" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4"></animate></circle><circle id="ballB" cx="220" cy="220" r="100" fill="rgba(0,0,0,0.8)" opacity="1"><animate attributeName="cx" values="220; 400; 220; 40; 220" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1"></animate><animate attributeName="r" values="100; 80; 50; 80; 100" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1"></animate><animate attributeName="opacity" values="1; 0.6; 0.1; 0.6; 1" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4"></animate></circle>',2)]))}const W_=ge(U_,[["render",H_]]),Y_=["src","alt"],G_="https://prodstatic.weis1606.cn/api/smartFood/icon/pdf_icon.png",X_=ge({__name:"imgeList",props:{list:{type:Array,required:!0}},setup(e){const t=e,n=()=>{const u=t.list.filter(o=>o.type==="image"&&o.file_url);u.length&&In({images:u.map(o=>o.file_url)})},r=({type:u,name:o,file_url:i})=>{console.log(t.list);let s=i;return u==="file"&&o.toLowerCase().endsWith("pdf")&&(s=G_),s};return(u,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["img_wrap",e.list.length>1?"grid_2":"grid_1"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.list,i=>(a.openBlock(),a.createElementBlock("img",{key:i.file_id,class:"img",width:"100%",src:r(i),alt:i.name,onClick:a.withModifiers(n,["stop"])},null,8,Y_))),128))],2))}},[["__scopeId","data-v-da7f1fd0"]]),Z_={},K_={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J_(e,t){return a.openBlock(),a.createElementBlock("svg",K_,t[0]||(t[0]=[a.createElementVNode("path",{d:"M18.3752 6.19542C18.3663 5.84188 18.0971 5.61907 17.7113 5.62719C17.3249 5.63532 17.1259 5.87105 17.0624 6.22473C17.0295 6.40814 17.0401 6.60002 17.0382 6.78818C17.0349 7.1092 17.0373 7.43028 17.0373 7.75135C16.9871 7.77411 16.9369 7.79688 16.8867 7.81966C16.7181 7.65766 16.5524 7.4926 16.3805 7.33415C14.8317 5.90621 12.9939 5.37461 10.9359 5.69056C8.03017 6.13662 5.87726 8.55583 5.62463 11.5758C5.38764 14.4087 7.21523 17.1459 9.95849 18.0667C12.7336 18.9982 15.8214 17.914 17.3822 15.4574C17.4827 15.2992 17.5871 15.1369 17.6484 14.962C17.7675 14.6224 17.7077 14.3062 17.3722 14.1247C17.049 13.9499 16.7426 14.0201 16.5131 14.3168C16.3983 14.4652 16.3111 14.6344 16.204 14.7891C15.2363 16.1865 13.907 16.9479 12.206 17.0308C9.92842 17.1419 7.84057 15.6645 7.17679 13.487C6.49124 11.238 7.43946 8.81484 9.46764 7.6327C11.4392 6.48354 13.9702 6.81332 15.5656 8.43366C15.6825 8.55231 15.7612 8.70851 15.9506 8.98094C15.3277 8.98094 14.8482 8.95558 14.3726 8.98836C13.9335 9.01865 13.7009 9.27998 13.7045 9.64685C13.708 10.0041 13.9569 10.2996 14.3795 10.31C15.4824 10.3371 16.5866 10.3273 17.6901 10.3155C18.0536 10.3117 18.3546 10.1036 18.3656 9.74431C18.4019 8.56213 18.4048 7.37778 18.3752 6.19542Z",fill:"currentColor"},[a.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:"1.5s",repeatCount:"indefinite"})],-1)]))}const Q_=ge(Z_,[["render",J_]]),eh={},th={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nh(e,t){return a.openBlock(),a.createElementBlock("svg",th,t[0]||(t[0]=[a.createElementVNode("path",{d:"M3.78271 12C3.78271 13.0792 3.99526 14.1477 4.40822 15.1447C4.82118 16.1416 5.42646 17.0475 6.18951 17.8106C6.95256 18.5736 7.85843 19.1789 8.8554 19.5919C9.85238 20.0048 10.9209 20.2174 12 20.2174C13.0792 20.2174 14.1477 20.0048 15.1447 19.5919C16.1416 19.1789 17.0475 18.5736 17.8106 17.8106C18.5736 17.0475 19.1789 16.1416 19.5919 15.1447C20.0048 14.1477 20.2174 13.0792 20.2174 12C20.2174 10.9209 20.0048 9.85238 19.5919 8.8554C19.1789 7.85843 18.5736 6.95256 17.8106 6.18951C17.0475 5.42646 16.1416 4.82118 15.1447 4.40822C14.1477 3.99526 13.0792 3.78271 12 3.78271C10.9209 3.78271 9.85238 3.99526 8.8554 4.40822C7.85843 4.82118 6.95256 5.42646 6.18951 6.18951C5.42646 6.95256 4.82118 7.85843 4.40822 8.8554C3.99526 9.85238 3.78271 10.9209 3.78271 12Z",fill:"currentColor"},null,-1),a.createElementVNode("path",{d:"M11.0677 14.4192L8.08502 11.4365C7.87938 11.2308 7.54542 11.2308 7.33978 11.4365C7.13414 11.6421 7.13414 11.9761 7.33978 12.1817L10.3225 15.1644C10.5281 15.3701 10.8621 15.3701 11.0677 15.1644C11.2751 14.9605 11.2751 14.6266 11.0677 14.4192Z",fill:"#fff"},null,-1),a.createElementVNode("path",{d:"M16.6693 8.84027C16.4636 8.63462 16.1297 8.63462 15.924 8.84027L10.456 14.31C10.2503 14.5157 10.2503 14.8496 10.456 15.0553C10.6616 15.2609 10.9956 15.2609 11.2012 15.0553L16.6693 9.58727C16.8767 9.37986 16.8767 9.04591 16.6693 8.84027Z",fill:"#fff"},null,-1)]))}const rh=ge(eh,[["render",nh]]),uh={class:"text"},oh=["onClick"],ah=ge({__name:"assistantReplay",props:{content:{type:String,default:""}},setup(e){const t=e,n=a.ref([]),r=a.computed(()=>{const o=/\[([^\]]+)]\((https?:\/\/[^)]+)\)/gi,i=[...t.content.matchAll(o)];let s=t.content,l=0;const c=[];return i.length?(i.forEach((f,d)=>{c.push({type:"text",content:f.input.slice(l,f.index).replace(o,"")}),c.push({type:"link",string:f[0],...JSON.parse(f[0].replace(o,'{"content":"[$1]","url":"$2"}'))}),s=f.input.slice(f.index).replace(f[0],""),l=f.index}),s.length&&c.push({type:"text",content:s})):c.push({type:"text",content:s}),c}),u=({url:o})=>{n.value=[o],In({images:n.value})};return(o,i)=>(a.openBlock(),a.createElementBlock("p",uh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(s,l)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:l},[s.type==="text"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(s.content),1)],64)):a.createCommentVNode("",!0),s.type==="link"?(a.openBlock(),a.createElementBlock("a",{key:1,class:"link",onClick:a.withModifiers(c=>u(s),["stop"])},a.toDisplayString(s.content),9,oh)):a.createCommentVNode("",!0)],64))),128))]))}},[["__scopeId","data-v-9911ed82"]]),ih=e=>{In({images:e})},sh={class:"name"},lh={class:"address"},li="https://prodstatic.weis1606.cn/api/smartFood/images/logo_img.png",ch=ge({__name:"StoreCard",props:{info:{type:Object,required:!0}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,u=()=>{r("select",{type:"chat",content:n.info.hpName,text:n.info.hpName})};return(o,i)=>(a.openBlock(),a.createElementBlock("div",{class:"sc_wrap",onClick:a.withModifiers(u,["stop"])},[a.createElementVNode("div",{class:"img",style:a.normalizeStyle({background:`url(${e.info.signUrl||li}?x-oss-process=image/resize,w_144) no-repeat center`,backgroundSize:"cover"}),onClick:i[0]||(i[0]=a.withModifiers(s=>a.unref(ih)([e.info.signUrl||li]),["stop"]))},null,4),a.createElementVNode("div",null,[a.createElementVNode("div",sh,a.toDisplayString(e.info.hpName),1),a.createElementVNode("div",lh,a.toDisplayString(e.info.address),1)])]))}},[["__scopeId","data-v-fd7bbf0d"]]),fh={__name:"StoreList",props:{list:{type:Array,required:!0}},emits:["select"],setup(e,{emit:t}){const{t:n}=at(),r=t,u=o=>{r("select",{...o})};return(o,i)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,a.toDisplayString(a.unref(n)("msg_obj_store_selectStore")),1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.list,s=>(a.openBlock(),a.createBlock(ch,{key:s.hpName,info:s,onSelect:u},null,8,["info"]))),128))],64))}},ci={};function dh(e){let t=ci[e];if(t)return t;t=ci[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function fn(e,t){typeof t!="string"&&(t=fn.defaultChars);const n=dh(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let u="";for(let o=0,i=r.length;o<i;o+=3){const s=parseInt(r.slice(o+1,o+3),16);if(s<128){u+=n[s];continue}if((s&224)===192&&o+3<i){const l=parseInt(r.slice(o+4,o+6),16);if((l&192)===128){const c=s<<6&1984|l&63;c<128?u+="��":u+=String.fromCharCode(c),o+=3;continue}}if((s&240)===224&&o+6<i){const l=parseInt(r.slice(o+4,o+6),16),c=parseInt(r.slice(o+7,o+9),16);if((l&192)===128&&(c&192)===128){const f=s<<12&61440|l<<6&4032|c&63;f<2048||f>=55296&&f<=57343?u+="���":u+=String.fromCharCode(f),o+=6;continue}}if((s&248)===240&&o+9<i){const l=parseInt(r.slice(o+4,o+6),16),c=parseInt(r.slice(o+7,o+9),16),f=parseInt(r.slice(o+10,o+12),16);if((l&192)===128&&(c&192)===128&&(f&192)===128){let d=s<<18&1835008|l<<12&258048|c<<6&4032|f&63;d<65536||d>1114111?u+="����":(d-=65536,u+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}}u+="�"}return u})}fn.defaultChars=";/?:@&=+$,#",fn.componentChars="";const fi={};function _h(e){let t=fi[e];if(t)return t;t=fi[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function On(e,t,n){typeof t!="string"&&(n=t,t=On.defaultChars),typeof n>"u"&&(n=!0);const r=_h(t);let u="";for(let o=0,i=e.length;o<i;o++){const s=e.charCodeAt(o);if(n&&s===37&&o+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){u+=e.slice(o,o+3),o+=2;continue}if(s<128){u+=r[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<i){const l=e.charCodeAt(o+1);if(l>=56320&&l<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}u+="%EF%BF%BD";continue}u+=encodeURIComponent(e[o])}return u}On.defaultChars=";/?:@&=+$,-_.!~*'()#",On.componentChars="-_.!~*'()";function fu(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function gr(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const hh=/^([a-z0-9.+-]+:)/i,mh=/:[0-9]*$/,ph=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,gh=["<",">",'"',"`"," ","\r",`
|
|
34
|
-
`," "],bh=["{","}","|","\\","^","`"].concat(gh),yh=["'"].concat(bh),di=["%","/","?",";","#"].concat(yh),_i=["/","?","#"],Eh=255,hi=/^[+a-z0-9A-Z_-]{0,63}$/,kh=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,mi={javascript:!0,"javascript:":!0},pi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function du(e,t){if(e&&e instanceof gr)return e;const n=new gr;return n.parse(e,t),n}gr.prototype.parse=function(e,t){let n,r,u,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const c=ph.exec(o);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let i=hh.exec(o);if(i&&(i=i[0],n=i.toLowerCase(),this.protocol=i,o=o.substr(i.length)),(t||i||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u=o.substr(0,2)==="//",u&&!(i&&mi[i])&&(o=o.substr(2),this.slashes=!0)),!mi[i]&&(u||i&&!pi[i])){let c=-1;for(let m=0;m<_i.length;m++)r=o.indexOf(_i[m]),r!==-1&&(c===-1||r<c)&&(c=r);let f,d;c===-1?d=o.lastIndexOf("@"):d=o.lastIndexOf("@",c),d!==-1&&(f=o.slice(0,d),o=o.slice(d+1),this.auth=f),c=-1;for(let m=0;m<di.length;m++)r=o.indexOf(di[m]),r!==-1&&(c===-1||r<c)&&(c=r);c===-1&&(c=o.length),o[c-1]===":"&&c--;const _=o.slice(0,c);o=o.slice(c),this.parseHost(_),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const m=this.hostname.split(/\./);for(let C=0,D=m.length;C<D;C++){const N=m[C];if(N&&!N.match(hi)){let v="";for(let g=0,E=N.length;g<E;g++)N.charCodeAt(g)>127?v+="x":v+=N[g];if(!v.match(hi)){const g=m.slice(0,C),E=m.slice(C+1),w=N.match(kh);w&&(g.push(w[1]),E.unshift(w[2])),E.length&&(o=E.join(".")+o),this.hostname=g.join(".");break}}}}this.hostname.length>Eh&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),pi[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},gr.prototype.parseHost=function(e){let t=mh.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const xh=Object.freeze(Object.defineProperty({__proto__:null,decode:fn,encode:On,format:fu,parse:du},Symbol.toStringTag,{value:"Module"})),gi=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,bi=/[\0-\x1F\x7F-\x9F]/,Ch=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,_u=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,yi=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Ei=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,vh=Object.freeze(Object.defineProperty({__proto__:null,Any:gi,Cc:bi,Cf:Ch,P:_u,S:yi,Z:Ei},Symbol.toStringTag,{value:"Module"})),wh=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Dh=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var hu;const Nh=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Ah=(hu=String.fromCodePoint)!==null&&hu!==void 0?hu:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Th(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Nh.get(e))!==null&&t!==void 0?t:e}var Me;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Me||(Me={}));const Sh=32;var It;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(It||(It={}));function mu(e){return e>=Me.ZERO&&e<=Me.NINE}function Ih(e){return e>=Me.UPPER_A&&e<=Me.UPPER_F||e>=Me.LOWER_A&&e<=Me.LOWER_F}function Oh(e){return e>=Me.UPPER_A&&e<=Me.UPPER_Z||e>=Me.LOWER_A&&e<=Me.LOWER_Z||mu(e)}function Lh(e){return e===Me.EQUALS||Oh(e)}var Pe;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Pe||(Pe={}));var Ot;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ot||(Ot={}));class Fh{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Pe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ot.Strict}startEntity(t){this.decodeMode=t,this.state=Pe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Pe.EntityStart:return t.charCodeAt(n)===Me.NUM?(this.state=Pe.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Pe.NamedEntity,this.stateNamedEntity(t,n));case Pe.NumericStart:return this.stateNumericStart(t,n);case Pe.NumericDecimal:return this.stateNumericDecimal(t,n);case Pe.NumericHex:return this.stateNumericHex(t,n);case Pe.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Sh)===Me.LOWER_X?(this.state=Pe.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Pe.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,u){if(n!==r){const o=r-n;this.result=this.result*Math.pow(u,o)+parseInt(t.substr(n,o),u),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(mu(u)||Ih(u))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(u,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(mu(u))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(u,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Me.SEMI)this.consumed+=1;else if(this.decodeMode===Ot.Strict)return 0;return this.emitCodePoint(Th(this.result),this.consumed),this.errors&&(t!==Me.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let u=r[this.treeIndex],o=(u&It.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const i=t.charCodeAt(n);if(this.treeIndex=Mh(r,u,this.treeIndex+Math.max(1,o),i),this.treeIndex<0)return this.result===0||this.decodeMode===Ot.Attribute&&(o===0||Lh(i))?0:this.emitNotTerminatedNamedEntity();if(u=r[this.treeIndex],o=(u&It.VALUE_LENGTH)>>14,o!==0){if(i===Me.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Ot.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,u=(r[n]&It.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,u,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:u}=this;return this.emitCodePoint(n===1?u[t]&~It.VALUE_LENGTH:u[t+1],r),n===3&&this.emitCodePoint(u[t+2],r),r}end(){var t;switch(this.state){case Pe.NamedEntity:return this.result!==0&&(this.decodeMode!==Ot.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Pe.NumericDecimal:return this.emitNumericEntity(0,2);case Pe.NumericHex:return this.emitNumericEntity(0,3);case Pe.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Pe.EntityStart:return 0}}}function ki(e){let t="";const n=new Fh(e,r=>t+=Ah(r));return function(u,o){let i=0,s=0;for(;(s=u.indexOf("&",s))>=0;){t+=u.slice(i,s),n.startEntity(o);const c=n.write(u,s+1);if(c<0){i=s+n.end();break}i=s+c,s=c===0?i+1:i}const l=t+u.slice(i);return t="",l}}function Mh(e,t,n,r){const u=(t&It.BRANCH_LENGTH)>>7,o=t&It.JUMP_TABLE;if(u===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=u?-1:e[n+l]-1}let i=n,s=i+u-1;for(;i<=s;){const l=i+s>>>1,c=e[l];if(c<r)i=l+1;else if(c>r)s=l-1;else return e[l+u]}return-1}const Ph=ki(wh);ki(Dh);function xi(e,t=Ot.Legacy){return Ph(e,t)}function $h(e){return Object.prototype.toString.call(e)}function pu(e){return $h(e)==="[object String]"}const Bh=Object.prototype.hasOwnProperty;function Vh(e,t){return Bh.call(e,t)}function br(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}function Ci(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function gu(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function yr(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const vi=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Rh=/&([a-z#][a-z0-9]{1,31});/gi,jh=new RegExp(vi.source+"|"+Rh.source,"gi"),zh=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Uh(e,t){if(t.charCodeAt(0)===35&&zh.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return gu(r)?yr(r):e}const n=xi(e);return n!==e?n:e}function qh(e){return e.indexOf("\\")<0?e:e.replace(vi,"$1")}function dn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(jh,function(t,n,r){return n||Uh(t,r)})}const Hh=/[&<>"]/,Wh=/[&<>"]/g,Yh={"&":"&","<":"<",">":">",'"':"""};function Gh(e){return Yh[e]}function Lt(e){return Hh.test(e)?e.replace(Wh,Gh):e}const Xh=/[.?*+^$[\]\\(){}|-]/g;function Zh(e){return e.replace(Xh,"\\$&")}function me(e){switch(e){case 9:case 32:return!0}return!1}function Ln(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Fn(e){return _u.test(e)||yi.test(e)}function Mn(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Er(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Kh=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Ci,assign:br,escapeHtml:Lt,escapeRE:Zh,fromCodePoint:yr,has:Vh,isMdAsciiPunct:Mn,isPunctChar:Fn,isSpace:me,isString:pu,isValidEntityCode:gu,isWhiteSpace:Ln,lib:{mdurl:xh,ucmicro:vh},normalizeReference:Er,unescapeAll:dn,unescapeMd:qh},Symbol.toStringTag,{value:"Module"}));function Jh(e,t,n){let r,u,o,i;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(o=e.src.charCodeAt(e.pos),o===93&&(r--,r===0)){u=!0;break}if(i=e.pos,e.md.inline.skipToken(e),o===91){if(i===e.pos-1)r++;else if(n)return e.pos=l,-1}}let c=-1;return u&&(c=e.pos),e.pos=l,c}function Qh(e,t,n){let r,u=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(u)===60){for(u++;u<n;){if(r=e.charCodeAt(u),r===10||r===60)return o;if(r===62)return o.pos=u+1,o.str=dn(e.slice(t+1,u)),o.ok=!0,o;if(r===92&&u+1<n){u+=2;continue}u++}return o}let i=0;for(;u<n&&(r=e.charCodeAt(u),!(r===32||r<32||r===127));){if(r===92&&u+1<n){if(e.charCodeAt(u+1)===32)break;u+=2;continue}if(r===40&&(i++,i>32))return o;if(r===41){if(i===0)break;i--}u++}return t===u||i!==0||(o.str=dn(e.slice(t,u)),o.pos=u,o.ok=!0),o}function em(e,t,n,r){let u,o=t;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)i.str=r.str,i.marker=r.marker;else{if(o>=n)return i;let s=e.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return i;t++,o++,s===40&&(s=41),i.marker=s}for(;o<n;){if(u=e.charCodeAt(o),u===i.marker)return i.pos=o+1,i.str+=dn(e.slice(t,o)),i.ok=!0,i;if(u===40&&i.marker===41)return i;u===92&&o+1<n&&o++,o++}return i.can_continue=!0,i.str+=dn(e.slice(t,o)),i}const tm=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Qh,parseLinkLabel:Jh,parseLinkTitle:em},Symbol.toStringTag,{value:"Module"})),ht={};ht.code_inline=function(e,t,n,r,u){const o=e[t];return"<code"+u.renderAttrs(o)+">"+Lt(o.content)+"</code>"},ht.code_block=function(e,t,n,r,u){const o=e[t];return"<pre"+u.renderAttrs(o)+"><code>"+Lt(e[t].content)+`</code></pre>
|
|
35
|
-
`},ht.fence=function(e,t,n,r,u){const o=e[t],i=o.info?
|
|
33
|
+
a 45 45 0 1 1 0 -90`,fill:"none",stroke:e.color,"stroke-width":"10","stroke-linecap":"round","stroke-dasharray":n.value.l,"stroke-dashoffset":n.value.p},null,8,a_)],8,u_))}},i_={},s_={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l_(e,t){return a.openBlock(),a.createElementBlock("svg",s_,t[0]||(t[0]=[a.createElementVNode("path",{d:"M13.5 4.5C13.5 3.67157 12.8284 3 12 3C11.1716 3 10.5 3.67157 10.5 4.5L10.5 10.5H4.5C3.67157 10.5 3 11.1716 3 12C3 12.8284 3.67157 13.5 4.5 13.5H10.5L10.5 19.5C10.5 20.3284 11.1716 21 12 21C12.8284 21 13.5 20.3284 13.5 19.5V13.5H19.5C20.3284 13.5 21 12.8284 21 12C21 11.1716 20.3284 10.5 19.5 10.5H13.5V4.5Z",fill:"currentColor"},null,-1)]))}const c_=me(i_,[["render",l_]]),f_={},d_={width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function __(e,t){return a.openBlock(),a.createElementBlock("svg",d_,t[0]||(t[0]=[a.createElementVNode("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5",fill:"black","fill-opacity":"0.5"},null,-1),a.createElementVNode("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5",stroke:"currentColor"},null,-1),a.createElementVNode("path",{d:"M10.8284 6.58588C11.2189 6.19535 11.2189 5.56219 10.8284 5.17167C10.4379 4.78114 9.80471 4.78114 9.41419 5.17167L8 6.58586L6.58581 5.17167C6.19529 4.78114 5.56212 4.78114 5.1716 5.17167C4.78107 5.56219 4.78107 6.19535 5.1716 6.58588L6.58579 8.00007L5.17155 9.41431C4.78103 9.80483 4.78103 10.438 5.17155 10.8285C5.56207 11.219 6.19524 11.219 6.58576 10.8285L8 9.41428L9.41424 10.8285C9.80476 11.219 10.4379 11.219 10.8285 10.8285C11.219 10.438 11.219 9.80483 10.8285 9.41431L9.41421 8.00007L10.8284 6.58588Z",fill:"currentColor"},null,-1)]))}const h_=me(f_,[["render",__]]),m_={},p_={width:"1em",height:"1em",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g_(e,t){return a.openBlock(),a.createElementBlock("svg",p_,t[0]||(t[0]=[a.createElementVNode("path",{d:"M21 7.64355C21 7.09127 21.4477 6.64355 22 6.64355C22.5523 6.64355 23 7.09127 23 7.64355V9.64355H25C25.5523 9.64355 26 10.0913 26 10.6436C26 11.1958 25.5523 11.6436 25 11.6436H23V13.6436C23 14.1958 22.5523 14.6436 22 14.6436C21.4477 14.6436 21 14.1958 21 13.6436V11.6436H19C18.4477 11.6436 18 11.1958 18 10.6436C18 10.0913 18.4477 9.64355 19 9.64355H21V7.64355ZM9 10.6436C9 10.0913 9.44772 9.64355 10 9.64355H16.164C16.7162 9.64355 17.164 9.19584 17.164 8.64355C17.164 8.09127 16.7162 7.64355 16.164 7.64355H10C8.34315 7.64355 7 8.9867 7 10.6436V22.8527C7 24.7723 9.0737 25.9757 10.7403 25.0233L15.035 22.5693C15.1861 22.4829 15.3571 22.4375 15.5311 22.4375H22C23.6569 22.4375 25 21.0944 25 19.4375V16.32C25 15.7677 24.5523 15.32 24 15.32C23.4477 15.32 23 15.7677 23 16.32V19.4375C23 19.9898 22.5523 20.4375 22 20.4375H15.5311C15.009 20.4375 14.496 20.5737 14.0427 20.8328L9.74807 23.2869C9.41474 23.4773 9 23.2366 9 22.8527V10.6436Z",fill:"currentColor"},null,-1)]))}const si=me(m_,[["render",g_]]),b_={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"1em",height:"1em"},y_=["fill"],E_=["fill"],k_={__name:"sendLoadingIcon",props:{color:{type:String,default:"#000"},bg:{type:String,default:"#039938"}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("svg",b_,[a.createElementVNode("circle",{cx:"512",cy:"512",r:"512",fill:e.bg},null,8,y_),a.createElementVNode("path",{fill:e.color,d:"M512.042667 213.333333v74.666667a224 224 0 1 1-195.626667 114.773333l-65.194667-36.394666A298.666667 298.666667 0 1 0 512.042667 213.333333z"},n[0]||(n[0]=[a.createElementVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 512 512",to:"360 512 512",dur:"1.5s",repeatCount:"indefinite",fill:"freeze"},null,-1)]),8,E_)]))}},x_={class:"om_wrap"},C_={class:"om_quick"},v_=["onClick"],w_={class:"om_operate_box"},D_={class:"om_operate_wrap"},N_={class:"file_list"},A_=["src"],T_={key:2,class:"process"},S_={class:"om_operate"},I_=["placeholder"],O_={class:"btn_group"},L_={class:"om_extra",style:{display:"none"}},F_={class:"icon"},M_={class:"text"},P_={class:"om_ai_tips"},$_="https://prodstatic.weis1606.cn/api/smartFood/icon/pdf_icon.png",B_=me({__name:"OperateModule",props:{modelValue:{type:String,default:""},token:{type:String,required:!0},tagList:{type:Array,required:!0},newChat:{type:Boolean,default:!1},defMsg:{type:Object,required:!0},isReq:{type:String,default:"00"}},emits:["update:modelValue","send","tag","call"],setup(e,{emit:t}){const{t:n}=it(),r=[{name:n("msg_obj_operate_photoAlbum"),icon:Q1,type:"photo"},{name:n("msg_obj_operate_file"),icon:r_,type:"file"}],u=a.ref(null),o=a.ref(null),i=a.ref(null),s=a.ref(!1),l=a.ref([]),c=e,f=t,d=a.computed(()=>({headers:{Authorization:`Bearer ${c.token}`,"Content-Type":"multipart/form-data"}}));a.watch(()=>c.modelValue,()=>{B()});const _=a.computed(()=>{switch(c.isReq){case"01":return{bg:"#fff",color:"#ccc"};case"02":return{bg:"#666",color:"#CDEBD7"};case"03":return{bg:"#ccc",color:"#fff"};case"04":return{bg:"#E5F4EB",color:"#fff"}}}),p=a.computed({get:()=>c.modelValue,set:W=>{f("update:modelValue",W),B()}});a.onMounted(()=>{B()}),a.onUnmounted(()=>{u.value&&(u.value.style.height="auto")});const m=W=>{p.value=W.target.value.replace(/^\n+|\n+$/g,"")},x=W=>{W.type==="upload"?w():f("tag",{...W})},D=()=>{if(!p.value)return;if(l.value.length&&l.value.findIndex(q=>q.percent<100)>-1){f("call",{message:c.defMsg.uploadingTips,reason:"is_uploading",value:"toast",type:"call"});return}const W=[{content:p.value,text:p.value}];console.log("====== u file list =======",l.value),l.value.length&&(W.push({type:"object_string",content:l.value.map(q=>({type:j(q.file_type),name:q.file.name,file_id:q.data.id,file_url:q.file_url}))}),s.value=!1),f("send",[...W]),C()},N=W=>{const q=W.target.files[0],Z=new FileReader;Z.onload=()=>previewUrl.value=Z.result,Z.readAsDataURL(q)},v=()=>{o.value&&o.value.click()},g=W=>{const q=W.target.files[0];console.log("=== file ===",W),q&&(l.value.push({file:q,file_type:q.type,file_url:URL.createObjectURL(q),size:(q.size/1024).toFixed(2),percent:0,data:{}}),console.log("=== 文件列表 ===",l.value),E(l.value.length-1))},E=async W=>{const q=l.value[W].file;console.log("========",q),p.value||(p.value=c.defMsg.fileText);const Z=new FormData;Z.append("file",q);const te=new XMLHttpRequest;te.open("POST","https://api.coze.cn/v1/files/upload"),te.setRequestHeader("Authorization",d.value.headers.Authorization),te.upload.onprogress=Pe=>{if(Pe.lengthComputable){const He=Math.round(Pe.loaded/Pe.total*100);console.log(`======进度======:${He}%`),l.value[W].percent=He}},te.onreadystatechange=function(){if(console.log("============",te),te.readyState===XMLHttpRequest.DONE)if(te.status===200){console.log("上传成功:",te.responseText);const Pe=JSON.parse(te.response);l.value[W].data=Pe.data}else console.error("上传失败:",te.status)},te.send(Z)},w=()=>{C(!0),s.value=!0},h=()=>{C(!0),s.value=!1},C=(W=!1)=>{if(W)for(let q=l.value.length-1;q>=0;q-=1)k(q);o.value&&(o.value.value=""),l.value=[]},k=W=>{URL.revokeObjectURL(l.value[W].file_url),l.value.splice(W,1),o.value&&(o.value.value="")},A=()=>{f("call",{type:"new_chat"})},B=()=>{a.nextTick(()=>{u.value&&(u.value.style.height="auto",u.value.style.height=Math.min(u.value.scrollHeight,72)+"px")})},U=()=>{a.nextTick(()=>{window.scrollTo({top:Math.round(.7*window.innerHeight+.5476*window.innerWidth-416.4),behavior:"smooth"})})},j=W=>{if(W.includes("image"))return"image";if(W.includes("application"))return"file";if(W.includes("audio"))return"audio"},ie=()=>{};return(W,q)=>(a.openBlock(),a.createElementBlock("div",x_,[a.createElementVNode("div",C_,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.tagList,Z=>(a.openBlock(),a.createElementBlock("div",{class:"tag",key:Z.value,onClick:a.withModifiers(te=>x(Z),["stop"])},[a.createVNode(H1,{class:"icon"}),a.createTextVNode(" "+a.toDisplayString(Z.name),1)],8,v_))),128))]),a.createElementVNode("div",w_,[e.newChat?(a.openBlock(),a.createElementBlock("div",{key:0,class:"new_chat",onClick:a.withModifiers(A,["stop"])},[a.createVNode(si)])):a.createCommentVNode("",!0),a.createElementVNode("div",D_,[a.createElementVNode("div",{class:a.normalizeClass(["file_list_box",{hidden:!s.value}])},[a.createElementVNode("div",N_,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.value,(Z,te)=>(a.openBlock(),a.createElementBlock("div",{key:te,class:"file_card"},[Z.file_type.toLocaleLowerCase().includes("pdf")?(a.openBlock(),a.createElementBlock("img",{key:0,class:"pdf",src:$_,width:"100%",alt:"img"})):(a.openBlock(),a.createElementBlock("img",{key:1,class:"img",src:Z.file_url,width:"100%",alt:"img"},null,8,A_)),Z.percent<100?(a.openBlock(),a.createElementBlock("div",T_,[a.createVNode(ii,{percent:Z.percent},null,8,["percent"])])):(a.openBlock(),a.createBlock(h_,{key:3,class:"close",onClick:a.withModifiers(Pe=>k(te),["stop"])},null,8,["onClick"]))]))),128)),l.value.length<4?(a.openBlock(),a.createElementBlock("div",{key:0,class:"file_add",onClick:a.withModifiers(v,["stop"])},[a.createVNode(c_)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"file_close",onClick:a.withModifiers(h,["stop"])},[a.createVNode(ea)])])],2),a.createElementVNode("div",S_,[a.withDirectives(a.createElementVNode("textarea",{"onUpdate:modelValue":q[0]||(q[0]=Z=>p.value=Z),ref_key:"txtEle",ref:u,class:"input",rows:"1",placeholder:e.defMsg.placeholder,onInput:m,onKeyup:a.withKeys(D,["enter"]),onFocus:U,onBlur:ie},null,40,I_),[[a.vModelText,p.value]]),a.createElementVNode("div",O_,[a.createElementVNode("div",{class:"btn",onClick:a.withModifiers(D,["stop"])},[e.isReq==="00"?(a.openBlock(),a.createBlock(X1,{key:0,style:a.normalizeStyle({color:p.value?"#039938":"#ccc"})},null,8,["style"])):(a.openBlock(),a.createBlock(k_,{key:1,bg:_.value.bg,color:_.value.color},null,8,["bg","color"]))])])])])]),a.createElementVNode("div",L_,[a.createElementVNode("input",{ref_key:"captureInput",ref:i,type:"file",accept:"image/*",capture:"environment",style:{display:"none"},onChange:N},null,544),a.createElementVNode("input",{ref_key:"uploadInput",ref:o,type:"file",accept:"image/*,application/pdf",style:{display:"none"},onChange:g},null,544),(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(r,Z=>a.createElementVNode("div",{key:Z.type,class:"card",onClick:a.withModifiers(v,["stop"])},[a.createElementVNode("div",F_,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(Z.icon)))]),a.createElementVNode("div",M_,a.toDisplayString(Z.name),1)])),64)),a.createVNode(ii,{percent:15})]),a.createElementVNode("div",P_,a.toDisplayString(e.defMsg.aiTips),1)]))}},[["__scopeId","data-v-53ffcfe8"]]),V_={},R_={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"1em",height:"1em"};function j_(e,t){return a.openBlock(),a.createElementBlock("svg",R_,t[0]||(t[0]=[a.createElementVNode("path",{d:"M395.21518 513.604544l323.135538-312.373427c19.052938-18.416442 19.052938-48.273447 0-66.660212-19.053961-18.416442-49.910737-18.416442-68.964698 0L291.75176 480.290811c-19.052938 18.416442-19.052938 48.273447 0 66.660212l357.633237 345.688183c9.525957 9.207709 22.01234 13.796214 34.497699 13.796214 12.485359 0 24.971741-4.588505 34.466999-13.82896 19.052938-18.416442 19.052938-48.242747 0-66.660212L395.21518 513.604544z",fill:"currentColor"},null,-1)]))}const z_=me(V_,[["render",j_]]),U_={},q_={width:"1.5em",height:"1em",viewBox:"0 0 440 440",xmlns:"http://www.w3.org/2000/svg"};function H_(e,t){return a.openBlock(),a.createElementBlock("svg",q_,t[0]||(t[0]=[a.createStaticVNode('<circle id="ballA" cx="220" cy="220" r="50" fill="rgba(0,0,0,0.8)" opacity="0.1"><animate attributeName="cx" values="220; 40; 220; 400; 220" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1"></animate><animate attributeName="r" values="50; 80; 100; 80; 50" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1"></animate><animate attributeName="opacity" values="0.1; 0.6; 1; 0.6; 0.1" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4"></animate></circle><circle id="ballB" cx="220" cy="220" r="100" fill="rgba(0,0,0,0.8)" opacity="1"><animate attributeName="cx" values="220; 400; 220; 40; 220" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1"></animate><animate attributeName="r" values="100; 80; 50; 80; 100" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1"></animate><animate attributeName="opacity" values="1; 0.6; 0.1; 0.6; 1" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4"></animate></circle>',2)]))}const W_=me(U_,[["render",H_]]),Y_=["src","alt"],G_="https://prodstatic.weis1606.cn/api/smartFood/icon/pdf_icon.png",X_=me({__name:"imgeList",props:{list:{type:Array,required:!0}},setup(e){const t=e,n=()=>{const u=t.list.filter(o=>o.type==="image"&&o.file_url);u.length&&On({images:u.map(o=>o.file_url)})},r=({type:u,name:o,file_url:i})=>{console.log(t.list);let s=i;return u==="file"&&o.toLowerCase().endsWith("pdf")&&(s=G_),s};return(u,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["img_wrap",e.list.length>1?"grid_2":"grid_1"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.list,i=>(a.openBlock(),a.createElementBlock("img",{key:i.file_id,class:"img",width:"100%",src:r(i),alt:i.name,onClick:a.withModifiers(n,["stop"])},null,8,Y_))),128))],2))}},[["__scopeId","data-v-da7f1fd0"]]),Z_={},K_={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J_(e,t){return a.openBlock(),a.createElementBlock("svg",K_,t[0]||(t[0]=[a.createElementVNode("path",{d:"M18.3752 6.19542C18.3663 5.84188 18.0971 5.61907 17.7113 5.62719C17.3249 5.63532 17.1259 5.87105 17.0624 6.22473C17.0295 6.40814 17.0401 6.60002 17.0382 6.78818C17.0349 7.1092 17.0373 7.43028 17.0373 7.75135C16.9871 7.77411 16.9369 7.79688 16.8867 7.81966C16.7181 7.65766 16.5524 7.4926 16.3805 7.33415C14.8317 5.90621 12.9939 5.37461 10.9359 5.69056C8.03017 6.13662 5.87726 8.55583 5.62463 11.5758C5.38764 14.4087 7.21523 17.1459 9.95849 18.0667C12.7336 18.9982 15.8214 17.914 17.3822 15.4574C17.4827 15.2992 17.5871 15.1369 17.6484 14.962C17.7675 14.6224 17.7077 14.3062 17.3722 14.1247C17.049 13.9499 16.7426 14.0201 16.5131 14.3168C16.3983 14.4652 16.3111 14.6344 16.204 14.7891C15.2363 16.1865 13.907 16.9479 12.206 17.0308C9.92842 17.1419 7.84057 15.6645 7.17679 13.487C6.49124 11.238 7.43946 8.81484 9.46764 7.6327C11.4392 6.48354 13.9702 6.81332 15.5656 8.43366C15.6825 8.55231 15.7612 8.70851 15.9506 8.98094C15.3277 8.98094 14.8482 8.95558 14.3726 8.98836C13.9335 9.01865 13.7009 9.27998 13.7045 9.64685C13.708 10.0041 13.9569 10.2996 14.3795 10.31C15.4824 10.3371 16.5866 10.3273 17.6901 10.3155C18.0536 10.3117 18.3546 10.1036 18.3656 9.74431C18.4019 8.56213 18.4048 7.37778 18.3752 6.19542Z",fill:"currentColor"},[a.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:"1.5s",repeatCount:"indefinite"})],-1)]))}const Q_=me(Z_,[["render",J_]]),eh={},th={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nh(e,t){return a.openBlock(),a.createElementBlock("svg",th,t[0]||(t[0]=[a.createElementVNode("path",{d:"M3.78271 12C3.78271 13.0792 3.99526 14.1477 4.40822 15.1447C4.82118 16.1416 5.42646 17.0475 6.18951 17.8106C6.95256 18.5736 7.85843 19.1789 8.8554 19.5919C9.85238 20.0048 10.9209 20.2174 12 20.2174C13.0792 20.2174 14.1477 20.0048 15.1447 19.5919C16.1416 19.1789 17.0475 18.5736 17.8106 17.8106C18.5736 17.0475 19.1789 16.1416 19.5919 15.1447C20.0048 14.1477 20.2174 13.0792 20.2174 12C20.2174 10.9209 20.0048 9.85238 19.5919 8.8554C19.1789 7.85843 18.5736 6.95256 17.8106 6.18951C17.0475 5.42646 16.1416 4.82118 15.1447 4.40822C14.1477 3.99526 13.0792 3.78271 12 3.78271C10.9209 3.78271 9.85238 3.99526 8.8554 4.40822C7.85843 4.82118 6.95256 5.42646 6.18951 6.18951C5.42646 6.95256 4.82118 7.85843 4.40822 8.8554C3.99526 9.85238 3.78271 10.9209 3.78271 12Z",fill:"currentColor"},null,-1),a.createElementVNode("path",{d:"M11.0677 14.4192L8.08502 11.4365C7.87938 11.2308 7.54542 11.2308 7.33978 11.4365C7.13414 11.6421 7.13414 11.9761 7.33978 12.1817L10.3225 15.1644C10.5281 15.3701 10.8621 15.3701 11.0677 15.1644C11.2751 14.9605 11.2751 14.6266 11.0677 14.4192Z",fill:"#fff"},null,-1),a.createElementVNode("path",{d:"M16.6693 8.84027C16.4636 8.63462 16.1297 8.63462 15.924 8.84027L10.456 14.31C10.2503 14.5157 10.2503 14.8496 10.456 15.0553C10.6616 15.2609 10.9956 15.2609 11.2012 15.0553L16.6693 9.58727C16.8767 9.37986 16.8767 9.04591 16.6693 8.84027Z",fill:"#fff"},null,-1)]))}const rh=me(eh,[["render",nh]]),uh={class:"text"},oh=["onClick"],ah=me({__name:"assistantReplay",props:{content:{type:String,default:""}},setup(e){const t=e,n=a.ref([]),r=a.computed(()=>{const o=/\[([^\]]+)]\((https?:\/\/[^)]+)\)/gi,i=[...t.content.matchAll(o)];let s=t.content,l=0;const c=[];return i.length?(i.forEach((f,d)=>{c.push({type:"text",content:f.input.slice(l,f.index).replace(o,"")}),c.push({type:"link",string:f[0],...JSON.parse(f[0].replace(o,'{"content":"[$1]","url":"$2"}'))}),s=f.input.slice(f.index).replace(f[0],""),l=f.index}),s.length&&c.push({type:"text",content:s})):c.push({type:"text",content:s}),c}),u=({url:o})=>{n.value=[o],On({images:n.value})};return(o,i)=>(a.openBlock(),a.createElementBlock("p",uh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(s,l)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:l},[s.type==="text"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(s.content),1)],64)):a.createCommentVNode("",!0),s.type==="link"?(a.openBlock(),a.createElementBlock("a",{key:1,class:"link",onClick:a.withModifiers(c=>u(s),["stop"])},a.toDisplayString(s.content),9,oh)):a.createCommentVNode("",!0)],64))),128))]))}},[["__scopeId","data-v-9911ed82"]]),ih=e=>{On({images:e})},sh={class:"name"},lh={class:"address"},li="https://prodstatic.weis1606.cn/api/smartFood/images/logo_img.png",ch=me({__name:"StoreCard",props:{info:{type:Object,required:!0}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,u=()=>{r("select",{type:"chat",content:n.info.hpName,text:n.info.hpName})};return(o,i)=>(a.openBlock(),a.createElementBlock("div",{class:"sc_wrap",onClick:a.withModifiers(u,["stop"])},[a.createElementVNode("div",{class:"img",style:a.normalizeStyle({background:`url(${e.info.signUrl||li}?x-oss-process=image/resize,w_144) no-repeat center`,backgroundSize:"cover"}),onClick:i[0]||(i[0]=a.withModifiers(s=>a.unref(ih)([e.info.signUrl||li]),["stop"]))},null,4),a.createElementVNode("div",null,[a.createElementVNode("div",sh,a.toDisplayString(e.info.hpName),1),a.createElementVNode("div",lh,a.toDisplayString(e.info.address),1)])]))}},[["__scopeId","data-v-fd7bbf0d"]]),fh={__name:"StoreList",props:{list:{type:Array,required:!0}},emits:["select"],setup(e,{emit:t}){const{t:n}=it(),r=t,u=o=>{r("select",{...o})};return(o,i)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,a.toDisplayString(a.unref(n)("msg_obj_store_selectStore")),1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.list,s=>(a.openBlock(),a.createBlock(ch,{key:s.hpName,info:s,onSelect:u},null,8,["info"]))),128))],64))}},ci={};function dh(e){let t=ci[e];if(t)return t;t=ci[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function dn(e,t){typeof t!="string"&&(t=dn.defaultChars);const n=dh(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let u="";for(let o=0,i=r.length;o<i;o+=3){const s=parseInt(r.slice(o+1,o+3),16);if(s<128){u+=n[s];continue}if((s&224)===192&&o+3<i){const l=parseInt(r.slice(o+4,o+6),16);if((l&192)===128){const c=s<<6&1984|l&63;c<128?u+="��":u+=String.fromCharCode(c),o+=3;continue}}if((s&240)===224&&o+6<i){const l=parseInt(r.slice(o+4,o+6),16),c=parseInt(r.slice(o+7,o+9),16);if((l&192)===128&&(c&192)===128){const f=s<<12&61440|l<<6&4032|c&63;f<2048||f>=55296&&f<=57343?u+="���":u+=String.fromCharCode(f),o+=6;continue}}if((s&248)===240&&o+9<i){const l=parseInt(r.slice(o+4,o+6),16),c=parseInt(r.slice(o+7,o+9),16),f=parseInt(r.slice(o+10,o+12),16);if((l&192)===128&&(c&192)===128&&(f&192)===128){let d=s<<18&1835008|l<<12&258048|c<<6&4032|f&63;d<65536||d>1114111?u+="����":(d-=65536,u+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}}u+="�"}return u})}dn.defaultChars=";/?:@&=+$,#",dn.componentChars="";const fi={};function _h(e){let t=fi[e];if(t)return t;t=fi[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Ln(e,t,n){typeof t!="string"&&(n=t,t=Ln.defaultChars),typeof n>"u"&&(n=!0);const r=_h(t);let u="";for(let o=0,i=e.length;o<i;o++){const s=e.charCodeAt(o);if(n&&s===37&&o+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){u+=e.slice(o,o+3),o+=2;continue}if(s<128){u+=r[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<i){const l=e.charCodeAt(o+1);if(l>=56320&&l<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}u+="%EF%BF%BD";continue}u+=encodeURIComponent(e[o])}return u}Ln.defaultChars=";/?:@&=+$,-_.!~*'()#",Ln.componentChars="-_.!~*'()";function fu(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function gr(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const hh=/^([a-z0-9.+-]+:)/i,mh=/:[0-9]*$/,ph=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,gh=["<",">",'"',"`"," ","\r",`
|
|
34
|
+
`," "],bh=["{","}","|","\\","^","`"].concat(gh),yh=["'"].concat(bh),di=["%","/","?",";","#"].concat(yh),_i=["/","?","#"],Eh=255,hi=/^[+a-z0-9A-Z_-]{0,63}$/,kh=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,mi={javascript:!0,"javascript:":!0},pi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function du(e,t){if(e&&e instanceof gr)return e;const n=new gr;return n.parse(e,t),n}gr.prototype.parse=function(e,t){let n,r,u,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const c=ph.exec(o);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let i=hh.exec(o);if(i&&(i=i[0],n=i.toLowerCase(),this.protocol=i,o=o.substr(i.length)),(t||i||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u=o.substr(0,2)==="//",u&&!(i&&mi[i])&&(o=o.substr(2),this.slashes=!0)),!mi[i]&&(u||i&&!pi[i])){let c=-1;for(let m=0;m<_i.length;m++)r=o.indexOf(_i[m]),r!==-1&&(c===-1||r<c)&&(c=r);let f,d;c===-1?d=o.lastIndexOf("@"):d=o.lastIndexOf("@",c),d!==-1&&(f=o.slice(0,d),o=o.slice(d+1),this.auth=f),c=-1;for(let m=0;m<di.length;m++)r=o.indexOf(di[m]),r!==-1&&(c===-1||r<c)&&(c=r);c===-1&&(c=o.length),o[c-1]===":"&&c--;const _=o.slice(0,c);o=o.slice(c),this.parseHost(_),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const m=this.hostname.split(/\./);for(let x=0,D=m.length;x<D;x++){const N=m[x];if(N&&!N.match(hi)){let v="";for(let g=0,E=N.length;g<E;g++)N.charCodeAt(g)>127?v+="x":v+=N[g];if(!v.match(hi)){const g=m.slice(0,x),E=m.slice(x+1),w=N.match(kh);w&&(g.push(w[1]),E.unshift(w[2])),E.length&&(o=E.join(".")+o),this.hostname=g.join(".");break}}}}this.hostname.length>Eh&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),pi[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},gr.prototype.parseHost=function(e){let t=mh.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const xh=Object.freeze(Object.defineProperty({__proto__:null,decode:dn,encode:Ln,format:fu,parse:du},Symbol.toStringTag,{value:"Module"})),gi=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,bi=/[\0-\x1F\x7F-\x9F]/,Ch=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,_u=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,yi=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Ei=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,vh=Object.freeze(Object.defineProperty({__proto__:null,Any:gi,Cc:bi,Cf:Ch,P:_u,S:yi,Z:Ei},Symbol.toStringTag,{value:"Module"})),wh=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Dh=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var hu;const Nh=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Ah=(hu=String.fromCodePoint)!==null&&hu!==void 0?hu:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Th(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Nh.get(e))!==null&&t!==void 0?t:e}var Ie;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ie||(Ie={}));const Sh=32;var It;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(It||(It={}));function mu(e){return e>=Ie.ZERO&&e<=Ie.NINE}function Ih(e){return e>=Ie.UPPER_A&&e<=Ie.UPPER_F||e>=Ie.LOWER_A&&e<=Ie.LOWER_F}function Oh(e){return e>=Ie.UPPER_A&&e<=Ie.UPPER_Z||e>=Ie.LOWER_A&&e<=Ie.LOWER_Z||mu(e)}function Lh(e){return e===Ie.EQUALS||Oh(e)}var Oe;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Oe||(Oe={}));var Ot;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ot||(Ot={}));class Fh{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Oe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ot.Strict}startEntity(t){this.decodeMode=t,this.state=Oe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Oe.EntityStart:return t.charCodeAt(n)===Ie.NUM?(this.state=Oe.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Oe.NamedEntity,this.stateNamedEntity(t,n));case Oe.NumericStart:return this.stateNumericStart(t,n);case Oe.NumericDecimal:return this.stateNumericDecimal(t,n);case Oe.NumericHex:return this.stateNumericHex(t,n);case Oe.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Sh)===Ie.LOWER_X?(this.state=Oe.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Oe.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,u){if(n!==r){const o=r-n;this.result=this.result*Math.pow(u,o)+parseInt(t.substr(n,o),u),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(mu(u)||Ih(u))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(u,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(mu(u))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(u,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ie.SEMI)this.consumed+=1;else if(this.decodeMode===Ot.Strict)return 0;return this.emitCodePoint(Th(this.result),this.consumed),this.errors&&(t!==Ie.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let u=r[this.treeIndex],o=(u&It.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const i=t.charCodeAt(n);if(this.treeIndex=Mh(r,u,this.treeIndex+Math.max(1,o),i),this.treeIndex<0)return this.result===0||this.decodeMode===Ot.Attribute&&(o===0||Lh(i))?0:this.emitNotTerminatedNamedEntity();if(u=r[this.treeIndex],o=(u&It.VALUE_LENGTH)>>14,o!==0){if(i===Ie.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Ot.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,u=(r[n]&It.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,u,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:u}=this;return this.emitCodePoint(n===1?u[t]&~It.VALUE_LENGTH:u[t+1],r),n===3&&this.emitCodePoint(u[t+2],r),r}end(){var t;switch(this.state){case Oe.NamedEntity:return this.result!==0&&(this.decodeMode!==Ot.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Oe.NumericDecimal:return this.emitNumericEntity(0,2);case Oe.NumericHex:return this.emitNumericEntity(0,3);case Oe.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Oe.EntityStart:return 0}}}function ki(e){let t="";const n=new Fh(e,r=>t+=Ah(r));return function(u,o){let i=0,s=0;for(;(s=u.indexOf("&",s))>=0;){t+=u.slice(i,s),n.startEntity(o);const c=n.write(u,s+1);if(c<0){i=s+n.end();break}i=s+c,s=c===0?i+1:i}const l=t+u.slice(i);return t="",l}}function Mh(e,t,n,r){const u=(t&It.BRANCH_LENGTH)>>7,o=t&It.JUMP_TABLE;if(u===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=u?-1:e[n+l]-1}let i=n,s=i+u-1;for(;i<=s;){const l=i+s>>>1,c=e[l];if(c<r)i=l+1;else if(c>r)s=l-1;else return e[l+u]}return-1}const Ph=ki(wh);ki(Dh);function xi(e,t=Ot.Legacy){return Ph(e,t)}function $h(e){return Object.prototype.toString.call(e)}function pu(e){return $h(e)==="[object String]"}const Bh=Object.prototype.hasOwnProperty;function Vh(e,t){return Bh.call(e,t)}function br(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}function Ci(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function gu(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function yr(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const vi=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Rh=/&([a-z#][a-z0-9]{1,31});/gi,jh=new RegExp(vi.source+"|"+Rh.source,"gi"),zh=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Uh(e,t){if(t.charCodeAt(0)===35&&zh.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return gu(r)?yr(r):e}const n=xi(e);return n!==e?n:e}function qh(e){return e.indexOf("\\")<0?e:e.replace(vi,"$1")}function _n(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(jh,function(t,n,r){return n||Uh(t,r)})}const Hh=/[&<>"]/,Wh=/[&<>"]/g,Yh={"&":"&","<":"<",">":">",'"':"""};function Gh(e){return Yh[e]}function Lt(e){return Hh.test(e)?e.replace(Wh,Gh):e}const Xh=/[.?*+^$[\]\\(){}|-]/g;function Zh(e){return e.replace(Xh,"\\$&")}function ge(e){switch(e){case 9:case 32:return!0}return!1}function Fn(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Mn(e){return _u.test(e)||yi.test(e)}function Pn(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Er(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Kh=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Ci,assign:br,escapeHtml:Lt,escapeRE:Zh,fromCodePoint:yr,has:Vh,isMdAsciiPunct:Pn,isPunctChar:Mn,isSpace:ge,isString:pu,isValidEntityCode:gu,isWhiteSpace:Fn,lib:{mdurl:xh,ucmicro:vh},normalizeReference:Er,unescapeAll:_n,unescapeMd:qh},Symbol.toStringTag,{value:"Module"}));function Jh(e,t,n){let r,u,o,i;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(o=e.src.charCodeAt(e.pos),o===93&&(r--,r===0)){u=!0;break}if(i=e.pos,e.md.inline.skipToken(e),o===91){if(i===e.pos-1)r++;else if(n)return e.pos=l,-1}}let c=-1;return u&&(c=e.pos),e.pos=l,c}function Qh(e,t,n){let r,u=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(u)===60){for(u++;u<n;){if(r=e.charCodeAt(u),r===10||r===60)return o;if(r===62)return o.pos=u+1,o.str=_n(e.slice(t+1,u)),o.ok=!0,o;if(r===92&&u+1<n){u+=2;continue}u++}return o}let i=0;for(;u<n&&(r=e.charCodeAt(u),!(r===32||r<32||r===127));){if(r===92&&u+1<n){if(e.charCodeAt(u+1)===32)break;u+=2;continue}if(r===40&&(i++,i>32))return o;if(r===41){if(i===0)break;i--}u++}return t===u||i!==0||(o.str=_n(e.slice(t,u)),o.pos=u,o.ok=!0),o}function em(e,t,n,r){let u,o=t;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)i.str=r.str,i.marker=r.marker;else{if(o>=n)return i;let s=e.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return i;t++,o++,s===40&&(s=41),i.marker=s}for(;o<n;){if(u=e.charCodeAt(o),u===i.marker)return i.pos=o+1,i.str+=_n(e.slice(t,o)),i.ok=!0,i;if(u===40&&i.marker===41)return i;u===92&&o+1<n&&o++,o++}return i.can_continue=!0,i.str+=_n(e.slice(t,o)),i}const tm=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Qh,parseLinkLabel:Jh,parseLinkTitle:em},Symbol.toStringTag,{value:"Module"})),ht={};ht.code_inline=function(e,t,n,r,u){const o=e[t];return"<code"+u.renderAttrs(o)+">"+Lt(o.content)+"</code>"},ht.code_block=function(e,t,n,r,u){const o=e[t];return"<pre"+u.renderAttrs(o)+"><code>"+Lt(e[t].content)+`</code></pre>
|
|
35
|
+
`},ht.fence=function(e,t,n,r,u){const o=e[t],i=o.info?_n(o.info).trim():"";let s="",l="";if(i){const f=i.split(/(\s+)/g);s=f[0],l=f.slice(2).join("")}let c;if(n.highlight?c=n.highlight(o.content,s,l)||Lt(o.content):c=Lt(o.content),c.indexOf("<pre")===0)return c+`
|
|
36
36
|
`;if(i){const f=o.attrIndex("class"),d=o.attrs?o.attrs.slice():[];f<0?d.push(["class",n.langPrefix+s]):(d[f]=d[f].slice(),d[f][1]+=" "+n.langPrefix+s);const _={attrs:d};return`<pre><code${u.renderAttrs(_)}>${c}</code></pre>
|
|
37
37
|
`}return`<pre><code${u.renderAttrs(o)}>${c}</code></pre>
|
|
38
38
|
`},ht.image=function(e,t,n,r,u){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=u.renderInlineAsText(o.children,n,r),u.renderToken(e,t,n)},ht.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
@@ -40,12 +40,12 @@ ${c}`:l)}else throw i},onCacheKey:i=>Is(t,n,i)}}function hc(e){if(M(e))return e;
|
|
|
40
40
|
`},ht.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
41
41
|
`:`<br>
|
|
42
42
|
`:`
|
|
43
|
-
`},ht.text=function(e,t){return Lt(e[t].content)},ht.html_block=function(e,t){return e[t].content},ht.html_inline=function(e,t){return e[t].content};function
|
|
43
|
+
`},ht.text=function(e,t){return Lt(e[t].content)},ht.html_block=function(e,t){return e[t].content},ht.html_inline=function(e,t){return e[t].content};function hn(){this.rules=br({},ht)}hn.prototype.renderAttrs=function(t){let n,r,u;if(!t.attrs)return"";for(u="",n=0,r=t.attrs.length;n<r;n++)u+=" "+Lt(t.attrs[n][0])+'="'+Lt(t.attrs[n][1])+'"';return u},hn.prototype.renderToken=function(t,n,r){const u=t[n];let o="";if(u.hidden)return"";u.block&&u.nesting!==-1&&n&&t[n-1].hidden&&(o+=`
|
|
44
44
|
`),o+=(u.nesting===-1?"</":"<")+u.tag,o+=this.renderAttrs(u),u.nesting===0&&r.xhtmlOut&&(o+=" /");let i=!1;if(u.block&&(i=!0,u.nesting===1&&n+1<t.length)){const s=t[n+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===u.tag)&&(i=!1)}return o+=i?`>
|
|
45
|
-
`:">",o},
|
|
46
|
-
`;break}return r},
|
|
47
|
-
`),t=t.replace(rm,"�"),e.src=t}function om(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function am(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const u=t[n];u.type==="inline"&&e.md.inline.parse(u.content,e.md,e.env,u.children)}}function im(e){return/^<a[>\s]/i.test(e)}function sm(e){return/^<\/a\s*>/i.test(e)}function lm(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let u=t[n].children,o=0;for(let i=u.length-1;i>=0;i--){const s=u[i];if(s.type==="link_close"){for(i--;u[i].level!==s.level&&u[i].type!=="link_open";)i--;continue}if(s.type==="html_inline"&&(im(s.content)&&o>0&&o--,sm(s.content)&&o++),!(o>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const l=s.content;let c=e.md.linkify.match(l);const f=[];let d=s.level,_=0;c.length>0&&c[0].index===0&&i>0&&u[i-1].type==="text_special"&&(c=c.slice(1));for(let p=0;p<c.length;p++){const m=c[p].url,C=e.md.normalizeLink(m);if(!e.md.validateLink(C))continue;let D=c[p].text;c[p].schema?c[p].schema==="mailto:"&&!/^mailto:/i.test(D)?D=e.md.normalizeLinkText("mailto:"+D).replace(/^mailto:/,""):D=e.md.normalizeLinkText(D):D=e.md.normalizeLinkText("http://"+D).replace(/^http:\/\//,"");const N=c[p].index;if(N>_){const w=new e.Token("text","",0);w.content=l.slice(_,N),w.level=d,f.push(w)}const v=new e.Token("link_open","a",1);v.attrs=[["href",C]],v.level=d++,v.markup="linkify",v.info="auto",f.push(v);const g=new e.Token("text","",0);g.content=D,g.level=d,f.push(g);const E=new e.Token("link_close","a",-1);E.level=--d,E.markup="linkify",E.info="auto",f.push(E),_=c[p].lastIndex}if(_<l.length){const p=new e.Token("text","",0);p.content=l.slice(_),p.level=d,f.push(p)}t[n].children=u=Ci(u,i,f)}}}}const Di=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,cm=/\((c|tm|r)\)/i,fm=/\((c|tm|r)\)/ig,dm={c:"©",r:"®",tm:"™"};function _m(e,t){return dm[t.toLowerCase()]}function hm(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(fm,_m)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function mm(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&Di.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function pm(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(cm.test(e.tokens[t].content)&&hm(e.tokens[t].children),Di.test(e.tokens[t].content)&&mm(e.tokens[t].children))}const gm=/['"]/,Ni=/['"]/g,Ai="’";function kr(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function bm(e,t){let n;const r=[];for(let u=0;u<e.length;u++){const o=e[u],i=e[u].level;for(n=r.length-1;n>=0&&!(r[n].level<=i);n--);if(r.length=n+1,o.type!=="text")continue;let s=o.content,l=0,c=s.length;e:for(;l<c;){Ni.lastIndex=l;const f=Ni.exec(s);if(!f)break;let d=!0,_=!0;l=f.index+1;const p=f[0]==="'";let m=32;if(f.index-1>=0)m=s.charCodeAt(f.index-1);else for(n=u-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let C=32;if(l<c)C=s.charCodeAt(l);else for(n=u+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){C=e[n].content.charCodeAt(0);break}const D=Mn(m)||Fn(String.fromCharCode(m)),N=Mn(C)||Fn(String.fromCharCode(C)),v=Ln(m),g=Ln(C);if(g?d=!1:N&&(v||D||(d=!1)),v?_=!1:D&&(g||N||(_=!1)),C===34&&f[0]==='"'&&m>=48&&m<=57&&(_=d=!1),d&&_&&(d=D,_=N),!d&&!_){p&&(o.content=kr(o.content,f.index,Ai));continue}if(_)for(n=r.length-1;n>=0;n--){let E=r[n];if(r[n].level<i)break;if(E.single===p&&r[n].level===i){E=r[n];let w,h;p?(w=t.md.options.quotes[2],h=t.md.options.quotes[3]):(w=t.md.options.quotes[0],h=t.md.options.quotes[1]),o.content=kr(o.content,f.index,h),e[E.token].content=kr(e[E.token].content,E.pos,w),l+=h.length-1,E.token===u&&(l+=w.length-1),s=o.content,c=s.length,r.length=n;continue e}}d?r.push({token:u,pos:f.index,single:p,level:i}):_&&p&&(o.content=kr(o.content,f.index,Ai))}}}function ym(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!gm.test(e.tokens[t].content)||bm(e.tokens[t].children,e)}function Em(e){let t,n;const r=e.tokens,u=r.length;for(let o=0;o<u;o++){if(r[o].type!=="inline")continue;const i=r[o].children,s=i.length;for(t=0;t<s;t++)i[t].type==="text_special"&&(i[t].type="text");for(t=n=0;t<s;t++)i[t].type==="text"&&t+1<s&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}const bu=[["normalize",um],["block",om],["inline",am],["linkify",lm],["replacements",pm],["smartquotes",ym],["text_join",Em]];function yu(){this.ruler=new He;for(let e=0;e<bu.length;e++)this.ruler.push(bu[e][0],bu[e][1])}yu.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},yu.prototype.State=wi;function mt(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const u=this.src;for(let o=0,i=0,s=0,l=0,c=u.length,f=!1;i<c;i++){const d=u.charCodeAt(i);if(!f)if(me(d)){s++,d===9?l+=4-l%4:l++;continue}else f=!0;(d===10||i===c-1)&&(d!==10&&i++,this.bMarks.push(o),this.eMarks.push(i),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),f=!1,s=0,l=0,o=i+1)}this.bMarks.push(u.length),this.eMarks.push(u.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}mt.prototype.push=function(e,t,n){const r=new lt(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},mt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},mt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},mt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!me(r))break}return t},mt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!me(this.src.charCodeAt(--t)))return t+1;return t},mt.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t},mt.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t},mt.prototype.getLines=function(t,n,r,u){if(t>=n)return"";const o=new Array(n-t);for(let i=0,s=t;s<n;s++,i++){let l=0;const c=this.bMarks[s];let f=c,d;for(s+1<n||u?d=this.eMarks[s]+1:d=this.eMarks[s];f<d&&l<r;){const _=this.src.charCodeAt(f);if(me(_))_===9?l+=4-(l+this.bsCount[s])%4:l++;else if(f-c<this.tShift[s])l++;else break;f++}l>r?o[i]=new Array(l-r+1).join(" ")+this.src.slice(f,d):o[i]=this.src.slice(f,d)}return o.join("")},mt.prototype.Token=lt;const km=65536;function Eu(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Ti(e){const t=[],n=e.length;let r=0,u=e.charCodeAt(r),o=!1,i=0,s="";for(;r<n;)u===124&&(o?(s+=e.substring(i,r-1),i=r):(t.push(s+e.substring(i,r)),s="",i=r+1)),o=u===92,r++,u=e.charCodeAt(r);return t.push(s+e.substring(i)),t}function xm(e,t,n,r){if(t+2>n)return!1;let u=t+1;if(e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)return!1;let o=e.bMarks[u]+e.tShift[u];if(o>=e.eMarks[u])return!1;const i=e.src.charCodeAt(o++);if(i!==124&&i!==45&&i!==58||o>=e.eMarks[u])return!1;const s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!me(s)||i===45&&me(s))return!1;for(;o<e.eMarks[u];){const E=e.src.charCodeAt(o);if(E!==124&&E!==45&&E!==58&&!me(E))return!1;o++}let l=Eu(e,t+1),c=l.split("|");const f=[];for(let E=0;E<c.length;E++){const w=c[E].trim();if(!w){if(E===0||E===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(w))return!1;w.charCodeAt(w.length-1)===58?f.push(w.charCodeAt(0)===58?"center":"right"):w.charCodeAt(0)===58?f.push("left"):f.push("")}if(l=Eu(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=Ti(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==f.length)return!1;if(r)return!0;const _=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),C=[t,0];m.map=C;const D=e.push("thead_open","thead",1);D.map=[t,t+1];const N=e.push("tr_open","tr",1);N.map=[t,t+1];for(let E=0;E<c.length;E++){const w=e.push("th_open","th",1);f[E]&&(w.attrs=[["style","text-align:"+f[E]]]);const h=e.push("inline","",0);h.content=c[E].trim(),h.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let v,g=0;for(u=t+2;u<n&&!(e.sCount[u]<e.blkIndent);u++){let E=!1;for(let h=0,x=p.length;h<x;h++)if(p[h](e,u,n,!0)){E=!0;break}if(E||(l=Eu(e,u).trim(),!l)||e.sCount[u]-e.blkIndent>=4||(c=Ti(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),g+=d-c.length,g>km))break;if(u===t+2){const h=e.push("tbody_open","tbody",1);h.map=v=[t+2,0]}const w=e.push("tr_open","tr",1);w.map=[u,u+1];for(let h=0;h<d;h++){const x=e.push("td_open","td",1);f[h]&&(x.attrs=[["style","text-align:"+f[h]]]);const k=e.push("inline","",0);k.content=c[h]?c[h].trim():"",k.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return v&&(e.push("tbody_close","tbody",-1),v[1]=u),e.push("table_close","table",-1),C[1]=u,e.parentType=_,e.line=u,!0}function Cm(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,u=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,u=r;continue}break}e.line=u;const o=e.push("code_block","code",0);return o.content=e.getLines(t,u,4+e.blkIndent,!1)+`
|
|
48
|
-
`,o.map=[t,e.line],!0}function vm(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||u+3>o)return!1;const i=e.src.charCodeAt(u);if(i!==126&&i!==96)return!1;let s=u;u=e.skipChars(u,i);let l=u-s;if(l<3)return!1;const c=e.src.slice(s,u),f=e.src.slice(u,o);if(i===96&&f.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;let d=t,_=!1;for(;d++,!(d>=n||(u=s=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],u<o&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(u)===i&&!(e.sCount[d]-e.blkIndent>=4)&&(u=e.skipChars(u,i),!(u-s<l)&&(u=e.skipSpaces(u),!(u<o)))){_=!0;break}l=e.sCount[t],e.line=d+(_?1:0);const p=e.push("fence","code",0);return p.info=f,p.content=e.getLines(t+1,d,l,!0),p.markup=c,p.map=[t,e.line],!0}function wm(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const i=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==62)return!1;if(r)return!0;const s=[],l=[],c=[],f=[],d=e.md.block.ruler.getRules("blockquote"),_=e.parentType;e.parentType="blockquote";let p=!1,m;for(m=t;m<n;m++){const g=e.sCount[m]<e.blkIndent;if(u=e.bMarks[m]+e.tShift[m],o=e.eMarks[m],u>=o)break;if(e.src.charCodeAt(u++)===62&&!g){let w=e.sCount[m]+1,h,x;e.src.charCodeAt(u)===32?(u++,w++,x=!1,h=!0):e.src.charCodeAt(u)===9?(h=!0,(e.bsCount[m]+w)%4===3?(u++,w++,x=!1):x=!0):h=!1;let k=w;for(s.push(e.bMarks[m]),e.bMarks[m]=u;u<o;){const T=e.src.charCodeAt(u);if(me(T))T===9?k+=4-(k+e.bsCount[m]+(x?1:0))%4:k++;else break;u++}p=u>=o,l.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(h?1:0),c.push(e.sCount[m]),e.sCount[m]=k-w,f.push(e.tShift[m]),e.tShift[m]=u-e.bMarks[m];continue}if(p)break;let E=!1;for(let w=0,h=d.length;w<h;w++)if(d[w](e,m,n,!0)){E=!0;break}if(E){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),l.push(e.bsCount[m]),f.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),l.push(e.bsCount[m]),f.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]=-1}const C=e.blkIndent;e.blkIndent=0;const D=e.push("blockquote_open","blockquote",1);D.markup=">";const N=[t,0];D.map=N,e.md.block.tokenize(e,t,m);const v=e.push("blockquote_close","blockquote",-1);v.markup=">",e.lineMax=i,e.parentType=_,N[1]=e.line;for(let g=0;g<f.length;g++)e.bMarks[g+t]=s[g],e.tShift[g+t]=f[g],e.sCount[g+t]=c[g],e.bsCount[g+t]=l[g];return e.blkIndent=C,!0}function Dm(e,t,n,r){const u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(o++);if(i!==42&&i!==45&&i!==95)return!1;let s=1;for(;o<u;){const c=e.src.charCodeAt(o++);if(c!==i&&!me(c))return!1;c===i&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(i)),!0}function Si(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const u=e.src.charCodeAt(r++);if(u!==42&&u!==45&&u!==43)return-1;if(r<n){const o=e.src.charCodeAt(r);if(!me(o))return-1}return r}function Ii(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let u=n;if(u+1>=r)return-1;let o=e.src.charCodeAt(u++);if(o<48||o>57)return-1;for(;;){if(u>=r)return-1;if(o=e.src.charCodeAt(u++),o>=48&&o<=57){if(u-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return u<r&&(o=e.src.charCodeAt(u),!me(o))?-1:u}function Nm(e,t){const n=e.level+2;for(let r=t+2,u=e.tokens.length-2;r<u;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function Am(e,t,n,r){let u,o,i,s,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let f=!1;r&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(f=!0);let d,_,p;if((p=Ii(e,l))>=0){if(d=!0,i=e.bMarks[l]+e.tShift[l],_=Number(e.src.slice(i,p-1)),f&&_!==1)return!1}else if((p=Si(e,l))>=0)d=!1;else return!1;if(f&&e.skipSpaces(p)>=e.eMarks[l])return!1;if(r)return!0;const m=e.src.charCodeAt(p-1),C=e.tokens.length;d?(s=e.push("ordered_list_open","ol",1),_!==1&&(s.attrs=[["start",_]])):s=e.push("bullet_list_open","ul",1);const D=[l,0];s.map=D,s.markup=String.fromCharCode(m);let N=!1;const v=e.md.block.ruler.getRules("list"),g=e.parentType;for(e.parentType="list";l<n;){o=p,u=e.eMarks[l];const E=e.sCount[l]+p-(e.bMarks[l]+e.tShift[l]);let w=E;for(;o<u;){const W=e.src.charCodeAt(o);if(W===9)w+=4-(w+e.bsCount[l])%4;else if(W===32)w++;else break;o++}const h=o;let x;h>=u?x=1:x=w-E,x>4&&(x=1);const k=E+x;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const T=[l,0];s.map=T,d&&(s.info=e.src.slice(i,p-1));const $=e.tight,z=e.tShift[l],V=e.sCount[l],ae=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=k,e.tight=!0,e.tShift[l]=h-e.bMarks[l],e.sCount[l]=w,h>=u&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||N)&&(c=!1),N=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ae,e.tShift[l]=z,e.sCount[l]=V,e.tight=$,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),l=e.line,T[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let U=!1;for(let W=0,R=v.length;W<R;W++)if(v[W](e,l,n,!0)){U=!0;break}if(U)break;if(d){if(p=Ii(e,l),p<0)break;i=e.bMarks[l]+e.tShift[l]}else if(p=Si(e,l),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return d?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(m),D[1]=l,e.line=l,e.parentType=g,c&&Nm(e,C),!0}function Tm(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],i=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==91)return!1;function s(v){const g=e.lineMax;if(v>=g||e.isEmpty(v))return null;let E=!1;if(e.sCount[v]-e.blkIndent>3&&(E=!0),e.sCount[v]<0&&(E=!0),!E){const x=e.md.block.ruler.getRules("reference"),k=e.parentType;e.parentType="reference";let T=!1;for(let $=0,z=x.length;$<z;$++)if(x[$](e,v,g,!0)){T=!0;break}if(e.parentType=k,T)return null}const w=e.bMarks[v]+e.tShift[v],h=e.eMarks[v];return e.src.slice(w,h+1)}let l=e.src.slice(u,o+1);o=l.length;let c=-1;for(u=1;u<o;u++){const v=l.charCodeAt(u);if(v===91)return!1;if(v===93){c=u;break}else if(v===10){const g=s(i);g!==null&&(l+=g,o=l.length,i++)}else if(v===92&&(u++,u<o&&l.charCodeAt(u)===10)){const g=s(i);g!==null&&(l+=g,o=l.length,i++)}}if(c<0||l.charCodeAt(c+1)!==58)return!1;for(u=c+2;u<o;u++){const v=l.charCodeAt(u);if(v===10){const g=s(i);g!==null&&(l+=g,o=l.length,i++)}else if(!me(v))break}const f=e.md.helpers.parseLinkDestination(l,u,o);if(!f.ok)return!1;const d=e.md.normalizeLink(f.str);if(!e.md.validateLink(d))return!1;u=f.pos;const _=u,p=i,m=u;for(;u<o;u++){const v=l.charCodeAt(u);if(v===10){const g=s(i);g!==null&&(l+=g,o=l.length,i++)}else if(!me(v))break}let C=e.md.helpers.parseLinkTitle(l,u,o);for(;C.can_continue;){const v=s(i);if(v===null)break;l+=v,u=o,o=l.length,i++,C=e.md.helpers.parseLinkTitle(l,u,o,C)}let D;for(u<o&&m!==u&&C.ok?(D=C.str,u=C.pos):(D="",u=_,i=p);u<o;){const v=l.charCodeAt(u);if(!me(v))break;u++}if(u<o&&l.charCodeAt(u)!==10&&D)for(D="",u=_,i=p;u<o;){const v=l.charCodeAt(u);if(!me(v))break;u++}if(u<o&&l.charCodeAt(u)!==10)return!1;const N=Er(l.slice(1,c));return N?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[N]>"u"&&(e.env.references[N]={title:D,href:d}),e.line=i),!0):!1}const Sm=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Im="[a-zA-Z_:][a-zA-Z0-9:._-]*",Om="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",Oi="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+Im+"(?:\\s*=\\s*"+Om+")?)")+"*\\s*\\/?>",Li="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Lm="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Fm="<[?][\\s\\S]*?[?]>",Mm="<![A-Za-z][^>]*>",Pm="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",$m=new RegExp("^(?:"+Oi+"|"+Li+"|"+Lm+"|"+Fm+"|"+Mm+"|"+Pm+")"),Bm=new RegExp("^(?:"+Oi+"|"+Li+")"),hn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Sm.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Bm.source+"\\s*$"),/^$/,!1]];function Vm(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;let i=e.src.slice(u,o),s=0;for(;s<hn.length&&!hn[s][0].test(i);s++);if(s===hn.length)return!1;if(r)return hn[s][2];let l=t+1;if(!hn[s][1].test(i)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(u=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],i=e.src.slice(u,o),hn[s][1].test(i)){i.length!==0&&l++;break}}e.line=l;const c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0}function Rm(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(u);if(i!==35||u>=o)return!1;let s=1;for(i=e.src.charCodeAt(++u);i===35&&u<o&&s<=6;)s++,i=e.src.charCodeAt(++u);if(s>6||u<o&&!me(i))return!1;if(r)return!0;o=e.skipSpacesBack(o,u);const l=e.skipCharsBack(o,35,u);l>u&&me(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const c=e.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(u,o).trim(),f.map=[t,e.line],f.children=[];const d=e.push("heading_close","h"+String(s),-1);return d.markup="########".slice(0,s),!0}function jm(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const u=e.parentType;e.parentType="paragraph";let o=0,i,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let p=e.bMarks[s]+e.tShift[s];const m=e.eMarks[s];if(p<m&&(i=e.src.charCodeAt(p),(i===45||i===61)&&(p=e.skipChars(p,i),p=e.skipSpaces(p),p>=m))){o=i===61?1:2;break}}if(e.sCount[s]<0)continue;let _=!1;for(let p=0,m=r.length;p<m;p++)if(r[p](e,s,n,!0)){_=!0;break}if(_)break}if(!o)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const c=e.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(i),c.map=[t,e.line];const f=e.push("inline","",0);f.content=l,f.map=[t,e.line-1],f.children=[];const d=e.push("heading_close","h"+String(o),-1);return d.markup=String.fromCharCode(i),e.parentType=u,!0}function zm(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),u=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let c=!1;for(let f=0,d=r.length;f<d;f++)if(r[f](e,o,n,!0)){c=!0;break}if(c)break}const i=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const l=e.push("inline","",0);return l.content=i,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=u,!0}const xr=[["table",xm,["paragraph","reference"]],["code",Cm],["fence",vm,["paragraph","reference","blockquote","list"]],["blockquote",wm,["paragraph","reference","blockquote","list"]],["hr",Dm,["paragraph","reference","blockquote","list"]],["list",Am,["paragraph","reference","blockquote"]],["reference",Tm],["html_block",Vm,["paragraph","reference","blockquote"]],["heading",Rm,["paragraph","reference","blockquote"]],["lheading",jm],["paragraph",zm]];function Cr(){this.ruler=new He;for(let e=0;e<xr.length;e++)this.ruler.push(xr[e][0],xr[e][1],{alt:(xr[e][2]||[]).slice()})}Cr.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),u=r.length,o=e.md.options.maxNesting;let i=t,s=!1;for(;i<n&&(e.line=i=e.skipEmptyLines(i),!(i>=n||e.sCount[i]<e.blkIndent));){if(e.level>=o){e.line=n;break}const l=e.line;let c=!1;for(let f=0;f<u;f++)if(c=r[f](e,i,n,!1),c){if(l>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),i=e.line,i<n&&e.isEmpty(i)&&(s=!0,i++,e.line=i)}},Cr.prototype.parse=function(e,t,n,r){if(!e)return;const u=new this.State(e,t,n,r);this.tokenize(u,u.line,u.lineMax)},Cr.prototype.State=mt;function Pn(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Pn.prototype.pushPending=function(){const e=new lt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Pn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new lt(e,t,n);let u=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],u={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(u),r},Pn.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),u=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const i=o-e,s=o<n?this.src.charCodeAt(o):32,l=Mn(u)||Fn(String.fromCharCode(u)),c=Mn(s)||Fn(String.fromCharCode(s)),f=Ln(u),d=Ln(s),_=!d&&(!c||f||l),p=!f&&(!l||d||c);return{can_open:_&&(t||!p||l),can_close:p&&(t||!_||c),length:i}},Pn.prototype.Token=lt;function Um(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function qm(e,t){let n=e.pos;for(;n<e.posMax&&!Um(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const Hm=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Wm(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const u=e.pending.match(Hm);if(!u)return!1;const o=u[1],i=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!i)return!1;let s=i.url;if(s.length<=o.length)return!1;s=s.replace(/\*+$/,"");const l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const c=e.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(s);const d=e.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return e.pos+=s.length-o.length,!0}function Ym(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,u=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<u&&me(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const ku=[];for(let e=0;e<256;e++)ku.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ku[e.charCodeAt(0)]=1});function Gm(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let u=e.src.charCodeAt(n);if(u===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(u=e.src.charCodeAt(n),!!me(u));)n++;return e.pos=n,!0}let o=e.src[n];if(u>=55296&&u<=56319&&n+1<r){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(o+=e.src[n+1],n++)}const i="\\"+o;if(!t){const s=e.push("text_special","",0);u<256&&ku[u]!==0?s.content=o:s.content=i,s.markup=i,s.info="escape"}return e.pos=n+1,!0}function Xm(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const u=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const i=e.src.slice(u,n),s=i.length;if(e.backticksScanned&&(e.backticks[s]||0)<=u)return t||(e.pending+=i),e.pos+=s,!0;let l=n,c;for(;(c=e.src.indexOf("`",l))!==-1;){for(l=c+1;l<o&&e.src.charCodeAt(l)===96;)l++;const f=l-c;if(f===s){if(!t){const d=e.push("code_inline","code",0);d.markup=i,d.content=e.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[f]=c}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=s,!0}function Zm(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const u=e.scanDelims(e.pos,!0);let o=u.length;const i=String.fromCharCode(r);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=i,o--);for(let l=0;l<o;l+=2)s=e.push("text","",0),s.content=i+i,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close});return e.pos+=u.length,!0}function Fi(e,t){let n;const r=[],u=t.length;for(let o=0;o<u;o++){const i=t[o];if(i.marker!==126||i.end===-1)continue;const s=t[i.end];n=e.tokens[i.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&r.push(s.token-1)}for(;r.length;){const o=r.pop();let i=o+1;for(;i<e.tokens.length&&e.tokens[i].type==="s_close";)i++;i--,o!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[o],e.tokens[o]=n)}}function Km(e){const t=e.tokens_meta,n=e.tokens_meta.length;Fi(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Fi(e,t[r].delimiters)}const Mi={tokenize:Zm,postProcess:Km};function Jm(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const u=e.scanDelims(e.pos,r===42);for(let o=0;o<u.length;o++){const i=e.push("text","",0);i.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:u.length,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close})}return e.pos+=u.length,!0}function Pi(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const u=t[r];if(u.marker!==95&&u.marker!==42||u.end===-1)continue;const o=t[u.end],i=r>0&&t[r-1].end===u.end+1&&t[r-1].marker===u.marker&&t[r-1].token===u.token-1&&t[u.end+1].token===o.token+1,s=String.fromCharCode(u.marker),l=e.tokens[u.token];l.type=i?"strong_open":"em_open",l.tag=i?"strong":"em",l.nesting=1,l.markup=i?s+s:s,l.content="";const c=e.tokens[o.token];c.type=i?"strong_close":"em_close",c.tag=i?"strong":"em",c.nesting=-1,c.markup=i?s+s:s,c.content="",i&&(e.tokens[t[r-1].token].content="",e.tokens[t[u.end+1].token].content="",r--)}}function Qm(e){const t=e.tokens_meta,n=e.tokens_meta.length;Pi(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Pi(e,t[r].delimiters)}const $i={tokenize:Jm,postProcess:Qm};function ep(e,t){let n,r,u,o,i="",s="",l=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,d=e.posMax,_=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(c=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(!me(n)&&n!==10));m++);if(m>=d)return!1;if(l=m,u=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),u.ok){for(i=e.md.normalizeLink(u.str),e.md.validateLink(i)?m=u.pos:i="",l=m;m<d&&(n=e.src.charCodeAt(m),!(!me(n)&&n!==10));m++);if(u=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&l!==m&&u.ok)for(s=u.str,m=u.pos;m<d&&(n=e.src.charCodeAt(m),!(!me(n)&&n!==10));m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(c=!0),m++}if(c){if(typeof e.env.references>"u")return!1;if(m<d&&e.src.charCodeAt(m)===91?(l=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(l,m++):m=p+1):m=p+1,r||(r=e.src.slice(_,p)),o=e.env.references[Er(r)],!o)return e.pos=f,!1;i=o.href,s=o.title}if(!t){e.pos=_,e.posMax=p;const C=e.push("link_open","a",1),D=[["href",i]];C.attrs=D,s&&D.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=d,!0}function tp(e,t){let n,r,u,o,i,s,l,c,f="";const d=e.pos,_=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(o=m+1,o<_&&e.src.charCodeAt(o)===40){for(o++;o<_&&(n=e.src.charCodeAt(o),!(!me(n)&&n!==10));o++);if(o>=_)return!1;for(c=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?o=s.pos:f=""),c=o;o<_&&(n=e.src.charCodeAt(o),!(!me(n)&&n!==10));o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<_&&c!==o&&s.ok)for(l=s.str,o=s.pos;o<_&&(n=e.src.charCodeAt(o),!(!me(n)&&n!==10));o++);else l="";if(o>=_||e.src.charCodeAt(o)!==41)return e.pos=d,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<_&&e.src.charCodeAt(o)===91?(c=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?u=e.src.slice(c,o++):o=m+1):o=m+1,u||(u=e.src.slice(p,m)),i=e.env.references[Er(u)],!i)return e.pos=d,!1;f=i.href,l=i.title}if(!t){r=e.src.slice(p,m);const C=[];e.md.inline.parse(r,e.md,e.env,C);const D=e.push("image","img",0),N=[["src",f],["alt",""]];D.attrs=N,D.children=C,D.content=r,l&&N.push(["title",l])}return e.pos=o,e.posMax=_,!0}const np=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,rp=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function up(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,u=e.posMax;for(;;){if(++n>=u)return!1;const i=e.src.charCodeAt(n);if(i===60)return!1;if(i===62)break}const o=e.src.slice(r+1,n);if(rp.test(o)){const i=e.md.normalizeLink(o);if(!e.md.validateLink(i))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",i]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}if(np.test(o)){const i=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(i))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",i]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}return!1}function op(e){return/^<a[>\s]/i.test(e)}function ap(e){return/^<\/a\s*>/i.test(e)}function ip(e){const t=e|32;return t>=97&&t<=122}function sp(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const u=e.src.charCodeAt(r+1);if(u!==33&&u!==63&&u!==47&&!ip(u))return!1;const o=e.src.slice(r).match($m);if(!o)return!1;if(!t){const i=e.push("html_inline","",0);i.content=o[0],op(i.content)&&e.linkLevel++,ap(i.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const lp=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,cp=/^&([a-z][a-z0-9]{1,31});/i;function fp(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(lp);if(o){if(!t){const i=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=gu(i)?yr(i):yr(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(cp);if(o){const i=xi(o[0]);if(i!==o[0]){if(!t){const s=e.push("text_special","",0);s.content=i,s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function Bi(e){const t={},n=e.length;if(!n)return;let r=0,u=-2;const o=[];for(let i=0;i<n;i++){const s=e[i];if(o.push(0),(e[r].marker!==s.marker||u!==s.token-1)&&(r=i),u=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const l=t[s.marker][(s.open?3:0)+s.length%3];let c=r-o[r]-1,f=c;for(;c>l;c-=o[c]+1){const d=e[c];if(d.marker===s.marker&&d.open&&d.end<0){let _=!1;if((d.close||s.open)&&(d.length+s.length)%3===0&&(d.length%3!==0||s.length%3!==0)&&(_=!0),!_){const p=c>0&&!e[c-1].open?o[c-1]+1:0;o[i]=i-c+p,o[c]=p,s.open=!1,d.end=i,d.close=!1,f=-1,u=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function dp(e){const t=e.tokens_meta,n=e.tokens_meta.length;Bi(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Bi(t[r].delimiters)}function _p(e){let t,n,r=0;const u=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)u[t].nesting<0&&r--,u[t].level=r,u[t].nesting>0&&r++,u[t].type==="text"&&t+1<o&&u[t+1].type==="text"?u[t+1].content=u[t].content+u[t+1].content:(t!==n&&(u[n]=u[t]),n++);t!==n&&(u.length=n)}const xu=[["text",qm],["linkify",Wm],["newline",Ym],["escape",Gm],["backticks",Xm],["strikethrough",Mi.tokenize],["emphasis",$i.tokenize],["link",ep],["image",tp],["autolink",up],["html_inline",sp],["entity",fp]],Cu=[["balance_pairs",dp],["strikethrough",Mi.postProcess],["emphasis",$i.postProcess],["fragments_join",_p]];function $n(){this.ruler=new He;for(let e=0;e<xu.length;e++)this.ruler.push(xu[e][0],xu[e][1]);this.ruler2=new He;for(let e=0;e<Cu.length;e++)this.ruler2.push(Cu[e][0],Cu[e][1])}$n.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,u=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let i=!1;if(e.level<u){for(let s=0;s<r;s++)if(e.level++,i=n[s](e,!0),e.level--,i){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;i||e.pos++,o[t]=e.pos},$n.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,u=e.md.options.maxNesting;for(;e.pos<r;){const o=e.pos;let i=!1;if(e.level<u){for(let s=0;s<n;s++)if(i=t[s](e,!1),i){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},$n.prototype.parse=function(e,t,n,r){const u=new this.State(e,t,n,r);this.tokenize(u);const o=this.ruler2.getRules(""),i=o.length;for(let s=0;s<i;s++)o[s](u)},$n.prototype.State=Pn;function hp(e){const t={};e=e||{},t.src_Any=gi.source,t.src_Cc=bi.source,t.src_Z=Ei.source,t.src_P=_u.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function vu(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function vr(e){return Object.prototype.toString.call(e)}function mp(e){return vr(e)==="[object String]"}function pp(e){return vr(e)==="[object Object]"}function gp(e){return vr(e)==="[object RegExp]"}function Vi(e){return vr(e)==="[object Function]"}function bp(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Ri={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function yp(e){return Object.keys(e||{}).reduce(function(t,n){return t||Ri.hasOwnProperty(n)},!1)}const Ep={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},kp="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",xp="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Cp(e){e.__index__=-1,e.__text_cache__=""}function vp(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function ji(){return function(e,t){t.normalize(e)}}function wr(e){const t=e.re=hp(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(kp),n.push(t.src_xn),t.src_tlds=n.join("|");function r(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const u=[];e.__compiled__={};function o(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){const l=e.__schemas__[s];if(l===null)return;const c={validate:null,link:null};if(e.__compiled__[s]=c,pp(l)){gp(l.validate)?c.validate=vp(l.validate):Vi(l.validate)?c.validate=l.validate:o(s,l),Vi(l.normalize)?c.normalize=l.normalize:l.normalize?o(s,l):c.normalize=ji();return}if(mp(l)){u.push(s);return}o(s,l)}),u.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:ji()};const i=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(bp).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Cp(e)}function wp(e,t){const n=e.__index__,r=e.__last_index__,u=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=u,this.text=u,this.url=u}function wu(e,t){const n=new wp(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Xe(e,t){if(!(this instanceof Xe))return new Xe(e,t);t||yp(e)&&(t=e,e={}),this.__opts__=vu({},Ri,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=vu({},Ep,e),this.__compiled__={},this.__tlds__=xp,this.__tlds_replaced__=!1,this.re={},wr(this)}Xe.prototype.add=function(t,n){return this.__schemas__[t]=n,wr(this),this},Xe.prototype.set=function(t){return this.__opts__=vu(this.__opts__,t),this},Xe.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,u,o,i,s,l,c,f;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=r.index+r[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(u=t.match(this.re.email_fuzzy))!==null&&(i=u.index+u[1].length,s=u.index+u[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=s))),this.__index__>=0},Xe.prototype.pretest=function(t){return this.re.pretest.test(t)},Xe.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0},Xe.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(wu(this,r)),r=this.__last_index__);let u=r?t.slice(r):t;for(;this.test(u);)n.push(wu(this,r)),u=u.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null},Xe.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,wu(this,0)):null},Xe.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,u,o){return r!==o[u-1]}).reverse(),wr(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,wr(this),this)},Xe.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},Xe.prototype.onCompile=function(){};const mn=2147483647,pt=36,Du=1,Bn=26,Dp=38,Np=700,zi=72,Ui=128,qi="-",Ap=/^xn--/,Tp=/[^\0-\x7F]/,Sp=/[\x2E\u3002\uFF0E\uFF61]/g,Ip={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Nu=pt-Du,gt=Math.floor,Au=String.fromCharCode;function Ft(e){throw new RangeError(Ip[e])}function Op(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Hi(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(Sp,".");const u=e.split("."),o=Op(u,t).join(".");return r+o}function Wi(e){const t=[];let n=0;const r=e.length;for(;n<r;){const u=e.charCodeAt(n++);if(u>=55296&&u<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((u&1023)<<10)+(o&1023)+65536):(t.push(u),n--)}else t.push(u)}return t}const Lp=e=>String.fromCodePoint(...e),Fp=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:pt},Yi=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Gi=function(e,t,n){let r=0;for(e=n?gt(e/Np):e>>1,e+=gt(e/t);e>Nu*Bn>>1;r+=pt)e=gt(e/Nu);return gt(r+(Nu+1)*e/(e+Dp))},Xi=function(e){const t=[],n=e.length;let r=0,u=Ui,o=zi,i=e.lastIndexOf(qi);i<0&&(i=0);for(let s=0;s<i;++s)e.charCodeAt(s)>=128&&Ft("not-basic"),t.push(e.charCodeAt(s));for(let s=i>0?i+1:0;s<n;){const l=r;for(let f=1,d=pt;;d+=pt){s>=n&&Ft("invalid-input");const _=Fp(e.charCodeAt(s++));_>=pt&&Ft("invalid-input"),_>gt((mn-r)/f)&&Ft("overflow"),r+=_*f;const p=d<=o?Du:d>=o+Bn?Bn:d-o;if(_<p)break;const m=pt-p;f>gt(mn/m)&&Ft("overflow"),f*=m}const c=t.length+1;o=Gi(r-l,c,l==0),gt(r/c)>mn-u&&Ft("overflow"),u+=gt(r/c),r%=c,t.splice(r++,0,u)}return String.fromCodePoint(...t)},Zi=function(e){const t=[];e=Wi(e);const n=e.length;let r=Ui,u=0,o=zi;for(const l of e)l<128&&t.push(Au(l));const i=t.length;let s=i;for(i&&t.push(qi);s<n;){let l=mn;for(const f of e)f>=r&&f<l&&(l=f);const c=s+1;l-r>gt((mn-u)/c)&&Ft("overflow"),u+=(l-r)*c,r=l;for(const f of e)if(f<r&&++u>mn&&Ft("overflow"),f===r){let d=u;for(let _=pt;;_+=pt){const p=_<=o?Du:_>=o+Bn?Bn:_-o;if(d<p)break;const m=d-p,C=pt-p;t.push(Au(Yi(p+m%C,0))),d=gt(m/C)}t.push(Au(Yi(d,0))),o=Gi(u,c,s===i),u=0,++s}++u,++r}return t.join("")},Ki={version:"2.3.1",ucs2:{decode:Wi,encode:Lp},decode:Xi,encode:Zi,toASCII:function(e){return Hi(e,function(t){return Tp.test(t)?"xn--"+Zi(t):t})},toUnicode:function(e){return Hi(e,function(t){return Ap.test(t)?Xi(t.slice(4).toLowerCase()):t})}},Mp={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},Pp=/^(vbscript|javascript|file|data):/,$p=/^data:image\/(gif|png|jpeg|webp);/;function Bp(e){const t=e.trim().toLowerCase();return Pp.test(t)?$p.test(t):!0}const Ji=["http:","https:","mailto:"];function Vp(e){const t=du(e,!0);if(t.hostname&&(!t.protocol||Ji.indexOf(t.protocol)>=0))try{t.hostname=Ki.toASCII(t.hostname)}catch{}return On(fu(t))}function Rp(e){const t=du(e,!0);if(t.hostname&&(!t.protocol||Ji.indexOf(t.protocol)>=0))try{t.hostname=Ki.toUnicode(t.hostname)}catch{}return fn(fu(t),fn.defaultChars+"%")}function et(e,t){if(!(this instanceof et))return new et(e,t);t||pu(e)||(t=e||{},e="default"),this.inline=new $n,this.block=new Cr,this.core=new yu,this.renderer=new _n,this.linkify=new Xe,this.validateLink=Bp,this.normalizeLink=Vp,this.normalizeLinkText=Rp,this.utils=Kh,this.helpers=br({},tm),this.options={},this.configure(e),t&&this.set(t)}et.prototype.set=function(e){return br(this.options,e),this},et.prototype.configure=function(e){const t=this;if(pu(e)){const n=e;if(e=Mp[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},et.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},et.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},et.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},et.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},et.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},et.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},et.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const jp=["innerHTML"],zp={__name:"MarkdownViewer",props:{content:{type:String,default:`| 早餐 | | 午餐 |
|
|
45
|
+
`:">",o},hn.prototype.renderInline=function(e,t,n){let r="";const u=this.rules;for(let o=0,i=e.length;o<i;o++){const s=e[o].type;typeof u[s]<"u"?r+=u[s](e,o,t,n,this):r+=this.renderToken(e,o,t)}return r},hn.prototype.renderInlineAsText=function(e,t,n){let r="";for(let u=0,o=e.length;u<o;u++)switch(e[u].type){case"text":r+=e[u].content;break;case"image":r+=this.renderInlineAsText(e[u].children,t,n);break;case"html_inline":case"html_block":r+=e[u].content;break;case"softbreak":case"hardbreak":r+=`
|
|
46
|
+
`;break}return r},hn.prototype.render=function(e,t,n){let r="";const u=this.rules;for(let o=0,i=e.length;o<i;o++){const s=e[o].type;s==="inline"?r+=this.renderInline(e[o].children,t,n):typeof u[s]<"u"?r+=u[s](e,o,t,n,this):r+=this.renderToken(e,o,t,n)}return r};function qe(){this.__rules__=[],this.__cache__=null}qe.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},qe.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})},qe.prototype.at=function(e,t,n){const r=this.__find__(e),u=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=u.alt||[],this.__cache__=null},qe.prototype.before=function(e,t,n,r){const u=this.__find__(e),o=r||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(u,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},qe.prototype.after=function(e,t,n,r){const u=this.__find__(e),o=r||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(u+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},qe.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},qe.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const u=this.__find__(r);if(u<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[u].enabled=!0,n.push(r)},this),this.__cache__=null,n},qe.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)},qe.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const u=this.__find__(r);if(u<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[u].enabled=!1,n.push(r)},this),this.__cache__=null,n},qe.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function ct(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}ct.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,u=n.length;r<u;r++)if(n[r][0]===t)return r;return-1},ct.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},ct.prototype.attrSet=function(t,n){const r=this.attrIndex(t),u=[t,n];r<0?this.attrPush(u):this.attrs[r]=u},ct.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r},ct.prototype.attrJoin=function(t,n){const r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function wi(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}wi.prototype.Token=ct;const nm=/\r\n?|\n/g,rm=/\0/g;function um(e){let t;t=e.src.replace(nm,`
|
|
47
|
+
`),t=t.replace(rm,"�"),e.src=t}function om(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function am(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const u=t[n];u.type==="inline"&&e.md.inline.parse(u.content,e.md,e.env,u.children)}}function im(e){return/^<a[>\s]/i.test(e)}function sm(e){return/^<\/a\s*>/i.test(e)}function lm(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let u=t[n].children,o=0;for(let i=u.length-1;i>=0;i--){const s=u[i];if(s.type==="link_close"){for(i--;u[i].level!==s.level&&u[i].type!=="link_open";)i--;continue}if(s.type==="html_inline"&&(im(s.content)&&o>0&&o--,sm(s.content)&&o++),!(o>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const l=s.content;let c=e.md.linkify.match(l);const f=[];let d=s.level,_=0;c.length>0&&c[0].index===0&&i>0&&u[i-1].type==="text_special"&&(c=c.slice(1));for(let p=0;p<c.length;p++){const m=c[p].url,x=e.md.normalizeLink(m);if(!e.md.validateLink(x))continue;let D=c[p].text;c[p].schema?c[p].schema==="mailto:"&&!/^mailto:/i.test(D)?D=e.md.normalizeLinkText("mailto:"+D).replace(/^mailto:/,""):D=e.md.normalizeLinkText(D):D=e.md.normalizeLinkText("http://"+D).replace(/^http:\/\//,"");const N=c[p].index;if(N>_){const w=new e.Token("text","",0);w.content=l.slice(_,N),w.level=d,f.push(w)}const v=new e.Token("link_open","a",1);v.attrs=[["href",x]],v.level=d++,v.markup="linkify",v.info="auto",f.push(v);const g=new e.Token("text","",0);g.content=D,g.level=d,f.push(g);const E=new e.Token("link_close","a",-1);E.level=--d,E.markup="linkify",E.info="auto",f.push(E),_=c[p].lastIndex}if(_<l.length){const p=new e.Token("text","",0);p.content=l.slice(_),p.level=d,f.push(p)}t[n].children=u=Ci(u,i,f)}}}}const Di=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,cm=/\((c|tm|r)\)/i,fm=/\((c|tm|r)\)/ig,dm={c:"©",r:"®",tm:"™"};function _m(e,t){return dm[t.toLowerCase()]}function hm(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(fm,_m)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function mm(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&Di.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function pm(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(cm.test(e.tokens[t].content)&&hm(e.tokens[t].children),Di.test(e.tokens[t].content)&&mm(e.tokens[t].children))}const gm=/['"]/,Ni=/['"]/g,Ai="’";function kr(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function bm(e,t){let n;const r=[];for(let u=0;u<e.length;u++){const o=e[u],i=e[u].level;for(n=r.length-1;n>=0&&!(r[n].level<=i);n--);if(r.length=n+1,o.type!=="text")continue;let s=o.content,l=0,c=s.length;e:for(;l<c;){Ni.lastIndex=l;const f=Ni.exec(s);if(!f)break;let d=!0,_=!0;l=f.index+1;const p=f[0]==="'";let m=32;if(f.index-1>=0)m=s.charCodeAt(f.index-1);else for(n=u-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let x=32;if(l<c)x=s.charCodeAt(l);else for(n=u+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){x=e[n].content.charCodeAt(0);break}const D=Pn(m)||Mn(String.fromCharCode(m)),N=Pn(x)||Mn(String.fromCharCode(x)),v=Fn(m),g=Fn(x);if(g?d=!1:N&&(v||D||(d=!1)),v?_=!1:D&&(g||N||(_=!1)),x===34&&f[0]==='"'&&m>=48&&m<=57&&(_=d=!1),d&&_&&(d=D,_=N),!d&&!_){p&&(o.content=kr(o.content,f.index,Ai));continue}if(_)for(n=r.length-1;n>=0;n--){let E=r[n];if(r[n].level<i)break;if(E.single===p&&r[n].level===i){E=r[n];let w,h;p?(w=t.md.options.quotes[2],h=t.md.options.quotes[3]):(w=t.md.options.quotes[0],h=t.md.options.quotes[1]),o.content=kr(o.content,f.index,h),e[E.token].content=kr(e[E.token].content,E.pos,w),l+=h.length-1,E.token===u&&(l+=w.length-1),s=o.content,c=s.length,r.length=n;continue e}}d?r.push({token:u,pos:f.index,single:p,level:i}):_&&p&&(o.content=kr(o.content,f.index,Ai))}}}function ym(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!gm.test(e.tokens[t].content)||bm(e.tokens[t].children,e)}function Em(e){let t,n;const r=e.tokens,u=r.length;for(let o=0;o<u;o++){if(r[o].type!=="inline")continue;const i=r[o].children,s=i.length;for(t=0;t<s;t++)i[t].type==="text_special"&&(i[t].type="text");for(t=n=0;t<s;t++)i[t].type==="text"&&t+1<s&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}const bu=[["normalize",um],["block",om],["inline",am],["linkify",lm],["replacements",pm],["smartquotes",ym],["text_join",Em]];function yu(){this.ruler=new qe;for(let e=0;e<bu.length;e++)this.ruler.push(bu[e][0],bu[e][1])}yu.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},yu.prototype.State=wi;function mt(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const u=this.src;for(let o=0,i=0,s=0,l=0,c=u.length,f=!1;i<c;i++){const d=u.charCodeAt(i);if(!f)if(ge(d)){s++,d===9?l+=4-l%4:l++;continue}else f=!0;(d===10||i===c-1)&&(d!==10&&i++,this.bMarks.push(o),this.eMarks.push(i),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),f=!1,s=0,l=0,o=i+1)}this.bMarks.push(u.length),this.eMarks.push(u.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}mt.prototype.push=function(e,t,n){const r=new ct(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},mt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},mt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},mt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!ge(r))break}return t},mt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!ge(this.src.charCodeAt(--t)))return t+1;return t},mt.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t},mt.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t},mt.prototype.getLines=function(t,n,r,u){if(t>=n)return"";const o=new Array(n-t);for(let i=0,s=t;s<n;s++,i++){let l=0;const c=this.bMarks[s];let f=c,d;for(s+1<n||u?d=this.eMarks[s]+1:d=this.eMarks[s];f<d&&l<r;){const _=this.src.charCodeAt(f);if(ge(_))_===9?l+=4-(l+this.bsCount[s])%4:l++;else if(f-c<this.tShift[s])l++;else break;f++}l>r?o[i]=new Array(l-r+1).join(" ")+this.src.slice(f,d):o[i]=this.src.slice(f,d)}return o.join("")},mt.prototype.Token=ct;const km=65536;function Eu(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Ti(e){const t=[],n=e.length;let r=0,u=e.charCodeAt(r),o=!1,i=0,s="";for(;r<n;)u===124&&(o?(s+=e.substring(i,r-1),i=r):(t.push(s+e.substring(i,r)),s="",i=r+1)),o=u===92,r++,u=e.charCodeAt(r);return t.push(s+e.substring(i)),t}function xm(e,t,n,r){if(t+2>n)return!1;let u=t+1;if(e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)return!1;let o=e.bMarks[u]+e.tShift[u];if(o>=e.eMarks[u])return!1;const i=e.src.charCodeAt(o++);if(i!==124&&i!==45&&i!==58||o>=e.eMarks[u])return!1;const s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!ge(s)||i===45&&ge(s))return!1;for(;o<e.eMarks[u];){const E=e.src.charCodeAt(o);if(E!==124&&E!==45&&E!==58&&!ge(E))return!1;o++}let l=Eu(e,t+1),c=l.split("|");const f=[];for(let E=0;E<c.length;E++){const w=c[E].trim();if(!w){if(E===0||E===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(w))return!1;w.charCodeAt(w.length-1)===58?f.push(w.charCodeAt(0)===58?"center":"right"):w.charCodeAt(0)===58?f.push("left"):f.push("")}if(l=Eu(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=Ti(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==f.length)return!1;if(r)return!0;const _=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),x=[t,0];m.map=x;const D=e.push("thead_open","thead",1);D.map=[t,t+1];const N=e.push("tr_open","tr",1);N.map=[t,t+1];for(let E=0;E<c.length;E++){const w=e.push("th_open","th",1);f[E]&&(w.attrs=[["style","text-align:"+f[E]]]);const h=e.push("inline","",0);h.content=c[E].trim(),h.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let v,g=0;for(u=t+2;u<n&&!(e.sCount[u]<e.blkIndent);u++){let E=!1;for(let h=0,C=p.length;h<C;h++)if(p[h](e,u,n,!0)){E=!0;break}if(E||(l=Eu(e,u).trim(),!l)||e.sCount[u]-e.blkIndent>=4||(c=Ti(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),g+=d-c.length,g>km))break;if(u===t+2){const h=e.push("tbody_open","tbody",1);h.map=v=[t+2,0]}const w=e.push("tr_open","tr",1);w.map=[u,u+1];for(let h=0;h<d;h++){const C=e.push("td_open","td",1);f[h]&&(C.attrs=[["style","text-align:"+f[h]]]);const k=e.push("inline","",0);k.content=c[h]?c[h].trim():"",k.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return v&&(e.push("tbody_close","tbody",-1),v[1]=u),e.push("table_close","table",-1),x[1]=u,e.parentType=_,e.line=u,!0}function Cm(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,u=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,u=r;continue}break}e.line=u;const o=e.push("code_block","code",0);return o.content=e.getLines(t,u,4+e.blkIndent,!1)+`
|
|
48
|
+
`,o.map=[t,e.line],!0}function vm(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||u+3>o)return!1;const i=e.src.charCodeAt(u);if(i!==126&&i!==96)return!1;let s=u;u=e.skipChars(u,i);let l=u-s;if(l<3)return!1;const c=e.src.slice(s,u),f=e.src.slice(u,o);if(i===96&&f.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;let d=t,_=!1;for(;d++,!(d>=n||(u=s=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],u<o&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(u)===i&&!(e.sCount[d]-e.blkIndent>=4)&&(u=e.skipChars(u,i),!(u-s<l)&&(u=e.skipSpaces(u),!(u<o)))){_=!0;break}l=e.sCount[t],e.line=d+(_?1:0);const p=e.push("fence","code",0);return p.info=f,p.content=e.getLines(t+1,d,l,!0),p.markup=c,p.map=[t,e.line],!0}function wm(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const i=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==62)return!1;if(r)return!0;const s=[],l=[],c=[],f=[],d=e.md.block.ruler.getRules("blockquote"),_=e.parentType;e.parentType="blockquote";let p=!1,m;for(m=t;m<n;m++){const g=e.sCount[m]<e.blkIndent;if(u=e.bMarks[m]+e.tShift[m],o=e.eMarks[m],u>=o)break;if(e.src.charCodeAt(u++)===62&&!g){let w=e.sCount[m]+1,h,C;e.src.charCodeAt(u)===32?(u++,w++,C=!1,h=!0):e.src.charCodeAt(u)===9?(h=!0,(e.bsCount[m]+w)%4===3?(u++,w++,C=!1):C=!0):h=!1;let k=w;for(s.push(e.bMarks[m]),e.bMarks[m]=u;u<o;){const A=e.src.charCodeAt(u);if(ge(A))A===9?k+=4-(k+e.bsCount[m]+(C?1:0))%4:k++;else break;u++}p=u>=o,l.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(h?1:0),c.push(e.sCount[m]),e.sCount[m]=k-w,f.push(e.tShift[m]),e.tShift[m]=u-e.bMarks[m];continue}if(p)break;let E=!1;for(let w=0,h=d.length;w<h;w++)if(d[w](e,m,n,!0)){E=!0;break}if(E){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),l.push(e.bsCount[m]),f.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),l.push(e.bsCount[m]),f.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]=-1}const x=e.blkIndent;e.blkIndent=0;const D=e.push("blockquote_open","blockquote",1);D.markup=">";const N=[t,0];D.map=N,e.md.block.tokenize(e,t,m);const v=e.push("blockquote_close","blockquote",-1);v.markup=">",e.lineMax=i,e.parentType=_,N[1]=e.line;for(let g=0;g<f.length;g++)e.bMarks[g+t]=s[g],e.tShift[g+t]=f[g],e.sCount[g+t]=c[g],e.bsCount[g+t]=l[g];return e.blkIndent=x,!0}function Dm(e,t,n,r){const u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(o++);if(i!==42&&i!==45&&i!==95)return!1;let s=1;for(;o<u;){const c=e.src.charCodeAt(o++);if(c!==i&&!ge(c))return!1;c===i&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(i)),!0}function Si(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const u=e.src.charCodeAt(r++);if(u!==42&&u!==45&&u!==43)return-1;if(r<n){const o=e.src.charCodeAt(r);if(!ge(o))return-1}return r}function Ii(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let u=n;if(u+1>=r)return-1;let o=e.src.charCodeAt(u++);if(o<48||o>57)return-1;for(;;){if(u>=r)return-1;if(o=e.src.charCodeAt(u++),o>=48&&o<=57){if(u-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return u<r&&(o=e.src.charCodeAt(u),!ge(o))?-1:u}function Nm(e,t){const n=e.level+2;for(let r=t+2,u=e.tokens.length-2;r<u;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function Am(e,t,n,r){let u,o,i,s,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let f=!1;r&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(f=!0);let d,_,p;if((p=Ii(e,l))>=0){if(d=!0,i=e.bMarks[l]+e.tShift[l],_=Number(e.src.slice(i,p-1)),f&&_!==1)return!1}else if((p=Si(e,l))>=0)d=!1;else return!1;if(f&&e.skipSpaces(p)>=e.eMarks[l])return!1;if(r)return!0;const m=e.src.charCodeAt(p-1),x=e.tokens.length;d?(s=e.push("ordered_list_open","ol",1),_!==1&&(s.attrs=[["start",_]])):s=e.push("bullet_list_open","ul",1);const D=[l,0];s.map=D,s.markup=String.fromCharCode(m);let N=!1;const v=e.md.block.ruler.getRules("list"),g=e.parentType;for(e.parentType="list";l<n;){o=p,u=e.eMarks[l];const E=e.sCount[l]+p-(e.bMarks[l]+e.tShift[l]);let w=E;for(;o<u;){const q=e.src.charCodeAt(o);if(q===9)w+=4-(w+e.bsCount[l])%4;else if(q===32)w++;else break;o++}const h=o;let C;h>=u?C=1:C=w-E,C>4&&(C=1);const k=E+C;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const A=[l,0];s.map=A,d&&(s.info=e.src.slice(i,p-1));const B=e.tight,U=e.tShift[l],j=e.sCount[l],ie=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=k,e.tight=!0,e.tShift[l]=h-e.bMarks[l],e.sCount[l]=w,h>=u&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||N)&&(c=!1),N=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ie,e.tShift[l]=U,e.sCount[l]=j,e.tight=B,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),l=e.line,A[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let W=!1;for(let q=0,Z=v.length;q<Z;q++)if(v[q](e,l,n,!0)){W=!0;break}if(W)break;if(d){if(p=Ii(e,l),p<0)break;i=e.bMarks[l]+e.tShift[l]}else if(p=Si(e,l),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return d?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(m),D[1]=l,e.line=l,e.parentType=g,c&&Nm(e,x),!0}function Tm(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],i=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==91)return!1;function s(v){const g=e.lineMax;if(v>=g||e.isEmpty(v))return null;let E=!1;if(e.sCount[v]-e.blkIndent>3&&(E=!0),e.sCount[v]<0&&(E=!0),!E){const C=e.md.block.ruler.getRules("reference"),k=e.parentType;e.parentType="reference";let A=!1;for(let B=0,U=C.length;B<U;B++)if(C[B](e,v,g,!0)){A=!0;break}if(e.parentType=k,A)return null}const w=e.bMarks[v]+e.tShift[v],h=e.eMarks[v];return e.src.slice(w,h+1)}let l=e.src.slice(u,o+1);o=l.length;let c=-1;for(u=1;u<o;u++){const v=l.charCodeAt(u);if(v===91)return!1;if(v===93){c=u;break}else if(v===10){const g=s(i);g!==null&&(l+=g,o=l.length,i++)}else if(v===92&&(u++,u<o&&l.charCodeAt(u)===10)){const g=s(i);g!==null&&(l+=g,o=l.length,i++)}}if(c<0||l.charCodeAt(c+1)!==58)return!1;for(u=c+2;u<o;u++){const v=l.charCodeAt(u);if(v===10){const g=s(i);g!==null&&(l+=g,o=l.length,i++)}else if(!ge(v))break}const f=e.md.helpers.parseLinkDestination(l,u,o);if(!f.ok)return!1;const d=e.md.normalizeLink(f.str);if(!e.md.validateLink(d))return!1;u=f.pos;const _=u,p=i,m=u;for(;u<o;u++){const v=l.charCodeAt(u);if(v===10){const g=s(i);g!==null&&(l+=g,o=l.length,i++)}else if(!ge(v))break}let x=e.md.helpers.parseLinkTitle(l,u,o);for(;x.can_continue;){const v=s(i);if(v===null)break;l+=v,u=o,o=l.length,i++,x=e.md.helpers.parseLinkTitle(l,u,o,x)}let D;for(u<o&&m!==u&&x.ok?(D=x.str,u=x.pos):(D="",u=_,i=p);u<o;){const v=l.charCodeAt(u);if(!ge(v))break;u++}if(u<o&&l.charCodeAt(u)!==10&&D)for(D="",u=_,i=p;u<o;){const v=l.charCodeAt(u);if(!ge(v))break;u++}if(u<o&&l.charCodeAt(u)!==10)return!1;const N=Er(l.slice(1,c));return N?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[N]>"u"&&(e.env.references[N]={title:D,href:d}),e.line=i),!0):!1}const Sm=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Im="[a-zA-Z_:][a-zA-Z0-9:._-]*",Om="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",Oi="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+Im+"(?:\\s*=\\s*"+Om+")?)")+"*\\s*\\/?>",Li="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Lm="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Fm="<[?][\\s\\S]*?[?]>",Mm="<![A-Za-z][^>]*>",Pm="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",$m=new RegExp("^(?:"+Oi+"|"+Li+"|"+Lm+"|"+Fm+"|"+Mm+"|"+Pm+")"),Bm=new RegExp("^(?:"+Oi+"|"+Li+")"),mn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Sm.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Bm.source+"\\s*$"),/^$/,!1]];function Vm(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;let i=e.src.slice(u,o),s=0;for(;s<mn.length&&!mn[s][0].test(i);s++);if(s===mn.length)return!1;if(r)return mn[s][2];let l=t+1;if(!mn[s][1].test(i)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(u=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],i=e.src.slice(u,o),mn[s][1].test(i)){i.length!==0&&l++;break}}e.line=l;const c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0}function Rm(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(u);if(i!==35||u>=o)return!1;let s=1;for(i=e.src.charCodeAt(++u);i===35&&u<o&&s<=6;)s++,i=e.src.charCodeAt(++u);if(s>6||u<o&&!ge(i))return!1;if(r)return!0;o=e.skipSpacesBack(o,u);const l=e.skipCharsBack(o,35,u);l>u&&ge(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const c=e.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(u,o).trim(),f.map=[t,e.line],f.children=[];const d=e.push("heading_close","h"+String(s),-1);return d.markup="########".slice(0,s),!0}function jm(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const u=e.parentType;e.parentType="paragraph";let o=0,i,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let p=e.bMarks[s]+e.tShift[s];const m=e.eMarks[s];if(p<m&&(i=e.src.charCodeAt(p),(i===45||i===61)&&(p=e.skipChars(p,i),p=e.skipSpaces(p),p>=m))){o=i===61?1:2;break}}if(e.sCount[s]<0)continue;let _=!1;for(let p=0,m=r.length;p<m;p++)if(r[p](e,s,n,!0)){_=!0;break}if(_)break}if(!o)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const c=e.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(i),c.map=[t,e.line];const f=e.push("inline","",0);f.content=l,f.map=[t,e.line-1],f.children=[];const d=e.push("heading_close","h"+String(o),-1);return d.markup=String.fromCharCode(i),e.parentType=u,!0}function zm(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),u=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let c=!1;for(let f=0,d=r.length;f<d;f++)if(r[f](e,o,n,!0)){c=!0;break}if(c)break}const i=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const l=e.push("inline","",0);return l.content=i,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=u,!0}const xr=[["table",xm,["paragraph","reference"]],["code",Cm],["fence",vm,["paragraph","reference","blockquote","list"]],["blockquote",wm,["paragraph","reference","blockquote","list"]],["hr",Dm,["paragraph","reference","blockquote","list"]],["list",Am,["paragraph","reference","blockquote"]],["reference",Tm],["html_block",Vm,["paragraph","reference","blockquote"]],["heading",Rm,["paragraph","reference","blockquote"]],["lheading",jm],["paragraph",zm]];function Cr(){this.ruler=new qe;for(let e=0;e<xr.length;e++)this.ruler.push(xr[e][0],xr[e][1],{alt:(xr[e][2]||[]).slice()})}Cr.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),u=r.length,o=e.md.options.maxNesting;let i=t,s=!1;for(;i<n&&(e.line=i=e.skipEmptyLines(i),!(i>=n||e.sCount[i]<e.blkIndent));){if(e.level>=o){e.line=n;break}const l=e.line;let c=!1;for(let f=0;f<u;f++)if(c=r[f](e,i,n,!1),c){if(l>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),i=e.line,i<n&&e.isEmpty(i)&&(s=!0,i++,e.line=i)}},Cr.prototype.parse=function(e,t,n,r){if(!e)return;const u=new this.State(e,t,n,r);this.tokenize(u,u.line,u.lineMax)},Cr.prototype.State=mt;function $n(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}$n.prototype.pushPending=function(){const e=new ct("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},$n.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new ct(e,t,n);let u=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],u={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(u),r},$n.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),u=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const i=o-e,s=o<n?this.src.charCodeAt(o):32,l=Pn(u)||Mn(String.fromCharCode(u)),c=Pn(s)||Mn(String.fromCharCode(s)),f=Fn(u),d=Fn(s),_=!d&&(!c||f||l),p=!f&&(!l||d||c);return{can_open:_&&(t||!p||l),can_close:p&&(t||!_||c),length:i}},$n.prototype.Token=ct;function Um(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function qm(e,t){let n=e.pos;for(;n<e.posMax&&!Um(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const Hm=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Wm(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const u=e.pending.match(Hm);if(!u)return!1;const o=u[1],i=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!i)return!1;let s=i.url;if(s.length<=o.length)return!1;s=s.replace(/\*+$/,"");const l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const c=e.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(s);const d=e.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return e.pos+=s.length-o.length,!0}function Ym(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,u=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<u&&ge(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const ku=[];for(let e=0;e<256;e++)ku.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ku[e.charCodeAt(0)]=1});function Gm(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let u=e.src.charCodeAt(n);if(u===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(u=e.src.charCodeAt(n),!!ge(u));)n++;return e.pos=n,!0}let o=e.src[n];if(u>=55296&&u<=56319&&n+1<r){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(o+=e.src[n+1],n++)}const i="\\"+o;if(!t){const s=e.push("text_special","",0);u<256&&ku[u]!==0?s.content=o:s.content=i,s.markup=i,s.info="escape"}return e.pos=n+1,!0}function Xm(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const u=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const i=e.src.slice(u,n),s=i.length;if(e.backticksScanned&&(e.backticks[s]||0)<=u)return t||(e.pending+=i),e.pos+=s,!0;let l=n,c;for(;(c=e.src.indexOf("`",l))!==-1;){for(l=c+1;l<o&&e.src.charCodeAt(l)===96;)l++;const f=l-c;if(f===s){if(!t){const d=e.push("code_inline","code",0);d.markup=i,d.content=e.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[f]=c}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=s,!0}function Zm(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const u=e.scanDelims(e.pos,!0);let o=u.length;const i=String.fromCharCode(r);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=i,o--);for(let l=0;l<o;l+=2)s=e.push("text","",0),s.content=i+i,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close});return e.pos+=u.length,!0}function Fi(e,t){let n;const r=[],u=t.length;for(let o=0;o<u;o++){const i=t[o];if(i.marker!==126||i.end===-1)continue;const s=t[i.end];n=e.tokens[i.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&r.push(s.token-1)}for(;r.length;){const o=r.pop();let i=o+1;for(;i<e.tokens.length&&e.tokens[i].type==="s_close";)i++;i--,o!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[o],e.tokens[o]=n)}}function Km(e){const t=e.tokens_meta,n=e.tokens_meta.length;Fi(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Fi(e,t[r].delimiters)}const Mi={tokenize:Zm,postProcess:Km};function Jm(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const u=e.scanDelims(e.pos,r===42);for(let o=0;o<u.length;o++){const i=e.push("text","",0);i.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:u.length,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close})}return e.pos+=u.length,!0}function Pi(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const u=t[r];if(u.marker!==95&&u.marker!==42||u.end===-1)continue;const o=t[u.end],i=r>0&&t[r-1].end===u.end+1&&t[r-1].marker===u.marker&&t[r-1].token===u.token-1&&t[u.end+1].token===o.token+1,s=String.fromCharCode(u.marker),l=e.tokens[u.token];l.type=i?"strong_open":"em_open",l.tag=i?"strong":"em",l.nesting=1,l.markup=i?s+s:s,l.content="";const c=e.tokens[o.token];c.type=i?"strong_close":"em_close",c.tag=i?"strong":"em",c.nesting=-1,c.markup=i?s+s:s,c.content="",i&&(e.tokens[t[r-1].token].content="",e.tokens[t[u.end+1].token].content="",r--)}}function Qm(e){const t=e.tokens_meta,n=e.tokens_meta.length;Pi(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Pi(e,t[r].delimiters)}const $i={tokenize:Jm,postProcess:Qm};function ep(e,t){let n,r,u,o,i="",s="",l=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,d=e.posMax,_=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(c=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(!ge(n)&&n!==10));m++);if(m>=d)return!1;if(l=m,u=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),u.ok){for(i=e.md.normalizeLink(u.str),e.md.validateLink(i)?m=u.pos:i="",l=m;m<d&&(n=e.src.charCodeAt(m),!(!ge(n)&&n!==10));m++);if(u=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&l!==m&&u.ok)for(s=u.str,m=u.pos;m<d&&(n=e.src.charCodeAt(m),!(!ge(n)&&n!==10));m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(c=!0),m++}if(c){if(typeof e.env.references>"u")return!1;if(m<d&&e.src.charCodeAt(m)===91?(l=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(l,m++):m=p+1):m=p+1,r||(r=e.src.slice(_,p)),o=e.env.references[Er(r)],!o)return e.pos=f,!1;i=o.href,s=o.title}if(!t){e.pos=_,e.posMax=p;const x=e.push("link_open","a",1),D=[["href",i]];x.attrs=D,s&&D.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=d,!0}function tp(e,t){let n,r,u,o,i,s,l,c,f="";const d=e.pos,_=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(o=m+1,o<_&&e.src.charCodeAt(o)===40){for(o++;o<_&&(n=e.src.charCodeAt(o),!(!ge(n)&&n!==10));o++);if(o>=_)return!1;for(c=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?o=s.pos:f=""),c=o;o<_&&(n=e.src.charCodeAt(o),!(!ge(n)&&n!==10));o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<_&&c!==o&&s.ok)for(l=s.str,o=s.pos;o<_&&(n=e.src.charCodeAt(o),!(!ge(n)&&n!==10));o++);else l="";if(o>=_||e.src.charCodeAt(o)!==41)return e.pos=d,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<_&&e.src.charCodeAt(o)===91?(c=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?u=e.src.slice(c,o++):o=m+1):o=m+1,u||(u=e.src.slice(p,m)),i=e.env.references[Er(u)],!i)return e.pos=d,!1;f=i.href,l=i.title}if(!t){r=e.src.slice(p,m);const x=[];e.md.inline.parse(r,e.md,e.env,x);const D=e.push("image","img",0),N=[["src",f],["alt",""]];D.attrs=N,D.children=x,D.content=r,l&&N.push(["title",l])}return e.pos=o,e.posMax=_,!0}const np=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,rp=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function up(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,u=e.posMax;for(;;){if(++n>=u)return!1;const i=e.src.charCodeAt(n);if(i===60)return!1;if(i===62)break}const o=e.src.slice(r+1,n);if(rp.test(o)){const i=e.md.normalizeLink(o);if(!e.md.validateLink(i))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",i]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}if(np.test(o)){const i=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(i))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",i]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}return!1}function op(e){return/^<a[>\s]/i.test(e)}function ap(e){return/^<\/a\s*>/i.test(e)}function ip(e){const t=e|32;return t>=97&&t<=122}function sp(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const u=e.src.charCodeAt(r+1);if(u!==33&&u!==63&&u!==47&&!ip(u))return!1;const o=e.src.slice(r).match($m);if(!o)return!1;if(!t){const i=e.push("html_inline","",0);i.content=o[0],op(i.content)&&e.linkLevel++,ap(i.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const lp=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,cp=/^&([a-z][a-z0-9]{1,31});/i;function fp(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(lp);if(o){if(!t){const i=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=gu(i)?yr(i):yr(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(cp);if(o){const i=xi(o[0]);if(i!==o[0]){if(!t){const s=e.push("text_special","",0);s.content=i,s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function Bi(e){const t={},n=e.length;if(!n)return;let r=0,u=-2;const o=[];for(let i=0;i<n;i++){const s=e[i];if(o.push(0),(e[r].marker!==s.marker||u!==s.token-1)&&(r=i),u=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const l=t[s.marker][(s.open?3:0)+s.length%3];let c=r-o[r]-1,f=c;for(;c>l;c-=o[c]+1){const d=e[c];if(d.marker===s.marker&&d.open&&d.end<0){let _=!1;if((d.close||s.open)&&(d.length+s.length)%3===0&&(d.length%3!==0||s.length%3!==0)&&(_=!0),!_){const p=c>0&&!e[c-1].open?o[c-1]+1:0;o[i]=i-c+p,o[c]=p,s.open=!1,d.end=i,d.close=!1,f=-1,u=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function dp(e){const t=e.tokens_meta,n=e.tokens_meta.length;Bi(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Bi(t[r].delimiters)}function _p(e){let t,n,r=0;const u=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)u[t].nesting<0&&r--,u[t].level=r,u[t].nesting>0&&r++,u[t].type==="text"&&t+1<o&&u[t+1].type==="text"?u[t+1].content=u[t].content+u[t+1].content:(t!==n&&(u[n]=u[t]),n++);t!==n&&(u.length=n)}const xu=[["text",qm],["linkify",Wm],["newline",Ym],["escape",Gm],["backticks",Xm],["strikethrough",Mi.tokenize],["emphasis",$i.tokenize],["link",ep],["image",tp],["autolink",up],["html_inline",sp],["entity",fp]],Cu=[["balance_pairs",dp],["strikethrough",Mi.postProcess],["emphasis",$i.postProcess],["fragments_join",_p]];function Bn(){this.ruler=new qe;for(let e=0;e<xu.length;e++)this.ruler.push(xu[e][0],xu[e][1]);this.ruler2=new qe;for(let e=0;e<Cu.length;e++)this.ruler2.push(Cu[e][0],Cu[e][1])}Bn.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,u=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let i=!1;if(e.level<u){for(let s=0;s<r;s++)if(e.level++,i=n[s](e,!0),e.level--,i){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;i||e.pos++,o[t]=e.pos},Bn.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,u=e.md.options.maxNesting;for(;e.pos<r;){const o=e.pos;let i=!1;if(e.level<u){for(let s=0;s<n;s++)if(i=t[s](e,!1),i){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Bn.prototype.parse=function(e,t,n,r){const u=new this.State(e,t,n,r);this.tokenize(u);const o=this.ruler2.getRules(""),i=o.length;for(let s=0;s<i;s++)o[s](u)},Bn.prototype.State=$n;function hp(e){const t={};e=e||{},t.src_Any=gi.source,t.src_Cc=bi.source,t.src_Z=Ei.source,t.src_P=_u.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function vu(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function vr(e){return Object.prototype.toString.call(e)}function mp(e){return vr(e)==="[object String]"}function pp(e){return vr(e)==="[object Object]"}function gp(e){return vr(e)==="[object RegExp]"}function Vi(e){return vr(e)==="[object Function]"}function bp(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Ri={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function yp(e){return Object.keys(e||{}).reduce(function(t,n){return t||Ri.hasOwnProperty(n)},!1)}const Ep={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},kp="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",xp="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Cp(e){e.__index__=-1,e.__text_cache__=""}function vp(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function ji(){return function(e,t){t.normalize(e)}}function wr(e){const t=e.re=hp(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(kp),n.push(t.src_xn),t.src_tlds=n.join("|");function r(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const u=[];e.__compiled__={};function o(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){const l=e.__schemas__[s];if(l===null)return;const c={validate:null,link:null};if(e.__compiled__[s]=c,pp(l)){gp(l.validate)?c.validate=vp(l.validate):Vi(l.validate)?c.validate=l.validate:o(s,l),Vi(l.normalize)?c.normalize=l.normalize:l.normalize?o(s,l):c.normalize=ji();return}if(mp(l)){u.push(s);return}o(s,l)}),u.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:ji()};const i=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(bp).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Cp(e)}function wp(e,t){const n=e.__index__,r=e.__last_index__,u=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=u,this.text=u,this.url=u}function wu(e,t){const n=new wp(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Ze(e,t){if(!(this instanceof Ze))return new Ze(e,t);t||yp(e)&&(t=e,e={}),this.__opts__=vu({},Ri,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=vu({},Ep,e),this.__compiled__={},this.__tlds__=xp,this.__tlds_replaced__=!1,this.re={},wr(this)}Ze.prototype.add=function(t,n){return this.__schemas__[t]=n,wr(this),this},Ze.prototype.set=function(t){return this.__opts__=vu(this.__opts__,t),this},Ze.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,u,o,i,s,l,c,f;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=r.index+r[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(u=t.match(this.re.email_fuzzy))!==null&&(i=u.index+u[1].length,s=u.index+u[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=s))),this.__index__>=0},Ze.prototype.pretest=function(t){return this.re.pretest.test(t)},Ze.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0},Ze.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(wu(this,r)),r=this.__last_index__);let u=r?t.slice(r):t;for(;this.test(u);)n.push(wu(this,r)),u=u.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null},Ze.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,wu(this,0)):null},Ze.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,u,o){return r!==o[u-1]}).reverse(),wr(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,wr(this),this)},Ze.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},Ze.prototype.onCompile=function(){};const pn=2147483647,pt=36,Du=1,Vn=26,Dp=38,Np=700,zi=72,Ui=128,qi="-",Ap=/^xn--/,Tp=/[^\0-\x7F]/,Sp=/[\x2E\u3002\uFF0E\uFF61]/g,Ip={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Nu=pt-Du,gt=Math.floor,Au=String.fromCharCode;function Ft(e){throw new RangeError(Ip[e])}function Op(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Hi(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(Sp,".");const u=e.split("."),o=Op(u,t).join(".");return r+o}function Wi(e){const t=[];let n=0;const r=e.length;for(;n<r;){const u=e.charCodeAt(n++);if(u>=55296&&u<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((u&1023)<<10)+(o&1023)+65536):(t.push(u),n--)}else t.push(u)}return t}const Lp=e=>String.fromCodePoint(...e),Fp=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:pt},Yi=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Gi=function(e,t,n){let r=0;for(e=n?gt(e/Np):e>>1,e+=gt(e/t);e>Nu*Vn>>1;r+=pt)e=gt(e/Nu);return gt(r+(Nu+1)*e/(e+Dp))},Xi=function(e){const t=[],n=e.length;let r=0,u=Ui,o=zi,i=e.lastIndexOf(qi);i<0&&(i=0);for(let s=0;s<i;++s)e.charCodeAt(s)>=128&&Ft("not-basic"),t.push(e.charCodeAt(s));for(let s=i>0?i+1:0;s<n;){const l=r;for(let f=1,d=pt;;d+=pt){s>=n&&Ft("invalid-input");const _=Fp(e.charCodeAt(s++));_>=pt&&Ft("invalid-input"),_>gt((pn-r)/f)&&Ft("overflow"),r+=_*f;const p=d<=o?Du:d>=o+Vn?Vn:d-o;if(_<p)break;const m=pt-p;f>gt(pn/m)&&Ft("overflow"),f*=m}const c=t.length+1;o=Gi(r-l,c,l==0),gt(r/c)>pn-u&&Ft("overflow"),u+=gt(r/c),r%=c,t.splice(r++,0,u)}return String.fromCodePoint(...t)},Zi=function(e){const t=[];e=Wi(e);const n=e.length;let r=Ui,u=0,o=zi;for(const l of e)l<128&&t.push(Au(l));const i=t.length;let s=i;for(i&&t.push(qi);s<n;){let l=pn;for(const f of e)f>=r&&f<l&&(l=f);const c=s+1;l-r>gt((pn-u)/c)&&Ft("overflow"),u+=(l-r)*c,r=l;for(const f of e)if(f<r&&++u>pn&&Ft("overflow"),f===r){let d=u;for(let _=pt;;_+=pt){const p=_<=o?Du:_>=o+Vn?Vn:_-o;if(d<p)break;const m=d-p,x=pt-p;t.push(Au(Yi(p+m%x,0))),d=gt(m/x)}t.push(Au(Yi(d,0))),o=Gi(u,c,s===i),u=0,++s}++u,++r}return t.join("")},Ki={version:"2.3.1",ucs2:{decode:Wi,encode:Lp},decode:Xi,encode:Zi,toASCII:function(e){return Hi(e,function(t){return Tp.test(t)?"xn--"+Zi(t):t})},toUnicode:function(e){return Hi(e,function(t){return Ap.test(t)?Xi(t.slice(4).toLowerCase()):t})}},Mp={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},Pp=/^(vbscript|javascript|file|data):/,$p=/^data:image\/(gif|png|jpeg|webp);/;function Bp(e){const t=e.trim().toLowerCase();return Pp.test(t)?$p.test(t):!0}const Ji=["http:","https:","mailto:"];function Vp(e){const t=du(e,!0);if(t.hostname&&(!t.protocol||Ji.indexOf(t.protocol)>=0))try{t.hostname=Ki.toASCII(t.hostname)}catch{}return Ln(fu(t))}function Rp(e){const t=du(e,!0);if(t.hostname&&(!t.protocol||Ji.indexOf(t.protocol)>=0))try{t.hostname=Ki.toUnicode(t.hostname)}catch{}return dn(fu(t),dn.defaultChars+"%")}function nt(e,t){if(!(this instanceof nt))return new nt(e,t);t||pu(e)||(t=e||{},e="default"),this.inline=new Bn,this.block=new Cr,this.core=new yu,this.renderer=new hn,this.linkify=new Ze,this.validateLink=Bp,this.normalizeLink=Vp,this.normalizeLinkText=Rp,this.utils=Kh,this.helpers=br({},tm),this.options={},this.configure(e),t&&this.set(t)}nt.prototype.set=function(e){return br(this.options,e),this},nt.prototype.configure=function(e){const t=this;if(pu(e)){const n=e;if(e=Mp[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},nt.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},nt.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},nt.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},nt.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},nt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},nt.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},nt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const jp=["innerHTML"],zp={__name:"MarkdownViewer",props:{content:{type:String,default:`| 早餐 | | 午餐 |
|
|
49
49
|
|------------|----------|----|
|
|
50
50
|
| 热量:450kcal | | 热量:450kcal |
|
|
51
51
|
| 碳水:62.3g | | 碳水:62.3g |
|
|
@@ -58,14 +58,14 @@ ${c}`:l)}else throw i},onCacheKey:i=>Is(t,n,i)}}function hc(e){if(M(e))return e;
|
|
|
58
58
|
| 热量:450kcal | | 热量:450kcal |
|
|
59
59
|
| 碳水:62.3g | | 碳水:62.3g |
|
|
60
60
|
| 蛋白质:15.5g | | 蛋白质:15.5g |
|
|
61
|
-
| 脂肪:12.5g | | 脂肪:12.5g |`}},setup(e){const t=new et,n=e,r=a.computed(()=>t.render(n.content));return(u,o)=>(a.openBlock(),a.createElementBlock("div",{innerHTML:r.value},null,8,jp))}},Up={},qp={width:"1em",height:"1em",viewBox:"0 0 44 44",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function Hp(e,t){return a.openBlock(),a.createElementBlock("svg",qp,t[0]||(t[0]=[a.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a.createElementVNode("g",{transform:"translate(44, 0) rotate(90)"},[a.createElementVNode("polyline",{stroke:"currentColor","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",points:"16 10 28 22 16 34"})])],-1)]))}const Wp=ge(Up,[["render",Hp]]),Yp={class:"pup_header"},Gp={class:"left"},Xp={class:"title"},Zp={class:"right"},Kp={class:"pup_content",style:{height:"calc(height - 56px)"}},Jp=ge({__name:"popup",props:{show:{type:Boolean,default:!1},height:{type:String,default:"50vh"},title:{type:String,default:""}},emits:["update:show","confirm","close"],setup(e,{emit:t}){const{t:n}=at(),r=e,u=t,o=a.ref(!1),i=a.ref(`-${r.height}`),s=a.ref({delay:300,bottom:`-${r.height}`,opacity:0}),l=d=>{d?(s.value.bottom="0",s.value.opacity=.5):(s.value.bottom=`-${r.height}`,s.value.opacity=0)},c=()=>{u("confirm",{})};a.watch(()=>r.show,(d,_)=>{d?(i.value=`-${r.height}`,o.value=!0,setTimeout(()=>{l(!0)},0)):(l(!1),setTimeout(()=>{o.value=!1},300))});const f=()=>{u("update:show",!1),l(!1),setTimeout(()=>{o.value=!1},300)};return(d,_)=>o.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"pup_mask",style:a.normalizeStyle({backgroundColor:`rgba(0, 0, 0, ${s.value.opacity})`}),onClick:a.withModifiers(f,["stop"])},[a.createElementVNode("div",{class:"pup_wrap",style:a.normalizeStyle({height:e.height,bottom:s.value.bottom}),onClick:a.withModifiers(()=>{},["stop"])},[a.createElementVNode("div",Yp,[a.createElementVNode("div",Gp,[a.createElementVNode("div",{class:"icon_down",onClick:a.withModifiers(f,["stop"])},[a.createVNode(Wp)])]),a.createElementVNode("div",Xp,a.toDisplayString(e.title),1),a.createElementVNode("div",Zp,[a.createElementVNode("div",{class:"btn",onClick:c},a.toDisplayString(a.unref(n)("common_confirm")),1)])]),a.createElementVNode("div",Kp,[a.renderSlot(d.$slots,"default",{},void 0,!0)])],4)],4)):a.createCommentVNode("",!0)}},[["__scopeId","data-v-bf0a2e37"]]);function Qp(){}const ct=Object.assign,Tu=typeof window<"u",Vn=e=>e!==null&&typeof e=="object",Ve=e=>e!=null,Dr=e=>typeof e=="function",Qi=e=>Vn(e)&&Dr(e.then)&&Dr(e.catch),es=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),e2=()=>Tu?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function ts(e,t){const n=t.split(".");let r=e;return n.forEach(u=>{var o;r=Vn(r)&&(o=r[u])!=null?o:""}),r}function t2(e,t,n){return t.reduce((r,u)=>(r[u]=e[u],r),{})}const ns=e=>Array.isArray(e)?e:[e],Mt=null,Se=[Number,String],Pt={type:Boolean,default:!0},n2=e=>({type:Number,default:e}),r2=e=>({type:Se,default:e}),$e=e=>({type:String,default:e});var Su=typeof window<"u";function u2(e){const t=a.inject(e,null);if(t){const n=a.getCurrentInstance(),{link:r,unlink:u,internalChildren:o}=t;r(n),a.onUnmounted(()=>u(n));const i=a.computed(()=>o.indexOf(n));return{parent:t,index:i}}return{parent:null,index:a.ref(-1)}}function rs(e){let t;a.onMounted(()=>{e(),a.nextTick(()=>{t=!0})}),a.onActivated(()=>{t&&e()})}function Iu(e,t,n={}){if(!Su)return;const{target:r=window,passive:u=!1,capture:o=!1}=n;let i=!1,s;const l=d=>{if(i)return;const _=a.unref(d);_&&!s&&(_.addEventListener(e,t,{capture:o,passive:u}),s=!0)},c=d=>{if(i)return;const _=a.unref(d);_&&s&&(_.removeEventListener(e,t,o),s=!1)};a.onUnmounted(()=>c(r)),a.onDeactivated(()=>c(r)),rs(()=>l(r));let f;return a.isRef(r)&&(f=a.watch(r,(d,_)=>{c(_),l(d)})),()=>{f==null||f(),c(r),i=!0}}var Nr,Ou;function o2(){if(!Nr&&(Nr=a.ref(0),Ou=a.ref(0),Su)){const e=()=>{Nr.value=window.innerWidth,Ou.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:Nr,height:Ou}}var a2=/scroll|auto|overlay/i,i2=Su?window:void 0;function s2(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function l2(e,t=i2){let n=e;for(;n&&n!==t&&s2(n);){const{overflowY:r}=window.getComputedStyle(n);if(a2.test(r))return n;n=n.parentNode}return t}var c2=Symbol("van-field");function us(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function os(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function as(e){us(window,e),us(document.body,e)}const f2=e2();function d2(){f2&&as(os())}const _2=e=>e.stopPropagation();function Rn(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&_2(e)}o2();function Ze(e){if(Ve(e))return es(e)?`${e}px`:String(e)}function h2(e){if(Ve(e)){if(Array.isArray(e))return{width:Ze(e[0]),height:Ze(e[1])};const t=Ze(e);return{width:t,height:t}}}function m2(e){const t={};return e!==void 0&&(t.zIndex=+e),t}const p2=/-(\w)/g,is=e=>e.replace(p2,(t,n)=>n.toUpperCase()),g2=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,""),b2=(e,t,n)=>Math.min(Math.max(e,t),n);function ss(e,t,n){const r=e.indexOf(t);return r===-1?e:t==="-"&&r!==0?e.slice(0,r):e.slice(0,r+1)+e.slice(r).replace(n,"")}function y2(e,t=!0,n=!0){t?e=ss(e,".",/\./g):e=e.split(".")[0],n?e=ss(e,"-",/-/g):e=e.replace(/-/,"");const r=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(r,"")}const{hasOwnProperty:E2}=Object.prototype;function k2(e,t,n){const r=t[n];Ve(r)&&(!E2.call(e,n)||!Vn(r)?e[n]=r:e[n]=ls(Object(e[n]),r))}function ls(e,t){return Object.keys(t).forEach(n=>{k2(e,t,n)}),e}var x2={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>`${e}年${t}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const cs=a.ref("zh-CN"),fs=a.reactive({"zh-CN":x2});var C2={messages(){return fs[cs.value]},use(e,t){cs.value=e,this.add({[e]:t})},add(e={}){ls(fs,e)}};function v2(e){const t=is(e)+".";return(n,...r)=>{const u=C2.messages(),o=ts(u,t+n)||ts(u,n);return Dr(o)?o(...r):o}}function Lu(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((n,r)=>n+Lu(e,r),""):Object.keys(t).reduce((n,r)=>n+(t[r]?Lu(e,r):""),""):""}function w2(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${Lu(t,n)}`)}function wt(e){const t=`van-${e}`;return[t,w2(t),v2(t)]}const D2="van-haptics-feedback",N2=Symbol("van-form"),ds=5;function A2(e,{args:t=[],done:n,canceled:r,error:u}){if(e){const o=e.apply(null,t);Qi(o)?o.then(i=>{i?n():r&&r()}).catch(u||Qp):o?n():r&&r()}else n()}function $t(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(is(`-${n}`),e))},e}const T2=Symbol();function Fu(e){const t=a.getCurrentInstance();t&&ct(t.proxy,e)}const S2={to:[String,Object],url:String,replace:Boolean};function I2({to:e,url:t,replace:n,$router:r}){e&&r?r[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function O2(){const e=a.getCurrentInstance().proxy;return()=>I2(e)}const[L2,_s]=wt("badge"),F2={dot:Boolean,max:Se,tag:$e("div"),color:String,offset:Array,content:Se,showZero:Pt,position:$e("top-right")};var M2=a.defineComponent({name:L2,props:F2,setup(e,{slots:t}){const n=()=>{if(t.content)return!0;const{content:s,showZero:l}=e;return Ve(s)&&s!==""&&(l||s!==0&&s!=="0")},r=()=>{const{dot:s,max:l,content:c}=e;if(!s&&n())return t.content?t.content():Ve(l)&&es(c)&&+c>+l?`${l}+`:c},u=s=>s.startsWith("-")?s.replace("-",""):`-${s}`,o=a.computed(()=>{const s={background:e.color};if(e.offset){const[l,c]=e.offset,{position:f}=e,[d,_]=f.split("-");t.default?(typeof c=="number"?s[d]=Ze(d==="top"?c:-c):s[d]=d==="top"?Ze(c):u(c),typeof l=="number"?s[_]=Ze(_==="left"?l:-l):s[_]=_==="left"?Ze(l):u(l)):(s.marginTop=Ze(c),s.marginLeft=Ze(l))}return s}),i=()=>{if(n()||e.dot)return a.createVNode("div",{class:_s([e.position,{dot:e.dot,fixed:!!t.default}]),style:o.value},[r()])};return()=>{if(t.default){const{tag:s}=e;return a.createVNode(s,{class:_s("wrapper")},{default:()=>[t.default(),i()]})}return i()}}});const P2=$t(M2);let hs=2e3;const $2=()=>++hs,B2=e=>{hs=e},[ms,V2]=wt("config-provider"),ps=Symbol(ms),R2={tag:$e("div"),theme:$e("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:$e("local"),iconPrefix:String};function j2(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function z2(e){const t={};return Object.keys(e).forEach(n=>{const r=j2(g2(n));t[`--van-${r}`]=e[n]}),t}function Ar(e={},t={}){Object.keys(e).forEach(n=>{e[n]!==t[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(t).forEach(n=>{e[n]||document.documentElement.style.removeProperty(n)})}a.defineComponent({name:ms,props:R2,setup(e,{slots:t}){const n=a.computed(()=>z2(ct({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(Tu){const r=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},u=(o=e.theme)=>{document.documentElement.classList.remove(`van-theme-${o}`)};a.watch(()=>e.theme,(o,i)=>{i&&u(i),r()},{immediate:!0}),a.onActivated(r),a.onDeactivated(u),a.onBeforeUnmount(u),a.watch(n,(o,i)=>{e.themeVarsScope==="global"&&Ar(o,i)}),a.watch(()=>e.themeVarsScope,(o,i)=>{i==="global"&&Ar({},n.value),o==="global"&&Ar(n.value,{})}),e.themeVarsScope==="global"&&Ar(n.value,{})}return a.provide(ps,e),a.watchEffect(()=>{e.zIndex!==void 0&&B2(e.zIndex)}),()=>a.createVNode(e.tag,{class:V2(),style:e.themeVarsScope==="local"?n.value:void 0},{default:()=>{var r;return[(r=t.default)==null?void 0:r.call(t)]}})}});const[U2,gs]=wt("icon"),q2=e=>e==null?void 0:e.includes("/"),H2={dot:Boolean,tag:$e("i"),name:String,size:Se,badge:Se,color:String,badgeProps:Object,classPrefix:String};var W2=a.defineComponent({name:U2,props:H2,setup(e,{slots:t}){const n=a.inject(ps,null),r=a.computed(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||gs());return()=>{const{tag:u,dot:o,name:i,size:s,badge:l,color:c}=e,f=q2(i);return a.createVNode(P2,a.mergeProps({dot:o,tag:u,class:[r.value,f?"":`${r.value}-${i}`],style:{color:c,fontSize:Ze(s)},content:l},e.badgeProps),{default:()=>{var d;return[(d=t.default)==null?void 0:d.call(t),f&&a.createVNode("img",{class:gs("image"),src:i},null)]}})}}});const Yt=$t(W2),[Y2,jn]=wt("loading"),G2=Array(12).fill(null).map((e,t)=>a.createVNode("i",{class:jn("line",String(t+1))},null)),X2=a.createVNode("svg",{class:jn("circular"),viewBox:"25 25 50 50"},[a.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),Z2={size:Se,type:$e("circular"),color:String,vertical:Boolean,textSize:Se,textColor:String};var K2=a.defineComponent({name:Y2,props:Z2,setup(e,{slots:t}){const n=a.computed(()=>ct({color:e.color},h2(e.size))),r=()=>{const o=e.type==="spinner"?G2:X2;return a.createVNode("span",{class:jn("spinner",e.type),style:n.value},[t.icon?t.icon():o])},u=()=>{var o;if(t.default)return a.createVNode("span",{class:jn("text"),style:{fontSize:Ze(e.textSize),color:(o=e.textColor)!=null?o:e.color}},[t.default()])};return()=>{const{type:o,vertical:i}=e;return a.createVNode("div",{class:jn([o,{vertical:i}]),"aria-live":"polite","aria-busy":!0},[r(),u()])}}});const J2=$t(K2),Q2={show:Boolean,zIndex:Se,overlay:Pt,duration:Se,teleport:[String,Object],lockScroll:Pt,lazyRender:Pt,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:Mt,transitionAppear:Boolean,closeOnClickOverlay:Pt};function eg(e,t){return e>t?"horizontal":t>e?"vertical":""}function tg(){const e=a.ref(0),t=a.ref(0),n=a.ref(0),r=a.ref(0),u=a.ref(0),o=a.ref(0),i=a.ref(""),s=a.ref(!0),l=()=>i.value==="vertical",c=()=>i.value==="horizontal",f=()=>{n.value=0,r.value=0,u.value=0,o.value=0,i.value="",s.value=!0};return{move:p=>{const m=p.touches[0];n.value=(m.clientX<0?0:m.clientX)-e.value,r.value=m.clientY-t.value,u.value=Math.abs(n.value),o.value=Math.abs(r.value);const C=10;(!i.value||u.value<C&&o.value<C)&&(i.value=eg(u.value,o.value)),s.value&&(u.value>ds||o.value>ds)&&(s.value=!1)},start:p=>{f(),e.value=p.touches[0].clientX,t.value=p.touches[0].clientY},reset:f,startX:e,startY:t,deltaX:n,deltaY:r,offsetX:u,offsetY:o,direction:i,isVertical:l,isHorizontal:c,isTap:s}}let zn=0;const bs="van-overflow-hidden";function ng(e,t){const n=tg(),r="01",u="10",o=f=>{n.move(f);const d=n.deltaY.value>0?u:r,_=l2(f.target,e.value),{scrollHeight:p,offsetHeight:m,scrollTop:C}=_;let D="11";C===0?D=m>=p?"00":"01":C+m>=p&&(D="10"),D!=="11"&&n.isVertical()&&!(parseInt(D,2)&parseInt(d,2))&&Rn(f,!0)},i=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,{passive:!1}),zn||document.body.classList.add(bs),zn++},s=()=>{zn&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),zn--,zn||document.body.classList.remove(bs))},l=()=>t()&&i(),c=()=>t()&&s();rs(l),a.onDeactivated(c),a.onBeforeUnmount(c),a.watch(t,f=>{f?i():s()})}function ys(e){const t=a.ref(!1);return a.watch(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}const Es=()=>{var e;const{scopeId:t}=((e=a.getCurrentInstance())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[rg,ug]=wt("overlay"),og={show:Boolean,zIndex:Se,duration:Se,className:Mt,lockScroll:Pt,lazyRender:Pt,customStyle:Object,teleport:[String,Object]};var ag=a.defineComponent({name:rg,inheritAttrs:!1,props:og,setup(e,{attrs:t,slots:n}){const r=a.ref(),u=ys(()=>e.show||!e.lazyRender),o=s=>{e.lockScroll&&Rn(s,!0)},i=u(()=>{var s;const l=ct(m2(e.zIndex),e.customStyle);return Ve(e.duration)&&(l.animationDuration=`${e.duration}s`),a.withDirectives(a.createVNode("div",a.mergeProps({ref:r,style:l,class:[ug(),e.className]},t),[(s=n.default)==null?void 0:s.call(n)]),[[a.vShow,e.show]])});return Iu("touchmove",o,{target:r}),()=>{const s=a.createVNode(a.Transition,{name:"van-fade",appear:!0},{default:i});return e.teleport?a.createVNode(a.Teleport,{to:e.teleport},{default:()=>[s]}):s}}});const ig=$t(ag),sg=ct({},Q2,{round:Boolean,position:$e("center"),closeIcon:$e("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:$e("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[lg,ks]=wt("popup");var cg=a.defineComponent({name:lg,inheritAttrs:!1,props:sg,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:n,slots:r}){let u,o;const i=a.ref(),s=a.ref(),l=ys(()=>e.show||!e.lazyRender),c=a.computed(()=>{const h={zIndex:i.value};if(Ve(e.duration)){const x=e.position==="center"?"animationDuration":"transitionDuration";h[x]=`${e.duration}s`}return h}),f=()=>{u||(u=!0,i.value=e.zIndex!==void 0?+e.zIndex:$2(),t("open"))},d=()=>{u&&A2(e.beforeClose,{done(){u=!1,t("close"),t("update:show",!1)}})},_=h=>{t("clickOverlay",h),e.closeOnClickOverlay&&d()},p=()=>{if(e.overlay){const h=ct({show:e.show,class:e.overlayClass,zIndex:i.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps);return a.createVNode(ig,a.mergeProps(h,Es(),{onClick:_}),{default:r["overlay-content"]})}},m=h=>{t("clickCloseIcon",h),d()},C=()=>{if(e.closeable)return a.createVNode(Yt,{role:"button",tabindex:0,name:e.closeIcon,class:[ks("close-icon",e.closeIconPosition),D2],classPrefix:e.iconPrefix,onClick:m},null)};let D;const N=()=>{D&&clearTimeout(D),D=setTimeout(()=>{t("opened")})},v=()=>t("closed"),g=h=>t("keydown",h),E=l(()=>{var h;const{destroyOnClose:x,round:k,position:T,safeAreaInsetTop:$,safeAreaInsetBottom:z,show:V}=e;if(!(!V&&x))return a.withDirectives(a.createVNode("div",a.mergeProps({ref:s,style:c.value,role:"dialog",tabindex:0,class:[ks({round:k,[T]:T}),{"van-safe-area-top":$,"van-safe-area-bottom":z}],onKeydown:g},n,Es()),[(h=r.default)==null?void 0:h.call(r),C()]),[[a.vShow,V]])}),w=()=>{const{position:h,transition:x,transitionAppear:k}=e,T=h==="center"?"van-fade":`van-popup-slide-${h}`;return a.createVNode(a.Transition,{name:x||T,appear:k,onAfterEnter:N,onAfterLeave:v},{default:E})};return a.watch(()=>e.show,h=>{h&&!u&&(f(),n.tabindex===0&&a.nextTick(()=>{var x;(x=s.value)==null||x.focus()})),!h&&u&&(u=!1,t("close"))}),Fu({popupRef:s}),ng(s,()=>e.show&&e.lockScroll),Iu("popstate",()=>{e.closeOnPopstate&&(d(),o=!1)}),a.onMounted(()=>{e.show&&f()}),a.onActivated(()=>{o&&(t("update:show",!0),o=!1)}),a.onDeactivated(()=>{e.show&&e.teleport&&(d(),o=!0)}),a.provide(T2,()=>e.show),()=>e.teleport?a.createVNode(a.Teleport,{to:e.teleport},{default:()=>[p(),w()]}):a.createVNode(a.Fragment,null,[p(),w()])}});const fg=$t(cg);let dg=0;function _g(){const e=a.getCurrentInstance(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return process.env.NODE_ENV==="test"?t:`${t}-${++dg}`}const[hg,pn]=wt("cell"),xs={tag:$e("div"),icon:String,size:String,title:Se,value:Se,label:Se,center:Boolean,isLink:Boolean,border:Pt,iconPrefix:String,valueClass:Mt,labelClass:Mt,titleClass:Mt,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},mg=ct({},xs,S2);var pg=a.defineComponent({name:hg,props:mg,setup(e,{slots:t}){const n=O2(),r=()=>{if(t.label||Ve(e.label))return a.createVNode("div",{class:[pn("label"),e.labelClass]},[t.label?t.label():e.label])},u=()=>{var l;if(t.title||Ve(e.title)){const c=(l=t.title)==null?void 0:l.call(t);return Array.isArray(c)&&c.length===0?void 0:a.createVNode("div",{class:[pn("title"),e.titleClass],style:e.titleStyle},[c||a.createVNode("span",null,[e.title]),r()])}},o=()=>{const l=t.value||t.default;if(l||Ve(e.value))return a.createVNode("div",{class:[pn("value"),e.valueClass]},[l?l():a.createVNode("span",null,[e.value])])},i=()=>{if(t.icon)return t.icon();if(e.icon)return a.createVNode(Yt,{name:e.icon,class:pn("left-icon"),classPrefix:e.iconPrefix},null)},s=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const l=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return a.createVNode(Yt,{name:l,class:pn("right-icon")},null)}};return()=>{var l;const{tag:c,size:f,center:d,border:_,isLink:p,required:m}=e,C=(l=e.clickable)!=null?l:p,D={center:d,required:!!m,clickable:C,borderless:!_};return f&&(D[f]=!!f),a.createVNode(c,{class:pn(D),role:C?"button":void 0,tabindex:C?0:void 0,onClick:n},{default:()=>{var N;return[i(),u(),o(),s(),(N=t.extra)==null?void 0:N.call(t)]}})}}});const gg=$t(pg);function Cs(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function bg(e,t){if(Cs(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function yg(e,t){return new Promise(n=>{const r=t.validator(e,t);if(Qi(r)){r.then(n);return}n(r)})}function vs(e,t){const{message:n}=t;return Dr(n)?n(e,t):n||""}function Eg({target:e}){e.composing=!0}function ws({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function kg(e,t){const n=os();e.style.height="auto";let r=e.scrollHeight;if(Vn(t)){const{maxHeight:u,minHeight:o}=t;u!==void 0&&(r=Math.min(r,u)),o!==void 0&&(r=Math.max(r,o))}r&&(e.style.height=`${r}px`,as(n))}function xg(e,t){return e==="number"&&(e="text",t??(t="decimal")),e==="digit"&&(e="tel",t??(t="numeric")),{type:e,inputmode:t}}function Dt(e){return[...e].length}function Mu(e,t){return[...e].slice(0,t).join("")}const[Cg,tt]=wt("field"),vg={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:Se,max:Number,min:Number,formatter:Function,clearIcon:$e("clear"),modelValue:r2(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:$e("focus"),formatTrigger:$e("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},wg=ct({},xs,vg,{rows:Se,type:$e("text"),rules:Array,autosize:[Boolean,Object],labelWidth:Se,labelClass:Mt,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var Dg=a.defineComponent({name:Cg,props:wg,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n}){const r=_g(),u=a.reactive({status:"unvalidated",focused:!1,validateMessage:""}),o=a.ref(),i=a.ref(),s=a.ref(),{parent:l}=u2(N2),c=()=>{var A;return String((A=e.modelValue)!=null?A:"")},f=A=>{if(Ve(e[A]))return e[A];if(l&&Ve(l.props[A]))return l.props[A]},d=a.computed(()=>{const A=f("readonly");if(e.clearable&&!A){const G=c()!=="",X=e.clearTrigger==="always"||e.clearTrigger==="focus"&&u.focused;return G&&X}return!1}),_=a.computed(()=>s.value&&n.input?s.value():e.modelValue),p=a.computed(()=>{var A;const G=f("required");return G==="auto"?(A=e.rules)==null?void 0:A.some(X=>X.required):G}),m=A=>A.reduce((G,X)=>G.then(()=>{if(u.status==="failed")return;let{value:ne}=_;if(X.formatter&&(ne=X.formatter(ne,X)),!bg(ne,X)){u.status="failed",u.validateMessage=vs(ne,X);return}if(X.validator)return Cs(ne)&&X.validateEmpty===!1?void 0:yg(ne,X).then(ke=>{ke&&typeof ke=="string"?(u.status="failed",u.validateMessage=ke):ke===!1&&(u.status="failed",u.validateMessage=vs(ne,X))})}),Promise.resolve()),C=()=>{u.status="unvalidated",u.validateMessage=""},D=()=>t("endValidate",{status:u.status,message:u.validateMessage}),N=(A=e.rules)=>new Promise(G=>{C(),A?(t("startValidate"),m(A).then(()=>{u.status==="failed"?(G({name:e.name,message:u.validateMessage}),D()):(u.status="passed",G(),D())})):G()}),v=A=>{if(l&&e.rules){const{validateTrigger:G}=l.props,X=ns(G).includes(A),ne=e.rules.filter(ke=>ke.trigger?ns(ke.trigger).includes(A):X);ne.length&&N(ne)}},g=A=>{var G;const{maxlength:X}=e;if(Ve(X)&&Dt(A)>+X){const ne=c();if(ne&&Dt(ne)===+X)return ne;const ke=(G=o.value)==null?void 0:G.selectionEnd;if(u.focused&&ke){const de=[...A],Ne=de.length-+X;return de.splice(ke-Ne,Ne),de.join("")}return Mu(A,+X)}return A},E=(A,G="onChange")=>{var X,ne;const ke=A;A=g(A);const de=Dt(ke)-Dt(A);if(e.type==="number"||e.type==="digit"){const O=e.type==="number";if(A=y2(A,O,O),G==="onBlur"&&A!==""&&(e.min!==void 0||e.max!==void 0)){const H=b2(+A,(X=e.min)!=null?X:-1/0,(ne=e.max)!=null?ne:1/0);+A!==H&&(A=H.toString())}}let Ne=0;if(e.formatter&&G===e.formatTrigger){const{formatter:O,maxlength:H}=e;if(A=O(A),Ve(H)&&Dt(A)>+H&&(A=Mu(A,+H)),o.value&&u.focused){const{selectionEnd:We}=o.value,nt=Mu(ke,We);Ne=Dt(O(nt))-Dt(nt)}}if(o.value&&o.value.value!==A)if(u.focused){let{selectionStart:O,selectionEnd:H}=o.value;if(o.value.value=A,Ve(O)&&Ve(H)){const We=Dt(A);de?(O-=de,H-=de):Ne&&(O+=Ne,H+=Ne),o.value.setSelectionRange(Math.min(O,We),Math.min(H,We))}}else o.value.value=A;A!==e.modelValue&&t("update:modelValue",A)},w=A=>{A.target.composing||E(A.target.value)},h=()=>{var A;return(A=o.value)==null?void 0:A.blur()},x=()=>{var A;return(A=o.value)==null?void 0:A.focus()},k=()=>{const A=o.value;e.type==="textarea"&&e.autosize&&A&&kg(A,e.autosize)},T=A=>{u.focused=!0,t("focus",A),a.nextTick(k),f("readonly")&&h()},$=A=>{u.focused=!1,E(c(),"onBlur"),t("blur",A),!f("readonly")&&(v("onBlur"),a.nextTick(k),d2())},z=A=>t("clickInput",A),V=A=>t("clickLeftIcon",A),ae=A=>t("clickRightIcon",A),U=A=>{Rn(A),t("update:modelValue",""),t("clear",A)},W=a.computed(()=>{if(typeof e.error=="boolean")return e.error;if(l&&l.props.showError&&u.status==="failed")return!0}),R=a.computed(()=>{const A=f("labelWidth"),G=f("labelAlign");if(A&&G!=="top")return{width:Ze(A)}}),ye=A=>{A.keyCode===13&&(!(l&&l.props.submitOnEnter)&&e.type!=="textarea"&&Rn(A),e.type==="search"&&h()),t("keypress",A)},Oe=()=>e.id||`${r}-input`,P=()=>u.status,J=()=>{const A=tt("control",[f("inputAlign"),{error:W.value,custom:!!n.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(n.input)return a.createVNode("div",{class:A,onClick:z},[n.input()]);const G={id:Oe(),ref:o,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:A,disabled:f("disabled"),readonly:f("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,enterkeyhint:e.enterkeyhint,spellcheck:e.spellcheck,"aria-labelledby":e.label?`${r}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:$,onFocus:T,onInput:w,onClick:z,onChange:ws,onKeypress:ye,onCompositionend:ws,onCompositionstart:Eg};return e.type==="textarea"?a.createVNode("textarea",a.mergeProps(G,{inputmode:e.inputmode}),null):a.createVNode("input",a.mergeProps(xg(e.type,e.inputmode),G),null)},F=()=>{const A=n["left-icon"];if(e.leftIcon||A)return a.createVNode("div",{class:tt("left-icon"),onClick:V},[A?A():a.createVNode(Yt,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},ee=()=>{const A=n["right-icon"];if(e.rightIcon||A)return a.createVNode("div",{class:tt("right-icon"),onClick:ae},[A?A():a.createVNode(Yt,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},Z=()=>{if(e.showWordLimit&&e.maxlength){const A=Dt(c());return a.createVNode("div",{class:tt("word-limit")},[a.createVNode("span",{class:tt("word-num")},[A]),a.createTextVNode("/"),e.maxlength])}},Ie=()=>{if(l&&l.props.showErrorMessage===!1)return;const A=e.errorMessage||u.validateMessage;if(A){const G=n["error-message"],X=f("errorMessageAlign");return a.createVNode("div",{class:tt("error-message",X)},[G?G({message:A}):A])}},ue=()=>{const A=f("labelWidth"),G=f("labelAlign"),X=f("colon")?":":"";if(n.label)return[n.label(),X];if(e.label)return a.createVNode("label",{id:`${r}-label`,for:n.input?void 0:Oe(),"data-allow-mismatch":"attribute",onClick:ne=>{Rn(ne),x()},style:G==="top"&&A?{width:Ze(A)}:void 0},[e.label+X])},ft=()=>[a.createVNode("div",{class:tt("body")},[J(),d.value&&a.createVNode(Yt,{ref:i,name:e.clearIcon,class:tt("clear")},null),ee(),n.button&&a.createVNode("div",{class:tt("button")},[n.button()])]),Z(),Ie()];return Fu({blur:h,focus:x,validate:N,formValue:_,resetValidation:C,getValidationStatus:P}),a.provide(c2,{customValue:s,resetValidation:C,validateWithTrigger:v}),a.watch(()=>e.modelValue,()=>{E(c()),C(),v("onChange"),a.nextTick(k)}),a.onMounted(()=>{E(c(),e.formatTrigger),a.nextTick(k)}),Iu("touchstart",U,{target:a.computed(()=>{var A;return(A=i.value)==null?void 0:A.$el})}),()=>{const A=f("disabled"),G=f("labelAlign"),X=F(),ne=()=>{const ke=ue();return G==="top"?[X,ke].filter(Boolean):ke||[]};return a.createVNode(gg,{size:e.size,class:tt({error:W.value,disabled:A,[`label-${G}`]:G}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:R.value,valueClass:tt("value"),titleClass:[tt("label",[G,{required:p.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:X&&G!=="top"?()=>X:null,title:ne,value:ft,extra:n.extra})}}});const Ng=$t(Dg);let Un=0;function Ag(e){e?(Un||document.body.classList.add("van-toast--unclickable"),Un++):Un&&(Un--,Un||document.body.classList.remove("van-toast--unclickable"))}const[Tg,gn]=wt("toast"),Sg=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],Ig={icon:String,show:Boolean,type:$e("text"),overlay:Boolean,message:Se,iconSize:Se,duration:n2(2e3),position:$e("middle"),teleport:[String,Object],wordBreak:String,className:Mt,iconPrefix:String,transition:$e("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:Mt,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:Se};var Ds=a.defineComponent({name:Tg,props:Ig,emits:["update:show"],setup(e,{emit:t,slots:n}){let r,u=!1;const o=()=>{const d=e.show&&e.forbidClick;u!==d&&(u=d,Ag(u))},i=d=>t("update:show",d),s=()=>{e.closeOnClick&&i(!1)},l=()=>clearTimeout(r),c=()=>{const{icon:d,type:_,iconSize:p,iconPrefix:m,loadingType:C}=e;if(d||_==="success"||_==="fail")return a.createVNode(Yt,{name:d||_,size:p,class:gn("icon"),classPrefix:m},null);if(_==="loading")return a.createVNode(J2,{class:gn("loading"),size:p,type:C},null)},f=()=>{const{type:d,message:_}=e;if(n.message)return a.createVNode("div",{class:gn("text")},[n.message()]);if(Ve(_)&&_!=="")return d==="html"?a.createVNode("div",{key:0,class:gn("text"),innerHTML:String(_)},null):a.createVNode("div",{class:gn("text")},[_])};return a.watch(()=>[e.show,e.forbidClick],o),a.watch(()=>[e.show,e.type,e.message,e.duration],()=>{l(),e.show&&e.duration>0&&(r=setTimeout(()=>{i(!1)},e.duration))}),a.onMounted(o),a.onUnmounted(o),()=>a.createVNode(fg,a.mergeProps({class:[gn([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:s,onClosed:l,"onUpdate:show":i},t2(e,Sg)),{default:()=>[c(),f()]})}});function Og(){const e=a.reactive({show:!1}),t=u=>{e.show=u},n=u=>{ct(e,u,{transitionAppear:!0}),t(!0)},r=()=>t(!1);return Fu({open:n,close:r,toggle:t}),{open:n,close:r,state:e,toggle:t}}function Lg(e){const t=a.createApp(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}const Fg={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let Tr=[],Mg=!1,Ns=ct({},Fg);const Pg=new Map;function $g(e){return Vn(e)?e:{message:e}}function Bg(){const{instance:e}=Lg({setup(){const t=a.ref(""),{open:n,state:r,close:u,toggle:o}=Og(),i=()=>{},s=()=>{const l={onClosed:i,"onUpdate:show":o};return a.createVNode(Ds,a.mergeProps(r,l),null)};return a.watch(t,l=>{r.message=l}),a.getCurrentInstance().render=s,{open:n,close:u,message:t}}});return e}function Vg(){if(!Tr.length||Mg){const e=Bg();Tr.push(e)}return Tr[Tr.length-1]}function bt(e={}){if(!Tu)return{};const t=Vg(),n=$g(e);return t.open(ct({},Ns,Pg.get(n.type||Ns.type),n)),t}$t(Ds);const Rg={class:"pf_wrap"},jg={class:"pf_form"},zg=["onClick"],Ug={key:0,class:"sex_wrap"},qg={key:1,class:"input_wrap"},Hg={class:"unit"},Wg={key:2,class:"sport_wrap"},Yg=["onClick"],Gg={class:"name"},Xg={class:"sub"},Zg={key:3,class:"sport_wrap"},Kg=["onClick"],Jg={class:"name"},Qg={class:"sub"},eb={key:4,class:"taste_wrap"},tb={class:"title"},nb={class:"box"},rb=["onClick"],ub={class:"title"},ob={class:"box"},ab=["onClick"],ib=ge({__name:"personalForm",props:{query:{type:String,default:""}},emits:["submit"],setup(e,{emit:t}){const{t:n,locale:r}=at(),u=a.ref(!1),o=e,i=a.ref({key:"sex",sex:"",age:"",height:"",weight:"",sport:"",target:"",taste:[],taboo:[],title:n("personal_form_dialog_title"),unit:"",dialogHeight:"50vh",min:0,max:100,type:"digit"}),s=a.computed(()=>[{key:"01",name:n("personal_form_target_list_01"),sub:n("personal_form_target_list_01_sub")},{key:"03",name:n("personal_form_target_list_03"),sub:n("personal_form_target_list_03_sub")}]),l=a.computed(()=>[{key:"rest",name:n("personal_form_sport_list_rest"),sub:n("personal_form_sport_list_rest_sub")},{key:"sedentary",name:n("personal_form_sport_list_sedentary"),sub:n("personal_form_sport_list_sedentary_sub")},{key:"light",name:n("personal_form_sport_list_light"),sub:n("personal_form_sport_list_light_sub")},{key:"medium",name:n("personal_form_sport_list_medium"),sub:n("personal_form_sport_list_medium_sub")},{key:"heavy",name:n("personal_form_sport_list_heavy"),sub:n("personal_form_sport_list_heavy_sub")}]),c=["spicy","onion","ginger","garlic","sugar","fish","shrimp","beef","chicken","pork"],f=["high_gi","high_saturated_fat","high_purine","high_salt","high_cholesterol"],d=a.ref([{key:"target",label:n("personal_form_target"),value:"",placeholder:n("personal_form_placeholder_target"),required:!0},{key:"sex",label:n("personal_form_sex"),value:"",placeholder:n("personal_form_placeholder_sex"),required:!0},{key:"age",label:n("personal_form_age"),value:"",placeholder:n("personal_form_placeholder_age"),unit:n("personal_form_unit_age"),required:!0},{key:"height",label:n("personal_form_height"),value:"",placeholder:n("personal_form_placeholder_height"),unit:n("personal_form_unit_height"),required:!0},{key:"weight",label:n("personal_form_weight"),value:"",placeholder:n("personal_form_placeholder_weight"),unit:n("personal_form_unit_weight"),required:!0},{key:"sport",label:n("personal_form_sport"),value:"sedentary",placeholder:n("personal_form_placeholder_sport"),required:!0},{key:"taste",label:n("personal_form_taste"),value:"",taste:[],taboo:[],placeholder:n("personal_form_placeholder_taste"),required:!1}]),_=t;a.watch(()=>r.value,()=>{var x,k,T,$,z,V,ae,U,W;const h={};d.value.forEach(R=>{h[R.key]={value:R.value,taste:R.taste,taboo:R.taboo}}),d.value=[{key:"target",label:n("personal_form_target"),value:((x=h.target)==null?void 0:x.value)||"",placeholder:n("personal_form_placeholder_target"),required:!0},{key:"sex",label:n("personal_form_sex"),value:((k=h.sex)==null?void 0:k.value)||"",placeholder:n("personal_form_placeholder_sex"),required:!0},{key:"age",label:n("personal_form_age"),value:((T=h.age)==null?void 0:T.value)||"",placeholder:n("personal_form_placeholder_age"),unit:n("personal_form_unit_age"),required:!0},{key:"height",label:n("personal_form_height"),value:(($=h.height)==null?void 0:$.value)||"",placeholder:n("personal_form_placeholder_height"),unit:n("personal_form_unit_height"),required:!0},{key:"weight",label:n("personal_form_weight"),value:((z=h.weight)==null?void 0:z.value)||"",placeholder:n("personal_form_placeholder_weight"),unit:n("personal_form_unit_weight"),required:!0},{key:"sport",label:n("personal_form_sport"),value:((V=h.sport)==null?void 0:V.value)||"sedentary",placeholder:n("personal_form_placeholder_sport"),required:!0},{key:"taste",label:n("personal_form_taste"),value:((ae=h.taste)==null?void 0:ae.value)||"",taste:((U=h.taste)==null?void 0:U.taste)||[],taboo:((W=h.taste)==null?void 0:W.taboo)||[],placeholder:n("personal_form_placeholder_taste"),required:!1}]}),a.onMounted(()=>{const h=localStorage.getItem("personalInfo");if(h){const x=JSON.parse(h);for(let k=0;k<d.value.length;k++){const T=x.find($=>$.key===d.value[k].key);T&&(d.value[k].value=T.value||"",T.taste&&(d.value[k].taste=T.taste),T.taboo&&(d.value[k].taboo=T.taboo))}}console.log("== xx ===",d.value)});const p=a.computed(()=>d.value.filter(h=>h.key!=="taste").every(h=>h.value!=="")),m=h=>{switch(i.value.key=h.key,h.key){case"sex":i.value.title=n("personal_form_dialog_sex"),i.value.dialogHeight="300px",i.value.sex=h.value;break;case"age":i.value.title=n("personal_form_dialog_age"),i.value.dialogHeight="240px",i.value.unit=h.unit,i.value.age=h.value,i.value.min=6,i.value.max=100,i.value.type="number";break;case"height":i.value.title=n("personal_form_dialog_height"),i.value.dialogHeight="240px",i.value.unit=h.unit,i.value.height=h.value,i.value.min=100,i.value.max=220,i.value.type="digit";break;case"weight":i.value.title=n("personal_form_dialog_weight"),i.value.dialogHeight="240px",i.value.unit=h.unit,i.value.weight=h.value,i.value.min=10,i.value.max=150,i.value.type="digit";break;case"sport":i.value.title=n("personal_form_dialog_sport"),i.value.dialogHeight="420px",i.value.unit="",i.value.sport=h.value;break;case"target":i.value.title=n("personal_form_dialog_target"),i.value.dialogHeight="420px",i.value.unit="",i.value.target=h.value;break;case"taste":i.value.title=n("personal_form_dialog_taste"),i.value.dialogHeight="500px",i.value.unit="",i.value.taste=[...h.taste],i.value.taboo=[...h.taboo];break}console.log(i.value,h),u.value=!0},C=()=>{switch(i.value.key){case"sex":if(!i.value.sex){bt(n("personal_form_toast_select_sex"));return}d.value.find(h=>h.key==="sex").value=i.value.sex;break;case"age":if(!i.value.age){bt(n("personal_form_toast_input_age"));return}d.value.find(h=>h.key==="age").value=i.value.age;break;case"height":if(!i.value.height){bt(n("personal_form_toast_input_height"));return}d.value.find(h=>h.key==="height").value=i.value.height;break;case"weight":if(!i.value.weight){bt(n("personal_form_toast_input_weight"));return}d.value.find(h=>h.key==="weight").value=i.value.weight;break;case"sport":if(!i.value.sport){bt(n("personal_form_toast_select_sport"));return}d.value.find(h=>h.key==="sport").value=i.value.sport;break;case"target":if(!i.value.target){bt(n("personal_form_toast_select_target"));return}d.value.find(h=>h.key==="target").value=i.value.target;break;case"taste":d.value.find(h=>h.key==="taste").taste=i.value.taste,d.value.find(h=>h.key==="taste").taboo=i.value.taboo,d.value.find(h=>h.key==="taste").value=[...i.value.taste,...i.value.taboo].join("、");break}u.value=!1},D=()=>{if(!p.value){bt(n("personal_form_toast_fill_all"));return}const h=d.value.findIndex(z=>z.key==="age"),x=d.value.findIndex(z=>z.key==="height"),k=d.value.findIndex(z=>z.key==="weight");if(d.value[h].value<6||d.value[h].value>100){bt(n("personal_form_toast_age_range"));return}if(d.value[x].value<100||d.value[x].value>220){bt(n("personal_form_toast_height_range"));return}if(d.value[k].value<10||d.value[k].value>150){bt(n("personal_form_toast_weight_range"));return}const T=d.value.map(z=>{const{value:V,taste:ae,taboo:U}=z;return{key:z.key,value:V,taste:ae,taboo:U}});localStorage.setItem("personalInfo",JSON.stringify(T));const $=`${o.query?o.query+`;
|
|
62
|
-
`:""}${n("personal_form_target")}:${n(`personal_form_target_list_${d.value.find(
|
|
63
|
-
${n("personal_form_sex")}:${n(`personal_form_sex_options_${d.value.find(
|
|
61
|
+
| 脂肪:12.5g | | 脂肪:12.5g |`}},setup(e){const t=new nt,n=e,r=a.computed(()=>t.render(n.content));return(u,o)=>(a.openBlock(),a.createElementBlock("div",{innerHTML:r.value},null,8,jp))}},Up={},qp={width:"1em",height:"1em",viewBox:"0 0 44 44",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function Hp(e,t){return a.openBlock(),a.createElementBlock("svg",qp,t[0]||(t[0]=[a.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a.createElementVNode("g",{transform:"translate(44, 0) rotate(90)"},[a.createElementVNode("polyline",{stroke:"currentColor","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",points:"16 10 28 22 16 34"})])],-1)]))}const Wp=me(Up,[["render",Hp]]),Yp={class:"pup_header"},Gp={class:"left"},Xp={class:"title"},Zp={class:"right"},Kp={class:"pup_content",style:{height:"calc(height - 56px)"}},Jp=me({__name:"popup",props:{show:{type:Boolean,default:!1},height:{type:String,default:"50vh"},title:{type:String,default:""}},emits:["update:show","confirm","close"],setup(e,{emit:t}){const{t:n}=it(),r=e,u=t,o=a.ref(!1),i=a.ref(`-${r.height}`),s=a.ref({delay:300,bottom:`-${r.height}`,opacity:0}),l=d=>{d?(s.value.bottom="0",s.value.opacity=.5):(s.value.bottom=`-${r.height}`,s.value.opacity=0)},c=()=>{u("confirm",{})};a.watch(()=>r.show,(d,_)=>{d?(i.value=`-${r.height}`,o.value=!0,setTimeout(()=>{l(!0)},0)):(l(!1),setTimeout(()=>{o.value=!1},300))});const f=()=>{u("update:show",!1),l(!1),setTimeout(()=>{o.value=!1},300)};return(d,_)=>o.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"pup_mask",style:a.normalizeStyle({backgroundColor:`rgba(0, 0, 0, ${s.value.opacity})`}),onClick:a.withModifiers(f,["stop"])},[a.createElementVNode("div",{class:"pup_wrap",style:a.normalizeStyle({height:e.height,bottom:s.value.bottom}),onClick:a.withModifiers(()=>{},["stop"])},[a.createElementVNode("div",Yp,[a.createElementVNode("div",Gp,[a.createElementVNode("div",{class:"icon_down",onClick:a.withModifiers(f,["stop"])},[a.createVNode(Wp)])]),a.createElementVNode("div",Xp,a.toDisplayString(e.title),1),a.createElementVNode("div",Zp,[a.createElementVNode("div",{class:"btn",onClick:c},a.toDisplayString(a.unref(n)("common_confirm")),1)])]),a.createElementVNode("div",Kp,[a.renderSlot(d.$slots,"default",{},void 0,!0)])],4)],4)):a.createCommentVNode("",!0)}},[["__scopeId","data-v-bf0a2e37"]]);function Qp(){}const ft=Object.assign,Tu=typeof window<"u",Rn=e=>e!==null&&typeof e=="object",Me=e=>e!=null,Dr=e=>typeof e=="function",Qi=e=>Rn(e)&&Dr(e.then)&&Dr(e.catch),es=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),e2=()=>Tu?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function ts(e,t){const n=t.split(".");let r=e;return n.forEach(u=>{var o;r=Rn(r)&&(o=r[u])!=null?o:""}),r}function t2(e,t,n){return t.reduce((r,u)=>(r[u]=e[u],r),{})}const ns=e=>Array.isArray(e)?e:[e],Mt=null,Ae=[Number,String],Pt={type:Boolean,default:!0},n2=e=>({type:Number,default:e}),r2=e=>({type:Ae,default:e}),Le=e=>({type:String,default:e});var Su=typeof window<"u";function u2(e){const t=a.inject(e,null);if(t){const n=a.getCurrentInstance(),{link:r,unlink:u,internalChildren:o}=t;r(n),a.onUnmounted(()=>u(n));const i=a.computed(()=>o.indexOf(n));return{parent:t,index:i}}return{parent:null,index:a.ref(-1)}}function rs(e){let t;a.onMounted(()=>{e(),a.nextTick(()=>{t=!0})}),a.onActivated(()=>{t&&e()})}function Iu(e,t,n={}){if(!Su)return;const{target:r=window,passive:u=!1,capture:o=!1}=n;let i=!1,s;const l=d=>{if(i)return;const _=a.unref(d);_&&!s&&(_.addEventListener(e,t,{capture:o,passive:u}),s=!0)},c=d=>{if(i)return;const _=a.unref(d);_&&s&&(_.removeEventListener(e,t,o),s=!1)};a.onUnmounted(()=>c(r)),a.onDeactivated(()=>c(r)),rs(()=>l(r));let f;return a.isRef(r)&&(f=a.watch(r,(d,_)=>{c(_),l(d)})),()=>{f==null||f(),c(r),i=!0}}var Nr,Ou;function o2(){if(!Nr&&(Nr=a.ref(0),Ou=a.ref(0),Su)){const e=()=>{Nr.value=window.innerWidth,Ou.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:Nr,height:Ou}}var a2=/scroll|auto|overlay/i,i2=Su?window:void 0;function s2(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function l2(e,t=i2){let n=e;for(;n&&n!==t&&s2(n);){const{overflowY:r}=window.getComputedStyle(n);if(a2.test(r))return n;n=n.parentNode}return t}var c2=Symbol("van-field");function us(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function os(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function as(e){us(window,e),us(document.body,e)}const f2=e2();function d2(){f2&&as(os())}const _2=e=>e.stopPropagation();function jn(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&_2(e)}o2();function Ke(e){if(Me(e))return es(e)?`${e}px`:String(e)}function h2(e){if(Me(e)){if(Array.isArray(e))return{width:Ke(e[0]),height:Ke(e[1])};const t=Ke(e);return{width:t,height:t}}}function m2(e){const t={};return e!==void 0&&(t.zIndex=+e),t}const p2=/-(\w)/g,is=e=>e.replace(p2,(t,n)=>n.toUpperCase()),g2=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,""),b2=(e,t,n)=>Math.min(Math.max(e,t),n);function ss(e,t,n){const r=e.indexOf(t);return r===-1?e:t==="-"&&r!==0?e.slice(0,r):e.slice(0,r+1)+e.slice(r).replace(n,"")}function y2(e,t=!0,n=!0){t?e=ss(e,".",/\./g):e=e.split(".")[0],n?e=ss(e,"-",/-/g):e=e.replace(/-/,"");const r=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(r,"")}const{hasOwnProperty:E2}=Object.prototype;function k2(e,t,n){const r=t[n];Me(r)&&(!E2.call(e,n)||!Rn(r)?e[n]=r:e[n]=ls(Object(e[n]),r))}function ls(e,t){return Object.keys(t).forEach(n=>{k2(e,t,n)}),e}var x2={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>`${e}年${t}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const cs=a.ref("zh-CN"),fs=a.reactive({"zh-CN":x2});var C2={messages(){return fs[cs.value]},use(e,t){cs.value=e,this.add({[e]:t})},add(e={}){ls(fs,e)}};function v2(e){const t=is(e)+".";return(n,...r)=>{const u=C2.messages(),o=ts(u,t+n)||ts(u,n);return Dr(o)?o(...r):o}}function Lu(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((n,r)=>n+Lu(e,r),""):Object.keys(t).reduce((n,r)=>n+(t[r]?Lu(e,r):""),""):""}function w2(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${Lu(t,n)}`)}function wt(e){const t=`van-${e}`;return[t,w2(t),v2(t)]}const D2="van-haptics-feedback",N2=Symbol("van-form"),ds=5;function A2(e,{args:t=[],done:n,canceled:r,error:u}){if(e){const o=e.apply(null,t);Qi(o)?o.then(i=>{i?n():r&&r()}).catch(u||Qp):o?n():r&&r()}else n()}function $t(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(is(`-${n}`),e))},e}const T2=Symbol();function Fu(e){const t=a.getCurrentInstance();t&&ft(t.proxy,e)}const S2={to:[String,Object],url:String,replace:Boolean};function I2({to:e,url:t,replace:n,$router:r}){e&&r?r[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function O2(){const e=a.getCurrentInstance().proxy;return()=>I2(e)}const[L2,_s]=wt("badge"),F2={dot:Boolean,max:Ae,tag:Le("div"),color:String,offset:Array,content:Ae,showZero:Pt,position:Le("top-right")};var M2=a.defineComponent({name:L2,props:F2,setup(e,{slots:t}){const n=()=>{if(t.content)return!0;const{content:s,showZero:l}=e;return Me(s)&&s!==""&&(l||s!==0&&s!=="0")},r=()=>{const{dot:s,max:l,content:c}=e;if(!s&&n())return t.content?t.content():Me(l)&&es(c)&&+c>+l?`${l}+`:c},u=s=>s.startsWith("-")?s.replace("-",""):`-${s}`,o=a.computed(()=>{const s={background:e.color};if(e.offset){const[l,c]=e.offset,{position:f}=e,[d,_]=f.split("-");t.default?(typeof c=="number"?s[d]=Ke(d==="top"?c:-c):s[d]=d==="top"?Ke(c):u(c),typeof l=="number"?s[_]=Ke(_==="left"?l:-l):s[_]=_==="left"?Ke(l):u(l)):(s.marginTop=Ke(c),s.marginLeft=Ke(l))}return s}),i=()=>{if(n()||e.dot)return a.createVNode("div",{class:_s([e.position,{dot:e.dot,fixed:!!t.default}]),style:o.value},[r()])};return()=>{if(t.default){const{tag:s}=e;return a.createVNode(s,{class:_s("wrapper")},{default:()=>[t.default(),i()]})}return i()}}});const P2=$t(M2);let hs=2e3;const $2=()=>++hs,B2=e=>{hs=e},[ms,V2]=wt("config-provider"),ps=Symbol(ms),R2={tag:Le("div"),theme:Le("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:Le("local"),iconPrefix:String};function j2(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function z2(e){const t={};return Object.keys(e).forEach(n=>{const r=j2(g2(n));t[`--van-${r}`]=e[n]}),t}function Ar(e={},t={}){Object.keys(e).forEach(n=>{e[n]!==t[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(t).forEach(n=>{e[n]||document.documentElement.style.removeProperty(n)})}a.defineComponent({name:ms,props:R2,setup(e,{slots:t}){const n=a.computed(()=>z2(ft({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(Tu){const r=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},u=(o=e.theme)=>{document.documentElement.classList.remove(`van-theme-${o}`)};a.watch(()=>e.theme,(o,i)=>{i&&u(i),r()},{immediate:!0}),a.onActivated(r),a.onDeactivated(u),a.onBeforeUnmount(u),a.watch(n,(o,i)=>{e.themeVarsScope==="global"&&Ar(o,i)}),a.watch(()=>e.themeVarsScope,(o,i)=>{i==="global"&&Ar({},n.value),o==="global"&&Ar(n.value,{})}),e.themeVarsScope==="global"&&Ar(n.value,{})}return a.provide(ps,e),a.watchEffect(()=>{e.zIndex!==void 0&&B2(e.zIndex)}),()=>a.createVNode(e.tag,{class:V2(),style:e.themeVarsScope==="local"?n.value:void 0},{default:()=>{var r;return[(r=t.default)==null?void 0:r.call(t)]}})}});const[U2,gs]=wt("icon"),q2=e=>e==null?void 0:e.includes("/"),H2={dot:Boolean,tag:Le("i"),name:String,size:Ae,badge:Ae,color:String,badgeProps:Object,classPrefix:String};var W2=a.defineComponent({name:U2,props:H2,setup(e,{slots:t}){const n=a.inject(ps,null),r=a.computed(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||gs());return()=>{const{tag:u,dot:o,name:i,size:s,badge:l,color:c}=e,f=q2(i);return a.createVNode(P2,a.mergeProps({dot:o,tag:u,class:[r.value,f?"":`${r.value}-${i}`],style:{color:c,fontSize:Ke(s)},content:l},e.badgeProps),{default:()=>{var d;return[(d=t.default)==null?void 0:d.call(t),f&&a.createVNode("img",{class:gs("image"),src:i},null)]}})}}});const Wt=$t(W2),[Y2,zn]=wt("loading"),G2=Array(12).fill(null).map((e,t)=>a.createVNode("i",{class:zn("line",String(t+1))},null)),X2=a.createVNode("svg",{class:zn("circular"),viewBox:"25 25 50 50"},[a.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),Z2={size:Ae,type:Le("circular"),color:String,vertical:Boolean,textSize:Ae,textColor:String};var K2=a.defineComponent({name:Y2,props:Z2,setup(e,{slots:t}){const n=a.computed(()=>ft({color:e.color},h2(e.size))),r=()=>{const o=e.type==="spinner"?G2:X2;return a.createVNode("span",{class:zn("spinner",e.type),style:n.value},[t.icon?t.icon():o])},u=()=>{var o;if(t.default)return a.createVNode("span",{class:zn("text"),style:{fontSize:Ke(e.textSize),color:(o=e.textColor)!=null?o:e.color}},[t.default()])};return()=>{const{type:o,vertical:i}=e;return a.createVNode("div",{class:zn([o,{vertical:i}]),"aria-live":"polite","aria-busy":!0},[r(),u()])}}});const J2=$t(K2),Q2={show:Boolean,zIndex:Ae,overlay:Pt,duration:Ae,teleport:[String,Object],lockScroll:Pt,lazyRender:Pt,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:Mt,transitionAppear:Boolean,closeOnClickOverlay:Pt};function eg(e,t){return e>t?"horizontal":t>e?"vertical":""}function tg(){const e=a.ref(0),t=a.ref(0),n=a.ref(0),r=a.ref(0),u=a.ref(0),o=a.ref(0),i=a.ref(""),s=a.ref(!0),l=()=>i.value==="vertical",c=()=>i.value==="horizontal",f=()=>{n.value=0,r.value=0,u.value=0,o.value=0,i.value="",s.value=!0};return{move:p=>{const m=p.touches[0];n.value=(m.clientX<0?0:m.clientX)-e.value,r.value=m.clientY-t.value,u.value=Math.abs(n.value),o.value=Math.abs(r.value);const x=10;(!i.value||u.value<x&&o.value<x)&&(i.value=eg(u.value,o.value)),s.value&&(u.value>ds||o.value>ds)&&(s.value=!1)},start:p=>{f(),e.value=p.touches[0].clientX,t.value=p.touches[0].clientY},reset:f,startX:e,startY:t,deltaX:n,deltaY:r,offsetX:u,offsetY:o,direction:i,isVertical:l,isHorizontal:c,isTap:s}}let Un=0;const bs="van-overflow-hidden";function ng(e,t){const n=tg(),r="01",u="10",o=f=>{n.move(f);const d=n.deltaY.value>0?u:r,_=l2(f.target,e.value),{scrollHeight:p,offsetHeight:m,scrollTop:x}=_;let D="11";x===0?D=m>=p?"00":"01":x+m>=p&&(D="10"),D!=="11"&&n.isVertical()&&!(parseInt(D,2)&parseInt(d,2))&&jn(f,!0)},i=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,{passive:!1}),Un||document.body.classList.add(bs),Un++},s=()=>{Un&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),Un--,Un||document.body.classList.remove(bs))},l=()=>t()&&i(),c=()=>t()&&s();rs(l),a.onDeactivated(c),a.onBeforeUnmount(c),a.watch(t,f=>{f?i():s()})}function ys(e){const t=a.ref(!1);return a.watch(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}const Es=()=>{var e;const{scopeId:t}=((e=a.getCurrentInstance())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[rg,ug]=wt("overlay"),og={show:Boolean,zIndex:Ae,duration:Ae,className:Mt,lockScroll:Pt,lazyRender:Pt,customStyle:Object,teleport:[String,Object]};var ag=a.defineComponent({name:rg,inheritAttrs:!1,props:og,setup(e,{attrs:t,slots:n}){const r=a.ref(),u=ys(()=>e.show||!e.lazyRender),o=s=>{e.lockScroll&&jn(s,!0)},i=u(()=>{var s;const l=ft(m2(e.zIndex),e.customStyle);return Me(e.duration)&&(l.animationDuration=`${e.duration}s`),a.withDirectives(a.createVNode("div",a.mergeProps({ref:r,style:l,class:[ug(),e.className]},t),[(s=n.default)==null?void 0:s.call(n)]),[[a.vShow,e.show]])});return Iu("touchmove",o,{target:r}),()=>{const s=a.createVNode(a.Transition,{name:"van-fade",appear:!0},{default:i});return e.teleport?a.createVNode(a.Teleport,{to:e.teleport},{default:()=>[s]}):s}}});const ig=$t(ag),sg=ft({},Q2,{round:Boolean,position:Le("center"),closeIcon:Le("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:Le("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[lg,ks]=wt("popup");var cg=a.defineComponent({name:lg,inheritAttrs:!1,props:sg,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:n,slots:r}){let u,o;const i=a.ref(),s=a.ref(),l=ys(()=>e.show||!e.lazyRender),c=a.computed(()=>{const h={zIndex:i.value};if(Me(e.duration)){const C=e.position==="center"?"animationDuration":"transitionDuration";h[C]=`${e.duration}s`}return h}),f=()=>{u||(u=!0,i.value=e.zIndex!==void 0?+e.zIndex:$2(),t("open"))},d=()=>{u&&A2(e.beforeClose,{done(){u=!1,t("close"),t("update:show",!1)}})},_=h=>{t("clickOverlay",h),e.closeOnClickOverlay&&d()},p=()=>{if(e.overlay){const h=ft({show:e.show,class:e.overlayClass,zIndex:i.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps);return a.createVNode(ig,a.mergeProps(h,Es(),{onClick:_}),{default:r["overlay-content"]})}},m=h=>{t("clickCloseIcon",h),d()},x=()=>{if(e.closeable)return a.createVNode(Wt,{role:"button",tabindex:0,name:e.closeIcon,class:[ks("close-icon",e.closeIconPosition),D2],classPrefix:e.iconPrefix,onClick:m},null)};let D;const N=()=>{D&&clearTimeout(D),D=setTimeout(()=>{t("opened")})},v=()=>t("closed"),g=h=>t("keydown",h),E=l(()=>{var h;const{destroyOnClose:C,round:k,position:A,safeAreaInsetTop:B,safeAreaInsetBottom:U,show:j}=e;if(!(!j&&C))return a.withDirectives(a.createVNode("div",a.mergeProps({ref:s,style:c.value,role:"dialog",tabindex:0,class:[ks({round:k,[A]:A}),{"van-safe-area-top":B,"van-safe-area-bottom":U}],onKeydown:g},n,Es()),[(h=r.default)==null?void 0:h.call(r),x()]),[[a.vShow,j]])}),w=()=>{const{position:h,transition:C,transitionAppear:k}=e,A=h==="center"?"van-fade":`van-popup-slide-${h}`;return a.createVNode(a.Transition,{name:C||A,appear:k,onAfterEnter:N,onAfterLeave:v},{default:E})};return a.watch(()=>e.show,h=>{h&&!u&&(f(),n.tabindex===0&&a.nextTick(()=>{var C;(C=s.value)==null||C.focus()})),!h&&u&&(u=!1,t("close"))}),Fu({popupRef:s}),ng(s,()=>e.show&&e.lockScroll),Iu("popstate",()=>{e.closeOnPopstate&&(d(),o=!1)}),a.onMounted(()=>{e.show&&f()}),a.onActivated(()=>{o&&(t("update:show",!0),o=!1)}),a.onDeactivated(()=>{e.show&&e.teleport&&(d(),o=!0)}),a.provide(T2,()=>e.show),()=>e.teleport?a.createVNode(a.Teleport,{to:e.teleport},{default:()=>[p(),w()]}):a.createVNode(a.Fragment,null,[p(),w()])}});const fg=$t(cg);let dg=0;function _g(){const e=a.getCurrentInstance(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return process.env.NODE_ENV==="test"?t:`${t}-${++dg}`}const[hg,gn]=wt("cell"),xs={tag:Le("div"),icon:String,size:String,title:Ae,value:Ae,label:Ae,center:Boolean,isLink:Boolean,border:Pt,iconPrefix:String,valueClass:Mt,labelClass:Mt,titleClass:Mt,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},mg=ft({},xs,S2);var pg=a.defineComponent({name:hg,props:mg,setup(e,{slots:t}){const n=O2(),r=()=>{if(t.label||Me(e.label))return a.createVNode("div",{class:[gn("label"),e.labelClass]},[t.label?t.label():e.label])},u=()=>{var l;if(t.title||Me(e.title)){const c=(l=t.title)==null?void 0:l.call(t);return Array.isArray(c)&&c.length===0?void 0:a.createVNode("div",{class:[gn("title"),e.titleClass],style:e.titleStyle},[c||a.createVNode("span",null,[e.title]),r()])}},o=()=>{const l=t.value||t.default;if(l||Me(e.value))return a.createVNode("div",{class:[gn("value"),e.valueClass]},[l?l():a.createVNode("span",null,[e.value])])},i=()=>{if(t.icon)return t.icon();if(e.icon)return a.createVNode(Wt,{name:e.icon,class:gn("left-icon"),classPrefix:e.iconPrefix},null)},s=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const l=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return a.createVNode(Wt,{name:l,class:gn("right-icon")},null)}};return()=>{var l;const{tag:c,size:f,center:d,border:_,isLink:p,required:m}=e,x=(l=e.clickable)!=null?l:p,D={center:d,required:!!m,clickable:x,borderless:!_};return f&&(D[f]=!!f),a.createVNode(c,{class:gn(D),role:x?"button":void 0,tabindex:x?0:void 0,onClick:n},{default:()=>{var N;return[i(),u(),o(),s(),(N=t.extra)==null?void 0:N.call(t)]}})}}});const gg=$t(pg);function Cs(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function bg(e,t){if(Cs(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function yg(e,t){return new Promise(n=>{const r=t.validator(e,t);if(Qi(r)){r.then(n);return}n(r)})}function vs(e,t){const{message:n}=t;return Dr(n)?n(e,t):n||""}function Eg({target:e}){e.composing=!0}function ws({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function kg(e,t){const n=os();e.style.height="auto";let r=e.scrollHeight;if(Rn(t)){const{maxHeight:u,minHeight:o}=t;u!==void 0&&(r=Math.min(r,u)),o!==void 0&&(r=Math.max(r,o))}r&&(e.style.height=`${r}px`,as(n))}function xg(e,t){return e==="number"&&(e="text",t??(t="decimal")),e==="digit"&&(e="tel",t??(t="numeric")),{type:e,inputmode:t}}function Dt(e){return[...e].length}function Mu(e,t){return[...e].slice(0,t).join("")}const[Cg,rt]=wt("field"),vg={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:Ae,max:Number,min:Number,formatter:Function,clearIcon:Le("clear"),modelValue:r2(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:Le("focus"),formatTrigger:Le("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},wg=ft({},xs,vg,{rows:Ae,type:Le("text"),rules:Array,autosize:[Boolean,Object],labelWidth:Ae,labelClass:Mt,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var Dg=a.defineComponent({name:Cg,props:wg,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n}){const r=_g(),u=a.reactive({status:"unvalidated",focused:!1,validateMessage:""}),o=a.ref(),i=a.ref(),s=a.ref(),{parent:l}=u2(N2),c=()=>{var S;return String((S=e.modelValue)!=null?S:"")},f=S=>{if(Me(e[S]))return e[S];if(l&&Me(l.props[S]))return l.props[S]},d=a.computed(()=>{const S=f("readonly");if(e.clearable&&!S){const P=c()!=="",V=e.clearTrigger==="always"||e.clearTrigger==="focus"&&u.focused;return P&&V}return!1}),_=a.computed(()=>s.value&&n.input?s.value():e.modelValue),p=a.computed(()=>{var S;const P=f("required");return P==="auto"?(S=e.rules)==null?void 0:S.some(V=>V.required):P}),m=S=>S.reduce((P,V)=>P.then(()=>{if(u.status==="failed")return;let{value:ne}=_;if(V.formatter&&(ne=V.formatter(ne,V)),!bg(ne,V)){u.status="failed",u.validateMessage=vs(ne,V);return}if(V.validator)return Cs(ne)&&V.validateEmpty===!1?void 0:yg(ne,V).then(re=>{re&&typeof re=="string"?(u.status="failed",u.validateMessage=re):re===!1&&(u.status="failed",u.validateMessage=vs(ne,V))})}),Promise.resolve()),x=()=>{u.status="unvalidated",u.validateMessage=""},D=()=>t("endValidate",{status:u.status,message:u.validateMessage}),N=(S=e.rules)=>new Promise(P=>{x(),S?(t("startValidate"),m(S).then(()=>{u.status==="failed"?(P({name:e.name,message:u.validateMessage}),D()):(u.status="passed",P(),D())})):P()}),v=S=>{if(l&&e.rules){const{validateTrigger:P}=l.props,V=ns(P).includes(S),ne=e.rules.filter(re=>re.trigger?ns(re.trigger).includes(S):V);ne.length&&N(ne)}},g=S=>{var P;const{maxlength:V}=e;if(Me(V)&&Dt(S)>+V){const ne=c();if(ne&&Dt(ne)===+V)return ne;const re=(P=o.value)==null?void 0:P.selectionEnd;if(u.focused&&re){const je=[...S],_e=je.length-+V;return je.splice(re-_e,_e),je.join("")}return Mu(S,+V)}return S},E=(S,P="onChange")=>{var V,ne;const re=S;S=g(S);const je=Dt(re)-Dt(S);if(e.type==="number"||e.type==="digit"){const O=e.type==="number";if(S=y2(S,O,O),P==="onBlur"&&S!==""&&(e.min!==void 0||e.max!==void 0)){const G=b2(+S,(V=e.min)!=null?V:-1/0,(ne=e.max)!=null?ne:1/0);+S!==G&&(S=G.toString())}}let _e=0;if(e.formatter&&P===e.formatTrigger){const{formatter:O,maxlength:G}=e;if(S=O(S),Me(G)&&Dt(S)>+G&&(S=Mu(S,+G)),o.value&&u.focused){const{selectionEnd:Je}=o.value,Ye=Mu(re,Je);_e=Dt(O(Ye))-Dt(Ye)}}if(o.value&&o.value.value!==S)if(u.focused){let{selectionStart:O,selectionEnd:G}=o.value;if(o.value.value=S,Me(O)&&Me(G)){const Je=Dt(S);je?(O-=je,G-=je):_e&&(O+=_e,G+=_e),o.value.setSelectionRange(Math.min(O,Je),Math.min(G,Je))}}else o.value.value=S;S!==e.modelValue&&t("update:modelValue",S)},w=S=>{S.target.composing||E(S.target.value)},h=()=>{var S;return(S=o.value)==null?void 0:S.blur()},C=()=>{var S;return(S=o.value)==null?void 0:S.focus()},k=()=>{const S=o.value;e.type==="textarea"&&e.autosize&&S&&kg(S,e.autosize)},A=S=>{u.focused=!0,t("focus",S),a.nextTick(k),f("readonly")&&h()},B=S=>{u.focused=!1,E(c(),"onBlur"),t("blur",S),!f("readonly")&&(v("onBlur"),a.nextTick(k),d2())},U=S=>t("clickInput",S),j=S=>t("clickLeftIcon",S),ie=S=>t("clickRightIcon",S),W=S=>{jn(S),t("update:modelValue",""),t("clear",S)},q=a.computed(()=>{if(typeof e.error=="boolean")return e.error;if(l&&l.props.showError&&u.status==="failed")return!0}),Z=a.computed(()=>{const S=f("labelWidth"),P=f("labelAlign");if(S&&P!=="top")return{width:Ke(S)}}),te=S=>{S.keyCode===13&&(!(l&&l.props.submitOnEnter)&&e.type!=="textarea"&&jn(S),e.type==="search"&&h()),t("keypress",S)},Pe=()=>e.id||`${r}-input`,He=()=>u.status,$=()=>{const S=rt("control",[f("inputAlign"),{error:q.value,custom:!!n.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(n.input)return a.createVNode("div",{class:S,onClick:U},[n.input()]);const P={id:Pe(),ref:o,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:S,disabled:f("disabled"),readonly:f("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,enterkeyhint:e.enterkeyhint,spellcheck:e.spellcheck,"aria-labelledby":e.label?`${r}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:B,onFocus:A,onInput:w,onClick:U,onChange:ws,onKeypress:te,onCompositionend:ws,onCompositionstart:Eg};return e.type==="textarea"?a.createVNode("textarea",a.mergeProps(P,{inputmode:e.inputmode}),null):a.createVNode("input",a.mergeProps(xg(e.type,e.inputmode),P),null)},K=()=>{const S=n["left-icon"];if(e.leftIcon||S)return a.createVNode("div",{class:rt("left-icon"),onClick:j},[S?S():a.createVNode(Wt,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},F=()=>{const S=n["right-icon"];if(e.rightIcon||S)return a.createVNode("div",{class:rt("right-icon"),onClick:ie},[S?S():a.createVNode(Wt,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},ae=()=>{if(e.showWordLimit&&e.maxlength){const S=Dt(c());return a.createVNode("div",{class:rt("word-limit")},[a.createVNode("span",{class:rt("word-num")},[S]),a.createTextVNode("/"),e.maxlength])}},Y=()=>{if(l&&l.props.showErrorMessage===!1)return;const S=e.errorMessage||u.validateMessage;if(S){const P=n["error-message"],V=f("errorMessageAlign");return a.createVNode("div",{class:rt("error-message",V)},[P?P({message:S}):S])}},Be=()=>{const S=f("labelWidth"),P=f("labelAlign"),V=f("colon")?":":"";if(n.label)return[n.label(),V];if(e.label)return a.createVNode("label",{id:`${r}-label`,for:n.input?void 0:Pe(),"data-allow-mismatch":"attribute",onClick:ne=>{jn(ne),C()},style:P==="top"&&S?{width:Ke(S)}:void 0},[e.label+V])},We=()=>[a.createVNode("div",{class:rt("body")},[$(),d.value&&a.createVNode(Wt,{ref:i,name:e.clearIcon,class:rt("clear")},null),F(),n.button&&a.createVNode("div",{class:rt("button")},[n.button()])]),ae(),Y()];return Fu({blur:h,focus:C,validate:N,formValue:_,resetValidation:x,getValidationStatus:He}),a.provide(c2,{customValue:s,resetValidation:x,validateWithTrigger:v}),a.watch(()=>e.modelValue,()=>{E(c()),x(),v("onChange"),a.nextTick(k)}),a.onMounted(()=>{E(c(),e.formatTrigger),a.nextTick(k)}),Iu("touchstart",W,{target:a.computed(()=>{var S;return(S=i.value)==null?void 0:S.$el})}),()=>{const S=f("disabled"),P=f("labelAlign"),V=K(),ne=()=>{const re=Be();return P==="top"?[V,re].filter(Boolean):re||[]};return a.createVNode(gg,{size:e.size,class:rt({error:q.value,disabled:S,[`label-${P}`]:P}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:Z.value,valueClass:rt("value"),titleClass:[rt("label",[P,{required:p.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:V&&P!=="top"?()=>V:null,title:ne,value:We,extra:n.extra})}}});const Ng=$t(Dg);let qn=0;function Ag(e){e?(qn||document.body.classList.add("van-toast--unclickable"),qn++):qn&&(qn--,qn||document.body.classList.remove("van-toast--unclickable"))}const[Tg,bn]=wt("toast"),Sg=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],Ig={icon:String,show:Boolean,type:Le("text"),overlay:Boolean,message:Ae,iconSize:Ae,duration:n2(2e3),position:Le("middle"),teleport:[String,Object],wordBreak:String,className:Mt,iconPrefix:String,transition:Le("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:Mt,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:Ae};var Ds=a.defineComponent({name:Tg,props:Ig,emits:["update:show"],setup(e,{emit:t,slots:n}){let r,u=!1;const o=()=>{const d=e.show&&e.forbidClick;u!==d&&(u=d,Ag(u))},i=d=>t("update:show",d),s=()=>{e.closeOnClick&&i(!1)},l=()=>clearTimeout(r),c=()=>{const{icon:d,type:_,iconSize:p,iconPrefix:m,loadingType:x}=e;if(d||_==="success"||_==="fail")return a.createVNode(Wt,{name:d||_,size:p,class:bn("icon"),classPrefix:m},null);if(_==="loading")return a.createVNode(J2,{class:bn("loading"),size:p,type:x},null)},f=()=>{const{type:d,message:_}=e;if(n.message)return a.createVNode("div",{class:bn("text")},[n.message()]);if(Me(_)&&_!=="")return d==="html"?a.createVNode("div",{key:0,class:bn("text"),innerHTML:String(_)},null):a.createVNode("div",{class:bn("text")},[_])};return a.watch(()=>[e.show,e.forbidClick],o),a.watch(()=>[e.show,e.type,e.message,e.duration],()=>{l(),e.show&&e.duration>0&&(r=setTimeout(()=>{i(!1)},e.duration))}),a.onMounted(o),a.onUnmounted(o),()=>a.createVNode(fg,a.mergeProps({class:[bn([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:s,onClosed:l,"onUpdate:show":i},t2(e,Sg)),{default:()=>[c(),f()]})}});function Og(){const e=a.reactive({show:!1}),t=u=>{e.show=u},n=u=>{ft(e,u,{transitionAppear:!0}),t(!0)},r=()=>t(!1);return Fu({open:n,close:r,toggle:t}),{open:n,close:r,state:e,toggle:t}}function Lg(e){const t=a.createApp(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}const Fg={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let Tr=[],Mg=!1,Ns=ft({},Fg);const Pg=new Map;function $g(e){return Rn(e)?e:{message:e}}function Bg(){const{instance:e}=Lg({setup(){const t=a.ref(""),{open:n,state:r,close:u,toggle:o}=Og(),i=()=>{},s=()=>{const l={onClosed:i,"onUpdate:show":o};return a.createVNode(Ds,a.mergeProps(r,l),null)};return a.watch(t,l=>{r.message=l}),a.getCurrentInstance().render=s,{open:n,close:u,message:t}}});return e}function Vg(){if(!Tr.length||Mg){const e=Bg();Tr.push(e)}return Tr[Tr.length-1]}function bt(e={}){if(!Tu)return{};const t=Vg(),n=$g(e);return t.open(ft({},Ns,Pg.get(n.type||Ns.type),n)),t}$t(Ds);const Rg={class:"pf_wrap"},jg={class:"pf_form"},zg=["onClick"],Ug={key:0,class:"sex_wrap"},qg={key:1,class:"input_wrap"},Hg={class:"unit"},Wg={key:2,class:"sport_wrap"},Yg=["onClick"],Gg={class:"name"},Xg={class:"sub"},Zg={key:3,class:"sport_wrap"},Kg=["onClick"],Jg={class:"name"},Qg={class:"sub"},eb={key:4,class:"taste_wrap"},tb={class:"title"},nb={class:"box"},rb=["onClick"],ub={class:"title"},ob={class:"box"},ab=["onClick"],ib=me({__name:"personalForm",props:{query:{type:String,default:""}},emits:["submit"],setup(e,{emit:t}){const{t:n,locale:r}=it(),u=a.ref(!1),o=e,i=a.ref({key:"sex",sex:"",age:"",height:"",weight:"",sport:"",target:"",taste:[],taboo:[],title:n("personal_form_dialog_title"),unit:"",dialogHeight:"50vh",min:0,max:100,type:"digit"}),s=a.computed(()=>[{key:"01",name:n("personal_form_target_list_01"),sub:n("personal_form_target_list_01_sub")},{key:"03",name:n("personal_form_target_list_03"),sub:n("personal_form_target_list_03_sub")}]),l=a.computed(()=>[{key:"rest",name:n("personal_form_sport_list_rest"),sub:n("personal_form_sport_list_rest_sub")},{key:"sedentary",name:n("personal_form_sport_list_sedentary"),sub:n("personal_form_sport_list_sedentary_sub")},{key:"light",name:n("personal_form_sport_list_light"),sub:n("personal_form_sport_list_light_sub")},{key:"medium",name:n("personal_form_sport_list_medium"),sub:n("personal_form_sport_list_medium_sub")},{key:"heavy",name:n("personal_form_sport_list_heavy"),sub:n("personal_form_sport_list_heavy_sub")}]),c=["spicy","onion","ginger","garlic","sugar","fish","shrimp","beef","chicken","pork"],f=["high_gi","high_saturated_fat","high_purine","high_salt","high_cholesterol"],d=a.ref([{key:"target",label:n("personal_form_target"),value:"",placeholder:n("personal_form_placeholder_target"),required:!0},{key:"sex",label:n("personal_form_sex"),value:"",placeholder:n("personal_form_placeholder_sex"),required:!0},{key:"age",label:n("personal_form_age"),value:"",placeholder:n("personal_form_placeholder_age"),unit:n("personal_form_unit_age"),required:!0},{key:"height",label:n("personal_form_height"),value:"",placeholder:n("personal_form_placeholder_height"),unit:n("personal_form_unit_height"),required:!0},{key:"weight",label:n("personal_form_weight"),value:"",placeholder:n("personal_form_placeholder_weight"),unit:n("personal_form_unit_weight"),required:!0},{key:"sport",label:n("personal_form_sport"),value:"sedentary",placeholder:n("personal_form_placeholder_sport"),required:!0},{key:"taste",label:n("personal_form_taste"),value:"",taste:[],taboo:[],placeholder:n("personal_form_placeholder_taste"),required:!1}]),_=t;a.watch(()=>r.value,()=>{var C,k,A,B,U,j,ie,W,q;const h={};d.value.forEach(Z=>{h[Z.key]={value:Z.value,taste:Z.taste,taboo:Z.taboo}}),d.value=[{key:"target",label:n("personal_form_target"),value:((C=h.target)==null?void 0:C.value)||"",placeholder:n("personal_form_placeholder_target"),required:!0},{key:"sex",label:n("personal_form_sex"),value:((k=h.sex)==null?void 0:k.value)||"",placeholder:n("personal_form_placeholder_sex"),required:!0},{key:"age",label:n("personal_form_age"),value:((A=h.age)==null?void 0:A.value)||"",placeholder:n("personal_form_placeholder_age"),unit:n("personal_form_unit_age"),required:!0},{key:"height",label:n("personal_form_height"),value:((B=h.height)==null?void 0:B.value)||"",placeholder:n("personal_form_placeholder_height"),unit:n("personal_form_unit_height"),required:!0},{key:"weight",label:n("personal_form_weight"),value:((U=h.weight)==null?void 0:U.value)||"",placeholder:n("personal_form_placeholder_weight"),unit:n("personal_form_unit_weight"),required:!0},{key:"sport",label:n("personal_form_sport"),value:((j=h.sport)==null?void 0:j.value)||"sedentary",placeholder:n("personal_form_placeholder_sport"),required:!0},{key:"taste",label:n("personal_form_taste"),value:((ie=h.taste)==null?void 0:ie.value)||"",taste:((W=h.taste)==null?void 0:W.taste)||[],taboo:((q=h.taste)==null?void 0:q.taboo)||[],placeholder:n("personal_form_placeholder_taste"),required:!1}]}),a.onMounted(()=>{const h=localStorage.getItem("personalInfo");if(h){const C=JSON.parse(h);for(let k=0;k<d.value.length;k++){const A=C.find(B=>B.key===d.value[k].key);A&&(d.value[k].value=A.value||"",A.taste&&(d.value[k].taste=A.taste),A.taboo&&(d.value[k].taboo=A.taboo))}}console.log("== xx ===",d.value)});const p=a.computed(()=>d.value.filter(h=>h.key!=="taste").every(h=>h.value!=="")),m=h=>{switch(i.value.key=h.key,h.key){case"sex":i.value.title=n("personal_form_dialog_sex"),i.value.dialogHeight="300px",i.value.sex=h.value;break;case"age":i.value.title=n("personal_form_dialog_age"),i.value.dialogHeight="240px",i.value.unit=h.unit,i.value.age=h.value,i.value.min=6,i.value.max=100,i.value.type="number";break;case"height":i.value.title=n("personal_form_dialog_height"),i.value.dialogHeight="240px",i.value.unit=h.unit,i.value.height=h.value,i.value.min=100,i.value.max=220,i.value.type="digit";break;case"weight":i.value.title=n("personal_form_dialog_weight"),i.value.dialogHeight="240px",i.value.unit=h.unit,i.value.weight=h.value,i.value.min=10,i.value.max=150,i.value.type="digit";break;case"sport":i.value.title=n("personal_form_dialog_sport"),i.value.dialogHeight="420px",i.value.unit="",i.value.sport=h.value;break;case"target":i.value.title=n("personal_form_dialog_target"),i.value.dialogHeight="420px",i.value.unit="",i.value.target=h.value;break;case"taste":i.value.title=n("personal_form_dialog_taste"),i.value.dialogHeight="500px",i.value.unit="",i.value.taste=[...h.taste],i.value.taboo=[...h.taboo];break}console.log(i.value,h),u.value=!0},x=()=>{switch(i.value.key){case"sex":if(!i.value.sex){bt(n("personal_form_toast_select_sex"));return}d.value.find(h=>h.key==="sex").value=i.value.sex;break;case"age":if(!i.value.age){bt(n("personal_form_toast_input_age"));return}d.value.find(h=>h.key==="age").value=i.value.age;break;case"height":if(!i.value.height){bt(n("personal_form_toast_input_height"));return}d.value.find(h=>h.key==="height").value=i.value.height;break;case"weight":if(!i.value.weight){bt(n("personal_form_toast_input_weight"));return}d.value.find(h=>h.key==="weight").value=i.value.weight;break;case"sport":if(!i.value.sport){bt(n("personal_form_toast_select_sport"));return}d.value.find(h=>h.key==="sport").value=i.value.sport;break;case"target":if(!i.value.target){bt(n("personal_form_toast_select_target"));return}d.value.find(h=>h.key==="target").value=i.value.target;break;case"taste":d.value.find(h=>h.key==="taste").taste=i.value.taste,d.value.find(h=>h.key==="taste").taboo=i.value.taboo,d.value.find(h=>h.key==="taste").value=[...i.value.taste,...i.value.taboo].join("、");break}u.value=!1},D=()=>{if(!p.value){bt(n("personal_form_toast_fill_all"));return}const h=d.value.findIndex(U=>U.key==="age"),C=d.value.findIndex(U=>U.key==="height"),k=d.value.findIndex(U=>U.key==="weight");if(d.value[h].value<6||d.value[h].value>100){bt(n("personal_form_toast_age_range"));return}if(d.value[C].value<100||d.value[C].value>220){bt(n("personal_form_toast_height_range"));return}if(d.value[k].value<10||d.value[k].value>150){bt(n("personal_form_toast_weight_range"));return}const A=d.value.map(U=>{const{value:j,taste:ie,taboo:W}=U;return{key:U.key,value:j,taste:ie,taboo:W}});localStorage.setItem("personalInfo",JSON.stringify(A));const B=`${o.query?o.query+`;
|
|
62
|
+
`:""}${n("personal_form_target")}:${n(`personal_form_target_list_${d.value.find(U=>U.key==="target").value}`)};
|
|
63
|
+
${n("personal_form_sex")}:${n(`personal_form_sex_options_${d.value.find(U=>U.key==="sex").value}`)};
|
|
64
64
|
${n("personal_form_age")}:${d.value[h].value}${d.value[h].unit||""};
|
|
65
|
-
${n("personal_form_height")}:${d.value[
|
|
65
|
+
${n("personal_form_height")}:${d.value[C].value}${d.value[C].unit||""};
|
|
66
66
|
${n("personal_form_weight")}:${d.value[k].value}${d.value[k].unit||""};
|
|
67
|
-
${n("personal_form_sport")}:${n(`personal_form_sport_list_${d.value.find(
|
|
68
|
-
${n("personal_form_taste")}:${d.value.find(z=>z.key==="taste").value?d.value.find(z=>z.key==="taste").value:n("personal_form_no_taboo")};`;console.log($),_("submit",[{content:$,text:$}])},N=(h,x)=>{i.value[x].includes(h)?i.value[x]=i.value[x].filter(k=>k!==h):i.value[x].push(h)},v=h=>{i.value.sport=h.key,C()},g=h=>{i.value.target=h.key,C()},E=h=>{i.value.sex=h,C()},w=h=>{const x=[];return h.taste&&h.taste.length>0&&h.taste.forEach(k=>{x.push(n(`personal_form_taste_list_${k}`))}),h.taboo&&h.taboo.length>0&&h.taboo.forEach(k=>{x.push(n(`personal_form_taboo_list_${k}`))}),h.value=x.join("、")||h.placeholder,x.join("、")||h.placeholder};return(h,x)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",Rg,[a.createElementVNode("div",jg,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.value,k=>(a.openBlock(),a.createElementBlock("div",{key:k.key,class:"pf_row"},[a.createElementVNode("div",{class:a.normalizeClass(["title",{is_required:k.required}])},a.toDisplayString(k.label),3),a.createElementVNode("div",{class:"content",onClick:T=>m(k)},[k.key==="taste"?(a.openBlock(),a.createElementBlock("span",{key:0,class:"text_row",style:a.normalizeStyle({color:k.value?"#000":"#75759d"})},a.toDisplayString(w(k)),5)):(a.openBlock(),a.createElementBlock("span",{key:1,class:"text_row",style:a.normalizeStyle({color:k.value?"#000":"#75759d"})},a.toDisplayString(k.value?k.key==="sport"?a.unref(n)(`personal_form_sport_list_${k.value}`):k.key==="sex"?a.unref(n)(`personal_form_sex_options_${k.value}`):k.key==="target"?a.unref(n)(`personal_form_target_list_${k.value}`):`${k.value} ${k.unit||""}`:k.placeholder),5)),a.createVNode(ai,{class:"arrow"})],8,zg)]))),128))]),a.createElementVNode("div",{class:a.normalizeClass(["pf_btn",{disabled:!p.value}]),onClick:a.withModifiers(D,["stop"])},a.toDisplayString(a.unref(n)("personal_form_button")),3)]),a.createVNode(Jp,{show:u.value,"onUpdate:show":x[3]||(x[3]=k=>u.value=k),title:i.value.title,height:i.value.dialogHeight,onConfirm:C},{default:a.withCtx(()=>[i.value.key==="sex"?(a.openBlock(),a.createElementBlock("div",Ug,[a.createElementVNode("div",{class:a.normalizeClass({sex:!0,selected:i.value.sex==="male"}),onClick:x[0]||(x[0]=a.withModifiers(k=>E("male"),["stop"]))},a.toDisplayString(a.unref(n)("personal_form_sex_options_male")),3),a.createElementVNode("div",{class:a.normalizeClass({sex:!0,selected:i.value.sex==="female"}),onClick:x[1]||(x[1]=a.withModifiers(k=>E("female"),["stop"]))},a.toDisplayString(a.unref(n)("personal_form_sex_options_female")),3)])):a.createCommentVNode("",!0),["age","height","weight"].includes(i.value.key)?(a.openBlock(),a.createElementBlock("div",qg,[a.createVNode(a.unref(Ng),{modelValue:i.value[i.value.key],"onUpdate:modelValue":x[2]||(x[2]=k=>i.value[i.value.key]=k),class:"input",type:i.value.type,min:i.value.min,max:i.value.max,onKeyup:a.withKeys(C,["enter"]),placeholder:a.unref(n)("personal_form_placeholder_input")},null,8,["modelValue","type","min","max","placeholder"]),a.createElementVNode("div",Hg,a.toDisplayString(i.value.unit),1)])):a.createCommentVNode("",!0),i.value.key==="sport"?(a.openBlock(),a.createElementBlock("div",Wg,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.value,k=>(a.openBlock(),a.createElementBlock("div",{key:k.key,class:a.normalizeClass({row:!0,selected:i.value.sport===k.key}),onClick:a.withModifiers(T=>v(k),["stop"])},[a.createElementVNode("div",Gg,a.toDisplayString(k.name),1),a.createElementVNode("div",Xg,a.toDisplayString(k.sub),1)],10,Yg))),128))])):a.createCommentVNode("",!0),i.value.key==="target"?(a.openBlock(),a.createElementBlock("div",Zg,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,k=>(a.openBlock(),a.createElementBlock("div",{key:k.key,class:a.normalizeClass({row:!0,selected:i.value.target===k.key}),onClick:a.withModifiers(T=>g(k),["stop"])},[a.createElementVNode("div",Jg,a.toDisplayString(k.name),1),a.createElementVNode("div",Qg,a.toDisplayString(k.sub),1)],10,Kg))),128))])):a.createCommentVNode("",!0),i.value.key==="taste"?(a.openBlock(),a.createElementBlock("div",eb,[a.createElementVNode("div",tb,a.toDisplayString(a.unref(n)("personal_form_taste")),1),a.createElementVNode("div",nb,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(c,k=>a.createElementVNode("div",{class:a.normalizeClass({tag:!0,selected:i.value.taste.includes(k)}),key:k,onClick:a.withModifiers(T=>N(k,"taste"),["stop"])},a.toDisplayString(a.unref(n)(`personal_form_taste_list_${k}`)),11,rb)),64))]),x[4]||(x[4]=a.createElementVNode("div",{class:"line"},null,-1)),a.createElementVNode("div",ub,a.toDisplayString(a.unref(n)("personal_form_taboo")),1),a.createElementVNode("div",ob,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(f,k=>a.createElementVNode("div",{class:a.normalizeClass({tag:!0,selected:i.value.taboo.includes(k)}),key:k,onClick:a.withModifiers(T=>N(k,"taboo"),["stop"])},a.toDisplayString(a.unref(n)(`personal_form_taboo_list_${k}`)),11,ab)),64))])])):a.createCommentVNode("",!0)]),_:1},8,["show","title","height"])],64))}},[["__scopeId","data-v-607a2231"]]),sb={class:"cui_box"},lb={class:"cui_wrap"},cb={key:0,class:"cui_header"},fb={class:"name_box"},db={class:"name"},_b={key:0,class:"name_sub"},hb={class:"btn_group"},mb={style:{"font-size":"14px"}},pb={class:"btn"},gb={class:"btn"},bb={class:"cui_content"},yb={key:0,style:{"text-align":"left","margin-top":"50px"}},Eb={style:{"text-align":"center"}},kb=["src"],xb={class:"board_name"},Cb={class:"board_desc"},vb={class:"flexcss"},wb=["onClick"],Db={key:0,class:"replay role_sys"},Nb={class:"replay_content"},Ab={class:"name"},Tb=["src"],Sb={class:"box"},Ib={key:0,class:"think_status"},Ob={key:1,class:"think_status"},Lb={class:"think_text"},Fb={key:0},Mb={key:4},Pb={key:1},$b={key:2,class:"loading_row"},Bb={key:1,class:"replay role_user"},Vb={class:"replay_content"},Rb={class:"name"},jb=["src"],zb={class:"box"},Ub=["innerHTML"],qb={key:0},As=ge({__name:"ChatUi",props:{logo:{type:String,default:"https://prodstatic.weis1606.cn/api/smartFood/icon/weis_logo.png"},avatar:{type:String,default:"https://prodstatic.weis1606.cn/api/smartFood/icon/def_gray.svg"},name:{type:String,default:"Weis Bot"},nameSub:{type:String,default:"nutribite.com"},botId:{type:String,required:!0},uid:{type:String,required:!0,default:"user"},channel:{type:String,default:"web"},token:{type:String,required:!0},postToken:{type:String,default:""},showHeader:{type:Boolean,default:!0},tagList:{type:Array,default:()=>[{name:"人工客服",value:"kefu",type:"chat",msg:"人工客服"},{name:"查看菜单",value:"menu",type:"call",msg:"查看菜单"},{name:"体检报告",value:"exam",type:"upload",msg:"体检报告"}]},defMsg:{type:Object,default:()=>({})},contentTye:{type:String,default:"text"},cardList:{type:Object,default:()=>({store:!0,dishes:!0,plan:!0,personalForm:!1})},storage:{type:String,default:"sessionStorage"},needLog:{type:Boolean,default:!1},firstMsg:{type:String,default:""},firstType:{type:String,default:"00"}},emits:["call","log"],setup(e,{emit:t}){const{t:n,locale:r}=at(),u=a.computed(()=>({headers:{Authorization:`Bearer ${_.token}`,"Content-Type":"application/json"}})),o=a.ref(""),i=a.ref(!1),s=a.ref("00"),l=a.ref([]),c=a.ref(!1),f=a.ref(1),d={store:!0,dishes:!0,plan:!0,personalForm:!1},_=e,p=t,m=a.computed(()=>({placeholder:n("msg_obj_placeholder"),fileText:n("msg_obj_fileText"),uploadingTips:n("msg_obj_uploadingTips"),matchText:n("msg_obj_matchText"),matchContent:n("msg_obj_matchContent"),energy:n("msg_obj_energy"),protein:n("msg_obj_protein"),fat:n("msg_obj_fat"),carbonwater:n("msg_obj_carbonwater"),newChat:n("msg_obj_newChat"),thinking:n("msg_obj_thinking"),thinkCompleted:n("msg_obj_thinkCompleted"),useSolution:n("msg_obj_useSolution"),aiTips:n("msg_obj_aiTips"),..._.defMsg})),C=a.computed(()=>({...d,..._.cardList})),D=a.ref(null),N=a.ref(""),v=a.ref({}),g={setItem:(P,J)=>{_.storage==="sessionStorage"?sessionStorage.setItem(P,J):localStorage.setItem(P,J)},getItem:P=>_.storage==="sessionStorage"?sessionStorage.getItem(P):localStorage.getItem(P)};a.onMounted(async()=>{console.log("=====55555====",m.value),localStorage.setItem("postToken",_.postToken||""),g.getItem("conversationId")?(o.value=g.getItem("conversationId"),await T(),await k(),c.value=!1):(await h(),await E(),_.firstMsg&&await w()),R()});const E=async()=>{switch(_.firstType){case"01":Oe({value:"personalForm"},!1);break}},w=async()=>{const P=[{params:{planType:"03",profileInfo:{birthday:"20010101",motion:"01",sex:"2",weight:"50",height:"160"}},age:25,msg:`${n("msg_obj_firstMsg_balancedDiet")}${_.firstMsg}${n("msg_obj_firstMsg_dietExample")}${n("msg_obj_firstMsg_femaleData")}
|
|
67
|
+
${n("personal_form_sport")}:${n(`personal_form_sport_list_${d.value.find(U=>U.key==="sport").value}`)};
|
|
68
|
+
${n("personal_form_taste")}:${d.value.find(U=>U.key==="taste").value?d.value.find(U=>U.key==="taste").value:n("personal_form_no_taboo")};`;console.log(B),_("submit",[{content:B,text:B}])},N=(h,C)=>{i.value[C].includes(h)?i.value[C]=i.value[C].filter(k=>k!==h):i.value[C].push(h)},v=h=>{i.value.sport=h.key,x()},g=h=>{i.value.target=h.key,x()},E=h=>{i.value.sex=h,x()},w=h=>{const C=[];return h.taste&&h.taste.length>0&&h.taste.forEach(k=>{C.push(n(`personal_form_taste_list_${k}`))}),h.taboo&&h.taboo.length>0&&h.taboo.forEach(k=>{C.push(n(`personal_form_taboo_list_${k}`))}),h.value=C.join("、")||h.placeholder,C.join("、")||h.placeholder};return(h,C)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",Rg,[a.createElementVNode("div",jg,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.value,k=>(a.openBlock(),a.createElementBlock("div",{key:k.key,class:"pf_row"},[a.createElementVNode("div",{class:a.normalizeClass(["title",{is_required:k.required}])},a.toDisplayString(k.label),3),a.createElementVNode("div",{class:"content",onClick:A=>m(k)},[k.key==="taste"?(a.openBlock(),a.createElementBlock("span",{key:0,class:"text_row",style:a.normalizeStyle({color:k.value?"#000":"#75759d"})},a.toDisplayString(w(k)),5)):(a.openBlock(),a.createElementBlock("span",{key:1,class:"text_row",style:a.normalizeStyle({color:k.value?"#000":"#75759d"})},a.toDisplayString(k.value?k.key==="sport"?a.unref(n)(`personal_form_sport_list_${k.value}`):k.key==="sex"?a.unref(n)(`personal_form_sex_options_${k.value}`):k.key==="target"?a.unref(n)(`personal_form_target_list_${k.value}`):`${k.value} ${k.unit||""}`:k.placeholder),5)),a.createVNode(ai,{class:"arrow"})],8,zg)]))),128))]),a.createElementVNode("div",{class:a.normalizeClass(["pf_btn",{disabled:!p.value}]),onClick:a.withModifiers(D,["stop"])},a.toDisplayString(a.unref(n)("personal_form_button")),3)]),a.createVNode(Jp,{show:u.value,"onUpdate:show":C[3]||(C[3]=k=>u.value=k),title:i.value.title,height:i.value.dialogHeight,onConfirm:x},{default:a.withCtx(()=>[i.value.key==="sex"?(a.openBlock(),a.createElementBlock("div",Ug,[a.createElementVNode("div",{class:a.normalizeClass({sex:!0,selected:i.value.sex==="male"}),onClick:C[0]||(C[0]=a.withModifiers(k=>E("male"),["stop"]))},a.toDisplayString(a.unref(n)("personal_form_sex_options_male")),3),a.createElementVNode("div",{class:a.normalizeClass({sex:!0,selected:i.value.sex==="female"}),onClick:C[1]||(C[1]=a.withModifiers(k=>E("female"),["stop"]))},a.toDisplayString(a.unref(n)("personal_form_sex_options_female")),3)])):a.createCommentVNode("",!0),["age","height","weight"].includes(i.value.key)?(a.openBlock(),a.createElementBlock("div",qg,[a.createVNode(a.unref(Ng),{modelValue:i.value[i.value.key],"onUpdate:modelValue":C[2]||(C[2]=k=>i.value[i.value.key]=k),class:"input",type:i.value.type,min:i.value.min,max:i.value.max,onKeyup:a.withKeys(x,["enter"]),placeholder:a.unref(n)("personal_form_placeholder_input")},null,8,["modelValue","type","min","max","placeholder"]),a.createElementVNode("div",Hg,a.toDisplayString(i.value.unit),1)])):a.createCommentVNode("",!0),i.value.key==="sport"?(a.openBlock(),a.createElementBlock("div",Wg,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.value,k=>(a.openBlock(),a.createElementBlock("div",{key:k.key,class:a.normalizeClass({row:!0,selected:i.value.sport===k.key}),onClick:a.withModifiers(A=>v(k),["stop"])},[a.createElementVNode("div",Gg,a.toDisplayString(k.name),1),a.createElementVNode("div",Xg,a.toDisplayString(k.sub),1)],10,Yg))),128))])):a.createCommentVNode("",!0),i.value.key==="target"?(a.openBlock(),a.createElementBlock("div",Zg,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,k=>(a.openBlock(),a.createElementBlock("div",{key:k.key,class:a.normalizeClass({row:!0,selected:i.value.target===k.key}),onClick:a.withModifiers(A=>g(k),["stop"])},[a.createElementVNode("div",Jg,a.toDisplayString(k.name),1),a.createElementVNode("div",Qg,a.toDisplayString(k.sub),1)],10,Kg))),128))])):a.createCommentVNode("",!0),i.value.key==="taste"?(a.openBlock(),a.createElementBlock("div",eb,[a.createElementVNode("div",tb,a.toDisplayString(a.unref(n)("personal_form_taste")),1),a.createElementVNode("div",nb,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(c,k=>a.createElementVNode("div",{class:a.normalizeClass({tag:!0,selected:i.value.taste.includes(k)}),key:k,onClick:a.withModifiers(A=>N(k,"taste"),["stop"])},a.toDisplayString(a.unref(n)(`personal_form_taste_list_${k}`)),11,rb)),64))]),C[4]||(C[4]=a.createElementVNode("div",{class:"line"},null,-1)),a.createElementVNode("div",ub,a.toDisplayString(a.unref(n)("personal_form_taboo")),1),a.createElementVNode("div",ob,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(f,k=>a.createElementVNode("div",{class:a.normalizeClass({tag:!0,selected:i.value.taboo.includes(k)}),key:k,onClick:a.withModifiers(A=>N(k,"taboo"),["stop"])},a.toDisplayString(a.unref(n)(`personal_form_taboo_list_${k}`)),11,ab)),64))])])):a.createCommentVNode("",!0)]),_:1},8,["show","title","height"])],64))}},[["__scopeId","data-v-607a2231"]]),sb={class:"flexcsc",style:{gap:"15px"}},lb=["onClick"],cb=me({__name:"selectCard",props:{list:{type:Array,default:()=>[]}},emits:["select"],setup(e,{emit:t}){const n=t;return(r,u)=>(a.openBlock(),a.createElementBlock("div",sb,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.list,o=>(a.openBlock(),a.createElementBlock("div",{key:o,class:"btn",onClick:a.withModifiers(i=>n("select",o),["stop"])},a.toDisplayString(o),9,lb))),128))]))}},[["__scopeId","data-v-db933d11"]]),fb={class:"cui_box"},db={class:"cui_wrap"},_b={key:0,class:"cui_header"},hb={class:"name_box"},mb={class:"name"},pb={key:0,class:"name_sub"},gb={class:"btn_group"},bb={style:{"font-size":"14px"}},yb={class:"btn"},Eb={class:"btn"},kb={class:"cui_content"},xb={key:0,style:{"text-align":"left","margin-top":"50px"}},Cb={style:{"text-align":"center"}},vb=["src"],wb={class:"board_name"},Db={class:"board_desc"},Nb={class:"flexcss"},Ab=["onClick"],Tb={key:0,class:"replay role_sys"},Sb={class:"replay_content"},Ib={class:"name"},Ob=["src"],Lb={class:"box"},Fb={key:0,class:"think_status"},Mb={key:1,class:"think_status"},Pb={class:"think_text"},$b={key:0},Bb={key:4},Vb={key:1},Rb={key:2,class:"loading_row"},jb={key:1,class:"replay role_user"},zb={class:"replay_content"},Ub={class:"name"},qb=["src"],Hb={class:"box"},Wb=["innerHTML"],Yb={key:0},As=me({__name:"ChatUi",props:{logo:{type:String,default:"https://prodstatic.weis1606.cn/api/smartFood/icon/weis_logo.png"},avatar:{type:String,default:"https://prodstatic.weis1606.cn/api/smartFood/icon/def_gray.svg"},name:{type:String,default:"Weis Bot"},nameSub:{type:String,default:"nutribite.com"},botId:{type:String,required:!0},uid:{type:String,required:!0,default:"user"},channel:{type:String,default:"web"},token:{type:String,required:!0},postToken:{type:String,default:""},showHeader:{type:Boolean,default:!0},tagList:{type:Array,default:()=>[{name:"人工客服",value:"kefu",type:"chat",msg:"人工客服"},{name:"查看菜单",value:"menu",type:"call",msg:"查看菜单"},{name:"体检报告",value:"exam",type:"upload",msg:"体检报告"}]},defMsg:{type:Object,default:()=>({})},contentTye:{type:String,default:"text"},cardList:{type:Object,default:()=>({store:!0,dishes:!0,plan:!0,personalForm:!1})},storage:{type:String,default:"sessionStorage"},needLog:{type:Boolean,default:!1},firstMsg:{type:String,default:""},firstType:{type:String,default:"00"}},emits:["call","log"],setup(e,{emit:t}){const{t:n,locale:r}=it(),u=a.computed(()=>({headers:{Authorization:`Bearer ${_.token}`,"Content-Type":"application/json"}})),o=a.ref(""),i=a.ref(!1),s=a.ref("00"),l=a.ref([]),c=a.ref(!1),f=a.ref(1),d={store:!0,dishes:!0,plan:!0,personalForm:!1},_=e,p=t,m=a.computed(()=>({placeholder:n("msg_obj_placeholder"),fileText:n("msg_obj_fileText"),uploadingTips:n("msg_obj_uploadingTips"),matchText:n("msg_obj_matchText"),matchContent:n("msg_obj_matchContent"),energy:n("msg_obj_energy"),protein:n("msg_obj_protein"),fat:n("msg_obj_fat"),carbonwater:n("msg_obj_carbonwater"),newChat:n("msg_obj_newChat"),thinking:n("msg_obj_thinking"),thinkCompleted:n("msg_obj_thinkCompleted"),useSolution:n("msg_obj_useSolution"),aiTips:n("msg_obj_aiTips"),..._.defMsg})),x=a.computed(()=>({...d,..._.cardList})),D=a.ref(null),N=a.ref(""),v=a.ref({}),g={setItem:($,K)=>{_.storage==="sessionStorage"?sessionStorage.setItem($,K):localStorage.setItem($,K)},getItem:$=>_.storage==="sessionStorage"?sessionStorage.getItem($):localStorage.getItem($)};a.onMounted(async()=>{console.log("=====55555====",m.value),localStorage.setItem("postToken",_.postToken||""),g.getItem("conversationId")?(o.value=g.getItem("conversationId"),await B(),await A(),c.value=!1):(await C(),await E(),_.firstMsg&&await h()),te()});const E=async()=>{switch(_.firstType){case"01":He({value:"personalForm"},!1);break}},w=async $=>{var F;l.value.push({conversation_id:"",bot_id:_.botId,role:"user",content:`帮我定制${$}的⻝疗调养⽅案`,reasoning_content:"",status:"ended",extra:[]});const K=await en("/api/cn.weis.api.open/bdIntentMeal",{method:"bdIntentMeal",params:[{intention:$}],token:_.postToken});K.obj&&l.value.push({conversation_id:"",bot_id:_.botId,role:"assistant",content:(F=K.obj)==null?void 0:F.mealRes,reasoning_content:"",status:"ended",extra:[{...K.obj,showType:"card"}]})},h=async()=>{var F;const K=((F=(await en("/api/cn.weis.api.open/bdIntentRecognition",{method:"bdIntentRecognition",params:[{treatment:_.firstMsg}],token:_.postToken})).obj)==null?void 0:F.intention)||[];if(K.length>1)l.value=[{conversation_id:"",bot_id:_.botId,role:"assistant",content:`根据您输入的${_.firstMsg},您可能有如下定制食谱的需求:`,reasoning_content:"",status:"ended",extra:[{intention:K,showType:"select_card"}]}];else if(K.length===1)l.value=[],await w(K[0]);else{const ae=[{params:{planType:"03",profileInfo:{birthday:"20010101",motion:"01",sex:"2",weight:"50",height:"160"}},age:25,msg:`${n("msg_obj_firstMsg_balancedDiet")}${_.firstMsg}${n("msg_obj_firstMsg_dietExample")}${n("msg_obj_firstMsg_femaleData")}
|
|
69
69
|
${n("msg_obj_firstMsg_gender")}${n("personal_form_sex_options_female")};
|
|
70
70
|
${n("msg_obj_firstMsg_age")}25${n("personal_form_unit_age")};
|
|
71
71
|
${n("msg_obj_firstMsg_height")}160${n("personal_form_unit_height")};
|
|
@@ -93,20 +93,20 @@ ${n("msg_obj_firstMsg_height")}170${n("personal_form_unit_height")};
|
|
|
93
93
|
${n("msg_obj_firstMsg_weight")}75${n("personal_form_unit_weight")};
|
|
94
94
|
${n("msg_obj_firstMsg_activityLevel")}${n("msg_obj_firstMsg_sedentary")};
|
|
95
95
|
${n("msg_obj_firstMsg_tastePreferences")}${n("msg_obj_firstMsg_noRestrictions")};
|
|
96
|
-
${n("msg_obj_firstMsg_customizePlan")}`}];n("msg_obj_firstMsg_breakfast"),n("msg_obj_firstMsg_lunch"),n("msg_obj_firstMsg_dinner"),n("msg_obj_firstMsg_snack");let
|
|
96
|
+
${n("msg_obj_firstMsg_customizePlan")}`}];n("msg_obj_firstMsg_breakfast"),n("msg_obj_firstMsg_lunch"),n("msg_obj_firstMsg_dinner"),n("msg_obj_firstMsg_snack");let Y=localStorage.getItem("preset_point")||0;Y++,Y>=ae.length&&(Y=0),localStorage.setItem("preset_point",Y);const Be=ae[Y],S=`帮我定制${_.firstMsg}的⻝疗调养⽅案`;l.value=[{conversation_id:"",bot_id:_.botId,role:"user",content:S,reasoning_content:"",status:"ended",extra:[]}];const P=await en("/api/cn.weis.api.Food/bdGeneralTemp",{method:"bdGeneralTemp",params:[{...Be.params}],token:_.postToken});if(P.errCode===0&&P.obj){const V={};(P.obj.planDetails||[]).forEach(re=>{V[re.category]={energy:`热量:${re.totalKcal}kcal`,carbonWater:`碳水:${re.carbohydrateTotal}g`,protein:`蛋白质:${re.proteinTotal}g`,fat:`脂肪:${re.fatTotal}g`}});const ne=`${n("msg_obj_firstMsg_generalDietAdvice")}
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
| ${n("msg_obj_firstMsg_breakfast")} | | ${n("msg_obj_firstMsg_lunch")} |
|
|
100
100
|
|------------|----------|----|
|
|
101
|
-
| ${
|
|
102
|
-
| ${
|
|
103
|
-
| ${
|
|
104
|
-
| ${
|
|
101
|
+
| ${V["01"].energy} | | ${V["02"].energy} |
|
|
102
|
+
| ${V["01"].carbonWater} | | ${V["02"].carbonWater} |
|
|
103
|
+
| ${V["01"].protein} | | ${V["02"].protein} |
|
|
104
|
+
| ${V["01"].fat} | | ${V["02"].fat} |
|
|
105
105
|
|
|
106
106
|
| ${n("msg_obj_firstMsg_dinner")} | | ${n("msg_obj_firstMsg_snack")} |
|
|
107
107
|
|------------|----------|----|
|
|
108
|
-
| ${
|
|
109
|
-
| ${
|
|
110
|
-
| ${
|
|
111
|
-
| ${
|
|
112
|
-
`);ne=H.pop(),H.forEach(We=>{if(We.trim().length>0&&We.trim().startsWith("data:")){const nt=We.replace(/^data:\s*/,""),Ee=JSON.parse(nt);if(console.log("Received:",Ee),i.value=!0,s.value="04",!l.value[A].bot_id&&Ee.bot_id&&(l.value[A].bot_id=Ee.bot_id),!l.value[A].conversation_id&&Ee.conversation_id&&(l.value[A].conversation_id=Ee.conversation_id),Ee.hasOwnProperty("reasoning_content")&&Ee.reasoning_content&&Ee.type==="answer")l.value[A].status="thinking",l.value[A].reasoning_content+=Ee.reasoning_content,R();else if(Ee.hasOwnProperty("content")&&Ee.hasOwnProperty("content_type")&&Ee.content_type==="text"&&Ee.hasOwnProperty("type")&&Ee.type==="answer"&&!Ee.hasOwnProperty("created_at"))l.value[A].status="answering",l.value[A].content=$(l.value[A].content+Ee.content),R();else if(Ee.hasOwnProperty("type")&&Ee.type==="tool_response"){const Bt=JSON.parse(Ee.content);if(Bt.hasOwnProperty("showType"))l.value[A].extra.push({...Bt});else if(Bt.hasOwnProperty("response_for_model")){const b=JSON.parse(Bt.response_for_model);b.hasOwnProperty("showType")&&l.value[A].extra.push({...b})}R()}}})}console.log("====",l.value)},k=async()=>{const P=await tr(`https://api.coze.cn/v1/conversation/message/list?conversation_id=${o.value}`,{order:"asc"},{...u.value});if(P.code===0&&P.data&&P.data.length){l.value=[];const J=[];P.data.forEach(F=>{if(F.hasOwnProperty("content_type")){if(F.content_type==="text")l.value.push({chat_id:F.chat_id,conversation_id:F.conversation_id,bot_id:F.bot_id,role:F.role,meta_data:F.meta_data,content:$(F.content),reasoning_content:F.reasoning_content,status:"ended",extra:[]});else if(F.content_type==="card"&&F.role==="assistant")try{const ee=JSON.parse(F.content);if(ee.hasOwnProperty("showType"))J.push({chat_id:F.chat_id,conversation_id:F.conversation_id,bot_id:F.bot_id,role:F.role,extra:[{...ee}]});else if(ee.hasOwnProperty("response_for_model")){const Z=JSON.parse(ee.response_for_model);Z.hasOwnProperty("showType")&&J.push({chat_id:F.chat_id,conversation_id:F.conversation_id,bot_id:F.bot_id,role:F.role,extra:[{...Z}]})}}catch{console.log("== 解析错误 sys==")}else if(F.content_type==="object_string"&&F.role==="user")try{const ee=JSON.parse(F.content);J.push({chat_id:F.chat_id,conversation_id:F.conversation_id,bot_id:F.bot_id,role:F.role,meta_data:F.meta_data,extra:ee.map(Z=>({...Z,showType:Z.type}))})}catch{console.log("== 解析错误 user==")}}}),J.forEach(F=>{const ee=F.role==="user"?l.value.findIndex(Z=>Z.meta_data.chat_group===F.meta_data.chat_group&&Z.role===F.role):l.value.findIndex(Z=>Z.chat_id===F.chat_id&&Z.role===F.role);ee>-1&&(l.value[ee].extra=[...F.extra])})}console.log("== history ==",l.value,C.value)},T=async()=>{const P=await zc(`https://api.coze.cn/v1/bot/get_online_info?bot_id=${_.botId}`,{...u.value});console.log(P),P.code===0&&P.data&&(v.value={...P.data})},$=P=>P,z=()=>{p("call",{type:"back"})},V=P=>{x([{content:P.content,text:P.text}])},ae=P=>{switch(console.log(P),P.type){case"chat":x([{content:P.msg,text:P.msg}]);break;case"call":p("call",{...P});break;case"simulate":Oe(P);break}},U=({type:P},J)=>{switch(P){case"change":x([{content:n("msg_obj_changeDishes"),text:n("msg_obj_changeDishes")}]);break;case"match":x([{content:m.value.matchContent,text:m.value.matchText}]);break;case"personalForm":Oe({msg:n("msg_obj_personalizedDiet"),name:n("msg_obj_userInfo"),value:"personalForm"});break;default:p("call",{type:P,info:J})}},W=P=>{switch(P.type){case"new_chat":h();break;default:p("call",P);break}},R=()=>{setTimeout(()=>{a.nextTick(()=>{D.value.scrollIntoView()})},100)};a.provide("triggerScrollToEnd",R);const ye=P=>/#全日總熱量:(\d*?)kcal/g.test(P),Oe=(P,J=!0)=>{J&&l.value.push({conversation_id:"",bot_id:_.botId,role:"user",content:P.msg,reasoning_content:"",status:"ended",extra:[]});let F={msg:"",extra:[]};switch(P.value){case"personalForm":F.msg=n("msg_obj_fillPersonalData"),F.extra=[{showType:"personalForm"}];break;case"contactKF":F.msg=n("msg_obj_contactNutritionist"),F.extra=[{showType:"contactKF"}];break}l.value.push({conversation_id:"",bot_id:_.botId,role:"assistant",content:F.msg,reasoning_content:"",status:"ended",extra:[...F.extra]}),f.value+=1,_.needLog&&p("log",{turns:f.value,info:{...l.value[l.value.length-1],question:{content:P.msg,role:"user"}}}),R()};return(P,J)=>(a.openBlock(),a.createElementBlock("div",sb,[a.createElementVNode("div",lb,[e.showHeader?(a.openBlock(),a.createElementBlock("div",cb,[a.createElementVNode("div",{class:"title",onClick:a.withModifiers(k,["stop"])},[a.createElementVNode("div",{class:"back",onClick:a.withModifiers(z,["stop"])},[a.createVNode(z_)]),a.createElementVNode("div",fb,[a.createElementVNode("div",db,a.toDisplayString(e.name),1),e.nameSub?(a.openBlock(),a.createElementBlock("div",_b,a.toDisplayString(e.nameSub),1)):a.createCommentVNode("",!0)])]),a.createElementVNode("div",hb,[a.createElementVNode("button",{class:"btn",onClick:a.withModifiers(h,["stop"])},[a.createVNode(si,{class:"icon"}),a.createElementVNode("span",mb,a.toDisplayString(m.value.newChat),1)]),a.withDirectives(a.createElementVNode("template",null,[a.createElementVNode("button",pb,[a.createVNode(Bc)]),a.createElementVNode("button",gb,[a.createVNode(ea)])],512),[[a.vShow,!1]])])])):a.createCommentVNode("",!0),a.createElementVNode("div",bb,[v.value&&v.value.onboarding_info?(a.openBlock(),a.createElementBlock("div",yb,[a.createElementVNode("div",Eb,[a.createElementVNode("img",{src:v.value.icon_url,alt:"icon",width:"64",height:"64",style:{"border-radius":"15px"}},null,8,kb),a.createElementVNode("p",xb,a.toDisplayString(v.value.name),1)]),a.createElementVNode("div",Cb,a.toDisplayString(v.value.onboarding_info.prologue),1),a.createElementVNode("div",vb,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value.onboarding_info.suggested_questions,(F,ee)=>(a.openBlock(),a.createElementBlock("span",{key:ee,class:"board_sug",onClick:a.withModifiers(Z=>x([{content:F,text:F}]),["stop"])},a.toDisplayString(F),9,wb))),128))])])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.value,(F,ee)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:ee},[F.role==="assistant"?(a.openBlock(),a.createElementBlock("div",Db,[a.createElementVNode("div",Nb,[a.createElementVNode("div",Ab,[a.createElementVNode("img",{class:"avatar",src:e.logo,alt:"avatar"},null,8,Tb),a.createTextVNode(" "+a.toDisplayString(e.name),1)]),a.createElementVNode("div",Sb,[F.reasoning_content?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[F.status==="thinking"?(a.openBlock(),a.createElementBlock("div",Ib,[a.createVNode(Q_,{class:"icon"}),a.createTextVNode(" "+a.toDisplayString(m.value.thinking),1)])):(a.openBlock(),a.createElementBlock("div",Ob,[a.createVNode(rh,{class:"icon"}),a.createTextVNode(" "+a.toDisplayString(m.value.thinkCompleted),1)])),a.createElementVNode("p",Lb,a.toDisplayString(F.reasoning_content),1)],64)):a.createCommentVNode("",!0),F.content?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[e.contentTye==="text"?(a.openBlock(),a.createBlock(ah,{key:0,content:F.content},null,8,["content"])):e.contentTye==="markdown"?(a.openBlock(),a.createBlock(zp,{key:1,content:F.content},null,8,["content"])):a.createCommentVNode("",!0),i.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[F.extra.length?(a.openBlock(),a.createElementBlock("div",Fb,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F.extra,(Z,Ie)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:Ie},[C.value.dishes&&Z.showType==="card"?(a.openBlock(),a.createBlock(x1,{key:0,"sku-list":Z.skuList,"is-mini":!e.showHeader,"def-msg":m.value,channel:e.channel,onSelect:ue=>U(ue,Z)},null,8,["sku-list","is-mini","def-msg","channel","onSelect"])):a.createCommentVNode("",!0),C.value.plan&&Z.showType==="plan"?(a.openBlock(),a.createBlock(j1,{key:1,info:Z,"def-msg":m.value,onSelect:ue=>U({type:"match"},Z)},null,8,["info","def-msg","onSelect"])):a.createCommentVNode("",!0),C.value.store&&Z.showType==="store"?(a.openBlock(),a.createBlock(fh,{key:2,list:Z.storeList,onSelect:V},null,8,["list"])):a.createCommentVNode("",!0),C.value.personalForm&&Z.showType==="personalForm"?(a.openBlock(),a.createBlock(ib,{key:3,query:e.firstMsg,onSubmit:x},null,8,["query"])):a.createCommentVNode("",!0),Z.showType==="contactKF"?(a.openBlock(),a.createElementBlock("div",Mb,[a.createTextVNode(a.toDisplayString(a.unref(n)("msg_obj_hotline")),1),J[2]||(J[2]=a.createElementVNode("a",{href:"tel:4006681606"},"400 6681 606",-1)),J[3]||(J[3]=a.createElementVNode("img",{src:"https://prodstatic.weis1606.cn/api/smartFood/mealPlan/contact_kf.png",alt:"",width:"100%",style:{"margin-top":"10px"}},null,-1))])):a.createCommentVNode("",!0)],64))),128))])):ye(F.content)?(a.openBlock(),a.createElementBlock("div",Pb,[a.createElementVNode("div",{class:"cui_btn cui_btn_2",onClick:J[0]||(J[0]=a.withModifiers(Z=>U({type:"match"},{}),["stop"]))},a.toDisplayString(m.value.useSolution),1)])):a.createCommentVNode("",!0)],64))],64)):a.createCommentVNode("",!0),i.value&&ee===l.value.length-1?(a.openBlock(),a.createElementBlock("div",$b,[a.createTextVNode(a.toDisplayString(a.unref(n)("msg_obj_generating"))+" ",1),a.createVNode(W_)])):a.createCommentVNode("",!0)])])])):(a.openBlock(),a.createElementBlock("div",Bb,[a.createElementVNode("div",Vb,[a.createElementVNode("div",Rb,[a.createTextVNode(a.toDisplayString(a.unref(n)("msg_obj_userName"))+" ",1),a.createElementVNode("img",{class:"avatar",src:e.avatar,alt:"avatar"},null,8,jb)]),a.createElementVNode("div",zb,[a.createElementVNode("p",{class:"text",innerHTML:F.content},null,8,Ub),F.extra.length?(a.openBlock(),a.createElementBlock("div",qb,[a.createVNode(X_,{list:F.extra},null,8,["list"])])):a.createCommentVNode("",!0)])])]))],64))),128)),a.createElementVNode("div",{ref_key:"endTarget",ref:D,style:{height:"100px"}},null,512)]),a.createVNode(B_,{modelValue:N.value,"onUpdate:modelValue":J[1]||(J[1]=F=>N.value=F),"new-chat":!e.showHeader,token:e.token,"tag-list":e.tagList,"def-msg":m.value,"is-req":s.value,onSend:x,onTag:ae,onCall:W},null,8,["modelValue","new-chat","token","tag-list","def-msg","is-req"])])]))}},[["__scopeId","data-v-27bb367d"]]),Hb={"zh-CN":{common_send:"发送",common_cancel:"取消",common_confirm:"确认",common_close:"关闭",common_save:"保存",common_delete:"删除",common_edit:"编辑",common_add:"添加",common_back:"返回",common_next:"下一步",common_previous:"上一步",common_loading:"加载中...",common_success:"操作成功",common_error:"操作失败",common_warning:"警告",common_info:"提示",chat_newChat:"新聊天",chat_history:"历史记录",chat_settings:"设置",chat_help:"帮助",chat_about:"关于",chat_inputPlaceholder:"输入消息...",chat_sendButton:"发送",chat_clearButton:"清空",chat_exportButton:"导出",chat_importButton:"导入",msg_obj_placeholder:"发消息⋯",msg_obj_fileText:"请根据我上传的体检报告为我生成饮食方案",msg_obj_uploadingTips:"文件正在上传,请稍候...",msg_obj_matchText:"请用以上方案为我配餐",msg_obj_matchContent:"请用以上方案为我配餐",msg_obj_energy:"热量",msg_obj_protein:"蛋白质",msg_obj_fat:"脂肪",msg_obj_carbonwater:"碳水",msg_obj_newChat:"新对话",msg_obj_thinking:"思考中...",msg_obj_thinkCompleted:"思考完成",msg_obj_useSolution:"用该方案配餐",msg_obj_aiTips:"【内容由AI生成,仅供参考】",msg_obj_userName:"健康用户",msg_obj_generating:"Ai努力生成中...",msg_obj_hotline:"电话热线:",msg_obj_changeDishes:"换一套菜品",msg_obj_personalizedDiet:"请为我生成一份个性化的健康的食谱",msg_obj_fillPersonalData:"请填写您的身体数据,维小饭将根据你的身体数据智能生成个性化食谱",msg_obj_contactNutritionist:"联系专业营养师团队帮你快速实现科学配比的健康餐营养搭配。",msg_obj_userInfo:"用户信息",msg_obj_tags_customerService:"人工客服",msg_obj_tags_viewMenu:"查看菜单",msg_obj_tags_medicalReport:"体检报告",msg_obj_firstMsg_balancedDiet:"本食谱为均衡营养版",msg_obj_firstMsg_calorieControlledDiet:"本食谱为控卡版",msg_obj_firstMsg_dietExample:"的食疗调养方案示例,依据以下",msg_obj_firstMsg_femaleData:"女性常规身体数据制定:",msg_obj_firstMsg_maleData:"男性常规身体数据制定:",msg_obj_firstMsg_gender:"性别:",msg_obj_firstMsg_age:"年龄:",msg_obj_firstMsg_height:"身高:",msg_obj_firstMsg_weight:"体重:",msg_obj_firstMsg_activityLevel:"日常运动水平:",msg_obj_firstMsg_tastePreferences:"口味偏好及饮食禁忌:",msg_obj_firstMsg_noRestrictions:"无",msg_obj_firstMsg_customizePlan:"如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。",msg_obj_firstMsg_sedentary:"久坐",msg_obj_firstMsg_generalDietAdvice:"我将为您出通用的食谱建议,如您有定制化健康诉求,请点击下方'私人订制个性食谱'来让我结合您的个人情况制定个性化配餐计划",msg_obj_firstMsg_breakfast:"早餐",msg_obj_firstMsg_lunch:"午餐",msg_obj_firstMsg_dinner:"晚餐",msg_obj_firstMsg_snack:"加餐",msg_obj_store_selectStore:"请选择一个门店",msg_obj_dishes_collapseMenu:"收起菜谱",msg_obj_dishes_viewFullMenu:"点击查看完整食谱",msg_obj_dishes_warmTip:"温馨提示:维小饭AI健康食谱为日常膳食调理方案,不能替代药物治疗或专业医疗建议。如有疾病,请及时就医并遵医嘱。",msg_obj_dishes_halfPriceSurprise:"半价惊喜,下单即得!",msg_obj_dishes_personalizedRecipe:"私人定制个性食谱",msg_obj_dishes_orderNow:"去订餐",msg_obj_dishes_deliveryOrder:"配送下單",msg_obj_dishes_deliveryToDoor:"(直送到府)",msg_obj_dishes_pickupOrder:"自提下單",msg_obj_dishes_freeShipping:"(免運費)",msg_obj_operate_photoAlbum:"相册",msg_obj_operate_file:"文件",msg_obj_plan_dailyIntake:"每日攝入能量",msg_obj_plan_breakfast:"早餐",msg_obj_plan_lunch:"午餐",msg_obj_plan_dinner:"晚餐",msg_obj_plan_snack:"加餐",msg_obj_plan_carbohydrate:"碳水化合物",msg_obj_plan_protein:"蛋白質",msg_obj_plan_fat:"脂肪",msg_obj_plan_useThisPlan:"用該方案配餐",personal_form_title:"个人信息",personal_form_sex:"性别",personal_form_age:"年龄",personal_form_height:"身高",personal_form_weight:"体重",personal_form_sport:"日常运动水平",personal_form_taste:"口味偏好",personal_form_taboo:"饮食禁忌",personal_form_placeholder_sex:"请选择",personal_form_placeholder_age:"请输入年龄",personal_form_placeholder_height:"请输入身高",personal_form_placeholder_weight:"请输入体重",personal_form_placeholder_sport:"请输入",personal_form_placeholder_taste:"无忌口",personal_form_unit_age:"岁",personal_form_unit_height:"cm",personal_form_unit_weight:"kg",personal_form_sport_list_rest:"休息状态",personal_form_sport_list_rest_sub:"卧床或者坐式休息",personal_form_sport_list_sedentary:"久坐",personal_form_sport_list_sedentary_sub:"坐式工作",personal_form_sport_list_light:"轻体力",personal_form_sport_list_light_sub:"站立或需要走动的工作",personal_form_sport_list_medium:"中体力",personal_form_sport_list_medium_sub:"走动多的工作",personal_form_sport_list_heavy:"重体力",personal_form_sport_list_heavy_sub:"高强度体力工作",personal_form_taste_list_spicy:"不吃辣",personal_form_taste_list_onion:"不吃葱",personal_form_taste_list_ginger:"不吃姜",personal_form_taste_list_garlic:"不吃蒜",personal_form_taste_list_sugar:"不吃糖",personal_form_taste_list_fish:"不吃鱼",personal_form_taste_list_shrimp:"不吃虾",personal_form_taste_list_beef:"不吃牛肉",personal_form_taste_list_chicken:"不吃鸡肉",personal_form_taste_list_pork:"不吃猪肉",personal_form_taboo_list_high_gi:"高GI",personal_form_taboo_list_high_saturated_fat:"高饱和脂肪酸",personal_form_taboo_list_high_purine:"高嘌呤",personal_form_taboo_list_high_salt:"高盐",personal_form_taboo_list_high_cholesterol:"高胆固醇",personal_form_button:"按身体数据领取食谱",personal_form_toast_select_sex:"请选择性别",personal_form_toast_input_age:"请输入年龄",personal_form_toast_input_height:"请输入身高",personal_form_toast_input_weight:"请输入体重",personal_form_toast_select_sport:"请选择日常运动水平",personal_form_toast_fill_all:"请填写完整信息",personal_form_toast_age_range:"年龄需要在6-100岁",personal_form_toast_height_range:"身高需要在100-220cm",personal_form_toast_weight_range:"体重需要在10-150kg",personal_form_dialog_sex:"选择性别",personal_form_dialog_age:"设置年龄",personal_form_dialog_height:"设置身高",personal_form_dialog_weight:"设置体重",personal_form_dialog_sport:"日常运动水平",personal_form_dialog_taste:"口味偏好&饮食禁忌",personal_form_no_taboo:"没有饮食禁忌",personal_form_sex_options_male:"男",personal_form_sex_options_female:"女",personal_form_placeholder_input:"请输入",personal_form_target:"饮食目标",personal_form_placeholder_target:"点击选择",personal_form_dialog_target:"选择饮食目标",personal_form_toast_select_target:"请选择饮食目标",personal_form_target_list_01:"健康减磅",personal_form_target_list_01_sub:"减脂、减重、塑形人群适用",personal_form_target_list_03:"均衡饮食",personal_form_target_list_03_sub:"控制体重、保持体型人群适用",personal_form_dialog_title:"标题",dishes_card_view_details:"查看菜谱详情",dishes_card_craft:"制作工艺",dishes_card_collapse:"收起",dishes_cart_cate_01:"早餐",dishes_cart_cate_02:"午餐",dishes_cart_cate_03:"晚餐",dishes_cart_cate_04:"加餐"},"en-US":{common_send:"Send",common_cancel:"Cancel",common_confirm:"Confirm",common_close:"Close",common_save:"Save",common_delete:"Delete",common_edit:"Edit",common_add:"Add",common_back:"Back",common_next:"Next",common_previous:"Previous",common_loading:"Loading...",common_success:"Operation successful",common_error:"Operation failed",common_warning:"Warning",common_info:"Info",chat_newChat:"New Chat",chat_history:"History",chat_settings:"Settings",chat_help:"Help",chat_about:"About",chat_inputPlaceholder:"Type a message...",chat_sendButton:"Send",chat_clearButton:"Clear",chat_exportButton:"Export",chat_importButton:"Import",msg_obj_placeholder:"Type a message⋯",msg_obj_fileText:"Please generate a diet plan based on my uploaded medical report",msg_obj_uploadingTips:"File is uploading, please wait...",msg_obj_matchText:"Please use the above plan to prepare meals for me",msg_obj_matchContent:"Please use the above plan to prepare meals for me",msg_obj_energy:"Calories",msg_obj_protein:"Protein",msg_obj_fat:"Fat",msg_obj_carbonwater:"Carbs",msg_obj_newChat:"New",msg_obj_thinking:"Thinking...",msg_obj_thinkCompleted:"Thinking completed",msg_obj_useSolution:"Use this plan to prepare meals",msg_obj_aiTips:"[Content generated by AI, for reference only]",msg_obj_userName:"Healthy User",msg_obj_generating:"generating...",msg_obj_hotline:"Hotline: ",msg_obj_changeDishes:"Change dishes",msg_obj_personalizedDiet:"Please generate a personalized healthy diet plan for me",msg_obj_fillPersonalData:"Please fill in your physical data, and we will intelligently generate personalized recipes based on your physical data.",msg_obj_contactNutritionist:"Contact a professional nutritionist team to help you quickly achieve scientifically proportioned healthy meal nutrition.",msg_obj_userInfo:"User Information",msg_obj_tags_customerService:"Customer Service",msg_obj_tags_viewMenu:"View Menu",msg_obj_tags_medicalReport:"Medical Report",msg_obj_firstMsg_balancedDiet:"This recipe is a balanced nutrition version",msg_obj_firstMsg_calorieControlledDiet:"This recipe is a calorie-controlled version",msg_obj_firstMsg_dietExample:" dietary therapy plan example, based on the following",msg_obj_firstMsg_femaleData:"female regular body data:",msg_obj_firstMsg_maleData:"male regular body data:",msg_obj_firstMsg_gender:"Gender: ",msg_obj_firstMsg_age:"Age: ",msg_obj_firstMsg_height:"Height: ",msg_obj_firstMsg_weight:"Weight: ",msg_obj_firstMsg_activityLevel:"Daily activity level: ",msg_obj_firstMsg_tastePreferences:"Taste preferences and dietary restrictions: ",msg_obj_firstMsg_noRestrictions:"None",msg_obj_firstMsg_customizePlan:"To customize an exclusive plan that fits your personal situation, please go to complete your personal body data to get a personalized recipe.",msg_obj_firstMsg_sedentary:"Sedentary",msg_obj_firstMsg_generalDietAdvice:"I will provide you with general recipe suggestions. If you have customized health needs, please click 'Personalized Recipe' below to let me create a personalized meal plan based on your personal situation",msg_obj_firstMsg_breakfast:"Breakfast",msg_obj_firstMsg_lunch:"Lunch",msg_obj_firstMsg_dinner:"Dinner",msg_obj_firstMsg_snack:"Snack",msg_obj_store_selectStore:"Please select a store",msg_obj_dishes_collapseMenu:"Collapse menu",msg_obj_dishes_viewFullMenu:"Click to view full recipe",msg_obj_dishes_warmTip:"Warm tip: AI healthy recipe is a daily dietary conditioning plan and cannot replace medication or professional medical advice. If you have any illness, please seek medical attention promptly and follow your doctor's advice.",msg_obj_dishes_halfPriceSurprise:"Half-price surprise, get it when you order!",msg_obj_dishes_personalizedRecipe:"Personalized recipe",msg_obj_dishes_orderNow:"Go to order",msg_obj_dishes_deliveryOrder:"Delivery order",msg_obj_dishes_deliveryToDoor:"(Delivered to your door)",msg_obj_dishes_pickupOrder:"Pickup order",msg_obj_dishes_freeShipping:"(Free shipping)",msg_obj_operate_photoAlbum:"Photo Album",msg_obj_operate_file:"File",msg_obj_plan_dailyIntake:"Daily Intake",msg_obj_plan_breakfast:"Breakfast",msg_obj_plan_lunch:"Lunch",msg_obj_plan_dinner:"Dinner",msg_obj_plan_snack:"Snack",msg_obj_plan_carbohydrate:"Carbohydrates",msg_obj_plan_protein:"Protein",msg_obj_plan_fat:"Fat",msg_obj_plan_useThisPlan:"Use this plan for meals",personal_form_title:"Personal Information",personal_form_sex:"Gender",personal_form_age:"Age",personal_form_height:"Height",personal_form_weight:"Weight",personal_form_sport:"Daily Activity Level",personal_form_taste:"Taste Preferences",personal_form_taboo:"Dietary Restrictions",personal_form_placeholder_sex:"Please select",personal_form_placeholder_age:"Please enter age",personal_form_placeholder_height:"Please enter height",personal_form_placeholder_weight:"Please enter weight",personal_form_placeholder_sport:"Please enter",personal_form_placeholder_taste:"No restrictions",personal_form_unit_age:"years",personal_form_unit_height:"cm",personal_form_unit_weight:"kg",personal_form_sport_list_rest:"Resting",personal_form_sport_list_rest_sub:"Bedridden or sitting rest",personal_form_sport_list_sedentary:"Sedentary",personal_form_sport_list_sedentary_sub:"Office work",personal_form_sport_list_light:"Light activity",personal_form_sport_list_light_sub:"Standing or walking work",personal_form_sport_list_medium:"Moderate activity",personal_form_sport_list_medium_sub:"Work with frequent walking",personal_form_sport_list_heavy:"Heavy activity",personal_form_sport_list_heavy_sub:"High-intensity physical work",personal_form_taste_list_spicy:"No spicy",personal_form_taste_list_onion:"No green onions",personal_form_taste_list_ginger:"No ginger",personal_form_taste_list_garlic:"No garlic",personal_form_taste_list_sugar:"No sugar",personal_form_taste_list_fish:"No fish",personal_form_taste_list_shrimp:"No shrimp",personal_form_taste_list_beef:"No beef",personal_form_taste_list_chicken:"No chicken",personal_form_taste_list_pork:"No pork",personal_form_taboo_list_high_gi:"High GI",personal_form_taboo_list_high_saturated_fat:"High saturated fat",personal_form_taboo_list_high_purine:"High purine",personal_form_taboo_list_high_salt:"High salt",personal_form_taboo_list_high_cholesterol:"High cholesterol",personal_form_button:"Get diet plan based on body data",personal_form_toast_select_sex:"Please select gender",personal_form_toast_input_age:"Please enter age",personal_form_toast_input_height:"Please enter height",personal_form_toast_input_weight:"Please enter weight",personal_form_toast_select_sport:"Please select daily activity level",personal_form_toast_fill_all:"Please fill in all information",personal_form_toast_age_range:"Age should be between 6-100 years",personal_form_toast_height_range:"Height should be between 100-220cm",personal_form_toast_weight_range:"Weight should be between 10-150kg",personal_form_dialog_sex:"Select Gender",personal_form_dialog_age:"Set Age",personal_form_dialog_height:"Set Height",personal_form_dialog_weight:"Set Weight",personal_form_dialog_sport:"Daily Activity Level",personal_form_dialog_taste:"Taste Preferences",personal_form_no_taboo:"No dietary restrictions",personal_form_sex_options_male:"Male",personal_form_sex_options_female:"Female",personal_form_placeholder_input:"Please input",personal_form_target:"Dietary Goal",personal_form_placeholder_target:"Please select",personal_form_dialog_target:"Select Dietary Goal",personal_form_toast_select_target:"Please select dietary goal",personal_form_target_list_01:"Healthy Weight Loss",personal_form_target_list_01_sub:"Suitable for fat loss, weight loss, and body shaping",personal_form_target_list_03:"Balanced Diet",personal_form_target_list_03_sub:"Suitable for weight control and body maintenance",personal_form_dialog_title:"Title",dishes_card_view_details:"View recipe details",dishes_card_craft:"Preparation Process",dishes_card_collapse:"Collapse",dishes_cart_cate_01:"Breakfast",dishes_cart_cate_02:"Lunch",dishes_cart_cate_03:"Dinner",dishes_cart_cate_04:"Snack"},"zh-TW":{common_send:"發送",common_cancel:"取消",common_confirm:"確認",common_close:"關閉",common_save:"保存",common_delete:"刪除",common_edit:"編輯",common_add:"添加",common_back:"返回",common_next:"下一步",common_previous:"上一步",common_loading:"加載中...",common_success:"操作成功",common_error:"操作失敗",common_warning:"警告",common_info:"提示",chat_newChat:"新聊天",chat_history:"歷史記錄",chat_settings:"設置",chat_help:"幫助",chat_about:"關於",chat_inputPlaceholder:"輸入消息...",chat_sendButton:"發送",chat_clearButton:"清空",chat_exportButton:"導出",chat_importButton:"導入",msg_obj_placeholder:"發消息⋯",msg_obj_fileText:"請根據我上傳的體檢報告為我生成飲食方案",msg_obj_uploadingTips:"文件正在上傳,請稍候...",msg_obj_matchText:"請用以上方案為我配餐",msg_obj_matchContent:"請用以上方案為我配餐",msg_obj_energy:"熱量",msg_obj_protein:"蛋白質",msg_obj_fat:"脂肪",msg_obj_carbonwater:"碳水",msg_obj_newChat:"新對話",msg_obj_thinking:"思考中...",msg_obj_thinkCompleted:"思考完成",msg_obj_useSolution:"用該方案配餐",msg_obj_aiTips:"【内容由AI生成,僅供參考】",msg_obj_userName:"健康用戶",msg_obj_generating:"Ai努力生成中...",msg_obj_hotline:"電話熱線:",msg_obj_changeDishes:"換一套菜品",msg_obj_personalizedDiet:"請為我生成一份個性化的健康的食譜",msg_obj_fillPersonalData:"請填寫您的身體數據,我們將根據你的身體數據智能生成個性化食譜",msg_obj_contactNutritionist:"聯繫專業營養師團隊幫你快速實現科學配比的健康餐營養搭配。",msg_obj_userInfo:"用戶信息",msg_obj_tags_customerService:"人工客服",msg_obj_tags_viewMenu:"查看菜單",msg_obj_tags_medicalReport:"體檢報告",msg_obj_firstMsg_balancedDiet:"本食譜為均衡營養版",msg_obj_firstMsg_calorieControlledDiet:"本食譜為控卡版",msg_obj_firstMsg_dietExample:"的食療調養方案示例,依據以下",msg_obj_firstMsg_femaleData:"女性常規身體數據制定:",msg_obj_firstMsg_maleData:"男性常規身體數據制定:",msg_obj_firstMsg_gender:"性別:",msg_obj_firstMsg_age:"年齡:",msg_obj_firstMsg_height:"身高:",msg_obj_firstMsg_weight:"體重:",msg_obj_firstMsg_activityLevel:"日常運動水平:",msg_obj_firstMsg_tastePreferences:"口味偏好及飲食禁忌:",msg_obj_firstMsg_noRestrictions:"無",msg_obj_firstMsg_customizePlan:"如需定制貼合個人情況的專屬方案,請前往完善個人身體數據,獲取個性化定制食譜。",msg_obj_firstMsg_sedentary:"久坐",msg_obj_firstMsg_generalDietAdvice:"我將為您出通用的食譜建議,如您有定制化健康訴求,請點擊下方'私人訂制個性食譜'來讓我結合您的個人情況制定個性化配餐計劃",msg_obj_firstMsg_breakfast:"早餐",msg_obj_firstMsg_lunch:"午餐",msg_obj_firstMsg_dinner:"晚餐",msg_obj_firstMsg_snack:"加餐",msg_obj_store_selectStore:"請選擇一個門店",msg_obj_dishes_collapseMenu:"收起菜譜",msg_obj_dishes_viewFullMenu:"點擊查看完整食譜",msg_obj_dishes_warmTip:"溫馨提示:AI健康食譜為日常膳食調理方案,不能替代藥物治療或專業醫療建議。如有疾病,請及時就醫並遵醫囑。",msg_obj_dishes_halfPriceSurprise:"半價驚喜,下單即得!",msg_obj_dishes_personalizedRecipe:"私人訂制個性食譜",msg_obj_dishes_orderNow:"去訂餐",msg_obj_dishes_deliveryOrder:"配送下單",msg_obj_dishes_deliveryToDoor:"(直送到府)",msg_obj_dishes_pickupOrder:"自提下單",msg_obj_dishes_freeShipping:"(免運費)",msg_obj_operate_photoAlbum:"相冊",msg_obj_operate_file:"文件",msg_obj_plan_dailyIntake:"每日攝入能量",msg_obj_plan_breakfast:"早餐",msg_obj_plan_lunch:"午餐",msg_obj_plan_dinner:"晚餐",msg_obj_plan_snack:"加餐",msg_obj_plan_carbohydrate:"碳水化合物",msg_obj_plan_protein:"蛋白質",msg_obj_plan_fat:"脂肪",msg_obj_plan_useThisPlan:"用該方案配餐",personal_form_title:"個人信息",personal_form_sex:"性別",personal_form_age:"年齡",personal_form_height:"身高",personal_form_weight:"體重",personal_form_sport:"日常運動水平",personal_form_taste:"口味偏好",personal_form_taboo:"飲食禁忌",personal_form_placeholder_sex:"請選擇",personal_form_placeholder_age:"請輸入年齡",personal_form_placeholder_height:"請輸入身高",personal_form_placeholder_weight:"請輸入體重",personal_form_placeholder_sport:"請輸入",personal_form_placeholder_taste:"無禁忌",personal_form_unit_age:"歲",personal_form_unit_height:"cm",personal_form_unit_weight:"kg",personal_form_sport_list_rest:"休息狀態",personal_form_sport_list_rest_sub:"卧床或者坐式休息",personal_form_sport_list_sedentary:"久坐",personal_form_sport_list_sedentary_sub:"坐式工作",personal_form_sport_list_light:"輕體力",personal_form_sport_list_light_sub:"站立或需要走動的工作",personal_form_sport_list_medium:"中體力",personal_form_sport_list_medium_sub:"走動多的工作",personal_form_sport_list_heavy:"重體力",personal_form_sport_list_heavy_sub:"高強度體力工作",personal_form_taste_list_spicy:"不吃辣",personal_form_taste_list_onion:"不吃蔥",personal_form_taste_list_ginger:"不吃姜",personal_form_taste_list_garlic:"不吃蒜",personal_form_taste_list_sugar:"不吃糖",personal_form_taste_list_fish:"不吃魚",personal_form_taste_list_shrimp:"不吃蝦",personal_form_taste_list_beef:"不吃牛肉",personal_form_taste_list_chicken:"不吃雞肉",personal_form_taste_list_pork:"不吃豬肉",personal_form_taboo_list_high_gi:"高GI",personal_form_taboo_list_high_saturated_fat:"高飽和脂肪酸",personal_form_taboo_list_high_purine:"高嘌呤",personal_form_taboo_list_high_salt:"高鹽",personal_form_taboo_list_high_cholesterol:"高膽固醇",personal_form_button:"按身體數據領取食譜",personal_form_toast_select_sex:"請選擇性別",personal_form_toast_input_age:"請輸入年齡",personal_form_toast_input_height:"請輸入身高",personal_form_toast_input_weight:"請輸入體重",personal_form_toast_select_sport:"請選擇日常運動水平",personal_form_toast_fill_all:"請填寫完整信息",personal_form_toast_age_range:"年齡需要在6-100歲",personal_form_toast_height_range:"身高需要在100-220cm",personal_form_toast_weight_range:"體重需要在10-150kg",personal_form_dialog_sex:"選擇性別",personal_form_dialog_age:"設置年齡",personal_form_dialog_height:"設置身高",personal_form_dialog_weight:"設置體重",personal_form_dialog_sport:"日常運動水平",personal_form_dialog_taste:"口味偏好&飲食禁忌",personal_form_no_taboo:"沒有飲食禁忌",personal_form_sex_options_male:"男",personal_form_sex_options_female:"女",personal_form_placeholder_input:"請輸入",personal_form_target:"飲食目標",personal_form_placeholder_target:"點擊選擇",personal_form_dialog_target:"選擇飲食目標",personal_form_toast_select_target:"請選擇飲食目標",personal_form_target_list_01:"健康減磅",personal_form_target_list_01_sub:"減脂、減重、塑形人群適用",personal_form_target_list_03:"均衡飲食",personal_form_target_list_03_sub:"控制體重、保持體型人群適用",personal_form_dialog_title:"標題",dishes_card_view_details:"查看菜譜詳情",dishes_card_craft:"製作工藝",dishes_card_collapse:"收起",dishes_cart_cate_01:"早餐",dishes_cart_cate_02:"午餐",dishes_cart_cate_03:"晚餐",dishes_cart_cate_04:"加餐"}},Wb={install:e=>{e.component("ChatUi",As),e.use(Yd,{defaultOptions:{navbar:!1,toolbar:{flipHorizontal:!1,flipVertical:!1,next:!1,prev:!1,play:!1,reset:!0,oneToOne:!0,rotateLeft:!0,rotateRight:!0,zoomIn:!0,zoomOut:!0}}})}};Be.ChatUi=As,Be.default=Wb,Be.messages=Hb,Object.defineProperties(Be,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
108
|
+
| ${V["03"].energy} | | ${V["04"].energy} |
|
|
109
|
+
| ${V["03"].carbonWater} | | ${V["04"].carbonWater} |
|
|
110
|
+
| ${V["03"].protein} | | ${V["04"].protein} |
|
|
111
|
+
| ${V["03"].fat} | | ${V["04"].fat} |`;l.value.push({conversation_id:"",bot_id:_.botId,role:"assistant",content:ne,reasoning_content:"",status:"ended",extra:[{...P.obj,showType:"card"}]}),p("log",{turns:f.value,info:{...l.value[l.value.length-1],question:{content:S,role:"user"}}})}}},C=async()=>{const $=await en("https://api.coze.cn/v1/conversation/create",{bot_id:_.botId,connector_id:"999"},{...u.value});c.value=!0,f.value=0,console.log($),$.code===0&&$.data&&(o.value=$.data.id||"",g.setItem("conversationId",o.value),l.value=[],await B())},k=async $=>{s.value="01";let K=Array.isArray($);const F=_.botId;if(!(!i.value&&(N.value||K)))return;const ae=N.value;console.log("== user send ==",K,$,ae,_.uid),i.value=!0;const Y=[],Be={conversation_id:o.value,bot_id:F,role:"user",content:"",reasoning_content:"",status:"ended",extra:[]},We=`chat_${new Date().getTime()};`;$.forEach(_e=>{_e.hasOwnProperty("content")&&_e.content&&(_e.hasOwnProperty("type")&&_e.type==="object_string"?(console.log("=== item ====",_e),Y.push({content:JSON.stringify(_e.content.map(O=>({type:O.type,file_id:O.file_id}))),content_type:"object_string",role:"user",meta_data:{chat_group:We}}),Be.extra=_e.content.map(O=>({...O,showType:O.type}))):(Be.content=_e.text,Y.push({content:_e.content,content_type:"text",role:"user",meta_data:{chat_group:We}})))}),l.value.push(Be),s.value="02";const S=await fetch(`https://api.coze.cn/v3/chat?conversation_id=${o.value}`,{method:"POST",headers:{...u.value.headers},body:JSON.stringify({bot_id:F,user_id:_.uid,stream:!0,connector_id:"999",additional_messages:Y,custom_variables:{uid:_.uid}}),credentials:"same-origin",mode:"cors",cache:"default"});s.value="03",l.value.push({conversation_id:"",bot_id:"",role:"assistant",content:"",reasoning_content:"",status:"answering",extra:[]}),te(),N.value="";const P=l.value.length-1,V=S.body.getReader(),ne=new TextDecoder("utf-8");let re="";const je=()=>{console.log("======= End ======",l.value,c.value),c.value&&(l.value[P].extra.findIndex(_e=>_e.hasOwnProperty("showType"))===-1&&l.value[P].extra.push({showType:"personalForm"}),c.value=!1,console.log("===============",l.value[P]))};for(;;){const{done:_e,value:O}=await V.read();if(_e){console.log("Stream has ended."),i.value=!1,s.value="00",l.value[P].status="ended",je(),_.needLog&&(p("log",{turns:f.value,info:{...l.value[P],question:{...Be}}}),f.value+=1),te();break}const G=ne.decode(O,{stream:!0});re+=G;const Je=re.split(`
|
|
112
|
+
`);re=Je.pop(),Je.forEach(Ye=>{if(Ye.trim().length>0&&Ye.trim().startsWith("data:")){const Yt=Ye.replace(/^data:\s*/,""),Ce=JSON.parse(Yt);if(console.log("Received:",Ce),i.value=!0,s.value="04",!l.value[P].bot_id&&Ce.bot_id&&(l.value[P].bot_id=Ce.bot_id),!l.value[P].conversation_id&&Ce.conversation_id&&(l.value[P].conversation_id=Ce.conversation_id),Ce.hasOwnProperty("reasoning_content")&&Ce.reasoning_content&&Ce.type==="answer")l.value[P].status="thinking",l.value[P].reasoning_content+=Ce.reasoning_content,te();else if(Ce.hasOwnProperty("content")&&Ce.hasOwnProperty("content_type")&&Ce.content_type==="text"&&Ce.hasOwnProperty("type")&&Ce.type==="answer"&&!Ce.hasOwnProperty("created_at"))l.value[P].status="answering",l.value[P].content=U(l.value[P].content+Ce.content),te();else if(Ce.hasOwnProperty("type")&&Ce.type==="tool_response"){const b=JSON.parse(Ce.content);if(b.hasOwnProperty("showType"))l.value[P].extra.push({...b});else if(b.hasOwnProperty("response_for_model")){const y=JSON.parse(b.response_for_model);y.hasOwnProperty("showType")&&l.value[P].extra.push({...y})}te()}}})}console.log("====",l.value)},A=async()=>{const $=await en(`https://api.coze.cn/v1/conversation/message/list?conversation_id=${o.value}`,{order:"asc"},{...u.value});if($.code===0&&$.data&&$.data.length){l.value=[];const K=[];$.data.forEach(F=>{if(F.hasOwnProperty("content_type")){if(F.content_type==="text")l.value.push({chat_id:F.chat_id,conversation_id:F.conversation_id,bot_id:F.bot_id,role:F.role,meta_data:F.meta_data,content:U(F.content),reasoning_content:F.reasoning_content,status:"ended",extra:[]});else if(F.content_type==="card"&&F.role==="assistant")try{const ae=JSON.parse(F.content);if(ae.hasOwnProperty("showType"))K.push({chat_id:F.chat_id,conversation_id:F.conversation_id,bot_id:F.bot_id,role:F.role,extra:[{...ae}]});else if(ae.hasOwnProperty("response_for_model")){const Y=JSON.parse(ae.response_for_model);Y.hasOwnProperty("showType")&&K.push({chat_id:F.chat_id,conversation_id:F.conversation_id,bot_id:F.bot_id,role:F.role,extra:[{...Y}]})}}catch{console.log("== 解析错误 sys==")}else if(F.content_type==="object_string"&&F.role==="user")try{const ae=JSON.parse(F.content);K.push({chat_id:F.chat_id,conversation_id:F.conversation_id,bot_id:F.bot_id,role:F.role,meta_data:F.meta_data,extra:ae.map(Y=>({...Y,showType:Y.type}))})}catch{console.log("== 解析错误 user==")}}}),K.forEach(F=>{const ae=F.role==="user"?l.value.findIndex(Y=>Y.meta_data.chat_group===F.meta_data.chat_group&&Y.role===F.role):l.value.findIndex(Y=>Y.chat_id===F.chat_id&&Y.role===F.role);ae>-1&&(l.value[ae].extra=[...F.extra])})}console.log("== history ==",l.value,x.value)},B=async()=>{const $=await zc(`https://api.coze.cn/v1/bot/get_online_info?bot_id=${_.botId}`,{...u.value});console.log($),$.code===0&&$.data&&(v.value={...$.data})},U=$=>$,j=()=>{p("call",{type:"back"})},ie=$=>{k([{content:$.content,text:$.text}])},W=$=>{switch(console.log($),$.type){case"chat":k([{content:$.msg,text:$.msg}]);break;case"call":p("call",{...$});break;case"simulate":He($);break}},q=({type:$},K)=>{switch($){case"change":k([{content:n("msg_obj_changeDishes"),text:n("msg_obj_changeDishes")}]);break;case"match":k([{content:m.value.matchContent,text:m.value.matchText}]);break;case"personalForm":He({msg:n("msg_obj_personalizedDiet"),name:n("msg_obj_userInfo"),value:"personalForm"});break;default:p("call",{type:$,info:K})}},Z=$=>{switch($.type){case"new_chat":C();break;default:p("call",$);break}},te=()=>{setTimeout(()=>{a.nextTick(()=>{D.value.scrollIntoView()})},100)};a.provide("triggerScrollToEnd",te);const Pe=$=>/#全日總熱量:(\d*?)kcal/g.test($),He=($,K=!0)=>{K&&l.value.push({conversation_id:"",bot_id:_.botId,role:"user",content:$.msg,reasoning_content:"",status:"ended",extra:[]});let F={msg:"",extra:[]};switch($.value){case"personalForm":F.msg=n("msg_obj_fillPersonalData"),F.extra=[{showType:"personalForm"}];break;case"contactKF":F.msg=n("msg_obj_contactNutritionist"),F.extra=[{showType:"contactKF"}];break}l.value.push({conversation_id:"",bot_id:_.botId,role:"assistant",content:F.msg,reasoning_content:"",status:"ended",extra:[...F.extra]}),f.value+=1,_.needLog&&p("log",{turns:f.value,info:{...l.value[l.value.length-1],question:{content:$.msg,role:"user"}}}),te()};return($,K)=>(a.openBlock(),a.createElementBlock("div",fb,[a.createElementVNode("div",db,[e.showHeader?(a.openBlock(),a.createElementBlock("div",_b,[a.createElementVNode("div",{class:"title",onClick:a.withModifiers(A,["stop"])},[a.createElementVNode("div",{class:"back",onClick:a.withModifiers(j,["stop"])},[a.createVNode(z_)]),a.createElementVNode("div",hb,[a.createElementVNode("div",mb,a.toDisplayString(e.name),1),e.nameSub?(a.openBlock(),a.createElementBlock("div",pb,a.toDisplayString(e.nameSub),1)):a.createCommentVNode("",!0)])]),a.createElementVNode("div",gb,[a.createElementVNode("button",{class:"btn",onClick:a.withModifiers(C,["stop"])},[a.createVNode(si,{class:"icon"}),a.createElementVNode("span",bb,a.toDisplayString(m.value.newChat),1)]),a.withDirectives(a.createElementVNode("template",null,[a.createElementVNode("button",yb,[a.createVNode(Bc)]),a.createElementVNode("button",Eb,[a.createVNode(ea)])],512),[[a.vShow,!1]])])])):a.createCommentVNode("",!0),a.createElementVNode("div",kb,[v.value&&v.value.onboarding_info?(a.openBlock(),a.createElementBlock("div",xb,[a.createElementVNode("div",Cb,[a.createElementVNode("img",{src:v.value.icon_url,alt:"icon",width:"64",height:"64",style:{"border-radius":"15px"}},null,8,vb),a.createElementVNode("p",wb,a.toDisplayString(v.value.name),1)]),a.createElementVNode("div",Db,a.toDisplayString(v.value.onboarding_info.prologue),1),a.createElementVNode("div",Nb,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value.onboarding_info.suggested_questions,(F,ae)=>(a.openBlock(),a.createElementBlock("span",{key:ae,class:"board_sug",onClick:a.withModifiers(Y=>k([{content:F,text:F}]),["stop"])},a.toDisplayString(F),9,Ab))),128))])])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.value,(F,ae)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:ae},[F.role==="assistant"?(a.openBlock(),a.createElementBlock("div",Tb,[a.createElementVNode("div",Sb,[a.createElementVNode("div",Ib,[a.createElementVNode("img",{class:"avatar",src:e.logo,alt:"avatar"},null,8,Ob),a.createTextVNode(" "+a.toDisplayString(e.name),1)]),a.createElementVNode("div",Lb,[F.reasoning_content?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[F.status==="thinking"?(a.openBlock(),a.createElementBlock("div",Fb,[a.createVNode(Q_,{class:"icon"}),a.createTextVNode(" "+a.toDisplayString(m.value.thinking),1)])):(a.openBlock(),a.createElementBlock("div",Mb,[a.createVNode(rh,{class:"icon"}),a.createTextVNode(" "+a.toDisplayString(m.value.thinkCompleted),1)])),a.createElementVNode("p",Pb,a.toDisplayString(F.reasoning_content),1)],64)):a.createCommentVNode("",!0),F.content?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[e.contentTye==="text"?(a.openBlock(),a.createBlock(ah,{key:0,content:F.content},null,8,["content"])):e.contentTye==="markdown"?(a.openBlock(),a.createBlock(zp,{key:1,content:F.content},null,8,["content"])):a.createCommentVNode("",!0),i.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[F.extra.length?(a.openBlock(),a.createElementBlock("div",$b,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F.extra,(Y,Be)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:Be},[x.value.dishes&&Y.showType==="card"?(a.openBlock(),a.createBlock(x1,{key:0,"sku-list":Y.skuList,"is-mini":!e.showHeader,"def-msg":m.value,channel:e.channel,onSelect:We=>q(We,Y)},null,8,["sku-list","is-mini","def-msg","channel","onSelect"])):a.createCommentVNode("",!0),x.value.plan&&Y.showType==="plan"?(a.openBlock(),a.createBlock(j1,{key:1,info:Y,"def-msg":m.value,onSelect:We=>q({type:"match"},Y)},null,8,["info","def-msg","onSelect"])):a.createCommentVNode("",!0),x.value.store&&Y.showType==="store"?(a.openBlock(),a.createBlock(fh,{key:2,list:Y.storeList,onSelect:ie},null,8,["list"])):a.createCommentVNode("",!0),x.value.personalForm&&Y.showType==="personalForm"?(a.openBlock(),a.createBlock(ib,{key:3,query:e.firstMsg,onSubmit:k},null,8,["query"])):a.createCommentVNode("",!0),Y.showType==="contactKF"?(a.openBlock(),a.createElementBlock("div",Bb,[a.createTextVNode(a.toDisplayString(a.unref(n)("msg_obj_hotline")),1),K[2]||(K[2]=a.createElementVNode("a",{href:"tel:4006681606"},"400 6681 606",-1)),K[3]||(K[3]=a.createElementVNode("img",{src:"https://prodstatic.weis1606.cn/api/smartFood/mealPlan/contact_kf.png",alt:"",width:"100%",style:{"margin-top":"10px"}},null,-1))])):a.createCommentVNode("",!0),Y.showType==="select_card"?(a.openBlock(),a.createBlock(cb,{key:5,list:Y.intention,onSelect:w},null,8,["list"])):a.createCommentVNode("",!0)],64))),128))])):Pe(F.content)?(a.openBlock(),a.createElementBlock("div",Vb,[a.createElementVNode("div",{class:"cui_btn cui_btn_2",onClick:K[0]||(K[0]=a.withModifiers(Y=>q({type:"match"},{}),["stop"]))},a.toDisplayString(m.value.useSolution),1)])):a.createCommentVNode("",!0)],64))],64)):a.createCommentVNode("",!0),i.value&&ae===l.value.length-1?(a.openBlock(),a.createElementBlock("div",Rb,[a.createTextVNode(a.toDisplayString(a.unref(n)("msg_obj_generating"))+" ",1),a.createVNode(W_)])):a.createCommentVNode("",!0)])])])):(a.openBlock(),a.createElementBlock("div",jb,[a.createElementVNode("div",zb,[a.createElementVNode("div",Ub,[a.createTextVNode(a.toDisplayString(a.unref(n)("msg_obj_userName"))+" ",1),a.createElementVNode("img",{class:"avatar",src:e.avatar,alt:"avatar"},null,8,qb)]),a.createElementVNode("div",Hb,[a.createElementVNode("p",{class:"text",innerHTML:F.content},null,8,Wb),F.extra.length?(a.openBlock(),a.createElementBlock("div",Yb,[a.createVNode(X_,{list:F.extra},null,8,["list"])])):a.createCommentVNode("",!0)])])]))],64))),128)),a.createElementVNode("div",{ref_key:"endTarget",ref:D,style:{height:"100px"}},null,512)]),a.createVNode(B_,{modelValue:N.value,"onUpdate:modelValue":K[1]||(K[1]=F=>N.value=F),"new-chat":!e.showHeader,token:e.token,"tag-list":e.tagList,"def-msg":m.value,"is-req":s.value,onSend:k,onTag:W,onCall:Z},null,8,["modelValue","new-chat","token","tag-list","def-msg","is-req"])])]))}},[["__scopeId","data-v-6d0508b2"]]),Gb={"zh-CN":{common_send:"发送",common_cancel:"取消",common_confirm:"确认",common_close:"关闭",common_save:"保存",common_delete:"删除",common_edit:"编辑",common_add:"添加",common_back:"返回",common_next:"下一步",common_previous:"上一步",common_loading:"加载中...",common_success:"操作成功",common_error:"操作失败",common_warning:"警告",common_info:"提示",chat_newChat:"新聊天",chat_history:"历史记录",chat_settings:"设置",chat_help:"帮助",chat_about:"关于",chat_inputPlaceholder:"输入消息...",chat_sendButton:"发送",chat_clearButton:"清空",chat_exportButton:"导出",chat_importButton:"导入",msg_obj_placeholder:"发消息⋯",msg_obj_fileText:"请根据我上传的体检报告为我生成饮食方案",msg_obj_uploadingTips:"文件正在上传,请稍候...",msg_obj_matchText:"请用以上方案为我配餐",msg_obj_matchContent:"请用以上方案为我配餐",msg_obj_energy:"热量",msg_obj_protein:"蛋白质",msg_obj_fat:"脂肪",msg_obj_carbonwater:"碳水",msg_obj_newChat:"新对话",msg_obj_thinking:"思考中...",msg_obj_thinkCompleted:"思考完成",msg_obj_useSolution:"用该方案配餐",msg_obj_aiTips:"【内容由AI生成,仅供参考】",msg_obj_userName:"健康用户",msg_obj_generating:"Ai努力生成中...",msg_obj_hotline:"电话热线:",msg_obj_changeDishes:"换一套菜品",msg_obj_personalizedDiet:"请为我生成一份个性化的健康的食谱",msg_obj_fillPersonalData:"请填写您的身体数据,维小饭将根据你的身体数据智能生成个性化食谱",msg_obj_contactNutritionist:"联系专业营养师团队帮你快速实现科学配比的健康餐营养搭配。",msg_obj_userInfo:"用户信息",msg_obj_tags_customerService:"人工客服",msg_obj_tags_viewMenu:"查看菜单",msg_obj_tags_medicalReport:"体检报告",msg_obj_firstMsg_balancedDiet:"本食谱为均衡营养版",msg_obj_firstMsg_calorieControlledDiet:"本食谱为控卡版",msg_obj_firstMsg_dietExample:"的食疗调养方案示例,依据以下",msg_obj_firstMsg_femaleData:"女性常规身体数据制定:",msg_obj_firstMsg_maleData:"男性常规身体数据制定:",msg_obj_firstMsg_gender:"性别:",msg_obj_firstMsg_age:"年龄:",msg_obj_firstMsg_height:"身高:",msg_obj_firstMsg_weight:"体重:",msg_obj_firstMsg_activityLevel:"日常运动水平:",msg_obj_firstMsg_tastePreferences:"口味偏好及饮食禁忌:",msg_obj_firstMsg_noRestrictions:"无",msg_obj_firstMsg_customizePlan:"如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。",msg_obj_firstMsg_sedentary:"久坐",msg_obj_firstMsg_generalDietAdvice:"我将为您出通用的食谱建议,如您有定制化健康诉求,请点击下方'私人订制个性食谱'来让我结合您的个人情况制定个性化配餐计划",msg_obj_firstMsg_breakfast:"早餐",msg_obj_firstMsg_lunch:"午餐",msg_obj_firstMsg_dinner:"晚餐",msg_obj_firstMsg_snack:"加餐",msg_obj_store_selectStore:"请选择一个门店",msg_obj_dishes_collapseMenu:"收起菜谱",msg_obj_dishes_viewFullMenu:"点击查看完整食谱",msg_obj_dishes_warmTip:"温馨提示:维小饭AI健康食谱为日常膳食调理方案,不能替代药物治疗或专业医疗建议。如有疾病,请及时就医并遵医嘱。",msg_obj_dishes_halfPriceSurprise:"半价惊喜,下单即得!",msg_obj_dishes_personalizedRecipe:"私人定制个性食谱",msg_obj_dishes_orderNow:"去订餐",msg_obj_dishes_deliveryOrder:"配送下單",msg_obj_dishes_deliveryToDoor:"(直送到府)",msg_obj_dishes_pickupOrder:"自提下單",msg_obj_dishes_freeShipping:"(免運費)",msg_obj_operate_photoAlbum:"相册",msg_obj_operate_file:"文件",msg_obj_plan_dailyIntake:"每日攝入能量",msg_obj_plan_breakfast:"早餐",msg_obj_plan_lunch:"午餐",msg_obj_plan_dinner:"晚餐",msg_obj_plan_snack:"加餐",msg_obj_plan_carbohydrate:"碳水化合物",msg_obj_plan_protein:"蛋白質",msg_obj_plan_fat:"脂肪",msg_obj_plan_useThisPlan:"用該方案配餐",personal_form_title:"个人信息",personal_form_sex:"性别",personal_form_age:"年龄",personal_form_height:"身高",personal_form_weight:"体重",personal_form_sport:"日常运动水平",personal_form_taste:"口味偏好",personal_form_taboo:"饮食禁忌",personal_form_placeholder_sex:"请选择",personal_form_placeholder_age:"请输入年龄",personal_form_placeholder_height:"请输入身高",personal_form_placeholder_weight:"请输入体重",personal_form_placeholder_sport:"请输入",personal_form_placeholder_taste:"无忌口",personal_form_unit_age:"岁",personal_form_unit_height:"cm",personal_form_unit_weight:"kg",personal_form_sport_list_rest:"休息状态",personal_form_sport_list_rest_sub:"卧床或者坐式休息",personal_form_sport_list_sedentary:"久坐",personal_form_sport_list_sedentary_sub:"坐式工作",personal_form_sport_list_light:"轻体力",personal_form_sport_list_light_sub:"站立或需要走动的工作",personal_form_sport_list_medium:"中体力",personal_form_sport_list_medium_sub:"走动多的工作",personal_form_sport_list_heavy:"重体力",personal_form_sport_list_heavy_sub:"高强度体力工作",personal_form_taste_list_spicy:"不吃辣",personal_form_taste_list_onion:"不吃葱",personal_form_taste_list_ginger:"不吃姜",personal_form_taste_list_garlic:"不吃蒜",personal_form_taste_list_sugar:"不吃糖",personal_form_taste_list_fish:"不吃鱼",personal_form_taste_list_shrimp:"不吃虾",personal_form_taste_list_beef:"不吃牛肉",personal_form_taste_list_chicken:"不吃鸡肉",personal_form_taste_list_pork:"不吃猪肉",personal_form_taboo_list_high_gi:"高GI",personal_form_taboo_list_high_saturated_fat:"高饱和脂肪酸",personal_form_taboo_list_high_purine:"高嘌呤",personal_form_taboo_list_high_salt:"高盐",personal_form_taboo_list_high_cholesterol:"高胆固醇",personal_form_button:"按身体数据领取食谱",personal_form_toast_select_sex:"请选择性别",personal_form_toast_input_age:"请输入年龄",personal_form_toast_input_height:"请输入身高",personal_form_toast_input_weight:"请输入体重",personal_form_toast_select_sport:"请选择日常运动水平",personal_form_toast_fill_all:"请填写完整信息",personal_form_toast_age_range:"年龄需要在6-100岁",personal_form_toast_height_range:"身高需要在100-220cm",personal_form_toast_weight_range:"体重需要在10-150kg",personal_form_dialog_sex:"选择性别",personal_form_dialog_age:"设置年龄",personal_form_dialog_height:"设置身高",personal_form_dialog_weight:"设置体重",personal_form_dialog_sport:"日常运动水平",personal_form_dialog_taste:"口味偏好&饮食禁忌",personal_form_no_taboo:"没有饮食禁忌",personal_form_sex_options_male:"男",personal_form_sex_options_female:"女",personal_form_placeholder_input:"请输入",personal_form_target:"饮食目标",personal_form_placeholder_target:"点击选择",personal_form_dialog_target:"选择饮食目标",personal_form_toast_select_target:"请选择饮食目标",personal_form_target_list_01:"健康减磅",personal_form_target_list_01_sub:"减脂、减重、塑形人群适用",personal_form_target_list_03:"均衡饮食",personal_form_target_list_03_sub:"控制体重、保持体型人群适用",personal_form_dialog_title:"标题",dishes_card_view_details:"查看菜谱详情",dishes_card_craft:"制作工艺",dishes_card_collapse:"收起",dishes_cart_cate_01:"早餐",dishes_cart_cate_02:"午餐",dishes_cart_cate_03:"晚餐",dishes_cart_cate_04:"加餐"},"en-US":{common_send:"Send",common_cancel:"Cancel",common_confirm:"Confirm",common_close:"Close",common_save:"Save",common_delete:"Delete",common_edit:"Edit",common_add:"Add",common_back:"Back",common_next:"Next",common_previous:"Previous",common_loading:"Loading...",common_success:"Operation successful",common_error:"Operation failed",common_warning:"Warning",common_info:"Info",chat_newChat:"New Chat",chat_history:"History",chat_settings:"Settings",chat_help:"Help",chat_about:"About",chat_inputPlaceholder:"Type a message...",chat_sendButton:"Send",chat_clearButton:"Clear",chat_exportButton:"Export",chat_importButton:"Import",msg_obj_placeholder:"Type a message⋯",msg_obj_fileText:"Please generate a diet plan based on my uploaded medical report",msg_obj_uploadingTips:"File is uploading, please wait...",msg_obj_matchText:"Please use the above plan to prepare meals for me",msg_obj_matchContent:"Please use the above plan to prepare meals for me",msg_obj_energy:"Calories",msg_obj_protein:"Protein",msg_obj_fat:"Fat",msg_obj_carbonwater:"Carbs",msg_obj_newChat:"New",msg_obj_thinking:"Thinking...",msg_obj_thinkCompleted:"Thinking completed",msg_obj_useSolution:"Use this plan to prepare meals",msg_obj_aiTips:"[Content generated by AI, for reference only]",msg_obj_userName:"Healthy User",msg_obj_generating:"generating...",msg_obj_hotline:"Hotline: ",msg_obj_changeDishes:"Change dishes",msg_obj_personalizedDiet:"Please generate a personalized healthy diet plan for me",msg_obj_fillPersonalData:"Please fill in your physical data, and we will intelligently generate personalized recipes based on your physical data.",msg_obj_contactNutritionist:"Contact a professional nutritionist team to help you quickly achieve scientifically proportioned healthy meal nutrition.",msg_obj_userInfo:"User Information",msg_obj_tags_customerService:"Customer Service",msg_obj_tags_viewMenu:"View Menu",msg_obj_tags_medicalReport:"Medical Report",msg_obj_firstMsg_balancedDiet:"This recipe is a balanced nutrition version",msg_obj_firstMsg_calorieControlledDiet:"This recipe is a calorie-controlled version",msg_obj_firstMsg_dietExample:" dietary therapy plan example, based on the following",msg_obj_firstMsg_femaleData:"female regular body data:",msg_obj_firstMsg_maleData:"male regular body data:",msg_obj_firstMsg_gender:"Gender: ",msg_obj_firstMsg_age:"Age: ",msg_obj_firstMsg_height:"Height: ",msg_obj_firstMsg_weight:"Weight: ",msg_obj_firstMsg_activityLevel:"Daily activity level: ",msg_obj_firstMsg_tastePreferences:"Taste preferences and dietary restrictions: ",msg_obj_firstMsg_noRestrictions:"None",msg_obj_firstMsg_customizePlan:"To customize an exclusive plan that fits your personal situation, please go to complete your personal body data to get a personalized recipe.",msg_obj_firstMsg_sedentary:"Sedentary",msg_obj_firstMsg_generalDietAdvice:"I will provide you with general recipe suggestions. If you have customized health needs, please click 'Personalized Recipe' below to let me create a personalized meal plan based on your personal situation",msg_obj_firstMsg_breakfast:"Breakfast",msg_obj_firstMsg_lunch:"Lunch",msg_obj_firstMsg_dinner:"Dinner",msg_obj_firstMsg_snack:"Snack",msg_obj_store_selectStore:"Please select a store",msg_obj_dishes_collapseMenu:"Collapse menu",msg_obj_dishes_viewFullMenu:"Click to view full recipe",msg_obj_dishes_warmTip:"Warm tip: AI healthy recipe is a daily dietary conditioning plan and cannot replace medication or professional medical advice. If you have any illness, please seek medical attention promptly and follow your doctor's advice.",msg_obj_dishes_halfPriceSurprise:"Half-price surprise, get it when you order!",msg_obj_dishes_personalizedRecipe:"Personalized recipe",msg_obj_dishes_orderNow:"Go to order",msg_obj_dishes_deliveryOrder:"Delivery order",msg_obj_dishes_deliveryToDoor:"(Delivered to your door)",msg_obj_dishes_pickupOrder:"Pickup order",msg_obj_dishes_freeShipping:"(Free shipping)",msg_obj_operate_photoAlbum:"Photo Album",msg_obj_operate_file:"File",msg_obj_plan_dailyIntake:"Daily Intake",msg_obj_plan_breakfast:"Breakfast",msg_obj_plan_lunch:"Lunch",msg_obj_plan_dinner:"Dinner",msg_obj_plan_snack:"Snack",msg_obj_plan_carbohydrate:"Carbohydrates",msg_obj_plan_protein:"Protein",msg_obj_plan_fat:"Fat",msg_obj_plan_useThisPlan:"Use this plan for meals",personal_form_title:"Personal Information",personal_form_sex:"Gender",personal_form_age:"Age",personal_form_height:"Height",personal_form_weight:"Weight",personal_form_sport:"Daily Activity Level",personal_form_taste:"Taste Preferences",personal_form_taboo:"Dietary Restrictions",personal_form_placeholder_sex:"Please select",personal_form_placeholder_age:"Please enter age",personal_form_placeholder_height:"Please enter height",personal_form_placeholder_weight:"Please enter weight",personal_form_placeholder_sport:"Please enter",personal_form_placeholder_taste:"No restrictions",personal_form_unit_age:"years",personal_form_unit_height:"cm",personal_form_unit_weight:"kg",personal_form_sport_list_rest:"Resting",personal_form_sport_list_rest_sub:"Bedridden or sitting rest",personal_form_sport_list_sedentary:"Sedentary",personal_form_sport_list_sedentary_sub:"Office work",personal_form_sport_list_light:"Light activity",personal_form_sport_list_light_sub:"Standing or walking work",personal_form_sport_list_medium:"Moderate activity",personal_form_sport_list_medium_sub:"Work with frequent walking",personal_form_sport_list_heavy:"Heavy activity",personal_form_sport_list_heavy_sub:"High-intensity physical work",personal_form_taste_list_spicy:"No spicy",personal_form_taste_list_onion:"No green onions",personal_form_taste_list_ginger:"No ginger",personal_form_taste_list_garlic:"No garlic",personal_form_taste_list_sugar:"No sugar",personal_form_taste_list_fish:"No fish",personal_form_taste_list_shrimp:"No shrimp",personal_form_taste_list_beef:"No beef",personal_form_taste_list_chicken:"No chicken",personal_form_taste_list_pork:"No pork",personal_form_taboo_list_high_gi:"High GI",personal_form_taboo_list_high_saturated_fat:"High saturated fat",personal_form_taboo_list_high_purine:"High purine",personal_form_taboo_list_high_salt:"High salt",personal_form_taboo_list_high_cholesterol:"High cholesterol",personal_form_button:"Get diet plan based on body data",personal_form_toast_select_sex:"Please select gender",personal_form_toast_input_age:"Please enter age",personal_form_toast_input_height:"Please enter height",personal_form_toast_input_weight:"Please enter weight",personal_form_toast_select_sport:"Please select daily activity level",personal_form_toast_fill_all:"Please fill in all information",personal_form_toast_age_range:"Age should be between 6-100 years",personal_form_toast_height_range:"Height should be between 100-220cm",personal_form_toast_weight_range:"Weight should be between 10-150kg",personal_form_dialog_sex:"Select Gender",personal_form_dialog_age:"Set Age",personal_form_dialog_height:"Set Height",personal_form_dialog_weight:"Set Weight",personal_form_dialog_sport:"Daily Activity Level",personal_form_dialog_taste:"Taste Preferences",personal_form_no_taboo:"No dietary restrictions",personal_form_sex_options_male:"Male",personal_form_sex_options_female:"Female",personal_form_placeholder_input:"Please input",personal_form_target:"Dietary Goal",personal_form_placeholder_target:"Please select",personal_form_dialog_target:"Select Dietary Goal",personal_form_toast_select_target:"Please select dietary goal",personal_form_target_list_01:"Healthy Weight Loss",personal_form_target_list_01_sub:"Suitable for fat loss, weight loss, and body shaping",personal_form_target_list_03:"Balanced Diet",personal_form_target_list_03_sub:"Suitable for weight control and body maintenance",personal_form_dialog_title:"Title",dishes_card_view_details:"View recipe details",dishes_card_craft:"Preparation Process",dishes_card_collapse:"Collapse",dishes_cart_cate_01:"Breakfast",dishes_cart_cate_02:"Lunch",dishes_cart_cate_03:"Dinner",dishes_cart_cate_04:"Snack"},"zh-TW":{common_send:"發送",common_cancel:"取消",common_confirm:"確認",common_close:"關閉",common_save:"保存",common_delete:"刪除",common_edit:"編輯",common_add:"添加",common_back:"返回",common_next:"下一步",common_previous:"上一步",common_loading:"加載中...",common_success:"操作成功",common_error:"操作失敗",common_warning:"警告",common_info:"提示",chat_newChat:"新聊天",chat_history:"歷史記錄",chat_settings:"設置",chat_help:"幫助",chat_about:"關於",chat_inputPlaceholder:"輸入消息...",chat_sendButton:"發送",chat_clearButton:"清空",chat_exportButton:"導出",chat_importButton:"導入",msg_obj_placeholder:"發消息⋯",msg_obj_fileText:"請根據我上傳的體檢報告為我生成飲食方案",msg_obj_uploadingTips:"文件正在上傳,請稍候...",msg_obj_matchText:"請用以上方案為我配餐",msg_obj_matchContent:"請用以上方案為我配餐",msg_obj_energy:"熱量",msg_obj_protein:"蛋白質",msg_obj_fat:"脂肪",msg_obj_carbonwater:"碳水",msg_obj_newChat:"新對話",msg_obj_thinking:"思考中...",msg_obj_thinkCompleted:"思考完成",msg_obj_useSolution:"用該方案配餐",msg_obj_aiTips:"【内容由AI生成,僅供參考】",msg_obj_userName:"健康用戶",msg_obj_generating:"Ai努力生成中...",msg_obj_hotline:"電話熱線:",msg_obj_changeDishes:"換一套菜品",msg_obj_personalizedDiet:"請為我生成一份個性化的健康的食譜",msg_obj_fillPersonalData:"請填寫您的身體數據,我們將根據你的身體數據智能生成個性化食譜",msg_obj_contactNutritionist:"聯繫專業營養師團隊幫你快速實現科學配比的健康餐營養搭配。",msg_obj_userInfo:"用戶信息",msg_obj_tags_customerService:"人工客服",msg_obj_tags_viewMenu:"查看菜單",msg_obj_tags_medicalReport:"體檢報告",msg_obj_firstMsg_balancedDiet:"本食譜為均衡營養版",msg_obj_firstMsg_calorieControlledDiet:"本食譜為控卡版",msg_obj_firstMsg_dietExample:"的食療調養方案示例,依據以下",msg_obj_firstMsg_femaleData:"女性常規身體數據制定:",msg_obj_firstMsg_maleData:"男性常規身體數據制定:",msg_obj_firstMsg_gender:"性別:",msg_obj_firstMsg_age:"年齡:",msg_obj_firstMsg_height:"身高:",msg_obj_firstMsg_weight:"體重:",msg_obj_firstMsg_activityLevel:"日常運動水平:",msg_obj_firstMsg_tastePreferences:"口味偏好及飲食禁忌:",msg_obj_firstMsg_noRestrictions:"無",msg_obj_firstMsg_customizePlan:"如需定制貼合個人情況的專屬方案,請前往完善個人身體數據,獲取個性化定制食譜。",msg_obj_firstMsg_sedentary:"久坐",msg_obj_firstMsg_generalDietAdvice:"我將為您出通用的食譜建議,如您有定制化健康訴求,請點擊下方'私人訂制個性食譜'來讓我結合您的個人情況制定個性化配餐計劃",msg_obj_firstMsg_breakfast:"早餐",msg_obj_firstMsg_lunch:"午餐",msg_obj_firstMsg_dinner:"晚餐",msg_obj_firstMsg_snack:"加餐",msg_obj_store_selectStore:"請選擇一個門店",msg_obj_dishes_collapseMenu:"收起菜譜",msg_obj_dishes_viewFullMenu:"點擊查看完整食譜",msg_obj_dishes_warmTip:"溫馨提示:AI健康食譜為日常膳食調理方案,不能替代藥物治療或專業醫療建議。如有疾病,請及時就醫並遵醫囑。",msg_obj_dishes_halfPriceSurprise:"半價驚喜,下單即得!",msg_obj_dishes_personalizedRecipe:"私人訂制個性食譜",msg_obj_dishes_orderNow:"去訂餐",msg_obj_dishes_deliveryOrder:"配送下單",msg_obj_dishes_deliveryToDoor:"(直送到府)",msg_obj_dishes_pickupOrder:"自提下單",msg_obj_dishes_freeShipping:"(免運費)",msg_obj_operate_photoAlbum:"相冊",msg_obj_operate_file:"文件",msg_obj_plan_dailyIntake:"每日攝入能量",msg_obj_plan_breakfast:"早餐",msg_obj_plan_lunch:"午餐",msg_obj_plan_dinner:"晚餐",msg_obj_plan_snack:"加餐",msg_obj_plan_carbohydrate:"碳水化合物",msg_obj_plan_protein:"蛋白質",msg_obj_plan_fat:"脂肪",msg_obj_plan_useThisPlan:"用該方案配餐",personal_form_title:"個人信息",personal_form_sex:"性別",personal_form_age:"年齡",personal_form_height:"身高",personal_form_weight:"體重",personal_form_sport:"日常運動水平",personal_form_taste:"口味偏好",personal_form_taboo:"飲食禁忌",personal_form_placeholder_sex:"請選擇",personal_form_placeholder_age:"請輸入年齡",personal_form_placeholder_height:"請輸入身高",personal_form_placeholder_weight:"請輸入體重",personal_form_placeholder_sport:"請輸入",personal_form_placeholder_taste:"無禁忌",personal_form_unit_age:"歲",personal_form_unit_height:"cm",personal_form_unit_weight:"kg",personal_form_sport_list_rest:"休息狀態",personal_form_sport_list_rest_sub:"卧床或者坐式休息",personal_form_sport_list_sedentary:"久坐",personal_form_sport_list_sedentary_sub:"坐式工作",personal_form_sport_list_light:"輕體力",personal_form_sport_list_light_sub:"站立或需要走動的工作",personal_form_sport_list_medium:"中體力",personal_form_sport_list_medium_sub:"走動多的工作",personal_form_sport_list_heavy:"重體力",personal_form_sport_list_heavy_sub:"高強度體力工作",personal_form_taste_list_spicy:"不吃辣",personal_form_taste_list_onion:"不吃蔥",personal_form_taste_list_ginger:"不吃姜",personal_form_taste_list_garlic:"不吃蒜",personal_form_taste_list_sugar:"不吃糖",personal_form_taste_list_fish:"不吃魚",personal_form_taste_list_shrimp:"不吃蝦",personal_form_taste_list_beef:"不吃牛肉",personal_form_taste_list_chicken:"不吃雞肉",personal_form_taste_list_pork:"不吃豬肉",personal_form_taboo_list_high_gi:"高GI",personal_form_taboo_list_high_saturated_fat:"高飽和脂肪酸",personal_form_taboo_list_high_purine:"高嘌呤",personal_form_taboo_list_high_salt:"高鹽",personal_form_taboo_list_high_cholesterol:"高膽固醇",personal_form_button:"按身體數據領取食譜",personal_form_toast_select_sex:"請選擇性別",personal_form_toast_input_age:"請輸入年齡",personal_form_toast_input_height:"請輸入身高",personal_form_toast_input_weight:"請輸入體重",personal_form_toast_select_sport:"請選擇日常運動水平",personal_form_toast_fill_all:"請填寫完整信息",personal_form_toast_age_range:"年齡需要在6-100歲",personal_form_toast_height_range:"身高需要在100-220cm",personal_form_toast_weight_range:"體重需要在10-150kg",personal_form_dialog_sex:"選擇性別",personal_form_dialog_age:"設置年齡",personal_form_dialog_height:"設置身高",personal_form_dialog_weight:"設置體重",personal_form_dialog_sport:"日常運動水平",personal_form_dialog_taste:"口味偏好&飲食禁忌",personal_form_no_taboo:"沒有飲食禁忌",personal_form_sex_options_male:"男",personal_form_sex_options_female:"女",personal_form_placeholder_input:"請輸入",personal_form_target:"飲食目標",personal_form_placeholder_target:"點擊選擇",personal_form_dialog_target:"選擇飲食目標",personal_form_toast_select_target:"請選擇飲食目標",personal_form_target_list_01:"健康減磅",personal_form_target_list_01_sub:"減脂、減重、塑形人群適用",personal_form_target_list_03:"均衡飲食",personal_form_target_list_03_sub:"控制體重、保持體型人群適用",personal_form_dialog_title:"標題",dishes_card_view_details:"查看菜譜詳情",dishes_card_craft:"製作工藝",dishes_card_collapse:"收起",dishes_cart_cate_01:"早餐",dishes_cart_cate_02:"午餐",dishes_cart_cate_03:"晚餐",dishes_cart_cate_04:"加餐"}},Xb={install:e=>{e.component("ChatUi",As),e.use(Yd,{defaultOptions:{navbar:!1,toolbar:{flipHorizontal:!1,flipVertical:!1,next:!1,prev:!1,play:!1,reset:!0,oneToOne:!0,rotateLeft:!0,rotateRight:!0,zoomIn:!0,zoomOut:!0}}})}};Fe.ChatUi=As,Fe.default=Xb,Fe.messages=Gb,Object.defineProperties(Fe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|