mirror of
https://gitee.com/ice-gl/icegl-three-vue-tres.git
synced 2025-04-05 06:22:43 +08:00
2 lines
7.1 KiB
JavaScript
2 lines
7.1 KiB
JavaScript
var n=o;!function(n,e){for(var a=o,i=r();;)try{if(339650===-parseInt(a(336))/1*(-parseInt(a(318))/2)+parseInt(a(317))/3*(parseInt(a(308))/4)+-parseInt(a(301))/5*(-parseInt(a(309))/6)+-parseInt(a(293))/7*(parseInt(a(310))/8)+-parseInt(a(299))/9+-parseInt(a(311))/10*(-parseInt(a(312))/11)+parseInt(a(337))/12*(-parseInt(a(325))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}();var e=function(){var n=!0;return function(e,a){var i=n?function(){if(a){var n=a[o(335)](e,arguments);return a=null,n}}:function(){};return n=!1,i}}();function o(n,e){var a=r();return(o=function(n,e){return a[n-=293]})(n,e)}!function(){e(this,(function(){var n=o,e=new RegExp(n(324)),a=new RegExp(n(313),"i"),i=p("init");e[n(321)](i+n(333))&&a[n(321)](i+n(306))?p():i("0")}))()}();var a=function(){var n=!0;return function(e,a){var i=n?function(){if(a){var n=a[o(335)](e,arguments);return a=null,n}}:function(){};return n=!1,i}}();a(void 0,(function(){for(var n=o,e=function(){var n,e=o;try{n=Function(e(296)+'{}.constructor("return this")( ));')()}catch(a){n=window}return n}(),i=e.console=e.console||{},t=[n(334),n(297),n(314),"error","exception",n(329),n(332)],r=0;r<t[n(300)];r++){var p=a[n(330)][n(322)][n(307)](a),s=t[r],c=i[s]||p;p[n(327)]=a[n(307)](a),p[n(298)]=c[n(298)][n(307)](c),i[s]=p}}))();var i="undefined"!=typeof globalThis?globalThis:typeof window!==n(323)?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){var o=n;return e&&e[o(295)]&&Object[o(322)].hasOwnProperty[o(303)](e,o(305))?e.default:e}function r(){var n=["131255OMLWGN","hasOwnProperty","call","counter","default","input","bind","132764bDjdBQ","6hXEAFD","632PAqBln","692050RUTShl","77uFVDLY","\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)","info","getOwnPropertyDescriptor","keys","27ftrxGU","31646JgfBBQ","debu","stateObject","test","prototype","undefined","function *\\( *\\)","1060189lOrATb","gger","__proto__","action","table","constructor","defineProperty","trace","chain","log","apply","22cJkyaH","48sWaPTj","10479nrpxZl","function","__esModule","return (function() ","warn","toString","3360474qbBwxb","length"];return(r=function(){return n})()}function p(n){function e(n){var a=o;if("string"==typeof n)return function(n){}.constructor("while (true) {}")[a(335)](a(304));1!==(""+n/n)[a(300)]||n%20==0?function(){return!0}[a(330)](a(319)+"gger")[a(303)](a(328)):function(){return!1}[a(330)](a(319)+a(326)).apply(a(320)),e(++n)}try{if(n)return e;e(0)}catch(a){}}var s={exports:{}};const c=t(s.exports=function(){function n(n){var a=[];return n.AMapUI&&a.push(e(n.AMapUI)),n.Loca&&a.push(o(n.Loca)),Promise.all(a)}function e(n){return new Promise((function(e,o){var i=[];if(n.plugins)for(var s=0;s<n.plugins.length;s+=1)-1==t.AMapUI.plugins.indexOf(n.plugins[s])&&i.push(n.plugins[s]);if(r.AMapUI===a.failed)o("前次请求 AMapUI 失败");else if(r.AMapUI===a.notload){r.AMapUI=a.loading,t.AMapUI.version=n.version||t.AMapUI.version,s=t.AMapUI.version;var c=document.body||document.head,l=document.createElement("script");l.type="text/javascript",l.src="https://webapi.amap.com/ui/"+s+"/main.js",l.onerror=function(n){r.AMapUI=a.failed,o("请求 AMapUI 失败")},l.onload=function(){if(r.AMapUI=a.loaded,i.length)window.AMapUI.loadUI(i,(function(){for(var n=0,o=i.length;n<o;n++){var a=i[n].split("/").slice(-1)[0];window.AMapUI[a]=arguments[n]}for(e();p.AMapUI.length;)p.AMapUI.splice(0,1)[0]()}));else for(e();p.AMapUI.length;)p.AMapUI.splice(0,1)[0]()},c.appendChild(l)}else r.AMapUI===a.loaded?n.version&&n.version!==t.AMapUI.version?o("不允许多个版本 AMapUI 混用"):i.length?window.AMapUI.loadUI(i,(function(){for(var n=0,o=i.length;n<o;n++){var a=i[n].split("/").slice(-1)[0];window.AMapUI[a]=arguments[n]}e()})):e():n.version&&n.version!==t.AMapUI.version?o("不允许多个版本 AMapUI 混用"):p.AMapUI.push((function(n){n?o(n):i.length?window.AMapUI.loadUI(i,(function(){for(var n=0,o=i.length;n<o;n++){var a=i[n].split("/").slice(-1)[0];window.AMapUI[a]=arguments[n]}e()})):e()}))}))}function o(n){return new Promise((function(e,o){if(r.Loca===a.failed)o("前次请求 Loca 失败");else if(r.Loca===a.notload){r.Loca=a.loading,t.Loca.version=n.version||t.Loca.version;var i=t.Loca.version,s=t.AMap.version.startsWith("2"),c=i.startsWith("2");if(s&&!c||!s&&c)o("JSAPI 与 Loca 版本不对应!!");else{s=t.key,c=document.body||document.head;var l=document.createElement("script");l.type="text/javascript",l.src="https://webapi.amap.com/loca?v="+i+"&key="+s,l.onerror=function(n){r.Loca=a.failed,o("请求 AMapUI 失败")},l.onload=function(){for(r.Loca=a.loaded,e();p.Loca.length;)p.Loca.splice(0,1)[0]()},c.appendChild(l)}}else r.Loca===a.loaded?n.version&&n.version!==t.Loca.version?o("不允许多个版本 Loca 混用"):e():n.version&&n.version!==t.Loca.version?o("不允许多个版本 Loca 混用"):p.Loca.push((function(n){n?o(n):o()}))}))}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var a,i;(i=a||(a={})).notload="notload",i.loading="loading",i.loaded="loaded",i.failed="failed";var t={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},r={AMap:a.notload,AMapUI:a.notload,Loca:a.notload},p={AMap:[],AMapUI:[],Loca:[]},s=[],c=function(n){"function"==typeof n&&(r.AMap===a.loaded?n(window.AMap):s.push(n))};return{load:function(e){return new Promise((function(o,i){if(r.AMap==a.failed)i("");else if(r.AMap==a.notload){var p=e.key,l=e.version,u=e.plugins;p?(window.AMap&&"lbs.amap.com"!==location.host&&i("禁止多种API加载方式混用"),t.key=p,t.AMap.version=l||t.AMap.version,t.AMap.plugins=u||t.AMap.plugins,r.AMap=a.loading,l=document.body||document.head,window.___onAPILoaded=function(t){if(delete window.___onAPILoaded,t)r.AMap=a.failed,i(t);else for(r.AMap=a.loaded,n(e).then((function(){o(window.AMap)})).catch(i);s.length;)s.splice(0,1)[0]()},(u=document.createElement("script")).type="text/javascript",u.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+t.AMap.version+"&key="+p+"&plugin="+t.AMap.plugins.join(","),u.onerror=function(n){r.AMap=a.failed,i(n)},l.appendChild(u)):i("请填写key")}else if(r.AMap==a.loaded)if(e.key&&e.key!==t.key)i("多个不一致的 key");else if(e.version&&e.version!==t.AMap.version)i("不允许多个版本 JSAPI 混用");else{if(p=[],e.plugins)for(l=0;l<e.plugins.length;l+=1)-1==t.AMap.plugins.indexOf(e.plugins[l])&&p.push(e.plugins[l]);p.length?window.AMap.plugin(p,(function(){n(e).then((function(){o(window.AMap)})).catch(i)})):n(e).then((function(){o(window.AMap)})).catch(i)}else if(e.key&&e.key!==t.key)i("多个不一致的 key");else if(e.version&&e.version!==t.AMap.version)i("不允许多个版本 JSAPI 混用");else{var d=[];if(e.plugins)for(l=0;l<e.plugins.length;l+=1)-1==t.AMap.plugins.indexOf(e.plugins[l])&&d.push(e.plugins[l]);c((function(){d.length?window.AMap.plugin(d,(function(){n(e).then((function(){o(window.AMap)})).catch(i)})):n(e).then((function(){o(window.AMap)})).catch(i)}))}}))},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,t={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},r={AMap:a.notload,AMapUI:a.notload,Loca:a.notload},p={AMap:[],AMapUI:[],Loca:[]}}}}());export{c as _,i as c,t as g};
|