/*! For license information please see cn.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports["toutiao:follow"]=t(require("react"),require("react-dom")):e["toutiao:follow"]=t(e.React,e.ReactDOM)}(self,(function(e,t){return(()=>{var r={9017:e=>{window,e.exports=function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"backEnd";if(this.isEditor()){var t=window.globalGetState().canvas;return"default"===t.canvastype?t.ostype:t.canvastype}if("backEnd"===e){var r,n=null===(r=window.__MAGIC__)||void 0===r?void 0:r.canvas;return"object"===o(n)&&n.os?n.os:null}if("frontEnd"===e){var i=navigator.userAgent,a=i.match(/(Android);?[\s\/]+([\d.]+)?/),s=i.match(/(iPad).*OS\s([\d_]+)/),c=i.match(/(iPod)(.*OS\s([\d_]+))?/),u=!s&&i.match(/(iPhone\sOS)\s([\d_]+)/);return a?"android":s||c||u?"ios":"pc"}},getproductUid:function(){return this.isEditor()?window.globalGetState().canvas.productUId:window.__MAGIC__.canvas.productUId},getVersion:function(){if(this.isEditor())return window.globalGetState().canvas.appversion;if(this.inApp()){var e=window.__MAGIC__.action&&window.__MAGIC__.action.custom&&window.__MAGIC__.action.custom.getAppInfo;if(e&&"function"==typeof e){var t=e();if(t&&t.version)return t.version}var r=this.getOS(),o=window.__MAGIC__.canvas.pua,n=new RegExp("(".concat(o,") *([^ ]*)"),"i");"gogokid"===o&&("ios"===r?n=/Version ([\d\.]*);/:"android"===r&&(n=/gogokid\(([^)]*)\)/));var i=window.navigator.userAgent.match(/app_version\/([\d\.]+)/),a=window.navigator.userAgent.match(n);if(i)return i[1].replace(/[^0-9\.]+/g,"");if(a)return a[2].replace(/[^0-9\.]+/g,"")}},compareVersion:function(e,t){t=t||this.getVersion();var r=e.split(".").map((function(e){return parseInt(e)})),o=t.split(".").map((function(e){return parseInt(e)}));if(r.length==o.length){for(var n=0;no[n])return 1;if(r[n]1&&void 0!==arguments[1]?arguments[1]:"s";if(!e)return 0;var r=Number(new Date)-Number(e)||0;return r=r>=0?r:0,"ms"===t?r:Number((r/1e3).toFixed(2))},escapeHTML:function(e){var t={"&":"&","<":"<",">":">","'":"'",'"':"""};return e.replace(/[&<>'"]/g,(function(e){return t[e]||""}))},getQuery:function(e){var t=(e||location.href).split("?")[1]||"";if(t){var r=t.split("&"),o={};for(var n in r){var i=r[n].split("="),a=i.shift(),s=this.escapeHTML(decodeURIComponent(i.join("=")));o[a]=s}return o}return{}},urlEncode:function(e){var t=[];for(var r in e){var o="".concat(r,"=").concat(encodeURIComponent(e[r]));t.push(o)}return t.join("&")},addQueryUrl:function(e,t){return"object"===o(t)&&(t=this.urlEncode(t)),t?e.match(/\?/)?e.match(/&$/)?e+t:"".concat(e,"&").concat(t):"".concat(e,"?").concat(t):e},sendLog:function(e){var t,r,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"===o(e)&&(a=e.params||{},e=e.eventName),this.isEditor())console.log(e,"magic editor canvas no log!");else if(a.language=navigator.language,a.country=window.__MAGIC__.canvas.region||"unknow",a.appType=window.__MAGIC__.canvas.appType||"unknow",a.pageNo=(null===(t=window.__MAGIC__.dynamicInfo)||void 0===t||null===(r=t.schemaRenderComponent)||void 0===r||null===(n=r.state)||void 0===n?void 0:n.pageNo)||0,a.inorout=this.inApp()?"in":"out",a.osType=this.getOS(),a.h5url=location.href,e.match(/^magic_sdk_/)||(e="magic_sdk_".concat(e)),this.inApp()&&window.__MAGIC__.action&&window.__MAGIC__.action.magicUnifyJsb&&window.__MAGIC__.action.magicUnifyJsb.appSendLog){var s=window.__MAGIC__.teaEvtParams||{},c=Object.assign({},s,a);window.__MAGIC__.action.magicUnifyJsb.call("appSendLog",{eventName:e,params:c})}else if(window.collectEvent){var u=this.inApp()?{}:{__userless:1};window.collectEvent(e,i(i({},a),u))}else console.log(e,"cannot log")},backToApp:function(e){if(e=e||{},!this.isEditor()){if(window.self!==window.top)return void this.toast({type:"text",content:"Please operate in app."});var t=e.downloadLink||window.__MAGIC__.canvas.downlink;"object"===o(t)&&(t=t[this.getOS()]);var r,n=e.timeout||3e3,i=e.type||"webview",a=e.data||{url:location.href};try{r=function(e){var t,r=e.type,o=e.data,n=window.__MAGIC__&&window.__MAGIC__.action&&window.__MAGIC__.action.custom&&window.__MAGIC__.action.custom.urlScheme;return n&&"function"==typeof n?(t=n(e),console.log("custom.urlScheme",e,t),t):(n=window.__MAGIC__&&window.__MAGIC__.action&&window.__MAGIC__.action.urlScheme&&window.__MAGIC__.action.urlScheme[r])&&"function"==typeof n?(t=n(o),console.log("urlScheme[type]",e,t),t):void 0}({type:i,data:a})}catch(e){console.log(e),r=null}var s=e.scheme||r||window.__MAGIC__.canvas.urlScheme;"object"===o(s)&&(s=s[i]),s=s.replace(/{{([\w\.]*)}}/g,(function(e,t){for(var r=t.split("."),o=a[r.shift()],n=0,i=r.length;n2&&void 0!==arguments[2]?arguments[2]:3e3);e&&(this.iframeHref(e),location.href=e),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&clearTimeout(r)}))}else console.log("Product downlink is not existed.");else console.log("Product scheme is not existed.")},iframeHref:function(e){var t=document.getElementsByTagName("body"),r=document.getElementById("app_iframe");if(r){var o=r.parentNode;o&&o.removeChild(r)}var n=document.createElement("iframe");n.id="app_iframe",n.src=e,n.style.cssText="display: none",t[0].appendChild(n)},getimgsize:function(e){var t=this.getQuery(e);return t.size?{width:"".concat(parseFloat(t.size.split("x")[0])/100,"rem"),height:"".concat(parseFloat(t.size.split("x")[1])/100,"rem")}:{}},toast:function(e){var t=e.type,r=void 0===t?"text":t,o=e.content,n=void 0===o?"toast tips":o,i=e.duration,a=void 0===i?2:i,s=document.createElement("div"),c="mes_".concat(Math.random().toString(36).substr(2));if(s.className="magic-tool-toast",s.id=c,s.setAttribute("style","background-size:100% 100%;position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%);-webkit-transform: translate(-50%, -50%);background-color: rgba(0,0,0,0.7); border-radius: 0.06rem;z-index: 9999; font-size: 0.3rem;padding: 0.2rem; text-align: center; color: white;"),"text"===r)s.innerHTML=n;else{var u=this.getimgsize(n);s.style.width=u.width||"2rem",s.style.height=u.height||"2rem",s.style.backgroundImage="url(".concat(n,")")}var l=document.body;this.isEditor()&&(l=document.getElementsByClassName("magic-editor-canvas-area")[0]||document.body),l.appendChild(s),setTimeout((function(){l.removeChild(s)}),1e3*a)},getTzName:function(){return window&&window.Intl?window.Intl.DateTimeFormat().resolvedOptions().timeZone:(new Date).getTimezoneOffset()/-60},debounce:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,r=null;return function(){for(var o=arguments.length,n=new Array(o),i=0;i{"use strict";r.r(t),r.d(t,{default:()=>i});var o=r(9126);const n={qs:r.n(o)(),isEditor:()=>!0===window.__EDITOR__,env(){return this.isEditor()?{...window.globalGetState().canvas,browser:{}}:{...window.__MAGIC__.canvas,browser:{}}},inApp(){if(this.isEditor())return window.globalGetState().canvas.inapp;{let e=new RegExp(window.__MAGIC__.canvas.pua,"i");return Boolean(navigator.userAgent.match(e))}},getOS(e="backEnd"){if(this.isEditor()){let{canvas:e}=window.globalGetState();return"default"===e.canvastype?e.ostype:e.canvastype}if("backEnd"===e){let e=window.__MAGIC__?.canvas;return"object"==typeof e&&e.os?e.os:null}if("frontEnd"===e){let e=navigator.userAgent,t=e.match(/(Android);?[\s\/]+([\d.]+)?/),r=e.match(/(iPad).*OS\s([\d_]+)/),o=e.match(/(iPod)(.*OS\s([\d_]+))?/),n=!r&&e.match(/(iPhone\sOS)\s([\d_]+)/);return t?"android":r||o||n?"ios":"pc"}},getproductUid(){return this.isEditor()?window.globalGetState().canvas.productUId:window.__MAGIC__.canvas.productUId},getVersion(){if(this.isEditor())return window.globalGetState().canvas.appversion;if(this.inApp()){const e=window.__MAGIC__.action&&window.__MAGIC__.action.custom&&window.__MAGIC__.action.custom.getAppInfo;if(e&&"function"==typeof e){const t=e();if(t&&t.version)return t.version}let t=this.getOS(),r=window.__MAGIC__.canvas.pua,o=new RegExp(`(${r}) *([^ ]*)`,"i"),n=/app_version\/([\d\.]+)/;"gogokid"===r&&("ios"===t?o=/Version ([\d\.]*);/:"android"===t&&(o=/gogokid\(([^)]*)\)/));let i=window.navigator.userAgent.match(n),a=window.navigator.userAgent.match(o);if(i)return i[1].replace(/[^0-9\.]+/g,"");if(a)return a[2].replace(/[^0-9\.]+/g,"")}},compareVersion(e,t){t=t||this.getVersion();const r=e.split(".").map((function(e){return parseInt(e)})),o=t.split(".").map((function(e){return parseInt(e)}));if(r.length==o.length){for(let e=0;eo[e])return 1;if(r[e]=0?r:0,"ms"===t?r:Number((r/1e3).toFixed(2))},escapeHTML(e){const t={"&":"&","<":"<",">":">","'":"'",'"':"""};return e.replace(/[&<>'"]/g,(e=>t[e]||""))},getQuery(e){let t=e||"";t||"object"!=typeof location||(t=location.href||"");let r=t.split("?")[1]||"";if(r){let e=r.split("&"),t={};for(let r in e){let o=e[r].split("="),n=o.shift(),i=this.escapeHTML(decodeURIComponent(o.join("=")));t[n]=i}return t}return{}},urlEncode(e){let t=[];for(let r in e){let o=`${r}=${encodeURIComponent(e[r])}`;t.push(o)}return t.join("&")},addQueryUrl(e,t){return"object"==typeof t&&(t=this.urlEncode(t)),t?e.match(/\?/)?e.match(/&$/)?e+t:`${e}&${t}`:`${e}?${t}`:e},sendLog(e,t={}){if("object"==typeof e&&(t=e.params||{},e=e.eventName),this.isEditor())console.log(e,"magic editor canvas no log!");else{t.language=navigator.language,t.country=window.__MAGIC__.canvas.region||"unknow",t.appType=window.__MAGIC__.canvas.appType||"unknow",t.pageNo=window.__MAGIC__.dynamicInfo?.schemaRenderComponent?.state?.pageNo||0,t.inorout=this.inApp()?"in":"out",t.osType=this.getOS(),t.h5url=location.href,t.activityId=window.__MAGIC__.canvas.activityId,t.productUId=window.__MAGIC__.canvas.productUId,t.template=window.__MAGIC__.canvas.createFromTemplate,t.source=location.href.split(/magic_source=([^&]+)/)[1]||"default",t.magicVersion=3,t.enter_from_merge="magic_page",t.enter_method=t.compid,t.magic3_comptype=t.comptype,t.magic3_activityId=window.__MAGIC__.canvas.activityId,t.magic3_source=window.__MAGIC__.canvas.source,e.match(/^magic_sdk_/)||(e=`magic_sdk_${e}`);const r=window.__MAGIC__.teaEvtParams||{},o=Object.assign({},r,t);if(this.inApp()&&window.__MAGIC__.action&&window.__MAGIC__.action.magicUnifyJsb&&window.__MAGIC__.action.magicUnifyJsb.appSendLog){try{if("function"==typeof window.collectEvent){const t={original_event_name:e,...o};window.collectEvent("magic_sdk_debug_app_send_log",{...t,__userless:1})}}catch(e){}window.__MAGIC__.action.magicUnifyJsb.call("appSendLog",{eventName:e,params:o})}else if(window.collectEvent){const t={__userless:1};window.collectEvent(e,{...o,...t})}else console.log(e,"cannot log")}},backToApp(e){if(e=e||{},!this.isEditor()){if(window.self!==window.top)return void this.toast({type:"text",content:"Please operate in app."});let t=e.downloadLink||window.__MAGIC__.canvas.downlink;"object"==typeof t&&(t=t[this.getOS()]);let r=location.href;"1128"===this.getproductUid()&&(r=`${location.origin}${location.pathname}?${encodeURIComponent(location.search.slice(1))}`);let o,n=e.timeout||3e3,i=e.type||"webview",a=e.data||{url:r};try{o=function(e){const{type:t,data:r}=e;let o,n=window.__MAGIC__&&window.__MAGIC__.action&&window.__MAGIC__.action.custom&&window.__MAGIC__.action.custom.urlScheme;return n&&"function"==typeof n?(o=n(e),console.log("custom.urlScheme",e,o),o):(n=window.__MAGIC__&&window.__MAGIC__.action&&window.__MAGIC__.action.urlScheme&&window.__MAGIC__.action.urlScheme[t],n&&"function"==typeof n?(o=n(r),console.log("urlScheme[type]",e,o),o):void 0)}({type:i,data:a})}catch(e){console.log(e),o=null}let s=e.scheme||o||window.__MAGIC__.canvas.urlScheme;"object"==typeof s&&(s=s[i]),s=s&&s.replace(/{{([\w\.]*)}}/g,(function(e,t){let r=t.split("."),o=a[r.shift()];for(let e=0,t=r.length;ewindow&&window.Intl?window.Intl.DateTimeFormat().resolvedOptions().timeZone:(new Date).getTimezoneOffset()/-60,debounce(e,t=400){let r=null;return(...o)=>{clearTimeout(r),r=setTimeout((()=>{e(...o)}),t)}},safeGet(e,t){try{return t.split(".").reduce(((e,t)=>e[t]),e)}catch(e){return}},searchSchemaById(e,t){if(e.id===t)return e;if(e.children&&0!==e.children.length)for(const r of e.children){const e=this.searchSchemaById(r,t);if(e)return e}},searchCompSchema(e){const t=window.store.getState().canvas.editschema;return this.searchSchemaById(t,e)},autoSetImgWH(e=!0,t=200){let r="",o=!0;return this.debounce(((t,n="")=>{let i=n;if(!this.isEditor())return;if(!i){const e=this.safeGet(this.searchCompSchema(t),`propStyle.#${t}.background`)||"";[,i]=e.match(/url\((\S*)\)/)||["",""],i=(i||"").replace("https:","")}if(o)return o=!1,void(r=i);if(!i||e&&i===r)return;r=i;let{width:a,height:s}=this.getimgsize(i,"px");if(!a||!s)return;const c=parseFloat(a),u=parseFloat(s);c>750&&(a="750px",s=`${Math.floor(u/c*750)}px`),window.ec.emit("ComPropChange",{componentId:t,key:"propStyle",value:{width:a,height:s}})}),t)},urlToObj(e){const t=(e||location.href).split("?"),r=t[0],o={};return(t[1]&&t[1].split("&")||[]).forEach((e=>{const t=e.split("=");o[t[0]]=decodeURIComponent(t[1])})),{path:r,query:o}},objToUrl(e,t){const r=/^https?:\/\/.*/,{path:o,query:n}=e;let i=`${o}?`;return Object.keys(n).forEach(((e,o)=>{t?i+=`${e}=${t(n[e])}&`:r.test(n[e])?i+=`${e}=${encodeURIComponent(n[e])}&`:i+=`${e}=${n[e]}&`})),i.slice(0,-1)},getMagicParams(e={}){const t=window.__MAGIC__&&window.__MAGIC__.canvas||{};return{enter_from_merge:"magic_page",enter_method:e.id||"",magic3_comptype:e.type||"",magic3_activityId:t.activityId||"",magic3_source:t.source||""}},getTransparentUrl(e,t={},r={}){const o={magicParams:!0,node:{},pageParamsList:[],...t},n=/^https?:\/\/.*/,i=/=https?:\/\/.*\?.*/,a=o.magicParams&&this.getMagicParams(o.node),s=this.urlToObj().query,c={...r,...a};o.pageParamsList.forEach((e=>{const[t,r]=e.split("=");c[t]=r||s[t]||""}));let u=e;i.test(u)&&(u=u.replace(i,(e=>{const t=e.slice(1);return`=${encodeURIComponent(t)}`})));const l=this.urlToObj(u);return Object.assign(l.query,c),u=this.objToUrl(l,(e=>{if(n.test(e)){const t=this.urlToObj(e);return Object.assign(t.query,c),encodeURIComponent(this.objToUrl(t))}return e})),console.log("getTransparentUrl====>",u),u},slardarSeedEvent(e,t){window.SlardarWeb?(console.log("has new slardar web"),window.SlardarWeb("sendEvent",{name:e,metrics:{count:1},categories:{bid:"magic_eco_runtime",pid:window.__MAGIC__.canvas.activityId,...t}})):console.log("no SlarWeb")}};window.__MAGIC__.tool=n;const i=n},6674:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var o=r(8081),n=r.n(o),i=r(3645),a=r.n(i)()(n());a.push([e.id,".magic-common-base-iconspin{animation:magic-animation-spin .6s infinite linear}@keyframes magic-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}",""]);const s=a},1906:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var o=r(8081),n=r.n(o),i=r(3645),a=r.n(i)()(n());a.push([e.id,".mfollow{width:1.76rem;height:.64rem;background-size:100% 100%}",""]);const s=a},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",o=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),o&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),o&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,o,n,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),n&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=n):l[4]="".concat(n)),t.push(l))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},3655:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var o=r(3379),n=r.n(o),i=r(7795),a=r.n(i),s=r(569),c=r.n(s),u=r(3565),l=r.n(u),p=r(9216),d=r.n(p),f=r(4589),h=r.n(f),m=r(6674),y={};y.styleTagTransform=h(),y.setAttributes=l(),y.insert=c().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=d(),n()(m.Z,y);const g=m.Z&&m.Z.locals?m.Z.locals:void 0},6205:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var o=r(3379),n=r.n(o),i=r(7795),a=r.n(i),s=r(569),c=r.n(s),u=r(3565),l=r.n(u),p=r(9216),d=r.n(p),f=r(4589),h=r.n(f),m=r(1906),y={};y.styleTagTransform=h(),y.setAttributes=l(),y.insert=c().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=d(),n()(m.Z,y);const g=m.Z&&m.Z.locals?m.Z.locals:void 0},3379:e=>{"use strict";var t=[];function r(e){for(var r=-1,o=0;o{"use strict";var t={};e.exports=function(e,r){var o=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(r)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var o="";r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var n=void 0!==r.layer;n&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,n&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6747:function(e,t,r){var o,n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};o=[r,t,r(359),r(2738),r(8670)],n=function(e,t,r,o,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Feedback=void 0,r=i(r),n=i(n);class a extends r.default.Component{constructor(e){super(e),this.state={modalNodeProps:null,trigger:void 0,systemTipVisible:!1,systemTipContent:""}}static getDerivedStateFromProps(e,t){if(!a.checkModalType(e))return null;const r={},o=a.getModalNodeProps(e);return o&&o!==t.modalNodeProps&&(r.modalNodeProps=o),e.trigger!==t.trigger&&(r.trigger=e.trigger),Object.keys(r).length?r:null}static getModalNodeProps(e){const{schemaRenderComponent:t,data:{type:r,value:o}}=e;if("Modal"===r&&o&&t){const e=t.getNodeById(o);return e?e.props:(console.error("modal not found",o),null)}return null}static checkModalType(e){const{schemaRenderComponent:t,data:{type:r,value:o}}=e;return!("Modal"!==r||!o||!t)}componentDidMount(){const{data:{type:e,value:t}}=this.props;"None"!==e&&(e?t?a.checkModalType(this.props)&&this.changeModalNodeProps(this.state.trigger):this.setState({systemTipVisible:!0,systemTipContent:"Feedback component props.data.value is not defined."}):this.setState({systemTipVisible:!0,systemTipContent:"Feedback component props.data.type is not defined."}))}componentDidUpdate(e,t){if(this.changePageNo(),a.checkModalType(this.props))if(this.state.trigger===t.trigger){if(this.state.modalNodeProps&&t.modalNodeProps&&this.state.modalNodeProps!==t.modalNodeProps){if(this.state.modalNodeProps.show===this.state.trigger)return;this.props.onTriggerChange&&this.props.onTriggerChange(this.state.modalNodeProps.show)}}else this.changeModalNodeProps(this.state.trigger)}changePageNo(){const{data:{type:e,value:t},schemaRenderComponent:r,trigger:o}=this.props;if("Page"===e){if(!r)return void this.setState({systemTipVisible:!0,systemTipContent:"Feedback component props.schemaRenderComponent is not defined."});o&&(this.props.onTriggerChange(!1),r.changePageNo(t),window.scrollTo({top:0,left:0,behavior:"smooth"}))}}changeModalNodeProps(e){const{schemaRenderComponent:t,data:{type:r,value:o}}=this.props;if("Modal"!==r||!o||!t)return;let n=!1;const i=t.resetSchemaByNodeId(o,(t=>(t.props.show!==e&&(n=!0),{show:e})));if(n){t.resetState({schema:i});const e=t.getNodeById(o,i).props;this.setState({modalNodeProps:Object.assign({},e)})}}render(){var e,t,i,a,s,c,u;const{systemTipVisible:l,systemTipContent:p}=this.state,{trigger:d,data:f,data:{type:h,value:m,duration:y},onTriggerChange:g,schemaRenderComponent:v}=this.props;if("None"===h)return null;if("Url"===h){if(!m)throw"Feedback component(type Url) props.data.value is not defined";d&&(location.href=m)}return"Schema"===h&&d&&("32"===n.default.getproductUid()?(null===(a=null===(i=null===(t=null===(e=null===window||void 0===window?void 0:window.__MAGIC__)||void 0===e?void 0:e.action)||void 0===t?void 0:t.jsb)||void 0===i?void 0:i.bridge)||void 0===a||a.call("view.open",{url:m}),g(!1)):(null===(u=null===(c=null===(s=null===window||void 0===window?void 0:window.__MAGIC__)||void 0===s?void 0:s.action)||void 0===c?void 0:c.magicUnifyJsb)||void 0===u||u.call("openSchema",{schema:m}),g(!1))),r.default.createElement(r.default.Fragment,null,"Toast"===f.type&&r.default.createElement(o.Toast,{visible:d,duration:y||2e3,content:f.value,onVisibleChange:g}),"Image"===f.type&&r.default.createElement(o.Toast,{visible:d,duration:y||2e3,content:r.default.createElement("img",{style:{maxWidth:"70vw",maxHeight:"75vh"},src:f.value}),onVisibleChange:g}),r.default.createElement(o.Toast,{visible:l,duration:1e4,content:p,onVisibleChange:e=>{this.setState({systemTipVisible:e})}}))}}t.Feedback=a,a.defaultProps={trigger:!1,data:{type:"Toast",value:"Hello World",duration:2e3}}}.apply(t,o),void 0===n||(e.exports=n)},7658:function(e,t,r){var o,n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};o=[r,t,r(359),r(3655)],n=function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Iconerror=t.Iconspin=void 0,r=i(r),t.Iconspin=function(e){const{size:t=30,color:o="#000"}=e;return r.default.createElement("svg",{style:e.style||{},className:"magic-common-base-iconspin",width:t,height:t,viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("defs",null,r.default.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:"linearGradient-7"},r.default.createElement("stop",{stopColor:o,stopOpacity:"0",offset:"0%"}),r.default.createElement("stop",{stopColor:o,stopOpacity:"0.50",offset:"39.9430698%"}),r.default.createElement("stop",{stopColor:o,offset:"100%"}))),r.default.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r.default.createElement("rect",{id:"Rectangle",fillOpacity:"0.01",fill:"#FFFFFF",x:"0",y:"0",width:"36",height:"36"}),r.default.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",id:"Path",stroke:"url(#linearGradient-7)",strokeWidth:"4",strokeLinecap:"round"})))},t.Iconerror=function(e){const{size:t=30,color:r="#000"}=e;return null}}.apply(t,o),void 0===n||(e.exports=n)},2738:function(e,t,r){var o,n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};o=[r,t,r(359),r(4318)],n=function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Toast=void 0,r=i(r);class n extends r.default.Component{constructor(e){super(e);const t=window.document;this.node=t.createElement("div"),this.node.setAttribute("data-type","toast"),t.body.appendChild(this.node),this.timeoutId=null}resetState(){const{visible:e,duration:t=2e3,content:r,onVisibleChange:o,zIndex:n=1e3}=this.props;e&&(this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.timeoutId=setTimeout((()=>{o&&o(!1)}),t))}componentDidMount(){this.resetState()}componentDidUpdate(){this.resetState()}componentWillUnmount(){window.document.body.removeChild(this.node)}render(){const{visible:e,duration:t=2e3,content:n,onVisibleChange:i,zIndex:a=1e3}=this.props;return e?o.createPortal(r.default.createElement("div",{style:{position:"fixed",top:"50%",width:"100%",padding:"0 12.5%",transform:"translate(0%, -50%)",zIndex:a,overflow:"hidden",display:"flex",justifyContent:"center",boxSizing:"border-box"}},r.default.isValidElement(n)?n:r.default.createElement("div",{style:{padding:10,backgroundColor:"rgba(0, 0, 0, 0.7)",borderRadius:"4px",color:"#fff"}},n)),this.node):null}}t.Toast=n}.apply(t,o),void 0===n||(e.exports=n)},4410:function(e,t,r){var o,n,i=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};o=[r,t,r(7658),r(2738),r(6747)],n=function(e,t,r,o,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a(r,t),a(o,t),a(n,t)}.apply(t,o),void 0===n||(e.exports=n)},9925:(e,t,r)=>{var o;void 0===(o=function(t,r){"use strict";const o={},n={on:function(e,t){if(o[e]){for(let r of o[e])if(t===r)return;o[e].push(t)}else o[e]=[t]},off:function(e,t){if(o[e])for(let r=0;r{const{viewRef:x,inView:S}=i.useInView({onlyFirst:!0}),{login:A,userInfo:j,isLoginRef:I}=i.useLogin(),[E,P]=r.useState(!1),C=r.useRef(!1),[T,M]=r.useState(!1),[k,R]=r.useState(!1),[U,N]=r.useState({type:"Toast",value:"关注成功"}),L=r.useMemo((()=>E?v:u),[E]);r.useEffect((()=>{if(f&&j.isLogin){const e=window.__MAGIC__.action.jsb.view.onPageVisible(G);return()=>e.remove()}}),[j.isLogin]),r.useEffect((()=>{p&&h&&F()}),[]);const D=t=>{console.log("handleFollowAfter",t),o.default.sendLog("button_click",{button_type:g,compid:e,user_id:s,isfollow:t?"follow":"unfollow"}),P(t),z(t?_:w)},F=()=>{window.__MAGIC__.action.jsb.bridge.on("page_state_change",(e=>{console.log("page_state_change",e);const{type:t,id:r,status:o}=e;"user_action"===t&&String(r)===s&&D(o>0)}))},G=()=>c(void 0,void 0,void 0,(function*(){return l.getFollowStatus(s).then((e=>{M(!0),P(e)})).catch((e=>{M(!0),console.error(e)}))})),B=()=>c(void 0,void 0,void 0,(function*(){if(!b&&E)return;if(p){const e=E?"do_media_unlike":"do_media_like";return void window.__MAGIC__.action.jsb.bridge.call(e,{id:j.userId,uid:s,content_type:"",source:"59"},(e=>c(void 0,void 0,void 0,(function*(){if(m&&y)try{let e=yield l.getFollowStatus(s);E!==e&&D(e)}catch(e){console.error(e)}else 1===e.code&&D(!E)}))))}const e=E?"unfollow":"follow";try{const{status:t,user_presentation_text:r="关注失败"}=yield a.default.fetch({url:`https://it.snssdk.com/video/app/user/${e}/v2/`,method:"POST",data:{to_user_id:s,user_id:j.userId,device_id:j.deviceId}});if(0!==t)return void a.default.toast(r);D(!E)}catch(e){console.error(e)}})),z=e=>{N(e),R(!0)};return r.useEffect((()=>{d||C.current||!j.isLogin||G()}),[s,j.isLogin]),r.useEffect((()=>{S&&T&&o.default.sendLog("button_show",{button_type:g,compid:e,user_id:s,isfollow:E?"follow":"unfollow"})}),[S,T]),r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{id:e,"data-comp-type":t,className:"mfollow",ref:x,style:{backgroundImage:`url(${L})`},onClick:()=>{d||(f?I.current?B():(C.current=!0,A().then((()=>c(void 0,void 0,void 0,(function*(){yield G(),C.current=!1,console.log("pre handleFollow"),B()})))).catch((()=>{console.error("login fail"),C.current=!1}))):a.default.downloadOrArouseApp())}}),r.default.createElement(n.Feedback,{schemaRenderComponent:O,trigger:k,data:{type:U.type,value:U.value,duration:2e3},onTriggerChange:R}))}))}.apply(t,o),void 0===n||(e.exports=n)},7031:function(e,t,r){var o,n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};o=[r,t,r(8286)],n=function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFollowStatus=void 0,r=i(r);const{getAppId:o}=r.default.env,n=o(),a=r.default.PackFetchHOF({url:"https://api5-normal-hl.toutiaoapi.com/lvfe/activity/api/user/MGetFollowStatus",method:"GET",batch:{limit:30,pack:(e,t)=>({params:{toUids:[...e.params.toUids,...t.params.toUids],aid:n}}),unPack:(e,t)=>{console.log({result:e,request:t});const{data:r}=e;return(null==r?void 0:r[t.params.toUids[0]])||!1}}});t.getFollowStatus=e=>a({params:{toUids:[e]}})}.apply(t,o),void 0===n||(e.exports=n)},6126:function(e,t,r){var o,n,i=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};o=[r,t,r(8901),r(0)],n=function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a(r,t),a(o,t)}.apply(t,o),void 0===n||(e.exports=n)},0:(e,t,r)=>{var o,n;o=[r,t,r(359),r(8360)],n=function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useInView=void 0;const o=new Map,n=new IntersectionObserver(((e,t)=>{e.forEach((e=>{const r=o.get(e.target);r&&r(e,t)}))}),{root:null,rootMargin:"0px",threshold:[.1,.9]}),i=e=>{n.unobserve(e),o.delete(e)};t.useInView=({onlyFirst:e=!0})=>{const[t,a]=r.useState(!1),s=r.useRef(null);return r.useLayoutEffect((()=>{const t=s.current;if(t)return((e,t)=>{o.set(e,t),n.observe(e)})(t,(r=>{r.intersectionRatio>=.1?(a(!0),e&&i(t)):a(!1)})),()=>i(t)}),[]),{viewRef:s,inView:t}}}.apply(t,o),void 0===n||(e.exports=n)},8901:function(e,t,r){var o,n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};o=[r,t,r(359),r(9925),r(8286)],n=function(e,t,r,o,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLogin=void 0,o=i(o),n=i(n);const{isXGApp:a,isiOS:s,isOurApp:c}=n.default.env;let u=0,l=null;const p=()=>c?(Date.now()-u<500&&l||(u=Date.now(),l=new Promise((e=>{window.__MAGIC__.action.jsb.app.getAppInfo().then((({data:t})=>{const r=Number((null==t?void 0:t.user_id)||0);e({isLogin:Boolean(r),deviceId:(null==t?void 0:t.device_id)||"0",userId:r})})).catch(console.error)}))),l):Promise.resolve({isLogin:!1,deviceId:"0",userId:0});c&&window.__MAGIC__.action.jsb.view.onPageVisible((()=>{p().then((e=>{o.default.emit("loginChange",Object.assign({},e))}))})),t.useLogin=()=>{const[e,t]=r.useState({isLogin:!1,deviceId:"0",userId:0}),n=r.useRef(!1),i=r.useRef(!1);n.current=e.isLogin;const c=r.useCallback(((e=!1)=>p().then((r=>(t(r),n.current=r.isLogin,e&&o.default.emit("loginChange",Object.assign({},r)),r)))),[p]),u=r.useCallback((()=>new Promise(((t,r)=>{i.current||(i.current=!0,setTimeout((()=>{i.current=!1}),500),n.current?t(e):window.__MAGIC__.action.jsb.app.login().then((()=>{c(!0).then((e=>{if(e.isLogin)t(e);else{if(a&&s)return;r()}})).catch((()=>{r()}))})).catch((e=>{r(e)})))}))),[c,n,e]);return r.useEffect((()=>{o.default.on("loginChange",(e=>{n.current!==e.isLogin&&t(Object.assign({},e))}))}),[]),r.useEffect((()=>{c()}),[]),{userInfo:e,isLoginRef:n,login:u}}}.apply(t,o),void 0===n||(e.exports=n)},8580:(e,t,r)=>{var o;o=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t=(()=>{}))=>{const r=document.createElement("input");r.setAttribute("readonly","readonly"),r.value=e,document.body.appendChild(r),r.select(),r.setSelectionRange(0,r.value.length),document.execCommand("copy")&&(null==t||t()),document.body.removeChild(r)}}.apply(t,[r,t]),void 0===o||(e.exports=o)},6164:(e,t,r)=>{var o;o=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UTM_SOURCE=void 0,t.UTM_SOURCE="utm_source=magic"}.apply(t,[r,t]),void 0===o||(e.exports=o)},100:function(e,t,r){var o,n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};o=[r,t,r(8858),r(2872),r(2726)],n=function(e,t,r,o,n){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.backToApp=t.getFormatScheme=t.getShortLink=t.getArouseApp=void 0,r=i(r),function(e){e.TOUTIAO="toutiao",e.LITE="lite",e.XIGUA="xigua"}(a||(a={}));const s={[a.TOUTIAO]:"https://article.zlink.toutiao.com/krxM",[a.LITE]:"https://z.toutiao.com/YKw6"},c={[a.TOUTIAO]:["snssdk141","snssdk143"],[a.LITE]:["snssdk35","snssdk35"],[a.XIGUA]:["snssdk32","snssdk32"]};t.getArouseApp=e=>{var t;if(e)return a.TOUTIAO;const r=(null===(t=o.getQuery().appTypeSource)||void 0===t?void 0:t.trim())||"";return Object.values(a).includes(r)?r:a.TOUTIAO},t.getShortLink=e=>{var t,r;return e===a.LITE?(null===(t=window.__IXIGUA_SHORTLINK__)||void 0===t?void 0:t.lite)||s[a.LITE]:(null===(r=window.__IXIGUA_SHORTLINK__)||void 0===r?void 0:r.toutiao)||s[a.TOUTIAO]},t.getFormatScheme=(e,t)=>{let r=e;/^http/.test(e)&&(r=`sslocal://webview?url=${encodeURIComponent(e)}`);let o=r.split(":"),i=o.length>1?o[0]:"";return r=r.replace(i,c[t][Number(n.isAndroid)]),r},t.backToApp=(e,t,o)=>{o!==a.TOUTIAO&&o!==a.LITE||r.default({link:t,scheme:e,cancelUniversalLink:!!n.isWithinTheClient()})},t.default=(e=window.location.href,r,o)=>{const n=t.getArouseApp(o),i=t.getShortLink(n),s=((e,t,r)=>r?e===a.LITE?r.liteUrl||r.toutiaoUrl||t:r.toutiaoUrl||t:t)(n,e,r),c=t.getFormatScheme(s,n);t.backToApp(c,i,n)}}.apply(t,o),void 0===n||(e.exports=n)},2726:function(e,t,r){var o,n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};o=[r,t,r(3978)],n=function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWithinTheClient=t.getOSVersion=t.getOS=t.getAppName=t.getAppId=t.AppInfoMap=t.getPlatform=t.isQQ=t.isWeChat=t.isDouYinApp=t.isVideoCutApp=t.isOurApp=t.isTTMainApp=t.isTTLiteApp=t.isTTApp=t.isXGApp=t.isPreview=t.isPC=t.isiOS=t.isiPod=t.isiPhone=t.isiPad=t.isAndroid=t.isEditor=void 0,r=i(r);const o=navigator.userAgent;t.isEditor=!0===window.__EDITOR__,t.isAndroid=Boolean(o.match(/(android|adr)/i)),t.isiPad=Boolean(o.match(/(iPad).*OS\s([\d_]+)/)),t.isiPhone=Boolean(o.match(/(iPhone\sOS)\s([\d_]+)/)),t.isiPod=Boolean(o.match(/(iPod)(.*OS\s([\d_]+))?/)),t.isiOS=t.isiPad||t.isiPhone||t.isiPod,t.isPC=!t.isEditor&&!t.isAndroid&&!t.isiOS,t.isPreview=t.isPC&&window.self!==window.top,t.isXGApp=Boolean(o.match(/VideoArticle/i)),t.isTTApp=Boolean(o.match(/newsarticle/i)),t.isTTLiteApp=Boolean(o.match(/newslite/i)),t.isTTMainApp=t.isTTApp&&!t.isTTLiteApp,t.isOurApp=t.isXGApp||t.isTTApp,t.isVideoCutApp=Boolean(o.match(/LV/)),t.isDouYinApp=Boolean(o.match(/aweme/i)),t.isWeChat=Boolean(o.match(/micromessenger/i)),t.isQQ=Boolean(o.match(/ qq/i))&&!o.match(/mqqbrowser/i),t.getPlatform=function(){return t.isPC?"pc":t.isXGApp?"xigua":t.isTTLiteApp?"lite":t.isTTMainApp?"toutiao":t.isVideoCutApp?"videocut":t.isDouYinApp?"douyin":t.isWeChat?"wechat":t.isQQ?"qq":"other"},t.AppInfoMap={xigua:{appId:32,appName:"video_article"},toutiao:{appId:13,appName:"news_article"},lite:{appId:35,appName:"news_article_lite"}},t.getAppId=()=>{const e=t.getPlatform();return t.AppInfoMap[e]?t.AppInfoMap[e].appId:t.AppInfoMap.xigua.appId},t.getAppName=()=>{const e=t.getPlatform();return t.AppInfoMap[e]?t.AppInfoMap[e].appName:t.AppInfoMap.xigua.appName},t.getOS=()=>t.isAndroid?"android":t.isiOS?"ios":"pc",t.getOSVersion=()=>{var e;try{let r=navigator.userAgent.toLowerCase();if(t.isAndroid)return(null===(e=r.match(/android (.*?);/))||void 0===e?void 0:e[0].replace(/android/gi,""))||"";if(t.isiOS)return`${r.match(/os [\d._]+/gi)}`.replace(/[^0-9|_.]/gi,"").replace(/_/gi,".")}catch(e){r.default("啊哦!出错啦>_<")}return""},t.isWithinTheClient=()=>t.isTTMainApp||t.isTTLiteApp||t.isXGApp||t.isVideoCutApp||t.isDouYinApp}.apply(t,o),void 0===n||(e.exports=n)},7889:function(e,t,r){var o,n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};o=[r,t,r(9644),r(2726)],n=function(e,t,r,o){"use strict";function n(e,t,r=location.host){let o=e;if(/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+)/.test(o)||(o=`${r}${o.startsWith("/")?"":"/"}${o}`),o.startsWith("//")||o.startsWith("http")||(o=`${location.protocol||"https:"}//${o}`),!t)return o;const[n,i]=o.split("?"),a=new URLSearchParams(i);return Object.keys(t).forEach((e=>a.set(e,t[e]))),`${n}?${a.toString()}`}Object.defineProperty(t,"__esModule",{value:!0}),t.getUrlWithParams=void 0,r=i(r),t.getUrlWithParams=n,t.default=function(e){const t=n(e.url,e.params),{method:i="GET",headers:a={},platform:s="all",forceHttp:c,data:u,needCommonParams:l=!0}=e,p=function(e=!1,t="all"){return e?"http":o.isXGApp&&["all","inApp","onlyXigua"].includes(t)||o.isTTApp&&["all","inApp","onlyToutiao"].includes(t)?"jsb":["all","outApp"].includes(t)?"http":null}(c,s);return"jsb"===p?new Promise(((e,r)=>{window.JSBridge.call("app.fetch",{url:t,method:i,data:u,header:a,needCommonParams:l},(({code:t,status:o,data:n})=>{let i=!1;if(1===t&&(i=!0),200===n.status&&(i=!0),1===n.code&&(i=!0),i)try{e(JSON.parse(null==n?void 0:n.response))}catch(e){console.error(n),r("请求失败")}else console.error(n),r(o)}))})):"http"===p?r.default({url:t,method:i,headers:Object.assign({"Content-Type":"application/json"},a),data:u}).then((({status:e,data:t})=>200===e?t:(console.error(t),Promise.reject("请求失败")))):new Promise((()=>{}))}}.apply(t,o),void 0===n||(e.exports=n)},3815:function(e,t,r){var o,n,i=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};o=[r,t,r(7889),r(7889),r(6947),r(1668),r(1125)],n=function(e,t,r,o,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(r,t),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s(o).default}}),a(n,t),a(i,t)}.apply(t,o),void 0===n||(e.exports=n)},6947:function(e,t,r){var o,n,i=this&&this.__rest||function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n{const{batch:o}=e,n=i(e,["batch"]),{pack:a,unPack:s,beforeRequest:c}=o,{params:u,data:l}=t.map((({params:e,data:t})=>({params:e,data:t}))).reduce(((e,t,r)=>0===r?t:a(e,t)));let p=Object.assign(Object.assign({},n),{params:u,data:l});return c&&(p=c(p)),r.default(p).then((e=>{t.forEach((({params:t,data:r,resolve:o})=>{o(s(e,{params:t,data:r}))}))})).catch((e=>{t.forEach((({reject:t})=>{t(e)}))}))};t.PackFetchHOF=function(e){let t,r=[];return n=>{const i=new Promise(((e,t)=>{r.push(Object.assign(Object.assign({},n),{resolve:e,reject:t}))}));return t||(t=setTimeout((()=>{o(e,[...r]),clearTimeout(t),t=0,r=[]}),e.batch.throttle||100)),r.length===e.batch.limit&&(o(e,[...r]),clearTimeout(t),t=0,r=[]),i}}}.apply(t,o),void 0===n||(e.exports=n)},1668:function(e,t,r){var o,n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};o=[r,t,r(7889)],n=function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttleFetch=void 0,r=i(r);const o={};t.throttleFetch=function(e){const t=JSON.stringify(e);return o[t]||(o[t]=r.default(e).then((e=>(delete o[t],e))).catch((e=>{throw delete o[t],e}))),o[t]}}.apply(t,o),void 0===n||(e.exports=n)},8286:function(e,t,r){var o,n,i=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return a(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};o=[r,t,r(6921),r(3815)],n=function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=c(r),o=s(o);const n=Object.assign({fetch:o.default,getUrlWithParams:o.getUrlWithParams,PackFetchHOF:o.PackFetchHOF,throttleFetch:o.throttleFetch},r.default);t.default=n}.apply(t,o),void 0===n||(e.exports=n)},6921:function(e,t,r){var o,n,i=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return a(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};o=[r,t,r(8580),r(1575),r(2726),r(100),r(6164),r(2872),r(3978),r(2695)],n=function(e,t,r,o,n,i,a,u,l,p){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=c(r),o=s(o),n=s(n),i=s(i),a=s(a),u=s(u),l=c(l),p=c(p);const d=i;t.default={clipboard:r.default,version:o,env:n,downloadOrArouseApp:i.default,constance:a,query:u,toast:l.default,sendXTLog:p.default,arouseTool:d}}.apply(t,o),void 0===n||(e.exports=n)},2872:(e,t,r)=>{var o;o=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.modifyUrl=t.getQuery=t.urlEncode=t.escapeHTML=void 0,t.escapeHTML=function(e){const t={"&":"&","<":"<",">":">","'":"'",'"':"""};return e.replace(/[&<>'"]/g,(e=>t[e]||""))},t.urlEncode=function(e){let t=[];for(let r in e){let o=`${r}=${encodeURIComponent(e[r])}`;t.push(o)}return t.join("&")},t.getQuery=function(e=location.search){let r=e.split("?")[1]||"",o={};if(r){let e=r.split("&");for(let r in e){let n=e[r].split("="),i=n.shift(),a=t.escapeHTML(decodeURIComponent(n.join("=")));o[i]=a}}return o},t.modifyUrl=(e,r)=>{if(void 0===r||0===Object.keys(r).length)return e;const o=t.urlEncode(r);return e.match(/\?/)?e.match(/&$/)?e+o:`${e}&${o}`:`${e}?${o}`}}.apply(t,[r,t]),void 0===o||(e.exports=o)},2695:(e,t,r)=>{var o,n;o=[r,t,r(2726)],n=function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){var o,n,i;if("object"==typeof e&&(t=e.params||{},e=e.event),r.isEditor)console.log(e,"magic editor canvas no log!");else if(t.language=navigator.language,t.country=window.__MAGIC__.canvas.region||"unknow",t.appType=window.__MAGIC__.canvas.appType||"unknow",t.pageNo=(null===(i=null===(n=null===(o=window.__MAGIC__.dynamicInfo)||void 0===o?void 0:o.schemaRenderComponent)||void 0===n?void 0:n.state)||void 0===i?void 0:i.pageNo)||0,t.inorout=r.isOurApp?"in":"out",t.osType=r.getOS(),e.match(/^magic_sdk_/)||(e=`magic_sdk_${e}`),r.isOurApp&&window.__MAGIC__.action&&window.__MAGIC__.action.magicUnifyJsb&&window.__MAGIC__.action.magicUnifyJsb.appSendLog){let r=window.__MAGIC__.teaEvtParams||{},o=Object.assign({},r,t);window.__MAGIC__.action.magicUnifyJsb.appSendLog(e,o)}else window.collectEvent?window.collectEvent(e,t):console.log(e,"cannot log")}}.apply(t,o),void 0===n||(e.exports=n)},3978:(e,t,r)=>{var o,n;o=[r,t,r(2726)],n=function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e="",t=2){if(!e)return;let o=document.createElement("div"),n=`mes_${Math.random().toString(36).substr(2)}`;o.id=n,o.style="background-size:100% 100%;position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%);-webkit-transform: translate(-50%, -50%);background-color: rgba(0,0,0,0.7); border-radius: 0.06rem;z-index: 999; font-size: 0.3rem;padding: 0.2rem; text-align: center; color: white;",o.innerHTML=e;let i=document.body;r.isEditor&&(i=document.getElementsByClassName("magic-editor-canvas-area")[0]||document.body),i.appendChild(o),setTimeout((function(){i.removeChild(o)}),1e3*t)}}.apply(t,o),void 0===n||(e.exports=n)},1575:(e,t,r)=>{var o,n;o=[r,t,r(2726)],n=function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isGeVersion=t.isLowVersion=void 0,t.isLowVersion=(e,t,o)=>{const[n,i,a]=e.split("."),s=parseInt(`${n}${i}${a}`,10);if(r.isiOS)return s!t.isLowVersion(e,r,o)}.apply(t,o),void 0===n||(e.exports=n)},3884:(e,t,r)=>{"use strict";var o=r(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(6590));function i(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,i=(0,n.default)(t,r,o),a=i.os,s=i.browser;return(e=(t=t.toLowerCase()).match(/newsarticle\/([\d.]+)/))&&(s.toutiao=!0,s.version=e[1]),{browser:s,os:a}}i.default=i;var a=i;t.default=a,e.exports=t.default},3776:(e,t,r)=>{"use strict";var o=r(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(5109));function i(e,t){void 0===t&&(t="undefined"!=typeof window?window.location&&window.location.search.substr(1):"");var r={};return t&&t.split("&").forEach((function(e){if(""!==e){var t=e.split("="),o=(0,n.default)(t),i=o[0],a=o.slice(1),s=decodeURIComponent(i),c=decodeURIComponent(a.join("="));if(s.match(/\[\]$/)){var u=s.replace(/\[\]$/,"");r[u]&&r[u]instanceof Array?r[u].push(c):r[u]=[c]}else r[s]=c}})),e?r[e]:r}i.default=i;var a=i;t.default=a,e.exports=t.default},7732:(e,t,r)=>{"use strict";var o=r(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(1260)),i=o(r(1068)),a=o(r(3776)),s=o(r(7565));function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function u(e,t,r){if(void 0===t||0===Object.keys(t).length)return e;var o,u=!1;"boolean"==typeof r||void 0===r?o=Boolean(r):(o=Boolean(r.encodeList),u=r.stable);var l,p=e.split("?"),d=(0,i.default)(p,2),f=d[0],h=d[1],m=void 0===h?"":h;if(m){var y=m.split("#"),g=(0,i.default)(y,2);m=g[0];var v=g[1];l=void 0===v?"":v}else{var b=e.split("#"),_=(0,i.default)(b,2);f=_[0];var w=_[1];l=void 0===w?"":w}var O=(0,a.default)(void 0,m);return O=Object.assign(O,t),u&&(O=Object.keys(O).sort((function(e,t){return e>t?1:-1})).reduce((function(e,t){return function(e){for(var t=1;t{"use strict";function r(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,n={},i={};return(e=(t=t.toLowerCase()).match(/android;?[\s/]+([\d.]+)?/))?(n.android=!0,e[1]&&(n.version=e[1])):((e=t.match(/ipod(?:.*os\s([\d_]+))?/))?(n.ipod=!0,e[1]&&(n.version=e[1].split("_").join("."))):(e=t.match(/ipad.*os\s([\d_]+)/))?(n.ipad=!0,n.version=e[1].split("_").join(".")):"MacIntel"===r&&o>1&&(e=t.match(/version\/([\d.]+)/))?(n.ipad=!0,n.version=e[1]):(e=t.match(/iphone\sos\s([\d_]+)/))&&(n.iphone=!0,n.version=e[1].split("_").join(".")),n.ios=n.ipad||n.iphone||n.ipod),(e=t.match(/micromessenger[\s/]+([\d.]+)/))?(i.weixin=!0,i.version=e[1]):(e=t.match(/\sqq[\s/]+([\d.]+)/))?(i.qq=!0,i.version=e[1]):(e=t.match(/weibo[\s_]+([\d.]+)/))&&(i.weibo=!0,i.version=e[1]),{browser:i,os:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r.default=r;var o=r;t.default=o,e.exports=t.default},3652:(e,t,r)=>{"use strict";var o=r(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(5182)),i=function(e){return(Array.isArray(e[0])?e[0]:e).reduce((function(e,t){return[].concat((0,n.default)(e),(0,n.default)((t+"").replace(/\[['"]/g,"[").replace(/\]|['"](?=\])/g,"").split(/[.[]/)))}),[])};function a(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o{"use strict";var o=r(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(8921));function i(e,t){var r=[];return Object.keys(e).forEach((function(o){var i=e[o];null!=i&&("object"===(0,n.default)(i)?t&&i instanceof Array&&i.every((function(e){return"object"!==(0,n.default)(e)}))?i.forEach((function(e){r.push("".concat(encodeURIComponent(o),"[]=").concat(encodeURIComponent(e)))})):r.push("".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(JSON.stringify(i)))):r.push("".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(i))))})),r.join("&")}i.default=i;var a=i;t.default=a,e.exports=t.default},2580:(e,t,r)=>{"use strict";var o=r(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(3884)),i=o(r(7923)),a=r(7320),s=new i.default;function c(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,c=arguments.length>3?arguments[3]:void 0,u=(0,n.default)(r,o,c),l=u.os,p=u.browser;if(r=r.toLowerCase(),o=o.toLowerCase(),l.ios||l.android||((e=r.match(/windows phone ([\d.]+)/))?(l.wp=!0,l.version=e[1]):(e=r.match(/(?:web|hpw)os[\s/]([\d.]+)/))?(l.webos=!0,l.version=e[1],r.match(/touchpad/)&&(l.touchpad=!0)):(e=r.match(/blackberry.*version\/([\d.]+)/))?(l.blackberry=!0,l.version=e[1]):(e=r.match(/bb10.*version\/([\d.]+)/))?(l.bb10=!0,l.version=e[1]):(e=r.match(/rim\stablet\sos\s([\d.]+)/))?(l.rimtabletos=!0,l.version=e[1]):(e=r.match(/kindle\/([\d.]+)/))?(l.kindle=!0,l.version=e[1]):(e=r.match(/(?:mobile|tablet); rv:([\d.]+).*firefox\/[\d.]+/))&&(l.firefoxos=!0,l.version=e[1])),(e=r.match(/webkit\/?([\d.]+)/))&&(p.webkit=!0,p.version=e[1]),(e=r.match(/(?:chrome|crios)\/([\d.]+)/))?(p.chrome=!0,p.version=e[1]):(e=r.match(/(?:msie\s|trident\/\d(?=[^?]+).*rv:)([\d.]+)/))?(p.ie=!0,p.version=e[1]):(e=r.match(/firefox\/([\d.]+)/))?(p.firefox=!0,p.version=e[1]):r.match(/playbook/)&&(p.playbook=!0),r.match(/ucbrowser/)?p.ucbrowser=!0:r.match(/qqbrowser/)&&(p.qqbrowser=!0),!p.chrome&&r.match(/ip(?:one|od|ad).*applewebkit(?!.*safari)/)&&(p.webview=!0),(e=r.match(/silk\/([\d._]+)/))&&(p.silk=!0,p.version=e[1]),l.android&&r.match(/kindle fire/)&&(p.silk=!0),(p.webview||(e=r.match(/version\/([\d.]+)(?:[^m]*mobile)?[^s]*safari/)))&&(r.match(/macintosh; intel/)||l.ios||/win(?:\d{2}|dows)/.test(o))&&(p.safari=!0,l.ios||(p.version=e[1])),!(p.weixin||p.qq||p.weibo))if(e=r.match(/fbav\/([\d.]+)/))p.facebook=!0,p.version=e[1],(e=r.match(/fbsn\/ios;fbsv\/([\d.]+)/))&&(l.ios=!0,l.version=e[1]);else if(t=s.parse(r),Object.keys(t).length)a(p,t);else if(i){var d=["\\+https:\\/\\/developers.google.com\\/\\+\\/web\\/snippet\\/","ad\\smonitoring","adsbot","baiduspider","bingbot","cloudflare","crawler","curl","embedly","exabot","facebookexternalhit","google","googlebot","gurujibot","heritrix","linkedinbot","msnbot","phantomjs","phantom\\.js","pingdom","python","rtlnieuws","slackbot","slurp","spbot","telegrambot","test\\scertificate","testing","tiabot","tumblr ","twitterbot","web\\sscraper","wget","yandexbot","apex","applebot","duckduckbot","facebot","flipboard","gsa-crawler","ia_archiver","pinterest","skypeuripreview","odklbot","archive.org_bot","ltx71","guzzlehttp","vkshare","discordbot","whatsapp"];p.robot=new RegExp(d.join("|")).test(r)}return p.livestream_all=p.livestream||p.livestream_pro||p.virgo||p.livestream_lite,l.tablet=l.ipad||p.playbook||l.android&&!r.match(/mobile/)||p.firefox&&!!r.match(/tablet/)||p.ie&&!r.match(/phone/)&&!!r.match(/touch/),l.phone=!l.tablet&&!l.ipod&&(l.android||l.iphone||l.webos||l.blackberry||l.bb10||p.chrome&&!!r.match(/android|crios\/[\d.]+/)||p.firefox&&!!r.match(/mobile/)||p.ie&&!!r.match(/touch/)),{browser:p,os:l}}s.add(Object.keys(i.default.strategies)),c.default=c;var u=c;t.default=u,e.exports=t.default},7923:(e,t,r)=>{"use strict";var o=r(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(85)),i=o(r(5198)),a=o(r(1260)),s=function(){function e(){(0,n.default)(this,e),(0,a.default)(this,"cache",void 0),this.cache=[]}return(0,i.default)(e,[{key:"add",value:function(t){var r=this;t.forEach((function(t){var o;if("string"==typeof t){if(!e.strategies[t])return;o=e.strategies[t]}else o=t;r.cache.push(o)}))}},{key:"parse",value:function(e){e=e.toLowerCase();for(var t=0,r=this.cache.length;t{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r{e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},1232:(e,t,r)=>{var o=r(5270);e.exports=function(e){if(Array.isArray(e))return o(e)},e.exports.default=e.exports,e.exports.__esModule=!0},85:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},5198:e=>{function t(e,t){for(var r=0;r{e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.default=e.exports,e.exports.__esModule=!0},4859:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},1557:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},981:e=>{e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw n}}return i}},e.exports.default=e.exports,e.exports.__esModule=!0},7365:e=>{e.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.")},e.exports.default=e.exports,e.exports.__esModule=!0},1359:e=>{e.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.")},e.exports.default=e.exports,e.exports.__esModule=!0},1068:(e,t,r)=>{var o=r(4180),n=r(981),i=r(6487),a=r(7365);e.exports=function(e,t){return o(e)||n(e,t)||i(e,t)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},5109:(e,t,r)=>{var o=r(4180),n=r(1557),i=r(6487),a=r(7365);e.exports=function(e){return o(e)||n(e)||i(e)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},5182:(e,t,r)=>{var o=r(1232),n=r(1557),i=r(6487),a=r(1359);e.exports=function(e){return o(e)||n(e)||i(e)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},8921:e=>{function t(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},6487:(e,t,r)=>{var o=r(5270);e.exports=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},8858:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var o,n=r(381),i=r.n(n),a=r(7732),s=r.n(a),c=r(3652),u=r.n(c),l=r(9644),p=r.n(l),d=r(2580),f=r.n(d),h="undefined"!=typeof window&&"undefined"!=typeof navigator&&"undefined"!=typeof document?navigator.userAgent:"",m=f()(h),y=function(e){var t,r,o;(t=document.createElement("textArea")).value=e,document.body.appendChild(t),navigator.userAgent.match(/ipad|iphone/i)?((r=document.createRange()).selectNodeContents(t),(o=window.getSelection()).removeAllRanges(),o.addRange(r),t.setSelectionRange(0,999999),t.select()):t.select(),document.execCommand("copy"),document.body.removeChild(t)},g=Number(m.os.version&&(null===(o=m.os.version)||void 0===o?void 0:o.split(".")[0])),v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;try{if(!t&&e&&(m.os.android||m.os.ios&&g>=9)){var n=e;r("复制剪切板,内容:".concat(n)),i()(n,{message:null,debug:o})}}catch(t){try{y(e)}catch(e){console.error(e)}}};function b(e){var t=e.link,r=e.scheme,o=e.disableClipboard,n=void 0!==o&&o,i=e.disableLog,a=void 0!==i&&i,c=e.debug,l=void 0!==c&&c,d=e.zlinkData,f=function(e){return l&&console.log("[zlink-sdk]".concat(e))};if(t&&r){var h=0,y=function(e,r){if(!a){var o=new Image,i={sw:screen.width,sh:screen.height,link:t,scheme:e};o.src=s()("https://zlink.toutiao.com/api/click_event",i)}var c={zlink:t,zlink_click_time:Date.now()};d&&(c.zlink_data=d);var y=s()(e,c),_=s()(t,{scheme:y}),w=function(){setTimeout((function(){if(m.os.ios&&g>=9||m.browser.weixin)f("iOS 9+, 使用 universal link 调起 :".concat(_)),window.location.href=_;else{f("使用 scheme 调起: ".concat(y)),window.location.href=y;var e=!0,t=function(){document.hidden&&(f("检测到页面隐藏"),e=!1)};document.addEventListener("visibilitychange",t),setTimeout((function(){e&&h>=b.length-1&&(f("未检测到页面隐藏,跳到下载: ".concat(_)),location.href=_),document.removeEventListener("visibilitychange",t),e&&(h++,r())}),1e3)}}),200)};p()({method:"POST",url:"https://zlink.toutiao.com/api/cb_e",data:{scheme:y},timeout:300}).then((function(e){v(u()(e,"data.data"),n,f,l),setTimeout((function(){v(u()(e,"data.data"),n,f,l)}),0),w()})).catch((function(e){console.error(e),w()}))},b=Array.isArray(r)?r:[r];!function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t[r]&&y(t[r],(function(){e(t,r+1)}))}(b)}else console.error("\b参数错误")}},9644:(e,t,r)=>{e.exports=r(5644)},353:(e,t,r)=>{"use strict";var o=r(3044),n=r(6955),i=r(2233),a=r(8030),s=r(7948),c=r(1875),u=r(842),l=r(8618);e.exports=function(e){return new Promise((function(t,r){var p=e.data,d=e.headers,f=e.responseType;o.isFormData(p)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+y)}var g=s(e.baseURL,e.url);function v(){if(h){var o="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,i={data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:o,config:e,request:h};n(t,r,i),h=null}}if(h.open(e.method.toUpperCase(),a(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=v:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(v)},h.onabort=function(){h&&(r(l("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){r(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},o.isStandardBrowserEnv()){var b=(e.withCredentials||u(g))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&o.forEach(d,(function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),o.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),f&&"json"!==f&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),r(e),h=null)})),p||(p=null),h.send(p)}))}},5644:(e,t,r)=>{"use strict";var o=r(3044),n=r(3644),i=r(2215),a=r(2937);function s(e){var t=new i(e),r=n(i.prototype.request,t);return o.extend(r,i.prototype,t),o.extend(r,t),r}var c=s(r(1439));c.Axios=i,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=r(6714),c.CancelToken=r(4089),c.isCancel=r(8041),c.all=function(e){return Promise.all(e)},c.spread=r(783),c.isAxiosError=r(5587),e.exports=c,e.exports.default=c},6714:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4089:(e,t,r)=>{"use strict";var o=r(6714);function n(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new o(e),t(r.reason))}))}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var e;return{token:new n((function(t){e=t})),cancel:e}},e.exports=n},8041:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},2215:(e,t,r)=>{"use strict";var o=r(3044),n=r(8030),i=r(946),a=r(6895),s=r(2937),c=r(7525),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var r=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var n,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!o){var l=[a,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(i),n=Promise.resolve(e);l.length;)n=n.then(l.shift(),l.shift());return n}for(var p=e;r.length;){var d=r.shift(),f=r.shift();try{p=d(p)}catch(e){f(e);break}}try{n=a(p)}catch(e){return Promise.reject(e)}for(;i.length;)n=n.then(i.shift(),i.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),n(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),o.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,r,o){return this.request(s(o||{},{method:e,url:t,data:r}))}})),e.exports=l},946:(e,t,r)=>{"use strict";var o=r(3044);function n(){this.handlers=[]}n.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.forEach=function(e){o.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=n},7948:(e,t,r)=>{"use strict";var o=r(9192),n=r(8762);e.exports=function(e,t){return e&&!o(t)?n(e,t):t}},8618:(e,t,r)=>{"use strict";var o=r(1935);e.exports=function(e,t,r,n,i){var a=new Error(e);return o(a,t,r,n,i)}},6895:(e,t,r)=>{"use strict";var o=r(3044),n=r(8556),i=r(8041),a=r(1439);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=n.call(e,e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),o.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=n.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=n.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},1935:e=>{"use strict";e.exports=function(e,t,r,o,n){return e.config=t,r&&(e.code=r),e.request=o,e.response=n,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},2937:(e,t,r)=>{"use strict";var o=r(3044);e.exports=function(e,t){t=t||{};var r={},n=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return o.isPlainObject(e)&&o.isPlainObject(t)?o.merge(e,t):o.isPlainObject(t)?o.merge({},t):o.isArray(t)?t.slice():t}function u(n){o.isUndefined(t[n])?o.isUndefined(e[n])||(r[n]=c(void 0,e[n])):r[n]=c(e[n],t[n])}o.forEach(n,(function(e){o.isUndefined(t[e])||(r[e]=c(void 0,t[e]))})),o.forEach(i,u),o.forEach(a,(function(n){o.isUndefined(t[n])?o.isUndefined(e[n])||(r[n]=c(void 0,e[n])):r[n]=c(void 0,t[n])})),o.forEach(s,(function(o){o in t?r[o]=c(e[o],t[o]):o in e&&(r[o]=c(void 0,e[o]))}));var l=n.concat(i).concat(a).concat(s),p=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return o.forEach(p,u),r}},6955:(e,t,r)=>{"use strict";var o=r(8618);e.exports=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(o("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},8556:(e,t,r)=>{"use strict";var o=r(3044),n=r(1439);e.exports=function(e,t,r){var i=this||n;return o.forEach(r,(function(r){e=r.call(i,e,t)})),e}},1439:(e,t,r)=>{"use strict";var o=r(3044),n=r(8868),i=r(1935),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=r(353)),c),transformRequest:[function(e,t){return n(t,"Accept"),n(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,r){if(o.isString(e))try{return(0,JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||n&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){u.headers[e]=o.merge(a)})),e.exports=u},3644:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),o=0;o{"use strict";var o=r(3044);function n(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(o.isURLSearchParams(t))i=t.toString();else{var a=[];o.forEach(t,(function(e,t){null!=e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,(function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),a.push(n(t)+"="+n(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},8762:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2233:(e,t,r)=>{"use strict";var o=r(3044);e.exports=o.isStandardBrowserEnv()?{write:function(e,t,r,n,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),o.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),o.isString(n)&&s.push("path="+n),o.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9192:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},5587:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},842:(e,t,r)=>{"use strict";var o=r(3044);e.exports=o.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var o=e;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=o.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},8868:(e,t,r)=>{"use strict";var o=r(3044);e.exports=function(e,t){o.forEach(e,(function(r,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[o])}))}},1875:(e,t,r)=>{"use strict";var o=r(3044),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(o.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=o.trim(e.substr(0,i)).toLowerCase(),r=o.trim(e.substr(i+1)),t){if(a[t]&&n.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},783:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7525:(e,t,r)=>{"use strict";var o=r(9521),n={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){n[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=o.version.split(".");function s(e,t){for(var r=t?t.split("."):a,o=e.split("."),n=0;n<3;n++){if(r[n]>o[n])return!0;if(r[n]0;){var i=o[n],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:n}},3044:(e,t,r)=>{"use strict";var o=r(3644),n=Object.prototype.toString;function i(e){return"[object Array]"===n.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==n.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===n.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,o=e.length;r{"use strict";var o=r(7286),n=r(9429),i=n(o("String.prototype.indexOf"));e.exports=function(e,t){var r=o(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?n(r):r}},9429:(e,t,r)=>{"use strict";var o=r(4090),n=r(7286),i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||o.call(a,i),c=n("%Object.getOwnPropertyDescriptor%",!0),u=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(o,a,arguments);if(c&&u){var r=c(t,"length");r.configurable&&u(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var p=function(){return s(o,i,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p},381:(e,t,r)=>{"use strict";var o=r(1706),n={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,a,s,c,u,l=!1;t||(t={}),r=t.debug||!1;try{if(a=o(),s=document.createRange(),c=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),void 0===o.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=n[t.format]||n.default;window.clipboardData.setData(i,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),c.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(o){r&&console.error("unable to copy using execCommand: ",o),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(o){r&&console.error("unable to copy using clipboardData: ",o),r&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(s):c.removeAllRanges()),u&&document.body.removeChild(u),a()}return l}},6936:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,o=Object.prototype.toString,n="[object Function]";e.exports=function(e){var i=this;if("function"!=typeof i||o.call(i)!==n)throw new TypeError(t+i);for(var a,s=r.call(arguments,1),c=function(){if(this instanceof a){var t=i.apply(this,s.concat(r.call(arguments)));return Object(t)===t?t:this}return i.apply(e,s.concat(r.call(arguments)))},u=Math.max(0,i.length-s.length),l=[],p=0;p{"use strict";var o=r(6936);e.exports=Function.prototype.bind||o},7286:(e,t,r)=>{"use strict";var o,n=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new a},l=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,p=r(2636)(),d=Object.getPrototypeOf||function(e){return e.__proto__},f={},h="undefined"==typeof Uint8Array?o:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":p?d([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?d(d([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?d((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?d((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?d(""[Symbol.iterator]()):o,"%Symbol%":p?Symbol:o,"%SyntaxError%":n,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet},y=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&(r=d(n.prototype))}return m[t]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(4090),b=r(3198),_=v.call(Function.call,Array.prototype.concat),w=v.call(Function.apply,Array.prototype.splice),O=v.call(Function.call,String.prototype.replace),x=v.call(Function.call,String.prototype.slice),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,j=function(e){var t=x(e,0,1),r=x(e,-1);if("%"===t&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new n("invalid intrinsic syntax, expected opening `%`");var o=[];return O(e,S,(function(e,t,r,n){o[o.length]=r?O(n,A,"$1"):t||e})),o},I=function(e,t){var r,o=e;if(b(g,o)&&(o="%"+(r=g[o])[0]+"%"),b(m,o)){var i=m[o];if(i===f&&(i=y(o)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:i}}throw new n("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var r=j(e),o=r.length>0?r[0]:"",i=I("%"+o+"%",t),s=i.name,u=i.value,l=!1,p=i.alias;p&&(o=p[0],w(r,_([0,1],p)));for(var d=1,f=!0;d=r.length){var v=c(u,h);u=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[h]}else f=b(u,h),u=u[h];f&&!l&&(m[s]=u)}}return u}},2636:(e,t,r)=>{"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(6679);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},6679:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(e,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},3198:(e,t,r)=>{"use strict";var o=r(4090);e.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},8360:()=>{!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,r=n(t);r;)r=n(t=r.ownerDocument);return t}(),t=[],r=null,o=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return r||(r=function(e,r){o=e&&r?p(e,r):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),r},a._resetCrossOriginUpdater=function(){r=null,o=null},a.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},a.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,r){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==r[t-1]}))},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},a.prototype._monitorIntersections=function(t){var r=t.defaultView;if(r&&-1==this._monitoringDocuments.indexOf(t)){var o=this._checkForIntersections,i=null,a=null;this.POLL_INTERVAL?i=r.setInterval(o,this.POLL_INTERVAL):(s(r,"resize",o,!0),s(t,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in r&&(a=new r.MutationObserver(o)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(i&&e.clearInterval(i),c(e,"resize",o,!0)),c(t,"scroll",o,!0),a&&a.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=u){var l=n(t);l&&this._monitorIntersections(l.ownerDocument)}}},a.prototype._unmonitorIntersections=function(t){var r=this._monitoringDocuments.indexOf(t);if(-1!=r){var o=this.root&&(this.root.ownerDocument||this.root)||e,i=this._observationTargets.some((function(e){var r=e.element.ownerDocument;if(r==t)return!0;for(;r&&r!=o;){var i=n(r);if((r=i&&i.ownerDocument)==t)return!0}return!1}));if(!i){var a=this._monitoringUnsubscribes[r];if(this._monitoringDocuments.splice(r,1),this._monitoringUnsubscribes.splice(r,1),a(),t!=o){var s=n(t);s&&this._unmonitorIntersections(s.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t=0&&y>=0&&{top:c,bottom:l,left:d,right:h,width:m,height:y}||null),!g)break;v=v&&f(v)}return g}},a.prototype._getRootRect=function(){var t;if(this.root&&!h(this.root))t=u(this.root);else{var r=h(this.root)?this.root:e,o=r.documentElement,n=r.body;t={top:0,left:0,right:o.clientWidth||n.clientWidth,width:o.clientWidth||n.clientWidth,bottom:o.clientHeight||n.clientHeight,height:o.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(t)},a.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,r){return"px"==t.unit?t.value:t.value*(r%2?e.width:e.height)/100})),r={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return r.width=r.right-r.left,r.height=r.bottom-r.top,r},a.prototype._hasCrossedThreshold=function(e,t){var r=e&&e.isIntersecting?e.intersectionRatio||0:-1,o=t.isIntersecting?t.intersectionRatio||0:-1;if(r!==o)for(var n=0;n{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,c=n(e),u=1;u{var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"==typeof c.get?c.get:null,l=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v="function"==typeof BigInt?BigInt.prototype.valueOf:null,b=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,w="function"==typeof Symbol&&"object"==typeof Symbol.iterator,O=Object.prototype.propertyIsEnumerable,x=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),S=r(3260).custom,A=S&&C(S)?S:null,j="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function I(e,t,r){var o="double"===(r.quoteStyle||t)?'"':"'";return o+e+o}function E(e){return String(e).replace(/"/g,""")}function P(e){return!("[object Array]"!==k(e)||j&&"object"==typeof e&&j in e)}function C(e){if(w)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,o,n){var s=r||{};if(M(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(M(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!M(s,"customInspect")||s.customInspect;if("boolean"!=typeof c)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(M(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return U(t,s);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var m=void 0===s.depth?5:s.depth;if(void 0===o&&(o=0),o>=m&&m>0&&"object"==typeof t)return P(t)?"[Array]":"[Object]";var b,O=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Array(e.indent+1).join(" ")}return{base:r,prev:Array(t+1).join(r)}}(s,o);if(void 0===n)n=[];else if(R(n,t)>=0)return"[Circular]";function S(t,r,i){if(r&&(n=n.slice()).push(r),i){var a={depth:s.depth};return M(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,o+1,n)}return e(t,s,o+1,n)}if("function"==typeof t){var T=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),N=B(t,S);return"[Function"+(T?": "+T:" (anonymous)")+"]"+(N.length>0?" { "+N.join(", ")+" }":"")}if(C(t)){var z=w?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||w?z:L(z)}if((b=t)&&"object"==typeof b&&("undefined"!=typeof HTMLElement&&b instanceof HTMLElement||"string"==typeof b.nodeName&&"function"==typeof b.getAttribute)){for(var $="<"+String(t.nodeName).toLowerCase(),q=t.attributes||[],V=0;V"}if(P(t)){if(0===t.length)return"[]";var W=B(t,S);return O&&!function(e){for(var t=0;t=0)return!1;return!0}(W)?"["+G(W,O)+"]":"[ "+W.join(", ")+" ]"}if(function(e){return!("[object Error]"!==k(e)||j&&"object"==typeof e&&j in e)}(t)){var H=B(t,S);return 0===H.length?"["+String(t)+"]":"{ ["+String(t)+"] "+H.join(", ")+" }"}if("object"==typeof t&&c){if(A&&"function"==typeof t[A])return t[A]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var J=[];return a.call(t,(function(e,r){J.push(S(r,t,!0)+" => "+S(e,t))})),F("Map",i.call(t),J,O)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var Q=[];return l.call(t,(function(e){Q.push(S(e,t))})),F("Set",u.call(t),Q,O)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return D("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return D("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return D("WeakRef");if(function(e){return!("[object Number]"!==k(e)||j&&"object"==typeof e&&j in e)}(t))return L(S(Number(t)));if(function(e){if(!e||"object"!=typeof e||!v)return!1;try{return v.call(e),!0}catch(e){}return!1}(t))return L(S(v.call(t)));if(function(e){return!("[object Boolean]"!==k(e)||j&&"object"==typeof e&&j in e)}(t))return L(h.call(t));if(function(e){return!("[object String]"!==k(e)||j&&"object"==typeof e&&j in e)}(t))return L(S(String(t)));if(!function(e){return!("[object Date]"!==k(e)||j&&"object"==typeof e&&j in e)}(t)&&!function(e){return!("[object RegExp]"!==k(e)||j&&"object"==typeof e&&j in e)}(t)){var X=B(t,S),Z=x?x(t)===Object.prototype:t instanceof Object||t.constructor===Object,K=t instanceof Object?"":"null prototype",Y=!Z&&j&&Object(t)===t&&j in t?k(t).slice(8,-1):K?"Object":"",ee=(Z||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(Y||K?"["+[].concat(Y||[],K||[]).join(": ")+"] ":"");return 0===X.length?ee+"{}":O?ee+"{"+G(X,O)+"}":ee+"{ "+X.join(", ")+" }"}return String(t)};var T=Object.prototype.hasOwnProperty||function(e){return e in this};function M(e,t){return T.call(e,t)}function k(e){return m.call(e)}function R(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,o=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return U(e.slice(0,t.maxStringLength),t)+o}return I(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,N),"single",t)}function N(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function L(e){return"Object("+e+")"}function D(e){return e+" { ? }"}function F(e,t,r,o){return e+" ("+t+") {"+(o?G(r,o):r.join(", "))+"}"}function G(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function B(e,t){var r=P(e),o=[];if(r){o.length=e.length;for(var n=0;n{"use strict";var t=String.prototype.replace,r=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}},9126:(e,t,r)=>{"use strict";var o=r(6845),n=r(9166),i=r(5527);e.exports={formats:i,parse:n,stringify:o}},9166:(e,t,r)=>{"use strict";var o=r(2493),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,r,o){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),u=s?i.slice(0,s.index):i,l=[];if(u){if(!r.plainObjects&&n.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var p=0;r.depth>0&&null!==(s=a.exec(i))&&p=0;--i){var a,s=e[i];if("[]"===s&&r.parseArrays)a=[].concat(n);else{a=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(u,10);r.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=n:"__proto__"!==u&&(a[u]=n):a={0:n}}n=a}return n}(l,t,r,o)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var r,u={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,p),f=-1,h=t.charset;if(t.charsetSentinel)for(r=0;r-1&&(y=i(y)?[y]:y),n.call(u,m)?u[m]=o.combine(u[m],y):u[m]=y}return u}(e,r):e,p=r.plainObjects?Object.create(null):{},d=Object.keys(l),f=0;f{"use strict";var o=r(4294),n=r(2493),i=r(5527),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=String.prototype.split,l=Array.prototype.push,p=function(e,t){l.apply(e,c(t)?t:[t])},d=Date.prototype.toISOString,f=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m={},y=function e(t,r,i,a,s,l,d,f,y,g,v,b,_,w,O,x){for(var S,A=t,j=x,I=0,E=!1;void 0!==(j=j.get(m))&&!E;){var P=j.get(t);if(I+=1,void 0!==P){if(P===I)throw new RangeError("Cyclic object value");E=!0}void 0===j.get(m)&&(I=0)}if("function"==typeof f?A=f(r,A):A instanceof Date?A=v(A):"comma"===i&&c(A)&&(A=n.maybeMap(A,(function(e){return e instanceof Date?v(e):e}))),null===A){if(s)return d&&!w?d(r,h.encoder,O,"key",b):r;A=""}if("string"==typeof(S=A)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||n.isBuffer(A)){if(d){var C=w?r:d(r,h.encoder,O,"key",b);if("comma"===i&&w){for(var T=u.call(String(A),","),M="",k=0;k0?A.join(",")||null:void 0}];else if(c(f))R=f;else{var N=Object.keys(A);R=y?N.sort(y):N}for(var L=a&&c(A)&&1===A.length?r+"[]":r,D=0;D0?w+_:""}},2493:(e,t,r)=>{"use strict";var o=r(5527),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var o=[],n=0;n=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===o.RFC1738&&(40===l||41===l)?c+=s.charAt(u):l<128?c+=a[l]:l<2048?c+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?c+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(u+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(u)),c+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],o=0;o{"use strict";var o=r(7286),n=r(2680),i=r(9500),a=o("%TypeError%"),s=o("%WeakMap%",!0),c=o("%Map%",!0),u=n("WeakMap.prototype.get",!0),l=n("WeakMap.prototype.set",!0),p=n("WeakMap.prototype.has",!0),d=n("Map.prototype.get",!0),f=n("Map.prototype.set",!0),h=n("Map.prototype.has",!0),m=function(e,t){for(var r,o=e;null!==(r=o.next);o=r)if(r.key===t)return o.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,o={assert:function(e){if(!o.has(e))throw new a("Side channel does not contain "+i(e))},get:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(e)return u(e,o)}else if(c){if(t)return d(t,o)}else if(r)return function(e,t){var r=m(e,t);return r&&r.value}(r,o)},has:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(e)return p(e,o)}else if(c){if(t)return h(t,o)}else if(r)return function(e,t){return!!m(e,t)}(r,o);return!1},set:function(o,n){s&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new s),l(e,o,n)):c?(t||(t=new c),f(t,o,n)):(r||(r={key:{},next:null}),function(e,t,r){var o=m(e,t);o?o.value=r:e.next={key:t,next:e.next,value:r}}(r,o,n))}};return o}},1706:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],o=0;o{"use strict";t.exports=e},4318:e=>{"use strict";e.exports=t},3260:()=>{},9521:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return r[e].call(i.exports,i,i.exports,n),i.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(1379)})()}));