@gkits/collect 0.0.26 → 0.0.28
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.
|
@@ -5,6 +5,9 @@ export declare class HiCollectConflate extends HIElement {
|
|
|
5
5
|
video: HTMLVideoElement;
|
|
6
6
|
contentWrap: HTMLDivElement;
|
|
7
7
|
isCoupon: boolean;
|
|
8
|
+
prizeName: string;
|
|
9
|
+
prizeQuota: string;
|
|
10
|
+
prizeImg: string;
|
|
8
11
|
aniImg: HTMLImageElement;
|
|
9
12
|
ImgList: Array<any>;
|
|
10
13
|
isClick: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{css as t,attr as e,customElement as n,HIElement as o,html as r,ref as i,observable as a,nullableNumberConverter as s,repeat as c,when as l}from"hi-element";function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var d,p={exports:{}};(d=p).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},d.exports.__esModule=!0,d.exports.default=d.exports;var h=u(p.exports),f={exports:{}},v={exports:{}},g={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(g);var m=u(g.exports),y={exports:{}};!function(t){var e=g.exports.default;t.exports=function(t,n){if("object"!=e(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,n||"default");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(y),function(t){var e=g.exports.default,n=y.exports;t.exports=function(t){var o=n(t,"string");return"symbol"==e(o)?o:o+""},t.exports.__esModule=!0,t.exports.default=t.exports}(v),function(t){var e=v.exports;function n(t,n){for(var o=0;o<n.length;o++){var r=n[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(f);var x=u(f.exports),b={exports:{}},w={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(w),function(t){var e=g.exports.default,n=w.exports;t.exports=function(t,o){if(o&&("object"==e(o)||"function"==typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(b);var k=u(b.exports),S={exports:{}};!function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(S);var C=u(S.exports),O={exports:{}},_={exports:{}};!function(t){var e=S.exports;t.exports=function(t,n){for(;!{}.hasOwnProperty.call(t,n)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}(_),function(t){var e=_.exports;function n(){return t.exports=n="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,n,o){var r=e(t,n);if(r){var i=Object.getOwnPropertyDescriptor(r,n);return i.get?i.get.call(arguments.length<3?t:o):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports,n.apply(null,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(O);var M=u(O.exports),L={exports:{}},E={exports:{}};!function(t){function e(n,o){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(E),function(t){var e=E.exports;t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}(L);var I=u(L.exports),B={exports:{}};!function(t){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.__esModule=!0,t.exports.default=t.exports}(B);var A=u(B.exports);function P(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":m(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}"function"==typeof SuppressedError&&SuppressedError;var j={exports:{}};!function(t){var e=v.exports;t.exports=function(t,n,o){return(n=e(n))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t},t.exports.__esModule=!0,t.exports.default=t.exports}(j);var z=u(j.exports),T={exports:{}},R={exports:{}},F={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o},t.exports.__esModule=!0,t.exports.default=t.exports}(F),function(t){var e=F.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(R);var D={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(D);var N={exports:{}};!function(t){var e=F.exports;t.exports=function(t,n){if(t){if("string"==typeof t)return e(t,n);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(t,n):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(N);var W={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(W),function(t){var e=R.exports,n=D.exports,o=N.exports,r=W.exports;t.exports=function(t){return e(t)||n(t)||o(t)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(T);var H=u(T.exports),V={exports:{}},G={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(G);var Y={exports:{}};!function(t){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==e);c=!0);}catch(t){l=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}},t.exports.__esModule=!0,t.exports.default=t.exports}(Y);var $={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}($),function(t){var e=G.exports,n=Y.exports,o=N.exports,r=$.exports;t.exports=function(t,i){return e(t)||n(t,i)||o(t,i)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(V);var U=u(V.exports),X=Math.min,Z=Math.max,J=Math.floor,q=Math.round;function K(t,e,n){e/=100,n/=100;var o=J(t=t/360*6),r=t-o,i=n*(1-e),a=n*(1-r*e),s=n*(1-(1-r)*e),c=o%6;return[255*[n,a,i,i,s,n][c],255*[s,n,n,a,i,i][c],255*[i,i,s,n,n,a][c]]}function Q(t,e,n){var o,r,i=X(t/=255,e/=255,n/=255),a=Z(t,e,n),s=a-i;if(0===s)o=r=0;else{r=s/a;var c=((a-t)/6+s/2)/s,l=((a-e)/6+s/2)/s,u=((a-n)/6+s/2)/s;t===a?o=u-l:e===a?o=1/3+c-u:n===a&&(o=2/3+l-c),o<0?o+=1:o>1&&(o-=1)}return[360*o,100*r,100*a]}function tt(t,e,n,o){e/=100,n/=100;var r=255*(1-X(1,(t/=100)*(1-(o/=100))+o)),i=255*(1-X(1,e*(1-o)+o)),a=255*(1-X(1,n*(1-o)+o));return H(Q(r,i,a))}function et(t,e,n){return e/=100,[t,(n/=100)+(e*=n<.5?n:1-n)?2*e/(n+e)*100:0,100*(n+e)]}function nt(t){return Q.apply(void 0,H(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function ot(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;var e,n={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=function(t){return t.map((function(t){return/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0}))};t:for(var r in n)if(e=n[r].exec(t))switch(r){case"cmyk":var i=o(e),a=U(i,5),s=a[1],c=a[2],l=a[3],u=a[4];if(s>100||c>100||l>100||u>100)break t;return{values:tt(s,c,l,u),type:r};case"rgba":var d=o(e),p=U(d,7),h=p[3],f=p[4],v=p[5],g=p[6];if(h>255||f>255||v>255||g<0||g>1)break t;return{values:[].concat(H(Q(h,f,v)),[g]),a:g,type:r};case"hexa":var m=U(e,2)[1];4!==m.length&&3!==m.length||(m=m.split("").map((function(t){return t+t})).join(""));var y=m.substring(0,6),x=m.substring(6);return x=x?parseInt(x,16)/255:void 0,{values:[].concat(H(nt(y)),[x]),a:x,type:r};case"hsla":var b=o(e),w=U(b,7),k=w[3],S=w[4],C=w[5],O=w[6];if(k>360||S>100||C>100||O<0||O>1)break t;return{values:[].concat(H(et(k,S,C)),[O]),a:O,type:r};case"hsva":var _=o(e),M=U(_,7),L=M[3],E=M[4],I=M[5],B=M[6];if(L>360||E>100||I>100||B<0||B>1)break t;return{values:[L,E,I,B],a:B,type:r}}return{values:null,type:null}}function rt(){var t=function(t,e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e(~n?t.map((function(t){return Number(t.toFixed(n))})):t)}},e={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var n=[e.h,e.s,e.v,e.a];return n.toString=t(n,(function(t){return"hsva(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toHSLA:function(){var n=[].concat(H(function(t,e,n){var o=(2-(e/=100))*(n/=100)/2;return 0!==o&&(e=1===o?0:o<.5?e*n/(2*o):e*n/(2-2*o)),[t,100*e,100*o]}(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"hsla(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toRGBA:function(){var n=[].concat(H(K(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", ").concat(e.a,")")})),n},toCMYK:function(){var n=function(t,e,n){var o,r=K(t,e,n),i=r[0]/255,a=r[1]/255,s=r[2]/255;return[100*(1===(o=X(1-i,1-a,1-s))?0:(1-i-o)/(1-o)),100*(1===o?0:(1-a-o)/(1-o)),100*(1===o?0:(1-s-o)/(1-o)),100*o]}(e.h,e.s,e.v);return n.toString=t(n,(function(t){return"cmyk(".concat(t[0],"%, ").concat(t[1],"%, ").concat(t[2],"%, ").concat(t[3],"%)")})),n},toHEXA:function(){var t=function(t,e,n){return K(t,e,n).map((function(t){return q(t).toString(16).padStart(2,"0")}))}(e.h,e.s,e.v),n=e.a>=1?"":Number((255*e.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return n&&t.push(n),t.toString=function(){return"#".concat(t.join("").toUpperCase())},t},clone:function(){return rt(e.h,e.s,e.v,e.a)}};return e}function it(t,e){var n=ot(t),o=rt.apply(void 0,H(n.values)).toRGBA();return"rgba(".concat(o[0].toFixed(0),",").concat(o[1].toFixed(0),",").concat(o[2].toFixed(0),",").concat(Number(o[3].toFixed(2))*e,")")}var at={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},st=function(t){return t.trim().toLowerCase().replace(t[0],t[0].toUpperCase())},ct=function(t){return z(z(z(z({},"--".concat(t,"Color"),"var(--hi".concat(st(t),"Color,").concat(at[t],")")),"--".concat(t,"Color-hover"),"var(--hi".concat(st(t),"Color-hover,").concat(it(at[t],.6),")")),"--".concat(t,"Color-active"),"var(--hi".concat(st(t),"Color-active,").concat(it(at[t],.4),")")),"--".concat(t,"Color-outline"),"var(--hi".concat(st(t),"Color-outline,").concat(it(at[t],.15),")"))},lt=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":"var(--hiThemeColor,".concat(at.primary,")"),"--themeShadow":"var(--hiThemeShadow, ".concat(it(at.primary,.25),")"),"--themeBackground":"var(--hiThemeBackground,".concat(at.primary,")"),"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":"var(--hiLinkFontColor,".concat(at.primary,")"),"--fontSize14":"var(--hiFontSize14,14px)","--fontSize16":"var(--hiFontSize16,16px)","--fontSize20":"var(--hiFontSize20,20px)","--borderColor":"var(--hiBorderColor, rgba(102, 102, 102, 0.3))","--borderRadius":"var(--hiBorderRadius,4px)","--colorWhite":"#fff","--colorGray1":"#fafafa","--colorGray2":"#eee","--colorGray6":"#757575","--colorGray7":"#585858","--colorGray8":"#333","--colorNeutral02":"rgba(0,0,0,0.02)","--colorNeutral05":"rgba(0,0,0,0.05)","--colorNeutral1":"rgba(0,0,0,0.1)","--colorNeutral2":"rgba(0,0,0,0.2)","--colorNeutral3":"rgba(0,0,0,0.3)","--colorNeutral4":"rgba(0,0,0,0.4)","--colorNeutral5":"rgba(0,0,0,0.5)","--colorNeutral6":"rgba(0,0,0,0.65)","--colorNeutral7":"rgba(0,0,0,0.75)","--colorNeutral8":"rgba(0,0,0,0.85)","--colorBlack":"#000"},ct("primary")),ct("success")),ct("error")),ct("warning")),ct("info")),ut=function(t){return Object.prototype.toString.call(t)},dt=function(t){return"[object Object]"==ut(t)},pt=function(t){return"[object Array]"==ut(t)};function ht(t){var e={Cursor:"cursor:pointer",PoiNo:"pointer-events:none",PoiAll:"pointer-events:all",Opa0:"opacity:0",Opa1:"opacity:1",Inset:"inset:0",Content:"content:''",PosR:"position:relative",PosA:"position:absolute",PosF:"position:fixed",OH:"overflow:hidden",OA:"overflow:auto",VisHi:"visibility:hidden",VisVi:"visibility:visible",DisBlock:"display:block",DisInBlock:"display:inline-block",DisIn:"display:inline",DisFlex:"display:flex",DisGrid:"display:grid",DisNo:"display:none",DisNoIm:"display:none!important",WS:"white-space:nowrap",WW:"word-wrap:break-word;word-break:normal",WB:"word-break:break-all",TEll:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis",BCover:"background-color:#eee;background-position:center;background-repeat:no-repeat;background-size:cover",TL:"text-align:left",TR:"text-align:right",TC:"text-align:center"},n="\n :host{white-space:normal;line-height:18px;text-align:initial;}\n h1,h2,h3,h4,h5,h6,hr,p,dl,dt,dd,ul,ol,li,form,legend,button,input,textarea,th,td{margin:0;padding:0;}\n ul,ol{list-style:none;}\n table{border-collapse:collapse;border-spacing:0;}\n h1,h2,h3,h4,h5,h6,button,input,select,textarea{font-size:100%;} \n img{border:0;margin:0;}\n *{\n -webkit-text-size-adjust:none;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n -webkit-user-drag: none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n }\n *,*:before,*:after{".concat("\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n -ms-box-sizing:border-box;\n box-sizing:border-box;\n ","}\n [tabindex=\"-1\"]:focus{outline:none!important}\n :host([disabled]),[disabled],.disabled{opacity:.65;pointer-events:none;cursor:not-allowed!important;}\n .Entry{transition:all 0.3s ease 0s}\n .Entry:focus{box-shadow:0 0 0 3px var(--themeShadow);outline:0;}\n .Entry:focus,.Entry:hover{border-color:var(--themeColor)!important;border-right-width:1px;}\n .Track:before{content:'';position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:rgb(0 255 3 / 32%);z-index:1;}\n "),o="";if(t&&pt(t))for(var r=0;r<t.length;r++){var i=t[r];o+="".concat(e[i],";")}else for(var a in o+=n,e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=e[a];o+=".".concat(a,"{").concat(s,"}")}return o}var ft=function(){function t(){if(h(this,t),this.config={theme:lt,button:{radius:6,size:"default"},message:{top:10,radius:6,duration:2e3},notify:{radius:6,duration:5e3},modal:{radius:8},toast:{radius:8,duration:2e3},popup:{radius:12,width:630,height:630},float:{margin:12},captcha:{radius:8,margin:24},space:{gutter:12},actions:{radius:12,margin:16}},window.HiServe=window.HiServe||{},!window.HiServe.IS_READY)if(window.HiServe.IS_READY=!0,function(){if(!window.sessionStorage.getItem("HI_KITS_HELLO_CONSOLE")){var t="✰ hi-kits ✰",e="\n\ndocs: ".concat(atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA=="),"/hidoc/index.html \n\ngit: https://github.com/hi-kits/hi-kit\n\n如有任何意见和建议可在网站留言\n\n"),n="padding:5px 0",o="background:#0CF;"+n,r="background:#111;font-size:14px;color:#FFF;"+n,i="background:#CFF;"+n;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var a=["%c %c "+t+" %c %c"+e+"%c %c",o,r,o,i,o,"color:#000"];window.console.log.apply(console,a)}else window.console&&window.console.log(t+e);window.sessionStorage.setItem("HI_KITS_HELLO_CONSOLE","hello")}}(),window.localStorage.getItem("HI_ICONS"))window.HiServe.icons=JSON.parse(window.localStorage.getItem("HI_ICONS"));else{var e="https:"+atob("Ly96anJzLmhhaWVyLm5ldA==");(window.location.href.indexOf(atob("aHcuaGFpZXIubmV0L3BvcnRhbA=="))>-1||window.location.href.indexOf(atob("aHdvcmstaW50ZXJuYWwuaGFpZXIubmV0L3BvcnRhbA=="))>-1||window.location.href.indexOf(atob("aHdvcmsuaGFpZXIubmV0L3BvcnRhbA=="))>-1)&&(e=window.location.href.startsWith("https://p")||window.location.href.startsWith("http://p")?atob("aHR0cHM6Ly9wLWFwaS1jbi1zcDAwMDY3NS1pLmh3b3JrLmhhaWVyLm5ldA=="):atob("aHR0cHM6Ly9hcGktY24tc3AwMDA2NzUtaS5od29yay5oYWllci5uZXQ=")),n=[e+"/download/hikits/icons.js"],o=function(){window.HiServe.icons=window.Hi_Icons,window.localStorage.setItem("HI_ICONS",JSON.stringify(window.Hi_Icons))},r=document.getElementsByTagName("head")[0],Promise.all(n.map((function(t){return new Promise((function(e){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=t,n.addEventListener("load",(function(t){return e()}),!1),r.appendChild(n)}))}))).then(o)}var n,o,r}return x(t,[{key:"install",value:function(t){}},{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config;for(var n in t){var o=t[n];dt(o)?this.config[n]&&this.init(o,e[n]):e[n]=o}}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}])}();function vt(){var t="",e=ft.case.config.theme;for(var n in e)n&&(t+="".concat(n,":").concat(e[n],";"));return":host,:root{".concat(t,"} ").concat(".Visibility{visibility:hidden}"," ").concat(ht())}var gt,mt={path:atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA=="),pathys:atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA=="),coupon:"/download/img/collect/certificate.png",card1:"/download/img/collect/card01.png",card2:"/download/img/collect/card02.png",card3:"/download/img/collect/card03.png",card4:"/download/img/collect/card04.png",card5:"/download/img/collect/card05.png",card6:"/download/img/collect/card06.png"},yt=t(gt||(gt=A(["\n","\n:host{\ntext-align:center;color:#fff;\nposition:fixed;left:-100%;top:0;width:100vw;height:100vh;\n}\n:host([show]){display:block;z-index:3000;top:0;left:0;}\n.VideoWrap{position:absolute;top:0;left:0; width:720px;height:1560px;display:inline-block;\ntransform-origin:0 0;transform: translate3d(0, 0, 0);\n}\n.VideoWrap img{width:100%;height:100%;position:absolute;top:0;left:0;}\n.VideoWrap .Svga {width:100vw;height:100vh;}\n.ConflateWrap {position:absolute;top:0;left:0;width:100vw;height:100vh;display:block;z-index:3200;background:rgba(0, 0, 0, 0.4);}\n.ConflateWrap .Content{position:relative; z-index:6;height:100%;\n padding-top: 20vw;text-align:center;\n}\n\n\n.ConflateWrap .Bg{position:absolute;top:0;left:0;width:100%;height:100%;\n background:url(","/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.ConflateWrap .Title img{\n height:17.0666666666vw\n}\n.ConflateWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.ConflateWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 3.2vw;\ncolor: #FFF1D8;\nline-height: 1.5;\nfont-weight: 400;\n}\n.Icon{display:flex;justify-content:space-around;position:absolute;width:100%;bottom:58vw;}\n.Icon span{display:none}\n.Icon span.Coupon{display:block}\n.Icon div{width:33.333333vw;text-align:center}\n.Icon div p{font-size:12px;}\n.Icon img{width:19.2vw}\n\n.Icon.Two{padding:0 10vw}\n.Button{position:absolute;width:100%;bottom:30vw;text-align:center}\n.Button img{height:20.26666666vw}\n\n.transit{opacity: 0;transition: opacity 1s ease-in-out;}\n.show.transit{opacity: 1;transition-delay: 1s;}\n\n@media screen and (max-height : 210vw) {\n .VideoWrap{margin-top:-5vw}\n .Icon{bottom:54vw;}\n .Button{bottom:25vw;}\n}\n@media screen and (max-height : 200vw) {\n .ConflateWrap .Title{margin-top:-5vw}\n .VideoWrap{margin-top:-10vw}\n .Icon{bottom:50vw;}\n .Button{bottom:22vw;}\n}\n@media screen and (max-height : 190vw) {\n .ConflateWrap .Title{margin-top:-10vw}\n .VideoWrap{margin-top:-15vw}\n .Icon{bottom:45vw;}\n .Button{bottom:20vw;}\n}\n@media screen and (max-height : 180vw) {\n .VideoWrap{margin-top:-18vw}\n .Button{bottom:18vw;}\n}\n@media screen and (max-height : 170vw) {\n .ConflateWrap .Title{margin-top:-16vw}\n .VideoWrap{margin-top:-20vw}\n .Icon{bottom:38vw;}\n .Button{bottom:15vw;}\n}\n"])),vt(),mt.path);function xt(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==("undefined"==typeof Reflect?"undefined":m(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}var bt=function(t){return Object.prototype.toString.call(t)},wt=function(t){return"[object Object]"==bt(t)},kt=function(t){return"[object Array]"==bt(t)};function St(t){if("string"==typeof t)return String(t).replace(/(^\s*)|(\s*$)/g,"").replace(/\u200B/g,"");if("[object Array]"===Object.prototype.toString.call(t))return t.forEach((function(t){t=St(t)})),t;if("[object Object]"!==Object.prototype.toString.call(t)||null==t)return t;for(var e in t)t[e]=St(t[e]);return t}function Ct(t){return function(e,n){if(wt(e))for(var o in e)Ot(t)(o,e[o]);"string"==typeof e&&(/:/g.test(e)?e.split(";").forEach((function(e){var n=(e=St(e)).split(":");Ot(t)(n[0],n[1])})):Ot(t)(e,n))}}function Ot(t){return function(e,n){if(t){if(void 0===n)return window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=n}}}var _t,Mt=function(){function t(){var e=this;h(this,t),"classList"in document.documentElement?(this.has=function(t,e){return t.classList.contains(e)},this.add=function(t,e){for(var n=e.split(" "),o=0;o<n.length;o++)void 0!==t.classList&&t.classList.add(n[o])},this.remove=function(t,e){if(t)for(var n=e.split(" "),o=0;o<n.length;o++)void 0!==t.classList&&t.classList.remove(n[o])}):(this.has=function(t,n){return e.classReg(n).test(t.className)},this.add=function(t,n){e.has(t,n)||(t.className=t.className+" "+n)},this.remove=function(t,n){t.className=t.className.replace(e.classReg(n)," ")})}return x(t,[{key:"classReg",value:function(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}},{key:"toggle",value:function(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}],[{key:"instance",get:function(){return this._instance||(this._instance=new t),this._instance}}])}(),Lt=function(t,e,n,o){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},Et=function(t,e,n,o){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null};function It(t,e,n){return e=C(e),k(t,Bt()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function Bt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Bt=function(){return!!t})()}var At=t(_t||(_t=A(['\n:host{\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n visibility:hidden;\n background: rgba(0,0,0,0.4);\n transition-duration: 0.3s;\n opacity: 0;\n z-index: 10; \n}\n:host([show]){\n visibility: visible;\n opacity: 1;\n}\n:host([class="Leave"]) {\n opacity: 0;\n transition: all 0.35s ease-out;\n}\n']))),Pt=function(){function t(){var e;return h(this,t),(e=It(this,t)).show=!1,e}return I(t,o),x(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?Mt.instance.add(this,"Leave"):Mt.instance.remove(this,"Leave")}},{key:"connectedCallback",value:function(){var e=this;(function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r})(t,"connectedCallback",this,3)([]),this.background&&Ct(this)("background",this.background),Lt(this,"transitionend",(function(){e.transitionendChange()}))}},{key:"transitionendChange",value:function(){this.show||this.$emit("change")}}])}();xt([e],Pt.prototype,"background",void 0),xt([e({mode:"boolean"})],Pt.prototype,"show",void 0),Pt=xt([n({name:"h-mask",styles:At,shadowOptions:{mode:"closed"}})],Pt);var jt=new(function(){return x((function t(){var e=this;if(h(this,t),this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=function(){void 0!==e.previousBodyPaddingRight&&(document.body.style.paddingRight=e.previousBodyPaddingRight,e.previousBodyPaddingRight=void 0),void 0!==e.previousBodyOverflowSetting&&(document.body.style.overflow=e.previousBodyOverflowSetting,document.documentElement.style.overflow=e.previousBodyOverflowSetting,e.previousBodyOverflowSetting=void 0)},this.handleScroll=function(t,n){var o=t.targetTouches[0].clientY-e.initialClientY;return!e.allowTouchMove(t.target)&&(n&&0===n.scrollTop&&o>0||e.isTargetElementTotallyScrolled(n)&&o<0?e.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){var n={get passive(){this.hasPassiveEvents=!0}};Lt(window,"testPassive",null,n),Et(window,"testPassive",null,n)}}),[{key:"isTargetElementTotallyScrolled",value:function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}},{key:"allowTouchMove",value:function(t){this.locks.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))}},{key:"preventDefault",value:function(t){var e=t||window.event;return!!this.allowTouchMove(e.target)||e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1)}},{key:"setOverflowHidden",value:function(t){if(void 0===this.previousBodyPaddingRight){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;e&&n>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}},{key:"disable",value:function(t,e){var n=this;if(t){if(!this.locks.some((function(e){return e.targetElement===t}))){var o={targetElement:t,options:e||{}};this.locks=[].concat(H(this.locks),[o]),this.isIosDevice?(t.ontouchstart=function(t){1===t.targetTouches.length&&(n.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&n.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}},{key:"clearAll",value:function(){this.isIosDevice?(this.locks.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(Et(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}},{key:"enable",value:function(t){t?(this.locks=this.locks.filter((function(e){return e.targetElement!==t})),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(Et(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}])}());function zt(t,e,n){var o=n.value;return n.value=function(t,e){return null===e||!1===e?jt.enable(document.body):jt.disable(document.body),o.apply(this,arguments)},n}function Tt(t){return t?function(e,n){if(1===arguments.length&&"string"==typeof e)t.setAttribute(e,"");else if(2===arguments.length)t.setAttribute(e,n);else for(var o in e)t[o]=e[o],t.setAttribute(o,e[o])}:function(){}}function Rt(t){return t?function(e){if("string"==typeof e)t.removeAttribute(e);else for(var n=0;n<e.length;n++){var o=e[n];t.removeAttribute(o)}}:function(){}}var Ft=Math.min,Dt=Math.max,Nt=Math.floor,Wt=Math.round;function Ht(t,e,n){e/=100,n/=100;var o=Nt(t=t/360*6),r=t-o,i=n*(1-e),a=n*(1-r*e),s=n*(1-(1-r)*e),c=o%6;return[255*[n,a,i,i,s,n][c],255*[s,n,n,a,i,i][c],255*[i,i,s,n,n,a][c]]}function Vt(t,e,n){var o,r,i=Ft(t/=255,e/=255,n/=255),a=Dt(t,e,n),s=a-i;if(0===s)o=r=0;else{r=s/a;var c=((a-t)/6+s/2)/s,l=((a-e)/6+s/2)/s,u=((a-n)/6+s/2)/s;t===a?o=u-l:e===a?o=1/3+c-u:n===a&&(o=2/3+l-c),o<0?o+=1:o>1&&(o-=1)}return[360*o,100*r,100*a]}function Gt(t,e,n,o){return e/=100,n/=100,H(Vt(255*(1-Ft(1,(t/=100)*(1-(o/=100))+o)),255*(1-Ft(1,e*(1-o)+o)),255*(1-Ft(1,n*(1-o)+o))))}function Yt(t,e,n){return e/=100,[t,(n/=100)+(e*=n<.5?n:1-n)?2*e/(n+e)*100:0,100*(n+e)]}function $t(t){return Vt.apply(void 0,H(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function Ut(){var t=function(t,e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e(~n?t.map((function(t){return Number(t.toFixed(n))})):t)}},e={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var n=[e.h,e.s,e.v,e.a];return n.toString=t(n,(function(t){return"hsva(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toHSLA:function(){var n=[].concat(H(function(t,e,n){var o=(2-(e/=100))*(n/=100)/2;return 0!==o&&(e=1===o?0:o<.5?e*n/(2*o):e*n/(2-2*o)),[t,100*e,100*o]}(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"hsla(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toRGBA:function(){var n=[].concat(H(Ht(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", ").concat(e.a,")")})),n},toCMYK:function(){var n=function(t,e,n){var o,r=Ht(t,e,n),i=r[0]/255,a=r[1]/255,s=r[2]/255;return[100*(1===(o=Ft(1-i,1-a,1-s))?0:(1-i-o)/(1-o)),100*(1===o?0:(1-a-o)/(1-o)),100*(1===o?0:(1-s-o)/(1-o)),100*o]}(e.h,e.s,e.v);return n.toString=t(n,(function(t){return"cmyk(".concat(t[0],"%, ").concat(t[1],"%, ").concat(t[2],"%, ").concat(t[3],"%)")})),n},toHEXA:function(){var t=function(t,e,n){return Ht(t,e,n).map((function(t){return Wt(t).toString(16).padStart(2,"0")}))}(e.h,e.s,e.v),n=e.a>=1?"":Number((255*e.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return n&&t.push(n),t.toString=function(){return"#".concat(t.join("").toUpperCase())},t},clone:function(){return Ut(e.h,e.s,e.v,e.a)}};return e}function Xt(t,e){var n=Ut.apply(void 0,H(function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;var e,n={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=function(t){return t.map((function(t){return/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0}))};t:for(var r in n)if(e=n[r].exec(t))switch(r){case"cmyk":var i=o(e),a=U(i,5),s=a[1],c=a[2],l=a[3],u=a[4];if(s>100||c>100||l>100||u>100)break t;return{values:Gt(s,c,l,u),type:r};case"rgba":var d=o(e),p=U(d,7),h=p[3],f=p[4],v=p[5],g=p[6];if(h>255||f>255||v>255||g<0||g>1)break t;return{values:[].concat(H(Vt(h,f,v)),[g]),a:g,type:r};case"hexa":var m=U(e,2)[1];4!==m.length&&3!==m.length||(m=m.split("").map((function(t){return t+t})).join(""));var y=m.substring(0,6),x=m.substring(6);return x=x?parseInt(x,16)/255:void 0,{values:[].concat(H($t(y)),[x]),a:x,type:r};case"hsla":var b=o(e),w=U(b,7),k=w[3],S=w[4],C=w[5],O=w[6];if(k>360||S>100||C>100||O<0||O>1)break t;return{values:[].concat(H(Yt(k,S,C)),[O]),a:O,type:r};case"hsva":var _=o(e),M=U(_,7),L=M[3],E=M[4],I=M[5],B=M[6];if(L>360||E>100||I>100||B<0||B>1)break t;return{values:[L,E,I,B],a:B,type:r}}return{values:null,type:null}}(t).values)).toRGBA();return"rgba(".concat(n[0].toFixed(0),",").concat(n[1].toFixed(0),",").concat(n[2].toFixed(0),",").concat(Number(n[3].toFixed(2))*e,")")}var Zt={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},Jt=function(t){return t.trim().toLowerCase().replace(t[0],t[0].toUpperCase())},qt=function(t){return z(z(z(z({},"--".concat(t,"Color"),"var(--hi".concat(Jt(t),"Color,").concat(Zt[t],")")),"--".concat(t,"Color-hover"),"var(--hi".concat(Jt(t),"Color-hover,").concat(Xt(Zt[t],.6),")")),"--".concat(t,"Color-active"),"var(--hi".concat(Jt(t),"Color-active,").concat(Xt(Zt[t],.4),")")),"--".concat(t,"Color-outline"),"var(--hi".concat(Jt(t),"Color-outline,").concat(Xt(Zt[t],.15),")"))},Kt=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":"var(--hiThemeColor,".concat(Zt.primary,")"),"--themeShadow":"var(--hiThemeShadow, ".concat(Xt(Zt.primary,.25),")"),"--themeBackground":"var(--hiThemeBackground,".concat(Zt.primary,")"),"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":"var(--hiLinkFontColor,".concat(Zt.primary,")"),"--fontSize14":"var(--hiFontSize14,14px)","--fontSize16":"var(--hiFontSize16,16px)","--fontSize20":"var(--hiFontSize20,20px)","--borderColor":"var(--hiBorderColor, rgba(102, 102, 102, 0.3))","--borderRadius":"var(--hiBorderRadius,4px)","--colorWhite":"#fff","--colorGray1":"#fafafa","--colorGray2":"#eee","--colorGray6":"#757575","--colorGray7":"#585858","--colorGray8":"#333","--colorNeutral02":"rgba(0,0,0,0.02)","--colorNeutral05":"rgba(0,0,0,0.05)","--colorNeutral1":"rgba(0,0,0,0.1)","--colorNeutral2":"rgba(0,0,0,0.2)","--colorNeutral3":"rgba(0,0,0,0.3)","--colorNeutral4":"rgba(0,0,0,0.4)","--colorNeutral5":"rgba(0,0,0,0.5)","--colorNeutral6":"rgba(0,0,0,0.65)","--colorNeutral7":"rgba(0,0,0,0.75)","--colorNeutral8":"rgba(0,0,0,0.85)","--colorBlack":"#000"},qt("primary")),qt("success")),qt("error")),qt("warning")),qt("info"));var Qt,te,ee=function(){function t(){h(this,t),this.config={theme:Kt,button:{radius:6,size:"default"},message:{top:10,radius:6,duration:2e3},notify:{radius:6,duration:5e3},modal:{radius:8},toast:{radius:8,duration:2e3},popup:{radius:12,width:630,height:630},float:{margin:12},captcha:{radius:8,margin:24},space:{gutter:12},actions:{radius:12,margin:16}},window.HiServe=window.HiServe||{},window.HiServe.IS_READY||(window.HiServe.IS_READY=!0,function(){if(!window.sessionStorage.getItem("HI_KITS_HELLO_CONSOLE")){var t="✰ hi-kits ✰",e="\n\ndocs: ".concat(atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA=="),"/hidoc/index.html \n\ngit: https://github.com/hi-kits/hi-kit\n\n如有任何意见和建议可在网站留言\n\n"),n="padding:5px 0",o="background:#0CF;"+n,r="background:#111;font-size:14px;color:#FFF;"+n,i="background:#CFF;"+n;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var a=["%c %c "+t+" %c %c"+e+"%c %c",o,r,o,i,o,"color:#000"];window.console.log.apply(console,a)}else window.console&&window.console.log(t+e);window.sessionStorage.setItem("HI_KITS_HELLO_CONSOLE","hello")}}(),window.localStorage.getItem("HI_ICONS")?window.HiServe.icons=JSON.parse(window.localStorage.getItem("HI_ICONS")):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,o){var r,i,a=e.async,s=void 0===a||a,c=e.beforeSend,l=void 0===c?function(){}:c,u=e.data,d=void 0===u?null:u,p=e.headers,h=void 0===p?{}:p,f=e.method,v=void 0===f?"get":f,g=e.responseType,m=void 0===g?"json":g,y=e.timeout,x=void 0===y?0:y,b=new XMLHttpRequest;if(b.open(v,t,s),x&&(r=window.setTimeout((function(){o(new Error("the xhr request timeout ".concat(x,"ms")))}),x)),b.onerror=function(){o(new Error("unknown error"))},b.onreadystatechange=function(){if(4===b.readyState)if(x&&void 0!==r&&clearTimeout(r),b.status>=200&&b.status<300)n(b);else{var t=new Error("the request is error");o(t)}},wt(d))try{i=JSON.stringify(d),h["content-type"]="application/json"}catch(t){o(t)}else(function(t){return"string"==typeof t})(d)&&(h["content-type"]="application/x-www-form-urlencoded");for(var w in h)b.setRequestHeader(w,h[w]);x&&(b.timeout=x),b.responseType=m,!1!==l(b)&&b.send(i)}))}("https:"+atob("Ly96anJzLmhhaWVyLm5ldA==")+"/download/hikits/icons.json",{responseType:"text"}).then((function(t){window.HiServe.icons=JSON.parse(t.responseText),window.localStorage.setItem("HI_ICONS",t.responseText)})))}return x(t,[{key:"install",value:function(t){}},{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config;for(var n in t){var o=t[n];wt(o)?this.config[n]&&this.init(o,e[n]):e[n]=o}}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}])}();function ne(t,e,n){return e=C(e),k(t,oe()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function oe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(oe=function(){return!!t})()}var re,ie,ae,se,ce,le,ue=t(Qt||(Qt=A(['\n:host .LoadBox{\n position: fixed;\n display: flex;\n justify-content: center;\n width: 100%;\n height: 100%;\n transform: translate3d(0,200vh,0);\n transition-property: transform;\n z-index: 2890;\n transition-duration: 0.35s;\n pointer-events:none;\n}\nslot {\n pointer-events:auto; \n}\n\n\n:host([show]) .LoadBox{\n transform: translate3d(0,0,0);\n}\n\n:host([dir="bottom"]) .LoadBox,\n:host([dir="top"]) .LoadBox {\n left: 0; height: auto;\n}\n:host([dir="bottom"]) .LoadBox {\n bottom: 0; transform: translate3d(0,150vh,0);\n}\n:host([show][dir="bottom"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n:host([dir="top"]) .LoadBox {\n top: 0; transform: translate3d(0,-150vh,0);\n}\n:host([show][dir="top"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n:host([dir="left"]) .LoadBox,\n:host([dir="right"]) .LoadBox {\n align-items: center; justify-content: normal; top:0; width: auto;\n}\n\n:host([dir="left"]) .LoadBox {\n left:0; transform: translate3d(-150vw,0,0);\n}\n:host([show][dir="left"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n\n:host([dir="right"]) .LoadBox {\n right: 0; transform: translate3d(150vw,0,0);\n}\n:host([show][dir="right"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n\n:host([dir="center"]) .LoadBox {\n left:0; \n right:0; \n top:0;\n bottom:0;\n align-items:center; \n opacity:0;\n transform: translate3d(0,0,0);\n}\n:host([show][dir="center"]) .LoadBox {\n opacity: 1;\n}\n\n']))),de=r(te||(te=A(["\n<h-mask \n ",' \n background="','" \n @click="','"\n @change="','"\n></h-mask>\n<div class="LoadBox" ',">\n <slot></slot>\n</div>\n"])),i("HIMask"),(function(t){return t.background}),(function(t){return t.close()}),(function(t){return t.closeChange()}),i("LoadBox")),pe=function(){function t(){var e;return h(this,t),(e=ne(this,t)).show=!1,ee.case.install([Pt]),e}return I(t,o),x(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?Rt(this.HIMask)("show"):Tt(this.HIMask)("show")}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"close",value:function(){Rt(this.HIMask)("show"),this.$emit("close")}},{key:"closeChange",value:function(){this.$emit("change")}}])}();function he(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",n=["%","em","rem","ex","ch","vh","vw","vmax","vmin","px","pt","pc","cm","mm","in","kHz","Hz","ms","s","dpi","dpcm","dppx","deg","grad","rad","turn"],o=!1,r=0;r<n.length;r++){var i=n[r];String(t).toLowerCase().indexOf(i)>-1&&(o=!0)}return o?t:t+e}function fe(t,e,n){return e=C(e),k(t,ve()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function ve(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ve=function(){return!!t})()}function ge(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}xt([a],pe.prototype,"HIMask",void 0),xt([a],pe.prototype,"LoadBox",void 0),xt([e({mode:"boolean"})],pe.prototype,"show",void 0),xt([zt],pe.prototype,"showChanged",null),xt([e],pe.prototype,"dir",void 0),xt([e],pe.prototype,"background",void 0),pe=xt([n({name:"h-load",styles:ue,template:de,shadowOptions:{mode:"closed"}})],pe);var me=t(re||(re=A(['\n:host .LoadBox{\n position: fixed;\n display: flex;\n justify-content: center;\n width: 100%;\n height: 100%;\n transform: translate3d(0,200vh,0);\n z-index: 2890;\n transition:all 0.35s;\n pointer-events:none;\n}\nslot {\n pointer-events:auto; \n}\n\n\n:host([show]) .LoadBox{\n transform: translate3d(0,0,0);\n}\n\n:host([dir="bottom"]) .LoadBox,\n:host([dir="top"]) .LoadBox {\n left: 0; height: auto;\n}\n:host([dir="bottom"]) .LoadBox {\n bottom: 0; transform: translate3d(0,150vh,0);\n}\n:host([show][dir="bottom"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n:host([dir="top"]) .LoadBox {\n top: 0; transform: translate3d(0,-150vh,0);\n}\n:host([show][dir="top"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n:host([dir="left"]) .LoadBox,\n:host([dir="right"]) .LoadBox {\n align-items: center; justify-content: normal; top:0; width: auto;\n}\n\n:host([dir="left"]) .LoadBox {\n left:0; transform: translate3d(-150vw,0,0);\n}\n:host([show][dir="left"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n\n:host([dir="right"]) .LoadBox {\n right: 0; transform: translate3d(150vw,0,0);\n}\n:host([show][dir="right"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n\n:host([dir="center"]) .LoadBox {\n left:0; \n right:0; \n top:0;\n bottom:0;\n align-items:center; \n opacity:0;\n transform: translate3d(0,0,0);\n}\n:host([show][dir="center"]) .LoadBox {\n opacity: 1;\n}\n\n']))),ye=r(ie||(ie=A(["\n<h-mask \n ",' \n background="','" \n @click="','"\n @change="','"\n></h-mask>\n<div class="LoadBox" ',">\n <slot></slot>\n</div>\n"])),i("HIMask"),(function(t){return t.background}),(function(t){return t.clickFn()}),(function(t){return t.changeFn()}),i("LoadBox")),xe=function(){function t(){var e;return h(this,t),(e=fe(this,t)).show=!1,ee.case.install([Pt]),e}return I(t,o),x(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?Rt(this.HIMask)("show"):Tt(this.HIMask)("show")}},{key:"connectedCallback",value:function(){ge(t,"connectedCallback",this,3)([])}},{key:"clickFn",value:function(){this.$emit("click")}},{key:"changeFn",value:function(){this.$emit("change")}}])}();xt([a],xe.prototype,"HIMask",void 0),xt([a],xe.prototype,"LoadBox",void 0),xt([e({mode:"boolean"})],xe.prototype,"show",void 0),xt([zt],xe.prototype,"showChanged",null),xt([e],xe.prototype,"dir",void 0),xt([e],xe.prototype,"background",void 0),xe=xt([n({name:"h-enter",styles:me,template:ye,shadowOptions:{mode:"closed"}})],xe);var be=t(ae||(ae=A(["\n.Border{\n -webkit-mask-size: 100%;\n -webkit-mask-position: 0;\n -webkit-mask-repeat: no-repeat;\n}\n"]))),we=r(se||(se=A(['\n<div class="Border" ',"></div>\n"])),i("Border")),ke=function(){function t(){var e;return h(this,t),(e=fe(this,t)).dasharray="10 10",e}return I(t,o),x(t,[{key:"connectedCallback",value:function(){ge(t,"connectedCallback",this,3)([]),this.setSvg()}},{key:"attributeChangedCallback",value:function(e,n,o){ge(t,"attributeChangedCallback",this,3)([e,n,o]),this.setSvg()}},{key:"setSvg",value:function(){var t=this.border/2,e=Math.min(this.width,this.height),n=2*this.radius>e?e/2:this.radius,o='<svg width="'.concat(he(this.width),'" height="').concat(he(this.height),'" viewBox="0 0 ').concat(this.width," ").concat(this.height,'" version="1.1" xmlns="http://www.w3.org/2000/svg"><g stroke="none" stroke-width="').concat(this.border,'" fill="none" fill-rule="evenodd"><rect x="').concat(t,'" y="').concat(t,'" width="').concat(this.width-this.border,'" height="').concat(this.height-this.border,'" rx="').concat(n,'" stroke="#000" ').concat(this.dashed?'stroke-dasharray="'.concat(this.dasharray,'"'):"","></rect></g></svg>");Ct(this.Border)({width:he(this.width),height:he(this.height),"border-radius":he(n),"background-image":this.color,"-webkit-mask-image":"url(data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(o),")")})}}])}();xt([a],ke.prototype,"Border",void 0),xt([e({converter:s})],ke.prototype,"width",void 0),xt([e({converter:s})],ke.prototype,"height",void 0),xt([e],ke.prototype,"color",void 0),xt([e({converter:s})],ke.prototype,"border",void 0),xt([e({mode:"boolean"})],ke.prototype,"dashed",void 0),xt([e],ke.prototype,"dasharray",void 0),xt([e({converter:s})],ke.prototype,"radius",void 0),ke=xt([n({name:"h-border",styles:be,template:we,shadowOptions:{mode:"closed"}})],ke);var Se,Ce,Oe=t(ce||(ce=A(["\n","\n","\n:host{\n position:fixed;\n left:0;\n top:0;\n right:0;\n bottom:0;\n visibility:hidden;\n transition-duration:0.35s;\n opacity:0;\n z-index:3100; \n}\n:host([show]){\n visibility:visible;\n opacity:1;\n}\n:host([show]) .Overlay{\n opacity:1!important;\n}\n:host .Overlay {\n position:relative;\n margin:auto;\n display:flex;\n align-items:center;\n justify-content:center;\n z-index:10; \n}\n"])),function(){var t="",e=ee.case.config.theme;for(var n in e)n&&(t+="".concat(n,":").concat(e[n],";"));return":host,:root{".concat(t,"} .Visibility{visibility:hidden} ").concat(function(t){var e={Cursor:"cursor:pointer",PoiNo:"pointer-events:none",PoiAll:"pointer-events:all",Opa0:"opacity:0",Opa1:"opacity:1",Inset:"inset:0",Content:"content:''",PosR:"position:relative",PosA:"position:absolute",PosF:"position:fixed",OH:"overflow:hidden",OA:"overflow:auto",VisHi:"visibility:hidden",VisVi:"visibility:visible",DisBlock:"display:block",DisInBlock:"display:inline-block",DisIn:"display:inline",DisFlex:"display:flex",DisGrid:"display:grid",DisNo:"display:none",DisNoIm:"display:none!important",WS:"white-space:nowrap",WW:"word-wrap:break-word;word-break:normal",WB:"word-break:break-all",TEll:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis",BCover:"background-color:#eee;background-position:center;background-repeat:no-repeat;background-size:cover",TL:"text-align:left",TR:"text-align:right",TC:"text-align:center"},n="";if(t&&kt(t))for(var o=0;o<t.length;o++)n+="".concat(e[t[o]],";");else for(var r in n+="\n :host{white-space:normal;line-height:18px;text-align:initial;}\n h1,h2,h3,h4,h5,h6,hr,p,dl,dt,dd,ul,ol,li,form,legend,button,input,textarea,th,td{margin:0;padding:0;}\n ul,ol{list-style:none;}\n table{border-collapse:collapse;border-spacing:0;}\n h1,h2,h3,h4,h5,h6,button,input,select,textarea{font-size:100%;} \n img{border:0;margin:0;}\n *{\n -webkit-text-size-adjust:none;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n }\n *,*:before,*:after{\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n -ms-box-sizing:border-box;\n box-sizing:border-box;\n }\n [tabindex=\"-1\"]:focus{outline:none!important}\n :host([disabled]),[disabled],.disabled{opacity:.65;pointer-events:none;cursor:not-allowed!important;}\n .Entry{transition:all 0.3s ease 0s}\n .Entry:focus{box-shadow:0 0 0 3px var(--themeShadow);outline:0;}\n .Entry:focus,.Entry:hover{border-color:var(--themeColor)!important;border-right-width:1px;}\n .Track:before{content:'';position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:rgb(0 255 3 / 32%);z-index:1;}\n ",e)Object.prototype.hasOwnProperty.call(e,r)&&(n+=".".concat(r,"{").concat(e[r],"}"));return n}())}(),function(t){return":host([hidden]),:host([hide]){display:none}:host{display:".concat(t,"}")}("flex")),_e=r(le||(le=A(["\n<h-mask ",' \n @click="','"\n @change="','"\n></h-mask>\n\n<div class="Overlay PosF OH" style="opacity:0;">\n <slot></slot>\n</div>\n'])),i("Mask"),(function(t){return t.close()}),(function(t){return t.close()})),Me=function(){function t(){var e;return h(this,t),(e=fe(this,t)).mode="auto",e.show=!1,ee.case.install([Pt]),e}return I(t,o),x(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?Rt(this.Mask)("show"):Tt(this.Mask)("show")}},{key:"connectedCallback",value:function(){ge(t,"connectedCallback",this,3)([])}},{key:"close",value:function(){"auto"==this.mode&&(this.show=!1)}}])}();function Le(t,e,n){return e=C(e),k(t,Ee()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function Ee(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ee=function(){return!!t})()}xt([a],Me.prototype,"Mask",void 0),xt([e],Me.prototype,"mode",void 0),xt([e({mode:"boolean"})],Me.prototype,"show",void 0),Me=xt([n({name:"h-overlay",styles:Oe,template:_e})],Me);var Ie=t(Se||(Se=A(['\n:host{\n position: absolute;\n pointer-events: none;\n width: 22px;\n height: 22px;\n --arrow-background-color: currentColor;\n}\n.ArrowWrap {\n position: absolute;\n z-index: 2;\n display: block;\n width: 22px;\n height: 22px;\n overflow: hidden;\n background: transparent;\n pointer-events: none\n}\n.Arrow {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n width: 11.3137085px;\n height: 11.3137085px;\n margin: auto;\n border-radius:0 0 2px;\n pointer-events: none;\n box-shadow: 3px 3px 7px rgb(0 0 0 / 7%);\n transform: translateY(-11px) rotate(45deg);\n}\n.Arrow:before {\n position: absolute;\n top: -11.313709px;\n left: -11.54px;\n width: 33.9411255px;\n height: 33.9411255px;\n background: var(--arrow-background-color);\n content: "";\n -webkit-clip-path: path("M 9.849242 24.091883092036785 A5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 24.091883 9.849242404917499 L 9.849242404917499 24.091883 Z");\n clip-path: path("M 9.849242 24.091883092036785 A5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 24.091883 9.849242404917499 L 9.849242404917499 24.091883 Z");\n}\n:host([dir="top"]){\n transform: rotate(360deg);\n left: 50%;\n margin-left: -11px;\n bottom: -22px;\n}\n:host([dir="right"]){\n transform: rotate(90deg);\n left: -22px;\n top: 50%;\n margin-top: -11px;\n}\n:host([dir="left"]){\n transform: rotate(270deg);\n right: -22px;\n top: 50%;\n margin-top: -11px;\n}\n:host([dir="bottom"]){\n top: -22px;\n left: 50%;\n transform: rotate(180deg);\n margin-left: -11px;\n}\n\n:host([dir="topleft"]){\n left:10px;\n bottom: -22px;\n}\n:host([dir="topright"]){\n right:10px;\n bottom: -22px;\n}\n\n:host([dir="righttop"]),\n:host([dir="rightbottom"]){\n transform: rotate(90deg);\n left: -22px;\n}\n:host([dir="righttop"]) {\n top: 10px;\n}\n:host([dir="rightbottom"]){\n bottom: 10px;\n}\n:host([dir="bottomleft"]),\n:host([dir="bottomright"]){\n top: -22px;\n transform: rotate(180deg);\n}\n:host([dir="bottomleft"]){\n left: 10px;\n}\n:host([dir="bottomright"]){\n right: 10px;\n}\n\n:host([dir="lefttop"]),\n:host([dir="leftbottom"]) {\n right: -22px;\n transform: rotate(270deg);\n}\n:host([dir="lefttop"]) {\n top: 10px;\n\n}\n:host([dir="leftbottom"]){\n bottom: 10px;\n}\n\n\n\n']))),Be=r(Ce||(Ce=A(['\n<div class="ArrowWrap">\n <span class="Arrow"></span>\n</div>\n']))),Ae=function(){function t(){var e;return h(this,t),(e=Le(this,t)).dir="top",e}return I(t,o),x(t,[{key:"colorChanged",value:function(t,e){Ct(this)({color:e})}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}}])}();xt([e],Ae.prototype,"dir",void 0),xt([e],Ae.prototype,"color",void 0),Ae=xt([n({name:"h-arrow",styles:Ie,template:Be,shadowOptions:{mode:"closed"}})],Ae);var Pe=function(t,e,n,o){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},je=function(t,e,n,o){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null},ze=function(){return x((function t(){var e=this;if(h(this,t),this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=function(){void 0!==e.previousBodyPaddingRight&&(document.body.style.paddingRight=e.previousBodyPaddingRight,e.previousBodyPaddingRight=void 0),void 0!==e.previousBodyOverflowSetting&&(document.body.style.overflow=e.previousBodyOverflowSetting,document.documentElement.style.overflow=e.previousBodyOverflowSetting,e.previousBodyOverflowSetting=void 0)},this.handleScroll=function(t,n){var o=t.targetTouches[0].clientY-e.initialClientY;return!e.allowTouchMove(t.target)&&(n&&0===n.scrollTop&&o>0||e.isTargetElementTotallyScrolled(n)&&o<0?e.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){var n={get passive(){this.hasPassiveEvents=!0}};Pe(window,"testPassive",null,n),je(window,"testPassive",null,n)}}),[{key:"isTargetElementTotallyScrolled",value:function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}},{key:"allowTouchMove",value:function(t){this.locks.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))}},{key:"preventDefault",value:function(t){var e=t||window.event;return!(!this.allowTouchMove||!this.allowTouchMove(e.target))||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))}},{key:"setOverflowHidden",value:function(t){if(void 0===this.previousBodyPaddingRight){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;e&&n>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}},{key:"disable",value:function(t,e){var n=this;if(t){if(!this.locks.some((function(e){return e.targetElement===t}))){var o={targetElement:t,options:e||{}};this.locks=[].concat(H(this.locks),[o]),this.isIosDevice?(t.ontouchstart=function(t){1===t.targetTouches.length&&(n.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&n.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}},{key:"clearAll",value:function(){this.isIosDevice?(this.locks.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(je(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}},{key:"enable",value:function(t){t?(this.locks=this.locks.filter((function(e){return e.targetElement!==t})),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(je(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}])}(),Te=new ze;function Re(t,e,n){var o=n.value;return n.value=function(t,e){return null===e||!1===e?Te.enable(document.body):Te.disable(document.body),o.apply(this,arguments)},n}var Fe,De,Ne,We,He=function(){function t(){var e=this;h(this,t),"classList"in document.documentElement?(this.has=function(t,e){return t.classList.contains(e)},this.add=function(t,e){for(var n=e.split(" "),o=0;o<n.length;o++)void 0!==t.classList&&t.classList.add(n[o])},this.remove=function(t,e){if(t)for(var n=e.split(" "),o=0;o<n.length;o++)void 0!==t.classList&&t.classList.remove(n[o])}):(this.has=function(t,n){return e.classReg(n).test(t.className)},this.add=function(t,n){e.has(t,n)||(t.className=t.className+" "+n)},this.remove=function(t,n){t.className=t.className.replace(e.classReg(n)," ")})}return x(t,[{key:"classReg",value:function(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}},{key:"toggle",value:function(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}],[{key:"instance",get:function(){return this._instance||(this._instance=new t),this._instance}}])}();function Ve(t){if("string"==typeof t)return String(t).replace(/(^\s*)|(\s*$)/g,"").replace(/\u200B/g,"");if("[object Array]"===Object.prototype.toString.call(t))return t.forEach((function(t){t=Ve(t)})),t;if("[object Object]"!==Object.prototype.toString.call(t)||null==t)return t;for(var e in t)t[e]=Ve(t[e]);return t}function Ge(t){return function(e,n){if(dt(e))for(var o in e)Ye(t)(o,e[o]);if("string"==typeof e){if(/:/g.test(e))e.split(";").forEach((function(e){var n=(e=Ve(e)).split(":");Ye(t)(n[0],n[1])}));else Ye(t)(e,n)}}}function Ye(t){return function(e,n){if(t){if(void 0===n)return window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=n}}}function $e(t){var e=null;return function(n,o,r){var i=r.value;return r.value=function(){for(var n=this,o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];e&&clearTimeout(e),e=setTimeout((function(){i.apply(n,r)}),t)},r}}function Ue(t,e,n){return e=C(e),k(t,Xe()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function Xe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Xe=function(){return!!t})()}var Ze=r(Fe||(Fe=A(['\n<div class="ConflateWrap">\n <div class="Bg"></div>\n <div class="VideoBox">\n <div class="VideoWrap" ',">\n ","\n </div>\n </div>\n <div ",' class="Content transit">\n <div class="Title">\n <img src="','/download/img/collect/title03.png"/>\n </div>\n <div class="Icon ','">\n <div><img src="','/download/img/collect/icon03.png"/><p class="TEll">2.5抽奖次数+1</p></div>\n <span class="','">\n ','\n </span>\n <div><img src="','/download/img/collect/icon02.png"/><p class="TEll">ihaier新年头像框</p></div>\n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n <div class="Notes">\n ',"\n <p>ihaier新年头像框将通过您的ihaier发放</p>\n </div>\n </div>\n </div>\n"])),i("aniImg"),c((function(t,e){return t.ImgList}),r(De||(De=A(['<img src="','" style="z-index:','" />'])),(function(t){return t.img}),(function(t){return t.index})),{positioning:!0}),i("contentWrap"),mt.path,(function(t){return t.isCoupon?"":"Two"}),mt.path,(function(t){return t.isCoupon?"Coupon":""}),l((function(t){return t.isCoupon}),r(Ne||(Ne=A(['<div><img src="','/download/img/collect/icon05.png"/><p class="TEll">皂基洗衣凝珠</p></div>\n '])),mt.path)),mt.path,(function(t){return t.accept()}),mt.path,l((function(t){return t.isCoupon}),r(We||(We=A(["<p>优惠券可在【我的奖品-商城卡券】中查看</p>"]))))),Je=function(){function t(){var e;return h(this,t),(e=Ue(this,t)).isCoupon=!1,e.ImgList=Array.from({length:40},(function(t,e){var n=e+15;return n>35&&(n+=5),{index:80-n,img:mt.path+"/download/img/collect/conflate/000"+n+".jpg"}})),e.isClick=!1,e.index=0,e.row=0,e.col=0,ft.case.install([Me]),e}return I(t,o),x(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?He.instance.remove(this.contentWrap,"show"):this.init()}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([]),Ge(this.aniImg)("transform","scale("+document.documentElement.clientWidth/720+")")}},{key:"isIphone",value:function(){return/iPhone/.test(navigator.userAgent)&&/Mobile/.test(navigator.userAgent)}},{key:"init",value:function(){var t=this;736==screen.height&&414==screen.width&&this.isIphone()||667==screen.height&&375==screen.width&&this.isIphone()?(this.ImgList=[{index:80,img:mt.path+"/download/img/collect/conflate/00059.jpg"}],He.instance.add(this.contentWrap,"show"),setTimeout((function(){t.isClick=!0}),10)):(this.timer=setInterval((function(){t.play()}),40),setTimeout((function(){He.instance.add(t.contentWrap,"show")}),1e3),setTimeout((function(){t.isClick=!0}),3e3))}},{key:"resize",value:function(){window.outerWidth/window.outerHeight>=.4614121510673235?(this.video.style.width="100%",this.video.style.height=""):(this.video.style.height="100%",this.video.style.width="")}},{key:"accept",value:function(){this.isClick&&(this.close(),this.$emit("change","accept"))}},{key:"play",value:function(){this.aniImg.children[0]&&this.aniImg.children[0].remove(),this.index++,39===this.index&&(clearInterval(this.timer),this.index=0)}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){t&&t.prizeId&&(this.isCoupon=!0)}}])}();P([a],Je.prototype,"Overlay",void 0),P([a],Je.prototype,"video",void 0),P([a],Je.prototype,"contentWrap",void 0),P([a],Je.prototype,"isCoupon",void 0),P([a],Je.prototype,"aniImg",void 0),P([a],Je.prototype,"ImgList",void 0),P([e({mode:"boolean"})],Je.prototype,"show",void 0),P([Re],Je.prototype,"showChanged",null),P([$e(300)],Je.prototype,"accept",null),Je=P([n({name:"g-collect-conflate",template:Ze,styles:yt})],Je);var qe,Ke=new(function(){function t(){h(this,t),this.isMobile=!1,this.size=375,this.pageSize=function(){var t=0,e=0;window.innerHeight&&window.scrollMaxY?(t=window.innerWidth+window.scrollMaxX,e=window.innerHeight+window.scrollMaxY):document.body.scrollHeight>document.body.offsetHeight?(t=document.body.scrollWidth,e=document.body.scrollHeight):document.body&&(t=document.body.offsetWidth,e=document.body.offsetHeight);var n=0,o=0;return window.innerHeight?(n=window.innerWidth,o=window.innerHeight):document.documentElement&&document.documentElement.clientHeight?(n=document.documentElement.clientWidth,o=document.documentElement.clientHeight):document.body&&(n=document.body.clientWidth,o=document.body.clientHeight),{PageW:t<n?n:t,PageH:e<o?o:e,WinW:n,WinH:o}}(),this.isMobile=this.pageSize.PageW<768}return x(t,[{key:"toVw",value:function(t){return this.isMobile?"".concat(t/this.size*100,"vw"):"".concat(t,"px")}},{key:"toPerce",value:function(t){return"".concat(t/this.size*100,"%")}},{key:"toPx",value:function(t){return"".concat(this.pageSize.PageW/this.size*t,"px")}},{key:"toEm",value:function(t){return"".concat(t/10,"em")}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}])}()),Qe=t(qe||(qe=A(["\n","\n.ListWrap{\ndisplay:flex;\nwidth:100%;\npadding:0 0 0 3.2vw;\nmargin:0 auto;\n}\n.CardBox{width:",";overflow: hidden;\noverflow-x: auto;position:relative;}\n.CardBox::-webkit-scrollbar{display:none}\n.CardWrap{display:inline-flex}\n.CardWrap div.Card{\nwidth:",";\nheight:",";\nmargin: 0 ",";\n}\n.CardWrap div.Card img {height:100%;width:100%}\n.Synthesis{\nposition:relative;\nwidth:22.4vw;height:22.4vw;margin:0 1vw 0 -1vw;\n}\n.Synthesis::after{content:'';width:16px;position:absolute;height:100%;top:0;right:-16px; z-index:99; background-image: linear-gradient(269deg, rgba(239,67,69,0.00) 0%, #EF4345 67%);}\n.Synthesis .Tips{position:absolute;left:0;top:-6.5vw;z-index:6; width:35.2vw;}\n.Synthesis .Svga,\n.Synthesis .Img,\n.Synthesis video {\nposition: absolute;left:0;top:0;\nwidth:22.4vw;height:22.4vw;\nmargin:-2vw 0 0;\n}\n.Synthesis .Img {z-index:2; opacity: 0.8;}\n.Synthesis .Svga{z-index:3;","}\n.Synthesis video{z-index:3;","}\nh-badge{right:6px;top:6px;}\n"])),vt(),Ke.toVw(279),Ke.toVw(56),Ke.toVw(76),Ke.toVw(5),ht(["PoiNo"]),ht(["PoiNo"])),tn={exports:{}};!function(t){var e=g.exports.default;function n(){
|
|
1
|
+
import{css as t,attr as e,customElement as n,HIElement as o,html as r,ref as i,observable as a,nullableNumberConverter as s,repeat as c,when as l}from"hi-element";function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var d,p={exports:{}};(d=p).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},d.exports.__esModule=!0,d.exports.default=d.exports;var h=u(p.exports),f={exports:{}},v={exports:{}},g={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(g);var m=u(g.exports),y={exports:{}};!function(t){var e=g.exports.default;t.exports=function(t,n){if("object"!=e(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,n||"default");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(y),function(t){var e=g.exports.default,n=y.exports;t.exports=function(t){var o=n(t,"string");return"symbol"==e(o)?o:o+""},t.exports.__esModule=!0,t.exports.default=t.exports}(v),function(t){var e=v.exports;function n(t,n){for(var o=0;o<n.length;o++){var r=n[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(f);var x=u(f.exports),b={exports:{}},w={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(w),function(t){var e=g.exports.default,n=w.exports;t.exports=function(t,o){if(o&&("object"==e(o)||"function"==typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(b);var k=u(b.exports),S={exports:{}};!function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(S);var C=u(S.exports),O={exports:{}},_={exports:{}};!function(t){var e=S.exports;t.exports=function(t,n){for(;!{}.hasOwnProperty.call(t,n)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}(_),function(t){var e=_.exports;function n(){return t.exports=n="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,n,o){var r=e(t,n);if(r){var i=Object.getOwnPropertyDescriptor(r,n);return i.get?i.get.call(arguments.length<3?t:o):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports,n.apply(null,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(O);var M=u(O.exports),L={exports:{}},I={exports:{}};!function(t){function e(n,o){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(I),function(t){var e=I.exports;t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}(L);var E=u(L.exports),B={exports:{}};!function(t){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.__esModule=!0,t.exports.default=t.exports}(B);var z=u(B.exports);function A(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":m(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}"function"==typeof SuppressedError&&SuppressedError;var P={exports:{}};!function(t){var e=v.exports;t.exports=function(t,n,o){return(n=e(n))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t},t.exports.__esModule=!0,t.exports.default=t.exports}(P);var j=u(P.exports),T={exports:{}},R={exports:{}},F={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o},t.exports.__esModule=!0,t.exports.default=t.exports}(F),function(t){var e=F.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(R);var N={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(N);var D={exports:{}};!function(t){var e=F.exports;t.exports=function(t,n){if(t){if("string"==typeof t)return e(t,n);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(t,n):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(D);var W={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(W),function(t){var e=R.exports,n=N.exports,o=D.exports,r=W.exports;t.exports=function(t){return e(t)||n(t)||o(t)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(T);var H=u(T.exports),V={exports:{}},G={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(G);var Y={exports:{}};!function(t){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==e);c=!0);}catch(t){l=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}},t.exports.__esModule=!0,t.exports.default=t.exports}(Y);var $={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}($),function(t){var e=G.exports,n=Y.exports,o=D.exports,r=$.exports;t.exports=function(t,i){return e(t)||n(t,i)||o(t,i)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(V);var U=u(V.exports),X=Math.min,Z=Math.max,J=Math.floor,Q=Math.round;function q(t,e,n){e/=100,n/=100;var o=J(t=t/360*6),r=t-o,i=n*(1-e),a=n*(1-r*e),s=n*(1-(1-r)*e),c=o%6;return[255*[n,a,i,i,s,n][c],255*[s,n,n,a,i,i][c],255*[i,i,s,n,n,a][c]]}function K(t,e,n){var o,r,i=X(t/=255,e/=255,n/=255),a=Z(t,e,n),s=a-i;if(0===s)o=r=0;else{r=s/a;var c=((a-t)/6+s/2)/s,l=((a-e)/6+s/2)/s,u=((a-n)/6+s/2)/s;t===a?o=u-l:e===a?o=1/3+c-u:n===a&&(o=2/3+l-c),o<0?o+=1:o>1&&(o-=1)}return[360*o,100*r,100*a]}function tt(t,e,n,o){e/=100,n/=100;var r=255*(1-X(1,(t/=100)*(1-(o/=100))+o)),i=255*(1-X(1,e*(1-o)+o)),a=255*(1-X(1,n*(1-o)+o));return H(K(r,i,a))}function et(t,e,n){return e/=100,[t,(n/=100)+(e*=n<.5?n:1-n)?2*e/(n+e)*100:0,100*(n+e)]}function nt(t){return K.apply(void 0,H(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function ot(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;var e,n={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=function(t){return t.map((function(t){return/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0}))};t:for(var r in n)if(e=n[r].exec(t))switch(r){case"cmyk":var i=o(e),a=U(i,5),s=a[1],c=a[2],l=a[3],u=a[4];if(s>100||c>100||l>100||u>100)break t;return{values:tt(s,c,l,u),type:r};case"rgba":var d=o(e),p=U(d,7),h=p[3],f=p[4],v=p[5],g=p[6];if(h>255||f>255||v>255||g<0||g>1)break t;return{values:[].concat(H(K(h,f,v)),[g]),a:g,type:r};case"hexa":var m=U(e,2)[1];4!==m.length&&3!==m.length||(m=m.split("").map((function(t){return t+t})).join(""));var y=m.substring(0,6),x=m.substring(6);return x=x?parseInt(x,16)/255:void 0,{values:[].concat(H(nt(y)),[x]),a:x,type:r};case"hsla":var b=o(e),w=U(b,7),k=w[3],S=w[4],C=w[5],O=w[6];if(k>360||S>100||C>100||O<0||O>1)break t;return{values:[].concat(H(et(k,S,C)),[O]),a:O,type:r};case"hsva":var _=o(e),M=U(_,7),L=M[3],I=M[4],E=M[5],B=M[6];if(L>360||I>100||E>100||B<0||B>1)break t;return{values:[L,I,E,B],a:B,type:r}}return{values:null,type:null}}function rt(){var t=function(t,e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e(~n?t.map((function(t){return Number(t.toFixed(n))})):t)}},e={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var n=[e.h,e.s,e.v,e.a];return n.toString=t(n,(function(t){return"hsva(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toHSLA:function(){var n=[].concat(H(function(t,e,n){var o=(2-(e/=100))*(n/=100)/2;return 0!==o&&(e=1===o?0:o<.5?e*n/(2*o):e*n/(2-2*o)),[t,100*e,100*o]}(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"hsla(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toRGBA:function(){var n=[].concat(H(q(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", ").concat(e.a,")")})),n},toCMYK:function(){var n=function(t,e,n){var o,r=q(t,e,n),i=r[0]/255,a=r[1]/255,s=r[2]/255;return[100*(1===(o=X(1-i,1-a,1-s))?0:(1-i-o)/(1-o)),100*(1===o?0:(1-a-o)/(1-o)),100*(1===o?0:(1-s-o)/(1-o)),100*o]}(e.h,e.s,e.v);return n.toString=t(n,(function(t){return"cmyk(".concat(t[0],"%, ").concat(t[1],"%, ").concat(t[2],"%, ").concat(t[3],"%)")})),n},toHEXA:function(){var t=function(t,e,n){return q(t,e,n).map((function(t){return Q(t).toString(16).padStart(2,"0")}))}(e.h,e.s,e.v),n=e.a>=1?"":Number((255*e.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return n&&t.push(n),t.toString=function(){return"#".concat(t.join("").toUpperCase())},t},clone:function(){return rt(e.h,e.s,e.v,e.a)}};return e}function it(t,e){var n=ot(t),o=rt.apply(void 0,H(n.values)).toRGBA();return"rgba(".concat(o[0].toFixed(0),",").concat(o[1].toFixed(0),",").concat(o[2].toFixed(0),",").concat(Number(o[3].toFixed(2))*e,")")}var at={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},st=function(t){return t.trim().toLowerCase().replace(t[0],t[0].toUpperCase())},ct=function(t){return j(j(j(j({},"--".concat(t,"Color"),"var(--hi".concat(st(t),"Color,").concat(at[t],")")),"--".concat(t,"Color-hover"),"var(--hi".concat(st(t),"Color-hover,").concat(it(at[t],.6),")")),"--".concat(t,"Color-active"),"var(--hi".concat(st(t),"Color-active,").concat(it(at[t],.4),")")),"--".concat(t,"Color-outline"),"var(--hi".concat(st(t),"Color-outline,").concat(it(at[t],.15),")"))},lt=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":"var(--hiThemeColor,".concat(at.primary,")"),"--themeShadow":"var(--hiThemeShadow, ".concat(it(at.primary,.25),")"),"--themeBackground":"var(--hiThemeBackground,".concat(at.primary,")"),"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":"var(--hiLinkFontColor,".concat(at.primary,")"),"--fontSize14":"var(--hiFontSize14,14px)","--fontSize16":"var(--hiFontSize16,16px)","--fontSize20":"var(--hiFontSize20,20px)","--borderColor":"var(--hiBorderColor, rgba(102, 102, 102, 0.3))","--borderRadius":"var(--hiBorderRadius,4px)","--colorWhite":"#fff","--colorGray1":"#fafafa","--colorGray2":"#eee","--colorGray6":"#757575","--colorGray7":"#585858","--colorGray8":"#333","--colorNeutral02":"rgba(0,0,0,0.02)","--colorNeutral05":"rgba(0,0,0,0.05)","--colorNeutral1":"rgba(0,0,0,0.1)","--colorNeutral2":"rgba(0,0,0,0.2)","--colorNeutral3":"rgba(0,0,0,0.3)","--colorNeutral4":"rgba(0,0,0,0.4)","--colorNeutral5":"rgba(0,0,0,0.5)","--colorNeutral6":"rgba(0,0,0,0.65)","--colorNeutral7":"rgba(0,0,0,0.75)","--colorNeutral8":"rgba(0,0,0,0.85)","--colorBlack":"#000"},ct("primary")),ct("success")),ct("error")),ct("warning")),ct("info")),ut=function(t){return Object.prototype.toString.call(t)},dt=function(t){return"[object Object]"==ut(t)},pt=function(t){return"[object Array]"==ut(t)};function ht(t){var e={Cursor:"cursor:pointer",PoiNo:"pointer-events:none",PoiAll:"pointer-events:all",Opa0:"opacity:0",Opa1:"opacity:1",Inset:"inset:0",Content:"content:''",PosR:"position:relative",PosA:"position:absolute",PosF:"position:fixed",OH:"overflow:hidden",OA:"overflow:auto",VisHi:"visibility:hidden",VisVi:"visibility:visible",DisBlock:"display:block",DisInBlock:"display:inline-block",DisIn:"display:inline",DisFlex:"display:flex",DisGrid:"display:grid",DisNo:"display:none",DisNoIm:"display:none!important",WS:"white-space:nowrap",WW:"word-wrap:break-word;word-break:normal",WB:"word-break:break-all",TEll:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis",BCover:"background-color:#eee;background-position:center;background-repeat:no-repeat;background-size:cover",TL:"text-align:left",TR:"text-align:right",TC:"text-align:center"},n="\n :host{white-space:normal;line-height:18px;text-align:initial;}\n h1,h2,h3,h4,h5,h6,hr,p,dl,dt,dd,ul,ol,li,form,legend,button,input,textarea,th,td{margin:0;padding:0;}\n ul,ol{list-style:none;}\n table{border-collapse:collapse;border-spacing:0;}\n h1,h2,h3,h4,h5,h6,button,input,select,textarea{font-size:100%;} \n img{border:0;margin:0;}\n *{\n -webkit-text-size-adjust:none;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n -webkit-user-drag: none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n }\n *,*:before,*:after{".concat("\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n -ms-box-sizing:border-box;\n box-sizing:border-box;\n ","}\n [tabindex=\"-1\"]:focus{outline:none!important}\n :host([disabled]),[disabled],.disabled{opacity:.65;pointer-events:none;cursor:not-allowed!important;}\n .Entry{transition:all 0.3s ease 0s}\n .Entry:focus{box-shadow:0 0 0 3px var(--themeShadow);outline:0;}\n .Entry:focus,.Entry:hover{border-color:var(--themeColor)!important;border-right-width:1px;}\n .Track:before{content:'';position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:rgb(0 255 3 / 32%);z-index:1;}\n "),o="";if(t&&pt(t))for(var r=0;r<t.length;r++){var i=t[r];o+="".concat(e[i],";")}else for(var a in o+=n,e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=e[a];o+=".".concat(a,"{").concat(s,"}")}return o}var ft=function(){function t(){if(h(this,t),this.config={theme:lt,button:{radius:6,size:"default"},message:{top:10,radius:6,duration:2e3},notify:{radius:6,duration:5e3},modal:{radius:8},toast:{radius:8,duration:2e3},popup:{radius:12,width:630,height:630},float:{margin:12},captcha:{radius:8,margin:24},space:{gutter:12},actions:{radius:12,margin:16}},window.HiServe=window.HiServe||{},!window.HiServe.IS_READY)if(window.HiServe.IS_READY=!0,function(){if(!window.sessionStorage.getItem("HI_KITS_HELLO_CONSOLE")){var t="✰ hi-kits ✰",e="\n\ndocs: ".concat(atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA=="),"/hidoc/index.html \n\ngit: https://github.com/hi-kits/hi-kit\n\n如有任何意见和建议可在网站留言\n\n"),n="padding:5px 0",o="background:#0CF;"+n,r="background:#111;font-size:14px;color:#FFF;"+n,i="background:#CFF;"+n;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var a=["%c %c "+t+" %c %c"+e+"%c %c",o,r,o,i,o,"color:#000"];window.console.log.apply(console,a)}else window.console&&window.console.log(t+e);window.sessionStorage.setItem("HI_KITS_HELLO_CONSOLE","hello")}}(),window.localStorage.getItem("HI_ICONS"))window.HiServe.icons=JSON.parse(window.localStorage.getItem("HI_ICONS"));else{var e="https:"+atob("Ly96anJzLmhhaWVyLm5ldA==");(window.location.href.indexOf(atob("aHcuaGFpZXIubmV0L3BvcnRhbA=="))>-1||window.location.href.indexOf(atob("aHdvcmstaW50ZXJuYWwuaGFpZXIubmV0L3BvcnRhbA=="))>-1||window.location.href.indexOf(atob("aHdvcmsuaGFpZXIubmV0L3BvcnRhbA=="))>-1)&&(e=window.location.href.startsWith("https://p")||window.location.href.startsWith("http://p")?atob("aHR0cHM6Ly9wLWFwaS1jbi1zcDAwMDY3NS1pLmh3b3JrLmhhaWVyLm5ldA=="):atob("aHR0cHM6Ly9hcGktY24tc3AwMDA2NzUtaS5od29yay5oYWllci5uZXQ=")),n=[e+"/download/hikits/icons.js"],o=function(){window.HiServe.icons=window.Hi_Icons,window.localStorage.setItem("HI_ICONS",JSON.stringify(window.Hi_Icons))},r=document.getElementsByTagName("head")[0],Promise.all(n.map((function(t){return new Promise((function(e){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=t,n.addEventListener("load",(function(t){return e()}),!1),r.appendChild(n)}))}))).then(o)}var n,o,r}return x(t,[{key:"install",value:function(t){}},{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config;for(var n in t){var o=t[n];dt(o)?this.config[n]&&this.init(o,e[n]):e[n]=o}}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}])}();function vt(){var t="",e=ft.case.config.theme;for(var n in e)n&&(t+="".concat(n,":").concat(e[n],";"));return":host,:root{".concat(t,"} ").concat(".Visibility{visibility:hidden}"," ").concat(ht())}var gt,mt={path:atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA=="),pathys:atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA=="),coupon:"/download/img/collect/certificate.png",card1:"/download/img/collect/card01.png",card2:"/download/img/collect/card02.png",card3:"/download/img/collect/card03.png",card4:"/download/img/collect/card04.png",card5:"/download/img/collect/card05.png",card6:"/download/img/collect/card06.png"},yt=t(gt||(gt=z(["\n","\n:host{\ntext-align:center;color:#fff;\nposition:fixed;left:-100%;top:0;width:100vw;height:100vh;\n}\n:host([show]){display:block;z-index:3000;top:0;left:0;}\n.VideoWrap{position:absolute;top:0;left:0; width:720px;height:1560px;display:inline-block;\ntransform-origin:0 0;transform: translate3d(0, 0, 0);\n}\n.VideoWrap img{width:100%;height:100%;position:absolute;top:0;left:0;}\n.VideoWrap .Svga {width:100vw;height:100vh;}\n.ConflateWrap {position:absolute;top:0;left:0;width:100vw;height:100vh;display:block;z-index:3200;background:rgba(0, 0, 0, 0.4);}\n.ConflateWrap .Content{position:relative; z-index:6;height:100%;\n padding-top: 20vw;text-align:center;\n}\n\n\n.ConflateWrap .Bg{position:absolute;top:0;left:0;width:100%;height:100%;\n background:url(","/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.ConflateWrap .Title img{\n height:17.0666666666vw\n}\n.ConflateWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.ConflateWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 3.2vw;\ncolor: #FFF1D8;\nline-height: 1.5;\nfont-weight: 400;\n}\n.Icon{display:flex;justify-content:space-around;position:absolute;width:100%;bottom:58vw;}\n.Icon span{display:none}\n.Icon span.Coupon{display:block;position:relative;}\n.Icon div{width:33.333333vw;text-align:center}\n.Icon div p{font-size:12px;}\n.Icon img{width:19.2vw}\n.Icon span.Coupon img{width:auto;height:19.2vw}\n.Icon span.Coupon i{position:absolute;font-style:normal;color:#f83a0a;top:4vw;left:0;right:0; text-align:center;}\n.Icon.Two{padding:0 10vw}\n.Button{position:absolute;width:100%;bottom:30vw;text-align:center}\n.Button img{height:20.26666666vw}\n\n.transit{opacity: 0;transition: opacity 1s ease-in-out;}\n.show.transit{opacity: 1;transition-delay: 1s;}\n\n@media screen and (max-height : 210vw) {\n .VideoWrap{margin-top:-5vw}\n .Icon{bottom:54vw;}\n .Button{bottom:25vw;}\n}\n@media screen and (max-height : 200vw) {\n .ConflateWrap .Title{margin-top:-5vw}\n .VideoWrap{margin-top:-10vw}\n .Icon{bottom:50vw;}\n .Button{bottom:22vw;}\n}\n@media screen and (max-height : 190vw) {\n .ConflateWrap .Title{margin-top:-10vw}\n .VideoWrap{margin-top:-15vw}\n .Icon{bottom:45vw;}\n .Button{bottom:20vw;}\n}\n@media screen and (max-height : 180vw) {\n .VideoWrap{margin-top:-18vw}\n .Button{bottom:18vw;}\n}\n@media screen and (max-height : 170vw) {\n .ConflateWrap .Title{margin-top:-16vw}\n .VideoWrap{margin-top:-20vw}\n .Icon{bottom:38vw;}\n .Button{bottom:15vw;}\n}\n"])),vt(),mt.path);function xt(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==("undefined"==typeof Reflect?"undefined":m(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}var bt=function(t){return Object.prototype.toString.call(t)},wt=function(t){return"[object Object]"==bt(t)},kt=function(t){return"[object Array]"==bt(t)};function St(t){if("string"==typeof t)return String(t).replace(/(^\s*)|(\s*$)/g,"").replace(/\u200B/g,"");if("[object Array]"===Object.prototype.toString.call(t))return t.forEach((function(t){t=St(t)})),t;if("[object Object]"!==Object.prototype.toString.call(t)||null==t)return t;for(var e in t)t[e]=St(t[e]);return t}function Ct(t){return function(e,n){if(wt(e))for(var o in e)Ot(t)(o,e[o]);"string"==typeof e&&(/:/g.test(e)?e.split(";").forEach((function(e){var n=(e=St(e)).split(":");Ot(t)(n[0],n[1])})):Ot(t)(e,n))}}function Ot(t){return function(e,n){if(t){if(void 0===n)return window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=n}}}var _t,Mt=function(){function t(){var e=this;h(this,t),"classList"in document.documentElement?(this.has=function(t,e){return t.classList.contains(e)},this.add=function(t,e){for(var n=e.split(" "),o=0;o<n.length;o++)void 0!==t.classList&&t.classList.add(n[o])},this.remove=function(t,e){if(t)for(var n=e.split(" "),o=0;o<n.length;o++)void 0!==t.classList&&t.classList.remove(n[o])}):(this.has=function(t,n){return e.classReg(n).test(t.className)},this.add=function(t,n){e.has(t,n)||(t.className=t.className+" "+n)},this.remove=function(t,n){t.className=t.className.replace(e.classReg(n)," ")})}return x(t,[{key:"classReg",value:function(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}},{key:"toggle",value:function(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}],[{key:"instance",get:function(){return this._instance||(this._instance=new t),this._instance}}])}(),Lt=function(t,e,n,o){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},It=function(t,e,n,o){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null};function Et(t,e,n){return e=C(e),k(t,Bt()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function Bt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Bt=function(){return!!t})()}var zt=t(_t||(_t=z(['\n:host{\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n visibility:hidden;\n background: rgba(0,0,0,0.4);\n transition-duration: 0.3s;\n opacity: 0;\n z-index: 10; \n}\n:host([show]){\n visibility: visible;\n opacity: 1;\n}\n:host([class="Leave"]) {\n opacity: 0;\n transition: all 0.35s ease-out;\n}\n']))),At=function(){function t(){var e;return h(this,t),(e=Et(this,t)).show=!1,e}return E(t,o),x(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?Mt.instance.add(this,"Leave"):Mt.instance.remove(this,"Leave")}},{key:"connectedCallback",value:function(){var e=this;(function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r})(t,"connectedCallback",this,3)([]),this.background&&Ct(this)("background",this.background),Lt(this,"transitionend",(function(){e.transitionendChange()}))}},{key:"transitionendChange",value:function(){this.show||this.$emit("change")}}])}();xt([e],At.prototype,"background",void 0),xt([e({mode:"boolean"})],At.prototype,"show",void 0),At=xt([n({name:"h-mask",styles:zt,shadowOptions:{mode:"closed"}})],At);var Pt=new(function(){return x((function t(){var e=this;if(h(this,t),this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=function(){void 0!==e.previousBodyPaddingRight&&(document.body.style.paddingRight=e.previousBodyPaddingRight,e.previousBodyPaddingRight=void 0),void 0!==e.previousBodyOverflowSetting&&(document.body.style.overflow=e.previousBodyOverflowSetting,document.documentElement.style.overflow=e.previousBodyOverflowSetting,e.previousBodyOverflowSetting=void 0)},this.handleScroll=function(t,n){var o=t.targetTouches[0].clientY-e.initialClientY;return!e.allowTouchMove(t.target)&&(n&&0===n.scrollTop&&o>0||e.isTargetElementTotallyScrolled(n)&&o<0?e.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){var n={get passive(){this.hasPassiveEvents=!0}};Lt(window,"testPassive",null,n),It(window,"testPassive",null,n)}}),[{key:"isTargetElementTotallyScrolled",value:function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}},{key:"allowTouchMove",value:function(t){this.locks.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))}},{key:"preventDefault",value:function(t){var e=t||window.event;return!!this.allowTouchMove(e.target)||e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1)}},{key:"setOverflowHidden",value:function(t){if(void 0===this.previousBodyPaddingRight){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;e&&n>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}},{key:"disable",value:function(t,e){var n=this;if(t){if(!this.locks.some((function(e){return e.targetElement===t}))){var o={targetElement:t,options:e||{}};this.locks=[].concat(H(this.locks),[o]),this.isIosDevice?(t.ontouchstart=function(t){1===t.targetTouches.length&&(n.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&n.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}},{key:"clearAll",value:function(){this.isIosDevice?(this.locks.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(It(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}},{key:"enable",value:function(t){t?(this.locks=this.locks.filter((function(e){return e.targetElement!==t})),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(It(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}])}());function jt(t,e,n){var o=n.value;return n.value=function(t,e){return null===e||!1===e?Pt.enable(document.body):Pt.disable(document.body),o.apply(this,arguments)},n}function Tt(t){return t?function(e,n){if(1===arguments.length&&"string"==typeof e)t.setAttribute(e,"");else if(2===arguments.length)t.setAttribute(e,n);else for(var o in e)t[o]=e[o],t.setAttribute(o,e[o])}:function(){}}function Rt(t){return t?function(e){if("string"==typeof e)t.removeAttribute(e);else for(var n=0;n<e.length;n++){var o=e[n];t.removeAttribute(o)}}:function(){}}var Ft=Math.min,Nt=Math.max,Dt=Math.floor,Wt=Math.round;function Ht(t,e,n){e/=100,n/=100;var o=Dt(t=t/360*6),r=t-o,i=n*(1-e),a=n*(1-r*e),s=n*(1-(1-r)*e),c=o%6;return[255*[n,a,i,i,s,n][c],255*[s,n,n,a,i,i][c],255*[i,i,s,n,n,a][c]]}function Vt(t,e,n){var o,r,i=Ft(t/=255,e/=255,n/=255),a=Nt(t,e,n),s=a-i;if(0===s)o=r=0;else{r=s/a;var c=((a-t)/6+s/2)/s,l=((a-e)/6+s/2)/s,u=((a-n)/6+s/2)/s;t===a?o=u-l:e===a?o=1/3+c-u:n===a&&(o=2/3+l-c),o<0?o+=1:o>1&&(o-=1)}return[360*o,100*r,100*a]}function Gt(t,e,n,o){return e/=100,n/=100,H(Vt(255*(1-Ft(1,(t/=100)*(1-(o/=100))+o)),255*(1-Ft(1,e*(1-o)+o)),255*(1-Ft(1,n*(1-o)+o))))}function Yt(t,e,n){return e/=100,[t,(n/=100)+(e*=n<.5?n:1-n)?2*e/(n+e)*100:0,100*(n+e)]}function $t(t){return Vt.apply(void 0,H(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function Ut(){var t=function(t,e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e(~n?t.map((function(t){return Number(t.toFixed(n))})):t)}},e={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var n=[e.h,e.s,e.v,e.a];return n.toString=t(n,(function(t){return"hsva(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toHSLA:function(){var n=[].concat(H(function(t,e,n){var o=(2-(e/=100))*(n/=100)/2;return 0!==o&&(e=1===o?0:o<.5?e*n/(2*o):e*n/(2-2*o)),[t,100*e,100*o]}(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"hsla(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toRGBA:function(){var n=[].concat(H(Ht(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", ").concat(e.a,")")})),n},toCMYK:function(){var n=function(t,e,n){var o,r=Ht(t,e,n),i=r[0]/255,a=r[1]/255,s=r[2]/255;return[100*(1===(o=Ft(1-i,1-a,1-s))?0:(1-i-o)/(1-o)),100*(1===o?0:(1-a-o)/(1-o)),100*(1===o?0:(1-s-o)/(1-o)),100*o]}(e.h,e.s,e.v);return n.toString=t(n,(function(t){return"cmyk(".concat(t[0],"%, ").concat(t[1],"%, ").concat(t[2],"%, ").concat(t[3],"%)")})),n},toHEXA:function(){var t=function(t,e,n){return Ht(t,e,n).map((function(t){return Wt(t).toString(16).padStart(2,"0")}))}(e.h,e.s,e.v),n=e.a>=1?"":Number((255*e.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return n&&t.push(n),t.toString=function(){return"#".concat(t.join("").toUpperCase())},t},clone:function(){return Ut(e.h,e.s,e.v,e.a)}};return e}function Xt(t,e){var n=Ut.apply(void 0,H(function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;var e,n={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=function(t){return t.map((function(t){return/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0}))};t:for(var r in n)if(e=n[r].exec(t))switch(r){case"cmyk":var i=o(e),a=U(i,5),s=a[1],c=a[2],l=a[3],u=a[4];if(s>100||c>100||l>100||u>100)break t;return{values:Gt(s,c,l,u),type:r};case"rgba":var d=o(e),p=U(d,7),h=p[3],f=p[4],v=p[5],g=p[6];if(h>255||f>255||v>255||g<0||g>1)break t;return{values:[].concat(H(Vt(h,f,v)),[g]),a:g,type:r};case"hexa":var m=U(e,2)[1];4!==m.length&&3!==m.length||(m=m.split("").map((function(t){return t+t})).join(""));var y=m.substring(0,6),x=m.substring(6);return x=x?parseInt(x,16)/255:void 0,{values:[].concat(H($t(y)),[x]),a:x,type:r};case"hsla":var b=o(e),w=U(b,7),k=w[3],S=w[4],C=w[5],O=w[6];if(k>360||S>100||C>100||O<0||O>1)break t;return{values:[].concat(H(Yt(k,S,C)),[O]),a:O,type:r};case"hsva":var _=o(e),M=U(_,7),L=M[3],I=M[4],E=M[5],B=M[6];if(L>360||I>100||E>100||B<0||B>1)break t;return{values:[L,I,E,B],a:B,type:r}}return{values:null,type:null}}(t).values)).toRGBA();return"rgba(".concat(n[0].toFixed(0),",").concat(n[1].toFixed(0),",").concat(n[2].toFixed(0),",").concat(Number(n[3].toFixed(2))*e,")")}var Zt={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},Jt=function(t){return t.trim().toLowerCase().replace(t[0],t[0].toUpperCase())},Qt=function(t){return j(j(j(j({},"--".concat(t,"Color"),"var(--hi".concat(Jt(t),"Color,").concat(Zt[t],")")),"--".concat(t,"Color-hover"),"var(--hi".concat(Jt(t),"Color-hover,").concat(Xt(Zt[t],.6),")")),"--".concat(t,"Color-active"),"var(--hi".concat(Jt(t),"Color-active,").concat(Xt(Zt[t],.4),")")),"--".concat(t,"Color-outline"),"var(--hi".concat(Jt(t),"Color-outline,").concat(Xt(Zt[t],.15),")"))},qt=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":"var(--hiThemeColor,".concat(Zt.primary,")"),"--themeShadow":"var(--hiThemeShadow, ".concat(Xt(Zt.primary,.25),")"),"--themeBackground":"var(--hiThemeBackground,".concat(Zt.primary,")"),"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":"var(--hiLinkFontColor,".concat(Zt.primary,")"),"--fontSize14":"var(--hiFontSize14,14px)","--fontSize16":"var(--hiFontSize16,16px)","--fontSize20":"var(--hiFontSize20,20px)","--borderColor":"var(--hiBorderColor, rgba(102, 102, 102, 0.3))","--borderRadius":"var(--hiBorderRadius,4px)","--colorWhite":"#fff","--colorGray1":"#fafafa","--colorGray2":"#eee","--colorGray6":"#757575","--colorGray7":"#585858","--colorGray8":"#333","--colorNeutral02":"rgba(0,0,0,0.02)","--colorNeutral05":"rgba(0,0,0,0.05)","--colorNeutral1":"rgba(0,0,0,0.1)","--colorNeutral2":"rgba(0,0,0,0.2)","--colorNeutral3":"rgba(0,0,0,0.3)","--colorNeutral4":"rgba(0,0,0,0.4)","--colorNeutral5":"rgba(0,0,0,0.5)","--colorNeutral6":"rgba(0,0,0,0.65)","--colorNeutral7":"rgba(0,0,0,0.75)","--colorNeutral8":"rgba(0,0,0,0.85)","--colorBlack":"#000"},Qt("primary")),Qt("success")),Qt("error")),Qt("warning")),Qt("info"));var Kt,te,ee=function(){function t(){h(this,t),this.config={theme:qt,button:{radius:6,size:"default"},message:{top:10,radius:6,duration:2e3},notify:{radius:6,duration:5e3},modal:{radius:8},toast:{radius:8,duration:2e3},popup:{radius:12,width:630,height:630},float:{margin:12},captcha:{radius:8,margin:24},space:{gutter:12},actions:{radius:12,margin:16}},window.HiServe=window.HiServe||{},window.HiServe.IS_READY||(window.HiServe.IS_READY=!0,function(){if(!window.sessionStorage.getItem("HI_KITS_HELLO_CONSOLE")){var t="✰ hi-kits ✰",e="\n\ndocs: ".concat(atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA=="),"/hidoc/index.html \n\ngit: https://github.com/hi-kits/hi-kit\n\n如有任何意见和建议可在网站留言\n\n"),n="padding:5px 0",o="background:#0CF;"+n,r="background:#111;font-size:14px;color:#FFF;"+n,i="background:#CFF;"+n;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var a=["%c %c "+t+" %c %c"+e+"%c %c",o,r,o,i,o,"color:#000"];window.console.log.apply(console,a)}else window.console&&window.console.log(t+e);window.sessionStorage.setItem("HI_KITS_HELLO_CONSOLE","hello")}}(),window.localStorage.getItem("HI_ICONS")?window.HiServe.icons=JSON.parse(window.localStorage.getItem("HI_ICONS")):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,o){var r,i,a=e.async,s=void 0===a||a,c=e.beforeSend,l=void 0===c?function(){}:c,u=e.data,d=void 0===u?null:u,p=e.headers,h=void 0===p?{}:p,f=e.method,v=void 0===f?"get":f,g=e.responseType,m=void 0===g?"json":g,y=e.timeout,x=void 0===y?0:y,b=new XMLHttpRequest;if(b.open(v,t,s),x&&(r=window.setTimeout((function(){o(new Error("the xhr request timeout ".concat(x,"ms")))}),x)),b.onerror=function(){o(new Error("unknown error"))},b.onreadystatechange=function(){if(4===b.readyState)if(x&&void 0!==r&&clearTimeout(r),b.status>=200&&b.status<300)n(b);else{var t=new Error("the request is error");o(t)}},wt(d))try{i=JSON.stringify(d),h["content-type"]="application/json"}catch(t){o(t)}else(function(t){return"string"==typeof t})(d)&&(h["content-type"]="application/x-www-form-urlencoded");for(var w in h)b.setRequestHeader(w,h[w]);x&&(b.timeout=x),b.responseType=m,!1!==l(b)&&b.send(i)}))}("https:"+atob("Ly96anJzLmhhaWVyLm5ldA==")+"/download/hikits/icons.json",{responseType:"text"}).then((function(t){window.HiServe.icons=JSON.parse(t.responseText),window.localStorage.setItem("HI_ICONS",t.responseText)})))}return x(t,[{key:"install",value:function(t){}},{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config;for(var n in t){var o=t[n];wt(o)?this.config[n]&&this.init(o,e[n]):e[n]=o}}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}])}();function ne(t,e,n){return e=C(e),k(t,oe()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function oe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(oe=function(){return!!t})()}var re,ie,ae,se,ce,le,ue=t(Kt||(Kt=z(['\n:host .LoadBox{\n position: fixed;\n display: flex;\n justify-content: center;\n width: 100%;\n height: 100%;\n transform: translate3d(0,200vh,0);\n transition-property: transform;\n z-index: 2890;\n transition-duration: 0.35s;\n pointer-events:none;\n}\nslot {\n pointer-events:auto; \n}\n\n\n:host([show]) .LoadBox{\n transform: translate3d(0,0,0);\n}\n\n:host([dir="bottom"]) .LoadBox,\n:host([dir="top"]) .LoadBox {\n left: 0; height: auto;\n}\n:host([dir="bottom"]) .LoadBox {\n bottom: 0; transform: translate3d(0,150vh,0);\n}\n:host([show][dir="bottom"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n:host([dir="top"]) .LoadBox {\n top: 0; transform: translate3d(0,-150vh,0);\n}\n:host([show][dir="top"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n:host([dir="left"]) .LoadBox,\n:host([dir="right"]) .LoadBox {\n align-items: center; justify-content: normal; top:0; width: auto;\n}\n\n:host([dir="left"]) .LoadBox {\n left:0; transform: translate3d(-150vw,0,0);\n}\n:host([show][dir="left"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n\n:host([dir="right"]) .LoadBox {\n right: 0; transform: translate3d(150vw,0,0);\n}\n:host([show][dir="right"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n\n:host([dir="center"]) .LoadBox {\n left:0; \n right:0; \n top:0;\n bottom:0;\n align-items:center; \n opacity:0;\n transform: translate3d(0,0,0);\n}\n:host([show][dir="center"]) .LoadBox {\n opacity: 1;\n}\n\n']))),de=r(te||(te=z(["\n<h-mask \n ",' \n background="','" \n @click="','"\n @change="','"\n></h-mask>\n<div class="LoadBox" ',">\n <slot></slot>\n</div>\n"])),i("HIMask"),(function(t){return t.background}),(function(t){return t.close()}),(function(t){return t.closeChange()}),i("LoadBox")),pe=function(){function t(){var e;return h(this,t),(e=ne(this,t)).show=!1,ee.case.install([At]),e}return E(t,o),x(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?Rt(this.HIMask)("show"):Tt(this.HIMask)("show")}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"close",value:function(){Rt(this.HIMask)("show"),this.$emit("close")}},{key:"closeChange",value:function(){this.$emit("change")}}])}();function he(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",n=["%","em","rem","ex","ch","vh","vw","vmax","vmin","px","pt","pc","cm","mm","in","kHz","Hz","ms","s","dpi","dpcm","dppx","deg","grad","rad","turn"],o=!1,r=0;r<n.length;r++){var i=n[r];String(t).toLowerCase().indexOf(i)>-1&&(o=!0)}return o?t:t+e}function fe(t,e,n){return e=C(e),k(t,ve()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function ve(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ve=function(){return!!t})()}function ge(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}xt([a],pe.prototype,"HIMask",void 0),xt([a],pe.prototype,"LoadBox",void 0),xt([e({mode:"boolean"})],pe.prototype,"show",void 0),xt([jt],pe.prototype,"showChanged",null),xt([e],pe.prototype,"dir",void 0),xt([e],pe.prototype,"background",void 0),pe=xt([n({name:"h-load",styles:ue,template:de,shadowOptions:{mode:"closed"}})],pe);var me=t(re||(re=z(['\n:host .LoadBox{\n position: fixed;\n display: flex;\n justify-content: center;\n width: 100%;\n height: 100%;\n transform: translate3d(0,200vh,0);\n z-index: 2890;\n transition:all 0.35s;\n pointer-events:none;\n}\nslot {\n pointer-events:auto; \n}\n\n\n:host([show]) .LoadBox{\n transform: translate3d(0,0,0);\n}\n\n:host([dir="bottom"]) .LoadBox,\n:host([dir="top"]) .LoadBox {\n left: 0; height: auto;\n}\n:host([dir="bottom"]) .LoadBox {\n bottom: 0; transform: translate3d(0,150vh,0);\n}\n:host([show][dir="bottom"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n:host([dir="top"]) .LoadBox {\n top: 0; transform: translate3d(0,-150vh,0);\n}\n:host([show][dir="top"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n:host([dir="left"]) .LoadBox,\n:host([dir="right"]) .LoadBox {\n align-items: center; justify-content: normal; top:0; width: auto;\n}\n\n:host([dir="left"]) .LoadBox {\n left:0; transform: translate3d(-150vw,0,0);\n}\n:host([show][dir="left"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n\n:host([dir="right"]) .LoadBox {\n right: 0; transform: translate3d(150vw,0,0);\n}\n:host([show][dir="right"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n\n:host([dir="center"]) .LoadBox {\n left:0; \n right:0; \n top:0;\n bottom:0;\n align-items:center; \n opacity:0;\n transform: translate3d(0,0,0);\n}\n:host([show][dir="center"]) .LoadBox {\n opacity: 1;\n}\n\n']))),ye=r(ie||(ie=z(["\n<h-mask \n ",' \n background="','" \n @click="','"\n @change="','"\n></h-mask>\n<div class="LoadBox" ',">\n <slot></slot>\n</div>\n"])),i("HIMask"),(function(t){return t.background}),(function(t){return t.clickFn()}),(function(t){return t.changeFn()}),i("LoadBox")),xe=function(){function t(){var e;return h(this,t),(e=fe(this,t)).show=!1,ee.case.install([At]),e}return E(t,o),x(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?Rt(this.HIMask)("show"):Tt(this.HIMask)("show")}},{key:"connectedCallback",value:function(){ge(t,"connectedCallback",this,3)([])}},{key:"clickFn",value:function(){this.$emit("click")}},{key:"changeFn",value:function(){this.$emit("change")}}])}();xt([a],xe.prototype,"HIMask",void 0),xt([a],xe.prototype,"LoadBox",void 0),xt([e({mode:"boolean"})],xe.prototype,"show",void 0),xt([jt],xe.prototype,"showChanged",null),xt([e],xe.prototype,"dir",void 0),xt([e],xe.prototype,"background",void 0),xe=xt([n({name:"h-enter",styles:me,template:ye,shadowOptions:{mode:"closed"}})],xe);var be=t(ae||(ae=z(["\n.Border{\n -webkit-mask-size: 100%;\n -webkit-mask-position: 0;\n -webkit-mask-repeat: no-repeat;\n}\n"]))),we=r(se||(se=z(['\n<div class="Border" ',"></div>\n"])),i("Border")),ke=function(){function t(){var e;return h(this,t),(e=fe(this,t)).dasharray="10 10",e}return E(t,o),x(t,[{key:"connectedCallback",value:function(){ge(t,"connectedCallback",this,3)([]),this.setSvg()}},{key:"attributeChangedCallback",value:function(e,n,o){ge(t,"attributeChangedCallback",this,3)([e,n,o]),this.setSvg()}},{key:"setSvg",value:function(){var t=this.border/2,e=Math.min(this.width,this.height),n=2*this.radius>e?e/2:this.radius,o='<svg width="'.concat(he(this.width),'" height="').concat(he(this.height),'" viewBox="0 0 ').concat(this.width," ").concat(this.height,'" version="1.1" xmlns="http://www.w3.org/2000/svg"><g stroke="none" stroke-width="').concat(this.border,'" fill="none" fill-rule="evenodd"><rect x="').concat(t,'" y="').concat(t,'" width="').concat(this.width-this.border,'" height="').concat(this.height-this.border,'" rx="').concat(n,'" stroke="#000" ').concat(this.dashed?'stroke-dasharray="'.concat(this.dasharray,'"'):"","></rect></g></svg>");Ct(this.Border)({width:he(this.width),height:he(this.height),"border-radius":he(n),"background-image":this.color,"-webkit-mask-image":"url(data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(o),")")})}}])}();xt([a],ke.prototype,"Border",void 0),xt([e({converter:s})],ke.prototype,"width",void 0),xt([e({converter:s})],ke.prototype,"height",void 0),xt([e],ke.prototype,"color",void 0),xt([e({converter:s})],ke.prototype,"border",void 0),xt([e({mode:"boolean"})],ke.prototype,"dashed",void 0),xt([e],ke.prototype,"dasharray",void 0),xt([e({converter:s})],ke.prototype,"radius",void 0),ke=xt([n({name:"h-border",styles:be,template:we,shadowOptions:{mode:"closed"}})],ke);var Se,Ce,Oe=t(ce||(ce=z(["\n","\n","\n:host{\n position:fixed;\n left:0;\n top:0;\n right:0;\n bottom:0;\n visibility:hidden;\n transition-duration:0.35s;\n opacity:0;\n z-index:3100; \n}\n:host([show]){\n visibility:visible;\n opacity:1;\n}\n:host([show]) .Overlay{\n opacity:1!important;\n}\n:host .Overlay {\n position:relative;\n margin:auto;\n display:flex;\n align-items:center;\n justify-content:center;\n z-index:10; \n}\n"])),function(){var t="",e=ee.case.config.theme;for(var n in e)n&&(t+="".concat(n,":").concat(e[n],";"));return":host,:root{".concat(t,"} .Visibility{visibility:hidden} ").concat(function(t){var e={Cursor:"cursor:pointer",PoiNo:"pointer-events:none",PoiAll:"pointer-events:all",Opa0:"opacity:0",Opa1:"opacity:1",Inset:"inset:0",Content:"content:''",PosR:"position:relative",PosA:"position:absolute",PosF:"position:fixed",OH:"overflow:hidden",OA:"overflow:auto",VisHi:"visibility:hidden",VisVi:"visibility:visible",DisBlock:"display:block",DisInBlock:"display:inline-block",DisIn:"display:inline",DisFlex:"display:flex",DisGrid:"display:grid",DisNo:"display:none",DisNoIm:"display:none!important",WS:"white-space:nowrap",WW:"word-wrap:break-word;word-break:normal",WB:"word-break:break-all",TEll:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis",BCover:"background-color:#eee;background-position:center;background-repeat:no-repeat;background-size:cover",TL:"text-align:left",TR:"text-align:right",TC:"text-align:center"},n="";if(t&&kt(t))for(var o=0;o<t.length;o++)n+="".concat(e[t[o]],";");else for(var r in n+="\n :host{white-space:normal;line-height:18px;text-align:initial;}\n h1,h2,h3,h4,h5,h6,hr,p,dl,dt,dd,ul,ol,li,form,legend,button,input,textarea,th,td{margin:0;padding:0;}\n ul,ol{list-style:none;}\n table{border-collapse:collapse;border-spacing:0;}\n h1,h2,h3,h4,h5,h6,button,input,select,textarea{font-size:100%;} \n img{border:0;margin:0;}\n *{\n -webkit-text-size-adjust:none;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n }\n *,*:before,*:after{\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n -ms-box-sizing:border-box;\n box-sizing:border-box;\n }\n [tabindex=\"-1\"]:focus{outline:none!important}\n :host([disabled]),[disabled],.disabled{opacity:.65;pointer-events:none;cursor:not-allowed!important;}\n .Entry{transition:all 0.3s ease 0s}\n .Entry:focus{box-shadow:0 0 0 3px var(--themeShadow);outline:0;}\n .Entry:focus,.Entry:hover{border-color:var(--themeColor)!important;border-right-width:1px;}\n .Track:before{content:'';position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:rgb(0 255 3 / 32%);z-index:1;}\n ",e)Object.prototype.hasOwnProperty.call(e,r)&&(n+=".".concat(r,"{").concat(e[r],"}"));return n}())}(),function(t){return":host([hidden]),:host([hide]){display:none}:host{display:".concat(t,"}")}("flex")),_e=r(le||(le=z(["\n<h-mask ",' \n @click="','"\n @change="','"\n></h-mask>\n\n<div class="Overlay PosF OH" style="opacity:0;">\n <slot></slot>\n</div>\n'])),i("Mask"),(function(t){return t.close()}),(function(t){return t.close()})),Me=function(){function t(){var e;return h(this,t),(e=fe(this,t)).mode="auto",e.show=!1,ee.case.install([At]),e}return E(t,o),x(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?Rt(this.Mask)("show"):Tt(this.Mask)("show")}},{key:"connectedCallback",value:function(){ge(t,"connectedCallback",this,3)([])}},{key:"close",value:function(){"auto"==this.mode&&(this.show=!1)}}])}();function Le(t,e,n){return e=C(e),k(t,Ie()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function Ie(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ie=function(){return!!t})()}xt([a],Me.prototype,"Mask",void 0),xt([e],Me.prototype,"mode",void 0),xt([e({mode:"boolean"})],Me.prototype,"show",void 0),Me=xt([n({name:"h-overlay",styles:Oe,template:_e})],Me);var Ee=t(Se||(Se=z(['\n:host{\n position: absolute;\n pointer-events: none;\n width: 22px;\n height: 22px;\n --arrow-background-color: currentColor;\n}\n.ArrowWrap {\n position: absolute;\n z-index: 2;\n display: block;\n width: 22px;\n height: 22px;\n overflow: hidden;\n background: transparent;\n pointer-events: none\n}\n.Arrow {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n width: 11.3137085px;\n height: 11.3137085px;\n margin: auto;\n border-radius:0 0 2px;\n pointer-events: none;\n box-shadow: 3px 3px 7px rgb(0 0 0 / 7%);\n transform: translateY(-11px) rotate(45deg);\n}\n.Arrow:before {\n position: absolute;\n top: -11.313709px;\n left: -11.54px;\n width: 33.9411255px;\n height: 33.9411255px;\n background: var(--arrow-background-color);\n content: "";\n -webkit-clip-path: path("M 9.849242 24.091883092036785 A5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 24.091883 9.849242404917499 L 9.849242404917499 24.091883 Z");\n clip-path: path("M 9.849242 24.091883092036785 A5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 24.091883 9.849242404917499 L 9.849242404917499 24.091883 Z");\n}\n:host([dir="top"]){\n transform: rotate(360deg);\n left: 50%;\n margin-left: -11px;\n bottom: -22px;\n}\n:host([dir="right"]){\n transform: rotate(90deg);\n left: -22px;\n top: 50%;\n margin-top: -11px;\n}\n:host([dir="left"]){\n transform: rotate(270deg);\n right: -22px;\n top: 50%;\n margin-top: -11px;\n}\n:host([dir="bottom"]){\n top: -22px;\n left: 50%;\n transform: rotate(180deg);\n margin-left: -11px;\n}\n\n:host([dir="topleft"]){\n left:10px;\n bottom: -22px;\n}\n:host([dir="topright"]){\n right:10px;\n bottom: -22px;\n}\n\n:host([dir="righttop"]),\n:host([dir="rightbottom"]){\n transform: rotate(90deg);\n left: -22px;\n}\n:host([dir="righttop"]) {\n top: 10px;\n}\n:host([dir="rightbottom"]){\n bottom: 10px;\n}\n:host([dir="bottomleft"]),\n:host([dir="bottomright"]){\n top: -22px;\n transform: rotate(180deg);\n}\n:host([dir="bottomleft"]){\n left: 10px;\n}\n:host([dir="bottomright"]){\n right: 10px;\n}\n\n:host([dir="lefttop"]),\n:host([dir="leftbottom"]) {\n right: -22px;\n transform: rotate(270deg);\n}\n:host([dir="lefttop"]) {\n top: 10px;\n\n}\n:host([dir="leftbottom"]){\n bottom: 10px;\n}\n\n\n\n']))),Be=r(Ce||(Ce=z(['\n<div class="ArrowWrap">\n <span class="Arrow"></span>\n</div>\n']))),ze=function(){function t(){var e;return h(this,t),(e=Le(this,t)).dir="top",e}return E(t,o),x(t,[{key:"colorChanged",value:function(t,e){Ct(this)({color:e})}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}}])}();xt([e],ze.prototype,"dir",void 0),xt([e],ze.prototype,"color",void 0),ze=xt([n({name:"h-arrow",styles:Ee,template:Be,shadowOptions:{mode:"closed"}})],ze);var Ae=function(t,e,n,o){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},Pe=function(t,e,n,o){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null},je=function(){return x((function t(){var e=this;if(h(this,t),this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=function(){void 0!==e.previousBodyPaddingRight&&(document.body.style.paddingRight=e.previousBodyPaddingRight,e.previousBodyPaddingRight=void 0),void 0!==e.previousBodyOverflowSetting&&(document.body.style.overflow=e.previousBodyOverflowSetting,document.documentElement.style.overflow=e.previousBodyOverflowSetting,e.previousBodyOverflowSetting=void 0)},this.handleScroll=function(t,n){var o=t.targetTouches[0].clientY-e.initialClientY;return!e.allowTouchMove(t.target)&&(n&&0===n.scrollTop&&o>0||e.isTargetElementTotallyScrolled(n)&&o<0?e.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){var n={get passive(){this.hasPassiveEvents=!0}};Ae(window,"testPassive",null,n),Pe(window,"testPassive",null,n)}}),[{key:"isTargetElementTotallyScrolled",value:function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}},{key:"allowTouchMove",value:function(t){this.locks.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))}},{key:"preventDefault",value:function(t){var e=t||window.event;return!(!this.allowTouchMove||!this.allowTouchMove(e.target))||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))}},{key:"setOverflowHidden",value:function(t){if(void 0===this.previousBodyPaddingRight){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;e&&n>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}},{key:"disable",value:function(t,e){var n=this;if(t){if(!this.locks.some((function(e){return e.targetElement===t}))){var o={targetElement:t,options:e||{}};this.locks=[].concat(H(this.locks),[o]),this.isIosDevice?(t.ontouchstart=function(t){1===t.targetTouches.length&&(n.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&n.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}},{key:"clearAll",value:function(){this.isIosDevice?(this.locks.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(Pe(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}},{key:"enable",value:function(t){t?(this.locks=this.locks.filter((function(e){return e.targetElement!==t})),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(Pe(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}])}(),Te=new je;function Re(t,e,n){var o=n.value;return n.value=function(t,e){return null===e||!1===e?Te.enable(document.body):Te.disable(document.body),o.apply(this,arguments)},n}var Fe,Ne,De,We,He=function(){function t(){var e=this;h(this,t),"classList"in document.documentElement?(this.has=function(t,e){return t.classList.contains(e)},this.add=function(t,e){for(var n=e.split(" "),o=0;o<n.length;o++)void 0!==t.classList&&t.classList.add(n[o])},this.remove=function(t,e){if(t)for(var n=e.split(" "),o=0;o<n.length;o++)void 0!==t.classList&&t.classList.remove(n[o])}):(this.has=function(t,n){return e.classReg(n).test(t.className)},this.add=function(t,n){e.has(t,n)||(t.className=t.className+" "+n)},this.remove=function(t,n){t.className=t.className.replace(e.classReg(n)," ")})}return x(t,[{key:"classReg",value:function(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}},{key:"toggle",value:function(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}],[{key:"instance",get:function(){return this._instance||(this._instance=new t),this._instance}}])}();function Ve(t){if("string"==typeof t)return String(t).replace(/(^\s*)|(\s*$)/g,"").replace(/\u200B/g,"");if("[object Array]"===Object.prototype.toString.call(t))return t.forEach((function(t){t=Ve(t)})),t;if("[object Object]"!==Object.prototype.toString.call(t)||null==t)return t;for(var e in t)t[e]=Ve(t[e]);return t}function Ge(t){return function(e,n){if(dt(e))for(var o in e)Ye(t)(o,e[o]);if("string"==typeof e){if(/:/g.test(e))e.split(";").forEach((function(e){var n=(e=Ve(e)).split(":");Ye(t)(n[0],n[1])}));else Ye(t)(e,n)}}}function Ye(t){return function(e,n){if(t){if(void 0===n)return window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=n}}}function $e(t){var e=null;return function(n,o,r){var i=r.value;return r.value=function(){for(var n=this,o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];e&&clearTimeout(e),e=setTimeout((function(){i.apply(n,r)}),t)},r}}function Ue(t,e,n){return e=C(e),k(t,Xe()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function Xe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Xe=function(){return!!t})()}var Ze=r(Fe||(Fe=z(['\n<div class="ConflateWrap">\n <div class="Bg"></div>\n <div class="VideoBox">\n <div class="VideoWrap" ',">\n ","\n </div>\n </div>\n <div ",' class="Content transit">\n <div class="Title">\n <img src="','/download/img/collect/title03.png"/>\n </div>\n <div class="Icon ','">\n <div><img src="','/download/img/collect/icon03.png"/><p class="TEll">2.5抽奖次数+1</p></div>\n <span class="','">\n ','\n </span>\n <div><img src="','/download/img/collect/icon02.png"/><p class="TEll">iHaier新年头像框</p></div>\n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n <div class="Notes">\n ',"\n <p>iHaier新年头像框将通过您的iHaier发放</p>\n </div>\n </div>\n </div>\n"])),i("aniImg"),c((function(t,e){return t.ImgList}),r(Ne||(Ne=z(['<img src="','" style="z-index:','" />'])),(function(t){return t.img}),(function(t){return t.index})),{positioning:!0}),i("contentWrap"),mt.path,(function(t){return t.isCoupon?"":"Two"}),mt.path,(function(t){return t.isCoupon?"Coupon":""}),l((function(t){return t.isCoupon}),r(De||(De=z(['<div><img src="','"/><p class="TEll">',"</p></div>\n "])),(function(t){return t.prizeImg}),(function(t){return t.prizeName}))),mt.path,(function(t){return t.accept()}),mt.path,l((function(t){return t.isCoupon}),r(We||(We=z(["<p>优惠券可在【我的奖品-商城卡券】中查看</p>"]))))),Je=function(){function t(){var e;return h(this,t),(e=Ue(this,t)).isCoupon=!1,e.prizeName="",e.prizeQuota="",e.prizeImg="https://zjrs.haier.net/download/img/collect/coupon.png",e.ImgList=Array.from({length:45},(function(t,e){return{index:80-e,img:mt.path+"/download/img/collect/conflate/000"+(e<10?"0":"")+e+".jpg"}})),e.isClick=!1,e.index=0,e.row=0,e.col=0,ft.case.install([Me]),e}return E(t,o),x(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?He.instance.remove(this.contentWrap,"show"):this.init()}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([]),Ge(this.aniImg)("transform","scale("+document.documentElement.clientWidth/720+")")}},{key:"isIphone",value:function(){return/iPhone/.test(navigator.userAgent)&&/Mobile/.test(navigator.userAgent)}},{key:"init",value:function(){var t=this;736==screen.height&&414==screen.width&&this.isIphone()||667==screen.height&&375==screen.width&&this.isIphone()?(this.ImgList=[{index:80,img:mt.path+"/download/img/collect/conflate/loop.webp"}],He.instance.add(this.contentWrap,"show"),setTimeout((function(){t.isClick=!0}),10)):(this.ImgList.push({index:10,img:mt.path+"/download/img/collect/conflate/loop.webp"}),this.timer=setInterval((function(){t.play()}),80),setTimeout((function(){He.instance.add(t.contentWrap,"show")}),1500),setTimeout((function(){t.isClick=!0}),3500))}},{key:"resize",value:function(){window.outerWidth/window.outerHeight>=.4614121510673235?(this.video.style.width="100%",this.video.style.height=""):(this.video.style.height="100%",this.video.style.width="")}},{key:"accept",value:function(){this.isClick&&(this.close(),this.$emit("change","accept"))}},{key:"play",value:function(){this.aniImg.children[0]&&this.aniImg.children[0].remove(),this.index++,45===this.index&&(clearInterval(this.timer),this.index=0)}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){t&&t.prizeId&&(this.prizeName=t.prizeName,this.prizeImg=t.prizeImg,this.prizeQuota=t.prizeQuota,this.isCoupon=!0)}}])}();A([a],Je.prototype,"Overlay",void 0),A([a],Je.prototype,"video",void 0),A([a],Je.prototype,"contentWrap",void 0),A([a],Je.prototype,"isCoupon",void 0),A([a],Je.prototype,"prizeName",void 0),A([a],Je.prototype,"prizeQuota",void 0),A([a],Je.prototype,"prizeImg",void 0),A([a],Je.prototype,"aniImg",void 0),A([a],Je.prototype,"ImgList",void 0),A([e({mode:"boolean"})],Je.prototype,"show",void 0),A([Re],Je.prototype,"showChanged",null),A([$e(300)],Je.prototype,"accept",null),Je=A([n({name:"g-collect-conflate",template:Ze,styles:yt})],Je);var Qe,qe=new(function(){function t(){h(this,t),this.isMobile=!1,this.size=375,this.pageSize=function(){var t=0,e=0;window.innerHeight&&window.scrollMaxY?(t=window.innerWidth+window.scrollMaxX,e=window.innerHeight+window.scrollMaxY):document.body.scrollHeight>document.body.offsetHeight?(t=document.body.scrollWidth,e=document.body.scrollHeight):document.body&&(t=document.body.offsetWidth,e=document.body.offsetHeight);var n=0,o=0;return window.innerHeight?(n=window.innerWidth,o=window.innerHeight):document.documentElement&&document.documentElement.clientHeight?(n=document.documentElement.clientWidth,o=document.documentElement.clientHeight):document.body&&(n=document.body.clientWidth,o=document.body.clientHeight),{PageW:t<n?n:t,PageH:e<o?o:e,WinW:n,WinH:o}}(),this.isMobile=this.pageSize.PageW<768}return x(t,[{key:"toVw",value:function(t){return this.isMobile?"".concat(t/this.size*100,"vw"):"".concat(t,"px")}},{key:"toPerce",value:function(t){return"".concat(t/this.size*100,"%")}},{key:"toPx",value:function(t){return"".concat(this.pageSize.PageW/this.size*t,"px")}},{key:"toEm",value:function(t){return"".concat(t/10,"em")}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}])}()),Ke=t(Qe||(Qe=z(["\n","\n.ListWrap{\ndisplay:flex;\nwidth:100%;\npadding:0 0 0 3.2vw;\nmargin:0 auto;\n}\n.CardBox{width:",";overflow: hidden;\noverflow-x: auto;position:relative;}\n.CardBox::-webkit-scrollbar{display:none}\n.CardWrap{display:inline-flex}\n.CardWrap div.Card{\nwidth:",";\nheight:",";\nmargin: 0 ",";\n}\n.CardWrap div.Card img {height:100%;width:100%}\n.Synthesis{\nposition:relative;\nwidth:22.4vw;height:22.4vw;margin:0 1vw 0 -1vw;\n}\n.Synthesis::after{content:'';width:16px;position:absolute;height:100%;top:0;right:-16px; z-index:99; background-image: linear-gradient(269deg, rgba(239,67,69,0.00) 0%, #EF4345 67%);}\n.Synthesis .Tips{position:absolute;left:0;top:-6.5vw;z-index:6; width:35.2vw;}\n.Synthesis .Svga,\n.Synthesis .Img,\n.Synthesis video {\nposition: absolute;left:0;top:0;\nwidth:22.4vw;height:22.4vw;\nmargin:-2vw 0 0;\n}\n.Synthesis .Img {z-index:2; opacity: 0.8;}\n.Synthesis .Svga{z-index:3;","}\n.Synthesis video{z-index:3;","}\nh-badge{right:6px;top:6px;}\n"])),vt(),qe.toVw(279),qe.toVw(56),qe.toVw(76),qe.toVw(5),ht(["PoiNo"]),ht(["PoiNo"])),tn={exports:{}};!function(t){var e=g.exports.default;function n(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
3
|
-
t.exports=n=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var o,r={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function p(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(o){p=function(t,e,n){return t[e]=n}}function h(t,e,n,o){var r=e&&e.prototype instanceof b?e:b,i=Object.create(r.prototype),a=new P(o||[]);return s(i,"_invoke",{value:E(t,n,a)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var v="suspendedStart",g="suspendedYield",m="executing",y="completed",x={};function b(){}function w(){}function k(){}var S={};p(S,l,(function(){return this}));var C=Object.getPrototypeOf,O=C&&C(C(j([])));O&&O!==i&&a.call(O,l)&&(S=O);var _=k.prototype=b.prototype=Object.create(S);function M(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,n){function o(r,i,s,c){var l=f(t[r],t,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==e(d)&&a.call(d,"__await")?n.resolve(d.__await).then((function(t){o("next",t,s,c)}),(function(t){o("throw",t,s,c)})):n.resolve(d).then((function(t){u.value=t,s(u)}),(function(t){return o("throw",t,s,c)}))}c(l.arg)}var r;s(this,"_invoke",{value:function(t,e){function i(){return new n((function(n,r){o(t,e,n,r)}))}return r=r?r.then(i,i):i()}})}function E(t,e,n){var r=v;return function(i,a){if(r===m)throw Error("Generator is already running");if(r===y){if("throw"===i)throw a;return{value:o,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=I(s,n);if(c){if(c===x)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===v)throw r=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=m;var l=f(t,e,n);if("normal"===l.type){if(r=n.done?y:g,l.arg===x)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=y,n.method="throw",n.arg=l.arg)}}}function I(t,e){var n=e.method,r=t.iterator[n];if(r===o)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=o,I(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),x;var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,x;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=o),e.delegate=null,x):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,x)}function B(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(B,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(a.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=o,e.done=!0,e};return i.next=i}}throw new TypeError(e(t)+" is not iterable")}return w.prototype=k,s(_,"constructor",{value:k,configurable:!0}),s(k,"constructor",{value:w,configurable:!0}),w.displayName=p(k,d,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,p(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},r.awrap=function(t){return{__await:t}},M(L.prototype),p(L.prototype,u,(function(){return this})),r.AsyncIterator=L,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new L(h(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},M(_),p(_,d,"Generator"),p(_,l,(function(){return this})),p(_,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),n=[];for(var o in e)n.push(o);return n.reverse(),function t(){for(;n.length;){var o=n.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},r.values=j,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=o)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return s.type="throw",s.arg=t,e.next=n,r&&(e.method="next",e.arg=o),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var i=r?r.completion:{};return i.type=t,i.arg=e,r?(this.method="next",this.next=r.finallyLoc,x):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),x},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),x}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;A(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:j(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=o),x}},r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(tn);var en=tn.exports(),nn=en;try{regeneratorRuntime=en}catch(t){"object"===("undefined"==typeof globalThis?"undefined":m(globalThis))?globalThis.regeneratorRuntime=en:Function("r","regeneratorRuntime = r")(en)}function on(t,e,n){return e=C(e),k(t,rn()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function rn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(rn=function(){return!!t})()}var an,sn,cn=function(){function t(){var e;return h(this,t),(e=on(this,t,arguments)).disabled=!1,e}return I(t,o),x(t,[{key:"colorChanged",value:function(t,e){Ct(this)({color:e})}},{key:"sizeChanged",value:function(t,e){for(var n=0;n<this.children.length;n++){Tt(this.children[n])("size",this.size)}}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"injection",value:function(t){t&&t(this)}},{key:"setValueFn",value:function(t,e){this[t+"Changed"]("",e)}},{key:"update",value:function(t,e){e&&e(t)}},{key:"childrenFn",value:function(t){var e=this.children.length;if(e>0){for(var n=0;n<e;n++){var o=this.children[n];0==n?Tt(o)("first"):n+1==e&&Tt(o)("last"),Tt(o)("index",String(n))}t&&t()}}}])}();function ln(t,e,n){return e=C(e),k(t,un()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function un(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(un=function(){return!!t})()}xt([e],cn.prototype,"color",void 0),xt([e],cn.prototype,"size",void 0),xt([e({mode:"boolean"})],cn.prototype,"disabled",void 0);var dn,pn,hn,fn=function(){return x((function t(){h(this,t),this.timeOut=0}),[{key:"init",value:function(t){var e,n,o=this;e=setInterval((function(){n="string"==typeof t.front?window[t.front]:t.front(),o.timeOut++,(o.timeOut>=60||n)&&(clearInterval(e),t.callback())}),50)}}])}(),vn=t(an||(an=A(["\n:host{\n overflow: hidden;\n display: inline-block;\n position: relative;\n}\n:host span{\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\ndiv{\n width: 100%;\n height: 100%;\n}\n"]))),gn=r(sn||(sn=A(["\n<template>\n<span>\n <div ","></div>\n</span>\n</template>\n"])),i("SVGAPlayer")),mn=function(){function t(){return h(this,t),ln(this,t,arguments)}return I(t,cn),x(t,[{key:"pathChanged",value:function(t,e){e&&this.loadSvga()}},{key:"connectedCallback",value:function(){(function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r})(t,"connectedCallback",this,3)([]),this.loadSvga()}},{key:"loadSvga",value:function(){return function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))}(this,void 0,void 0,nn.mark((function t(){var e,n,o=this;return nn.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e=atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA==")+"/download/cdn/svga.min.js",new Promise((function(t,n){if(void 0!==e){var o=new fn,r=e.substring(e.lastIndexOf(".")+1),i=document.getElementsByTagName("head")[0];if(document.querySelectorAll('script[src*="'+e+'"]').length<=0){if("js"===r){var a=document.createElement("script");a.src=e,a.type="text/javascript",i.appendChild(a),a.onload=a.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||t(!0)}}else if("css"===r){var s=document.createElement("link");s.href=e,s.rel="stylesheet",s.type="text/css",i.appendChild(s)}}else o.init({front:String("SVGA"),callback:function(){t(!0)}})}else n(!1)}));case 2:n=new SVGA.Player(this.SVGAPlayer),new SVGA.Parser(this.SVGAPlayer).load(this.path,(function(t){o.height=t.videoSize.height,o.width=t.videoSize.width,o.$emit("change",{height:t.videoSize.height,width:t.videoSize.width}),n.setVideoItem(t),n.startAnimation()}));case 4:case"end":return t.stop()}}),t,this)})))}}])}();function yn(t,e,n){return e=C(e),k(t,xn()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function xn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(xn=function(){return!!t})()}xt([a],mn.prototype,"SVGAPlayer",void 0),xt([e],mn.prototype,"path",void 0),xt([e({converter:s})],mn.prototype,"width",void 0),xt([e({converter:s})],mn.prototype,"height",void 0),mn=xt([n({name:"h-svga",styles:vn,template:gn})],mn);var bn,wn=r(dn||(dn=A(['\n<section class="ListWrap">\n <div class="Synthesis">\n <span>\n ','\n </span>\n <img class="Img ','" src="','/download/img/collect/synthesis.png" />\n </div>\n <div class="CardBox">\n <span class="CardWrap">\n ',"\n </span>\n </div>\n</section>\n"])),l((function(t){return t.isVideo}),r(pn||(pn=A(['<div style="position:absolute; z-index:4; display: block;height: 100%;width: 100%;" @click="','"> <h-svga class="Svga" path="','/download/img/collect/hecheng.svga"></h-svga><img class="Tips" src="','/download/img/collect/tips.png" /></div>'])),(function(t){return t.SynthesisFn()}),location.href.indexOf(atob("eXMtempycw=="))>-1?mt.pathys:mt.path,mt.path)),(function(t){return t.isVideo?"hide":""}),mt.path,c((function(t){return t.cardItem}),r(hn||(hn=A(['<div class="Card">\n <img src="','"/></div>'])),(function(t){return t.total>0?t.card:t.grey})),{positioning:!0})),kn=function(){function t(){var e;return h(this,t),(e=yn(this,t)).isVideo=!1,e.cardItem=Array.from({length:6},(function(t,e){return{card:"".concat(mt.path,"/download/img/collect/small0").concat(e+1,".png"),grey:"".concat(mt.path,"/download/img/collect/small0").concat(e+1,"-1.png")}})),ft.case.install([mn]),e}return I(t,o),x(t,[{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"SynthesisFn",value:function(){this.$emit("change","synthesis")}},{key:"revert",value:function(){this.isVideo=!1,this.cardItem=Array.from({length:4},(function(t,e){return{card:"".concat(mt.path,"/download/img/collect/small0").concat(e+1,".png"),grey:"".concat(mt.path,"/download/img/collect/small0").concat(e+1,"-1.png")}}))}},{key:"update",value:function(t){if(t&&t.isRevert)this.revert();else if(t&&t.cardList){for(var e=Array.from({length:4}),n=0;n<t.cardList.length;n++){var o=t.cardList[n];e[o.cardType-1]={total:o.cardNum,card:"".concat(mt.path,"/download/img/collect/small0").concat(o.cardType,".png"),grey:"".concat(mt.path,"/download/img/collect/small0").concat(o.cardType,"-1.png")}}this.cardItem=e,this.isVideo=t.isCanCompose}}}])}();P([a],kn.prototype,"isVideo",void 0),P([a],kn.prototype,"cardItem",void 0),P([$e(300)],kn.prototype,"SynthesisFn",null),kn=P([n({name:"g-collect-list",template:wn,styles:Qe,shadowOptions:{mode:"closed"}})],kn);var Sn=t(bn||(bn=A(["\n","\n:host{text-align:center;display:none}\n:host([show]){display:block}\n.VideoWrap{position:absolute;display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\n.PrizeWrap {position:fixed;top:0;left:0;width:100vw;height:100vh;display:block;z-index:3100;background:rgba(0, 0, 0, 0.4);}\n.PrizeWrap .Content{position:relative; z-index:60;height:100%;\n padding-top: 20vw;text-align:center;","\n}\n.PrizeWrap .Title img{\n height:17.0666666666vw\n}\n.PrizeWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.PrizeWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 12px;\ncolor: #FFF1D8;\nline-height: 18px;\nfont-weight: 400;\n}\n\n\n.Conten{position:fixed;top:0;left:0;width:100vw;height:100vh; z-index:2;display:block;}\n.Conten .Bg{position:fixed;top:0;left:0;width:100%;height:100%;\n background:url(","/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.Conten .Img{position: absolute; overflow:hidden;\nz-index:99;left:20vw;top:50vw; \nwidth:60vw;\nheight:70vw;}\n.Conten .Light{position: absolute;top: 0;",'\n bottom: 0;width:100%; overflow:hidden;\n left: 0;z-index:30;\n border-radius:8vw;}\n.Conten .Light::after{\n content: "";\n background-color: #fff9;\n opacity: 0.6;\n top: -25%;\n bottom: 0;\n left: -100%;\n position: absolute;\n width: 13vw;\n height:150%;\n box-shadow: 0 0 10vmin 2.5vmin #fff;\n transform:rotateZ(145deg);\n transition: all 05s ease;\n animation-duration: 0.5s;\n animation-delay: 1s;\n animation-name: Light\n}\n\n.Conten .Img .Card {width:100%;height:100%}\n@keyframes Light{\n to{\n left: 400px;\n transition: left 0.5s ease 0s;\n }\n}\n\n@keyframes zoomInUp {\n from {opacity: 0;transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.49)}\n 60% {opacity: 1;transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -20px, 0);animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.5)}\n}\n.zoomInUp {animation-duration: 1s;\n animation-fill-mode: both;animation-name: zoomInUp}\n\n.CouponWrap {position:relative;}\n.CouponWrap .Info{position:absolute;width:100%;top:14.4vw;left:0;z-index:20;text-align:center;}\n.VideoWrap .Bg,\n.CouponWrap .Bg{position:fixed;top:0;left:0;width:100%;height:100%;\n background:url(',"/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.Coupon{width:100%;height:70vw;position:relative;z-index:9;}\n\n.Button{position:absolute;width:100%;bottom:30vw;text-align:center;","}\n.Button img{height:20.26666666vw}\n\n.transit{display:none; ","}\n.show.transit{display:block;","}\n\n.Cache{display:none;position:absolute;bottom:-10px;left:-10px;z-index:-10}\n.Cache img{width:1px;height:1px;}\n\n\n@media screen and (max-height : 210vw) {\n .Button{bottom:27vw;}\n}\n@media screen and (max-height : 200vw) {\n .Button{bottom:25vw;}\n}\n@media screen and (max-height : 190vw) {\n .Button{bottom:22vw;}\n}\n@media screen and (max-height : 180vw) {\n .VideoWrap video{margin-top:10vw;}\n .Button{bottom:20vw;}\n}\n@media screen and (max-height : 170vw) {\n .VideoWrap video{margin-top:15vw;}\n .Button{bottom:15vw;}\n}\n"])),vt(),ht(["PoiNo"]),mt.path,ht(["PoiNo"]),mt.path,ht(["PoiAll"]),ht(["PoiNo"]),ht(["PoiAll"]));function Cn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var On,_n={exports:{}};(On=_n).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},On.exports.__esModule=!0,On.exports.default=On.exports;var Mn=Cn(_n.exports),Ln={exports:{}},En={exports:{}},In={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==m(Symbol.iterator)?function(t){return m(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":m(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(In);var Bn=Cn(In.exports),An={exports:{}};!function(t){var e=In.exports.default;t.exports=function(t,n){if("object"!==e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,n||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(An),function(t){var e=In.exports.default,n=An.exports;t.exports=function(t){var o=n(t,"string");return"symbol"===e(o)?o:String(o)},t.exports.__esModule=!0,t.exports.default=t.exports}(En),function(t){var e=En.exports;function n(t,n){for(var o=0;o<n.length;o++){var r=n[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(Ln);var Pn=Cn(Ln.exports),jn={exports:{}},zn={exports:{}},Tn={exports:{}};!function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(Tn);var Rn=Cn(Tn.exports);!function(t){var e=Tn.exports;t.exports=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}(zn),function(t){var e=zn.exports;function n(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=n=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=n=function(t,n,o){var r=e(t,n);if(r){var i=Object.getOwnPropertyDescriptor(r,n);return i.get?i.get.call(arguments.length<3?t:o):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports),n.apply(this,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(jn);var Fn=Cn(jn.exports),Dn={exports:{}},Nn={exports:{}};!function(t){function e(n,o){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(Nn),function(t){var e=Nn.exports;t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}(Dn);var Wn=Cn(Dn.exports),Hn={exports:{}},Vn={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(Vn),function(t){var e=In.exports.default,n=Vn.exports;t.exports=function(t,o){if(o&&("object"===e(o)||"function"==typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Hn);var Gn,Yn,$n=Cn(Hn.exports);function Un(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":Bn(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}Gn=window,Yn={},function t(e,n,o,r){var i=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),a="function"==typeof Path2D&&"function"==typeof DOMMatrix,s=function(){if(!e.OffscreenCanvas)return!1;var t=new OffscreenCanvas(1,1),n=t.getContext("2d");n.fillRect(0,0,1,1);var o=t.transferToImageBitmap();try{n.createPattern(o,"no-repeat")}catch(t){return!1}return!0}();function c(){}function l(t){var o=n.exports.Promise,r=void 0!==o?o:e.Promise;return"function"==typeof r?new r(t):(t(c,c),null)}var u,d,p,h,f,v,g,m,y,x,b,w=(u=s,d=new Map,{transform:function(t){if(u)return t;if(d.has(t))return d.get(t);var e=new OffscreenCanvas(t.width,t.height);return e.getContext("2d").drawImage(t,0,0),d.set(t,e),e},clear:function(){d.clear()}}),k=(f=Math.floor(1e3/60),v={},g=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(p=function(t){var e=Math.random();return v[e]=requestAnimationFrame((function n(o){g===o||g+f-1<o?(g=o,delete v[e],t()):v[e]=requestAnimationFrame(n)})),e},h=function(t){v[t]&&cancelAnimationFrame(v[t])}):(p=function(t){return setTimeout(t,f)},h=function(t){return clearTimeout(t)}),{frame:p,cancel:h}),S=(x={},function(){if(m)return m;if(!o&&i){var e=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{m=new Worker(URL.createObjectURL(new Blob([e])))}catch(t){return void 0!==("undefined"==typeof console?"undefined":Bn(console))&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",t),null}!function(t){function e(e,n){t.postMessage({options:e||{},callback:n})}t.init=function(e){var n=e.transferControlToOffscreen();t.postMessage({canvas:n},[n])},t.fire=function(n,o,r){if(y)return e(n,null),y;var i=Math.random().toString(36).slice(2);return y=l((function(o){function a(e){e.data.callback===i&&(delete x[i],t.removeEventListener("message",a),y=null,w.clear(),r(),o())}t.addEventListener("message",a),e(n,i),x[i]=a.bind(null,{data:{callback:i}})}))},t.reset=function(){for(var e in t.postMessage({reset:!0}),x)x[e](),delete x[e]}}(m)}return m}),C={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function O(t,e,n){return function(t,e){return e?e(t):t}(t&&null!=t[e]?t[e]:C[e],n)}function _(t){return t<0?0:Math.floor(t)}function M(t){return parseInt(t,16)}function L(t){return t.map(E)}function E(t){var e=String(t).replace(/[^0-9a-f]/gi,"");return e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:M(e.substring(0,2)),g:M(e.substring(2,4)),b:M(e.substring(4,6))}}function I(t){t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight}function B(t){var e=t.getBoundingClientRect();t.width=e.width,t.height=e.height}function A(t,e){e.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.x+10*e.scalar,e.wobbleY=e.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);var n=e.tick++/e.totalTicks,o=e.x+e.random*e.tiltCos,r=e.y+e.random*e.tiltSin,i=e.wobbleX+e.random*e.tiltCos,s=e.wobbleY+e.random*e.tiltSin;if(t.fillStyle="rgba("+e.color.r+", "+e.color.g+", "+e.color.b+", "+(1-n)+")",t.beginPath(),a&&"path"===e.shape.type&&"string"==typeof e.shape.path&&Array.isArray(e.shape.matrix))t.fill(function(t,e,n,o,r,i,a){var s=new Path2D(t),c=new Path2D;c.addPath(s,new DOMMatrix(e));var l=new Path2D;return l.addPath(c,new DOMMatrix([Math.cos(a)*r,Math.sin(a)*r,-Math.sin(a)*i,Math.cos(a)*i,n,o])),l}(e.shape.path,e.shape.matrix,e.x,e.y,.1*Math.abs(i-o),.1*Math.abs(s-r),Math.PI/10*e.wobble));else if("bitmap"===e.shape.type){var c=Math.PI/10*e.wobble,l=.1*Math.abs(i-o),u=.1*Math.abs(s-r),d=e.shape.bitmap.width*e.scalar,p=e.shape.bitmap.height*e.scalar,h=new DOMMatrix([Math.cos(c)*l,Math.sin(c)*l,-Math.sin(c)*u,Math.cos(c)*u,e.x,e.y]);h.multiplySelf(new DOMMatrix(e.shape.matrix));var f=t.createPattern(w.transform(e.shape.bitmap),"no-repeat");f.setTransform(h),t.globalAlpha=1-n,t.fillStyle=f,t.fillRect(e.x-d/2,e.y-p/2,d,p),t.globalAlpha=1}else if("circle"===e.shape)t.ellipse?t.ellipse(e.x,e.y,Math.abs(i-o)*e.ovalScalar,Math.abs(s-r)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI):function(t,e,n,o,r,i,a,s){t.save(),t.translate(e,n),t.rotate(i),t.scale(o,r),t.arc(0,0,1,0,s,void 0),t.restore()}(t,e.x,e.y,Math.abs(i-o)*e.ovalScalar,Math.abs(s-r)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI);else if("star"===e.shape)for(var v=Math.PI/2*3,g=4*e.scalar,m=8*e.scalar,y=e.x,x=e.y,b=5,k=Math.PI/b;b--;)y=e.x+Math.cos(v)*m,x=e.y+Math.sin(v)*m,t.lineTo(y,x),v+=k,y=e.x+Math.cos(v)*g,x=e.y+Math.sin(v)*g,t.lineTo(y,x),v+=k;else t.moveTo(Math.floor(e.x),Math.floor(e.y)),t.lineTo(Math.floor(e.wobbleX),Math.floor(r)),t.lineTo(Math.floor(i),Math.floor(s)),t.lineTo(Math.floor(o),Math.floor(e.wobbleY));return t.closePath(),t.fill(),e.tick<e.totalTicks}function P(t,n){var a,s=!t,c=!!O(n||{},"resize"),u=!1,d=O(n,"disableForReducedMotion",Boolean),p=i&&O(n||{},"useWorker")?S():null,h=s?I:B,f=!(!t||!p||!t.__confetti_initialized),v="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function g(e,n,i){for(var s,c,u,d,p=O(e,"particleCount",_),f=O(e,"angle",Number),v=O(e,"spread",Number),g=O(e,"startVelocity",Number),m=O(e,"decay",Number),y=O(e,"gravity",Number),x=O(e,"drift",Number),b=O(e,"colors",L),S=O(e,"ticks",Number),C=O(e,"shapes"),M=O(e,"scalar"),E=!!O(e,"flat"),I=function(t){var e=O(t,"origin",Object);return e.x=O(e,"x",Number),e.y=O(e,"y",Number),e}(e),B=p,P=[],j=t.width*I.x,z=t.height*I.y;B--;)P.push((c=(s={x:j,y:z,angle:f,spread:v,startVelocity:g,color:b[B%b.length],shape:C[(d=C.length,Math.floor(Math.random()*(d-0))+0)],ticks:S,decay:m,gravity:y,drift:x,scalar:M,flat:E}).angle*(Math.PI/180),u=s.spread*(Math.PI/180),{x:s.x,y:s.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*s.startVelocity+Math.random()*s.startVelocity,angle2D:-c+(.5*u-Math.random()*u),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:s.color,shape:s.shape,tick:0,totalTicks:s.ticks,decay:s.decay,drift:s.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*s.gravity,ovalScalar:.6,scalar:s.scalar,flat:s.flat}));return a?a.addFettis(P):(a=function(t,e,n,i,a){var s,c,u=e.slice(),d=t.getContext("2d"),p=l((function(e){function l(){s=c=null,d.clearRect(0,0,i.width,i.height),w.clear(),a(),e()}s=k.frame((function e(){!o||i.width===r.width&&i.height===r.height||(i.width=t.width=r.width,i.height=t.height=r.height),i.width||i.height||(n(t),i.width=t.width,i.height=t.height),d.clearRect(0,0,i.width,i.height),(u=u.filter((function(t){return A(d,t)}))).length?s=k.frame(e):l()})),c=l}));return{addFettis:function(t){return u=u.concat(t),p},canvas:t,promise:p,reset:function(){s&&k.cancel(s),c&&c()}}}(t,P,h,n,i),a.promise)}function m(n){var o=d||O(n,"disableForReducedMotion",Boolean),r=O(n,"zIndex",Number);if(o&&v)return l((function(t){t()}));s&&a?t=a.canvas:s&&!t&&(t=function(t){var e=document.createElement("canvas");return e.style.position="fixed",e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",e.style.zIndex=t,e}(r),document.body.appendChild(t)),c&&!f&&h(t);var i={width:t.width,height:t.height};function m(){if(p){var e={getBoundingClientRect:function(){if(!s)return t.getBoundingClientRect()}};return h(e),void p.postMessage({resize:{width:e.width,height:e.height}})}i.width=i.height=null}function y(){a=null,c&&(u=!1,e.removeEventListener("resize",m)),s&&t&&(document.body.removeChild(t),t=null,f=!1)}return p&&!f&&p.init(t),f=!0,p&&(t.__confetti_initialized=!0),c&&!u&&(u=!0,e.addEventListener("resize",m,!1)),p?p.fire(n,i,y):g(n,i,y)}return m.reset=function(){p&&p.reset(),a&&a.reset()},m}function j(){return b||(b=P(null,{useWorker:!0,resize:!0})),b}n.exports=function(){return j().apply(this,arguments)},n.exports.reset=function(){j().reset()},n.exports.create=P,n.exports.shapeFromPath=function(t){if(!a)throw new Error("path confetti are not supported in this browser");var e,n;"string"==typeof t?e=t:(e=t.path,n=t.matrix);var o=new Path2D(e),r=document.createElement("canvas").getContext("2d");if(!n){for(var i,s,c=1e3,l=c,u=c,d=0,p=0,h=0;h<c;h+=2)for(var f=0;f<c;f+=2)r.isPointInPath(o,h,f,"nonzero")&&(l=Math.min(l,h),u=Math.min(u,f),d=Math.max(d,h),p=Math.max(p,f));i=d-l,s=p-u;var v=Math.min(10/i,10/s);n=[v,0,0,v,-Math.round(i/2+l)*v,-Math.round(s/2+u)*v]}return{type:"path",path:e,matrix:n}},n.exports.shapeFromText=function(t){var e,n=1,o="#000000",r='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof t?e=t:(e=t.text,n="scalar"in t?t.scalar:n,r="fontFamily"in t?t.fontFamily:r,o="color"in t?t.color:o);var i=10*n,a=i+"px "+r,s=new OffscreenCanvas(i,i),c=s.getContext("2d");c.font=a;var l=c.measureText(e),u=Math.ceil(l.actualBoundingBoxRight+l.actualBoundingBoxLeft),d=Math.ceil(l.actualBoundingBoxAscent+l.actualBoundingBoxDescent),p=l.actualBoundingBoxLeft+2,h=l.actualBoundingBoxAscent+2;u+=4,d+=4,(c=(s=new OffscreenCanvas(u,d)).getContext("2d")).font=a,c.fillStyle=o,c.fillText(e,p,h);var f=1/n;return{type:"bitmap",bitmap:s.transferToImageBitmap(),matrix:[f,0,0,f,-u*f/2,-d*f/2]}}}(function(){return void 0!==Gn?Gn:"undefined"!=typeof self?self:this||{}}(),Yn,!1),Gn.confetti=Yn.exports;var Xn=function(){Wn(e,o);var t=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Rn(t);if(e){var r=Rn(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return $n(this,n)}}(e);function e(){var n;return Mn(this,e),(n=t.call(this)).defaults={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,origin:{x:.5,y:.5},shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],scalar:1},n.zindex=100,n}return Pn(e,[{key:"connectedCallback",value:function(){Fn(Rn(e.prototype),"connectedCallback",this).call(this),this.load()}},{key:"load",value:function(){confetti({particleCount:150,spread:90,ticks:130,scalar:1.3,zIndex:this.zindex,origin:{y:.35}})}}]),e}();Un([a],Xn.prototype,"game",void 0),Un([e({converter:s})],Xn.prototype,"zindex",void 0),Xn=Un([n({name:"g-confetti",shadowOptions:{mode:"closed"}})],Xn);var Zn={init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};confetti(Object.assign({particleCount:200,spread:70,zIndex:3e3,origin:{y:.4}},t))}};function Jn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}window.Effects=window.Effects||{},window.Effects.confetti=Zn;var qn,Kn={exports:{}};(qn=Kn).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},qn.exports.__esModule=!0,qn.exports.default=qn.exports;var Qn=Jn(Kn.exports),to={exports:{}},eo={exports:{}},no={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==m(Symbol.iterator)?function(t){return m(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":m(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(no);var oo=Jn(no.exports),ro={exports:{}};!function(t){var e=no.exports.default;t.exports=function(t,n){if("object"!==e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,n||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(ro),function(t){var e=no.exports.default,n=ro.exports;t.exports=function(t){var o=n(t,"string");return"symbol"===e(o)?o:String(o)},t.exports.__esModule=!0,t.exports.default=t.exports}(eo),function(t){var e=eo.exports;function n(t,n){for(var o=0;o<n.length;o++){var r=n[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(to);var io=Jn(to.exports),ao={exports:{}},so={exports:{}},co={exports:{}};!function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(co);var lo=Jn(co.exports);!function(t){var e=co.exports;t.exports=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}(so),function(t){var e=so.exports;function n(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=n=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=n=function(t,n,o){var r=e(t,n);if(r){var i=Object.getOwnPropertyDescriptor(r,n);return i.get?i.get.call(arguments.length<3?t:o):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports),n.apply(this,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(ao);var uo=Jn(ao.exports),po={exports:{}},ho={exports:{}};!function(t){function e(n,o){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(ho),function(t){var e=ho.exports;t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}(po);var fo=Jn(po.exports),vo={exports:{}},go={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(go),function(t){var e=no.exports.default,n=go.exports;t.exports=function(t,o){if(o&&("object"===e(o)||"function"==typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(vo);var mo=Jn(vo.exports),yo={exports:{}};!function(t){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.__esModule=!0,t.exports.default=t.exports}(yo);var xo,bo=Jn(yo.exports);function wo(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":oo(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}var ko=t(xo||(xo=bo(["\n.LightWrap {position:fixed;width:500vw;height:500vw;top:50%;left:50%;transform: translate(-50%, -50%);filter: blur(6px);}\n:host([dir='top']) .LightWrap{top:0;}\n:host([dir='topleft']) .LightWrap{top:0;left:0;}\n:host([dir='topright']) .LightWrap{top:0;left:100%;}\n:host([dir='bottom']) .LightWrap{top:100%;}\n:host([dir='bottomleft']) .LightWrap{top:100%;left:0;}\n:host([dir='bottomright']) .LightWrap{top:100%;left:100%;}\n:host([dir='left']) .LightWrap{left:0;}\n:host([dir='right']) .LightWrap{left:100%;}\n.LightWrap .Circle {position:absolute;inset:0;border-radius:50%;}\n.LightWrap .Circle1 {\n background:repeating-conic-gradient(from 0deg at 50% 50%,transparent 0%,var(--color) 1%,transparent 6%);\n -webkit-animation: 13s linear rotate infinite reverse;\n animation: 13s linear rotate infinite reverse;\n}\n.LightWrap .Circle2 {\n background:repeating-conic-gradient(from 19deg at 50% 50%,transparent 0%, var(--color) 1.2%,var(--color),transparent 4.8%,transparent 7.6%);\n -webkit-animation: 9s linear -2s rotate infinite;\n animation: 9s linear -2s rotate infinite;\n}\n.LightWrap .Circle3 {\n background:repeating-conic-gradient(from 37deg at 50% 50%,transparent 0%,var(--color) 4%,transparent 7.9%,transparent 12%);\n -webkit-animation: 17s linear rotate infinite reverse;\n animation: 17s linear rotate infinite reverse;\n}\n.LightWrap .Circle4 {\n background:repeating-conic-gradient(from 103deg at 50% 50%,transparent 0%,var(--color)) 5%,var(--color) 7%,transparent 12%);\n -webkit-animation:7s linear rotate infinite;\n animation:7s linear rotate infinite;\n}\n@-webkit-keyframes rotate{from{transform:rotate(0deg);}to{transform:rotate(359deg);}}\n@keyframes rotate{from{transform:rotate(0deg);}to{transform:rotate(359deg);}}\n"]))),So={exports:{}},Co={exports:{}},Oo={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o},t.exports.__esModule=!0,t.exports.default=t.exports}(Oo),function(t){var e=Oo.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Co);var _o={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(_o);var Mo={exports:{}};!function(t){var e=Oo.exports;t.exports=function(t,n){if(t){if("string"==typeof t)return e(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(t,n):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(Mo);var Lo={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(Lo),function(t){var e=Co.exports,n=_o.exports,o=Mo.exports,r=Lo.exports;t.exports=function(t){return e(t)||n(t)||o(t)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(So);var Eo=Jn(So.exports),Io={exports:{}},Bo={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(Bo);var Ao={exports:{}};!function(t){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==e);c=!0);}catch(t){l=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}},t.exports.__esModule=!0,t.exports.default=t.exports}(Ao);var Po={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(Po),function(t){var e=Bo.exports,n=Ao.exports,o=Mo.exports,r=Po.exports;t.exports=function(t,i){return e(t)||n(t,i)||o(t,i)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(Io);var jo,zo=Jn(Io.exports),To=Math.min,Ro=Math.max,Fo=Math.floor,Do=Math.round;function No(t,e,n){e/=100,n/=100;var o=Fo(t=t/360*6),r=t-o,i=n*(1-e),a=n*(1-r*e),s=n*(1-(1-r)*e),c=o%6;return[255*[n,a,i,i,s,n][c],255*[s,n,n,a,i,i][c],255*[i,i,s,n,n,a][c]]}function Wo(t,e,n){var o,r,i=To(t/=255,e/=255,n/=255),a=Ro(t,e,n),s=a-i;if(0===s)o=r=0;else{r=s/a;var c=((a-t)/6+s/2)/s,l=((a-e)/6+s/2)/s,u=((a-n)/6+s/2)/s;t===a?o=u-l:e===a?o=1/3+c-u:n===a&&(o=2/3+l-c),o<0?o+=1:o>1&&(o-=1)}return[360*o,100*r,100*a]}function Ho(t,e,n,o){e/=100,n/=100;var r=255*(1-To(1,(t/=100)*(1-(o/=100))+o)),i=255*(1-To(1,e*(1-o)+o)),a=255*(1-To(1,n*(1-o)+o));return Eo(Wo(r,i,a))}function Vo(t,e,n){return e/=100,[t,(n/=100)+(e*=n<.5?n:1-n)?2*e/(n+e)*100:0,100*(n+e)]}function Go(t){return Wo.apply(void 0,Eo(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function Yo(){var t=function(t,e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e(~n?t.map((function(t){return Number(t.toFixed(n))})):t)}},e={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var n=[e.h,e.s,e.v,e.a];return n.toString=t(n,(function(t){return"hsva(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toHSLA:function(){var n=[].concat(Eo(function(t,e,n){var o=(2-(e/=100))*(n/=100)/2;return 0!==o&&(e=1===o?0:o<.5?e*n/(2*o):e*n/(2-2*o)),[t,100*e,100*o]}(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"hsla(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toRGBA:function(){var n=[].concat(Eo(No(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", ").concat(e.a,")")})),n},toCMYK:function(){var n=function(t,e,n){var o,r=No(t,e,n),i=r[0]/255,a=r[1]/255,s=r[2]/255;return[100*(1===(o=To(1-i,1-a,1-s))?0:(1-i-o)/(1-o)),100*(1===o?0:(1-a-o)/(1-o)),100*(1===o?0:(1-s-o)/(1-o)),100*o]}(e.h,e.s,e.v);return n.toString=t(n,(function(t){return"cmyk(".concat(t[0],"%, ").concat(t[1],"%, ").concat(t[2],"%, ").concat(t[3],"%)")})),n},toHEXA:function(){var t=function(t,e,n){return No(t,e,n).map((function(t){return Do(t).toString(16).padStart(2,"0")}))}(e.h,e.s,e.v),n=e.a>=1?"":Number((255*e.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return n&&t.push(n),t.toString=function(){return"#".concat(t.join("").toUpperCase())},t},clone:function(){return Yo(e.h,e.s,e.v,e.a)}};return e}var $o,Uo,Xo,Zo,Jo,qo,Ko=r(jo||(jo=bo(['\n<section class="LightWrap">\n <div class="Circle Circle1"></div>\n <div class="Circle Circle2"></div>\n <div class="Circle Circle3"></div>\n <div class="Circle Circle4"></div>\n</section>\n']))),Qo=function(){fo(e,o);var t=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=lo(t);if(e){var r=lo(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return mo(this,n)}}(e);function e(){var n;return Qn(this,e),(n=t.call(this)).color="#faf014",n}return io(e,[{key:"colorChanged",value:function(t,e){var n,o;e&&this.style.setProperty("--color",(n=function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;var e,n={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=function(t){return t.map((function(t){return/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0}))};t:for(var r in n)if(e=n[r].exec(t))switch(r){case"cmyk":var i=o(e),a=zo(i,5),s=a[1],c=a[2],l=a[3],u=a[4];if(s>100||c>100||l>100||u>100)break t;return{values:Ho(s,c,l,u),type:r};case"rgba":var d=o(e),p=zo(d,7),h=p[3],f=p[4],v=p[5],g=p[6];if(h>255||f>255||v>255||g<0||g>1)break t;return{values:[].concat(Eo(Wo(h,f,v)),[g]),a:g,type:r};case"hexa":var m=zo(e,2)[1];4!==m.length&&3!==m.length||(m=m.split("").map((function(t){return t+t})).join(""));var y=m.substring(0,6),x=m.substring(6);return x=x?parseInt(x,16)/255:void 0,{values:[].concat(Eo(Go(y)),[x]),a:x,type:r};case"hsla":var b=o(e),w=zo(b,7),k=w[3],S=w[4],C=w[5],O=w[6];if(k>360||S>100||C>100||O<0||O>1)break t;return{values:[].concat(Eo(Vo(k,S,C)),[O]),a:O,type:r};case"hsva":var _=o(e),M=zo(_,7),L=M[3],E=M[4],I=M[5],B=M[6];if(L>360||E>100||I>100||B<0||B>1)break t;return{values:[L,E,I,B],a:B,type:r}}return{values:null,type:null}}(e),o=Yo.apply(void 0,Eo(n.values)).toRGBA(),"rgba(".concat(o[0].toFixed(0),",").concat(o[1].toFixed(0),",").concat(o[2].toFixed(0),",").concat(.2*Number(o[3].toFixed(2)),")")))}},{key:"connectedCallback",value:function(){uo(lo(e.prototype),"connectedCallback",this).call(this)}}]),e}();function tr(t,e,n){return e=C(e),k(t,er()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function er(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(er=function(){return!!t})()}wo([e],Qo.prototype,"dir",void 0),wo([e],Qo.prototype,"color",void 0),Qo=wo([n({name:"h-spotlight",template:Ko,styles:ko,shadowOptions:{mode:"closed"}})],Qo);var nr,or=r($o||($o=A(['\n <div class="PrizeWrap">\n <div class="VideoWrap">\n <div class="Conten">\n <div class="Bg"></div>\n <h-spotlight color="#000"></h-spotlight>\n <div class="Img zoomInUp">\n <span>\n ',"\n </span>\n \n <span>\n ",'\n </span>\n <div class="Light"></div>\n </div>\n </div>\n </div>\n\n <div ',' class="Content transit">\n <div class="Title">\n <span>\n ',"\n </span>\n <span>\n ",'\n </span> \n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n </div>\n </div>\n <div class="Cache">\n <img src="','" />\n <img src="','" />\n <img src="','" />\n <img src="','" />\n <img src="','" />\n <img src="','" />\n <img src="','" />\n </div>\n'])),l((function(t){return 1==t.type}),r(Uo||(Uo=A(['<img src="','" class="Card" draggable="false"/>'])),(function(t){return t.imgSrc}))),l((function(t){return 2==t.type}),r(Xo||(Xo=A(['<div class="CouponWrap">\n <img class="Coupon" src="','"/>\n <div class="Info">\n <p style="color:#FF3B0A;font-size:9.6vw;font-weight:600;line-height:9.6vw">','</p>\n <p style="color:#EB330E;font-size:3.733vw;font-weight:600;margin:2vw 0 7vw">',"</p>\n </div>\n </div>"])),mt.path+mt.coupon,(function(t){return t.prizeQuota}),(function(t){return t.prizeName}))),i("contentWrap"),l((function(t){return 1==t.type}),r(Zo||(Zo=A(['<img src="','/download/img/collect/title01.png"/>\n <p class="Subtitle">',"</p>"])),mt.path,(function(t){return t.number>0?r(Jo||(Jo=A(["再集","张不同卡牌即可合成"])),(function(t){return t.number})):"已集齐6张,赶快去合成吧"}))),l((function(t){return 2==t.type}),r(qo||(qo=A(['<img src="','/download/img/collect/title02.png"/><p class="Subtitle">',"</p>"])),mt.path,(function(t){return t.prizeQuota+t.prizeName}))),(function(t){return t.accept()}),mt.path,mt.path+mt.coupon,mt.path+mt.card1,mt.path+mt.card2,mt.path+mt.card3,mt.path+mt.card4,mt.path+mt.card5,mt.path+mt.card6),rr=function(){function t(){var e;return h(this,t),(e=tr(this,t)).prizeName="",e.prizeQuota="",e.isClick=!1,e.imgSrc="",e.type=1,e.index=1,e.number=3,ft.case.install([Me,Xn,Qo]),e}return I(t,o),x(t,[{key:"indexChanged",value:function(t,e){var n=this;setTimeout((function(){n.imgSrc=mt.path+mt["card"+e]}),10)}},{key:"showChanged",value:function(t,e){null===e||!1===e?He.instance.remove(this.contentWrap,"show"):this.init()}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"accept",value:function(){this.isClick&&(this.close(),this.$emit("change","accept"))}},{key:"init",value:function(){var t=this;setTimeout((function(){He.instance.add(t.contentWrap,"show")}),1e3),setTimeout((function(){t.isClick=!0}),2e3),window.confetti({particleCount:150,spread:90,ticks:130,scalar:1.3,zIndex:3200,origin:{y:.35}})}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){t&&2==this.type&&(this.prizeName=t.prizeName,this.prizeQuota=t.prizeQuota)}}])}();P([a],rr.prototype,"Overlay",void 0),P([a],rr.prototype,"video",void 0),P([a],rr.prototype,"contentWrap",void 0),P([a],rr.prototype,"prizeName",void 0),P([a],rr.prototype,"prizeQuota",void 0),P([a],rr.prototype,"imgSrc",void 0),P([e({converter:s})],rr.prototype,"type",void 0),P([e({converter:s})],rr.prototype,"index",void 0),P([e({converter:s})],rr.prototype,"number",void 0),P([e({mode:"boolean"})],rr.prototype,"show",void 0),P([Re],rr.prototype,"showChanged",null),P([$e(300)],rr.prototype,"accept",null),rr=P([n({name:"g-collect-prize",template:or,styles:Sn,shadowOptions:{mode:"closed"}})],rr);var ir,ar,sr,cr,lr=t(nr||(nr=A(["\n:host{\ndisplay:inline-block;\nwidth:51.73333333vw;\nheight:60vw;\n}\n.SwipeWrap {\nposition: relative;\nwidth:51.73333333vw;\nheight:60vw;\nperspective: 500px;\ntransform-style: preserve-3d;\n}\n.CardContainer {\nposition: absolute;\nz-index:99;\nwidth:51.73333333vw;\nheight:60vw;\ntransform: \n rotateY(calc(var(--offset) * 50deg)) \n scaleY(calc(1 + var(--abs-offset) * -0.4))\n translateZ(calc(var(--abs-offset) * -30rem))\n translateX(calc(var(--direction) * -5rem));\nfilter: blur(calc(var(--abs-offset) * 1rem));\ntransition: all 0.3s ease-out;\n}\n.CardContainer img{\n width:100%;height:100%;\n}\n\n.Nav {\n position: absolute;\n display: none;\n align-items: center;\n justify-content: center;\n top: 44%;\n z-index: 299;\n cursor: pointer;\n user-select: none;\n background: unset;\n border: unset;\n width:10.666666666vw;\n height:10.666666666vw;\n}\n.Nav img {\n width:100%;height:100%;\n}\n.Nav.Left {\n left: -4.266666666vw;\n transform: translateX(-100%) translatey(-50%);\n}\n.Nav.Right {\n right: -4.266666666vw;\n transform: translateX(100%) translatey(-50%);\n}\n:host(.isArrow) .Nav{display: flex;}\n"])));function ur(t,e,n){return e=C(e),k(t,dr()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function dr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(dr=function(){return!!t})()}var pr=r(ir||(ir=A(['\n<section class="SwipeWrap">\n <span>\n ',"\n </span>\n <span>\n ","\n </span>\n <span>\n ","\n </span>\n</section>\n"])),l((function(t){return t.active>0}),r(ar||(ar=A(['<img class="Nav Left" @click="','" src="','/download/img/collect/arrowL.png" draggable="false"/>'])),(function(t){return t.setActive("l")}),mt.path)),c((function(t){return t.cardItem}),r(sr||(sr=A(['<div class="CardContainer ','" style="','">\n <img src="','" draggable="false"/>\n </div>'])),(function(t,e){return e.parent.classFn(e.index)}),(function(t,e){return e.parent.styleFn(e.index)}),(function(t){return t.total>0?t.card:t.grey})),{positioning:!0}),l((function(t){return t.active<t.cardItem.length-1}),r(cr||(cr=A(['<img class="Nav Right" @click="','" src="','/download/img/collect/arrowR.png" draggable="false"/>'])),(function(t){return t.setActive("r")}),mt.path))),hr=function(){function t(){var e;return h(this,t),(e=ur(this,t)).cardItem=Array.from({length:7},(function(t,e){return{card:"".concat(mt.path,"/download/img/collect/card0").concat(e+1,".png"),grey:"".concat(mt.path,"/download/img/collect/card0").concat(e+1,"-1.png")}})),e.MAX_VISIBILITY=1,e.active=0,e.arrow=!0,e}return I(t,o),x(t,[{key:"arrowChanged",value:function(t,e){null===e||!1===e||this.isComposed?He.instance.remove(this,"isArrow"):He.instance.add(this,"isArrow")}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"setActive",value:function(t){"l"==t?--this.active:++this.active}},{key:"classFn",value:function(t){return t==this.active?"active":""}},{key:"styleFn",value:function(t){var e="--active:".concat(t===this.active?1:0,";");return e+="--offset:".concat((this.active-t)/3,";"),e+="--direction:".concat(Math.sign(this.active-t),";"),e+="--abs-offset:".concat(Math.abs(this.active-t)/3,";"),e+="pointer-events:".concat(this.active===t?"auto":"none",";"),e+="opacity:".concat(Math.abs(this.active-t)>=this.MAX_VISIBILITY?"0":"1",";"),e+="display:".concat(Math.abs(this.active-t)>this.MAX_VISIBILITY?"none":"block",";")}},{key:"revert",value:function(){this.isComposed=!1,this.arrow=!0,this.active=0,this.cardItem=Array.from({length:7},(function(t,e){return{card:"".concat(mt.path,"/download/img/collect/card0").concat(e+1,".png"),grey:"".concat(mt.path,"/download/img/collect/card0").concat(e+1,"-1.png")}}))}},{key:"update",value:function(t){if(t&&t.isRevert)this.revert();else if(t&&t.cardList){for(var e=Array.from({length:6}),n=0;n<t.cardList.length;n++){var o=t.cardList[n];e[o.cardType-1]={total:o.cardNum,card:"".concat(mt.path,"/download/img/collect/card0").concat(o.cardType,".png"),grey:"".concat(mt.path,"/download/img/collect/card0").concat(o.cardType,"-1.png")}}e.push({total:t.isComposed?1:0,card:"".concat(mt.path,"/download/img/collect/card07.png"),grey:"".concat(mt.path,"/download/img/collect/card07-1.png")}),this.cardItem=e,t.isComposed&&(this.active=4,this.arrow=!1,this.isComposed=t.isComposed)}}}])}();P([a],hr.prototype,"cardItem",void 0),P([a],hr.prototype,"isComposed",void 0),P([e({converter:s})],hr.prototype,"active",void 0),P([e({mode:"boolean"})],hr.prototype,"arrow",void 0),hr=P([n({name:"g-collect-swipe",template:pr,styles:lr,shadowOptions:{mode:"closed"}})],hr);export{Je as HiCollectConflate,kn as HiCollectList,rr as HiCollectPrize,hr as HiCollectSwipe};
|
|
3
|
+
t.exports=n=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var o,r={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function p(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(o){p=function(t,e,n){return t[e]=n}}function h(t,e,n,o){var r=e&&e.prototype instanceof b?e:b,i=Object.create(r.prototype),a=new A(o||[]);return s(i,"_invoke",{value:I(t,n,a)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var v="suspendedStart",g="suspendedYield",m="executing",y="completed",x={};function b(){}function w(){}function k(){}var S={};p(S,l,(function(){return this}));var C=Object.getPrototypeOf,O=C&&C(C(P([])));O&&O!==i&&a.call(O,l)&&(S=O);var _=k.prototype=b.prototype=Object.create(S);function M(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,n){function o(r,i,s,c){var l=f(t[r],t,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==e(d)&&a.call(d,"__await")?n.resolve(d.__await).then((function(t){o("next",t,s,c)}),(function(t){o("throw",t,s,c)})):n.resolve(d).then((function(t){u.value=t,s(u)}),(function(t){return o("throw",t,s,c)}))}c(l.arg)}var r;s(this,"_invoke",{value:function(t,e){function i(){return new n((function(n,r){o(t,e,n,r)}))}return r=r?r.then(i,i):i()}})}function I(t,e,n){var r=v;return function(i,a){if(r===m)throw Error("Generator is already running");if(r===y){if("throw"===i)throw a;return{value:o,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=E(s,n);if(c){if(c===x)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===v)throw r=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=m;var l=f(t,e,n);if("normal"===l.type){if(r=n.done?y:g,l.arg===x)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=y,n.method="throw",n.arg=l.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(r===o)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=o,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),x;var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,x;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=o),e.delegate=null,x):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,x)}function B(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function z(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(B,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(a.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=o,e.done=!0,e};return i.next=i}}throw new TypeError(e(t)+" is not iterable")}return w.prototype=k,s(_,"constructor",{value:k,configurable:!0}),s(k,"constructor",{value:w,configurable:!0}),w.displayName=p(k,d,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,p(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},r.awrap=function(t){return{__await:t}},M(L.prototype),p(L.prototype,u,(function(){return this})),r.AsyncIterator=L,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new L(h(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},M(_),p(_,d,"Generator"),p(_,l,(function(){return this})),p(_,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),n=[];for(var o in e)n.push(o);return n.reverse(),function t(){for(;n.length;){var o=n.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},r.values=P,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(z),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=o)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return s.type="throw",s.arg=t,e.next=n,r&&(e.method="next",e.arg=o),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var i=r?r.completion:{};return i.type=t,i.arg=e,r?(this.method="next",this.next=r.finallyLoc,x):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),x},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),z(n),x}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;z(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=o),x}},r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(tn);var en=tn.exports(),nn=en;try{regeneratorRuntime=en}catch(t){"object"===("undefined"==typeof globalThis?"undefined":m(globalThis))?globalThis.regeneratorRuntime=en:Function("r","regeneratorRuntime = r")(en)}function on(t,e,n){return e=C(e),k(t,rn()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function rn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(rn=function(){return!!t})()}var an,sn,cn=function(){function t(){var e;return h(this,t),(e=on(this,t,arguments)).disabled=!1,e}return E(t,o),x(t,[{key:"colorChanged",value:function(t,e){Ct(this)({color:e})}},{key:"sizeChanged",value:function(t,e){for(var n=0;n<this.children.length;n++){Tt(this.children[n])("size",this.size)}}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"injection",value:function(t){t&&t(this)}},{key:"setValueFn",value:function(t,e){this[t+"Changed"]("",e)}},{key:"update",value:function(t,e){e&&e(t)}},{key:"childrenFn",value:function(t){var e=this.children.length;if(e>0){for(var n=0;n<e;n++){var o=this.children[n];0==n?Tt(o)("first"):n+1==e&&Tt(o)("last"),Tt(o)("index",String(n))}t&&t()}}}])}();function ln(t,e,n){return e=C(e),k(t,un()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function un(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(un=function(){return!!t})()}xt([e],cn.prototype,"color",void 0),xt([e],cn.prototype,"size",void 0),xt([e({mode:"boolean"})],cn.prototype,"disabled",void 0);var dn,pn,hn,fn=function(){return x((function t(){h(this,t),this.timeOut=0}),[{key:"init",value:function(t){var e,n,o=this;e=setInterval((function(){n="string"==typeof t.front?window[t.front]:t.front(),o.timeOut++,(o.timeOut>=60||n)&&(clearInterval(e),t.callback())}),50)}}])}(),vn=t(an||(an=z(["\n:host{\n overflow: hidden;\n display: inline-block;\n position: relative;\n}\n:host span{\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\ndiv{\n width: 100%;\n height: 100%;\n}\n"]))),gn=r(sn||(sn=z(["\n<template>\n<span>\n <div ","></div>\n</span>\n</template>\n"])),i("SVGAPlayer")),mn=function(){function t(){return h(this,t),ln(this,t,arguments)}return E(t,cn),x(t,[{key:"pathChanged",value:function(t,e){e&&this.loadSvga()}},{key:"connectedCallback",value:function(){(function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r})(t,"connectedCallback",this,3)([]),this.loadSvga()}},{key:"loadSvga",value:function(){return function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))}(this,void 0,void 0,nn.mark((function t(){var e,n,o=this;return nn.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e=atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA==")+"/download/cdn/svga.min.js",new Promise((function(t,n){if(void 0!==e){var o=new fn,r=e.substring(e.lastIndexOf(".")+1),i=document.getElementsByTagName("head")[0];if(document.querySelectorAll('script[src*="'+e+'"]').length<=0){if("js"===r){var a=document.createElement("script");a.src=e,a.type="text/javascript",i.appendChild(a),a.onload=a.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||t(!0)}}else if("css"===r){var s=document.createElement("link");s.href=e,s.rel="stylesheet",s.type="text/css",i.appendChild(s)}}else o.init({front:String("SVGA"),callback:function(){t(!0)}})}else n(!1)}));case 2:n=new SVGA.Player(this.SVGAPlayer),new SVGA.Parser(this.SVGAPlayer).load(this.path,(function(t){o.height=t.videoSize.height,o.width=t.videoSize.width,o.$emit("change",{height:t.videoSize.height,width:t.videoSize.width}),n.setVideoItem(t),n.startAnimation()}));case 4:case"end":return t.stop()}}),t,this)})))}}])}();function yn(t,e,n){return e=C(e),k(t,xn()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function xn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(xn=function(){return!!t})()}xt([a],mn.prototype,"SVGAPlayer",void 0),xt([e],mn.prototype,"path",void 0),xt([e({converter:s})],mn.prototype,"width",void 0),xt([e({converter:s})],mn.prototype,"height",void 0),mn=xt([n({name:"h-svga",styles:vn,template:gn})],mn);var bn,wn=r(dn||(dn=z(['\n<section class="ListWrap">\n <div class="Synthesis">\n <span>\n ','\n </span>\n <img class="Img ','" src="','/download/img/collect/synthesis.png" />\n </div>\n <div class="CardBox">\n <span class="CardWrap">\n ',"\n </span>\n </div>\n</section>\n"])),l((function(t){return t.isVideo}),r(pn||(pn=z(['<div style="position:absolute; z-index:4; display: block;height: 100%;width: 100%;" @click="','"> <h-svga class="Svga" path="','/download/img/collect/hecheng.svga"></h-svga><img class="Tips" src="','/download/img/collect/tips.png" /></div>'])),(function(t){return t.SynthesisFn()}),location.href.indexOf(atob("eXMtempycw=="))>-1?mt.pathys:mt.path,mt.path)),(function(t){return t.isVideo?"hide":""}),mt.path,c((function(t){return t.cardItem}),r(hn||(hn=z(['<div class="Card">\n <img src="','"/></div>'])),(function(t){return t.total>0?t.card:t.grey})),{positioning:!0})),kn=function(){function t(){var e;return h(this,t),(e=yn(this,t)).isVideo=!1,e.cardItem=Array.from({length:6},(function(t,e){return{card:"".concat(mt.path,"/download/img/collect/small0").concat(e+1,".png"),grey:"".concat(mt.path,"/download/img/collect/small0").concat(e+1,"-1.png")}})),ft.case.install([mn]),e}return E(t,o),x(t,[{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"SynthesisFn",value:function(){this.$emit("change","synthesis")}},{key:"revert",value:function(){this.isVideo=!1,this.cardItem=Array.from({length:4},(function(t,e){return{card:"".concat(mt.path,"/download/img/collect/small0").concat(e+1,".png"),grey:"".concat(mt.path,"/download/img/collect/small0").concat(e+1,"-1.png")}}))}},{key:"update",value:function(t){if(t&&t.isRevert)this.revert();else if(t&&t.cardList){for(var e=Array.from({length:4}),n=0;n<t.cardList.length;n++){var o=t.cardList[n];e[o.cardType-1]={total:o.cardNum,card:"".concat(mt.path,"/download/img/collect/small0").concat(o.cardType,".png"),grey:"".concat(mt.path,"/download/img/collect/small0").concat(o.cardType,"-1.png")}}this.cardItem=e,this.isVideo=t.isCanCompose}}}])}();A([a],kn.prototype,"isVideo",void 0),A([a],kn.prototype,"cardItem",void 0),A([$e(300)],kn.prototype,"SynthesisFn",null),kn=A([n({name:"g-collect-list",template:wn,styles:Ke,shadowOptions:{mode:"closed"}})],kn);var Sn=t(bn||(bn=z(["\n","\n:host{text-align:center;display:none}\n:host([show]){display:block}\n.VideoWrap{position:absolute;display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\n.PrizeWrap {position:fixed;top:0;left:0;width:100vw;height:100vh;display:block;z-index:3100;background:rgba(0, 0, 0, 0.4);}\n.PrizeWrap .Content{position:relative; z-index:60;height:100%;\n padding-top: 20vw;text-align:center;","\n}\n.PrizeWrap .Title img{\n height:17.0666666666vw\n}\n.PrizeWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.PrizeWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 12px;\ncolor: #FFF1D8;\nline-height: 18px;\nfont-weight: 400;\n}\n\n\n.Conten{position:fixed;top:0;left:0;width:100vw;height:100vh; z-index:2;display:block;}\n.Conten .Bg{position:fixed;top:0;left:0;width:100%;height:100%;\n background:url(","/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.Conten .Img{position: absolute; overflow:hidden;\nz-index:99;left:20vw;top:50vw; \nwidth:60vw;\nheight:70vw;}\n.Conten .Light{position: absolute;top: 0;",'\n bottom: 0;width:100%; overflow:hidden;\n left: 0;z-index:30;\n border-radius:8vw;}\n.Conten .Light::after{\n content: "";\n background-color: #fff9;\n opacity: 0.6;\n top: -25%;\n bottom: 0;\n left: -100%;\n position: absolute;\n width: 13vw;\n height:150%;\n box-shadow: 0 0 10vmin 2.5vmin #fff;\n transform:rotateZ(145deg);\n transition: all 05s ease;\n animation-duration: 0.5s;\n animation-delay: 1s;\n animation-name: Light\n}\n\n.Conten .Img .Card {width:100%;height:100%}\n@keyframes Light{\n to{\n left: 400px;\n transition: left 0.5s ease 0s;\n }\n}\n\n@keyframes zoomInUp {\n from {opacity: 0;transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.49)}\n 60% {opacity: 1;transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -20px, 0);animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.5)}\n}\n.zoomInUp {animation-duration: 1s;\n animation-fill-mode: both;animation-name: zoomInUp}\n\n.CouponWrap {position:relative;}\n.CouponWrap .Info{position:absolute;width:100%;top:14.4vw;left:0;z-index:20;text-align:center;}\n.VideoWrap .Bg,\n.CouponWrap .Bg{position:fixed;top:0;left:0;width:100%;height:100%;\n background:url(',"/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.Coupon{width:100%;height:70vw;position:relative;z-index:9;}\n\n.Button{position:absolute;width:100%;bottom:30vw;text-align:center;","}\n.Button img{height:20.26666666vw}\n\n.transit{display:none; ","}\n.show.transit{display:block;","}\n\n.Cache{display:none;position:absolute;bottom:-10px;left:-10px;z-index:-10}\n.Cache img{width:1px;height:1px;}\n\n\n@media screen and (max-height : 210vw) {\n .Button{bottom:27vw;}\n}\n@media screen and (max-height : 200vw) {\n .Button{bottom:25vw;}\n}\n@media screen and (max-height : 190vw) {\n .Button{bottom:22vw;}\n}\n@media screen and (max-height : 180vw) {\n .VideoWrap video{margin-top:10vw;}\n .Button{bottom:20vw;}\n}\n@media screen and (max-height : 170vw) {\n .VideoWrap video{margin-top:15vw;}\n .Button{bottom:15vw;}\n}\n"])),vt(),ht(["PoiNo"]),mt.path,ht(["PoiNo"]),mt.path,ht(["PoiAll"]),ht(["PoiNo"]),ht(["PoiAll"]));function Cn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var On,_n={exports:{}};(On=_n).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},On.exports.__esModule=!0,On.exports.default=On.exports;var Mn=Cn(_n.exports),Ln={exports:{}},In={exports:{}},En={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==m(Symbol.iterator)?function(t){return m(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":m(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(En);var Bn=Cn(En.exports),zn={exports:{}};!function(t){var e=En.exports.default;t.exports=function(t,n){if("object"!==e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,n||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(zn),function(t){var e=En.exports.default,n=zn.exports;t.exports=function(t){var o=n(t,"string");return"symbol"===e(o)?o:String(o)},t.exports.__esModule=!0,t.exports.default=t.exports}(In),function(t){var e=In.exports;function n(t,n){for(var o=0;o<n.length;o++){var r=n[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(Ln);var An=Cn(Ln.exports),Pn={exports:{}},jn={exports:{}},Tn={exports:{}};!function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(Tn);var Rn=Cn(Tn.exports);!function(t){var e=Tn.exports;t.exports=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}(jn),function(t){var e=jn.exports;function n(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=n=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=n=function(t,n,o){var r=e(t,n);if(r){var i=Object.getOwnPropertyDescriptor(r,n);return i.get?i.get.call(arguments.length<3?t:o):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports),n.apply(this,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(Pn);var Fn=Cn(Pn.exports),Nn={exports:{}},Dn={exports:{}};!function(t){function e(n,o){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(Dn),function(t){var e=Dn.exports;t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}(Nn);var Wn=Cn(Nn.exports),Hn={exports:{}},Vn={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(Vn),function(t){var e=En.exports.default,n=Vn.exports;t.exports=function(t,o){if(o&&("object"===e(o)||"function"==typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Hn);var Gn,Yn,$n=Cn(Hn.exports);function Un(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":Bn(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}Gn=window,Yn={},function t(e,n,o,r){var i=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),a="function"==typeof Path2D&&"function"==typeof DOMMatrix,s=function(){if(!e.OffscreenCanvas)return!1;var t=new OffscreenCanvas(1,1),n=t.getContext("2d");n.fillRect(0,0,1,1);var o=t.transferToImageBitmap();try{n.createPattern(o,"no-repeat")}catch(t){return!1}return!0}();function c(){}function l(t){var o=n.exports.Promise,r=void 0!==o?o:e.Promise;return"function"==typeof r?new r(t):(t(c,c),null)}var u,d,p,h,f,v,g,m,y,x,b,w=(u=s,d=new Map,{transform:function(t){if(u)return t;if(d.has(t))return d.get(t);var e=new OffscreenCanvas(t.width,t.height);return e.getContext("2d").drawImage(t,0,0),d.set(t,e),e},clear:function(){d.clear()}}),k=(f=Math.floor(1e3/60),v={},g=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(p=function(t){var e=Math.random();return v[e]=requestAnimationFrame((function n(o){g===o||g+f-1<o?(g=o,delete v[e],t()):v[e]=requestAnimationFrame(n)})),e},h=function(t){v[t]&&cancelAnimationFrame(v[t])}):(p=function(t){return setTimeout(t,f)},h=function(t){return clearTimeout(t)}),{frame:p,cancel:h}),S=(x={},function(){if(m)return m;if(!o&&i){var e=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{m=new Worker(URL.createObjectURL(new Blob([e])))}catch(t){return void 0!==("undefined"==typeof console?"undefined":Bn(console))&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",t),null}!function(t){function e(e,n){t.postMessage({options:e||{},callback:n})}t.init=function(e){var n=e.transferControlToOffscreen();t.postMessage({canvas:n},[n])},t.fire=function(n,o,r){if(y)return e(n,null),y;var i=Math.random().toString(36).slice(2);return y=l((function(o){function a(e){e.data.callback===i&&(delete x[i],t.removeEventListener("message",a),y=null,w.clear(),r(),o())}t.addEventListener("message",a),e(n,i),x[i]=a.bind(null,{data:{callback:i}})}))},t.reset=function(){for(var e in t.postMessage({reset:!0}),x)x[e](),delete x[e]}}(m)}return m}),C={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function O(t,e,n){return function(t,e){return e?e(t):t}(t&&null!=t[e]?t[e]:C[e],n)}function _(t){return t<0?0:Math.floor(t)}function M(t){return parseInt(t,16)}function L(t){return t.map(I)}function I(t){var e=String(t).replace(/[^0-9a-f]/gi,"");return e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:M(e.substring(0,2)),g:M(e.substring(2,4)),b:M(e.substring(4,6))}}function E(t){t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight}function B(t){var e=t.getBoundingClientRect();t.width=e.width,t.height=e.height}function z(t,e){e.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.x+10*e.scalar,e.wobbleY=e.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);var n=e.tick++/e.totalTicks,o=e.x+e.random*e.tiltCos,r=e.y+e.random*e.tiltSin,i=e.wobbleX+e.random*e.tiltCos,s=e.wobbleY+e.random*e.tiltSin;if(t.fillStyle="rgba("+e.color.r+", "+e.color.g+", "+e.color.b+", "+(1-n)+")",t.beginPath(),a&&"path"===e.shape.type&&"string"==typeof e.shape.path&&Array.isArray(e.shape.matrix))t.fill(function(t,e,n,o,r,i,a){var s=new Path2D(t),c=new Path2D;c.addPath(s,new DOMMatrix(e));var l=new Path2D;return l.addPath(c,new DOMMatrix([Math.cos(a)*r,Math.sin(a)*r,-Math.sin(a)*i,Math.cos(a)*i,n,o])),l}(e.shape.path,e.shape.matrix,e.x,e.y,.1*Math.abs(i-o),.1*Math.abs(s-r),Math.PI/10*e.wobble));else if("bitmap"===e.shape.type){var c=Math.PI/10*e.wobble,l=.1*Math.abs(i-o),u=.1*Math.abs(s-r),d=e.shape.bitmap.width*e.scalar,p=e.shape.bitmap.height*e.scalar,h=new DOMMatrix([Math.cos(c)*l,Math.sin(c)*l,-Math.sin(c)*u,Math.cos(c)*u,e.x,e.y]);h.multiplySelf(new DOMMatrix(e.shape.matrix));var f=t.createPattern(w.transform(e.shape.bitmap),"no-repeat");f.setTransform(h),t.globalAlpha=1-n,t.fillStyle=f,t.fillRect(e.x-d/2,e.y-p/2,d,p),t.globalAlpha=1}else if("circle"===e.shape)t.ellipse?t.ellipse(e.x,e.y,Math.abs(i-o)*e.ovalScalar,Math.abs(s-r)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI):function(t,e,n,o,r,i,a,s){t.save(),t.translate(e,n),t.rotate(i),t.scale(o,r),t.arc(0,0,1,0,s,void 0),t.restore()}(t,e.x,e.y,Math.abs(i-o)*e.ovalScalar,Math.abs(s-r)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI);else if("star"===e.shape)for(var v=Math.PI/2*3,g=4*e.scalar,m=8*e.scalar,y=e.x,x=e.y,b=5,k=Math.PI/b;b--;)y=e.x+Math.cos(v)*m,x=e.y+Math.sin(v)*m,t.lineTo(y,x),v+=k,y=e.x+Math.cos(v)*g,x=e.y+Math.sin(v)*g,t.lineTo(y,x),v+=k;else t.moveTo(Math.floor(e.x),Math.floor(e.y)),t.lineTo(Math.floor(e.wobbleX),Math.floor(r)),t.lineTo(Math.floor(i),Math.floor(s)),t.lineTo(Math.floor(o),Math.floor(e.wobbleY));return t.closePath(),t.fill(),e.tick<e.totalTicks}function A(t,n){var a,s=!t,c=!!O(n||{},"resize"),u=!1,d=O(n,"disableForReducedMotion",Boolean),p=i&&O(n||{},"useWorker")?S():null,h=s?E:B,f=!(!t||!p||!t.__confetti_initialized),v="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function g(e,n,i){for(var s,c,u,d,p=O(e,"particleCount",_),f=O(e,"angle",Number),v=O(e,"spread",Number),g=O(e,"startVelocity",Number),m=O(e,"decay",Number),y=O(e,"gravity",Number),x=O(e,"drift",Number),b=O(e,"colors",L),S=O(e,"ticks",Number),C=O(e,"shapes"),M=O(e,"scalar"),I=!!O(e,"flat"),E=function(t){var e=O(t,"origin",Object);return e.x=O(e,"x",Number),e.y=O(e,"y",Number),e}(e),B=p,A=[],P=t.width*E.x,j=t.height*E.y;B--;)A.push((c=(s={x:P,y:j,angle:f,spread:v,startVelocity:g,color:b[B%b.length],shape:C[(d=C.length,Math.floor(Math.random()*(d-0))+0)],ticks:S,decay:m,gravity:y,drift:x,scalar:M,flat:I}).angle*(Math.PI/180),u=s.spread*(Math.PI/180),{x:s.x,y:s.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*s.startVelocity+Math.random()*s.startVelocity,angle2D:-c+(.5*u-Math.random()*u),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:s.color,shape:s.shape,tick:0,totalTicks:s.ticks,decay:s.decay,drift:s.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*s.gravity,ovalScalar:.6,scalar:s.scalar,flat:s.flat}));return a?a.addFettis(A):(a=function(t,e,n,i,a){var s,c,u=e.slice(),d=t.getContext("2d"),p=l((function(e){function l(){s=c=null,d.clearRect(0,0,i.width,i.height),w.clear(),a(),e()}s=k.frame((function e(){!o||i.width===r.width&&i.height===r.height||(i.width=t.width=r.width,i.height=t.height=r.height),i.width||i.height||(n(t),i.width=t.width,i.height=t.height),d.clearRect(0,0,i.width,i.height),(u=u.filter((function(t){return z(d,t)}))).length?s=k.frame(e):l()})),c=l}));return{addFettis:function(t){return u=u.concat(t),p},canvas:t,promise:p,reset:function(){s&&k.cancel(s),c&&c()}}}(t,A,h,n,i),a.promise)}function m(n){var o=d||O(n,"disableForReducedMotion",Boolean),r=O(n,"zIndex",Number);if(o&&v)return l((function(t){t()}));s&&a?t=a.canvas:s&&!t&&(t=function(t){var e=document.createElement("canvas");return e.style.position="fixed",e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",e.style.zIndex=t,e}(r),document.body.appendChild(t)),c&&!f&&h(t);var i={width:t.width,height:t.height};function m(){if(p){var e={getBoundingClientRect:function(){if(!s)return t.getBoundingClientRect()}};return h(e),void p.postMessage({resize:{width:e.width,height:e.height}})}i.width=i.height=null}function y(){a=null,c&&(u=!1,e.removeEventListener("resize",m)),s&&t&&(document.body.removeChild(t),t=null,f=!1)}return p&&!f&&p.init(t),f=!0,p&&(t.__confetti_initialized=!0),c&&!u&&(u=!0,e.addEventListener("resize",m,!1)),p?p.fire(n,i,y):g(n,i,y)}return m.reset=function(){p&&p.reset(),a&&a.reset()},m}function P(){return b||(b=A(null,{useWorker:!0,resize:!0})),b}n.exports=function(){return P().apply(this,arguments)},n.exports.reset=function(){P().reset()},n.exports.create=A,n.exports.shapeFromPath=function(t){if(!a)throw new Error("path confetti are not supported in this browser");var e,n;"string"==typeof t?e=t:(e=t.path,n=t.matrix);var o=new Path2D(e),r=document.createElement("canvas").getContext("2d");if(!n){for(var i,s,c=1e3,l=c,u=c,d=0,p=0,h=0;h<c;h+=2)for(var f=0;f<c;f+=2)r.isPointInPath(o,h,f,"nonzero")&&(l=Math.min(l,h),u=Math.min(u,f),d=Math.max(d,h),p=Math.max(p,f));i=d-l,s=p-u;var v=Math.min(10/i,10/s);n=[v,0,0,v,-Math.round(i/2+l)*v,-Math.round(s/2+u)*v]}return{type:"path",path:e,matrix:n}},n.exports.shapeFromText=function(t){var e,n=1,o="#000000",r='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof t?e=t:(e=t.text,n="scalar"in t?t.scalar:n,r="fontFamily"in t?t.fontFamily:r,o="color"in t?t.color:o);var i=10*n,a=i+"px "+r,s=new OffscreenCanvas(i,i),c=s.getContext("2d");c.font=a;var l=c.measureText(e),u=Math.ceil(l.actualBoundingBoxRight+l.actualBoundingBoxLeft),d=Math.ceil(l.actualBoundingBoxAscent+l.actualBoundingBoxDescent),p=l.actualBoundingBoxLeft+2,h=l.actualBoundingBoxAscent+2;u+=4,d+=4,(c=(s=new OffscreenCanvas(u,d)).getContext("2d")).font=a,c.fillStyle=o,c.fillText(e,p,h);var f=1/n;return{type:"bitmap",bitmap:s.transferToImageBitmap(),matrix:[f,0,0,f,-u*f/2,-d*f/2]}}}(function(){return void 0!==Gn?Gn:"undefined"!=typeof self?self:this||{}}(),Yn,!1),Gn.confetti=Yn.exports;var Xn=function(){Wn(e,o);var t=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Rn(t);if(e){var r=Rn(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return $n(this,n)}}(e);function e(){var n;return Mn(this,e),(n=t.call(this)).defaults={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,origin:{x:.5,y:.5},shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],scalar:1},n.zindex=100,n}return An(e,[{key:"connectedCallback",value:function(){Fn(Rn(e.prototype),"connectedCallback",this).call(this),this.load()}},{key:"load",value:function(){confetti({particleCount:150,spread:90,ticks:130,scalar:1.3,zIndex:this.zindex,origin:{y:.35}})}}]),e}();Un([a],Xn.prototype,"game",void 0),Un([e({converter:s})],Xn.prototype,"zindex",void 0),Xn=Un([n({name:"g-confetti",shadowOptions:{mode:"closed"}})],Xn);var Zn={init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};confetti(Object.assign({particleCount:200,spread:70,zIndex:3e3,origin:{y:.4}},t))}};function Jn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}window.Effects=window.Effects||{},window.Effects.confetti=Zn;var Qn,qn={exports:{}};(Qn=qn).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Qn.exports.__esModule=!0,Qn.exports.default=Qn.exports;var Kn=Jn(qn.exports),to={exports:{}},eo={exports:{}},no={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==m(Symbol.iterator)?function(t){return m(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":m(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(no);var oo=Jn(no.exports),ro={exports:{}};!function(t){var e=no.exports.default;t.exports=function(t,n){if("object"!==e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,n||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(ro),function(t){var e=no.exports.default,n=ro.exports;t.exports=function(t){var o=n(t,"string");return"symbol"===e(o)?o:String(o)},t.exports.__esModule=!0,t.exports.default=t.exports}(eo),function(t){var e=eo.exports;function n(t,n){for(var o=0;o<n.length;o++){var r=n[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(to);var io=Jn(to.exports),ao={exports:{}},so={exports:{}},co={exports:{}};!function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(co);var lo=Jn(co.exports);!function(t){var e=co.exports;t.exports=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}(so),function(t){var e=so.exports;function n(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=n=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=n=function(t,n,o){var r=e(t,n);if(r){var i=Object.getOwnPropertyDescriptor(r,n);return i.get?i.get.call(arguments.length<3?t:o):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports),n.apply(this,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(ao);var uo=Jn(ao.exports),po={exports:{}},ho={exports:{}};!function(t){function e(n,o){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(ho),function(t){var e=ho.exports;t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}(po);var fo=Jn(po.exports),vo={exports:{}},go={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(go),function(t){var e=no.exports.default,n=go.exports;t.exports=function(t,o){if(o&&("object"===e(o)||"function"==typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(vo);var mo=Jn(vo.exports),yo={exports:{}};!function(t){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.__esModule=!0,t.exports.default=t.exports}(yo);var xo,bo=Jn(yo.exports);function wo(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":oo(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}var ko=t(xo||(xo=bo(["\n.LightWrap {position:fixed;width:500vw;height:500vw;top:50%;left:50%;transform: translate(-50%, -50%);filter: blur(6px);}\n:host([dir='top']) .LightWrap{top:0;}\n:host([dir='topleft']) .LightWrap{top:0;left:0;}\n:host([dir='topright']) .LightWrap{top:0;left:100%;}\n:host([dir='bottom']) .LightWrap{top:100%;}\n:host([dir='bottomleft']) .LightWrap{top:100%;left:0;}\n:host([dir='bottomright']) .LightWrap{top:100%;left:100%;}\n:host([dir='left']) .LightWrap{left:0;}\n:host([dir='right']) .LightWrap{left:100%;}\n.LightWrap .Circle {position:absolute;inset:0;border-radius:50%;}\n.LightWrap .Circle1 {\n background:repeating-conic-gradient(from 0deg at 50% 50%,transparent 0%,var(--color) 1%,transparent 6%);\n -webkit-animation: 13s linear rotate infinite reverse;\n animation: 13s linear rotate infinite reverse;\n}\n.LightWrap .Circle2 {\n background:repeating-conic-gradient(from 19deg at 50% 50%,transparent 0%, var(--color) 1.2%,var(--color),transparent 4.8%,transparent 7.6%);\n -webkit-animation: 9s linear -2s rotate infinite;\n animation: 9s linear -2s rotate infinite;\n}\n.LightWrap .Circle3 {\n background:repeating-conic-gradient(from 37deg at 50% 50%,transparent 0%,var(--color) 4%,transparent 7.9%,transparent 12%);\n -webkit-animation: 17s linear rotate infinite reverse;\n animation: 17s linear rotate infinite reverse;\n}\n.LightWrap .Circle4 {\n background:repeating-conic-gradient(from 103deg at 50% 50%,transparent 0%,var(--color)) 5%,var(--color) 7%,transparent 12%);\n -webkit-animation:7s linear rotate infinite;\n animation:7s linear rotate infinite;\n}\n@-webkit-keyframes rotate{from{transform:rotate(0deg);}to{transform:rotate(359deg);}}\n@keyframes rotate{from{transform:rotate(0deg);}to{transform:rotate(359deg);}}\n"]))),So={exports:{}},Co={exports:{}},Oo={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o},t.exports.__esModule=!0,t.exports.default=t.exports}(Oo),function(t){var e=Oo.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Co);var _o={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(_o);var Mo={exports:{}};!function(t){var e=Oo.exports;t.exports=function(t,n){if(t){if("string"==typeof t)return e(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(t,n):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(Mo);var Lo={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(Lo),function(t){var e=Co.exports,n=_o.exports,o=Mo.exports,r=Lo.exports;t.exports=function(t){return e(t)||n(t)||o(t)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(So);var Io=Jn(So.exports),Eo={exports:{}},Bo={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(Bo);var zo={exports:{}};!function(t){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==e);c=!0);}catch(t){l=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}},t.exports.__esModule=!0,t.exports.default=t.exports}(zo);var Ao={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(Ao),function(t){var e=Bo.exports,n=zo.exports,o=Mo.exports,r=Ao.exports;t.exports=function(t,i){return e(t)||n(t,i)||o(t,i)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(Eo);var Po,jo=Jn(Eo.exports),To=Math.min,Ro=Math.max,Fo=Math.floor,No=Math.round;function Do(t,e,n){e/=100,n/=100;var o=Fo(t=t/360*6),r=t-o,i=n*(1-e),a=n*(1-r*e),s=n*(1-(1-r)*e),c=o%6;return[255*[n,a,i,i,s,n][c],255*[s,n,n,a,i,i][c],255*[i,i,s,n,n,a][c]]}function Wo(t,e,n){var o,r,i=To(t/=255,e/=255,n/=255),a=Ro(t,e,n),s=a-i;if(0===s)o=r=0;else{r=s/a;var c=((a-t)/6+s/2)/s,l=((a-e)/6+s/2)/s,u=((a-n)/6+s/2)/s;t===a?o=u-l:e===a?o=1/3+c-u:n===a&&(o=2/3+l-c),o<0?o+=1:o>1&&(o-=1)}return[360*o,100*r,100*a]}function Ho(t,e,n,o){e/=100,n/=100;var r=255*(1-To(1,(t/=100)*(1-(o/=100))+o)),i=255*(1-To(1,e*(1-o)+o)),a=255*(1-To(1,n*(1-o)+o));return Io(Wo(r,i,a))}function Vo(t,e,n){return e/=100,[t,(n/=100)+(e*=n<.5?n:1-n)?2*e/(n+e)*100:0,100*(n+e)]}function Go(t){return Wo.apply(void 0,Io(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function Yo(){var t=function(t,e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e(~n?t.map((function(t){return Number(t.toFixed(n))})):t)}},e={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var n=[e.h,e.s,e.v,e.a];return n.toString=t(n,(function(t){return"hsva(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toHSLA:function(){var n=[].concat(Io(function(t,e,n){var o=(2-(e/=100))*(n/=100)/2;return 0!==o&&(e=1===o?0:o<.5?e*n/(2*o):e*n/(2-2*o)),[t,100*e,100*o]}(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"hsla(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toRGBA:function(){var n=[].concat(Io(Do(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", ").concat(e.a,")")})),n},toCMYK:function(){var n=function(t,e,n){var o,r=Do(t,e,n),i=r[0]/255,a=r[1]/255,s=r[2]/255;return[100*(1===(o=To(1-i,1-a,1-s))?0:(1-i-o)/(1-o)),100*(1===o?0:(1-a-o)/(1-o)),100*(1===o?0:(1-s-o)/(1-o)),100*o]}(e.h,e.s,e.v);return n.toString=t(n,(function(t){return"cmyk(".concat(t[0],"%, ").concat(t[1],"%, ").concat(t[2],"%, ").concat(t[3],"%)")})),n},toHEXA:function(){var t=function(t,e,n){return Do(t,e,n).map((function(t){return No(t).toString(16).padStart(2,"0")}))}(e.h,e.s,e.v),n=e.a>=1?"":Number((255*e.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return n&&t.push(n),t.toString=function(){return"#".concat(t.join("").toUpperCase())},t},clone:function(){return Yo(e.h,e.s,e.v,e.a)}};return e}var $o,Uo,Xo,Zo,Jo,Qo,qo=r(Po||(Po=bo(['\n<section class="LightWrap">\n <div class="Circle Circle1"></div>\n <div class="Circle Circle2"></div>\n <div class="Circle Circle3"></div>\n <div class="Circle Circle4"></div>\n</section>\n']))),Ko=function(){fo(e,o);var t=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=lo(t);if(e){var r=lo(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return mo(this,n)}}(e);function e(){var n;return Kn(this,e),(n=t.call(this)).color="#faf014",n}return io(e,[{key:"colorChanged",value:function(t,e){var n,o;e&&this.style.setProperty("--color",(n=function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;var e,n={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=function(t){return t.map((function(t){return/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0}))};t:for(var r in n)if(e=n[r].exec(t))switch(r){case"cmyk":var i=o(e),a=jo(i,5),s=a[1],c=a[2],l=a[3],u=a[4];if(s>100||c>100||l>100||u>100)break t;return{values:Ho(s,c,l,u),type:r};case"rgba":var d=o(e),p=jo(d,7),h=p[3],f=p[4],v=p[5],g=p[6];if(h>255||f>255||v>255||g<0||g>1)break t;return{values:[].concat(Io(Wo(h,f,v)),[g]),a:g,type:r};case"hexa":var m=jo(e,2)[1];4!==m.length&&3!==m.length||(m=m.split("").map((function(t){return t+t})).join(""));var y=m.substring(0,6),x=m.substring(6);return x=x?parseInt(x,16)/255:void 0,{values:[].concat(Io(Go(y)),[x]),a:x,type:r};case"hsla":var b=o(e),w=jo(b,7),k=w[3],S=w[4],C=w[5],O=w[6];if(k>360||S>100||C>100||O<0||O>1)break t;return{values:[].concat(Io(Vo(k,S,C)),[O]),a:O,type:r};case"hsva":var _=o(e),M=jo(_,7),L=M[3],I=M[4],E=M[5],B=M[6];if(L>360||I>100||E>100||B<0||B>1)break t;return{values:[L,I,E,B],a:B,type:r}}return{values:null,type:null}}(e),o=Yo.apply(void 0,Io(n.values)).toRGBA(),"rgba(".concat(o[0].toFixed(0),",").concat(o[1].toFixed(0),",").concat(o[2].toFixed(0),",").concat(.2*Number(o[3].toFixed(2)),")")))}},{key:"connectedCallback",value:function(){uo(lo(e.prototype),"connectedCallback",this).call(this)}}]),e}();function tr(t,e,n){return e=C(e),k(t,er()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function er(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(er=function(){return!!t})()}wo([e],Ko.prototype,"dir",void 0),wo([e],Ko.prototype,"color",void 0),Ko=wo([n({name:"h-spotlight",template:qo,styles:ko,shadowOptions:{mode:"closed"}})],Ko);var nr,or=r($o||($o=z(['\n <div class="PrizeWrap">\n <div class="VideoWrap">\n <div class="Conten">\n <div class="Bg"></div>\n <h-spotlight color="#000"></h-spotlight>\n <div class="Img zoomInUp">\n <span>\n ',"\n </span>\n \n <span>\n ",'\n </span>\n <div class="Light"></div>\n </div>\n </div>\n </div>\n\n <div ',' class="Content transit">\n <div class="Title">\n <span>\n ',"\n </span>\n <span>\n ",'\n </span> \n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n </div>\n </div>\n <div class="Cache">\n <img src="','" />\n <img src="','" />\n <img src="','" />\n <img src="','" />\n <img src="','" />\n <img src="','" />\n <img src="','" />\n </div>\n'])),l((function(t){return 1==t.type}),r(Uo||(Uo=z(['<img src="','" class="Card" draggable="false"/>'])),(function(t){return t.imgSrc}))),l((function(t){return 2==t.type}),r(Xo||(Xo=z(['<div class="CouponWrap">\n <img class="Coupon" src="','"/>\n <div class="Info">\n <p style="color:#FF3B0A;font-size:9.6vw;font-weight:600;line-height:9.6vw">','</p>\n <p style="color:#EB330E;font-size:3.733vw;font-weight:600;margin:2vw 0 7vw">',"</p>\n </div>\n </div>"])),mt.path+mt.coupon,(function(t){return t.prizeQuota}),(function(t){return t.prizeName}))),i("contentWrap"),l((function(t){return 1==t.type}),r(Zo||(Zo=z(['<img src="','/download/img/collect/title01.png"/>\n <p class="Subtitle">',"</p>"])),mt.path,(function(t){return t.number>0?r(Jo||(Jo=z(["再集","张不同卡牌即可合成"])),(function(t){return t.number})):"已集齐6张,赶快去合成吧"}))),l((function(t){return 2==t.type}),r(Qo||(Qo=z(['<img src="','/download/img/collect/title02.png"/><p class="Subtitle">',"</p>"])),mt.path,(function(t){return t.prizeQuota+t.prizeName}))),(function(t){return t.accept()}),mt.path,mt.path+mt.coupon,mt.path+mt.card1,mt.path+mt.card2,mt.path+mt.card3,mt.path+mt.card4,mt.path+mt.card5,mt.path+mt.card6),rr=function(){function t(){var e;return h(this,t),(e=tr(this,t)).prizeName="",e.prizeQuota="",e.isClick=!1,e.imgSrc="",e.type=1,e.index=1,e.number=3,ft.case.install([Me,Xn,Ko]),e}return E(t,o),x(t,[{key:"indexChanged",value:function(t,e){var n=this;setTimeout((function(){n.imgSrc=mt.path+mt["card"+e]}),10)}},{key:"showChanged",value:function(t,e){null===e||!1===e?He.instance.remove(this.contentWrap,"show"):this.init()}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"accept",value:function(){this.isClick&&(this.close(),this.$emit("change","accept"))}},{key:"init",value:function(){var t=this;setTimeout((function(){He.instance.add(t.contentWrap,"show")}),1e3),setTimeout((function(){t.isClick=!0}),2e3),window.confetti({particleCount:150,spread:90,ticks:130,scalar:1.3,zIndex:3200,origin:{y:.35}})}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){t&&2==this.type&&(this.prizeName=t.prizeName,this.prizeQuota=t.prizeQuota)}}])}();A([a],rr.prototype,"Overlay",void 0),A([a],rr.prototype,"video",void 0),A([a],rr.prototype,"contentWrap",void 0),A([a],rr.prototype,"prizeName",void 0),A([a],rr.prototype,"prizeQuota",void 0),A([a],rr.prototype,"imgSrc",void 0),A([e({converter:s})],rr.prototype,"type",void 0),A([e({converter:s})],rr.prototype,"index",void 0),A([e({converter:s})],rr.prototype,"number",void 0),A([e({mode:"boolean"})],rr.prototype,"show",void 0),A([Re],rr.prototype,"showChanged",null),A([$e(300)],rr.prototype,"accept",null),rr=A([n({name:"g-collect-prize",template:or,styles:Sn,shadowOptions:{mode:"closed"}})],rr);var ir,ar,sr,cr,lr=t(nr||(nr=z(["\n:host{\ndisplay:inline-block;\nwidth:51.73333333vw;\nheight:60vw;\n}\n.SwipeWrap {\nposition: relative;\nwidth:51.73333333vw;\nheight:60vw;\nperspective: 500px;\ntransform-style: preserve-3d;\n}\n.CardContainer {\nposition: absolute;\nz-index:99;\nwidth:51.73333333vw;\nheight:60vw;\ntransform: \n rotateY(calc(var(--offset) * 50deg)) \n scaleY(calc(1 + var(--abs-offset) * -0.4))\n translateZ(calc(var(--abs-offset) * -30rem))\n translateX(calc(var(--direction) * -5rem));\nfilter: blur(calc(var(--abs-offset) * 1rem));\ntransition: all 0.3s ease-out;\n}\n.CardContainer img{\n width:100%;height:100%;\n}\n\n.Nav {\n position: absolute;\n display: none;\n align-items: center;\n justify-content: center;\n top: 44%;\n z-index: 299;\n cursor: pointer;\n user-select: none;\n background: unset;\n border: unset;\n width:10.666666666vw;\n height:10.666666666vw;\n}\n.Nav img {\n width:100%;height:100%;\n}\n.Nav.Left {\n left: -4.266666666vw;\n transform: translateX(-100%) translatey(-50%);\n}\n.Nav.Right {\n right: -4.266666666vw;\n transform: translateX(100%) translatey(-50%);\n}\n:host(.isArrow) .Nav{display: flex;}\n"])));function ur(t,e,n){return e=C(e),k(t,dr()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function dr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(dr=function(){return!!t})()}var pr=r(ir||(ir=z(['\n<section class="SwipeWrap">\n <span>\n ',"\n </span>\n <span>\n ","\n </span>\n <span>\n ","\n </span>\n</section>\n"])),l((function(t){return t.active>0}),r(ar||(ar=z(['<img class="Nav Left" @click="','" src="','/download/img/collect/arrowL.png" draggable="false"/>'])),(function(t){return t.setActive("l")}),mt.path)),c((function(t){return t.cardItem}),r(sr||(sr=z(['<div class="CardContainer ','" style="','">\n <img src="','" draggable="false"/>\n </div>'])),(function(t,e){return e.parent.classFn(e.index)}),(function(t,e){return e.parent.styleFn(e.index)}),(function(t){return t.total>0?t.card:t.grey})),{positioning:!0}),l((function(t){return t.active<t.cardItem.length-1}),r(cr||(cr=z(['<img class="Nav Right" @click="','" src="','/download/img/collect/arrowR.png" draggable="false"/>'])),(function(t){return t.setActive("r")}),mt.path))),hr=function(){function t(){var e;return h(this,t),(e=ur(this,t)).cardItem=Array.from({length:7},(function(t,e){return{card:"".concat(mt.path,"/download/img/collect/card0").concat(e+1,".png"),grey:"".concat(mt.path,"/download/img/collect/card0").concat(e+1,"-1.png")}})),e.MAX_VISIBILITY=1,e.active=0,e.arrow=!0,e}return E(t,o),x(t,[{key:"arrowChanged",value:function(t,e){null===e||!1===e||this.isComposed?He.instance.remove(this,"isArrow"):He.instance.add(this,"isArrow")}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=M(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"setActive",value:function(t){"l"==t?--this.active:++this.active}},{key:"classFn",value:function(t){return t==this.active?"active":""}},{key:"styleFn",value:function(t){var e="--active:".concat(t===this.active?1:0,";");return e+="--offset:".concat((this.active-t)/3,";"),e+="--direction:".concat(Math.sign(this.active-t),";"),e+="--abs-offset:".concat(Math.abs(this.active-t)/3,";"),e+="pointer-events:".concat(this.active===t?"auto":"none",";"),e+="opacity:".concat(Math.abs(this.active-t)>=this.MAX_VISIBILITY?"0":"1",";"),e+="display:".concat(Math.abs(this.active-t)>this.MAX_VISIBILITY?"none":"block",";")}},{key:"revert",value:function(){this.isComposed=!1,this.arrow=!0,this.active=0,this.cardItem=Array.from({length:7},(function(t,e){return{card:"".concat(mt.path,"/download/img/collect/card0").concat(e+1,".png"),grey:"".concat(mt.path,"/download/img/collect/card0").concat(e+1,"-1.png")}}))}},{key:"update",value:function(t){if(t&&t.isRevert)this.revert();else if(t&&t.cardList){for(var e=Array.from({length:6}),n=0;n<t.cardList.length;n++){var o=t.cardList[n];e[o.cardType-1]={total:o.cardNum,card:"".concat(mt.path,"/download/img/collect/card0").concat(o.cardType,".png"),grey:"".concat(mt.path,"/download/img/collect/card0").concat(o.cardType,"-1.png")}}e.push({total:t.isComposed?1:0,card:"".concat(mt.path,"/download/img/collect/card07.png"),grey:"".concat(mt.path,"/download/img/collect/card07-1.png")}),this.cardItem=e,t.isComposed&&(this.active=6,this.arrow=!1,this.isComposed=t.isComposed)}}}])}();A([a],hr.prototype,"cardItem",void 0),A([a],hr.prototype,"isComposed",void 0),A([e({converter:s})],hr.prototype,"active",void 0),A([e({mode:"boolean"})],hr.prototype,"arrow",void 0),hr=A([n({name:"g-collect-swipe",template:pr,styles:lr,shadowOptions:{mode:"closed"}})],hr);export{Je as HiCollectConflate,kn as HiCollectList,rr as HiCollectPrize,hr as HiCollectSwipe};
|