svgedit/dist/editor/extensions/ext-xdomain-messaging/ext-xdomain-messaging.js

3 lines
12 KiB
JavaScript
Raw Normal View History

2021-01-03 21:59:00 +00:00
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t){var r={exports:{}};return t(r,r.exports),r.exports}var check=function(t){return t&&t.Math==Math&&t},r=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof t&&t)||function(){return this}()||Function("return this")(),fails=function(t){try{return!!t()}catch(t){return!0}},e=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i={f:o&&!n.call({1:2},1)?function propertyIsEnumerable(t){var r=o(this,t);return!!r&&r.enumerable}:n},createPropertyDescriptor=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},c={}.toString,classofRaw=function(t){return c.call(t).slice(8,-1)},u="".split,a=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==classofRaw(t)?u.call(t,""):Object(t)}:Object,requireObjectCoercible=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},toIndexedObject=function(t){return a(requireObjectCoercible(t))},isObject=function(t){return"object"==typeof t?null!==t:"function"==typeof t},toPrimitive=function(t,r){if(!isObject(t))return t;var e,n;if(r&&"function"==typeof(e=t.toString)&&!isObject(n=e.call(t)))return n;if("function"==typeof(e=t.valueOf)&&!isObject(n=e.call(t)))return n;if(!r&&"function"==typeof(e=t.toString)&&!isObject(n=e.call(t)))return n;throw TypeError("Can't convert object to primitive value")},f={}.hasOwnProperty,has=function(t,r){return f.call(t,r)},l=r.document,s=isObject(l)&&isObject(l.createElement),documentCreateElement=function(t){return s?l.createElement(t):{}},p=!e&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),y=Object.getOwnPropertyDescriptor,d={f:e?y:function getOwnPropertyDescriptor(t,r){if(t=toIndexedObject(t),r=toPrimitive(r,!0),p)try{return y(t,r)}catch(t){}if(has(t,r))return createPropertyDescriptor(!i.f.call(t,r),t[r])}},anObject=function(t){if(!isObject(t))throw TypeError(String(t)+" is not an object");return t},g=Object.defineProperty,m={f:e?g:function defineProperty(t,r,e){if(anObject(t),r=toPrimitive(r,!0),anObject(e),p)try{return g(t,r,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},h=e?function(t,r,e){return m.f(t,r,createPropertyDescriptor(1,e))}:function(t,r,e){return t[r]=e,t},setGlobal=function(t,e){try{h(r,t,e)}catch(n){r[t]=e}return e},v=r["__core-js_shared__"]||setGlobal("__core-js_shared__",{}),b=Function.toString;"function"!=typeof v.inspectSource&&(v.inspectSource=function(t){return b.call(t)});var S,w,O,j=v.inspectSource,A=r.WeakMap,_="function"==typeof A&&/native code/.test(j(A)),E=createCommonjsModule((function(t){(t.exports=function(t,r){return v[t]||(v[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.8.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),T=0,x=Math.random(),uid=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++T+x).toString(36)},C=E("keys"),sharedKey=function(t){return C[t]||(C[t]=uid(t))},P={},M=r.WeakMap;if(_){var I=v.state||(v.state=new M),k=I.get,L=I.has,F=I.set;S=function(t,r){return r.facade=t,F.call(I,t,r),r},w=function(t){return k.call(I,t)||{}},O=function(t){return L.call(I,t)}}else{var N=sharedKey("state");P[N]=!0,S=function(t,r){return r.facade=t,h(t,N,r),r},w=function(t){return has(t,N)?t[N]:{}},O=function(t){return has(t,N)}}var R,W,D={set:S,get:w,has:O,enforce:function(t){return O(t)?w(t):S(t,{})},getterFor:function(t){return function(r){var e;if(!isObject(r)||(e=w(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}},z=createCommonjsModule((function(t){var e=D.get,n=D.enforce,o=String(String).split("String");(t.exports=function(t,e,i,c){var u,a=!!c&&!!c.unsafe,f=!!c&&!!c.enum
2020-09-10 06:24:38 +00:00
//# sourceMappingURL=ext-xdomain-messaging.js.map