1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/index-CrWCx5FQ.js","js/vendor-vue-PrZjxzdu.js","js/router-G8QecHxs.js","js/vendor-utils-C8M3dJTb.js","js/use-emitter-C_oNMCkI.js","js/vant-D0wJLC7X.js","js/use-user-DNoP8E0n.js","js/use-secure-DjH-S5Zr.js","js/use-crypto-CkizMN_8.js","js/use-image-vDNpur_E.js","js/use-version-yhz4yb9Y.js","js/use-game-BSxu_11L.js","js/use-language-JeHkxM7X.js","css/index-CBc4fn4B.css","js/use-red-bag-popup-CSHhP59W.js"])))=>i.map(i=>d[i]); 2import{u as e,c as t,n as a,d as n,x as o,F as i,P as s,y as r,m as c,i as l,z as u,B as d,r as p,R as m,D as g,I as y,J as h,_ as f,K as v,N as b,O as w,Q as L,V as k,W as S,s as T,X as A,Y as R,Z as P,$ as _,e as C,a0 as E,a1 as D,a2 as I,a3 as N,a4 as O,U as x,a5 as U,f as M,a6 as H,a7 as W,a8 as G,a9 as B,aa as F}from'./router-G8QecHxs.js';import{g as z,a as j}from'./vendor-utils-C8M3dJTb.js';import{u as $}from'./use-crypto-CkizMN_8.js';import{a as q,b as Y,u as V}from'./use-secure-DjH-S5Zr.js';import{u as Q,p as X,a as K,b as Z}from'./use-game-BSxu_11L.js';import{f as J,N as ee,a as te,O as ae,n as ne,r as oe,P as ie,M as se}from'./vendor-vue-PrZjxzdu.js';import{u as re}from'./use-image-vDNpur_E.js';import{u as ce}from'./use-version-yhz4yb9Y.js';import{a as le,s as ue,b as de}from'./vant-D0wJLC7X.js';import{u as pe}from'./use-user-DNoP8E0n.js';var me,ge={exports:{}};const ye=z(me?ge.exports:(me=1,ge.exports=function(){var e={686:function(e,t,a){a.d(t,{default:function(){return k}});var n=a(279),o=a.n(n),i=a(370),s=a.n(i),r=a(817),c=a.n(r);function l(e){try{return document.execCommand(e)}catch(t){return!1}}var u=function(e){var t=c()(e);return l('cut'),t},d=function(e,t){var a=function(e){var t='rtl'===document.documentElement.getAttribute('dir'),a=document.createElement('textarea');a.style.fontSize='12pt',a.style.border='0',a.style.padding='0',a.style.margin='0',a.style.position='absolute',a.style[t?'right':'left']='-9999px';var n=window.pageYOffset||document.documentElement.scrollTop;return a.style.top=''.concat(n,'px'),a.setAttribute('readonly',''),a.value=e,a}(e);t.container.appendChild(a);var n=c()(a);return l('copy'),a.remove(),n},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},a='';return'string'==typeof e?a=d(e,t):e instanceof HTMLInputElement&&!['text','search','url','tel','password'].includes(null==e?void 0:e.type)?a=d(e.value,t):(a=c()(e),l('copy')),a};function m(e){return(m='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e})(e)}var g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,a=void 0===t?'copy':t,n=e.container,o=e.target,i=e.text;if('copy'!==a&&'cut'!==a)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||'object'!==m(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if('copy'===a&&o.hasAttribute('disabled'))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if('cut'===a&&(o.hasAttribute('readonly')||o.hasAttribute('disabled')))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?p(i,{container:n}):o?'cut'===a?u(o):p(o,{container:n}):void 0};function y(e){return(y='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e})(e)}function h(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,'value'in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if('undefined'==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if('function'==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n,o,i=b(e);if(t){var s=b(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return n=this,!(o=a)||'object'!==y(o)&&'function'!=typeof o?function(e){if(void 0===e)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return e}(n):o}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){var a='data-clipboard-'.concat(e);
vendor: 4,910 bytes, line 2
2if(t.hasAttribute(a))return t.getAttribute(a)}var L=function(e){!function(e,t){if('function'!=typeof t&&null!==t)throw new TypeError('Super expression must either be null or a function');e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(i,e);var t,a,n,o=v(i);function i(e,t){var a;return function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}(this,i),(a=o.call(this)).resolveOptions(t),a.listenClick(e),a}return t=i,a=[{key:'resolveOptions',value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action='function'==typeof e.action?e.action:this.defaultAction,this.target='function'==typeof e.target?e.target:this.defaultTarget,this.text='function'==typeof e.text?e.text:this.defaultText,this.container='object'===y(e.container)?e.container:document.body}},{key:'listenClick',value:function(e){var t=this;this.listener=s()(e,'click',(function(e){return t.onClick(e)}))}},{key:'onClick',value:function(e){var t=e.delegateTarget||e.currentTarget,a=this.action(t)||'copy',n=g({action:a,container:this.container,target:this.target(t),text:this.text(t)});this.emit(n?'success':'error',{action:a,text:n,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:'defaultAction',value:function(e){return w('action',e)}},{key:'defaultTarget',value:function(e){var t=w('target',e);if(t)return document.querySelector(t)}},{key:'defaultText',value:function(e){return w('text',e)}},{key:'destroy',value:function(){this.listener.destroy()}}],n=[{key:'copy',value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return p(e,t)}},{key:'cut',value:function(e){return u(e)}},{key:'isSupported',value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:['copy','cut'],t='string'==typeof e?[e]:e,a=!!document.queryCommandSupported;return t.forEach((function(e){a=a&&!!document.queryCommandSupported(e)})),a}}],a&&h(t.prototype,a),n&&h(t,n),i}(o()),k=L},828:function(e){if('undefined'!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if('function'==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,a){var n=a(828);function o(e,t,a,n,o){var s=i.apply(this,arguments);return e.addEventListener(a,s,o),{destroy:function(){e.removeEventListener(a,s,o)}}}function i(e,t,a,o){return function(a){a.delegateTarget=n(a.target,t),a.delegateTarget&&o.call(e,a)}}e.exports=function(e,t,a,n,i){return'function'==typeof e.addEventListener?o.apply(null,arguments):'function'==typeof a?o.bind(null,document).apply(null,arguments):('string'==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,a,n,i)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var a=Object.prototype.toString.call(e);return void 0!==e&&('[object NodeList]'===a||'[object HTMLCollection]'===a)&&'length'in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return'string'==typeof e||e instanceof String},t.fn=function(e){return'[object Function]'===Object.prototype.toString.call(e)}},370:function(e,t,a){var n=a(879),o=a(438);e.exports=function(e,t,a){if(!e&&!t&&!a)throw new Error('Missing required arguments');if(!n.string(t))throw new TypeError('Second argument must be a String');if(!n.fn(a))throw new TypeError('Third argument must be a Function');if(n.node(e))return function(e,t,a){return e.addEventListener(t,a),{destroy:function(){e.removeEventListener(t,a)}}}(e,t,a);if(n.nodeList(e))return function(e,t,a){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,a)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,a)}))}}}(e,t,a);if(n.string(e))return function(e,t,a){return o(document.body,e,t,a)}(e,t,a);throw new TypeError('First argument must be a String, HTMLElement, HTMLCollection, or NodeList')}},817:function(e){e.exports=function(e){var t;if('SELECT'===e.nodeName)e.focus(),t=e.value;else if('INPUT'===e.nodeName||'TEXTAREA'===e.nodeName){var a=e.hasAttribute('readonly');a||e.setAttribute('readonly',''),e.select(),e.setSelectionRange(0,e.value.length),a||e.removeAttribute('readonly'),t=e.value}else{e.hasAttribute('contenteditable')&&e.focus();var n=window.getSelection(),o=document.createRange();o.selectNodeContents(e),n.removeAllRanges(),n.addRange(o),t=n.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,a){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:a}),this},once:function(e,t,a){var n=this;function o(){n.off(e,o),t.apply(a,arguments)}return o._=t,this.on(e,o,a)}
2,emit:function(e){for(var t=[].slice.call(arguments,1),a=((this.e||(this.e={}))[e]||[]).slice(),n=0,o=a.length;n<o;n++)a[n].fn.apply(a[n].ctx,t);return this},off:function(e,t){var a=this.e||(this.e={}),n=a[e],o=[];if(n&&t)for(var i=0,s=n.length;i<s;i++)n[i].fn!==t&&n[i].fn._!==t&&o.push(n[i]);return o.length?a[e]=o:delete a[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function a(n){if(t[n])return t[n].exports;var o=t[n]={exports:{}};return e[n](o,o.exports,a),o.exports}return a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a(686)}().default)),he=()=>{const n=ee(),o=J((()=>n.params.gameId)),{getPlayOdds:i}=Q(),s=e(),r=te('main'),c=te(!1),l=te(!1),u=te(!1),d=te(null),p=te([]),m=te('1'),g=te('3'),y=te([]),h=te([]),f=te([]),v=J((()=>{var e;return null==(e=d.value)?void 0:e.enable})),b=async()=>{try{const{code:e,data:a}=await q(Y.autofollow.followList,{gameId:o.value});e===t.Success&&a&&a.length>0&&(f.value=a||[])}catch(e){}};return{gameId:o,selectedTab:r,planData:d,isExpertPlanEnabled:v,getExpertPlanData:async e=>{try{const{code:a,data:n}=await q(Y.user.expertSwitch,{gameId:e});a===t.Success&&n&&(d.value={...n,enable:n.enable+''=='1',autoFollowStatus:n.autoFollowStatus+''=='1'},g.value=n.codeArea[0])}catch(a){}},getExpertPlanList:async()=>{var e,n;if(!l.value)try{l.value=!0;const r={gameId:o.value,actionNo:(null==(e=a.curLottery)?void 0:e.curIssue)??'',preIssue:(null==(n=a.curLottery)?void 0:n.preIssue)??'',position:m.value,yc_length:g.value},{code:c,data:u}=await q(Y.user.expertDataList,r);if(c===t.Success&&u){await i(o.value),await ne();const e=(e=>{var t,n;const o=new Map,i=(null==(n=null==(t=s.playOddsCache)?void 0:t[Number(e)])?void 0:n.playOdds)||a.playOdds||[];if(!i||0===i.length)return o;for(const a of i)if(a.playGroups&&0!==a.playGroups.length)for(const e of a.playGroups)if(e.plays&&e.plays.length>0)for(const t of e.plays)t.id&&o.set(t.id,t);return o})(o.value),t=u.map((t=>{if(!t.playIds||0===t.playIds.length)return t;const a=[];for(const n of t.playIds){const t=e.get(n);t&&t.id===n&&a.push(t)}return{...t,plays:a}}));y.value=t}}catch(r){}finally{l.value=!1}},expertPlanList:y,tabs:[{label:'\u8ddf\u5355\u8ba1\u5212',value:'main',key:'app.followplan'},{label:'\u4e13\u5bb6\u6392\u540d',value:'ranking',key:'app.android.speclist'}],rankList:p,getExpertRank:async()=>{var e,n;if(!c.value)try{c.value=!0;const i={gameId:o.value,actionNo:(null==(e=a.curLottery)?void 0:e.curIssue)??'',preIssue:(null==(n=a.curLottery)?void 0:n.preIssue)??'',position:m.value,yc_length:g.value},{code:s,data:r}=await q(Y.user.expertRank,i);s===t.Success&&r&&(p.value=r)}catch(i){}finally{c.value=!1}},loadingRankList:c,loadingPlanList:l,position:m,ycLength:g,getExpertPlanHistoryList:async e=>{if(!u.value)try{u.value=!0;const{code:a,data:n}=await q(Y.user.expertHistoryList,{...e,gameId:o.value});a===t.Success&&n&&(h.value=n)}catch(a){}finally{u.value=!1}},expertPlanHistoryList:h,getAutoFollowRecords:b,autoBetRecords:f,deleteAutoFollow:async e=>{try{const{code:a}=await q(Y.autofollow.deleteFollow,{id:e});a===t.Success&&b()}catch(a){}}}};var fe,ve,be,we;function Le(){if(ve)return fe;ve=1;const{entries:e,setPrototypeOf:t,isFrozen:a,getPrototypeOf:n,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:s,create:r}=Object,{apply:c,construct:l}='undefined'!=typeof Reflect&&Reflect;i||(i=function(e){return e}),s||(s=function(e){return e}),c||(c=function(e,t,a){return e.apply(t,a)}),l||(l=function(e,t){return new e(...t)});const u=A(Array.prototype.forEach),d=A(Array.prototype.lastIndexOf),p=A(Array.prototype.pop),m=A(Array.prototype.push),g=A(Array.prototype.splice),y=A(String.prototype.toLowerCase),h=A(String.prototype.toString),f=A(String.prototype.match),v=A(String.prototype.replace),b=A(String.prototype.indexOf),w=A(String.prototype.trim),L=A(Object.prototype.hasOwnProperty),k=A(RegExp.prototype.test),S=(T=TypeError,function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return l(T,t)});var T;function A(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,n=new Array(a>1?a-1:0),o=1;o<a;o++)n[o-1]=arguments[o];
vendor: 3,088 bytes, line 2
2return c(e,t,n)}}function R(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;t&&t(e,null);let i=n.length;for(;i--;){let t=n[i];if('string'==typeof t){const e=o(t);e!==t&&(a(n)||(n[i]=e),t=e)}e[t]=!0}return e}function P(e){for(let t=0;t<e.length;t++){L(e,t)||(e[t]=null)}return e}function _(t){const a=r(null);for(const[n,o]of e(t)){L(t,n)&&(Array.isArray(o)?a[n]=P(o):o&&'object'==typeof o&&o.constructor===Object?a[n]=_(o):a[n]=o)}return a}function C(e,t){for(;null!==e;){const a=o(e,t);if(a){if(a.get)return A(a.get);if('function'==typeof a.value)return A(a.value)}e=n(e)}return function(){return null}}const E=i(['a','abbr','acronym','address','area','article','aside','audio','b','bdi','bdo','big','blink','blockquote','body','br','button','canvas','caption','center','cite','code','col','colgroup','content','data','datalist','dd','decorator','del','details','dfn','dialog','dir','div','dl','dt','element','em','fieldset','figcaption','figure','font','footer','form','h1','h2','h3','h4','h5','h6','head','header','hgroup','hr','html','i','img','input','ins','kbd','label','legend','li','main','map','mark','marquee','menu','menuitem','meter','nav','nobr','ol','optgroup','option','output','p','picture','pre','progress','q','rp','rt','ruby','s','samp','section','select','shadow','small','source','spacer','span','strike','strong','style','sub','summary','sup','table','tbody','td','template','textarea','tfoot','th','thead','time','tr','track','tt','u','ul','var','video','wbr']),D=i(['svg','a','altglyph','altglyphdef','altglyphitem','animatecolor','animatemotion','animatetransform','circle','clippath','defs','desc','ellipse','filter','font','g','glyph','glyphref','hkern','image','line','lineargradient','marker','mask','metadata','mpath','path','pattern','polygon','polyline','radialgradient','rect','stop','style','switch','symbol','text','textpath','title','tref','tspan','view','vkern']),I=i(['feBlend','feColorMatrix','feComponentTransfer','feComposite','feConvolveMatrix','feDiffuseLighting','feDisplacementMap','feDistantLight','feDropShadow','feFlood','feFuncA','feFuncB','feFuncG','feFuncR','feGaussianBlur','feImage','feMerge','feMergeNode','feMorphology','feOffset','fePointLight','feSpecularLighting','feSpotLight','feTile','feTurbulence']),N=i(['animate','color-profile','cursor','discard','font-face','font-face-format','font-face-name','font-face-src','font-face-uri','foreignobject','hatch','hatchpath','mesh','meshgradient','meshpatch','meshrow','missing-glyph','script','set','solidcolor','unknown','use']),O=i(['math','menclose','merror','mfenced','mfrac','mglyph','mi','mlabeledtr','mmultiscripts','mn','mo','mover','mpadded','mphantom','mroot','mrow','ms','mspace','msqrt','mstyle','msub','msup','msubsup','mtable','mtd','mtext','mtr','munder','munderover','mprescripts']),x=i(['maction','maligngroup','malignmark','mlongdiv','mscarries','mscarry','msgroup','mstack','msline','msrow','semantics','annotation','annotation-xml','mprescripts','none']),U=i(['#text']),M=i(['accept','action','align','alt','autocapitalize','autocomplete','auto
2pictureinpicture','autoplay','background','bgcolor','border','capture','cellpadding','cellspacing','checked','cite','class','clear','color','cols','colspan','controls','controlslist','coords','crossorigin','datetime','decoding','default','dir','disabled','disablepictureinpicture','disableremoteplayback','download','draggable','enctype','enterkeyhint','face','for','headers','height','hidden','high','href','hreflang','id','inputmode','integrity','ismap','kind','label','lang','list','loading','loop','low','max','maxlength','media','method','min','minlength','multiple','muted','name','nonce','noshade','novalidate','nowrap','open','optimum','pattern','placeholder','playsinline','popover','popovertarget','popovertargetaction','poster','preload','pubdate','radiogroup','readonly','rel','required','rev','reversed','role','rows','rowspan','spellcheck','scope','selected','shape','size','sizes','span','srclang','start','src','srcset','step','style','summary','tabindex','title','translate','type','usemap','valign','value','width','wrap','xmlns','slot']),H=i(['accent-height','accumulate','additive','alignment-baseline','amplitude','ascent','attributename','attributetype','azimuth','basefrequency','baseline-shift','begin','bias','by','class','clip','clippathunits','clip-path','clip-rule','color','color-interpolation','color-interpolation-filters','color-profile','color-rendering','cx','cy','d','dx','dy','diffuseconstant','direction','display','divisor','dur','edgemode','elevation','end','exponent','fill','fill-opacity','fill-rule','filter','filterunits','flood-color','flood-opacity','font-family','font-size','font-size-adjust','font-stretch','font-style','font-variant','font-weight','fx','fy','g1','g2','glyph-name','glyphref','gradientunits','gradienttransform','height','href','id','image-rendering','in','in2','intercept','k','k1','k2','k3','k4','kerning','keypoints','keysplines','keytimes','lang','lengthadjust','letter-spacing','kernelmatrix','kernelunitlength','lighting-color','local','marker-end','marker-mid','marker-start','markerheight','markerunits','markerwidth','maskcontentunits','maskunits','max','mask','media','method','mode','min','name','numoctaves','offset','operator','opacity','order','orient','orientation','origin','overflow','paint-order','path','pathlength','patterncontentunits','patterntransform','patternunits','points','preservealpha','preserveaspectratio','primitiveunits','r','rx','ry','radius','refx','refy','repeatcount','repeatdur','restart','result','rotate','scale','seed','shape-rendering','slope','specularconstant','specularexponent','spreadmethod','startoffset','stddeviation','stitchtiles','stop-color','stop-opacity','stroke-dasharray','stroke-dashoffset','stroke-linecap','stroke-linejoin','stroke-miterlimit','stroke-opacity','stroke','stroke-width','style','surfacescale','systemlanguage','tabindex','tablevalues','targetx','targety','transform','transform-origin','text-anchor','text-decoration','text-rendering','textlength','type','u1','u2','unicode','values','viewbox','visibility','version','vert-adv-y','vert-origin-x','vert-origin-y','width','word-spacing','wrap','writing-mode','xchannelselector','ychannelselector','x','x1','x2','xmlns','y','y1','y2','z','zoomandpan']),W=i(['accent','accentunder','align','bevelled','close','columnsalign','columnlines','columnspan','denomalign','depth','dir','display','displaystyle','encoding','fence','frame','height','href','id','largeop','length','linethickness','lspace','lquote','mathbackground','mathcolor','mathsize','mathvariant','maxsize','minsize','movablelimits','notation','numalign','open','rowalign','rowlines','rowspacing','rowspan','rspace','rquote','scriptlevel','scriptminsize','scriptsizemultiplier','selection','separator','separators','stretchy','subscriptshift','supscriptshift','symmetric','voffset','width','xmlns']),G=i(['xlink:href','xml:id','xlink:title','xml:space','xmlns:xlink']),B=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),F=s(/<%[\w\W]*|[\w\W]*%>/gm),z=s(/\$\{[\w\W]*/gm),j=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),$=s(/^aria-[\-\w]+$/),q=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=s(/^(?:\w+script|data):/i),V=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=s(/^html$/i),X=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var K=Object.freeze({__proto__:null,ARIA_ATTR:$,ATTR_WHITESPACE:V,CUSTOM_ELEMENT:X,DATA_ATTR:j,DOCTYPE_NAME:Q,ERB_EXPR:F,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:Y,MUSTACHE_EXPR:B,TMPLIT_EXPR:z});const Z=1,J=3,ee=7,te=8,ae=9;var ne=function t(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'undefined'==typeof window?null:window;const n=e=>t(e);
vendor: 4,463 bytes, line 2
2if(n.version='3.2.6',n.removed=[],!a||!a.document||a.document.nodeType!==ae||!a.Element)return n.isSupported=!1,n;let{document:o}=a;const s=o,c=s.currentScript,{DocumentFragment:l,HTMLTemplateElement:T,Node:A,Element:P,NodeFilter:B,NamedNodeMap:F=a.NamedNodeMap||a.MozNamedAttrMap,HTMLFormElement:z,DOMParser:j,trustedTypes:$}=a,Y=P.prototype,V=C(Y,'cloneNode'),X=C(Y,'remove'),ne=C(Y,'nextSibling'),oe=C(Y,'childNodes'),ie=C(Y,'parentNode');if('function'==typeof T){const e=o.createElement('template');e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let se,re='';const{implementation:ce,createNodeIterator:le,createDocumentFragment:ue,getElementsByTagName:de}=o,{importNode:pe}=s;let me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported='function'==typeof e&&'function'==typeof ie&&ce&&void 0!==ce.createHTMLDocument;const{MUSTACHE_EXPR:ge,ERB_EXPR:ye,TMPLIT_EXPR:he,DATA_ATTR:fe,ARIA_ATTR:ve,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:we,CUSTOM_ELEMENT:Le}=K;let{IS_ALLOWED_URI:ke}=K,Se=null;const Te=R({},[...E,...D,...I,...O,...U]);let Ae=null;const Re=R({},[...M,...H,...W,...G]);let Pe=Object.seal(r(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_e=null,Ce=null,Ee=!0,De=!0,Ie=!1,Ne=!0,Oe=!1,xe=!0,Ue=!1,Me=!1,He=!1,We=!1,Ge=!1,Be=!1,Fe=!0,ze=!1,je=!0,$e=!1,qe={},Ye=null;const Ve=R({},['annotation-xml','audio','colgroup','desc','foreignobject','head','iframe','math','mi','mn','mo','ms','mtext','noembed','noframes','noscript','plaintext','script','style','svg','template','thead','title','video','xmp']);let Qe=null;const Xe=R({},['audio','video','img','source','image','track']);let Ke=null;const Ze=R({},['alt','class','for','id','label','name','pattern','placeholder','role','summary','title','value','style','xmlns']),Je='http://www.w3.org/1998/Math/MathML',et='http://www.w3.org/2000/svg',tt='http://www.w3.org/1999/xhtml';let at=tt,nt=!1,ot=null;const it=R({},[Je,et,tt],h);let st=R({},['mi','mo','mn','ms','mtext']),rt=R({},['annotation-xml']);const ct=R({},['title','style','font','a','script']);let lt=null;const ut=['application/xhtml+xml','text/html'];let dt=null,pt=null;const mt=o.createElement('form'),gt=function(e){return e instanceof RegExp||e instanceof Function},yt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!pt||pt!==e){if(e&&'object'==typeof e||(e={}),e=_(e),lt=-1===ut.indexOf(e.PARSER_MEDIA_TYPE)?'text/html':e.PARSER_MEDIA_TYPE,dt='application/xhtml+xml'===lt?h:y,Se=L(e,'ALLOWED_TAGS')?R({},e.ALLOWED_TAGS,dt):Te,Ae=L(e,'ALLOWED_ATTR')?R({},e.ALLOWED_ATTR,dt):Re,ot=L(e,'ALLOWED_NAMESPACES')?R({},e.ALLOWED_NAMESPACES,h):it,Ke=L(e,'ADD_URI_SAFE_ATTR')?R(_(Ze),e.ADD_URI_SAFE_ATTR,dt):Ze,Qe=L(e,'ADD_DATA_URI_TAGS')?R(_(Xe),e.ADD_DATA_URI_TAGS,dt):Xe,Ye=L(e,'FORBID_CONTENTS')?R({},e.FORBID_CONTENTS,dt):Ve,_e=L(e,'FORBID_TAGS')?R({},e.FORBID_TAGS,dt):_({}),Ce=L(e,'FORBID_ATTR')?R({},e.FORBID_ATTR,dt):_({}),qe=!!L(e,'USE_PROFILES')&&e.USE_PROFILES,Ee=!1!==e.ALLOW_ARIA_ATTR,De=!1!==e.ALLOW_DATA_ATTR,Ie=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Oe=e.SAFE_FOR_TEMPLATES||!1,xe=!1!==e.SAFE_FOR_XML,Ue=e.WHOLE_DOCUMENT||!1,We=e.RETURN_DOM||!1,Ge=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,He=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,ze=e.SANITIZE_NAMED_PROPS||!1,je=!1!==e.KEEP_CONTENT,$e=e.IN_PLACE||!1,ke=e.ALLOWED_URI_REGEXP||q,at=e.NAMESPACE||tt,st=e.MATHML_TEXT_INTEGRATION_POINTS||st,rt=e.HTML_INTEGRATION_POINTS||rt,Pe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&>(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Pe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&>(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Pe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&'boolean'==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Pe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Oe&&(De=!1),Ge&&(We=!0),qe&&(Se=R({},U),Ae=[],!0===qe.html&&(R(Se,E),R(Ae,M)),!0===qe.svg&&(R(Se,D),R(Ae,H),R(Ae,G)),!0===qe.svgFilters&&
vendor: 5,075 bytes, line 2
2(R(Se,I),R(Ae,H),R(Ae,G)),!0===qe.mathMl&&(R(Se,O),R(Ae,W),R(Ae,G))),e.ADD_TAGS&&(Se===Te&&(Se=_(Se)),R(Se,e.ADD_TAGS,dt)),e.ADD_ATTR&&(Ae===Re&&(Ae=_(Ae)),R(Ae,e.ADD_ATTR,dt)),e.ADD_URI_SAFE_ATTR&&R(Ke,e.ADD_URI_SAFE_ATTR,dt),e.FORBID_CONTENTS&&(Ye===Ve&&(Ye=_(Ye)),R(Ye,e.FORBID_CONTENTS,dt)),je&&(Se['#text']=!0),Ue&&R(Se,['html','head','body']),Se.table&&(R(Se,['tbody']),delete _e.tbody),e.TRUSTED_TYPES_POLICY){if('function'!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if('function'!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');se=e.TRUSTED_TYPES_POLICY,re=se.createHTML('')}else void 0===se&&(se=function(e,t){if('object'!=typeof e||'function'!=typeof e.createPolicy)return null;let a=null;const n='data-tt-policy-suffix';t&&t.hasAttribute(n)&&(a=t.getAttribute(n));const o='dompurify'+(a?'#'+a:'');try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return null}}($,c)),null!==se&&'string'==typeof re&&(re=se.createHTML(''));i&&i(e),pt=e}},ht=R({},[...D,...I,...N]),ft=R({},[...O,...x]),vt=function(e){m(n.removed,{element:e});try{ie(e).removeChild(e)}catch(t){X(e)}},bt=function(e,t){try{m(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(a){m(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),'is'===e)if(We||Ge)try{vt(t)}catch(a){}else try{t.setAttribute(e,'')}catch(a){}},wt=function(e){let t=null,a=null;if(He)e='<remove></remove>'+e;else{const t=f(e,/^[\r\n\t ]+/);a=t&&t[0]}'application/xhtml+xml'===lt&&at===tt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+'</body></html>');const n=se?se.createHTML(e):e;if(at===tt)try{t=(new j).parseFromString(n,lt)}catch(s){}if(!t||!t.documentElement){t=ce.createDocument(at,'template',null);try{t.documentElement.innerHTML=nt?re:n}catch(s){}}const i=t.body||t.documentElement;return e&&a&&i.insertBefore(o.createTextNode(a),i.childNodes[0]||null),at===tt?de.call(t,Ue?'html':'body')[0]:Ue?t.documentElement:i},Lt=function(e){return le.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},kt=function(e){return e instanceof z&&('string'!=typeof e.nodeName||'string'!=typeof e.textContent||'function'!=typeof e.removeChild||!(e.attributes instanceof F)||'function'!=typeof e.removeAttribute||'function'!=typeof e.setAttribute||'string'!=typeof e.namespaceURI||'function'!=typeof e.insertBefore||'function'!=typeof e.hasChildNodes)},St=function(e){return'function'==typeof A&&e instanceof A};function Tt(e,t,a){u(e,(e=>{e.call(n,t,a,pt)}))}const At=function(e){let t=null;if(Tt(me.beforeSanitizeElements,e,null),kt(e))return vt(e),!0;const a=dt(e.nodeName);if(Tt(me.uponSanitizeElement,e,{tagName:a,allowedTags:Se}),xe&&e.hasChildNodes()&&!St(e.firstElementChild)&&k(/<[/\w!]/g,e.innerHTML)&&k(/<[/\w!]/g,e.textContent))return vt(e),!0;if(e.nodeType===ee)return vt(e),!0;if(xe&&e.nodeType===te&&k(/<[/\w]/g,e.data))return vt(e),!0;if(!Se[a]||_e[a]){if(!_e[a]&&Pt(a)){if(Pe.tagNameCheck instanceof RegExp&&k(Pe.tagNameCheck,a))return!1;if(Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(a))return!1}if(je&&!Ye[a]){const t=ie(e)||e.parentNode,a=oe(e)||e.childNodes;if(a&&t){for(let n=a.length-1;n>=0;--n){const o=V(a[n],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,ne(e))}}}return vt(e),!0}return e instanceof P&&!function(e){let t=ie(e);t&&t.tagName||(t={namespaceURI:at,tagName:'template'});const a=y(e.tagName),n=y(t.tagName);return!!ot[e.namespaceURI]&&(e.namespaceURI===et?t.namespaceURI===tt?'svg'===a:t.namespaceURI===Je?'svg'===a&&('annotation-xml'===n||st[n]):Boolean(ht[a]):e.namespaceURI===Je?t.namespaceURI===tt?'math'===a:t.namespaceURI===et?'math'===a&&rt[n]:Boolean(ft[a]):e.namespaceURI===tt?!(t.namespaceURI===et&&!rt[n])&&!(t.namespaceURI===Je&&!st[n])&&!ft[a]&&(ct[a]||!ht[a]):!('application/xhtml+xml'!==lt||!ot[e.namespaceURI]))}(e)?(vt(e),!0):'noscript'!==a&&'noembed'!==a&&'noframes'!==a||!k(/<\/no(script|embed|frames)/i,e.innerHTML)?(Oe&&e.nodeType===J&&(t=e.textContent,u([ge,ye,he],(e=>{t=v(t,e,' ')})),e.textContent!==t&&(m(n.removed,{element:e.cloneNode()}),e.textContent=t)),Tt(me.afterSanitizeElements,e,null),!1):(vt(e),!0)},Rt=function(e,t,a){if(Fe&&('id'===t||'name'===t)&&(a in o||a in mt))return!1;if(De&&!Ce[t]&&k(fe,t));else if(Ee&&k(ve,t));else if(!Ae[t]||Ce[t]){if(!(Pt(e)&&(Pe.tagNameCheck instanceof RegExp&&k(Pe.tagNameCheck,e)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(e))&&(Pe.attributeNameCheck instanceof RegExp&&k(Pe.attributeNameCheck,t)||Pe.attributeNameCheck instanceof Function&&Pe.attributeNameCheck(t))||'is'===t&&Pe.allowCustomizedBuiltInElements&&(Pe.tagNameCheck instanceof RegExp&&k(Pe.tagNameCheck,a)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(a))))return!1}else if(Ke[t]);else if(k(ke,v(a,we,'')));else if('src'!==t&&'xlink:href'!==t&&'href'!==t||'script'===e||0!==b(a,'data:')||!Qe[e]){if(Ie&&!k(be,v
2(a,we,'')));else if(a)return!1}else;return!0},Pt=function(e){return'annotation-xml'!==e&&f(e,Le)},_t=function(e){Tt(me.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||kt(e))return;const a={attrName:'',attrValue:'',keepAttr:!0,allowedAttributes:Ae,forceKeepAttr:void 0};let o=t.length;for(;o--;){const s=t[o],{name:r,namespaceURI:c,value:l}=s,d=dt(r),m=l;let g='value'===r?m:w(m);if(a.attrName=d,a.attrValue=g,a.keepAttr=!0,a.forceKeepAttr=void 0,Tt(me.uponSanitizeAttribute,e,a),g=a.attrValue,!ze||'id'!==d&&'name'!==d||(bt(r,e),g='user-content-'+g),xe&&k(/((--!?|])>)|<\/(style|title)/i,g)){bt(r,e);continue}if(a.forceKeepAttr)continue;if(!a.keepAttr){bt(r,e);continue}if(!Ne&&k(/\/>/i,g)){bt(r,e);continue}Oe&&u([ge,ye,he],(e=>{g=v(g,e,' ')}));const y=dt(e.nodeName);if(Rt(y,d,g)){if(se&&'object'==typeof $&&'function'==typeof $.getAttributeType)if(c);else switch($.getAttributeType(y,d)){case'TrustedHTML':g=se.createHTML(g);break;case'TrustedScriptURL':g=se.createScriptURL(g)}if(g!==m)try{c?e.setAttributeNS(c,r,g):e.setAttribute(r,g),kt(e)?vt(e):p(n.removed)}catch(i){bt(r,e)}}else bt(r,e)}Tt(me.afterSanitizeAttributes,e,null)},Ct=function e(t){let a=null;const n=Lt(t);for(Tt(me.beforeSanitizeShadowDOM,t,null);a=n.nextNode();)Tt(me.uponSanitizeShadowNode,a,null),At(a),_t(a),a.content instanceof l&&e(a.content);Tt(me.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null,o=null,i=null,r=null;if(nt=!e,nt&&(e='\x3c!--\x3e'),'string'!=typeof e&&!St(e)){if('function'!=typeof e.toString)throw S('toString is not a function');if('string'!=typeof(e=e.toString()))throw S('dirty is not a string, aborting')}if(!n.isSupported)return e;if(Me||yt(t),n.removed=[],'string'==typeof e&&($e=!1),$e){if(e.nodeName){const t=dt(e.nodeName);if(!Se[t]||_e[t])throw S('root node is forbidden and cannot be sanitized in-place')}}else if(e instanceof A)a=wt('\x3c!----\x3e'),o=a.ownerDocument.importNode(e,!0),o.nodeType===Z&&'BODY'===o.nodeName||'HTML'===o.nodeName?a=o:a.appendChild(o);else{if(!We&&!Oe&&!Ue&&-1===e.indexOf('<'))return se&&Be?se.createHTML(e):e;if(a=wt(e),!a)return We?null:Be?re:''}a&&He&&vt(a.firstChild);const c=Lt($e?e:a);for(;i=c.nextNode();)At(i),_t(i),i.content instanceof l&&Ct(i.content);if($e)return e;if(We){if(Ge)for(r=ue.call(a.ownerDocument);a.firstChild;)r.appendChild(a.firstChild);else r=a;return(Ae.shadowroot||Ae.shadowrootmode)&&(r=pe.call(s,r,!0)),r}let d=Ue?a.outerHTML:a.innerHTML;return Ue&&Se['!doctype']&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&k(Q,a.ownerDocument.doctype.name)&&(d='<!DOCTYPE '+a.ownerDocument.doctype.name+'>\n'+d),Oe&&u([ge,ye,he],(e=>{d=v(d,e,' ')})),se&&Be?se.createHTML(d):d},n.setConfig=function(){yt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Me=!0},n.clearConfig=function(){pt=null,Me=!1},n.isValidAttribute=function(e,t,a){pt||yt({});const n=dt(e),o=dt(t);return Rt(n,o,a)},n.addHook=function(e,t){'function'==typeof t&&m(me[e],t)},n.removeHook=function(e,t){if(void 0!==t){const a=d(me[e],t);return-1===a?void 0:g(me[e],a,1)[0]}return p(me[e])},n.removeHooks=function(e){me[e]=[]},n.removeAllHooks=function(){me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();return fe=ne}const ke=z(we?be:(we=1,be=window.DOMPurify||(window.DOMPurify=Le().default||Le()))),Se=e=>{const t=document.createElement('textarea');return t.innerHTML=e,t.value},Te=e=>{let t=e??'';for(let a=0;a<2&&/&(?:lt|gt|quot|amp|nbsp);/i.test(t);a++)t=Se(t);return t},Ae={ALLOWED_ATTR:['target','href','src','style','class','id','border','cellpadding','cellspacing','rowspan','colspan','align','width','height','bgcolor']},Re={ALLOWED_ATTR:[...Ae.ALLOWED_ATTR,'allow','allowfullscreen','frameborder','scrolling','sandbox','loading','referrerpolicy'],ADD_TAGS:['iframe']};ke.setConfig(Ae),ke.addHook('afterSanitizeAttributes',(e=>{var t;'A'===(null==e?void 0:e.tagName)&&'_blank'===(null==(t=e.getAttribute)?void 0:t.call(e,'target'))&&e.setAttribute('rel','noopener')}));const Pe=e=>ke.sanitize(Te(e),{ALLOW_UNKNOWN_PROTOCOLS:!0,ADD_ATTR:['target','border','cellpadding','cellspacing','rowspan','colspan','align']}),_e=e=>{ke.setConfig(Re);try{return ke.sanitize(Te(e),{ALLOW_UNKNOWN_PROTOCOLS:!0})}finally{ke.setConfig(Ae)}},Ce=new Map,Ee=()=>{const a=ee(),p=e(),{getSiteImage:m}=re(),{sameApiVersion:g}=ce(),y=te(!1),h=te(!1),f=oe({}),v=te(!1),b=te(!1),w=te('fans'),L=te(!1),k=te(''),S=te(!1),T=te(!1),A=te(!1),R=J({get:()=>p.lhcdoc.showSetForumNicknameDialog,set(e){p.$asyncPatch((t=>{t.lhcdoc.showSetForumNicknameDialog=e}))}}),P=te(''),_=te(''),C=te(''),E=oe({date:n(),data:{}}),D=new Date((new Date).getFullYear(),11,31),I=te([]),N=te([]),O=te(null),x=te(null),U=oe({list:[],total:0}),M=oe({page:1}),H=oe({}
2),W=oe({}),G=oe({colorType:o.Color}),B=oe({content:''}),F=oe({title:'',content:''}),z=oe({}),j=oe({}),$=oe({colorType:o.Color}),V=oe({colorType:o.Color}),Q=oe({total:0,list:[],page:1}),Z=te([]),ae=J((()=>[{label:'\u7efc\u5408',key:'app.six.theme.better.0',sort:i.all,selected:(null==M?void 0:M.sort)===i.all,visible:!0},{label:'\u7cbe\u534e\u5e16',key:'app.six.theme.better.1',sort:i.hot,selected:(null==M?void 0:M.sort)===i.hot,visible:!0},{label:'\u6700\u65b0',key:'app.six.theme.better.2',sort:i.new,selected:(null==M?void 0:M.sort)===i.new,visible:!0}].filter((e=>e.visible)))),ne=te(''),ie=te([]),se=oe({years:[],mapData:new Map}),de=te([]),pe=oe({}),me=oe({}),ge=te([]),ye=oe({}),he=J((()=>{var e;let t=[],a=[];const n=(null==(e=p.lhcdoc.forum2)?void 0:e.topList)??[];if(n.length>2){let e=n.slice(0,n.length/2);1===e.length&&(e=Array(2).fill(e[0])),t=e,e=n.slice(n.length/2,n.length),1===e.length&&(e=Array(2).fill(e[0])),a=n.slice(n.length/2,n.length)}else t=n;return{list1:t,list2:a}})),fe=()=>{k.value=u[Math.floor(Math.random()*u.length)]+''},ve=async()=>{if(!h.value)try{h.value=!0;const{code:e,data:a}=await q(Y.lhcdoc.contentReplyList,H);if(e===t.Success&&a){const{list:e,total:t}=a,n=e.map((e=>{var t;return{...e,isAdmin:0!==e.isAdmin,isAuthor:0!==e.isAuthor,isLike:0!==e.isLike,secReplyList:null==(t=e.secReplyList)?void 0:t.map((t=>({...t,isAdmin:0!==e.isAdmin,isAuthor:0!==e.isAuthor})))}}));1===H.page?Object.assign(U,{total:t,list:n}):Object.assign(U,{list:[...U.list,...n]})}}catch(e){}finally{h.value=!1}},be=J((()=>U.total===U.list.length)),we=J((()=>{var e,t;const n=null==(e=p.lhcdoc.forum2)?void 0:e.categoryList,o=a.query.alias;return a.name===s.LhForum||a.name===s.LhForum2?(null==(t=null==n?void 0:n.find((e=>e.alias===o)))?void 0:t.name)??'\u9ad8\u624b\u8bba\u575b':''})),Le=J((()=>[r.rule,r.mystery].includes(a.query.alias))),ke=J((()=>'gallery'===a.query.from)),Se=J((()=>[r.humorGuess,r.rundog,r.fourUnlike].includes(a.query.alias))),Te=J((()=>{var e;return null==(e=null==se?void 0:se.mapData)?void 0:e.get(_.value)})),Ae=J((()=>{var e,t;return null==(t=null==(e=null==se?void 0:se.mapData)?void 0:e.get(_.value))?void 0:t.find((e=>e.lhcNo===C.value))}));return{loading:y,loadingReply:h,getCategoryList:async()=>{if(!g(c.LhcdocCategoryList))try{const{code:e,data:a,version:n}=await q(Y.lhcdoc.categoryList);if(e===t.Success&&a){const e=a.map((e=>X(e)));p.$asyncPatch((t=>{t.lhcdoc.category={version:n,list:e}}))}}catch(e){}},setNickname:async()=>{try{const{code:e,msg:a}=await q(Y.lhcdoc.setNickname,{nickname:P.value});e===t.Success&&(R.value=!1),a&&le(a)}catch(e){}},getLoginRegPageInfo:async()=>{try{const{code:e,data:a}=await q(Y.lhcdoc.loginRegPageInfo);e===t.Success&&a&&p.$asyncPatch((e=>{e.lhcdoc.loginRegPageInfo=a}))}catch{}},getLhcForum2:async()=>{var e,a,n,o,i,s,r,c,l;const u=p.lhcdoc.forum2;if(u&&Object.keys(u).length>0&&u.cacheTime){const e=u.cacheTime;if(Date.now()-e<36e5)return}if(!y.value)try{y.value=!0;const{code:u,data:d}=await q(Y.lhcdoc.lhcForum2);if(u===t.Success&&d){const t=null==(e=null==d?void 0:d.categoryList)?void 0:e.map((e=>X(e))),u={...null==d?void 0:d.homeGames,onlineSwitch:(null==(a=null==d?void 0:d.homeGames)?void 0:a.onlineSwitch)+''!='0',bottomNavs:null==(o=null==(n=null==d?void 0:d.homeGames)?void 0:n.bottomNavs)?void 0:o.map((e=>X(e))),navs:null==(s=null==(i=null==d?void 0:d.homeGames)?void 0:i.navs)?void 0:s.map((e=>X(e))),icons:null==(c=null==(r=null==d?void 0:d.homeGames)?void 0:r.icons)?void 0:c.map((e=>{var t,a;return{...e,subType:null==(t=null==e?void 0:e.subType)?void 0:t.map((e=>X(e))),list:null==(a=null==e?void 0:e.list)?void 0:a.map((e=>X(e)))}}))},m=null==(l=null==d?void 0:d.topList)?void 0:l.map((e=>{var a;const n=(null==(a=null==t?void 0:t.find((t=>(null==t?void 0:t.alias)===(null==e?void 0:e.alias))))?void 0:a.baoma_type)??'';return{...e,baoma_type:n}}));p.$asyncPatch((e=>{e.lhcdoc.forum2={...d,categoryList:t,homeGames:u,topList:m,cacheTime:Date.now()}}))}}catch(d){}finally{y.value=!1}},homeHeadline:he,getLhcUserInfo:async e=>{if(!y.value)try{y.value=!0;const{code:a,data:n,msg:o}=await q(Y.lhcdoc.getUserInfo,{uid:e});a===t.Success?Object.assign(f,{...n,isFollow:1===n.isFollow,isLhcdocVip:0!==n.isLhcdocVip}):o&&le(o)}catch(a){}finally{y.value=!1}},lhcUserInfo:f,followPoster:async(e,a)=>{if(!v.value)try{v.value=!0;const{code:n,msg:o}=await q(Y.lhcdoc.followPoster,e);n===t.Success?a&&a():o&&le(o)}catch(n){}finally{v.value=!1}},followPost:async(e,a)=>{if(!v.value)try{v.value=!0;const{code:n,msg:o}=await q(Y.lhcdoc.doFavorites,e);n===t.Success?a&&a():o&&le(o)}catch(n){}finally{v.value=!1}},following:v,likePost:async(e,a)=>{if(!b.value)try{b.value=!0;const{code:n,data:o,msg:i}=await q(Y.lhcdoc.likePost,e);n===t.Success&&o?a&&a(o.likeNum):i&&le(i)}catch(n){}finally{b.value=!1}},liking:b,rankType:w,getRankList:async()=>{try{let e;'fans'===w.value?e=Y.lhcdoc.getLhcFansRankData:'tips'===w.value&&(e=Y.lhcdoc.getLhcTipsRankData);const{code:a,data:n,msg:o}=await q(e);a===t.Success&&n?I.value=n.data.filter((e=>!/^[*]+$/.test(e.username))):o&&le(o)}catch(e){}},rankList:I,getMyReplyPost:async()=>
2{if(!y.value)try{y.value=!0;const{code:e,data:a,msg:n}=await q(Y.lhcdoc.myReplyPost);e===t.Success&&a?N.value=a:n&&le(n)}catch(e){}finally{y.value=!1}},myReplyPostList:N,parsePostMessage:e=>e.replace(/\[em_(\d+)\]/g,((e,t)=>`<img src="${m('arclist/'+t+'.gif')}" alt="" />`)),getPostListParam:M,getPostList:async()=>{var e;if(!y.value)try{let a;y.value=!0,a=M.isSearch?Y.lhcdoc.searchContent:M.isHistory?Y.lhcdoc.historyContent:Y.lhcdoc.contentList;const{isSearch:n,isHistory:o,...i}=M,{code:s,data:r,msg:c}=await q(a,i);if(s===t.Success&&r){0===r.total&&n&&le(l.global.t('app.not.found.yet','\u6682\u65f6\u6ca1\u6709\u67e5\u5230\u54e6\uff01'));const t=null==(e=r.list)?void 0:e.map((e=>K(e)));Object.assign(Q,{...r,total:r.total,list:t,page:i.page,isHomeListTopShow:r.homeListTopWords&&'1'===r.isHomeListTopShow})}else c&&le(c)}catch(a){}finally{y.value=!1}},postListData:Q,getFansFollowingList:async()=>{if(!y.value)try{let e;y.value=!0,a.name===s.LhFans&&('fans'===ne.value&&(e=Y.lhcdoc.fansList),'postFans'===ne.value&&(e=Y.lhcdoc.contentFansList)),a.name===s.LhFollowing&&('following'===ne.value&&(e=Y.lhcdoc.followList),'followingPost'===ne.value&&(e=Y.lhcdoc.favContentList));const{code:n,data:o,msg:i}=await q(e,{page:1,rows:1e3});n===t.Success&&o?'followingPost'===ne.value?ie.value=o:ie.value=o.list:i&&le(i)}catch(e){}finally{y.value=!1}},fansFollowingList:ie,fansFollowingTab:ne,getPostDetail:async e=>{const a=Ce.get(e);if(a)return Object.assign(ye,a),a;if(!y.value)try{y.value=!0;const{code:a,data:n,msg:o}=await q(Y.lhcdoc.contentDetail,{id:e});if(a===t.Success&&n){const t=K(n);return Object.assign(ye,t),Ce.set(e,t),t}o&&le(o)}catch(n){}finally{y.value=!1}},postDetail:ye,getLhCalendarByDate:async()=>{try{const{code:e,data:a}=await q(Y.lhcdoc.lhlDetail,{date:E.date.format('YYYYMMDD')});e===t.Success&&a&&Object.assign(E,{data:a})}catch(e){}},lhCalendarState:E,datePickerFormatter:(e,t)=>('year'===e&&(t.text+='\u5e74'),'month'===e&&(t.text+='\u6708'),'day'===e&&(t.text+='\u65e5'),t),maxDateOfThisYear:D,contentTitle:we,forumTabs:ae,parseForumContent:e=>e?Pe(e.replace(/\[em_(\d+)]/g,`<img class="inline-block" src=${m('arclist/$1.gif')} alt="" />`)):'',showTipContentDialog:L,tipContentAmount:k,tipContent:async e=>{if(!y.value)try{y.value=!0;const{code:a,msg:n}=await q(Y.lhcdoc.tipContent,{cid:e,amount:k.value});a===t.Success&&(L.value=!1),n&&await ue({title:n})}catch(a){}finally{y.value=!1}},setRandomPrice:fe,refreshRandomAmount:()=>{y.value=!0;const e=setInterval((()=>{const e=parseInt(5.2*(70+60*Math.random())+'',10)/100;k.value=0===e?'9.99':e.toFixed(2)}),80);setTimeout((()=>{fe(),clearInterval(e),y.value=!1}),1e3)},getContentReplyList:ve,getContentReplyListParam:H,loadMoreReply:async()=>{h.value||(Object.assign(H,{page:((null==H?void 0:H.page)??1)+1}),await ve())},noMoreReply:be,contentReplyListData:U,voteLhcdocParam:W,voteLhcdoc:async e=>{if(!W.animalId)return le('\u8bf7\u6295\u7968');if(!y.value)try{y.value=!0;const{code:a,data:n,msg:o}=await q(Y.lhcdoc.vote,W);a===t.Success&&(S.value=!1,W.animalId=0,n&&e&&e(n)),o&&le(o)}catch(a){}finally{y.value=!1}},showVoteModal:S,isRuleOrMystery:Le,isFromGallery:ke,showGalleryDetailContent:Se,getGalleryListParam:G,getGalleryList:async()=>{var e,a;if(!y.value)try{y.value=!0;const{code:n,data:o,msg:i}=await q(Y.lhcdoc.tkList,G);n===t.Success?O.value={...o,list:null==(a=1===G.showFav?null==(e=null==o?void 0:o.list)?void 0:e.list:null==o?void 0:o.list)?void 0:a.map((e=>({...e,isHot:'0'!==e.isHot})))}:i&&le(i)}catch(n){}finally{y.value=!1}},galleryListData:O,selectedComment:x,showReplyModal:T,postReplyParam:B,postReply:async e=>{if(!y.value){if(!B.content)return le(l.global.t('app.lhc.inputcotent','\u8bf7\u8f93\u5165\u5185\u5bb9'));try{y.value=!0;const{code:a,msg:n}=await q(Y.lhcdoc.postContentReply,B);return a===t.Success?(e&&e(),n&&await ue({title:n}),n):1===a&&(null==n?void 0:n.includes('\u6635\u79f0'))&&p.inThemes('38')?(R.value=!0,n):(n&&le(n),n)}catch(a){return}finally{y.value=!1}}},postContentParam:F,postContent:async e=>{if(!y.value)try{y.value=!0;const{code:a,msg:n}=await q(Y.lhcdoc.postContent,F);a===t.Success?(e&&e(),Object.assign(F,{title:'',content:'',images:[]}),n&&await ue({title:n})):1===a&&(null==n?void 0:n.includes('\u6635\u79f0'))?R.value=!0:n&&le(n)}catch(a){}finally{y.value=!1}},showEmojiActionSheet:A,lhcNickname:P,showAddNicknameDialog:R,getContentListByType2Param:z,getContentListByType2:async()=>
2{if(!y.value)try{y.value=!0;const{code:e,data:a,msg:n}=await q(Y.lhcdoc.getContentListByType2,z);e===t.Success?Z.value=a:n&&le(n)}catch(e){}finally{y.value=!1}},getLhcNoList:async()=>{var e,n;try{y.value=!0;const{code:o,data:i,msg:s}=await q(Y.lhcdoc.lhcNoList,j);if(o===t.Success)if(Object.assign(se,d(null==i?void 0:i.list)),a.query.lhcNo){const e=a.query.lhcNo.substring(0,4),t=a.query.lhcNo.slice(-3);_.value=e,C.value=Number(t).toString()}else _.value=null==se?void 0:se.years[0],C.value=(null==(n=null==(e=null==se?void 0:se.mapData)?void 0:e.get(null==se?void 0:se.years[0]))?void 0:n[0].lhcNo)??'';else s&&le(s)}catch(o){}finally{y.value=!1}},getLhcNoListParam:j,getLhcdocContentDetail:async()=>{try{const{code:e,data:a,msg:n}=await q(Y.lhcdoc.getLhcdocContentDetail,$);e===t.Success||n&&le(n)}catch(e){}},getLhcdocContentDetailParam:$,getLhcdocGalleryContentDetail:async()=>{try{const{code:e,data:a,msg:n}=await q(Y.lhcdoc.getLhcdocGalleryContentDetail,V);t.Success}catch(e){}},getLhcdocGalleryContentDetailParam:V,lhcNoListData:se,selectedYear:_,selectedLhcNo:C,currentLhcNoList:Te,currentLhcNoItem:Ae,getCategoryByAlias:e=>{var t,a,n;return null==(n=null==(a=null==(t=p.lhcdoc)?void 0:t.category)?void 0:a.list)?void 0:n.find((t=>t.alias===e))},getLhcdocMainCategoryParam:pe,getLhcdocMainCategory:async()=>{try{const{code:e,data:a,msg:n}=await q(Y.lhcdoc.getLhcdocMainCategory,pe);e===t.Success?de.value=a.list:n&&le(n)}catch{}},lhcdocMainCategoryList:de,getLhcdocSubCategoryParam:me,getLhcdocSubCategory:async()=>{try{const{code:e,data:a,msg:n}=await q(Y.lhcdoc.getLhcdocSubCategory,me);e===t.Success?ge.value=a.list:n&&le(n)}catch{}},lhcdocSubCategoryList:ge,contentListByType2:Z}},De=[s.ActivityHall,s.LotteryHall,s.LotteryHallDetails,s.Promote,s.PromoteDetail,s.GameHall,s.NewGameHall,s.GameCenter,s.LotteryList,s.GameThird,s.LhPostDetail],Ie=()=>{var e,t,a;return(null==(e=p.currentRoute.value)?void 0:e.name)===s.Custom&&'information'===(null==(a=null==(t=p.currentRoute.value)?void 0:t.params)?void 0:a.path)},Ne={showLoginRegPopup:te(!1),loginRegPopupTab:te('login'),preloadedCaptcha:te(null),pendingRoute:te(null),allowAnonymousView:te(!1),stayOnPageAfterForce:te(!1)},Oe=()=>{const t=e(),{getImgCaptcha:a}=V();return{showLoginRegPopup:Ne.showLoginRegPopup,loginRegPopupTab:Ne.loginRegPopupTab,preloadedCaptcha:Ne.preloadedCaptcha,pendingRoute:Ne.pendingRoute,stayOnPageAfterForce:Ne.stayOnPageAfterForce,openLoginPopup:async e=>{var n;if(null==e?void 0:e.force)Ne.stayOnPageAfterForce.value=!0;else{if(De.includes(null==(n=p.currentRoute.value)?void 0:n.name))return;if(Ie())return;if(Ne.allowAnonymousView.value)return}Ne.loginRegPopupTab.value='login',Ne.showLoginRegPopup.value=!0,(async()=>{if(t.config.loginVCode02===g.captcha)try{await a((e=>{Ne.preloadedCaptcha.value=e}))}catch(e){}})().catch((()=>{}))},openRegPopup:async e=>{var n;if(null==e?void 0:e.force)Ne.stayOnPageAfterForce.value=!0;else{if(De.includes(null==(n=p.currentRoute.value)?void 0:n.name))return;if(Ie())return;if(Ne.allowAnonymousView.value)return}Ne.loginRegPopupTab.value='reg',Ne.showLoginRegPopup.value=!0,(async()=>{if(t.config.reg_vcode!==m.none&&t.config.reg_vcode!==m.hCaptcha)try{await a((e=>{Ne.preloadedCaptcha.value=e}))}catch(e){}})().catch((()=>{}))},closePopup:()=>{Ne.showLoginRegPopup.value=!1}}},xe=()=>Ne,Ue=Object.freeze(Object.defineProperty({__proto__:null,getLoginRegPopup85State:xe,useLoginRegPopup85:Oe},Symbol.toStringTag,{value:'Module'})),Me=()=>{var a,n,o,i;const s=e(),{sameApiVersion:r}=ce(),u=te(!1),d=J((()=>{var e,t;return null==(t=null==(e=s.activity.goldenEgg)?void 0:e.list)?void 0:t[0]})),p=te((null==(i=null==(o=null==(n=null==(a=s.activity.goldenEgg)?void 0:a.list)?void 0:n[0])?void 0:o.param)?void 0:i.golden_egg_times)??0),m=J((()=>{var e,t;return null==(t=null==(e=s.activity.turntable)?void 0:e.list)?void 0:t[0]})),g=J((()=>{var e,t;return null==(t=null==(e=s.activity.scratch)?void 0:e.list)?void 0:t[0]})),h=J((()=>{var e,t;return null==(t=null==(e=m.value)?void 0:e.param)?void 0:t.prizeArr})),f=te(),v=oe({id:'',list:[],log:{list:[],total:0},win_apply_image:[]}),b=oe({id:'',list:[],categoryList:{},log:{list:[],total:0},win_apply_image:[]}),w=oe({tabIndex:0,showPopup:!1,eggLog:[],turnLog:[],scratchLog:{},fakeScratchLog:[],eggResult:{},turnResult:{},showResult:!1,eggPos:0,hammerPos:0,breakingPos:0,gygPos:0,showScratchPopup:!1,opened:[],eggTimer:null,hitTimer:null,finished:!1,animating:!1,scratching:!1,scratched:!1,canScratchCount:0,scratchedCount:0,scratchList:[],currentGyg:{},showCenterPrizeIcon:!1}),L=async()=>
2{if(!r(c.ActivityGoldenEggList))try{const{code:e,data:a,version:n}=await q(Y.activity.goldenEggList);e===t.Success&&(null==a?void 0:a.length)&&s.$asyncPatch((e=>{e.activity.goldenEgg={list:a,version:n}}))}catch(e){}},k=async()=>{try{const{code:e,data:a,version:n}=await q(Y.activity.scratchList);if(e===t.Success&&a){const{scratchList:e,scratchWinList:t}=a;(null==e?void 0:e.length)&&s.$asyncPatch((t=>{t.activity.scratch={version:n,list:e}})),(null==t?void 0:t.length)?(s.$asyncPatch((e=>{e.activity.scratchWinList=t})),w.canScratchCount=t.length,C()):(s.$asyncPatch((e=>{e.activity.scratchWinList=[]})),w.canScratchCount=0)}}catch(e){}},S=async e=>{var a;const n=!!(null==(a=s.activity.redBagDetail)?void 0:a.id);if(e||!n||!r(c.ActivityRedBagDetail))try{const{code:e,data:a,version:o}=await q(Y.activity.redBagDetail);e===t.Success&&a?s.$asyncPatch((e=>{e.activity.redBagDetail={...a,version:o}})):n||s.$asyncPatch((e=>{e.activity.redBagDetail={}}))}catch(o){}},T=J((()=>s.activity.redBagDetail)),A=J((()=>{var e,t,a;if(!(null==(e=T.value)?void 0:e.id))return!1;const n=Date.now(),o=new Date(1e3*+((null==(t=T.value)?void 0:t.show_time)??'0')).getTime(),i=(null==(a=T.value)?void 0:a.end)?new Date(1e3*+T.value.end).getTime():null;return!(n<o)&&!(i&&n>i)})),R=J((()=>{var e,t;let a='';return a=(null==(e=T.value)?void 0:e.canGet)?l.global.t('app.ios455','\u7acb\u5373\u5f00\u62a2\t'):((null==(t=T.value)?void 0:t.attendedTimes)??0)>0?l.global.t('app.ios224','\u5df2\u53c2\u4e0e\u6d3b\u52a8'):s.isMember?l.global.t('app.ios455','\u7acb\u5373\u5f00\u62a2\t'):l.global.t('app.sign.in.get','\u767b\u5f55\u62a2\u7ea2\u5305'),a})),P=async()=>{var e;try{const{code:a,data:n}=await q(Y.activity.goldenEggLog,{activityId:null==(e=d.value)?void 0:e.id});a===t.Success&&n&&(w.eggLog=n)}catch(a){}},_=()=>s.activity.scratchWinList.length>0&&((null==w?void 0:w.canScratchCount)??0)>0?s.activity.scratchWinList[Math.floor(Math.random()*((null==w?void 0:w.canScratchCount)??0))]:void 0,C=()=>{var e;null==(e=w.scratchList)||e.forEach((e=>{e.prize||(e.item=_())}))},E=()=>{const e='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';let t='';for(let a=0;a<8;a++)if(a>=2&&a<=5)t+='*';else{const a=Math.floor(62*Math.random());t+=e.charAt(a)}return t},D=async()=>{var e,a;try{const{code:n,data:o,msg:i}=await q(Y.activity.scratchLog,{activityId:null==(e=g.value)?void 0:e.id});n===t.Success&&o?(w.scratchLog=o,(null==(a=null==o?void 0:o.scratchLog)?void 0:a.length)>0&&'0'!==(null==o?void 0:o.prizeShowType)&&(w.fakeScratchLog=(()=>{const e=[];for(let n=0;n<30;n++){const n={amount:(t=25,a=8888,(Math.random()*(a-t)+t).toFixed(2)),username:E()};e.push(n)}var t,a;return e})())):i&&ue({title:i})}catch(n){}},I=J((()=>{var e;return null==(e=s.activity.redBagRainDetail)?void 0:e.id}));return{loading:f,getActivitySettings:async()=>{if(!r(c.ActivitySettings))try{const{code:e,data:a,version:n}=await q(Y.activity.settings);e===t.Success&&a&&s.$asyncPatch((e=>{e.activity.settings={...a,version:n}}))}catch(e){}},getTurntableList:async()=>{try{const{code:e,data:a,version:n}=await q(Y.activity.turntableList);e===t.Success&&(null==a?void 0:a.length)&&s.$asyncPatch((e=>{e.activity.turntable={list:a,version:n}}))}catch(e){}},getGoldenEggList:L,getScratchList:k,getRedBagDetail:S,getWinApplyList:async()=>{var e;try{const{code:a,data:n}=await q(Y.activity.winApplyList);a===t.Success&&n&&(null==(e=null==n?void 0:n.list)?void 0:e.length)>0&&Object.assign(v,{list:n.list})}catch(a){}},winApplyData:v,applyWin:async e=>{var a;try{const{code:e,data:n,msg:o}=await q(Y.activity.applyWin,{id:v.id,amount:'',userComment:'',files:null==(a=v.win_apply_image)?void 0:a.map((e=>e.file))});o&&le(o),e===t.Success&&n&&Object.assign(v,{log:n})}catch(n){}},getWinApplyLog:async()=>{try{const{code:e,data:a}=await q(Y.activity.applyWinLog);e===t.Success&&a&&Object.assign(v,{log:a})}catch(e){}},redBagDetail:T,showHomeRedBag:A,getHomeRedBagBtnText:R,getRedBag:async e=>{if(u.value||!e)return!1;let a=!1;try{u.value=!0;const{code:n,data:o,msg:i}=await q(Y.activity.getRedBag,{id:e});if(n===t.Success){if(a=!0,o){const e=/^\d+(\.\d+)?$/.test(String(o).trim())?l.global.t('app.ios417',`\u606d\u559c\u60a8\u83b7\u5f97\u4e86${o}\u5143\u7ea2\u5305`).replace('%s',String(o)):l.global.t('app.getsuccess','\u9886\u53d6\u62
210\u529f');try{await ue({title:e})}catch{}}}else i&&le(i)}catch(n){}finally{u.value=!1,await S()}return a},goldenEggData:d,remainingGoldenEggTimes:p,turntableData:m,scratchData:g,prizeArr:h,gameState:w,getGoldenEggLog:P,getTurntableLog:async()=>{var e;try{const{code:a,data:n}=await q(Y.activity.turntableLog,{activityId:null==(e=m.value)?void 0:e.id});a===t.Success&&n&&(w.turnLog=n)}catch(a){}},getScratchLog:D,goldenEggWin:async()=>{var e;if(p.value<=0)return ue({title:l.global.t('app.smashed.eggs.exhausted','\u5f53\u524d\u7838\u86cb\u6b21\u6570\u5df2\u7528\u5b8c\uff01')});try{const{code:a,data:n,msg:o}=await q(Y.activity.goldenEggWin,{activityId:null==(e=d.value)?void 0:e.id});a===t.Success&&n?(w.opened=[...w.opened,w.hammerPos],w.showResult=!0,await y(500),w.eggResult=n,w.hammerPos=0,p.value-=1,await L(),await P()):o&&(w.finished=!0,await ue({title:o}))}catch(a){}},turntableWin:async()=>{var e;try{const{code:a,data:n,msg:o}=await q(Y.activity.turntableWin,{activityId:null==(e=m.value)?void 0:e.id});return a===t.Success&&n?(w.turnResult=n,w.finished=!1,!0):(w.turnResult={},o&&await ue({title:o}),w.finished=!0,!1)}catch(a){return w.turnResult={},w.finished=!0,!1}},scratchWin:async()=>{var e,a,n;if(!w.scratching&&(null==(e=w.currentGyg)?void 0:e.id))try{w.scratching=!0;const{code:e,msg:o}=await q(Y.activity.scratchWin,{scratchId:null==(a=w.currentGyg)?void 0:a.id});e===t.Success&&(w.scratchedCount+=1,w.canScratchCount-=1,null==(n=w.scratchList)||n.forEach((e=>{var t;e.pos===w.gygPos&&(e.prize=(null==(t=w.currentGyg)?void 0:t.amount)??'')}))),await ue({title:o})}catch(o){}finally{w.scratching=!1,w.gygPos=0,w.currentGyg={},await Promise.all([D(),k()])}},closePopup:()=>{w.animating||(w.showPopup=!1,w.eggResult={},w.turnResult={},w.showResult=!1)},popupClosed:()=>{Object.assign(w,{tabIndex:0,breakingPos:0,finished:!1,hammerPos:0,eggPos:0,gygPos:0,opened:[],eggResult:{},turnResult:{},showResult:!1,canScratchCount:0,scratchedCount:0,fakeScratchLog:[],animating:!1,showCenterPrizeIcon:!1})},genScratchList:()=>{w.scratchList=Array.from({length:9},((e,t)=>{const a=t+1;return{pos:a,opened:w.opened.includes(a),prize:'',item:_()}}))},getWinApplyListNew:async()=>{var e;try{f.value=!0;const{code:a,data:n}=await q(Y.activity.applyWinListNew);a===t.Success&&n&&(null==(e=null==n?void 0:n.list)?void 0:e.length)>0&&Object.assign(b,{list:n.list,categoryList:n.categoryList})}catch(a){}finally{f.value=!1}},ApplyListNewData:b,getRedBagRainDetail:async()=>{try{const{code:e,data:a}=await q(Y.activity.redBagRainDetail);e===t.Success&&a&&s.$asyncPatch((e=>{e.activity.redBagRainDetail={...a}}))}catch(e){}},getRedBagRainGo:async()=>{try{const{code:e,data:a,msg:n}=await q(Y.activity.redBagRainGo,{id:I.value});return e!==t.Success?(n&&le(n),null):a.can_bonus_times?a:(le(a.tip),null)}catch(e){}},getRedBagRainBonusGet:async()=>{try{const{code:e,data:a,msg:n}=await q(Y.activity.redBagRainBonusGet,{id:I.value});return e===t.Success&&a?1!==Number(a.is_success)?(le('\u5f88\u9057\u61be\uff0c\u6ca1\u62a2\u5230\u7ea2\u5305\uff0c\u591a\u591a\u52a0\u6cb9'),null):a:(n&&le(n),null)}catch(e){return null}},promotionTurntableList:async()=>{try{const{code:e,data:t}=await q(Y.activity.promotionTurntableList,{token:s.token});return t}catch(e){throw e}},promotionTurntableWin:async e=>{try{const{data:a,code:n,msg:o}=await q(Y.activity.promotionTurntableWin,{token:s.token,activityId:e});return n!==t.Success?(le(o),null):a}catch(a){throw a}},promotionTurntableWinBox:async e=>{try{const{data:a,code:n,msg:o}=await q(Y.activity.promotionTurntableWinBox,{token:s.token,activityId:e});return n!==t.Success?(le(o),null):a}catch(a){throw a}},promotionTurntableBonus:async e=>{try{const{data:a,code:n,msg:o}=await q(Y.activity.promotionTurntableBonus,{token:s.token,activityId:e});return n!==t.Success?(le(o),null):a}catch(a){throw a}},promotionTurntableNoticeList:async e=>{try{const{data:a,code:n,msg:o}=await q(Y.activity.promotionTurntableNoticeList,{token:s.token,activityId:e});return n!==t.Success?(le(o),null):a}catch(a){throw a}},promotionTurntableMyRecord:async e=>{try{const{data:a,code:n,msg:o}=await q(Y.activity.promotionTurntableMyRecord,{token:s.token,activityId:e});return n!==t.Success?(le(o),null):a}catch(a){throw a}},promotionTurntableSubList:async e=>{try{const{data:a,code:n,msg:o}=await q(Y.activity.promotionTurntableSubList,{token:s.token,activityId:e});return n!==t.Success?(le(o),null):a}catch(a){throw a}}}},He=e=>1===e||'1'===e,We=e=>null==e?[]:Array.isArray(e)?e.length?e:[]:'object'==typeof e?Object.values(e):[],Ge=(e,t)=>
2!!t.isMember||(t.isLogin?!t.isTest||He(e.play_account_view):He(e.guest_view)),Be=(e,t)=>{if(void 0===(null==e?void 0:e.rank_period_views))return!0;const a=We(e.rank_period_views);return!!a.length&&a.some((e=>Ge(e,t)))},Fe=()=>{const t=e(),{getActivitySettings:a}=Me(),n=J((()=>(e=>({isLogin:!!e.isLogin,isTest:!!e.isTest,isMember:!!e.isMember}))(t))),o=async()=>{var e;void 0===(null==(e=t.activity.settings)?void 0:e.rank_period_views)&&void 0===(null==e?void 0:e.m_rank_show)&&await a()},i=(e='/ranking')=>{xe().pendingRoute.value=e;const{openLoginPopup:t}=Oe();t({force:!0})};return{ensureSettings:o,ensureRankActivityAccess:async(e='/ranking')=>(await o(),!!Be(t.activity.settings,n.value)||(i(e),!1)),promptRankLogin:i,canAccessRankActivity:()=>Be(t.activity.settings,n.value),filterVisiblePeriodKeys:()=>new Set(((e,t)=>We(null==e?void 0:e.rank_period_views).filter((e=>Ge(e,t))))(t.activity.settings,n.value).map((e=>e.period_type))),normalizeRankPeriodViews:()=>{var e;return We(null==(e=t.activity.settings)?void 0:e.rank_period_views)}}},ze=()=>{const a=e(),n=ee(),o=te([]),i=oe({}),r=te([]),c=J((()=>{var e,t;if(n.name!==s.GameList||!(null==(e=n.params)?void 0:e.id))return'';for(const o of a.game.homeGames.icons){if(null==(t=null==o?void 0:o.list)?void 0:t.every((e=>'gameType'in e)))continue;const e=o.list.find((e=>{var t;return e.gameId===(null==(t=n.params)?void 0:t.id)}));if(e)return e.title}return n.query.title||''}));return{getRealGameList:async e=>{try{const{code:a,data:n,msg:i}=await q(Y.game.realGames);a===t.Success&&n?o.value=n.filter((t=>e.includes(t.category))).sort(((t,a)=>{if(2===e.length)return t.category===h.real&&a.category===h.sport?-1:t.category===h.sport&&a.category===h.real?1:0;if(3===e.length){const e={[h.card]:1,[h.game]:2,[h.fish]:3};return(e[t.category]||999)-(e[a.category]||999)}return 0})).map((e=>X(e))):i&&le(i)}catch(a){}},realGameList:o,goToGame:async(e,n,o)=>{if(!a.isLogin||!a.token){const{useLoginRegPopup85:e}=await f((async()=>{const{useLoginRegPopup85:e}=await Promise.resolve().then((()=>Ue));return{useLoginRegPopup85:e}}),void 0),{openLoginPopup:t}=e();return t({force:!0})}try{const{code:a,data:i,msg:s}=await q(Y.real.goToGame,{id:e,game:n});if(a===t.Success){if(o){let e=i;if('string'==typeof i){let t=0,a=-1;for(let e=0;e<i.length;e++)if('/'===i[e]&&(t++,3===t)){a=e;break}a>0&&(e=window.location.origin+i.substring(a))}o(e)}}else s&&le(s)}catch(i){}},getRealGameTypesParam:i,getRealGameTypes:async()=>{try{const{code:e,data:a,msg:n}=await q(Y.game.realGameTypes,i);e===t.Success?r.value=a:n&&le(n)}catch(e){}},realGameTypeList:r,realGameListTitle:c}},je=new Set,$e=e=>new Promise((t=>{if(!e)return t();const a=new Image;a.src=e,a.complete?t():(a.onload=()=>t(),a.onerror=()=>t())})),qe=()=>{const a=e(),o=ie(),{sameApiVersion:i}=ce(),r=ee(),l=se(),u=te(!1),d=te({}),p=te(!0),m=e=>{const t=document.querySelector('.h5-body');if(!t)return;const n=document.getElementById(L),{mobileTemplateCategory:o,mobileTemplateBackground:i,mobileTemplateStyle:s}=e;o&&t.setAttribute('data-theme',k.includes(o)?o:'0'),s&&(a.$asyncPatch((e=>{e.style=s})),t.setAttribute('data-style',s),t.setAttribute('data-skin',s),n&&n.setAttribute('data-style',s)),i&&(t.setAttribute('data-bg',i),n&&n.setAttribute('data-bg',i))},g=te(),y=e=>{a.$asyncPatch((t=>{t.betTheme=e}));if(document.querySelector('.h5-body')){const t=document.getElementById(L);t&&t.setAttribute('data-bettheme',e)}},h=e=>{a.$asyncPatch((t=>{t.mode=e}));const t=document.querySelector('.h5-body');t&&t.setAttribute('data-mode',e)},_=e=>{const t=(e=>{const t=document.body,a=e.merId?P(e):'';return t&&a.length>0&&t.setAttribute('data-site',a),t&&0===a.length&&t.removeAttribute('data-site'),a})(e);a.$asyncPatch((e=>{e.site=t}))},C=e=>{e&&(_(e),(e=>{const{mobileTemplateCategory:t}=e;t&&(a.$asyncPatch((e=>{e.theme=k.includes(t)?t:'0'})),m(e))})(e),(e=>{if(a.isLogin){const t='showZnxNotify',n=localStorage.getItem(t);if(null!==n){const e='true'===n;a.$asyncPatch((t=>{t.showZnxNotify=e}))}else{const n=e.znxNotify;a.$asyncPatch((e=>{e.showZnxNotify=n})),localStorage.setItem(t,String(n))}}})(e),(e=>{var t;const n=(null==e?void 0:e.page_title)??(null==(t=a.config)?void 0:t.page_title);
2n&&(document.title=n)})(e),(e=>{const t=document.getElementById(L);if(!t)return;const a=e.merId;null!=a&&String(a).length>0?t.setAttribute('data-merid',String(a)):t.removeAttribute('data-merid')})(e))},E=J((()=>a.system.promotions.showCategory)),D=J((()=>{var e,t;return null==(t=null==(e=a.notice.latest.popup)?void 0:e.filter((e=>e.content)))?void 0:t.map(((e,t)=>({...e,index:t,data:e.rollingType?JSON.parse(e.content):e.content})))})),I=J((()=>a.inThemes('4'))),N=J((()=>a.config.m_promote_pos===v.Home)),O=J((()=>a.config.mobileShowCopyright)),x=J((()=>a.inSites('t034,t041'))),U=J((()=>a.inThemes('38,78'))),M=J((()=>a.inThemes('78,79'))),H=J((()=>a.isMember&&a.config.currency===b.CNY&&a.config.switchDOYUSDTTrans)),W=J((()=>[{text:'\u4f59\u989d',value:w.Balance,show:!0},{text:a.yuebaoName,value:w.Yuebao,show:!0},{text:'DOY',value:w.Doy,show:H.value},{text:'USDT',value:w.Usdt,show:H.value}].filter((e=>e.show)))),G=J((()=>a.inSites('f013a,f089a,f122a,f122b,f166a,f176'))),B=J((()=>a.inSites('f070,f192,t033')||!1)),F=J((()=>!!r&&(r.name===s.UserCenter?a.inThemes('4,9,38,76,78,79,80,81,83,86')||a.inThemes('0')&&'1'===a.config.memberCenterTemplate||a.inThemes('0')&&'2'===a.config.memberCenterTemplate:[s.Home,s.LhCommunity,s.Promote,s.Custom,s.GameHall,s.Video,s.GameThird,s.LotteryHall].includes(r.name)))),z=J((()=>!a.inSites('t002'))),$=J((()=>!1)),V=J((()=>!0)),Q=J((()=>a.inThemes('9'))),K=J((()=>a.inThemes('83'))),ae=J((()=>a.site.startsWith('v'))),oe=J((()=>!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/))),re=J((()=>navigator.userAgent.includes('Android')||navigator.userAgent.includes('Adr'))),ue=J((()=>a.userInfo.guestToRealInfo&&a.allowGuestToReal)),de=J((()=>{const{appdownloadbar:e,appdownloadbar2:t,appdownloadurl2:n,appdownloadurl3:o,appDownloadUrl:i}=a.config;return e&&n&&oe.value?n||i:t&&o&&re.value?o||i:''})),pe=J((()=>a.inSites('f036c,f053b,f058b'))),me=J((()=>a.inSites('f036c,f053b,f058b,f062a')||a.isDevSite)),ge=e=>{var t,a;const n='site-stat-tracking-script',o=document.getElementById(n);o&&(null==(t=o.parentNode)||t.removeChild(o));const i=null==(a=null==e?void 0:e.statCode)?void 0:a.trim();if(i){const e=document.createElement('div');e.innerHTML=i;const t=e.getElementsByTagName('script');if(t.length>0){const e=document.createElement('script');e.id=n,t[0].src&&(e.src=t[0].src),t[0].textContent&&(e.textContent=t[0].textContent),document.head.appendChild(e)}}};return{getSystemConfig:async e=>{if(C(a.config),i(c.SystemConfig))return ge(a.config),a.$asyncPatch((e=>{e.initialized=!0})),void T('loading',!1);e||T('loading',!0);try{const{code:e,data:n,msg:i,version:s}=await q(Y.system.config);if(e===t.Success&&n){const e=Z(n),t={...e,mission_logo:e.mission_logo||A,version:s};a.$asyncPatch((e=>{e.config=t})),(async e=>{e&&!je.has(e)&&(je.add(e),await $e(e))})(t.mobile_logo);const{loginsessid:i,mobile_icon:r,mobileBetStyle:c}=n;!j.get('loginsessid')&&i&&j.set('loginsessid',i),C(t),c&&(a.$asyncPatch((e=>{e.betTheme=c})),y(c)),r&&(o.value=r),ge(t),ne((()=>{a.$asyncPatch((e=>{e.initialized=!0}))}))}else i&&le(i)}catch(n){}finally{T('loading',!1)}},setDataAttributes:m,getSystemBanners:async()=>{var e,n,o;if(!(i(c.SystemBanners)||(null==(e=a.system.banners)?void 0:e.version)&&(null==(o=null==(n=a.system.banners)?void 0:n.list)?void 0:o.length)))try{const{code:e,data:n,msg:o,version:i}=await q(Y.system.banners);if(e===t.Success&&n){const{list:e}=n;null==e||e.slice(0,4).forEach(((e,t)=>{if(e.pic){const a=new Image;0===t&&(a.fetchPriority='high'),a.src=e.pic}})),a.$asyncPatch((t=>{t.system.banners={version:i,list:null==e?void 0:e.map((e=>X(e)))}}))}else o&&le(o)}catch(s){}},getSystemRankingList:async()=>{try{const{code:e,data:n,msg:o}=await q(Y.system.rankingList);if(e===t.Success&&n){const{list:e}=n;a.$asyncPatch((t=>{t.system.rankingList=e}))}else o&&le(o)}catch{}},getSystemHomeAds:async()=>{if(!i(c.SystemHomeAds))try{const{code:e,data:n,version:o}=await q(Y.system.homeAds);e===t.Success&&a.$asyncPatch((e=>{e.system.homeAds={version:o,list:n&&Array.isArray(n)?n.map((e=>X(e))):[]}}))}catch(e){}},getSystemPromotions:async e=>{if(!i(c.SystemPromotions))try{const{code:n,data:o,msg:i,version:s}=await q(Y.system.promotions,e);if(n===t.Success&&o){const e=Number(o.m_home_promote_count??0);a.$asyncPatch((t=>{t.system.promotions={...o,m_home_promote_count:e,m_home_promote_limit:o.m_home_promote_limit+''=='0'&&e>0,version:s}}))}else i&&le(i)}catch(n){}},showPromotionCategory:E,getSystemFloatAds:async()=>{const e=a.config.floatAds,t=a.config.floatGroupAds;if(e){const n=Array.isArray(e)?e:e.list||[];a.$asyncPatch((e=>{e.system.floatAds={list:n.map((e=>{var a,n;const o=null==(n=null==(a=null==t?void 0:t[String(e.position)])?void 0:a.ads)?void 0:n.find((t=>String(t.id)===String(e.id)));return{...X(e),linkAction:e.linkAction??(null==o?void 0:o.linkAction),isPopup:(e.realIsPopup??(null==o?void 0:o.realIsPopup))+''=='1',supportTrial:(e.realSupportTrial??(null==o?void 0:o.realSupportTrial))+''=='1',show:!0}}))}}))}},getMainMenu:async()=>
2{if(!i(c.SystemMobileRight))try{const{code:e,data:n,version:o}=await q(Y.system.mobileRight);e===t.Success&&(n?a.$asyncPatch((e=>{e.system.mobileRight={version:o,list:n.map((e=>({...e,subId:e.subId+''})))}})):a.$asyncPatch((e=>{e.system.mobileRight={...a.system.mobileRight,list:[]}})))}catch(e){}},getSystemGameHallMenu:async()=>{const e=Date.now(),n=a.system.gameHallMenu,o=(null==n?void 0:n.timestamp)||0;if(!((null==n?void 0:n.list)&&n.list.length>0&&e-o<36e5))try{const{code:n,data:o}=await q(Y.system.gameHallMenu);n===t.Success&&a.$asyncPatch((t=>{t.system.gameHallMenu={list:o&&Array.isArray(o)?o:[],timestamp:e}}))}catch(i){}},getSystemBankList:async e=>{try{const{code:n,data:o}=await q(Y.system.bankList,{type:e}),i=Array.isArray(o)?o:null==o?void 0:o.list;if(n===t.Success&&i&&i.length){const t=i.map((e=>X(e)));return e===R.Bank&&a.$patch((e=>{e.system.bankList=t})),e===R.Crypto&&a.$patch((e=>{e.system.cryptoList=t})),t}}catch(n){}return[]},getSystemOnlineCount:async()=>{try{const{code:e,data:n}=await q(Y.system.onlineCount);e===t.Success&&n&&a.$asyncPatch((e=>{e.game.homeGames.onlineSwitch=n.onlineSwitch,e.game.homeGames.onlineUserCount=n.onlineUserCount}))}catch(e){}},getSystemContentData:async e=>{try{const{code:a,data:n}=await q(Y.system.content,{id:e});a===t.Success&&n&&(d.value=n)}catch(a){}},contentData:d,isHomeNoticeBarAtTop:I,isHomeShowPromotions:N,showHomeCopyright:O,showHomeCopyrightLinks:x,showBack2Top:U,appDownloadAtTop:M,showDoyUsdt:H,noticeList:D,checkIsShowPlatformNotice:()=>{if(0===D.value.length)return!1;if(!a.config.popup_hour||!a.lastPopupTime)return!0;const e=n(),t=n(a.lastPopupTime);return e.diff(t,'hour',!0)>=Number(a.config.popup_hour)},goSignInPage:async()=>{if(a.guestToRealNoRecharge)return l.push({name:s.WalletWithdraw});if(a.user.info.isTest){le('\u8bd5\u73a9\u8d26\u53f7\u65e0\u8bbf\u95ee\u6743\u9650\uff0c\u8bf7\u5148\u6ce8\u518c');const{useLoginRegPopup85:e}=await f((async()=>{const{useLoginRegPopup85:e}=await Promise.resolve().then((()=>Ue));return{useLoginRegPopup85:e}}),void 0),{openRegPopup:t}=e();t()}else window.location.href='/html/qiandao/mobile.html'},moneyTypeOptions:W,isTmAB:G,showTabBar:F,showPostNow:B,encryptGameUrl:z,setBetTheme:y,removeBetThemeAttribute:()=>{if(document.querySelector('.h5-body')){const e=document.getElementById(L);e&&e.removeAttribute('data-bettheme')}},showInputLabel:$,showPlaceholder:V,hasDarkMode:Q,change83Themes:e=>{a.$asyncPatch((t=>{t.style=e}));const t=document.querySelector('.h5-body');t&&t.setAttribute('data-skin',e)},is83Themes:K,toggleMode:()=>{h(a.mode===S.light?S.dark:S.light)},setMode:h,resetMode:()=>{a.mode===S.dark&&a.$asyncPatch((e=>{e.mode=S.light}));const e=document.querySelector('.h5-body');e&&e.removeAttribute('data-mode')},setTheme:e=>{a.$asyncPatch((t=>{t.theme=e}));const t=document.querySelector('.h5-body');t&&t.setAttribute('data-theme',e)},insertStatCode:ge,getClientIP:()=>{fetch('https://v4.ident.me/myip').then((e=>{e.text().then((e=>{a.$asyncPatch((t=>{t.chat.ip=e}))}))}))},checkIsAppWebView:()=>{const e=navigator.userAgent,t=/UDB2.0/gi.test(e)||/Html5Plus/gi.test(e)||/cywapp2xf/gi.test(e)||/547fb656147b883d034a15e2a5d5fa80/gi.test(e)||/shieldWebView/gi.test(e);T('isAppWebView',t)},isVietnamSite:ae,appDownloadBarLink:de,mounteSetNewPasswordPopup:ue,hideLhHomeTabs:pe,fixForumCategoryTabs:me,see:p,menuOpen:u,getDragCarousel:async()=>{const e=a.config.floatGroupAds;if(e){const t=Array.isArray(e)?e:e.list||e;g.value=t}},dragCarouselList:g,isIOS:oe,isAndroid:re}},Ye=te(!1),Ve=te(!1),Qe=()=>{const t=e(),a=se(),{logoutPrompt:n,guestLogin:o}=pe(),{isExpertPlanEnabled:i,getExpertPlanData:c}=he(),{goToGame:u}=ze(),{encodeUrlQueryString:d}=$(),{getCategoryByAlias:p}=Ee(),{encryptGameUrl:m,appDownloadBarLink:g}=qe(),{toClipboard:y}={toClipboard:(e,t)=>new Promise(((a,n)=>{const o=document.createElement('button'),i=new ye(o,{text:()=>e,action:()=>'copy',container:void 0!==t?t:document.body});i.on('success',(e=>{i.destroy(),a(e)})),i.on('error',(e=>{i.destroy(),n(e)})),document.body.appendChild(o),o.click(),document.body.removeChild(o)}))},{ensureRankActivityAccess:v}=Fe(),b=async(e,t=0)=>{const a=2===t?'_top':1===t?'_blank':'_self',n=()=>window.open(e,a);try{n()||(1===t&&await de({title:'\u5f00\u542f\u65b0\u7a97\u53e3'}),n());const e=()=>{const e=document.querySelector('meta[name="viewport"]');if(e){const t=e.getAttribute('content')||'';e.setAttribute('content','width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no'),setTimeout((()=>{window.dispatchEvent(new Event('resize')),t&&e.setAttribute('content',t)}),0)}};window.addEventListener('pageshow',e,{once:!0})}catch{}},w=()=>{const{zxkfUrl:e,zxkfUrl2:a}=t.config;if(!e&&!a)return;const n=t.inSites('f195')?'_self':'_blank';
2e&&!a?window.open(_(e,t.token),n):!e&&a?window.open(_(a,t.token),n):e&&a&&(Ye.value=!0)},L=async e=>{const{id:i,gameId:c,subId:l,url:g,seriesId:y,openWay:h,gameCode:L,appLinkCode:T}=e,A=g??e.link??'',{alias:R}=C(A);if(T===E)return a.push({name:s.LhHelper});if('forum2'===e.model||/\/lh\/forum2/i.test(A)){const t=R||e.alias;if(t){const e=p(t);return e?S(e):a.push({name:s.LhForum2,query:{alias:t}})}}if(e.model===r.forum||/\/lh\/forum(?!2)/i.test(A)){const t=R||e.alias;if(t){const e=p(t);return e?S(e):a.push({name:s.LhForum,query:{alias:t}})}}if((null==e?void 0:e.alias)&&[r.rundog,r.humorGuess,r.fourUnlike].includes(e.alias)){const t=p(e.alias);if(t)return S(t)}switch(y){case D.Lottery:return a.push({name:s.LotteryBet,params:{gameId:c},replace:!0});case D.Real:case D.Fish:case D.Game:case D.Chess:case D.Sports:case D.ESports:if(e.isMaintained)return le('\u6e38\u620f\u7ef4\u62a4\u4e2d');if(!t.isLogin){const{useLoginRegPopup85:e}=await f((async()=>{const{useLoginRegPopup85:e}=await Promise.resolve().then((()=>Ue));return{useLoginRegPopup85:e}}),void 0),{openLoginPopup:t}=e();return t()}if(!e.supportTrial&&t.isTest){le('\u8bd5\u73a9\u8d26\u53f7\u65e0\u6cd5\u8fdb\u5165\u6b64\u6e38\u620f');const{useLoginRegPopup85:e}=await f((async()=>{const{useLoginRegPopup85:e}=await Promise.resolve().then((()=>Ue));return{useLoginRegPopup85:e}}),void 0),{openLoginPopup:t}=e();return t()}if(e.isPopup)return a.push({name:s.GameList,params:{id:c||i}});await u(e.gameId??'','-1'===e.gameCode?void 0:e.gameCode,(async t=>{const n=d(t);if(!t)return a.push({name:s.GameList,params:{id:c||i}});b(m.value?n:t,Number(e.openWay))}));break;case D.Link:case D.NoChooseLink:switch(l){case I.CustomLink:case I.NoChooseLink:k(g,h);break;case I.UserWallet:case I.WalletDeposit:k(s.WalletDeposit,h);break;case I.AppDownload:k(t.config.appDownloadUrl,h);break;case I.ChatRoom:if(!t.isLogin){const{useLoginRegPopup85:e}=await f((async()=>{const{useLoginRegPopup85:e}=await Promise.resolve().then((()=>Ue));return{useLoginRegPopup85:e}}),void 0),{openLoginPopup:t}=e();return t()}a.push({name:s.Chat});break;case I.Service:w();break;case I.LotteryChangLong:k(s.LotteryChangLong,h);break;case I.UserPromote:const e=(0,(await f((async()=>{const{default:e}=await import('./index-CrWCx5FQ.js').then((e=>e.k));return{default:e}}),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))).default)();await e.getAgentApplyInfo(),e.agentApplyInfo.reviewStatus===O.Approved?k(s.UserPromote,h):k(s.UserApplyAgent,h);break;case I.OpenWeb:k(s.LotteryHall,h);break;case I.Yuebao:k(s.UserYuebao,h);break;case I.Promote:k(s.Promote,h);break;case I.LotteryBetHistoryWeek:k(s.LotteryBetHistoryWeek,h);break;case I.QQ:k(`mqqwpa://im/chat?chat_type=wpa&uin=${t.config.serviceQQ1}&version=1&src_type=web&web_src=oicqzone.com`,h);break;case I.Wechat:break;case I.Task:if(t.inSites('f170')){k(s.TaskLevel,h);break}k(s.Task,h);break;case I.UserMessage:k(s.UserMessage,h);break;case I.Sign:if(!t.isLogin){const{useLoginRegPopup85:e}=await f((async()=>{const{useLoginRegPopup85:e}=await Promise.resolve().then((()=>Ue));return{useLoginRegPopup85:e}}),void 0),{openLoginPopup:t}=e();return t()}if(t.user.info.isTest){le('\u8bd5\u73a9\u8d26\u53f7\u65e0\u8bbf\u95ee\u6743\u9650\uff0c\u8bf7\u5148\u6ce8\u518c');const{useLoginRegPopup85:e}=await f((async()=>{const{useLoginRegPopup85:e}=await Promise.resolve().then((()=>Ue));return{useLoginRegPopup85:e}}),void 0),{openRegPopup:t}=e();return t()}window.location.href='/html/qiandao/mobile.html';break;case I.UserFeedback:k(s.UserFeedback,h);break;case I.UserGuessing:k(s.UserGuessing,h);break;case I.UserWinApply:k(s.UserWinApply,h);break;case I.LotteryList:k(s.GameHall,h);break;case I.User:k(s.User,h);break;case I.WalletWithdraw:k(s.WalletWithdraw,h);break;case I.LotteryRecord:return a.push({name:s.LotteryHistory,params:{gameId:N}});case I.CoinLog:k(s.WalletTransferRecords,h);break;case I.PC:k('/?from=m',h);break;case I.Home:k(s.Home,h);break;case I.Logout:n();break;case I.BetRecord:k(s.LotteryBetHistoryWeek,h);break;case I.LotteryRule:case I.RedBagRecord:case I.RedBagBombRecord:break;case I.UserPassword:k(s.UserSetPasswordLogin,h);break;case I.WithdrawPassword:k(s.UserSetPasswordFund,h);break;case I.RedBagActivity:break;case I.Guest:o();break;case I.Real:case I.Chess:case I.Game:case I.Sport:case I.Esport:a.push(g);break;case I.Lottery:k(s.LotteryList,h);break;case I.Fish:a.push(g);break;case I.Turntable:case I.Golden_egg:case I.Scratch:break;case I.LotteryTrend:return a.push({name:s.LotteryTrend,params:{gameId:N}});case I.LotteryRoad:k(s.LotteryRoad,h);break;case I.LhFollowing:k(s.LhFollowing,h);break;case I.LhReplies:k(s.LhReplies,h);break;case I.LhFans:k(s.LhFans,h);break;case I.UserQiangDan:k(s.UserQiangDan,h);break;case I.CommunityAssistant:a.push({name:s.LhHelper});break;case I.SpecifyRedEnvelope:a.push({name:s.UserSpecifyRedEnvelope});break;case I.Conversion:k(s.UserTransfer,h);break;case I.ActivityHall:k(s.ActivityHall,h);break;case I.Ranking:await v('/ranking')&&k(s.Ranking,h);break;default:k(g,h)}break;case D.ChatRoom:if(!t.isLogin){const{useLoginRegPopup85:e}=await f((async()=>{const{useLoginRegPopup85:e}=await Promise.resolve().then((()=>Ue));return{useLoginRegPopup85:e}}),void 0),{openLoginPopup:t}=e();return t()}a.push({name:s.Chat});break;case D.Data:break;case D.BetHistory:a.push({name:s.LotteryBetHistoryWeek});break;case D.GameHall:k(s.LotteryList,h);break;case D.Information:g&&k(g,h);case D.BlockChain:}},k=(e,t)=>{let n='';if('string'==typeof e&&e){const i=/^https?:\/\//.test(e),r=e.startsWith('mqqwpa'),c=e.startsWith('/?'),l=/^\/m\/#\/.+/.test(e);
2if(i||r||c)n=e;else{if(l){const o=e.replace(/^\/m\/#\/?/,''),i=C(e),r=o.split('?')[0];return'lh/forum2'===r&&i.alias||'lottery/forum'===r&&i.alias?a.push({name:s.LhForum2,query:{alias:i.alias}}):'lh/forum'===r&&i.alias?a.push({name:s.LhForum,query:{alias:i.alias}}):(n=e,t==U.Blank?window.open(n):window.location.href=n)}if(e.includes('#')){const t=M(e.replace(/.*#/,'')),n=a.getRoutes().find((e=>e.path==='/'+t)),o=null==n?void 0:n.name;return o?a.push({name:o}):window.location.href=e}try{n=a.resolve({name:e}).href}catch(o){return}}}n&&(t==U.Blank?window.open(n,'_blank'):window.location.href=n)},S=async e=>{if(e.read_pri===G.Member&&!t.isMember){const{useLoginRegPopup85:e}=await f((async()=>{const{useLoginRegPopup85:e}=await Promise.resolve().then((()=>Ue));return{useLoginRegPopup85:e}}),void 0),{openLoginPopup:t}=e();return t()}return e.appLink&&'0'!==e.appLink?window.open(B(e.appLink)?e.appLink:`${t.config.host}${e.appLink}`,e.openWay===U.Blank?'_blank':'_self'):e.alias===r.yellowCale?a.push({name:s.LhCalendar}):e.alias===r.zxkf?window.open(_(t.config.zxkfUrl,t.token),t.inSites('f195')?'_self':'_blank'):e.alias===r.appdl?window.open(t.config.appDownloadUrl):e.alias===r.lxb?a.push({name:s.UserYuebao}):e.alias===r.clzs?a.push({name:s.LotteryChangLong}):e.alias===r.qmjc?a.push({name:s.UserGuessing}):e.alias===r.cxzs?a.push({name:s.LhHelper}):e.alias===r.rwzx?a.push({name:s.TaskLobby}):'forum2'===e.model?a.push({name:s.LhForum2,query:{alias:e.alias}}):e.alias===r.forum||e.alias===r.gourmet||e.model===r.forum&&e.alias!==r.sixpic||e.alias===r.rule||e.alias===r.mystery?a.push({name:s.LhForum,query:{alias:e.alias}}):e.model===r.sixpic||e.alias===r.sixpic?a.push({name:s.LhGallery,query:{alias:e.alias}}):e.model===r.humorGuess||e.link.includes(r.rundog)||e.alias===r.humorGuess||e.alias===r.rundog||e.alias===r.fourUnlike||e.model===r.rundog?a.push({name:s.LhPostDetail,query:{from:'gallery',type:e.id,alias:e.model===r.humorGuess?r.humorGuess:e.link.includes(r.rundog)?r.rundog:e.alias}}):void 0};return{pushHelper:L,pushHelper83:async e=>{const{id:t,gameId:n,subId:o,url:i,seriesId:r,openWay:c,gameCode:l}=e,u=d(null==e?void 0:e.url);if(r===D.Lottery)return i?void b(m.value?u:i):a.push({name:s.LotteryBet,params:{gameId:n},replace:!0})},onClickPromote:async e=>{const{linkCategory:i,linkPosition:r,linkUrl:c}=e;if(1===i&&0!==r)return a.push({name:s.LotteryBet,params:{gameId:r},replace:!0});if(7!==i||0===r)c&&window.open(c);else{const e=U.Self;switch(r+''){case I.UserWallet:case I.WalletDeposit:k(s.WalletDeposit,e);break;case I.AppDownload:k(t.config.appDownloadUrl,e);break;case I.ChatRoom:if(!t.isLogin){const{useLoginRegPopup85:e}=await f((async()=>{const{useLoginRegPopup85:e}=await Promise.resolve().then((()=>Ue));return{useLoginRegPopup85:e}}),void 0),{openLoginPopup:t}=e();return t()}a.push({name:s.Chat});break;case I.Service:w();break;case I.LotteryChangLong:k(s.LotteryChangLong,e);break;case I.UserPromote:const i=(0,(await f((async()=>{const{default:e}=await import('./index-CrWCx5FQ.js').then((e=>e.k));return{default:e}}),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))).default)();await i.getAgentApplyInfo(),i.agentApplyInfo.reviewStatus===O.Approved?k(s.UserPromote,e):k(s.UserApplyAgent,e);break;case I.OpenWeb:k(s.LotteryHall,e);break;case I.Yuebao:k(s.UserYuebao,e);break;case I.Promote:k(s.Promote,e);break;case I.LotteryBetHistoryWeek:k(s.LotteryBetHistoryWeek,e);break;case I.QQ:k(`mqqwpa://im/chat?chat_type=wpa&uin=${t.config.serviceQQ1}&version=1&src_type=web&web_src=oicqzone.com`,e);break;case I.Wechat:break;case I.Task:if(t.inSites('f170')){k(s.TaskLevel,e);break}k(s.Task,e);break;case I.UserMessage:k(s.UserMessage,e);break;case I.Sign:break;case I.UserFeedback:k(s.UserFeedback,e);break;case I.UserGuessing:k(s.UserGuessing,e);break;case I.UserWinApply:k(s.UserWinApply,e);break;case I.LotteryList:k(s.GameHall,e);break;case I.User:k(s.User,e);break;case I.WalletWithdraw:k(s.WalletWithdraw,e);break;case I.LotteryRecord:return a.push({name:s.LotteryHistory,params:{gameId:N}});case I.CoinLog:k(s.WalletTransferRecords,e);break;case I.PC:k('/?from=m',e);break;case I.Home:k(s.Home,e);break;case I.Logout:n();break;case I.BetRecord:k(s.LotteryBetHistoryWeek,e);break;case I.LotteryRule:case I.RedBagRecord:case I.RedBagBombRecord:break;case I.UserPassword:k(s.UserSetPasswordLogin,e);break;case I.WithdrawPassword:k(s.UserSetPasswordFund,e);break;case I.RedBagActivity:break;case I.Guest:o();break;case I.Real:case I.Chess:case I.Game:case I.Sport:case I.Esport:break;case I.Lottery:k(s.LotteryList,e);break;case I.Fish:case I.Turntable:case I.Golden_egg:case I.Scratch:break;case I.LotteryTrend:return a.push({name:s.LotteryTrend,params:{gameId:N}});case I.LotteryRoad:k(s.LotteryRoad,e);break;case I.LhFollowing:k(s.LhFollowing,e);break;case I.LhReplies:k(s.LhReplies,e);break;case I.LhFans:k(s.LhFans,e);break;case I.UserQiangDan:k(s.UserQiangDan,e);break;case I.CommunityAssistant:a.push({name:s.LhHelper});break;case I.SpecifyRedEnvelope:break;case I.Conversion:k(s.UserTransfer,e);break;case I.Ranking:await v('/ranking')&&k(s.Ranking,e)}}},onClickBanner:e=>{const t={...e,id:null==e?void 0:e.id,gameId:null==e?void 0:e.linkPosition,subId:'7'===(null==e?void 0:e.linkCategory)||'0'===(null==e?void 0:e.linkCategory)?null==e?void 0:e.linkPosition:'',url:(null==e?void 0:e.url)||'',seriesId:null==e?void 0:e.linkCategory,openWay:(null==e?void 0:e.linkAction)||'0',gameCode:(null==e?void 0:e.gameCode)||'-1'};L(t)},userCenterItemHandler:async e=>{var n;let o='';const i={};switch(e.code){case x.WalletDeposit:o=s.WalletDeposit;break;case x.WalletWithdraw:o=s.WalletWithdraw;break;case x.BankAccount:o=s.UserBank;break;case x.Yuebao:o=s.UserYuebao;break;case x.Affiliate:o=t.userInfo.isAgent?s.UserPromote:s.UserApplyAgent;break;case x.LotteryBetHistory:o=s.LotteryBetHistoryWeek;break;case x.GamesHistory:o=s.GamesHistory,Object.assign(i,{category:h.real});break;case x.Transfer:o=s.UserTransfer;break;case x.UserMessage:o=s.UserMessage;break;case x.SecurityCenter:o=s.UserSetPasswordLogin;break;case x.Task:o=s.Task;break;case x.UserInfo:o=s.UserInfo;break;case x.Feedback:o=s.UserFeedback;break;case x.Service:(null==(n=t.config)?void 0:n.zxkfUrl)&&window.open(_(t.config.zxkfUrl,t.token),t.inSites('f195')?'_self':'_blank');break;case x.WinApply:o=s.UserWinApply;break;case x.ChangLong:o=s.LotteryChangLong;break;case x.Guessing:o=s.UserGuessing;break;case x.Trend:o=s.GameTrend,Object.assign(i,{id:'70'});break;case x.QQ:break;case x.OpenWeb:o=s.LotteryHall;break;case x.Unsettled:o=s.LotteryUnsettled;break;case x.GameHistory:o=s.GamesHistory,Object.assign(i,{category:h.game});break;case x.RealHistory:o=s.GamesHistory,Object.assign(i,{category:h.real});break;case x.ChessHistory:o=s.GamesHistory,Object.assign(i,{category:h.card});break;case x.FishHistory:o=s.GamesHistory,Object.assign(i,{category:h.fish});break;case x.EGameHistory:o=s.GamesHistory,Object.assign(i,{category:h.esport});break;case x.SportsHistory:o=s.GamesHistory,Object.assign(i,{category:h.sport});break;case x.UGHistory:break;case x.Settled:o=s.LotterySettled;break;case x.DepositHistory:o=s.WalletDepositRecords;break;case x.WithdrawHistory:o=s.WalletWithdrawRecords;break;case x.CoinLog:o=s.WalletTransferRecords;break;case x.Promote:o=s.Promote;break;case x.ChatRoom:o=s.Chat;break;case x.LhFollowing:o=s.LhFollowing;break;case x.LhReplies:o=s.LhReplies;break;case x.LhFans:o=s.LhFans;break;case x.UserGrab:o=s.UserQiangDan;break;case x.RedBagActivity:const{openRedBagPopup:e}=await f((async()=>{const{openRedBagPopup:e}=await import('./use-red-bag-popup-CSHhP59W.js');return{openRedBagPopup:e}}),__vite__mapDeps([14,2,3,1,4,5,8,7,11,10,9,6]));return void(await e());case x.AutoBet:break;case x.YuebaoTransfer:o=s.UserYuebaoTrans;break;case x.ZaloService:break;case x.TaskExchange:o=s.TaskExchange;break;case x.RedBagCenter:o=s.RedPacket;break;case x.ActivityHall:o=s.ActivityHall}o&&a.push({name:o,params:i})},onClickTabBarItem:async e=>{var n,o,r;
2const u=(e,t,n)=>{var o;const i=F(e);if(i===s.Root)return;const r=null==(o=a.resolve({name:F(e),params:t}))?void 0:o.href;n===U.Blank?window.open(r):a.push({name:i,params:t})};if(e.path===H.RankActivity){if(!(await v('/ranking')))return;return u(e.path,void 0,e.openWay)}if(e.path===H.LotteryHall||e.path===H.ActivityHall||e.path===H.NewActivityHall||e.path===H.Promote||e.path===H.Activity)return u(e.path,void 0,e.openWay);if(e.url){const t=window.location.origin,a=/^https?:\/\//.test(e.url)?e.url:t+(e.url.startsWith('/')?e.url:'/'+e.url);return e.openWay===U.Blank?window.open(a):window.location.href=a}if('/home'!==e.path&&'object'==typeof e.setting&&(null==(o=null==(n=e.setting)?void 0:n.items)?void 0:o.length)>0)return a.push({name:s.Custom,params:{path:e.path.startsWith('/')?e.path.slice(1):e.path}});if(e.path.includes(H.GameList)){if(!t.isLogin){const{useLoginRegPopup85:t,getLoginRegPopup85State:n}=await f((async()=>{const{useLoginRegPopup85:e,getLoginRegPopup85State:t}=await Promise.resolve().then((()=>Ue));return{useLoginRegPopup85:e,getLoginRegPopup85State:t}}),void 0),{openLoginPopup:o}=t(),i=n(),r=a.resolve(e.path).params.id;return i.pendingRoute.value=a.resolve({name:s.GameList,params:{id:r}}).fullPath,o()}const n=a.resolve(e.path).params.id;return a.push({name:s.GameList,params:{id:n}})}switch(e.path){case H.Message:case H.LotteryList:case H.GameHall:case H.ChatRoomList:case H.ChangLong:case H.Promote:case H.Activity:case H.Conversion:case H.SecurityCenter:case H.Funds:case H.WinApply:case H.Yuebao:case H.Sign:case H.Banks:case H.Referrer:case H.Unsettled:case H.Community:case H.LhTuku:case H.Video:case H.ActivityHall:u(e.path,void 0,e.o
2penWay);break;case H.LotteryRecord:u(e.path,{gameId:N},e.openWay);break;case H.Zrsx:u(H.Zrsx,{gameCenterCategory:W.zrsx},e.openWay);break;case H.Qpdz:u(H.Qpdz,{gameCenterCategory:W.qpdz},e.openWay);break;case H.CatchFish:u(H.CatchFish,{gameCenterCategory:W.catchfish},e.openWay);break;case H.EGame:u(H.EGame,{gameCenterCategory:W.eGame},e.openWay);break;case H.Chess:u(H.Chess,{gameCenterCategory:W.chess},e.openWay);break;case H.ESport:u(H.ESport,{gameCenterCategory:W.esport},e.openWay);break;case H.DownloadAPP:(null==(r=t.config)?void 0:r.appDownloadUrl)&&window.open(t.config.appDownloadUrl);break;case H.CustomerService:w();break;case H.ExpertPlan:await c('1'),i||le(l.global.t('app.ioso808','\u8ddf\u5355\u8ba1\u5212\u672a\u5f00\u542f'));break;default:u(e.path,void 0,e.openWay)}},customerServicePopupVisible:Ye,downloadAppPopupVisible:Ve,openCustomerService:w,onSelectLhcCategoryItem:S,copyText:async(e,t)=>{if(e)try{await y(e),le(t||l.global.t('app.copy.successful','\u590d\u5236\u6210\u529f'))}catch{}},openWindow:b,openOpenWeb:()=>{const e=window.location.origin,t=encodeURIComponent(`${e}/m/#/home`);b(`${e}/open_prize/index.php?returnUrl=${t}`,0)},downloadApp:()=>{if(g.value){if(!g.value.startsWith('http'))return le(`\u9519\u8bef\u7684\u4e0b\u8f7d\u94fe\u63a5: ${g.value}`);b(g.value)}}}};export{Qe as a,Ee as b,Oe as c,Me as d,he as e,ze as f,_e as g,Fe as h,xe as i,Ue as j,$e as p,Pe as s,qe as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.