isdata-customer-sdk 0.1.53 → 0.1.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +2 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.min.js
CHANGED
|
@@ -23,5 +23,5 @@ return t.mode.CTRGladman=function(){var n=t.lib.BlockCipherMode.extend();functio
|
|
|
23
23
|
|
|
24
24
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
25
25
|
*/
|
|
26
|
-
return function(){var n=t,e=n.lib,r=e.WordArray,i=e.Hasher,o=n.algo,u=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),s=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=r.create([0,1518500249,1859775393,2400959708,2840853838]),l=r.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=i.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,n){for(var e=0;e<16;e++){var r=n+e,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,h,w,m,b,x,S,A,B,k,E,O=this._hash.words,I=f.words,j=l.words,D=u.words,R=a.words,C=c.words,P=s.words;x=o=O[0],S=h=O[1],A=w=O[2],B=m=O[3],k=b=O[4];for(e=0;e<80;e+=1)E=o+t[n+D[e]]|0,E+=e<16?p(h,w,m)+I[0]:e<32?d(h,w,m)+I[1]:e<48?v(h,w,m)+I[2]:e<64?g(h,w,m)+I[3]:y(h,w,m)+I[4],E|=0,E=_(E,C[e]),E=E+b|0,o=b,b=m,m=_(w,10),w=h,h=E,E=x+t[n+R[e]]|0,E+=e<16?y(S,A,B)+j[0]:e<32?g(S,A,B)+j[1]:e<48?v(S,A,B)+j[2]:e<64?d(S,A,B)+j[3]:p(S,A,B)+j[4],E|=0,E=_(E,P[e]),E=E+k|0,x=k,k=B,B=_(A,10),A=S,S=E;E=O[1]+w+B|0,O[1]=O[2]+m+k|0,O[2]=O[3]+b+x|0,O[3]=O[4]+o+S|0,O[4]=O[0]+h+A|0,O[0]=E},_doFinalize:function(){var t=this._data,n=t.words,e=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),t.sigBytes=4*(n.length+1),this._process();for(var i=this._hash,o=i.words,u=0;u<5;u++){var a=o[u];o[u]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,n,e){return t^n^e}function d(t,n,e){return t&n|~t&e}function v(t,n,e){return(t|~n)^e}function g(t,n,e){return t&e|n&~e}function y(t,n,e){return t^(n|~e)}function _(t,n){return t<<n|t>>>32-n}n.RIPEMD160=i._createHelper(h),n.HmacRIPEMD160=i._createHmacHelper(h)}(Math),t.RIPEMD160}))},8111:function(t,n,e){"use strict";var r=e(6518),i=e(4576),o=e(679),u=e(8551),a=e(4901),c=e(2787),s=e(2106),f=e(4659),l=e(9039),h=e(9297),p=e(8227),d=e(7657).IteratorPrototype,v=e(3724),g=e(6395),y="constructor",_="Iterator",w=p("toStringTag"),m=TypeError,b=i[_],x=g||!a(b)||b.prototype!==d||!l((function(){b({})})),S=function(){if(o(this,d),c(this)===d)throw new m("Abstract class Iterator not directly constructable")},A=function(t,n){v?s(d,t,{configurable:!0,get:function(){return n},set:function(n){if(u(this),this===d)throw new m("You can't redefine this property");h(this,t)?this[t]=n:f(this,t,n)}}):d[t]=n};h(d,w)||A(w,_),!x&&h(d,y)&&d[y]!==Object||A(y,S),S.prototype=d,r({global:!0,constructor:!0,forced:x},{Iterator:S})},8124:function(t,n,e){(function(n,r){t.exports=r(e(9021),e(7165))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},8227:function(t,n,e){"use strict";var r=e(4576),i=e(5745),o=e(9297),u=e(3392),a=e(4495),c=e(7040),s=r.Symbol,f=i("wks"),l=c?s["for"]||s:s&&s.withoutSetter||u;t.exports=function(t){return o(f,t)||(f[t]=a&&o(s,t)?s[t]:l("Symbol."+t)),f[t]}},8454:function(t,n,e){(function(n,r){t.exports=r(e(9021),e(7165))})(0,(function(t){return t.mode.ECB=function(){var n=t.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(t,n){this._cipher.encryptBlock(t,n)}}),n.Decryptor=n.extend({processBlock:function(t,n){this._cipher.decryptBlock(t,n)}}),n}(),t.mode.ECB}))},8480:function(t,n,e){"use strict";var r=e(1828),i=e(8727),o=i.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},8551:function(t,n,e){"use strict";var r=e(34),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not an object")}},8622:function(t,n,e){"use strict";var r=e(4576),i=e(4901),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},8686:function(t,n,e){"use strict";var r=e(3724),i=e(9039);t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8773:function(t,n){"use strict";var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!e.call({1:2},1);n.f=i?function(t){var n=r(this,t);return!!n&&n.enumerable}:e},8807:function(t,n,e){"use strict";e(4114),e(8111),e(7588);var r=e(2543),i=e.n(r);class o{constructor(){this.__listeners={}}register(...t){let n,e;3==t.length?(n=`${t[0]}-${t[1]}`,e=t[2]):(n=t[0],e=t[1]),this.__listeners[n]=this.__listeners[n]||[],this.__listeners[n].push({callback:e})}fireEvent(...t){let n,e;3==t.length?(n=`${t[0]}-${t[1]}`,e=t[2]):(n=t[0],e=t[1]);let r=this.__listeners[n]||[],o=!0;return i().forEach(r,(t=>{let n=t.callback,r=n.call(null,e);if(!1===r)return o=!1,!1})),o}unregister(...t){let n,e;3==t.length?(n=`${t[0]}-${t[1]}`,e=t[2]):(n=t[0],e=t[1]),i().isString(n)&&!i().isEmpty(this.__listeners[n])&&i().remove(this.__listeners[n],(t=>t.callback===e||void 0===e))}hasListener(t){return i().isString(t)&&!i().isEmpty(this.__listeners[t])}clearAll(){this.__listeners={}}}const u=new o;n.A=u},8981:function(t,n,e){"use strict";var r=e(7750),i=Object;t.exports=function(t){return i(r(t))}},9012:function(t){"use strict";t.exports=function(t,n){return function(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];return t.apply(n,e)}}},9021:function(t,n,e){(function(n,e){t.exports=e()})(0,(function(){var t=t||function(t,n){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof e.g&&e.g.crypto&&(r=e.g.crypto),!r)try{r=e(477)}catch(g){}var i=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(n){var e;return t.prototype=n,e=new t,t.prototype=null,e}}(),u={},a=u.lib={},c=a.Base=function(){return{extend:function(t){var n=o(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=a.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=n?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var n=this.words,e=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var u=e[o>>>2]>>>24-o%4*8&255;n[r+o>>>2]|=u<<24-(r+o)%4*8}else for(var a=0;a<i;a+=4)n[r+a>>>2]=e[a>>>2];return this.sigBytes+=i,this},clamp:function(){var n=this.words,e=this.sigBytes;n[e>>>2]&=4294967295<<32-e%4*8,n.length=t.ceil(e/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],e=0;e<t;e+=4)n.push(i());return new s.init(n,t)}}),f=u.enc={},l=f.Hex={stringify:function(t){for(var n=t.words,e=t.sigBytes,r=[],i=0;i<e;i++){var o=n[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var n=t.length,e=[],r=0;r<n;r+=2)e[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new s.init(e,n/2)}},h=f.Latin1={stringify:function(t){for(var n=t.words,e=t.sigBytes,r=[],i=0;i<e;i++){var o=n[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var n=t.length,e=[],r=0;r<n;r++)e[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new s.init(e,n)}},p=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(n){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},d=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(n){var e,r=this._data,i=r.words,o=r.sigBytes,u=this.blockSize,a=4*u,c=o/a;c=n?t.ceil(c):t.max((0|c)-this._minBufferSize,0);var f=c*u,l=t.min(4*f,o);if(f){for(var h=0;h<f;h+=u)this._doProcessBlock(i,h);e=i.splice(0,f),r.sigBytes-=l}return new s.init(e,l)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),v=(a.Hasher=d.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var n=this._doFinalize();return n},blockSize:16,_createHelper:function(t){return function(n,e){return new t.init(e).finalize(n)}},_createHmacHelper:function(t){return function(n,e){return new v.HMAC.init(t,e).finalize(n)}}}),u.algo={});return u}(Math);return t}))},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(n){return!0}}},9106:function(t,n,e){"use strict";var r=e(9516);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,n,e){if(!n)return t;var o;if(e)o=e(n);else if(r.isURLSearchParams(n))o=n.toString();else{var u=[];r.forEach(n,(function(t,n){null!==t&&"undefined"!==typeof t&&(r.isArray(t)?n+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),u.push(i(n)+"="+i(t))})))})),o=u.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},9137:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},9297:function(t,n,e){"use strict";var r=e(9504),i=e(8981),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return o(i(t),n)}},9306:function(t,n,e){"use strict";var r=e(4901),i=e(6823),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a function")}},9433:function(t,n,e){"use strict";var r=e(4576),i=Object.defineProperty;t.exports=function(t,n){try{i(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},9462:function(t,n,e){"use strict";var r=e(9565),i=e(2360),o=e(6699),u=e(6279),a=e(8227),c=e(1181),s=e(5966),f=e(7657).IteratorPrototype,l=e(2529),h=e(9539),p=a("toStringTag"),d="IteratorHelper",v="WrapForValidIterator",g=c.set,y=function(t){var n=c.getterFor(t?v:d);return u(i(f),{next:function(){var e=n(this);if(t)return e.nextHandler();if(e.done)return l(void 0,!0);try{var r=e.nextHandler();return e.returnHandlerResult?r:l(r,e.done)}catch(i){throw e.done=!0,i}},return:function(){var e=n(this),i=e.iterator;if(e.done=!0,t){var o=s(i,"return");return o?r(o,i):l(void 0,!0)}if(e.inner)try{h(e.inner.iterator,"normal")}catch(u){return h(i,"throw",u)}return i&&h(i,"normal"),l(void 0,!0)}})},_=y(!0),w=y(!1);o(w,p,"Iterator Helper"),t.exports=function(t,n,e){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=n?v:d,i.returnHandlerResult=!!e,i.nextHandler=t,i.counter=0,i.done=!1,g(this,i)};return r.prototype=n?_:w,r}},9504:function(t,n,e){"use strict";var r=e(616),i=Function.prototype,o=i.call,u=r&&i.bind.bind(o,o);t.exports=r?u:function(t){return function(){return o.apply(t,arguments)}}},9506:function(t,n,e){(function(n,r){t.exports=r(e(9021),e(5471),e(1025))})(0,(function(t){return function(){var n=t,e=n.lib,r=e.Base,i=e.WordArray,o=n.algo,u=o.MD5,a=o.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:u,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,n){var e,r=this.cfg,o=r.hasher.create(),u=i.create(),a=u.words,c=r.keySize,s=r.iterations;while(a.length<c){e&&o.update(e),e=o.update(t).finalize(n),o.reset();for(var f=1;f<s;f++)e=o.finalize(e),o.reset();u.concat(e)}return u.sigBytes=4*c,u}});n.EvpKDF=function(t,n,e){return a.create(e).compute(t,n)}}(),t.EvpKDF}))},9516:function(t,n,e){"use strict";var r=e(9012),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function u(t){return"undefined"===typeof t}function a(t){return null!==t&&!u(t)&&null!==t.constructor&&!u(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function c(t){return"[object ArrayBuffer]"===i.call(t)}function s(t){return"undefined"!==typeof FormData&&t instanceof FormData}function f(t){var n;return n="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,n}function l(t){return"string"===typeof t}function h(t){return"number"===typeof t}function p(t){return null!==t&&"object"===typeof t}function d(t){if("[object Object]"!==i.call(t))return!1;var n=Object.getPrototypeOf(t);return null===n||n===Object.prototype}function v(t){return"[object Date]"===i.call(t)}function g(t){return"[object File]"===i.call(t)}function y(t){return"[object Blob]"===i.call(t)}function _(t){return"[object Function]"===i.call(t)}function w(t){return p(t)&&_(t.pipe)}function m(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function b(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function S(t,n){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var e=0,r=t.length;e<r;e++)n.call(null,t[e],e,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.call(null,t[i],i,t)}function A(){var t={};function n(n,e){d(t[e])&&d(n)?t[e]=A(t[e],n):d(n)?t[e]=A({},n):o(n)?t[e]=n.slice():t[e]=n}for(var e=0,r=arguments.length;e<r;e++)S(arguments[e],n);return t}function B(t,n,e){return S(n,(function(n,i){t[i]=e&&"function"===typeof n?r(n,e):n})),t}function k(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}t.exports={isArray:o,isArrayBuffer:c,isBuffer:a,isFormData:s,isArrayBufferView:f,isString:l,isNumber:h,isObject:p,isPlainObject:d,isUndefined:u,isDate:v,isFile:g,isBlob:y,isFunction:_,isStream:w,isURLSearchParams:m,isStandardBrowserEnv:x,forEach:S,merge:A,extend:B,trim:b,stripBOM:k}},9519:function(t,n,e){"use strict";var r,i,o=e(4576),u=e(2839),a=o.process,c=o.Deno,s=a&&a.versions||c&&c.version,f=s&&s.v8;f&&(r=f.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&u&&(r=u.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},9539:function(t,n,e){"use strict";var r=e(9565),i=e(8551),o=e(5966);t.exports=function(t,n,e){var u,a;i(t);try{if(u=o(t,"return"),!u){if("throw"===n)throw e;return e}u=r(u,t)}catch(c){a=!0,u=c}if("throw"===n)throw e;if(a)throw u;return i(u),e}},9557:function(t,n,e){(function(n,r){t.exports=r(e(9021),e(3240),e(1380))})(0,(function(t){return function(){var n=t,e=n.x64,r=e.Word,i=e.WordArray,o=n.algo,u=o.SHA512,a=o.SHA384=u.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var t=u._doFinalize.call(this);return t.sigBytes-=16,t}});n.SHA384=u._createHelper(a),n.HmacSHA384=u._createHmacHelper(a)}(),t.SHA384}))},9565:function(t,n,e){"use strict";var r=e(616),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},9615:function(t,n,e){"use strict";var r=e(9137),i=e(4680);t.exports=function(t,n){return t&&!r(n)?i(t,n):n}},9617:function(t,n,e){"use strict";var r=e(5397),i=e(5610),o=e(6198),u=function(t){return function(n,e,u){var a=r(n),c=o(a);if(0===c)return!t&&-1;var s,f=i(u,c);if(t&&e!==e){while(c>f)if(s=a[f++],s!==s)return!0}else for(;c>f;f++)if((t||f in a)&&a[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},9641:function(t){t.exports={version:"0.23.0"}}},n={};function e(r){var i=n[r];if(void 0!==i)return i.exports;var o=n[r]={id:r,loaded:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}!function(){e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,{a:n}),n}}(),function(){e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}}(),function(){e.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)}}(),function(){e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){e.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t}}(),function(){e.p=""}();var r={};return function(){"use strict";if(e.r(r),e.d(r,{addEventAction:function(){return ft},addIMMapping:function(){return z},addObjectUsedTimes:function(){return Z},addWindowTrustedOrigin:function(){return ct},decrypt:function(){return L},destroyEventCenter:function(){return u},fireEvent:function(){return c},getAPPInfosByID:function(){return it},getAllUserInfosByGroupID:function(){return ot},getAppPortalMenuDatas:function(){return _},getAuthPic:function(){return N},getChildrenOfficeInfosByID:function(){return ut},getCurrentUserPortalPageID:function(){return A},getGroupMappingsByAccount:function(){return tt},getKey:function(){return $},getLoginPageNotices:function(){return R},getMappingAppInfoByID:function(){return D},getMenuDatasByGroupID:function(){return w},getMenuDatasByRoleIDs:function(){return m},getObjectUseTimes:function(){return Y},getOfficeInfosByIDs:function(){return et},getPageIDByComponentID:function(){return Q},getPojectDptsByUserAndGroupID:function(){return at},getPoratlAppID:function(){return y},getPortalAccessToken:function(){return C},getPortalPageConfig:function(){return E},getPortalPageMenuID:function(){return j},getPortalUserInfo:function(){return P},getPortalUserMappingInfos:function(){return k},getPortalUserSig:function(){return T},getRoleIDsByUserAndGroupID:function(){return x},getThirdAppPathByKey:function(){return J},getUrlParamValue:function(){return K},getUserAllMappngPortal:function(){return B},hasListener:function(){return s},initEventCenter:function(){return o},initFrameWindowListener:function(){return ht},loginAccount:function(){return F},logoutAccount:function(){return H},queryAndStoreAppVariable:function(){return V},queryAppVariable:function(){return X},queryAssetById:function(){return q},queryGroupIDByOfficeId:function(){return G},queryGroupInfosByOfficeId:function(){return nt},queryOfficeInfosById:function(){return rt},registerEventListener:function(){return i},removeEventAction:function(){return lt},removeEventListener:function(){return a},removeWindowTrustedOrigin:function(){return st},sendWindowMessage:function(){return pt},setPortalPageConfig:function(){return O},switchPortalLogin:function(){return W},updateUserSelectPortal:function(){return I},validateSSOPageLoaded:function(){return b}}),"undefined"!==typeof window){var t=window.document.currentScript,n=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(e.p=n[1])}const i=(t,n)=>{let e=window.rjEventCenter;e||(o(),e=window.rjEventCenter),e&&e.register&&e.register(t,n)},o=()=>{if(window.rjEventCenter)console.log(`事件中心已经初始化,不需要重新初始化:时间戳: ${(new Date).toLocaleString()}`);else{console.log(`初始化事件中心:时间戳: ${(new Date).toLocaleString()}`);let t=e(8807).A;window.rjEventCenter=t}},u=()=>{window.rjEventCenter&&(window.rjEventCenter.clearAll(),window.rjEventCenter=null,console.log(`事件中心已清理:时间戳: ${(new Date).toLocaleString()}`))},a=(t,n)=>{let e=window.rjEventCenter;e&&e.unregister&&e.unregister(t,n)},c=(t,n)=>{let e=window.rjEventCenter;e&&e.fireEvent&&e.fireEvent(t,n)},s=t=>{let n=window.rjEventCenter;return!(!n||!n.hasListener)&&n.hasListener(t)};e(4114),e(8111),e(2489),e(116),e(7588);var f=e(2505),l=e.n(f),h=e(3992);let p="";const d=(t="")=>{t&&(t.startsWith("/")&&(t=t.slice(1,t.length)),t.endsWith("/")&&(t=t.slice(0,-1)));const n=l().create({baseURL:`${p}/${t?t+"/":""}sdata/rest`,timeout:6e4,validateStatus:function(t){return t>=200&&t<300},headers:window.location.search&&h.parse(window.location.search).token||window.token?{token:h.parse(window.location.search).token||window.token}:{}});return n.defaults.headers.post["Content-Type"]="application/json",n.interceptors.response.use((t=>{let{data:n}=t;return"string"===typeof n&&(n=JSON.parse(n)),!n||200===n.status||n instanceof Blob?n instanceof Blob?(t.data=n,t):(t.data=n&&n.result,t):Promise.reject(t)}),(t=>{if(!t.response||401!==t.response.status)return Promise.reject(t.response)})),n};let v=window.prefixPath||"";var g=d(v);const y=(t,n)=>{let e="";return t?e=window.appSdk.getAppId():(e=window.sessionStorage.getItem("iportal_app_id"),e||n.forEach((t=>{"iPortal_app_id"==t.name&&(e=t.default_value)})),e||(e=window.appSdk.getAppId())),e},_=async(t,n,e,r)=>{let i=y(e,r),o=await x(t,i,n),u=await w(n,o),a=window.appSdk.getAppId(),c=u.filter((t=>{if(e)return!0;if(t.app_id==i)return!0;{let n=t.children,e=!1;return n&&n.length>0&&n.forEach((t=>{let n=t.children;if(n&&n.length>0){let t=n.filter((t=>t.app_id===a));t&&t.length>0&&(e=!0)}})),e}}));return c},w=async(t,n)=>{let e={param:{id:t}},r=await g.post("/dataservice/rest/orchestration/getMenuDatasByGroupID",e),i=r.data.resultDatas,o=r.data.menuTypes;if(n&&n.length>0){let e=await m(n,t),r=e.data.quickMenuMappingDatas||[],u={};for(const t of r){let n=t.menu_mapping_id;u[n]=t}let a=e.data.menuMappingDatas||[];for(const t of a){let n=t.id;u[n]=t}return S(i,o,u)}return S(i,o,[])},m=async(t,n)=>{let e={param:{role_ids:t,group_id:n}},r=await g.post("/dataservice/rest/orchestration/getQuckMenuMappingsByRoleIDs",e);return r},b=async(t,n,e)=>{let r={param:{app_id:t,appSecret:n,returnUrl:e}},i=await g.post("/dataservice/rest/orchestration/validateSSOPageLoaded",r),o=i.data.count;return o},x=async(t,n,e)=>{let r={param:{user_id:t,app_id:n,group_id:e}},i=await g.post("/dataservice/rest/orchestration/getRoleIDsByUserAndGroupID",r),o=i.data.portal_role_ids;return o},S=(t,n,e)=>{let r={},i={};for(const u of t){let t=u.id,n={id:t,index:u.menu_id,name:u.title,sort:u.sort,actionType:u.actionType,url:u.url,iconClass:u.image,children:[],app_id:u.app_id,menu_id:u.menu_id,beyond_type:u.menu_type?u.menu_type:"RJVIEW-OTHERS",beyond_type_sort:u.menu_type_sort?u.menu_type_sort:999};e?(e[t]||"4"==u.type)&&(r[t]=n):r[t]=n}for(const u of n){let t=u.id;i[t]=u}for(const u of t){let t=u.type;if("5"==t){let t=r[u.id];if(!t)continue;let n=u.parent_id,e=t.beyond_type,o=r[n],a=o.children,c=a.find((t=>t.id==e));if(c){let n=c.children;n.push(t),t.typeItem=c}else{let n=i[e],r=n?{id:e,index:e,name:n.title,children:[],sort:n.value}:{id:e,index:e,name:"其他",children:[],sort:999},o=r.children;o.push(t),a.push(r),t.typeItem=r}}}const o=[];for(const u of t){let t=u.type;if("4"==t){let t=r[u.id];if(!t)continue;let n=t.children,e=0;for(const r of n){let t=r.children,n=t.length;if(e+=n,n>0)break}if(0==e)continue;o.push(t);let i=t.children;i.sort(((t,n)=>Number.isNaN(t.sort)?1:Number.isNaN(n.sort)?-1:t.sort-n.sort));for(let r of i){let t=r.children;t.sort(((t,n)=>Number.isNaN(t.sort)?1:Number.isNaN(n.sort)?-1:t.sort-n.sort))}}}return o.sort(((t,n)=>Number.isNaN(t.sort)?1:Number.isNaN(n.sort)?-1:t.sort-n.sort)),o},A=async t=>{let n={param:{userData:t}},e=await g.post("/dataservice/rest/orchestration/getPortalPageID",n),r=e.data.portal_id;return r},B=t=>{let n={param:{userData:t}};return g.post("/dataservice/rest/orchestration/getUserAllMappngPortal",n)},k=async t=>{let n={param:{operateData:t}},e=await g.post("/dataservice/rest/orchestration/getPortalUserMappingInfos",n),r=e.data.portalMapping;return r},E=async t=>{let n={param:{id:t}},e=await g.post("/dataservice/rest/orchestration/getPortalPageConfig",n),r=e.data.portal_page_config||"[]";return r},O=t=>{let n={param:t};return g.post("/dataservice/rest/orchestration/setPortalPageConfig",n)},I=t=>{let n={param:{portalMappingData:t}};return g.post("/dataservice/rest/orchestration/updateUserSelectPortal",n)},j=async(t,n)=>{let e={param:{id:t,appid:n}},r=await g.post("/dataservice/rest/orchestration/getPortalPageMenuID",e),i=r.data.menu_id;return i},D=async(t,n)=>{let e={param:{appID:t,groupID:n}},r=await g.post("/dataservice/rest/orchestration/getPortalMappingAppInfoByID",e),i=r.data.appInfo;return i},R=async()=>{let t={param:{id:"1005"}},n=await g.post("/dataservice/rest/orchestration/getNoticeInfosByAppTypeID",t),e=n.data.resultDatas;return e},C=async(t,n)=>{let e=await g.get(`/appAuth/getAccessToken?appKey=${t}&appSecret=${n}`),r=e.data;return r},P=async(t,n)=>{let e=await g.get(`/systhirdapp/user/getUserByCode?code=${t}&access_token=${n}`),r=e.data;return r},T=async(t,n,e)=>{let r={param:{userID:t,im_type:n,group_id:e}},i=await g.post("/dataservice/rest/orchestration/getIMUserSigByID",r),o=i.data.userSig;return o},z=async(t,n,e,r)=>{let i={param:{data:{userID:t,im_type:n,group_id:e,userSig:r}}},o=await g.post("/dataservice/rest/orchestration/addIMMapping",i),u=o.data;return u};var U=e(1396),M=e.n(U);const N=()=>g.get("/system/authority/getAuthPic?module=loginPassword",{responseType:"arraybuffer"}),H=async t=>{let n=await g.get(`/system/authority/logout?isMobileLogout=${t}`),e=JSON.parse(n.request.response),r=e.code;return"10110020"==r?(window.sessionStorage.clear(),{code:r,message:e.message}):{code:r,message:e.message}},L=async t=>{let n=await $();const e=M().AES.decrypt(t,n).toString(M().enc.Utf8);return e},W=async(t,n,e)=>{let r=window.sessionStorage.getItem("iportal_login_user_key");r=await L(r),t.password=r;let i=await H(e),o=i.code,u=i.message;if("10110020"==o){let e=await F(t,n);return e}return{code:o,message:u}},F=async(t,n)=>{let e={param:{loginData:{account:t.account_view,group_id:t.groupid,imageCode:t.imageCode}}},r=await g.post("/dataservice/rest/orchestration/getLoginPortalAccountKey",e),i=await $(),o=JSON.parse(r.request.response),u=o.result.code;if(10001==u){let e=o.result.codeData.code,a=e,c=o.result.codeData.key;if(e=M().AES.decrypt(e,i).toString(M().enc.Utf8),c=M().AES.decrypt(c,i).toString(M().enc.Utf8),c==t.password){if(e=window.appSdk.Encrypt(e),t.password=e,r=await g.post(`/system/authority/loginAccount4Application?authPicCode=${t.imageCode}&dataappId=${n}&mobileOrWeb=web`,t),o=JSON.parse(r.request.response),u=o.code,10110004==u){let n=o.id;return window.sessionStorage.setItem("iportal_login_user_id",n),window.sessionStorage.setItem("iportal_group_id",t.groupid),window.sessionStorage.setItem("iportal_login_user_key",a),{code:u}}return{code:u,message:o.message}}return{code:u,message:"账户密码错误!"}}return{code:u,message:o.result.message}},$=async()=>{let t={param:{}},n=await g.post("/dataservice/rest/orchestration/getKey",t),e=n.data.key;return e},q=(t,n=200)=>g.post(`/asset/getAssetData?asset_id=${t}&count=${n}`,{filters:[]}),K=(t,n)=>{try{const e=new URL(t),r=e.searchParams.get(n);return r&&-1!==r.indexOf("#")?r.split("#")[0]:r}catch(e){return console.error("URL 格式错误:",e),""}},G=async t=>{let n={param:{id:t}},e=await g.post("/dataservice/rest/orchestration/getGroupIDByDptID",n),r=e.data.resultDptData,i=r.id;return i},X=(t,n)=>{if(n&&n.length>0)for(let e=0;e<n.length;e++)if(n[e].name==t)return n[e].default_value;return""},J=async(t,n,e)=>{let r={param:{appKey:t,appSecret:n,groupID:e}},i=await g.post("/dataservice/rest/orchestration/getThirdAppPathByKey",r),o=i.data.path;return o},V=(t,n)=>{let e=window.sessionStorage.getItem("isdata_app_variable_"+t);return e||(e=X(t,n),e&&window.sessionStorage.setItem("isdata_app_variable_"+t,e)),e},Z=t=>{let n={param:{operateData:t}};return g.post("/dataservice/rest/orchestration/addObjectUsedTimes",n)},Y=t=>{let n={param:{objectInfo:t}};return g.post("/dataservice/rest/orchestration/getObjectUseTimes",n)},Q=async t=>{let n={param:{componentID:t}},e=await g.post("/dataservice/rest/orchestration/getPageIDByComponentID",n),r=e.data.page_id;return r},tt=async t=>{let n={param:{account:t}},e=await g.post("/dataservice/rest/orchestration/getGourpMappingsByAccountName",n),r=e.data.resultGroups;return r},nt=async t=>{let n={param:{id:t}},e=await g.post("/dataservice/rest/orchestration/getGroupIDByDptID",n),r=e.data.resultDptData;return r},et=async t=>{let n={param:{ids:t}},e=await g.post("/dataservice/rest/orchestration/getOfficeInfosByIDs",n),r=e.data.officeInfos;return r},rt=async t=>{let n={param:{id:t}},e=await g.post("/dataservice/rest/orchestration/getOfficeInfosByID",n),r=e.data.officeData;return r},it=async t=>{let n={param:{id:t}},e=await g.post("/dataservice/rest/orchestration/getAPPInfosByID",n),r=e.data.appInfo;return r},ot=async t=>{let n={param:{groupID:t}},e=await g.post("/dataservice/rest/orchestration/getAllUserInfosByGroupID",n),r=e.data.resultDatas;return r},ut=async t=>{let n={param:{officeID:t}},e=await g.post("/dataservice/rest/orchestration/getChildrenOfficeInfosByID",n),r=e.data.resultDatas;return r},at=async(t,n)=>{let e={param:{userID:t,groupID:n}},r=await g.post("/dataservice/rest/orchestration/getPojectDptsByUserAndGroupID",e),i={dptDatas:r.data.officeDatas,userMappings:r.data.userMappings};return i};e(3579);const ct=t=>{let n=window.SDATA_WINDOW_TRUSTED_ORIGINS;n||(window.SDATA_WINDOW_TRUSTED_ORIGINS=[]),n.includes(t)||n.push(t)},st=t=>{let n=window.SDATA_WINDOW_TRUSTED_ORIGINS;n||(window.SDATA_WINDOW_TRUSTED_ORIGINS=[]);let e=n.indexOf(t);e>-1&&n.splice(e,1)},ft=(t,n)=>{let e=window.sdataEventActions;e||(window.sdataEventActions={}),window.sdataEventActions[t]=n},lt=t=>{let n=window.sdataEventActions;n||(window.sdataEventActions={}),delete window.sdataEventActions[t]},ht=()=>{let t=window.SDATA_WINDOW_TRUSTED_ORIGINS;t||(window.SDATA_WINDOW_TRUSTED_ORIGINS=[]);let n=window.sdataEventActions;n||(window.sdataEventActions={}),window.addEventListener("message",(async t=>{const n=window.SDATA_WINDOW_TRUSTED_ORIGINS.some((n=>t.origin===n||new RegExp(n).test(t.origin)));if(!n)return void console.log("拒绝非可信源消息:",t.origin);let e=t.data?.eventKey;if(!e)return;let r=t.origin;if(console.log(`收到${r}页面消息:`,t.data),"sdata_alllife_event_response"===e){let n=t.data.eventOperateKey,e=window.sdataEventActions[n];delete window.sdataEventActions[n],e&&await e(t.data.data,t)}else{let n=window.sdataEventActions[e],i={eventKey:"sdata_alllife_event_response",eventOperateKey:t.data.eventOperateKey,data:{}};if(n){let e=await n(t.data.data,t);i.data=e}t.source.postMessage(i,r)}}))},pt=async(t,n,e,r,i)=>{let o=(new Date).getTime(),u=`${n}_${o}`;ft(u,i);let a={eventOperateKey:u,eventKey:e,data:r};t.postMessage(a,n)}}(),r}()}));
|
|
26
|
+
return function(){var n=t,e=n.lib,r=e.WordArray,i=e.Hasher,o=n.algo,u=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),s=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=r.create([0,1518500249,1859775393,2400959708,2840853838]),l=r.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=i.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,n){for(var e=0;e<16;e++){var r=n+e,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,h,w,m,b,x,S,A,B,k,E,O=this._hash.words,I=f.words,j=l.words,D=u.words,R=a.words,C=c.words,P=s.words;x=o=O[0],S=h=O[1],A=w=O[2],B=m=O[3],k=b=O[4];for(e=0;e<80;e+=1)E=o+t[n+D[e]]|0,E+=e<16?p(h,w,m)+I[0]:e<32?d(h,w,m)+I[1]:e<48?v(h,w,m)+I[2]:e<64?g(h,w,m)+I[3]:y(h,w,m)+I[4],E|=0,E=_(E,C[e]),E=E+b|0,o=b,b=m,m=_(w,10),w=h,h=E,E=x+t[n+R[e]]|0,E+=e<16?y(S,A,B)+j[0]:e<32?g(S,A,B)+j[1]:e<48?v(S,A,B)+j[2]:e<64?d(S,A,B)+j[3]:p(S,A,B)+j[4],E|=0,E=_(E,P[e]),E=E+k|0,x=k,k=B,B=_(A,10),A=S,S=E;E=O[1]+w+B|0,O[1]=O[2]+m+k|0,O[2]=O[3]+b+x|0,O[3]=O[4]+o+S|0,O[4]=O[0]+h+A|0,O[0]=E},_doFinalize:function(){var t=this._data,n=t.words,e=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),t.sigBytes=4*(n.length+1),this._process();for(var i=this._hash,o=i.words,u=0;u<5;u++){var a=o[u];o[u]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,n,e){return t^n^e}function d(t,n,e){return t&n|~t&e}function v(t,n,e){return(t|~n)^e}function g(t,n,e){return t&e|n&~e}function y(t,n,e){return t^(n|~e)}function _(t,n){return t<<n|t>>>32-n}n.RIPEMD160=i._createHelper(h),n.HmacRIPEMD160=i._createHmacHelper(h)}(Math),t.RIPEMD160}))},8111:function(t,n,e){"use strict";var r=e(6518),i=e(4576),o=e(679),u=e(8551),a=e(4901),c=e(2787),s=e(2106),f=e(4659),l=e(9039),h=e(9297),p=e(8227),d=e(7657).IteratorPrototype,v=e(3724),g=e(6395),y="constructor",_="Iterator",w=p("toStringTag"),m=TypeError,b=i[_],x=g||!a(b)||b.prototype!==d||!l((function(){b({})})),S=function(){if(o(this,d),c(this)===d)throw new m("Abstract class Iterator not directly constructable")},A=function(t,n){v?s(d,t,{configurable:!0,get:function(){return n},set:function(n){if(u(this),this===d)throw new m("You can't redefine this property");h(this,t)?this[t]=n:f(this,t,n)}}):d[t]=n};h(d,w)||A(w,_),!x&&h(d,y)&&d[y]!==Object||A(y,S),S.prototype=d,r({global:!0,constructor:!0,forced:x},{Iterator:S})},8124:function(t,n,e){(function(n,r){t.exports=r(e(9021),e(7165))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},8227:function(t,n,e){"use strict";var r=e(4576),i=e(5745),o=e(9297),u=e(3392),a=e(4495),c=e(7040),s=r.Symbol,f=i("wks"),l=c?s["for"]||s:s&&s.withoutSetter||u;t.exports=function(t){return o(f,t)||(f[t]=a&&o(s,t)?s[t]:l("Symbol."+t)),f[t]}},8454:function(t,n,e){(function(n,r){t.exports=r(e(9021),e(7165))})(0,(function(t){return t.mode.ECB=function(){var n=t.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(t,n){this._cipher.encryptBlock(t,n)}}),n.Decryptor=n.extend({processBlock:function(t,n){this._cipher.decryptBlock(t,n)}}),n}(),t.mode.ECB}))},8480:function(t,n,e){"use strict";var r=e(1828),i=e(8727),o=i.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},8551:function(t,n,e){"use strict";var r=e(34),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not an object")}},8622:function(t,n,e){"use strict";var r=e(4576),i=e(4901),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},8686:function(t,n,e){"use strict";var r=e(3724),i=e(9039);t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8773:function(t,n){"use strict";var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!e.call({1:2},1);n.f=i?function(t){var n=r(this,t);return!!n&&n.enumerable}:e},8807:function(t,n,e){"use strict";e(4114),e(8111),e(7588);var r=e(2543),i=e.n(r);class o{constructor(){this.__listeners={}}register(...t){let n,e;3==t.length?(n=`${t[0]}-${t[1]}`,e=t[2]):(n=t[0],e=t[1]),this.__listeners[n]=this.__listeners[n]||[],this.__listeners[n].push({callback:e})}fireEvent(...t){let n,e;3==t.length?(n=`${t[0]}-${t[1]}`,e=t[2]):(n=t[0],e=t[1]);let r=this.__listeners[n]||[],o=!0;return i().forEach(r,(t=>{let n=t.callback,r=n.call(null,e);if(!1===r)return o=!1,!1})),o}unregister(...t){let n,e;3==t.length?(n=`${t[0]}-${t[1]}`,e=t[2]):(n=t[0],e=t[1]),i().isString(n)&&!i().isEmpty(this.__listeners[n])&&i().remove(this.__listeners[n],(t=>t.callback===e||void 0===e))}hasListener(t){return i().isString(t)&&!i().isEmpty(this.__listeners[t])}clearAll(){this.__listeners={}}}const u=new o;n.A=u},8981:function(t,n,e){"use strict";var r=e(7750),i=Object;t.exports=function(t){return i(r(t))}},9012:function(t){"use strict";t.exports=function(t,n){return function(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];return t.apply(n,e)}}},9021:function(t,n,e){(function(n,e){t.exports=e()})(0,(function(){var t=t||function(t,n){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof e.g&&e.g.crypto&&(r=e.g.crypto),!r)try{r=e(477)}catch(g){}var i=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(n){var e;return t.prototype=n,e=new t,t.prototype=null,e}}(),u={},a=u.lib={},c=a.Base=function(){return{extend:function(t){var n=o(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=a.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=n?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var n=this.words,e=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var u=e[o>>>2]>>>24-o%4*8&255;n[r+o>>>2]|=u<<24-(r+o)%4*8}else for(var a=0;a<i;a+=4)n[r+a>>>2]=e[a>>>2];return this.sigBytes+=i,this},clamp:function(){var n=this.words,e=this.sigBytes;n[e>>>2]&=4294967295<<32-e%4*8,n.length=t.ceil(e/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],e=0;e<t;e+=4)n.push(i());return new s.init(n,t)}}),f=u.enc={},l=f.Hex={stringify:function(t){for(var n=t.words,e=t.sigBytes,r=[],i=0;i<e;i++){var o=n[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var n=t.length,e=[],r=0;r<n;r+=2)e[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new s.init(e,n/2)}},h=f.Latin1={stringify:function(t){for(var n=t.words,e=t.sigBytes,r=[],i=0;i<e;i++){var o=n[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var n=t.length,e=[],r=0;r<n;r++)e[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new s.init(e,n)}},p=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(n){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},d=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(n){var e,r=this._data,i=r.words,o=r.sigBytes,u=this.blockSize,a=4*u,c=o/a;c=n?t.ceil(c):t.max((0|c)-this._minBufferSize,0);var f=c*u,l=t.min(4*f,o);if(f){for(var h=0;h<f;h+=u)this._doProcessBlock(i,h);e=i.splice(0,f),r.sigBytes-=l}return new s.init(e,l)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),v=(a.Hasher=d.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var n=this._doFinalize();return n},blockSize:16,_createHelper:function(t){return function(n,e){return new t.init(e).finalize(n)}},_createHmacHelper:function(t){return function(n,e){return new v.HMAC.init(t,e).finalize(n)}}}),u.algo={});return u}(Math);return t}))},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(n){return!0}}},9106:function(t,n,e){"use strict";var r=e(9516);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,n,e){if(!n)return t;var o;if(e)o=e(n);else if(r.isURLSearchParams(n))o=n.toString();else{var u=[];r.forEach(n,(function(t,n){null!==t&&"undefined"!==typeof t&&(r.isArray(t)?n+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),u.push(i(n)+"="+i(t))})))})),o=u.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},9137:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},9297:function(t,n,e){"use strict";var r=e(9504),i=e(8981),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return o(i(t),n)}},9306:function(t,n,e){"use strict";var r=e(4901),i=e(6823),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a function")}},9433:function(t,n,e){"use strict";var r=e(4576),i=Object.defineProperty;t.exports=function(t,n){try{i(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},9462:function(t,n,e){"use strict";var r=e(9565),i=e(2360),o=e(6699),u=e(6279),a=e(8227),c=e(1181),s=e(5966),f=e(7657).IteratorPrototype,l=e(2529),h=e(9539),p=a("toStringTag"),d="IteratorHelper",v="WrapForValidIterator",g=c.set,y=function(t){var n=c.getterFor(t?v:d);return u(i(f),{next:function(){var e=n(this);if(t)return e.nextHandler();if(e.done)return l(void 0,!0);try{var r=e.nextHandler();return e.returnHandlerResult?r:l(r,e.done)}catch(i){throw e.done=!0,i}},return:function(){var e=n(this),i=e.iterator;if(e.done=!0,t){var o=s(i,"return");return o?r(o,i):l(void 0,!0)}if(e.inner)try{h(e.inner.iterator,"normal")}catch(u){return h(i,"throw",u)}return i&&h(i,"normal"),l(void 0,!0)}})},_=y(!0),w=y(!1);o(w,p,"Iterator Helper"),t.exports=function(t,n,e){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=n?v:d,i.returnHandlerResult=!!e,i.nextHandler=t,i.counter=0,i.done=!1,g(this,i)};return r.prototype=n?_:w,r}},9504:function(t,n,e){"use strict";var r=e(616),i=Function.prototype,o=i.call,u=r&&i.bind.bind(o,o);t.exports=r?u:function(t){return function(){return o.apply(t,arguments)}}},9506:function(t,n,e){(function(n,r){t.exports=r(e(9021),e(5471),e(1025))})(0,(function(t){return function(){var n=t,e=n.lib,r=e.Base,i=e.WordArray,o=n.algo,u=o.MD5,a=o.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:u,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,n){var e,r=this.cfg,o=r.hasher.create(),u=i.create(),a=u.words,c=r.keySize,s=r.iterations;while(a.length<c){e&&o.update(e),e=o.update(t).finalize(n),o.reset();for(var f=1;f<s;f++)e=o.finalize(e),o.reset();u.concat(e)}return u.sigBytes=4*c,u}});n.EvpKDF=function(t,n,e){return a.create(e).compute(t,n)}}(),t.EvpKDF}))},9516:function(t,n,e){"use strict";var r=e(9012),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function u(t){return"undefined"===typeof t}function a(t){return null!==t&&!u(t)&&null!==t.constructor&&!u(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function c(t){return"[object ArrayBuffer]"===i.call(t)}function s(t){return"undefined"!==typeof FormData&&t instanceof FormData}function f(t){var n;return n="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,n}function l(t){return"string"===typeof t}function h(t){return"number"===typeof t}function p(t){return null!==t&&"object"===typeof t}function d(t){if("[object Object]"!==i.call(t))return!1;var n=Object.getPrototypeOf(t);return null===n||n===Object.prototype}function v(t){return"[object Date]"===i.call(t)}function g(t){return"[object File]"===i.call(t)}function y(t){return"[object Blob]"===i.call(t)}function _(t){return"[object Function]"===i.call(t)}function w(t){return p(t)&&_(t.pipe)}function m(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function b(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function S(t,n){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var e=0,r=t.length;e<r;e++)n.call(null,t[e],e,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.call(null,t[i],i,t)}function A(){var t={};function n(n,e){d(t[e])&&d(n)?t[e]=A(t[e],n):d(n)?t[e]=A({},n):o(n)?t[e]=n.slice():t[e]=n}for(var e=0,r=arguments.length;e<r;e++)S(arguments[e],n);return t}function B(t,n,e){return S(n,(function(n,i){t[i]=e&&"function"===typeof n?r(n,e):n})),t}function k(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}t.exports={isArray:o,isArrayBuffer:c,isBuffer:a,isFormData:s,isArrayBufferView:f,isString:l,isNumber:h,isObject:p,isPlainObject:d,isUndefined:u,isDate:v,isFile:g,isBlob:y,isFunction:_,isStream:w,isURLSearchParams:m,isStandardBrowserEnv:x,forEach:S,merge:A,extend:B,trim:b,stripBOM:k}},9519:function(t,n,e){"use strict";var r,i,o=e(4576),u=e(2839),a=o.process,c=o.Deno,s=a&&a.versions||c&&c.version,f=s&&s.v8;f&&(r=f.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&u&&(r=u.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},9539:function(t,n,e){"use strict";var r=e(9565),i=e(8551),o=e(5966);t.exports=function(t,n,e){var u,a;i(t);try{if(u=o(t,"return"),!u){if("throw"===n)throw e;return e}u=r(u,t)}catch(c){a=!0,u=c}if("throw"===n)throw e;if(a)throw u;return i(u),e}},9557:function(t,n,e){(function(n,r){t.exports=r(e(9021),e(3240),e(1380))})(0,(function(t){return function(){var n=t,e=n.x64,r=e.Word,i=e.WordArray,o=n.algo,u=o.SHA512,a=o.SHA384=u.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var t=u._doFinalize.call(this);return t.sigBytes-=16,t}});n.SHA384=u._createHelper(a),n.HmacSHA384=u._createHmacHelper(a)}(),t.SHA384}))},9565:function(t,n,e){"use strict";var r=e(616),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},9615:function(t,n,e){"use strict";var r=e(9137),i=e(4680);t.exports=function(t,n){return t&&!r(n)?i(t,n):n}},9617:function(t,n,e){"use strict";var r=e(5397),i=e(5610),o=e(6198),u=function(t){return function(n,e,u){var a=r(n),c=o(a);if(0===c)return!t&&-1;var s,f=i(u,c);if(t&&e!==e){while(c>f)if(s=a[f++],s!==s)return!0}else for(;c>f;f++)if((t||f in a)&&a[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},9641:function(t){t.exports={version:"0.23.0"}}},n={};function e(r){var i=n[r];if(void 0!==i)return i.exports;var o=n[r]={id:r,loaded:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}!function(){e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,{a:n}),n}}(),function(){e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}}(),function(){e.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)}}(),function(){e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){e.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t}}(),function(){e.p=""}();var r={};return function(){"use strict";if(e.r(r),e.d(r,{addEventAction:function(){return ft},addIMMapping:function(){return z},addObjectUsedTimes:function(){return Z},addWindowTrustedOrigin:function(){return ct},decrypt:function(){return L},destroyEventCenter:function(){return u},fireEvent:function(){return c},getAPPInfosByID:function(){return it},getAllUserInfosByGroupID:function(){return ot},getAppPortalMenuDatas:function(){return _},getAuthPic:function(){return N},getChildrenOfficeInfosByID:function(){return ut},getCurrentUserPortalPageID:function(){return A},getGroupMappingsByAccount:function(){return tt},getKey:function(){return $},getLoginPageNotices:function(){return R},getMappingAppInfoByID:function(){return D},getMenuDatasByGroupID:function(){return w},getMenuDatasByRoleIDs:function(){return m},getObjectUseTimes:function(){return Y},getOfficeInfosByIDs:function(){return et},getPageIDByComponentID:function(){return Q},getPojectDptsByUserAndGroupID:function(){return at},getPoratlAppID:function(){return y},getPortalAccessToken:function(){return C},getPortalPageConfig:function(){return E},getPortalPageMenuID:function(){return j},getPortalUserInfo:function(){return P},getPortalUserMappingInfos:function(){return k},getPortalUserSig:function(){return T},getRoleIDsByUserAndGroupID:function(){return x},getThirdAppPathByKey:function(){return J},getUrlParamValue:function(){return K},getUserAllMappngPortal:function(){return B},hasListener:function(){return s},initEventCenter:function(){return o},initFrameWindowListener:function(){return ht},loginAccount:function(){return F},logoutAccount:function(){return H},queryAndStoreAppVariable:function(){return V},queryAppVariable:function(){return X},queryAssetById:function(){return q},queryGroupIDByOfficeId:function(){return G},queryGroupInfosByOfficeId:function(){return nt},queryOfficeInfosById:function(){return rt},registerEventListener:function(){return i},removeEventAction:function(){return lt},removeEventListener:function(){return a},removeWindowTrustedOrigin:function(){return st},sendWindowMessage:function(){return pt},setPortalPageConfig:function(){return O},switchPortalLogin:function(){return W},updateUserSelectPortal:function(){return I},validateSSOPageLoaded:function(){return b}}),"undefined"!==typeof window){var t=window.document.currentScript,n=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(e.p=n[1])}const i=(t,n)=>{let e=window.rjEventCenter;e||(o(),e=window.rjEventCenter),e&&e.register&&e.register(t,n)},o=()=>{if(window.rjEventCenter)console.log(`事件中心已经初始化,不需要重新初始化:时间戳: ${(new Date).toLocaleString()}`);else{console.log(`初始化事件中心:时间戳: ${(new Date).toLocaleString()}`);let t=e(8807).A;window.rjEventCenter=t}},u=()=>{window.rjEventCenter&&(window.rjEventCenter.clearAll(),window.rjEventCenter=null,console.log(`事件中心已清理:时间戳: ${(new Date).toLocaleString()}`))},a=(t,n)=>{let e=window.rjEventCenter;e&&e.unregister&&e.unregister(t,n)},c=(t,n)=>{let e=window.rjEventCenter;e&&e.fireEvent&&e.fireEvent(t,n)},s=t=>{let n=window.rjEventCenter;return!(!n||!n.hasListener)&&n.hasListener(t)};e(4114),e(8111),e(2489),e(116),e(7588);var f=e(2505),l=e.n(f),h=e(3992);let p="";const d=(t="")=>{t&&(t.startsWith("/")&&(t=t.slice(1,t.length)),t.endsWith("/")&&(t=t.slice(0,-1)));const n=l().create({baseURL:`${p}/${t?t+"/":""}sdata/rest`,timeout:6e4,validateStatus:function(t){return t>=200&&t<300},headers:window.location.search&&h.parse(window.location.search).token||window.token?{token:h.parse(window.location.search).token||window.token}:{}});return n.defaults.headers.post["Content-Type"]="application/json",n.interceptors.response.use((t=>{let{data:n}=t;return"string"===typeof n&&(n=JSON.parse(n)),!n||200===n.status||n instanceof Blob?n instanceof Blob?(t.data=n,t):(t.data=n&&n.result,t):Promise.reject(t)}),(t=>{if(!t.response||401!==t.response.status)return Promise.reject(t.response)})),n};let v=window.prefixPath||"";var g=d(v);const y=(t,n)=>{let e="";return t?e=window.appSdk.getAppId():(e=window.sessionStorage.getItem("iportal_app_id"),e||n.forEach((t=>{"iPortal_app_id"==t.name&&(e=t.default_value)})),e||(e=window.appSdk.getAppId())),e},_=async(t,n,e,r)=>{let i=y(e,r),o=await x(t,i,n),u=await w(n,o),a=window.appSdk.getAppId(),c=u.filter((t=>{if(e)return!0;if(t.app_id==i)return!0;{let n=t.children,e=!1;return n&&n.length>0&&n.forEach((t=>{let n=t.children;if(n&&n.length>0){let t=n.filter((t=>t.app_id===a));t&&t.length>0&&(e=!0)}})),e}}));return c},w=async(t,n)=>{let e={param:{id:t}},r=await g.post("/dataservice/rest/orchestration/getMenuDatasByGroupID",e),i=r.data.resultDatas,o=r.data.menuTypes;if(n&&n.length>0){let e=await m(n,t),r=e.data.quickMenuMappingDatas||[],u={};for(const t of r){let n=t.menu_mapping_id;u[n]=t}let a=e.data.menuMappingDatas||[];for(const t of a){let n=t.id;u[n]=t}return S(i,o,u)}return S(i,o,[])},m=async(t,n)=>{let e={param:{role_ids:t,group_id:n}},r=await g.post("/dataservice/rest/orchestration/getQuckMenuMappingsByRoleIDs",e);return r},b=async(t,n,e)=>{let r={param:{app_id:t,appSecret:n,returnUrl:e}},i=await g.post("/dataservice/rest/orchestration/validateSSOPageLoaded",r),o=i.data.count;return o},x=async(t,n,e)=>{let r={param:{user_id:t,app_id:n,group_id:e}},i=await g.post("/dataservice/rest/orchestration/getRoleIDsByUserAndGroupID",r),o=i.data.portal_role_ids;return o},S=(t,n,e)=>{let r={},i={};for(const u of t){let t=u.id,n={id:t,index:u.menu_id,name:u.title,sort:u.sort,actionType:u.actionType,url:u.url,iconClass:u.image,children:[],app_id:u.app_id,menu_id:u.menu_id,beyond_type:u.menu_type?u.menu_type:"RJVIEW-OTHERS",beyond_type_sort:u.menu_type_sort?u.menu_type_sort:999};e?(e[t]||"4"==u.type)&&(r[t]=n):r[t]=n}for(const u of n){let t=u.id;i[t]=u}for(const u of t){let t=u.type;if("5"==t){let t=r[u.id];if(!t)continue;let n=u.parent_id,e=t.beyond_type,o=r[n],a=o.children,c=a.find((t=>t.id==e));if(c){let n=c.children;n.push(t),t.typeItem=c}else{let n=i[e],r=n?{id:e,index:e,name:n.title,children:[],sort:n.value}:{id:e,index:e,name:"其他",children:[],sort:999},o=r.children;o.push(t),a.push(r),t.typeItem=r}}}const o=[];for(const u of t){let t=u.type;if("4"==t){let t=r[u.id];if(!t)continue;let n=t.children,e=0;for(const r of n){let t=r.children,n=t.length;if(e+=n,n>0)break}if(0==e)continue;o.push(t);let i=t.children;i.sort(((t,n)=>Number.isNaN(t.sort)?1:Number.isNaN(n.sort)?-1:t.sort-n.sort));for(let r of i){let t=r.children;t.sort(((t,n)=>Number.isNaN(t.sort)?1:Number.isNaN(n.sort)?-1:t.sort-n.sort))}}}return o.sort(((t,n)=>Number.isNaN(t.sort)?1:Number.isNaN(n.sort)?-1:t.sort-n.sort)),o},A=async t=>{let n={param:{userData:t}},e=await g.post("/dataservice/rest/orchestration/getPortalPageID",n),r=e.data.portal_id;return r},B=t=>{let n={param:{userData:t}};return g.post("/dataservice/rest/orchestration/getUserAllMappngPortal",n)},k=async t=>{let n={param:{operateData:t}},e=await g.post("/dataservice/rest/orchestration/getPortalUserMappingInfos",n),r=e.data.portalMapping;return r},E=async t=>{let n={param:{id:t}},e=await g.post("/dataservice/rest/orchestration/getPortalPageConfig",n),r=e.data.portal_page_config||"[]";return r},O=t=>{let n={param:t};return g.post("/dataservice/rest/orchestration/setPortalPageConfig",n)},I=t=>{let n={param:{portalMappingData:t}};return g.post("/dataservice/rest/orchestration/updateUserSelectPortal",n)},j=async(t,n)=>{let e={param:{id:t,appid:n}},r=await g.post("/dataservice/rest/orchestration/getPortalPageMenuID",e),i=r.data.menu_id;return i},D=async(t,n)=>{let e={param:{appID:t,groupID:n}},r=await g.post("/dataservice/rest/orchestration/getPortalMappingAppInfoByID",e),i=r.data.appInfo;return i},R=async()=>{let t={param:{id:"1005"}},n=await g.post("/dataservice/rest/orchestration/getNoticeInfosByAppTypeID",t),e=n.data.resultDatas;return e},C=async(t,n)=>{let e=await g.get(`/appAuth/getAccessToken?appKey=${t}&appSecret=${n}`),r=e.data;return r},P=async(t,n)=>{let e=await g.get(`/systhirdapp/user/getUserByCode?code=${t}&access_token=${n}`),r=e.data;return r},T=async(t,n,e)=>{let r={param:{userID:t,im_type:n,group_id:e}},i=await g.post("/dataservice/rest/orchestration/getIMUserSigByID",r),o=i.data.userSig;return o},z=async(t,n,e,r)=>{let i={param:{data:{userID:t,im_type:n,group_id:e,userSig:r}}},o=await g.post("/dataservice/rest/orchestration/addIMMapping",i),u=o.data;return u};var U=e(1396),M=e.n(U);const N=()=>g.get("/system/authority/getAuthPic?module=loginPassword",{responseType:"arraybuffer"}),H=async t=>{let n=await g.get(`/system/authority/logout?isMobileLogout=${t}`),e=JSON.parse(n.request.response),r=e.code;return"10110020"==r?(window.sessionStorage.clear(),{code:r,message:e.message}):{code:r,message:e.message}},L=async t=>{let n=await $();const e=M().AES.decrypt(t,n).toString(M().enc.Utf8);return e},W=async(t,n,e)=>{let r=window.sessionStorage.getItem("iportal_login_user_key");r=await L(r),t.password=r;let i=await H(e),o=i.code,u=i.message;if("10110020"==o){let e=await F(t,n);return e}return{code:o,message:u}},F=async(t,n)=>{let e={param:{loginData:{account:t.account_view,group_id:t.groupid,imageCode:t.imageCode}}},r=await g.post("/dataservice/rest/orchestration/getLoginPortalAccountKey",e),i=await $(),o=JSON.parse(r.request.response),u=o.result.code;if(10001==u){let e=o.result.codeData.code,a=e,c=o.result.codeData.key;if(e=M().AES.decrypt(e,i).toString(M().enc.Utf8),c=M().AES.decrypt(c,i).toString(M().enc.Utf8),c==t.password){if(e=window.appSdk.Encrypt(e),t.password=e,r=await g.post(`/system/authority/loginAccount4Application?authPicCode=${t.imageCode}&dataappId=${n}&mobileOrWeb=web`,t),o=JSON.parse(r.request.response),u=o.code,10110004==u){let n=o.id;return window.sessionStorage.setItem("iportal_login_user_id",n),window.sessionStorage.setItem("iportal_group_id",t.groupid),window.sessionStorage.setItem("iportal_login_user_key",a),{code:u}}return{code:u,message:o.message}}return{code:u,message:"账户密码错误!"}}return{code:u,message:o.result.message}},$=async()=>{let t={param:{}},n=await g.post("/dataservice/rest/orchestration/getKey",t),e=n.data.key;return e},q=(t,n=200)=>g.post(`/asset/getAssetData?asset_id=${t}&count=${n}`,{filters:[]}),K=(t,n)=>{try{const e=new URL(t),r=e.searchParams.get(n);return r&&-1!==r.indexOf("#")?r.split("#")[0]:r}catch(e){return console.error("URL 格式错误:",e),""}},G=async t=>{let n={param:{id:t}},e=await g.post("/dataservice/rest/orchestration/getGroupIDByDptID",n),r=e.data.resultDptData,i=r.id;return i},X=(t,n)=>{if(n&&n.length>0)for(let e=0;e<n.length;e++)if(n[e].name==t)return n[e].default_value;return""},J=async(t,n,e)=>{let r={param:{appKey:t,appSecret:n,groupID:e}},i=await g.post("/dataservice/rest/orchestration/getThirdAppPathByKey",r),o=i.data.path;return o},V=(t,n)=>{let e=window.sessionStorage.getItem("isdata_app_variable_"+t);return e||(e=X(t,n),e&&window.sessionStorage.setItem("isdata_app_variable_"+t,e)),e},Z=t=>{let n={param:{operateData:t}};return g.post("/dataservice/rest/orchestration/addObjectUsedTimes",n)},Y=t=>{let n={param:{objectInfo:t}};return g.post("/dataservice/rest/orchestration/getObjectUseTimes",n)},Q=async t=>{let n={param:{componentID:t}},e=await g.post("/dataservice/rest/orchestration/getPageIDByComponentID",n),r=e.data.page_id;return r},tt=async t=>{let n={param:{account:t}},e=await g.post("/dataservice/rest/orchestration/getGourpMappingsByAccountName",n),r=e.data.resultGroups;return r},nt=async t=>{let n={param:{id:t}},e=await g.post("/dataservice/rest/orchestration/getGroupIDByDptID",n),r=e.data.resultDptData;return r},et=async t=>{let n={param:{ids:t}},e=await g.post("/dataservice/rest/orchestration/getOfficeInfosByIDs",n),r=e.data.officeInfos;return r},rt=async t=>{let n={param:{id:t}},e=await g.post("/dataservice/rest/orchestration/getOfficeInfosByID",n),r=e.data.officeData;return r},it=async t=>{let n={param:{id:t}},e=await g.post("/dataservice/rest/orchestration/getAPPInfosByID",n),r=e.data.appInfo;return r},ot=async t=>{let n={param:{groupID:t}},e=await g.post("/dataservice/rest/orchestration/getAllUserInfosByGroupID",n),r=e.data.resultDatas;return r},ut=async t=>{let n={param:{officeID:t}},e=await g.post("/dataservice/rest/orchestration/getChildrenOfficeInfosByID",n),r=e.data.resultDatas;return r},at=async(t,n)=>{let e={param:{userID:t,groupID:n}},r=await g.post("/dataservice/rest/orchestration/getPojectDptsByUserAndGroupID",e),i={dptDatas:r.data.officeDatas,userMappings:r.data.userMappings};return i};e(3579);const ct=t=>{let n=window.SDATA_WINDOW_TRUSTED_ORIGINS;n||(window.SDATA_WINDOW_TRUSTED_ORIGINS=[]),n.includes(t)||n.push(t)},st=t=>{let n=window.SDATA_WINDOW_TRUSTED_ORIGINS;n||(window.SDATA_WINDOW_TRUSTED_ORIGINS=[]);let e=n.indexOf(t);e>-1&&n.splice(e,1)},ft=(t,n)=>{let e=window.sdataEventActions;e||(window.sdataEventActions={}),window.sdataEventActions[t]=n},lt=t=>{let n=window.sdataEventActions;n||(window.sdataEventActions={}),delete window.sdataEventActions[t]},ht=()=>{let t=window.SDATA_WINDOW_TRUSTED_ORIGINS;t||(window.SDATA_WINDOW_TRUSTED_ORIGINS=[]);let n=window.sdataEventActions;n||(window.sdataEventActions={}),window.addEventListener("message",(async t=>{const n=window.SDATA_WINDOW_TRUSTED_ORIGINS.some((n=>t.origin===n||new RegExp(n).test(t.origin)));if(!n)return void console.log("拒绝非可信源消息:",t.origin);let e=t.data?.eventKey;if(!e)return;let r=t.origin;if(console.log(`收到${r}页面消息:`,t.data),"sdata_alllife_event_response"===e){let n=t.data.eventOperateKey,e=window.sdataEventActions[n];delete window.sdataEventActions[n],e&&await e(t.data.data,t)}else{let n=window.sdataEventActions[e],i={eventKey:"sdata_alllife_event_response",eventOperateKey:t.data.eventOperateKey,data:{}};if(n){let e=await n(t.data.data,t);i.data=e}t.source.postMessage(i,r)}}))},pt=async(t,n,e,r,i)=>{let o=(new Date).getTime(),u=Math.floor(1e4*Math.random())+1,a=`${e}_${o}_${u}`;ft(a,i);let c={eventOperateKey:a,eventKey:e,data:r};t.postMessage(c,n)}}(),r}()}));
|
|
27
27
|
//# sourceMappingURL=index.umd.min.js.map
|