minidev 2.0.6 → 2.0.8
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/assets/builder-debug-utils/offline/assets_map +1 -1
- package/assets/builder-debug-utils/offline/boatman_mini +3 -1
- package/assets/builder-debug-utils/package.json +11 -10
- package/assets/builder-debug-utils/readonly/assets_map +1 -1
- package/assets/builder-debug-utils/readonly/boatman_mini +3 -1
- package/assets/web-sim/devtool/main.js +1 -1
- package/assets/web-sim/main.js +1 -1
- package/assets/web-sim/simulator/main.js +1 -1
- package/lib/index.js +1 -1
- package/lib/rw_host.js +1 -1
- package/lib/worker.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"bugmeRRemote":"!function(){\"use strict\";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if(\"function\"!=typeof n&&null!==n)throw new TypeError(\"Class extends value \"+String(n)+\" is not a constructor or null\");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n,r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function i(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(n)throw new TypeError(\"Generator is already executing.\");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function a(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function u(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}\"function\"==typeof SuppressedError&&SuppressedError,function(e){e.pageResume=\"pageResume\",e.pagePause=\"pagePause\",e.resume=\"resume\",e.hashchange=\"hashchange\"}(n||(n={}));var c={0:{openchannel:\"openchannel.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},1:{openchannel:\"miniprogram.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},2:{openchannel:\"openchannel-pre.alipay.com\",hpmweb:\"hpmweb-pre.alipay.com\"}};function l(e){return!0===e||\"yes\"===e||\"YES\"===e}var d,h=/iPhone|iPad|iOS/i;function p(){return\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\"}var f=function(){function e(e,t,n){var r=this;this.connection=e,this.uuid=t,this.agentId=n,e.addOnCloseHandler((function(){return i(r,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,x()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))})),this.startDebugSession=this.startDebugSession.bind(this)}return e.prototype.setup=function(){window.location.hash?this.startDebugSession():window.addEventListener(n.hashchange,this.startDebugSession)},e.prototype.checkHostBeforeAgentConnect=function(){var e=this;if(this.connection.isActivated){if(\"string\"==typeof __BUGME_EXTERNAL_URL__&&__BUGME_EXTERNAL_URL__)return this.connection.open(),void this.emitDocumentUpdated();var t=new XMLHttpRequest;t.onloadend=function(){return i(e,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:try{if(w().log(\"bugme check host response\",t.responseText),JSON.parse(t.responseText||\"{}\").status)return this.connection.open(),this.emitDocumentUpdated(),[2]}catch(e){console.error(\"bugme check host error\",e)}return[4,x()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))},t.timeout=5e3;var n,r,o=O();o.startsWith(\"wss\")?(n=\"https\",r=o.split(\"wss://\")[1]):o.startsWith(\"ws\")&&(n=\"http\",r=o.split(\"ws://\")[1]),t.open(\"GET\",\"\".concat(n,\"://\").concat(r,\"/bugme/channel/checkHost?id=\").concat(this.uuid)),t.send()}},e.prototype.emitDocumentUpdated=function(){this.connection.send(JSON.stringify({method:\"DOM.documentUpdated\",params:{bugmeAgentId:this.agentId}}))},e.prototype.resetAxmlVisitedState=function(){},e.prototype.startDebugSession=function(){var e,t=this;window.removeEventListener(n.hashchange,this.startDebugSession),document.addEventListener(n.pageResume,(function(){t.connection.activate(),e=setTimeout((function(){t.connection.isSocketOpened&&t.emitDocumentUpdated()}),500)})),document.addEventListener(n.pagePause,(function(){clearTimeout(e),t.connection.inActivate(),t.resetAxmlVisitedState()})),document.addEventListener(n.resume,(function(){t.connection.activate(),t.connection.isSocketOpened||t.checkHostBeforeAgentConnect()}))},e.prototype.tryResume=function(){var e=this;if(this.connection.isActivated){var t=new XMLHttpRequest;t.timeout=5e3;var n,r,o=O();o.startsWith(\"wss\")?(n=\"https\",r=o.split(\"wss://\")[1]):o.startsWith(\"ws\")&&(n=\"http\",r=o.split(\"ws://\")[1]),t.onloadend=function(){return i(e,void 0,void 0,(function(){return s(this,(function(e){try{if(w().log(\"bugme check host response\",t.responseText),JSON.parse(t.responseText||\"{}\").success)return w().log(\"bugme resume boatman success\"),[2]}catch(e){console.error(\"bugme resume boatman error\",e)}return[2]}))}))},t.open(\"GET\",\"\".concat(n,\"://\").concat(r,\"/bugme/channel/resume\")),t.setRequestHeader(\"channel-id\",\"boat_\".concat(this.uuid)),t.send()}},e}();function g(e){switch(e){case\"zhCN\":case\"zh-SG\":case\"zh-HK\":case\"zh-TW\":case\"zh-Hans\":case\"zh-CN\":return\"zhCN\";default:return\"enUS\"}}var v,m=function(){function e(e,t){void 0===t&&(t=\"\"),this.locale=e,this.prefix=t,this._messageBundle={}}return e.getLocaleFromNavigator=function(){var e=p();if(e.includes(\"Language\")){var t=e.match(/Language\\/([\\w-]+)/);if(t)return g(t[1])}return\"undefined\"!=typeof navigator&&navigator.language?g(navigator.language):g(\"enUS\")},e.prototype.setMessageBundle=function(e){this._messageBundle=e},Object.defineProperty(e.prototype,\"i18nMessages\",{get:function(){return this._messageBundle[g(this.locale)]},enumerable:!1,configurable:!0}),e.prototype.format=function(e,t){var n=this.i18nMessages[e];return\"string\"==typeof n?n:\"function\"==typeof n?n(t):\"string\"==typeof t?t:e},e.prototype.formatWithPrefix=function(e){return\"[\".concat(this.prefix,\"] \").concat(this.format(e))},e}(),y={\"调试结束\":\"调试结束\",\"callExitApp_退出\":\"退出\",\"callExitApp_取消\":\"取消\"},b={\"调试结束\":\"Debugging Ended\",\"callExitApp_退出\":\"Exit\",\"callExitApp_取消\":\"Cancel\"};!function(e){e.DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",e.DebugMaskButtonClick=\"tinyRemoteDebugMaskButtonClick\"}(v||(v={}));var _=function(){function e(){}return e.prototype.log=function(){},e.prototype.debug=function(){},e.prototype.error=function(){},e}();function w(){return window.__logger__||(window.__logger__=new _),window.__logger__}var I=w();function S(e){I.log(\"setupExitApp\"),document.addEventListener(v.DebugPanelClick,(function(t){I.log(\"DebugPanelClick\"),k(),(null==e?void 0:e.onDebugPanelClick)&&e.onDebugPanelClick()})),document.addEventListener(v.DebugMaskButtonClick,(function(){I.log(\"DebugMaskButtonClick\"),(null==e?void 0:e.onDebugMaskButtonClick)&&e.onDebugMaskButtonClick()}))}var C=!1;function k(){if(!C){var e=function(){var e=new m(m.getLocaleFromNavigator());return e.setMessageBundle({zhCN:y,enUS:b}),e}();C=!0,window.AlipayJSBridge.call(\"showRemoteDebugMask\",{hide:!0},(function(){I.log(\"showRemoteDebugMask hide\")})),window.AlipayJSBridge.call(\"alert\",{title:e.format(\"调试结束\"),button:e.format(\"callExitApp_退出\")},(function(){setTimeout((function(){window.AlipayJSBridge.call(\"exitApp\"),C=!1}),0)}))}}function E(){return i(this,void 0,void 0,(function(){return s(this,(function(e){return window.AlipayJSBridge?[2]:[2,new Promise((function(e){document.addEventListener(\"AlipayJSBridgeReady\",e)}))]}))}))}function x(e){return void 0===e&&(e=1e3),new Promise((function(t){setTimeout((function(){t()}),e)}))}function T(){var e,t;return\"string\"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__?__BUGME_EXTERNAL_CHANNEL__:null===(t=null===(e=window.AlipayJSBridge)||void 0===e?void 0:e.startupParams)||void 0===t?void 0:t.channelId}function N(e,t){return\"string\"==typeof __BUGME_EXTERNAL_URL__&&/^wss?:\\/\\//.test(__BUGME_EXTERNAL_URL__)?__BUGME_EXTERNAL_URL__:e&&t?\"\".concat(O(),\"/bugme/agent/\").concat(e,\"?agentId=\").concat(t):\"\"}function O(){var e,t,n,r,o=null===(t=null===(e=window.AlipayJSBridge)||void 0===e?void 0:e.startupParams)||void 0===t?void 0:t.remoteCh,i=null===(r=null===(n=window.AlipayJSBridge)||void 0===n?void 0:n.startupParams)||void 0===r?void 0:r.channel;return null!=i?i:\"wss://\"+(c[o]||c[0]).hpmweb}function A(){return/LyraVM/i.test(p())||\"string\"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__}function M(e){return l(e.appxRouteFramework)}var P=\"object\"==typeof self&&self||\"object\"==typeof window&&window||\"object\"==typeof global&&global||Function(\"return this\")(),L=P.importScripts,D=P.AlipayJSBridge,R=D&&D.call;\"function\"==typeof __eval?__eval:\"function\"==typeof eval&&eval;var B,j=function(){function e(){this._listeners=new Map}return e.prototype.on=function(e,t){var n=this;return this._listeners.has(e)||this._listeners.set(e,[]),this._listeners.get(e).push(t),function(){return n.off(e,t)}},e.prototype.off=function(e,t){if(this._listeners.has(e)){var n=this._listeners.get(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}},e.prototype.once=function(e,t){var n=this,r=this.on(e,(function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];r(),t.apply(n,e)}));return r},e.prototype.emit=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this._listeners.has(e)&&u([],this._listeners.get(e),!0).forEach((function(e){return e.apply(t,n)}))},e.prototype.dispose=function(){this._listeners.clear()},e}(),F=function(){function e(e,t){this.url=\"\",this.taskIdPrefix=\"\",this.header={},this.opened=!1,this.maxBodyLength=10485760,this.eventEmitter=new j,e&&(this.url=e),(null==t?void 0:t.header)&&(this.header=t.header),(null==t?void 0:t.taskIdPrefix)&&(this.taskIdPrefix=t.taskIdPrefix),this.onSocketError=this.onSocketError.bind(this),this.onSocketClose=this.onSocketClose.bind(this),this.onSocketMessage=this.onSocketMessage.bind(this),this.onSocketOpen=this.onSocketOpen.bind(this)}return Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){return this.opened},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(e){this.url=e},e.prototype.onSocketOpen=function(){this.eventEmitter.emit(\"open\")},e.prototype.onSocketClose=function(){this.eventEmitter.emit(\"close\")},e.prototype.onSocketError=function(e){this.eventEmitter.emit(\"error\",e)},e.prototype.onSocketMessage=function(e){this.eventEmitter.emit(\"message\",e)},e.prototype.on=function(e,t){this.eventEmitter.on(e,t)},e}();\"undefined\"!=typeof WebSocket&&WebSocket.OPEN&&(B=WebSocket);var U=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t}return t(n,e),n.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"WebSocket url required\");this.socket=new B(this.url),this.socket.onopen=this.onSocketOpen,this.socket.onmessage=function(t){\"string\"==typeof t.data?e.onSocketMessage(t.data):console.warn(\"[DEBUG] invalid message\",t.data)},this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError},n.prototype.close=function(){this.opened&&this.socket.close()},n.prototype.send=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>2e7||(this.opened?this.socket.send(t):this.messageBeforeSocketOpen.push(t))},n.prototype.onSocketOpen=function(){var t=this;e.prototype.onSocketOpen.call(this),this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(e){t.send(e)})),this.messageBeforeSocketOpen=[])},n.prototype.onSocketClose=function(){this.opened=!1,console.log(\"[DEBUG] connection closed\"),e.prototype.onSocketClose.call(this)},n.prototype.onSocketError=function(t){e.prototype.onSocketError.call(this,t),console.error(\"[DEBUG] connection onerror\",t)},n}(F);function z(e,t,n,r){if(void 0===r&&(r=!1),e||t||n)return H.bind(null,e,t,n,r)}function H(e,t,n,r,o){var i=!1;r?i=!!(o=function(e){\"string\"==typeof e.error&&(e.error=parseInt(e.error,10));0===e.error&&(delete e.error,delete e.errorMessage);return e}(o)).error:\"object\"==typeof o&&(i=\"error\"in o||\"errorMessage\"in o),i&&\"function\"==typeof t&&t(o),i||\"function\"!=typeof e||e(o),\"function\"==typeof n&&n(o)}var q,G=3e3;function W(e,t){var n,r=function(e,t,n){var r=\"_sw_jsonp_\".concat(++G);P[r]=function(e){P[r]=null,n(e)};var o={action:e,callback:r,data:t};return JSON.stringify(o)}(e,t,(function(e){n=e})),o=function(e){var t=encodeURIComponent(e);return\"https://alipay.kylinbridge/?data=\".concat(t)}(r);try{L(o)}catch(e){}return\"string\"==typeof n?function(e){try{return JSON.parse(e)}catch(e){}}(n):n}\"object\"==typeof D&&(q={call:function(e,t,n){R(e,t,n)},callSync:function(e,t){return D.callSync?D.callSync(e,t):W(e,t)}});var Z,Y,V=!1,X=[];new Promise((function(e){Y=e}));\"object\"==typeof my?(Z=my,Y()):\"object\"==typeof AFAppX&&\"object\"==typeof AFAppX.bridge?(Z=AFAppX.bridge,Y()):function(e){if(\"undefined\"!=typeof AFAppX)e();else if(X.push(e),!V){V=!0;var t=L||P.importScripts;t?P.importScripts=function(e){t(e),/af-appx\\.worker\\.min\\.js$/.test(e)&&(X.forEach((function(e){return e()})),X=[],P.importScripts=t)}:setTimeout((function(){X.forEach((function(e){return e()})),X=[]}),1200)}}((function(){Z=AFAppX.bridge,Y()}));var J,Q,$,K,ee,te,ne,re,oe,ie;function se(e,t){if(q){var n=t.success,r=t.fail,i=t.complete,s=o(t,[\"success\",\"fail\",\"complete\"]),a=z(n,r,i,!0);q.call(e,s,(function(e){a&&a(e)}))}else Z?Z.call(e,t):console.warn(\"[ERROR] error when call \".concat(e,\": AlipayJSBridge not found\"))}function ae(){return\"undefined\"==typeof AlipayJSBridge&&\"undefined\"!=typeof my&&\"undefined\"==typeof getApp}function ue(){return\"undefined\"==typeof AlipayJSBridge&&\"undefined\"!=typeof my&&\"undefined\"!=typeof getApp}!function(e){e.Connecting=\"connecting\",e.Connected=\"connected\",e.Disconnected=\"disconnected\"}(J||(J={})),function(e){e.enable=\"Debugger.enable\",e.disable=\"Debugger.disable\",e.evaluateOnCallFrame=\"Debugger.evaluateOnCallFrame\",e.getPossibleBreakpoints=\"Debugger.getPossibleBreakpoints\",e.pause=\"Debugger.pause\",e.removeBreakpoint=\"Debugger.removeBreakpoint\",e.resume=\"Debugger.resume\",e.setBreakpointByUrl=\"Debugger.setBreakpointByUrl\",e.setBreakpointsActive=\"Debugger.setBreakpointsActive\",e.stepInto=\"Debugger.stepInto\",e.stepOver=\"Debugger.stepOver\",e.stepOut=\"Debugger.stepOut\",e.getScriptSource=\"Debugger.getScriptSource\",e.setPauseOnExceptions=\"Debugger.setPauseOnExceptions\",e.setSkipAllPauses=\"Debugger.setSkipAllPauses\"}(Q||(Q={})),function(e){e.paused=\"Debugger.paused\",e.resumed=\"Debugger.resumed\",e.scriptParsed=\"Debugger.scriptParsed\"}($||($={})),function(e){e.enable=\"Runtime.enable\",e.disable=\"Runtime.disable\",e.evaluate=\"Runtime.evaluate\",e.compileScript=\"Runtime.compileScript\",e.getProperties=\"Runtime.getProperties\",e.callFunctionOn=\"Runtime.callFunctionOn\",e.releaseObjectGroup=\"Runtime.releaseObjectGroup\",e.globalLexicalScopeNames=\"Runtime.globalLexicalScopeNames\",e.runIfWaitingForDebugger=\"Runtime.runIfWaitingForDebugger\"}(K||(K={})),function(e){e.executionContextCreated=\"Runtime.executionContextCreated\",e.consoleAPICalled=\"Runtime.consoleAPICalled\",e.exceptionThrown=\"Runtime.exceptionThrown\"}(ee||(ee={})),function(e){e.enable=\"Page.enable\",e.getResourceTree=\"Page.getResourceTree\"}(te||(te={})),function(e){e.setAutoAttach=\"Target.setAutoAttach\"}(ne||(ne={})),function(e){e.targetCreated=\"Target.targetCreated\",e.targetDestroyed=\"Target.targetDestroyed\",e.targetInfoChanged=\"Target.targetInfoChanged\",e.attachedToTarget=\"Target.attachedToTarget\"}(re||(re={})),function(e){e[e.NormalError=-32e3]=\"NormalError\"}(oe||(oe={})),function(e){e.Other=\"other\",e.Exception=\"exception\"}(ie||(ie={})),Object.defineProperty.bind(Object),Object.defineProperties.bind(Object);var ce=Object.getOwnPropertyDescriptor.bind(Object);Object.freeze.bind(Object),Object.keys.bind(Object);var le=Object.prototype.hasOwnProperty;function de(e,t){return le.call(e,t)}Object.assign.bind(Object),Object.getOwnPropertyNames.bind(Object),Object.create.bind(Object),Object.setPrototypeOf&&Object.setPrototypeOf.bind(Object),Object.getPrototypeOf&&Object.getPrototypeOf.bind(Object);var he=\"object\"==typeof console,pe=he&&console.log?console.log.bind(console):function(){};he&&console.warn&&console.warn.bind(console);var fe=he&&console.error?console.error.bind(console):function(){};ce(de,\"name\").configurable;var ge=function(){function e(e,t,n){this.type=String(e),this.engineType=n,this.data=t,this._preventDefault=!1}return e.prototype.preventDefault=function(){this._preventDefault=!0},e.prototype.isDefaultPrevented=function(){return!!this._preventDefault},e}();function ve(e,t){var n,r,i=t.param,s=t.viewId+\"\";i&&\"object\"==typeof i&&2===function(){if(d)return d;if(\"undefined\"!=typeof navigator){var e=p();d=e.indexOf(\"Android\")>-1?2:e.match(h)?1:0}else d=\"undefined\"!=typeof WXEnvironment?\"iOS\"===WXEnvironment.platform?1:2:1;return d}()?(n=i.data,i.type,r=o(i,[\"data\",\"type\"])):n=i,n?n.instanceId=s:n={instanceId:s};var a=new ge(e,n,1);if(r)try{Object.assign(a,r)}catch(e){}return a}var me=function(){function e(e,t){this.name=e,this.target=t,this.callbackHandlers=new Map,this.callbackBeforeDispatchInterceptor=new Map,this._callbackGlobalMap=new Map,t&&(t.addEventListener&&(this.baseAddEventListener=t.addEventListener.bind(t)),t.removeEventListener&&(this.baseRemoveEventListener=t.removeEventListener.bind(t)))}return e.prototype.tryInitEventListenerOnWindow=function(e){var t,n,r=this;if(!(this.callbackHandlers.has(e)&&(null===(t=this.callbackHandlers.get(e))||void 0===t?void 0:t.length)>0&&this._callbackGlobalMap.has(e))){this.callbackHandlers.set(e,[]);var o=function(e){r.dispatchEvent(e)};this._callbackGlobalMap.set(e,o),null===(n=this.baseAddEventListener)||void 0===n||n.call(this,e,o)}},e.prototype.tryRemoveEventListenerInTarget=function(e){var t,n;if(!this.callbackHandlers.has(e)||0===(null===(t=this.callbackHandlers.get(e))||void 0===t?void 0:t.length)){var r=this._callbackGlobalMap.get(e);r&&(null===(n=this.baseRemoveEventListener)||void 0===n||n.call(this,e,r),this._callbackGlobalMap.delete(e))}},e.prototype.addEventListener=function(e,t){this.callbackHandlers.has(e)||this.tryInitEventListenerOnWindow(e);var n=this.callbackHandlers.get(e);null==n||n.push({fn:t})},e.prototype.removeEventListener=function(e,t){var n=this.callbackHandlers.get(e);n.forEach((function(e,r){e.fn===t&&n.splice(r,1)})),this.tryRemoveEventListenerInTarget(e)},e.prototype.dispatchEvent=function(e){var t,n=null!==(t=e.type)&&void 0!==t?t:e.name;if(this.callbackHandlers&&this.callbackHandlers.has(n)){var r=this.callbackHandlers.get(n),o=this.callbackBeforeDispatchInterceptor.get(n);if(o&&o.length>0)for(var i=0;i<o.length;i++){if(!(0,o[i])(e))return}for(var s=0,a=r;s<a.length;s++){if(a[s].fn.call(null,e),e.defaultPrevented)break}}},e.prototype.addInterceptor=function(e,t){this.callbackBeforeDispatchInterceptor.has(e)||this.callbackBeforeDispatchInterceptor.set(e,[]);var n=this.callbackBeforeDispatchInterceptor.get(e);null==n||n.push(t)},e.prototype.patch=function(){var e=this;this.disposePatch&&this.disposePatch();var t=this.target;t&&(t.addEventListener&&(t.addEventListener=this.addEventListener.bind(this)),t.removeEventListener&&(t.removeEventListener=this.removeEventListener.bind(this))),(this.baseAddEventListener||this.baseRemoveEventListener)&&(this.disposePatch=function(){e.disposePatch=void 0,t&&(e.baseAddEventListener&&(t.addEventListener=e.baseAddEventListener),e.baseRemoveEventListener&&(t.removeEventListener=e.baseRemoveEventListener))})},e}();var ye=new(function(){function e(){var e=this;this.eventMap={},this.queue=[],this.enableQueue=!1,(ae()||ue())&&fe(\"EventManger is not work in\",\"isInBizContext\"),this.globalEventListener=new me(\"workerGlobal\",P),this.documentEventListeners=new me(\"document\",P&&P.document),this.globalEventListener.addEventListener(\"message\",(function(t){e.enMessageQueue(t)}));this.pushEventListener.addEventListener(\"push\",(function(t){var n=t.data;if(n&&(n.func||n.beforeunload)){var r=n.func||\"beforeunload\",o=ve(r,n),i=e.eventMap[r];i&&i.forEach((function(e){e(o)}))}e.enPushQueue(t)}))}return Object.defineProperty(e.prototype,\"pushEventListener\",{get:function(){return P&&P.document?this.documentEventListeners:this.globalEventListener},enumerable:!1,configurable:!0}),e.prototype.patch=function(){this.globalEventListener.patch(),this.documentEventListeners.patch()},e.prototype.enPushQueue=function(e){this.enableQueue&&(pe(\"queued push event\",e),this.queue.push({type:\"push\",e:e}))},e.prototype.enMessageQueue=function(e){this.enableQueue&&(pe(\"queued message event\",e),this.queue.push({type:\"message\",e:e}))},e.prototype.startQueueEvent=function(){pe(\"startQueueEvent\"),this.enableQueue=!0},e.prototype.replayQueueEvent=function(){for(pe(\"replayQueueEvent\",this.queue.length),this.enableQueue=!1;this.queue.length;){var e=this.queue.shift();\"push\"===e.type?this.pushEventListener.dispatchEvent(e.e):this.globalEventListener.dispatchEvent(e.e)}},e.prototype.on=function(e,t){var n=this;if(!ae()&&!ue())return this.eventMap[e]||(this.eventMap[e]=[]),this.eventMap[e].push(t),function(){n.off(e,t)};Z.on(e,t)},e.prototype.off=function(e,t){ae()||ue()?Z.off(e,t):this.eventMap[e]&&(this.eventMap[e]=this.eventMap[e].filter((function(e){return e!==t})))},e.prototype.dispose=function(){var e;null===(e=this.eventDispose)||void 0===e||e.dispose()},e}()),be=function(){function e(t){this.map={},this.id=\"\".concat(t,\"_\").concat(Math.random().toString(36).substring(2,8),\"_\").concat(String(e.taskId++))}return e.prototype._listen=function(e,t){var n=this;ye.on(\"onSocketTask\"+e,(function(e){e.data&&e.data.socketTaskID===n.id&&t(e)}))},e.prototype.getParam=function(e){return r({socketTaskID:this.id},e)},e.prototype._doAction=function(e,t){se(e,this.getParam(t))},e.prototype.send=function(e){this._doAction(\"sendSocketMessage\",e)},e.prototype.close=function(e){this._doAction(\"closeSocket\",e)},e.prototype.onOpen=function(e){this._listen(\"Open\",e)},e.prototype.onMessage=function(e){this._listen(\"Message\",(function(t){e(t)}))},e.prototype.onError=function(e){this._listen(\"Error\",(function(t){e(t)}))},e.prototype.onClose=function(e){this._listen(\"Close\",e)},e.taskId=1,e}();var _e=function(e){return function(e){var t;if(ae()||ue())return Z.connectSocket(e);var n=null!==(t=e.__taskIdPrefix)&&void 0!==t?t:\"remote_debug\";delete e.__taskIdPrefix;var r=new be(n);return se(\"connectSocket\",r.getParam(e)),r}(e)};if(function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t.useFromRemoteDebugFlag=!0,t._openInvoked=!1,t}t(n,e),n.prototype.open=function(){var e=this;this._openInvoked||(this._openInvoked=!0,this.socketTask=_e({__taskIdPrefix:this.taskIdPrefix,fromRemoteDebug:this.useFromRemoteDebugFlag,url:this.url,header:this.header,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(){e.opened=!1,e.onSocketClose()})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)})))},n.prototype.send=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>this.maxBodyLength||(this.opened?this.socketTask.send({fromRemoteDebug:this.useFromRemoteDebugFlag,data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t))},n.prototype.close=function(){this.opened&&this.socketTask.close({fromRemoteDebug:this.useFromRemoteDebugFlag})},n.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.send(t)})),this.messageBeforeSocketOpen=[]),this.onSocketOpen())}}(F),\"undefined\"!=typeof WebSocket&&WebSocket.OPEN)try{delete P.WebSocket}catch(e){}var we,Ie=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.startDebugSession=function(){var t=this;e.prototype.startDebugSession.call(this);var n=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!n)throw new Error(\"bugme no react hook\");n.wasCommited?this.checkHostBeforeAgentConnect():n.on(\"first-commit\",(function(){t.checkHostBeforeAgentConnect()}))},n}(f),Se=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.onCloseHandlerSet=new Set,t.isActive=!0,t.messageBeforeHandler=[],t}return t(n,e),Object.defineProperty(n.prototype,\"isActivated\",{get:function(){return this.isActive},enumerable:!1,configurable:!0}),n.prototype.activate=function(){this.isActive=!0},n.prototype.inActivate=function(){this.isActive=!1},n.prototype.sendMessage=function(e,t){this.send(JSON.stringify({method:e,params:t}))},n.prototype.send=function(t,n){(this.isActive||n)&&e.prototype.send.call(this,t)},n.prototype.onMessage=function(e){if(this.devtoolHandler)throw new Error(\"conflict handler\");this.devtoolHandler=e,this.messageBeforeHandler.forEach(this.handleMessage),this.messageBeforeHandler=[]},n.prototype.addOnCloseHandler=function(e){this.onCloseHandlerSet.add(e)},n.prototype.onSocketMessage=function(e){\"HOST:LEAVE\"!==e||A()?this.devtoolHandler?this.handleMessage(e):this.messageBeforeHandler.push(e):k()},n.prototype.onSocketClose=function(){e.prototype.onSocketClose.call(this),this.onCloseHandlerSet.forEach((function(e){try{e()}catch(e){console.warn(e)}}))},n.prototype.handleMessage=function(e){var t,n=this;try{t=JSON.parse(e)}catch(t){return void console.warn(\"invalid json message: \",e)}t.sessionId||(t.method?this.devtoolHandler&&this.devtoolHandler(t.method,t.params,(function(e,r){e?n.send(JSON.stringify({id:t.id,error:{code:e,message:\"\".concat(e)}}),!0):n.send(JSON.stringify({id:t.id,result:r}),!0)})):console.warn(\"invalid json message: \",e))},n}(U);!function(e){e[e.Element=1]=\"Element\",e[e.Text=2]=\"Text\",e[e.Component=3]=\"Component\"}(we||(we={}));var Ce=function(e,t){return Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ce(e,t)};function ke(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}Ce(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ee=function(){return Ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ee.apply(this,arguments)};function xe(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError(\"Generator is already executing.\");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function Te(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function Ne(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var Oe=Function.prototype.apply.call.bind(Function.prototype.apply);function Ae(e,t,n){return Oe(e,t,n)}function Me(e,t,n,r,o){var i,s,a=null,u=0;o||(o={});var c=function(){u=!1===o.leading?0:Date.now(),a=null,s=Ae(e,null,i),i=null};return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h=Date.now();u||!1!==o.leading||(u=h);var p=t-(h-u);return i=l,p<=0||p>t?(r(a),a=null,u=h,s=Ae(e,null,i),i=null):a||!1===o.trailing||(a=n(c,p)),s}}var Pe,Le,De,Re=\"__weak_set_key__yek_tes_kaew__\",Be=1;function je(){var e=Object.prototype.hasOwnProperty,t=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,value:n,writable:!0}):e[t]=n};function n(e){return Object(e)===e}function r(){if(void 0===this)throw new TypeError(\"Constructor WeakMap requires 'new'\");if(t(this,\"_id\",\"_WeakMap\"+\"_\"+i()+\".\"+i()),arguments.length>0)throw new TypeError(\"WeakMap iterable is not supported\")}function o(t,r){if(!n(t)||!e.call(t,\"_id\"))throw new TypeError(r+\" method called on incompatible receiver \"+typeof t)}function i(){return Math.random().toString().substring(2)}return t(r.prototype,\"delete\",(function(e){if(o(this,\"delete\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),t(r.prototype,\"get\",(function(e){if(o(this,\"get\"),n(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),t(r.prototype,\"has\",(function(e){if(o(this,\"has\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),t(r.prototype,\"set\",(function(e,r){if(o(this,\"set\"),!n(e))throw new TypeError(\"Invalid value used as weak map key\");var i=e[this._id];return i&&i[0]===e?(i[1]=r,this):(t(e,this._id,[e,r]),this)})),t(r,\"_polyfill\",!0),r}function Fe(){var e=\"undefined\"!=typeof Map;Pe=e?Map:function(){var e=function(){function e(){this.keyList=[],this.valueList=[]}return e.prototype.set=function(e,t){var n=this.keyList,r=n.indexOf(e);if(-1===r){var o=n.push(e)-1;this.valueList[o]=t}else this.valueList[r]=t;return this},e.prototype.get=function(e){var t=this.keyList.indexOf(e);return-1===t?void 0:this.valueList[t]},e.prototype.forEach=function(e){for(var t=this.keyList.slice(),n=this.valueList.slice(),r=t.length,o=0;o<r;o++){var i=t[o];e(n[o],i,this)}},Object.defineProperty(e.prototype,\"size\",{get:function(){return this.keyList.length},enumerable:!1,configurable:!0}),e.prototype.has=function(e){return-1!==this.keyList.indexOf(e)},e.prototype.delete=function(e){var t=this.keyList.indexOf(e);return-1!==t&&(this.keyList.splice(t,1),this.valueList.splice(t,1),!0)},e.prototype.clear=function(){this.keyList=[],this.valueList=[]},e}();return e}()}function Ue(){var e;return Le||(e=\"undefined\"!=typeof WeakMap,Le=e?WeakMap:je()),new Le}function ze(){var e=\"undefined\"!=typeof WeakSet;De=e?WeakSet:function(){function e(){this.elementKey=Re+Be++}return e.prototype.has=function(e){return 1===e[this.elementKey]},e.prototype.add=function(e){return e[this.elementKey]=1,this},e.prototype.delete=function(e){e[this.elementKey]=null},e}()}function He(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function qe(e,t,n,r,o,i){return He((s=He(He(t,e),He(r,i)))<<(a=o)|s>>>32-a,n);var s,a}function Ge(e,t,n,r,o,i,s){return qe(t&n|~t&r,e,t,o,i,s)}function We(e,t,n,r,o,i,s){return qe(t&r|n&~r,e,t,o,i,s)}function Ze(e,t,n,r,o,i,s){return qe(t^n^r,e,t,o,i,s)}function Ye(e,t,n,r,o,i,s){return qe(n^(t|~r),e,t,o,i,s)}function Ve(e,t){var n,r,o,i,s;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var a=1732584193,u=-271733879,c=-1732584194,l=271733878;for(n=0;n<e.length;n+=16)r=a,o=u,i=c,s=l,a=Ge(a,u,c,l,e[n],7,-680876936),l=Ge(l,a,u,c,e[n+1],12,-389564586),c=Ge(c,l,a,u,e[n+2],17,606105819),u=Ge(u,c,l,a,e[n+3],22,-1044525330),a=Ge(a,u,c,l,e[n+4],7,-176418897),l=Ge(l,a,u,c,e[n+5],12,1200080426),c=Ge(c,l,a,u,e[n+6],17,-1473231341),u=Ge(u,c,l,a,e[n+7],22,-45705983),a=Ge(a,u,c,l,e[n+8],7,1770035416),l=Ge(l,a,u,c,e[n+9],12,-1958414417),c=Ge(c,l,a,u,e[n+10],17,-42063),u=Ge(u,c,l,a,e[n+11],22,-1990404162),a=Ge(a,u,c,l,e[n+12],7,1804603682),l=Ge(l,a,u,c,e[n+13],12,-40341101),c=Ge(c,l,a,u,e[n+14],17,-1502002290),a=We(a,u=Ge(u,c,l,a,e[n+15],22,1236535329),c,l,e[n+1],5,-165796510),l=We(l,a,u,c,e[n+6],9,-1069501632),c=We(c,l,a,u,e[n+11],14,643717713),u=We(u,c,l,a,e[n],20,-373897302),a=We(a,u,c,l,e[n+5],5,-701558691),l=We(l,a,u,c,e[n+10],9,38016083),c=We(c,l,a,u,e[n+15],14,-660478335),u=We(u,c,l,a,e[n+4],20,-405537848),a=We(a,u,c,l,e[n+9],5,568446438),l=We(l,a,u,c,e[n+14],9,-1019803690),c=We(c,l,a,u,e[n+3],14,-187363961),u=We(u,c,l,a,e[n+8],20,1163531501),a=We(a,u,c,l,e[n+13],5,-1444681467),l=We(l,a,u,c,e[n+2],9,-51403784),c=We(c,l,a,u,e[n+7],14,1735328473),a=Ze(a,u=We(u,c,l,a,e[n+12],20,-1926607734),c,l,e[n+5],4,-378558),l=Ze(l,a,u,c,e[n+8],11,-2022574463),c=Ze(c,l,a,u,e[n+11],16,1839030562),u=Ze(u,c,l,a,e[n+14],23,-35309556),a=Ze(a,u,c,l,e[n+1],4,-1530992060),l=Ze(l,a,u,c,e[n+4],11,1272893353),c=Ze(c,l,a,u,e[n+7],16,-155497632),u=Ze(u,c,l,a,e[n+10],23,-1094730640),a=Ze(a,u,c,l,e[n+13],4,681279174),l=Ze(l,a,u,c,e[n],11,-358537222),c=Ze(c,l,a,u,e[n+3],16,-722521979),u=Ze(u,c,l,a,e[n+6],23,76029189),a=Ze(a,u,c,l,e[n+9],4,-640364487),l=Ze(l,a,u,c,e[n+12],11,-421815835),c=Ze(c,l,a,u,e[n+15],16,530742520),a=Ye(a,u=Ze(u,c,l,a,e[n+2],23,-995338651),c,l,e[n],6,-198630844),l=Ye(l,a,u,c,e[n+7],10,1126891415),c=Ye(c,l,a,u,e[n+14],15,-1416354905),u=Ye(u,c,l,a,e[n+5],21,-57434055),a=Ye(a,u,c,l,e[n+12],6,1700485571),l=Ye(l,a,u,c,e[n+3],10,-1894986606),c=Ye(c,l,a,u,e[n+10],15,-1051523),u=Ye(u,c,l,a,e[n+1],21,-2054922799),a=Ye(a,u,c,l,e[n+8],6,1873313359),l=Ye(l,a,u,c,e[n+15],10,-30611744),c=Ye(c,l,a,u,e[n+6],15,-1560198380),u=Ye(u,c,l,a,e[n+13],21,1309151649),a=Ye(a,u,c,l,e[n+4],6,-145523070),l=Ye(l,a,u,c,e[n+11],10,-1120210379),c=Ye(c,l,a,u,e[n+2],15,718787259),u=Ye(u,c,l,a,e[n+9],21,-343485551),a=He(a,r),u=He(u,o),c=He(c,i),l=He(l,s);return[a,u,c,l]}function Xe(e){var t,n=\"\",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function Je(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function Qe(e){var t,n,r=\"0123456789abcdef\",o=\"\";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),o+=r.charAt(t>>>4&15)+r.charAt(15&t);return o}function $e(e){return unescape(encodeURIComponent(e))}function Ke(e){return function(e){return Xe(Ve(Je(e),8*e.length))}($e(e))}function et(e,t){return function(e,t){var n,r,o=Je(e),i=[],s=[];for(i[15]=s[15]=void 0,o.length>16&&(o=Ve(o,8*e.length)),n=0;n<16;n+=1)i[n]=909522486^o[n],s[n]=1549556828^o[n];return r=Ve(i.concat(Je(t)),512+8*t.length),Xe(Ve(s.concat(r),640))}($e(e),$e(t))}function tt(e,t,n){return t?n?et(t,e):Qe(et(t,e)):n?Ke(e):Qe(Ke(e))}Ue();var nt=function(){function e(e){this.provider=e,this.index=0}return e.prototype[Symbol.iterator]=function(){return this},e.prototype.next=function(e){return this.provider.item(this.index++)},e.prototype.throw=function(e){throw new Error(\"throw unimplemented\")},e.prototype.return=function(e){throw new Error(\"return unimplemented\")},e}(),rt=function(){function e(e){this.generator=e,this.done=!1,this.results=[]}return e.prototype.ref=function(){return new nt(this)},e.prototype.item=function(e){for(;e>this.results.length-1;){var t=this.generator.next();if(!1!==t.done){this.done=!0;break}this.results.push(t.value)}return this.done?{done:!0,value:null}:{done:!1,value:this.results[e]}},e}();function ot(e){if(e&&e.node)for(var t=e.node&&e.node.nextSibling;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}var it=function(){function e(){}return e.prototype.iterateTargetAXML=function(e,t){var n,r,o,i;return xe(this,(function(s){switch(s.label){case 0:if(n=function(e){for(var t=e.node&&e.node.firstChild;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}(e),!n)return[2,null];r=n.node,s.label=1;case 1:return r?(o=r).component&&2===o.component.type?[4,i=o.component]:[3,4]:[3,5];case 2:return s.sent(),[5,Te(this.iterateChildTargetByOwnerId(i,t))];case 3:s.sent(),s.label=4;case 4:return r=r.nextSibling,[3,1];case 5:return[2,null]}}))},e.prototype.iterateChildTargetByOwnerId=function(e,t,n){var r,o,i,s,a,u,c,l,d,h,p,f,g;return xe(this,(function(v){switch(v.label){case 0:if(!e.slotProviders)return[2,null];r=e.slotProviders,v.label=1;case 1:v.trys.push([1,13,14,15]),o=Te(r),i=o.next(),v.label=2;case 2:if(i.done)return[3,12];s=i.value,a=this.iterateDeepSlotBlockByOwnerId(e,t),v.label=3;case 3:if(!1!==(u=a.next()).done)return[3,9];if(!(c=u.value).node)return[3,8];if(c.provider!==s)return[3,8];l=c.node.firstChild,v.label=4;case 4:return l?(d=l).component?2!==d.component.type?[3,7]:[4,h=d.component]:[3,7]:[3,8];case 5:return v.sent(),n?[3,7]:[5,Te(this.iterateChildTargetByOwnerId(h,t))];case 6:v.sent(),v.label=7;case 7:return l=l.nextSibling,[3,4];case 8:return[3,10];case 9:return[3,11];case 10:return[3,3];case 11:return i=o.next(),[3,2];case 12:return[3,15];case 13:return p=v.sent(),f={error:p},[3,15];case 14:try{i&&!i.done&&(g=o.return)&&g.call(o)}finally{if(f)throw f.error}return[7];case 15:return[2,null]}}))},e.prototype.iterateDeepSlotBlockByOwnerId=function(e,t){var n,r,o,i;return xe(this,(function(s){switch(s.label){case 0:if(!e.node)return[2,null];n=e.node.firstChild,s.label=1;case 1:return n?(r=n).component&&1===r.component.type?(o=r.component,a=o.provider,((u=a.slotProviderParentContextInstance).type<2?u.option.parentTarget:u).targetId!==t?[3,3]:[4,o]):[3,6]:[3,9];case 2:return s.sent(),[3,5];case 3:return[5,Te(this.iterateDeepSlotBlockByOwnerId(o,t))];case 4:s.sent(),s.label=5;case 5:return[3,8];case 6:return r.component&&2===r.component.type&&(i=r.component).slotProviders?[5,Te(this.iterateDeepSlotBlockByOwnerId(i,t))]:[3,8];case 7:s.sent(),s.label=8;case 8:return n=n.nextSibling,[3,1];case 9:return[2,null]}var a,u}))},e.prototype.iterateTargetDeep=function(e,t){var n,r;return xe(this,(function(o){switch(o.label){case 0:return[5,Te(this.iterateDeepXML(e))];case 1:o.sent(),n=this.iterateChildTargetByOwnerId(e,t),o.label=2;case 2:return!1!==(r=n.next()).done?[3,5]:[4,r.value];case 3:return o.sent(),[5,Te(this.iterateDeepXML(r.value))];case 4:return o.sent(),[3,6];case 5:return[3,7];case 6:return[3,2];case 7:return[2,null]}}))},e.prototype.iterateDeepXML=function(e){var t,n,r;return xe(this,(function(o){switch(o.label){case 0:if(!e.slotProviders||!e.node)return[2,null];t=e.node.firstChild,o.label=1;case 1:return t?(n=t.component)&&2===n.type?[4,n]:[3,8]:[3,10];case 2:return o.sent(),[5,Te(this.iterateTargetDeep(n,e.targetId))];case 3:o.sent(),r=ot(n),o.label=4;case 4:return r?[4,r]:[3,7];case 5:return o.sent(),[5,Te(this.iterateDeepXML(r))];case 6:return o.sent(),r=ot(r),[3,4];case 7:return[3,10];case 8:t=t.nextSibling,o.label=9;case 9:return[3,1];case 10:return[2,null]}}))},e}();!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=Ue(),t}ke(t,e),t.prototype.iterateTargetAXML=function(t,n){return this.createIterator(e.prototype.iterateTargetAXML,[t,n])},t.prototype.iterateChildTargetByOwnerId=function(t,n,r){return this.createIterator(e.prototype.iterateChildTargetByOwnerId,[t,n,r])},t.prototype.iterateDeepSlotBlockByOwnerId=function(t,n){return this.createIterator(e.prototype.iterateDeepSlotBlockByOwnerId,[t,n])},t.prototype.iterateTargetDeep=function(t,n){return this.createIterator(e.prototype.iterateTargetDeep,[t,n])},t.prototype.iterateDeepXML=function(t){return this.createIterator(e.prototype.iterateDeepXML,[t])},t.prototype.createIterator=function(e,t){var n=this.cache.get(e);n||(Pe||Fe(),n=new Pe,this.cache.set(e,n));var r=t.map((function(e){return\"\".concat(\"object\"==typeof e&&e?e.targetId:e)})).join(\"_\"),o=n.get(r);return o||(o=new rt(e.apply(this,t))),o.ref()}}(it);var st,at,ut,ct,lt,dt;\"undefined\"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,\"undefined\"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT,\"undefined\"!=typeof SECURITY_FUNCTION_CALL&&(SECURITY_FUNCTION_CALL=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return\"function\"==typeof e?(Oe||(Oe=Function.prototype.apply.call.bind(Function.prototype.apply)),Oe(e,t,n)):e.call.apply(e,Ne([t],n,!1))}),\"undefined\"!=typeof SECURITY_FUNCTION_APPLY&&(SECURITY_FUNCTION_APPLY=function(e,t,n){return\"function\"==typeof e?(Oe||(Oe=Function.prototype.apply.call.bind(Function.prototype.apply)),Oe(e,t,n)):e.apply(t,n)}),function(e){e.CanvasContext=\"CanvasContext\"}(st||(st={})),function(e){e[e.PLUGIN=1]=\"PLUGIN\",e[e.SUB_PACKAGE=2]=\"SUB_PACKAGE\"}(at||(at={})),function(e){e.PLUGIN=\"plugin\",e.SUB_PACKAGE=\"subpackage\"}(ut||(ut={})),function(e){e[e.Info=0]=\"Info\",e[e.Warn=1]=\"Warn\",e[e.Error=2]=\"Error\"}(ct||(ct={})),function(e){e.AppxLifecycle=\"AppxLifecycle\"}(lt||(lt={})),\"undefined\"!=typeof HAS_INSIDE_FEATURE&&HAS_INSIDE_FEATURE,function(e){e.version_added=\"v\",e.const=\"c\",e.android=\"a\",e.ios=\"i\",e.default=\"d\"}(dt||(dt={})),Ue();var ht=function(){function e(e,t,n,r,o){this.bindLinkNode=o,this.updatingDiff=null,this.scopedBlocks=[],this.unscopedBlocks=[],this.disposing=!1,this.detaching=!1,this.factory=e,this.currentData=t,this.slotProviderParentContextInstance=n,this.scopeId=r}return e.prototype.createBlockWithScope=function(e,t){var n,r,o=this.scopeId;return e&&o?(n=pt(e,this.currentData,o),(r=this.createBlock(this.slotProviderParentContextInstance,t,n,!0)).__scopeContext__=e):(n=this.currentData,r=this.createBlock(this.slotProviderParentContextInstance,t,n,!1)),r.bType=1,r},e.prototype.createBlockWithoutScope=function(e){var t=this.createBlock(this.slotProviderParentContextInstance,e,this.currentData,!1);return t.bType=1,t},e.prototype.updateBlockWithDynamicNameScopeAndFallback=function(e,t,n,r,o,i){if(t._name===e){var s=this.scopeId;if(n&&s){var a=pt(n,this.currentData,s),u=Object.create(this.updatingDiff);u[s]=!0,t.updateScopeContext(n),t.updateScopeAndFallbackContext(u,a,r,o)}else t.updateFallbackContext(r,o)}else{var c=void 0;c=n?this.createBlockWithScope(n,i):this.createBlockWithoutScope(i),t.updateDynamicNameAndFallbackContext(e,c,r,o)}return null},e.prototype.updateBlockWithScopeAndFallback=function(e,t,n,r){var o=this.scopeId;if(t&&o){var i=pt(t,this.currentData,o),s=Object.create(this.updatingDiff);s[o]=!0,e.updateScopeContext(t),e.updateScopeAndFallbackContext(s,i,n,r)}else e.updateFallbackContext(n,r)},e.prototype.updateBlockWithScope=function(e,t){var n=this.scopeId;if(t&&n){var r=pt(t,this.currentData,n),o=Object.create(this.updatingDiff);o[n]=!0,e.__scopeContext__=t,e.u(o,r)}},e.prototype.enterProviderDetaching=function(){this.detaching=!0},e.prototype.exitProviderDetaching=function(){this.detaching=!1;var e=this.detachedBlocks;if(e){this.detachedBlocks=null;for(var t=0,n=e;t<n.length;t++){var r=n[t],o=1===r.__slotType__?this.scopedBlocks:this.unscopedBlocks;r.__slotIndex__=o.push(r)-1,r.d(!0)}}},e.prototype.createBlock=function(e,t,n,r){var o,i,s;if(r?(i=1,o=this.scopedBlocks.length,s=this.scopedBlocks):(i=0,o=this.unscopedBlocks.length,s=this.unscopedBlocks),this.detaching){var a=this.detachedBlocks;if(a){var u=a.shift();if(u)return s.push(u),u.__slotIndex__=o,u.__slotType__=i,u}}var c=this.factory(e,n);return this.bindLinkNode&&(c=this.bindLinkNode(c,this)),c.d=this.destroyBlock.bind(this,c,c.d),s.push(c),c.__slotIndex__=o,c.__slotType__=i,c},e.prototype.destroyBlock=function(e,t,n){var r=e.__slotIndex__;if(r>=0){if(!this.disposing){var o=1===e.__slotType__?this.scopedBlocks:this.unscopedBlocks,i=o.length-1,s=o[i];s.__slotIndex__=r,o[r]=s,o.length=i}if(this.detaching){var a=this.detachedBlocks;a||(a=this.detachedBlocks=[]),a.push(e)}else t.call(e,n);e.__slotIndex__=-1}},e}();function pt(e,t,n){var r=Object.create(t);return r[n]=e[0],e.length>1&&(r[n+\"d\"]=e[1],r[n+\"n\"]=e[2]),r}!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}ke(t,e),t.prototype.exitProviderUpdating=function(){},t.prototype.enterProviderUpdating=function(e,t){this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).u(e,t)}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u,c=pt((u=a[s]).__scopeContext__,t,n);u.u(i,c)}}},t.prototype.destroyBlocks=function(e){if(this.disposing=!0,this.scopeId){for(var t=0,n=this.scopedBlocks;t<n.length;t++){n[t].d(e)}this.scopedBlocks=[]}for(var r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].d(e)}this.unscopedBlocks=[]}}(ht),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}ke(t,e),t.prototype.enterProviderUpdating=function(e,t){this.updatingDiff=e,this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].__slotUpdating__=!0}if(n&&this.scopedBlocks.length)for(var i=0,s=this.scopedBlocks;i<s.length;i++){s[i].__slotUpdating__=!0}},t.prototype.destroyBlocks=function(e){this.disposing=!0,this.scopeId&&(this.scopedBlocks=[]),this.unscopedBlocks=[]},t.prototype.exitProviderUpdating=function(){for(var e=this.updatingDiff,t=this.currentData,n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).__slotUpdating__&&(u.__slotUpdating__=!1,u.u(e,t))}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u;if((u=a[s]).__slotUpdating__){u.__slotUpdating__=!1;var c=pt(u.__scopeContext__,t,n);u.u(i,c)}}}this.updatingDiff=null}}(ht);var ft=function(){function e(e,t,n){this._bc=e,this._component=t;var r=e[3],o=e[4],i=e[0];this._selectedBlockIndex=r?r(t,n):1,this._selectedBlockType=o?o(this._selectedBlockIndex):i(t,n),this._currentBlock=vt(this._selectedBlockType,t,n)}return e.prototype.a=function(){return this._currentAnchorHead},e.prototype.c=function(){var e=this._bc[5];return this._currentAnchorHead=yt(this._component),this._currentAnchor4Index=yt(this._component,null,Nt(this._selectedBlockIndex)),this._currentBlock&&(e&=this._currentBlock.c()),this._currentAnchor=yt(this._component,this._currentAnchorHead),e},e.prototype.l=function(e){var t=this._bc[5];this._currentAnchorHead=Tt(e,this._component),It(e,Ct(e,this._currentAnchorHead));var n=xt(e,this._component,\"c\",Nt(this._selectedBlockIndex));return this._currentAnchor4Index=n[0],e.treatErrorAsWarning+=n[1],this._currentBlock&&(t&=this._currentBlock.l(e)),e.treatErrorAsWarning-=n[1],St(e),this._currentAnchor=Tt(e,this._component,this._currentAnchorHead),this._currentTarget=e.target,t},e.prototype.m=function(e,t){this._currentTarget=e,wt(e,this._currentAnchorHead,t),wt(e,this._currentAnchor4Index,t),this._currentBlock&&this._currentBlock.m(e,t),wt(e,this._currentAnchor,t)},e.prototype.u=function(e,t){var n=this._bc[5],r=this._bc[3],o=this._bc[4],i=this._bc[0],s=r?r(this._component,t):1,a=o?o(s):i(this._component,t);if(this._selectedBlockType!==a){this._selectedBlockIndex=s,this._selectedBlockType=a;var u=this._currentAnchor4Index.root;u&&(u.textContent=Nt(this._selectedBlockIndex)),this._currentBlock&&this._currentBlock.d(!0),this._currentBlock=vt(this._selectedBlockType,this._component,t),this._currentBlock&&(n&=this._currentBlock.c(),this._currentBlock.m(this._currentTarget,this._currentAnchor))}else this._currentBlock&&(n&=this._currentBlock.u(e,t));return n},e.prototype.d=function(e){this._currentBlock&&(this._currentBlock.d(e),this._currentBlock=null),e&&(mt(this._currentAnchorHead),mt(this._currentAnchor4Index),mt(this._currentAnchor),this._currentAnchorHead=null,this._currentAnchor4Index=null,this._currentAnchor=null)},e}();function gt(){}function vt(e,t,n){if(e)return e(t,n)}function mt(e){if(e){var t=e.parent;t&&t.removeChild(e)}}function yt(e,t,n){return t?e.document.cloneComment(t):e.document.createComment(n)}function bt(e,t){var n=t.nextSibling,r=t.previousSibling;n?(n.previousSibling=r,t.nextSibling=null):e.lastChild=r,r?(r.nextSibling=n,t.previousSibling=null):e.firstChild=n,t.parent=null}function _t(e,t){var n=t.parent;n&&bt(n,t),t.parent=e;var r=e.lastChild;r?(t.previousSibling=r,r.nextSibling=t):e.firstChild=t,e.lastChild=t}function wt(e,t,n){e.insertBefore(t,n||null),t.parent||(t.parent=e)}function It(e,t){e.stopReverseIndex=t,e.stopReverseIndexStack.push(t)}function St(e){e.stopReverseIndexStack.pop(),e.stopReverseIndex=e.stopReverseIndexStack[e.stopReverseIndexStack.length-1]||0}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.detaching=!1,t}ke(t,e),t.prototype.detach=function(){this.detaching=!0},t.prototype.attach=function(){this.detaching=!1},t.prototype.c=function(){if(this.detaching){var t=this._bc[5];return this._currentBlock&&(t&=this._currentBlock.c()),t}return e.prototype.c.call(this)},t.prototype.m=function(t,n){if(!this.detaching)return e.prototype.m.call(this,t,n);this._currentBlock&&this._currentBlock.m(this._currentTarget,this._currentAnchor)},t.prototype.resetCurrentBranch=function(e,t){this._component=e;var n=this._bc[3],r=this._bc[4],o=this._bc[0];this._selectedBlockIndex=n?n(this._component,t):1,this._selectedBlockType=r?r(this._selectedBlockIndex):o(this._component,t),this._currentBlock=vt(this._selectedBlockType,this._component,t)},t.prototype.d=function(t){if(!this.detaching)return e.prototype.d.call(this,t);this._currentBlock&&(this._currentBlock.d(t),this._currentBlock=null)}}(ft);var Ct=function(e,t){var n,r=t.root.textContent,o=e.index,i=e.nodes.length;for(;o<i&&(n=e.nodes.item(o))&&(8!==n.nodeType||n.textContent!==r);)o++;return i-o};var kt=0;var Et=function(){return\"z:\".concat(++kt)},xt=function(e,t,n,r){var o,i=e.target,s=e.nodes.item(e.index),a=0,u=0;if(s&&8===s.nodeType&&s.textContent[0]===n)s.textContent===r?o={destroy:gt,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s}:(s.textContent=r,o={destroy:gt,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s},a=1,u=1);else{if(o={destroy:gt,eType:0,nextSibling:null,parent:i,previousSibling:null,root:t.document.document.createComment(r)},s){var c={destroy:gt,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s};i.insertBefore(o,c)}else i.appendChild(o);a=1}if(e.index++,a)for(var l=e.index,d={destroy:gt,eType:0,nextSibling:null,parent:i,previousSibling:null,root:null};(s=e.nodes.item(l))&&e.stopReverseIndex!==e.nodes.length-l;)d.root=s,i.removeChild(d);return[o,u]};var Tt=function(e,t,n){var r,o=e.target,i={destroy:gt,eType:0,nextSibling:null,parent:null,previousSibling:null,root:null};if(n){for(var s=n.root.textContent,a=e.index,u=void 0;;){if(!(u=e.nodes.item(a))){var c=t.document.document.createComment(s);i.root=c,o.appendChild(i);break}if(i.root=u,8===u.nodeType&&u.textContent===s){_t(o,i);break}if(e.stopReverseIndex===e.nodes.length-a){var l={destroy:gt,eType:0,nextSibling:null,parent:null,previousSibling:null,root:u};c=t.document.document.createComment(s);i.root=c,_t(o,l),o.insertBefore(i,l),bt(o,l);break}o.removeChild(i)}return e.index++,i}u=e.nodes.item(e.index++);i.root=u,u&&8===u.nodeType?_t(o,i):(r={destroy:gt,eType:0,nextSibling:null,parent:null,previousSibling:null,root:t.document.document.createComment(Et())},u?(_t(o,i),o.insertBefore(r,i),e.stopReverseIndex===e.nodes.length-e.index?bt(o,i):o.removeChild(i)):o.appendChild(r));return r||i};function Nt(e){return\"\".concat(\"c\",\":\").concat(e||\"\")}function Ot(e,t,n){for(var r=[],o=e,i=null;o&&!t(o);){switch(o.eType){case 1:case 2:null===i&&r.push(n.getZNodeDebugInfo(o));break;case 0:var s=o.root.textContent;null===i&&\"b\"===s[0]?i=parseInt(s.slice(2),10):null!==i&&s===Dt(i)&&(r.push(n.getZNodeComponentDebugInfo(i)),i=null)}o=o.nextSibling}return r}function At(e,t,n){var r=e[t];e[t]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=r.apply(void 0,e);try{n(o,e)}catch(e){console.error(e)}return o}}function Mt(e,t,n){var r=e[t];e[t]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{n(e)}catch(e){console.error(e)}return r.apply(void 0,e)}}function Pt(e){var t=\"\";try{JSON.stringify(e).length>1e6&&(t=\"data is too large to display\")}catch(e){t=e.message||\"stringify error\"}return t?{data:{error:t}}:{data:e}}function Lt(e){return\"\".concat(\"b\",\":\").concat(e)}function Dt(e){return\"\".concat(\"e\",\":\").concat(e)}function Rt(e){if(!e.treeTargetIds){for(var t=e,n=[];t;){t=t.previousSibling?t.previousSibling:t.parent;for(var r=0;t;){if(0===t.eType){if(\"e\"===t.root.textContent[0])r++;else if(\"b\"===t.root.textContent[0]){if(0===r){n.push({begin:t.root,targetId:parseInt(t.root.textContent.slice(2),10)});break}r--}}else{if(1===t.eType&&0===r){n.push.apply(n,Rt(t)),t=null;break}if(2===t.eType&&0===r){n.push.apply(n,Rt(t)),t=null;break}}t=t.previousSibling?t.previousSibling:t.parent}}n.length||n.push({begin:null,targetId:0}),e.treeTargetIds=n}return e.treeTargetIds}var Bt=function(){function e(e,t){this.devtool=e,this.node=t}return e.prototype.setParentNodeId=function(e){this.parentNodeId=e},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.node.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.getParentNode=function(){if(this.node.parent){var e=this.devtool.getZNodeDebugInfo(this.node.parent),t=Rt(this.node);return Rt(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.setLinkedContext=function(e){this.linkedContext=e},e.prototype.getLinkedContext=function(){return this.linkedContext},e}();function jt(e){var t=[];t.push(\"<\".concat(e.localName));var n=function(e){if(e&&0!==e.length){for(var t=[],n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];r&&o&&t.push(\"\".concat(r,'=\"').concat(o,'\"'))}return t.join(\" \")}}(e.getAllAttributes());n&&t.push(\" \".concat(n)),t.push(\">\");var r=function(e){if(e&&0!==e.length){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];t.push(o.getOuterAXML())}return t.join(\"\")}}(e.getChildNodes());return r&&t.push(r),t.push(\"</\".concat(e.localName,\">\")),t.join(\"\")}var Ft=function(e){function t(t,n,r,o,i,s){var a=e.call(this,t,r)||this;return a.devtool=t,a.nodeName=n,a.node=r,a.nodeId=o,a.shadowRootNodeId=i,a.shadowSlotNodeId=s,a.nodeType=we.Element,a.activated=!1,a.childrenActivated=!1,a.pendingAttributes=[],a.dataset=new Map,a.properties=new Map,a.attributes=new Map,a.inlineStyleSheetId=\"2000.\".concat(o),a.updateClassName(r.classNameExp),a.updateInlineStyle(r.inlineStyleExp),a.updateDataset(r.getDataset()),a}return ke(t,e),Object.defineProperty(t.prototype,\"dom\",{get:function(){return this.devtool.getDOMNodeDebugInfo(this.node.root,this,this.shadowRootNodeId)},enumerable:!1,configurable:!0}),t.prototype.getPlatformRootDOM=function(){return this.node.root},t.prototype.getShadowRootDebugNode=function(){var e=this.node.root;return this.devtool.getDOMNodeDebugInfo(e,this,this.shadowRootNodeId)},t.prototype.getClassName=function(){return this.attrClass},t.prototype.getInlineStyle=function(){return this.attrStyle},t.prototype.getDataset=function(){return this.dataset},t.prototype.updateClassName=function(e){var t=e||\"\";this.attrClass!==t&&(this.attrClass=t,this.activated&&this.pendingAttributes.push([\"class\",\"\".concat(t)]))},t.prototype.updateInlineStyle=function(e){this.attrStyle!==e&&(this.attrStyle=e,this.activated&&this.pendingAttributes.push([\"style\",\"\".concat(e)]))},t.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n]),\"style\"===n&&e.node.setStyleInline(t[n])})),this.pendingAttributes=[],t={},this.devtool.enableShadowRootElements&&(this.devtool.flushUpdatedQueue(),this.dom&&this.dom.invalidate())}},t.prototype.getProperties=function(){var e={};return this.properties.forEach((function(t,n){e[n]=t})),e},t.prototype.updateProperties=function(e){if(e)for(var t=this.properties,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([o,\"\".concat(e[o])]))}},t.prototype.updateDataset=function(e){if(e)for(var t=this.dataset,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([\"data-\".concat(o),\"\".concat(e[o])]))}},t.prototype.updateAttribute=function(e,t){t!==this.attributes.get(e)&&(this.attributes.set(e,t),this.activated&&this.pendingAttributes.push([e,\"\".concat(t)]))},t.prototype.getChildNodes=function(){return Ot(this.node.firstChild,(function(){return!1}),this.devtool)},t.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&r&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==we.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.localName,nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId(),pseudoElements:this.getPseudoElements(),shadowRoots:this.devtool.shadowRootElementsEnabled?[{childNodeCount:1,localName:\"\",nodeId:this.shadowRootNodeId,nodeName:\"#document-fragment\",nodeType:11,nodeValue:\"\",shadowRootType:\"dom\"}]:void 0}},Object.defineProperty(t.prototype,\"localName\",{get:function(){return this.nodeName.toLowerCase()},enumerable:!1,configurable:!0}),t.prototype.getOuterAXML=function(){return jt(this)},t.prototype.getAllAttributes=function(){var e=[];return this.attrClass&&e.push(\"class\",\"\".concat(this.attrClass)),this.attrStyle&&e.push(\"style\",\"\".concat(this.attrStyle)),this.properties.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.attributes.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.dataset.forEach((function(t,n){e.push(\"data-\".concat(n),\"\".concat(t))})),e},t.prototype.getChildNodeCount=function(){return this.getChildNodes().length},t.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})},t.prototype.getPseudoElements=function(){return[]},t}(Bt),Ut=function(e){function t(t,n,r,o){var i=e.call(this,t,n)||this;return i.devtool=t,i.node=n,i.nodeId=r,i.shadowSlotNodeId=o,i.nodeType=we.Text,i.activated=!1,i.nodeName=\"#text\",i.dom=t.getDOMNodeDebugInfo(n.root,i),i}return ke(t,e),t.prototype.getPlatformRootDOM=function(){return this.node.root},t.prototype.serialize=function(e){return this.activated=!0,{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:this.nodeName,nodeType:3,nodeValue:this.node.root.textContent,parentId:this.getParentNodeId()}},t.prototype.getOuterAXML=function(){return this.node.root.textContent},t}(Bt),zt=function(){function e(e,t,n){var r=this;this.devtool=e,this.targetId=t,this.nodeId=n,this.nodeType=we.Component,this.nodeName=\"component\",this.activated=!1,this.childrenActivated=!1,this.pendingAttributes=[],this.componentInstance=e.componentTargetId2LinkedInstance.get(t),this.beginAnchor=this.componentInstance._anchor4Head,this.parentNodeId=this.getParentNodeId();var o=Me(e.sendMessage.bind(e),500,setTimeout,clearTimeout),i=this.componentInstance._fragment.u;this.componentInstance._fragment.u=function(){for(var t=[],s=0;s<arguments.length;s++)t[s]=arguments[s];var a=i.apply(r.componentInstance._fragment,t);return e.activatedCustomComponentId===n&&o(\"Tiny.Elements.componentDataChanged\",{data:Pt(r.getData()).data,nodeId:n,targetId:r.targetId}),a};var s=Me(e.sendMessage.bind(e),500,setTimeout,clearTimeout),a=this.componentInstance.receiveProps;this.componentInstance.receiveProps=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];a.apply(r.componentInstance,t),e.activatedCustomComponentId===n&&s(\"Tiny.Elements.componentDataChanged\",{nodeId:n,props:Pt(r.getProps()).data,targetId:r.targetId})},this.invalidate=Me(this.invalidate.bind(this),500,setTimeout,clearTimeout)}return e.prototype.getChildNodes=function(){var e=this;return Ot(this.beginAnchor.nextSibling,(function(t){if(0===t.eType&&t.root.textContent===Dt(e.targetId))return!0}),this.devtool)},e.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==we.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),placeholderComponentInfo:this.getPlaceholderComponentInfo(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.localName,nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId()}},Object.defineProperty(e.prototype,\"localName\",{get:function(){return this.nodeName.toLowerCase()},enumerable:!1,configurable:!0}),e.prototype.getOuterAXML=function(){return jt(this)},e.prototype.getAllAttributes=function(){var e=this,t=this.componentInstance.fixedReceivedPropKeys,n=this.componentInstance.componentIs;\"string\"==typeof n&&\"/\"===n[0]&&(n=n.substring(1));var r=[\"is\",n];return this.componentInstance.externalClasses&&r.push(\"externalClasses\",this.componentInstance.externalClasses.join(\" \")),t&&t.forEach((function(t){r.push.apply(r,function(e,t){if(\"className\"===e)return[\"class\",String(t).trim()];if(\"function\"==typeof t){if(t.handleName)return[e,t.handleName]}else{if(null===t)return[e,\"null\"];if(void 0!==t){var n=\"unknown\";try{n=\"object\"==typeof t?Object.prototype.toString.call(t):t.toString()}catch(n){console.warn(\"failed to stringify node props value\",e,t)}return[e,n]}}return[]}(t,e.componentInstance._state[t]))})),r},e.prototype.getComponentIs=function(){return this.componentInstance.componentIs},e.prototype.getPlaceholderComponentInfo=function(){if(this.componentInstance.getPlaceholderComponentInfo)return this.componentInstance.getPlaceholderComponentInfo()},e.prototype.getComponentInstance=function(){return this.componentInstance},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getParentNode=function(){if(this.beginAnchor.parent){var e=this.devtool.getZNodeDebugInfo(this.beginAnchor.parent),t=Rt(this.beginAnchor);return Rt(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.getData=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys,r=void 0===n?[]:n;return Object.keys(this.componentInstance._state).forEach((function(n){\"$id\"!==n&&-1===r.indexOf(n)&&(t[n]=e.componentInstance._state[n])})),t},e.prototype.getProps=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys;return(void 0===n?[]:n).forEach((function(n){t[n]=e.componentInstance._state[n]})),t},e.prototype.getChildNodeCount=function(){return this.getChildNodes().length},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.beginAnchor.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.updateProperties=function(e,t){var n=this;Object.keys(t).forEach((function(r){t[r]&&n.pendingAttributes.push([r,\"\".concat(e[r])])}))},e.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n])})),this.pendingAttributes=[],t={}}},e.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})},e}(),Ht=function(){function e(e,t,n,r,o){this.devtool=e,this.node=t,this.nodeId=n,this.parentNodeId=r,this.znode=o,this.nodeType=1,this.activated=!1}return e.prototype.invalidate=function(){if(this.lastSerializedJSON){var e=this.serialize(this.lastSerializedJSON.children?1:0,!1);this.checkAttributesModified(this.lastSerializedJSON.attributes||[],e.attributes||[]),this.lastSerializedJSON.children&&this.checkChildNodesUpdated(this.lastSerializedJSON.children,e.children||[]),this.lastSerializedJSON=e}},e.prototype.serialize=function(e,t){void 0===t&&(t=!0),this.activated=!0;for(var n,r,o=this.node,i=0,s=0,a=o.childNodes;s<a.length;s++){var u=a[s];if(1===u.nodeType||3===u.nodeType){var c=this.devtool.getDOMNodeDebugInfo(u,null,this.nodeId);if(c.znode){if(!r){var l=c.znode.shadowSlotNodeId;r={backendNodeId:l,childNodeCount:0,children:[],distributedNodes:[],localName:\"slot\",nodeId:l,nodeName:\"SLOT\",nodeType:1,nodeValue:\"\",parentId:this.nodeId}}var d=r.distributedNodes;d||(d=r.distributedNodes=[]),d.push({backendNodeId:c.znode.nodeId,nodeName:c.znode.nodeName,nodeType:u.nodeType});continue}r&&(e>0&&(n||(n=[]),n.push(r)),i++),r=null,e>0&&(n||(n=[]),n.push(c.serialize(e-1,t))),i++}}r&&(e>0&&(n||(n=[]),n.push(r)),i++);for(var h=[],p=0,f=o.attributes;p<f.length;p++){var g=f[p];h.push(g.name,g.value)}var v={attributes:h,backendNodeId:this.nodeId,childNodeCount:i,children:n,localName:o.nodeName.toLowerCase(),nodeId:this.nodeId,nodeName:o.nodeName,nodeType:1,nodeValue:\"\",parentId:this.parentNodeId,pseudoElements:this.getPseudoElements()};return t&&(this.lastSerializedJSON=v),v},e.prototype.checkAttributesModified=function(e,t){for(var n=this,r=new Map,o=0;o<e.length-1;o+=2)r.set(e[o],e[o+1]);for(o=0;o<t.length-1;o+=2){var i=t[o],s=t[o+1];if(r.has(i)){var a=r.get(i);r.delete(i),a!==s&&this.devtool.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:this.nodeId,value:s})}else this.devtool.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:this.nodeId,value:s})}r.forEach((function(e,t){n.devtool.sendMessage(\"DOM.attributeRemoved\",{name:t,nodeId:n.nodeId})}))},e.prototype.checkChildNodesUpdated=function(e,t){var n=this;qt(e,t,(function(e,t){return e.nodeId===t.nodeId}),(function(e){var r=t[t.indexOf(e)-1];n.devtool.sendMessage(\"DOM.childNodeInserted\",{node:e,parentNodeId:e.parentId,previousNodeId:r?r.nodeId:0})}),(function(e){n.devtool.sendMessage(\"DOM.childNodeRemoved\",{nodeId:e.nodeId,parentNodeId:e.parentId})}),(function(e,t){if(\"SLOT\"===e.nodeName){var r=function(){n.devtool.sendMessage(\"DOM.distributedNodesUpdated\",{distributedNodes:t.distributedNodes||[],insertionPointId:t.nodeId})};qt(e.distributedNodes||[],t.distributedNodes||[],(function(e,t){return e.backendNodeId===t.backendNodeId}),r,r)}else{var o=n.devtool.nodeId2DOMNode.get(e.nodeId);o&&1===o.nodeType&&o.invalidate()}}))},e.prototype.getPseudoElements=function(){return[]},e}();function qt(e,t,n,r,o,i){var s=t.slice();e.forEach((function(e){var t=-1;s.some((function(r,o){if(n(e,r))return t=o,!0})),t>-1?(i&&i(e,s[t]),s.splice(t,1)):o(e)})),s.forEach(r)}var Gt=function(){function e(e,t,n,r){this.devtool=e,this.node=t,this.nodeId=n,this.znode=r,this.nodeType=3,this.activated=!1}return e.prototype.serialize=function(){var e=this.node;return{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:\"#text\",nodeType:3,nodeValue:e.textContent,parentId:this.devtool.getDOMNodeDebugInfo(this.node.parentNode,this.znode).nodeId}},e}(),Wt=function(){function e(e){this.option=e,this.nodeId2ZNode=new Map,this.shadowRootNodeId2ZNode=new Map,this.nodeId2DOMNode=new Map,this.nodeId2PseudoElement=new Map,this.componentTargetId2ZNode=new Map,this.componentTargetId2LinkedInstance=new Map,this.shadowRootElementsEnabled=!1,this.rootNodeId=1,this.nextNodeId=this.rootNodeId+1,this.dependecyFactory=e.dependencyFactory}return e.prototype.sendMessage=function(e,t){this.option.connection.sendMessage(e,t)},e.prototype.sendMessageWithPriority=function(e,t){this.option.connection.sendMessage(e,t,!0)},e.prototype.getZRuntimeHelper=function(){return this.option.debugProxy.getZRuntime().h},e.prototype.getZNodeDebugInfo=function(e){if(!e._debug)if(1===e.eType){var t=this.option.debugProxy.getTagNameByPlatformElement(e)||\"unknown\";0===t.indexOf(\"unknown\")&&(t=e.tagName||e.externalElementName||t);var n=this.dependecyFactory.createZNodeElement(this,t.toUpperCase(),e,this.nextNodeId++,this.nextNodeId++,this.nextNodeId++);this.nodeId2ZNode.set(n.nodeId,n),this.shadowRootNodeId2ZNode.set(n.shadowRootNodeId,n),e._debug=n}else if(2===e.eType){var r=new Ut(this,e,this.nextNodeId++,this.nextNodeId++);this.nodeId2ZNode.set(r.nodeId,r),e._debug=r}return e._debug},e.prototype.getZNodeComponentDebugInfo=function(e){if(!this.componentTargetId2ZNode.has(e)){var t=new zt(this,e,this.nextNodeId++);this.nodeId2ZNode.set(t.nodeId,t),this.componentTargetId2ZNode.set(e,t)}return this.componentTargetId2ZNode.get(e)},e.prototype.getDOMNodeDebugInfo=function(e,t,n){if(!e._debug)if(1===e.nodeType){var r=this.dependecyFactory.createDOMElement(this,e,this.nextNodeId++,n,t);this.nodeId2DOMNode.set(r.nodeId,r),e._debug=r}else if(3===e.nodeType){var o=new Gt(this,e,this.nextNodeId++,t);this.nodeId2DOMNode.set(o.nodeId,o),e._debug=o}return e._debug},e.prototype.getDocumentNode=function(){var e=this.rootNodeId;try{var t=[],n=this.getZNodeDebugInfo(this.option.clientProxy.renderer.documentInstance);n.setParentNodeId(e),t.push(n.serialize(1));var r=this.option.clientProxy.renderer.tabBarInstance;if(r){var o=this.getZNodeDebugInfo(r);if(o.setParentNodeId(e),o&&o.serialize(1).children){var i=o.serialize(1).children[0];i&&(i.nodeName=\"tab-bar\",i.attributes=[],t.push(i))}}return{backendNodeId:e,childNodeCount:1,children:t,localName:\"\",nodeId:e,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}}catch(t){console.warn(\"getDocumentRoot error\",t);var s=\"page-not-found\";return{backendNodeId:e,childNodeCount:1,children:[{attributes:[],backendNodeId:e+1,childNodeCount:0,localName:s,nodeId:2,nodeName:s,nodeType:1,nodeValue:\"\",parentId:e}],localName:\"\",nodeId:e,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}}},e.prototype.flushUpdatedQueue=function(){this.pageInstance&&this.pageInstance.flushUpdatedQueue()},e.prototype.resetZNodeActivatedState=function(){this.nodeId2ZNode.forEach((function(e){e.activated=!1,e.nodeType===we.Element&&e.childrenActivated&&(e.childrenActivated=!1)}))},e.prototype.enableShadowRootElements=function(){this.shadowRootElementsEnabled=!0},e.prototype.getNextNodeId=function(){return this.nextNodeId++},e}(),Zt=function(){function e(e,t){this.devtool=e,this.zruntime=t,this.rootZInstanceToLocation=Ue(),this.rootZTargetToLocation=Ue(),this.zInstanceToLocation=Ue(),this.zTargetToLocation=Ue(),this.zInstanceLocationStack=[],this.locationVisited=(De||ze(),new De),this.bindZElement=this.bindZElement.bind(this),this.bindZComponent=this.bindZComponent.bind(this),this.overwriteLocation=this.overwriteLocation.bind(this)}return e.prototype.bindZElement=function(e){var t=this.zInstanceLocationStack[this.zInstanceLocationStack.length-1];t&&(this.locationVisited.has(t)||(this.rootZInstanceToLocation.set(e,t),this.locationVisited.add(t)),this.zInstanceToLocation.set(e,t))},e.prototype.bindZComponent=function(e){var t=e[0],n=this.zInstanceLocationStack[this.zInstanceLocationStack.length-1];n&&(this.locationVisited.has(n)||(this.rootZTargetToLocation.set(t,n),this.locationVisited.add(n)),this.zTargetToLocation.set(t,n))},e.prototype.overwriteLocation=function(e){if(e.length>=3){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],s={path:\"string\"==typeof i?i:this.getComponentInstancePathInfo(t),line:n,column:r};4&o&&(s.blockType=\"each\"),this.zInstanceLocationStack.push(s)}else e.length<=1&&this.zInstanceLocationStack.pop()},e.prototype.getZElementCompositedPathInfo=function(e){for(var t=[],n=this.devtool.getZNodeDebugInfo(e);n&&n.nodeType!==we.Text;){if(n.nodeType===we.Element){var r=n.node;if(r.document)break;var o=this.getZNodeOffsetInfo(n,n.node.ownerTargetId,this.zInstanceToLocation.get(n.node));t.push({pathInfo:o,element:r,type:\"Element\"})}else if(n.nodeType===we.Component){o=this.getZNodeOffsetInfo(n,n.getComponentInstance().option.parentTarget.targetId,this.zTargetToLocation.get(n.getComponentInstance()));t.push({pathInfo:o,componentIs:n.getComponentIs(),type:\"Component\"})}n=n.getParentNode()}return t},e.prototype.getComponentInstancePathInfo=function(e){var t,n;return 2===(t=e.type<2?e.option.parentTarget:e).type?n=t.componentIs:3===t.type&&(n=t.option.runtime.proxy.pagePath),n},e.prototype.getZElementDescription=function(e){var t=this.devtool.getZNodeDebugInfo(e),n=\"\";if(t.nodeType===we.Element){var r=t.getClassName();\"string\"==typeof r&&(n=r.split(/\\s+/).map((function(e){return\".\".concat(e)})).join(\"\"))}return\"\".concat(t.nodeName.toLowerCase()).concat(n)},e.prototype.getZNodeOffsetInfo=function(e,t,n){for(var r=e,o=[];r&&r.nodeType!==we.Text;){var i=void 0;if(r.nodeType===we.Element){var s=r.node;s.ownerTargetId===t&&(i={index:-1,description:this.getZElementDescription(s),element:s})}else if(r.nodeType===we.Component){if(r===e)i={index:-1,componentIs:r.getComponentInstance().componentIs}}if(i){for(var a=r,u=void 0;a;){var c=void 0;if(a.nodeType===we.Element?(c=this.zInstanceToLocation.get(a.node),u=this.rootZInstanceToLocation.get(a.node)):a.nodeType===we.Component&&(c=this.zTargetToLocation.get(a.getComponentInstance()),u=this.rootZTargetToLocation.get(a.getComponentInstance())),c===n&&(i.index+=1,u))break;a=a.getPreviousElementOrTextSibling()}if(o.unshift(i),u)return{location:u,offsets:o}}r=r.getParentNode()}return{location:void 0,offsets:o}},e}();var Yt=function(e,t,n){this.nodeId=e,this.pseudoType=t,this.root=n},Vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ke(t,e),t.prototype.getPseudoElements=function(){var e=this,t=[],n=this.getPlatformRootDOM();return n.nodeType===Node.ELEMENT_NODE&&[\"before\",\"after\"].forEach((function(r){var o=\"::\".concat(r),i=getComputedStyle(n,o).getPropertyValue(\"content\");if(i&&\"none\"!==i){e.pseudoNodeType2Id||(e.pseudoNodeType2Id={});var s=e.pseudoNodeType2Id[r];s||(s=e.pseudoNodeType2Id[r]=e.devtool.getNextNodeId()),e.devtool.nodeId2PseudoElement.set(s,new Yt(s,r,e.getPlatformRootDOM())),t.push({attributes:[],backendNodeId:s,childNodeCount:0,localName:o,nodeId:s,nodeName:o,nodeType:1,nodeValue:\"\",parentId:e.nodeId,pseudoType:r})}})),t},t}(Ft),Xt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ke(t,e),t.prototype.getPseudoElements=function(){var e=this,t=[],n=this.node;return 1===n.nodeType&&[\"before\",\"after\"].forEach((function(r){var o=\"::\".concat(r);if(\"none\"!==getComputedStyle(n,o).getPropertyValue(\"content\")){e.pseudoNodeType2Id||(e.pseudoNodeType2Id={});var i=e.pseudoNodeType2Id[r];i||(i=e.pseudoNodeType2Id[r]=e.devtool.getNextNodeId()),e.devtool.nodeId2PseudoElement.set(i,new Yt(i,r,e.node)),t.push({attributes:[],backendNodeId:i,childNodeCount:0,localName:o,nodeId:i,nodeName:o,nodeType:1,nodeValue:\"\",parentId:e.nodeId,pseudoType:r})}})),t},t}(Ht);function Jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}function Qt(e,t){return e(t={exports:{}},t.exports),t.exports}var $t=Qt((function(e,t){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"\",n(n.s=21)}([function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('\"'+t+'\" is a required argument.')};var n=/^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.-]*)(?::(\\d+))?(.*)$/,r=/^data:.+\\,.+$/;function o(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t=\"\";return e.scheme&&(t+=e.scheme+\":\"),t+=\"//\",e.auth&&(t+=e.auth+\"@\"),e.host&&(t+=e.host),e.port&&(t+=\":\"+e.port),e.path&&(t+=e.path),t}function s(e){var n=e,r=o(e);if(r){if(!r.path)return e;n=r.path}for(var s,a=t.isAbsolute(n),u=n.split(/\\/+/),c=0,l=u.length-1;l>=0;l--)\".\"===(s=u[l])?u.splice(l,1):\"..\"===s?c++:c>0&&(\"\"===s?(u.splice(l+1,c),c=0):(u.splice(l,2),c--));return\"\"===(n=u.join(\"/\"))&&(n=a?\"/\":\".\"),r?(r.path=n,i(r)):n}function a(e,t){\"\"===e&&(e=\".\"),\"\"===t&&(t=\".\");var n=o(t),a=o(e);if(a&&(e=a.path||\"/\"),n&&!n.scheme)return a&&(n.scheme=a.scheme),i(n);if(n||t.match(r))return t;if(a&&!a.host&&!a.path)return a.host=t,i(a);var u=\"/\"===t.charAt(0)?t:s(e.replace(/\\/+$/,\"\")+\"/\"+t);return a?(a.path=u,i(a)):u}t.urlParse=o,t.urlGenerate=i,t.normalize=s,t.join=a,t.isAbsolute=function(e){return\"/\"===e.charAt(0)||n.test(e)},t.relative=function(e,t){\"\"===e&&(e=\".\"),e=e.replace(/\\/$/,\"\");for(var n=0;0!==t.indexOf(e+\"/\");){var r=e.lastIndexOf(\"/\");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\\/]+:\\/)?\\/*$/))return t;++n}return Array(n+1).join(\"../\")+t.substr(e.length+1)};var u=!(\"__proto__\"in Object.create(null));function c(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=u?c:function(e){return l(e)?\"$\"+e:e},t.fromSetString=u?c:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=d(e.source,t.source);return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\\)]}'[^\\n]*\\n/,\"\"))},t.computeSourceURL=function(e,t,n){if(t=t||\"\",e&&(\"/\"!==e[e.length-1]&&\"/\"!==t[0]&&(e+=\"/\"),t=e+t),n){var r=o(n);if(!r)throw new Error(\"sourceMapURL could not be parsed\");if(r.path){var u=r.path.lastIndexOf(\"/\");u>=0&&(r.path=r.path.substring(0,u+1))}t=a(i(r),t)}return s(t)}},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type=\"decl\",n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(((r=n(2))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=s(n(10)),o=s(n(11)),i=s(n(3));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},e)this[t]=e[t]}var t=e.prototype;return t.error=function(e,t){if(void 0===t&&(t={}),this.source){var n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new r.default(e)},t.warn=function(e,t,n){var r={node:this};for(var o in n)r[o]=n[o];return e.warn(t,r)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.toString=function(e){void 0===e&&(e=i.default),e.stringify&&(e=e.stringify);var t=\"\";return e(this,(function(e){t+=e})),t},t.clone=function(e){void 0===e&&(e={});var t=function e(t,n){var r=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var i=t[o],s=typeof i;\"parent\"===o&&\"object\"===s?n&&(r[o]=n):\"source\"===o?r[o]=i:i instanceof Array?r[o]=i.map((function(t){return e(t,r)})):(\"object\"===s&&null!==i&&(i=e(i)),r[o]=i)}return r}(this);for(var n in e)t[n]=e[n];return t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.replaceWith=function(){if(this.parent){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];this.parent.insertBefore(this,i)}this.remove()}return this},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.before=function(e){return this.parent.insertBefore(this,e),this},t.after=function(e){return this.parent.insertAfter(this,e),this},t.toJSON=function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&\"parent\"!==t){var n=this[t];n instanceof Array?e[t]=n.map((function(e){return\"object\"==typeof e&&e.toJSON?e.toJSON():e})):\"object\"==typeof n&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e},t.raw=function(e,t){return(new o.default).raw(this,e,t)},t.root=function(){for(var e=this;e.parent;)e=e.parent;return e},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.positionInside=function(e){for(var t=this.toString(),n=this.source.start.column,r=this.source.start.line,o=0;o<e;o++)\"\\n\"===t[o]?(n=1,r+=1):n+=1;return{line:r,column:n}},t.positionBy=function(e){var t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){var n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t},e}();t.default=a,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(11))&&r.__esModule?r:{default:r},i=function(e,t){new o.default(t).stringify(e)};t.default=i,e.exports=t.default},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];\".\"===o?e.splice(r,1):\"..\"===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift(\"..\");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t=\"\",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s=i>=0?arguments[i]:e.cwd();if(\"string\"!=typeof s)throw new TypeError(\"Arguments to path.resolve must be strings\");s&&(t=s+\"/\"+t,o=\"/\"===s.charAt(0))}return(o?\"/\":\"\")+(t=n(r(t.split(\"/\"),(function(e){return!!e})),!o).join(\"/\"))||\".\"},t.normalize=function(e){var i=t.isAbsolute(e),s=\"/\"===o(e,-1);return(e=n(r(e.split(\"/\"),(function(e){return!!e})),!i).join(\"/\"))||i||(e=\".\"),e&&s&&(e+=\"/\"),(i?\"/\":\"\")+e},t.isAbsolute=function(e){return\"/\"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e})).join(\"/\"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var n=e.length-1;n>=0&&\"\"===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split(\"/\")),i=r(n.split(\"/\")),s=Math.min(o.length,i.length),a=s,u=0;u<s;u++)if(o[u]!==i[u]){a=u;break}var c=[];for(u=a;u<o.length;u++)c.push(\"..\");return(c=c.concat(i.slice(a))).join(\"/\")},t.sep=\"/\",t.delimiter=\":\",t.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?\"/\":\".\":n&&1===r?\"/\":e.slice(0,r)},t.basename=function(e,t){var n=function(e){\"string\"!=typeof e&&(e+=\"\");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?\"\":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,n=0,r=-1,o=!0,i=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(o=!1,r=s+1),46===a?-1===t?t=s:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=s+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?\"\":e.slice(t,r)};var o=\"b\"===\"ab\".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(36))},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=i(n(40)),o=i(n(42));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t){var n=new o.default(e,t),i=new r.default(n);try{i.parse()}catch(e){throw e}return i.root};t.default=s,e.exports=t.default},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type=\"comment\",n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(((r=n(2))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type=\"atrule\",n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.append=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.append).call.apply(t,[this].concat(r))},o.prepend=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.prepend).call.apply(t,[this].concat(r))},r}(((r=n(8))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=i(n(1)),o=i(n(6));function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(e){var t,i;function a(){return e.apply(this,arguments)||this}i=e,(t=a).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i;var u,c=a.prototype;return c.push=function(e){return e.parent=this,this.nodes.push(e),this},c.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;if(this.indexes[t]=0,this.nodes){for(var n,r;this.indexes[t]<this.nodes.length&&(n=this.indexes[t],!1!==(r=e(this.nodes[n],n)));)this.indexes[t]+=1;return delete this.indexes[t],r}},c.walk=function(e){return this.each((function(t,n){var r;try{r=e(t,n)}catch(e){if(e.postcssNode=t,e.stack&&t.source&&/\\n\\s{4}at /.test(e.stack)){var o=t.source;e.stack=e.stack.replace(/\\n\\s{4}at /,\"$&\"+o.input.from+\":\"+o.start.line+\":\"+o.start.column+\"$&\")}throw e}return!1!==r&&t.walk&&(r=t.walk(e)),r}))},c.walkDecls=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if(\"decl\"===n.type&&e.test(n.prop))return t(n,r)})):this.walk((function(n,r){if(\"decl\"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk((function(e,n){if(\"decl\"===e.type)return t(e,n)})))},c.walkRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if(\"rule\"===n.type&&e.test(n.selector))return t(n,r)})):this.walk((function(n,r){if(\"rule\"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk((function(e,n){if(\"rule\"===e.type)return t(e,n)})))},c.walkAtRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if(\"atrule\"===n.type&&e.test(n.name))return t(n,r)})):this.walk((function(n,r){if(\"atrule\"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk((function(e,n){if(\"atrule\"===e.type)return t(e,n)})))},c.walkComments=function(e){return this.walk((function(t,n){if(\"comment\"===t.type)return e(t,n)}))},c.append=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r],s=this.normalize(i,this.last),a=Array.isArray(s),u=0;for(s=a?s:s[Symbol.iterator]();;){var c;if(a){if(u>=s.length)break;c=s[u++]}else{if((u=s.next()).done)break;c=u.value}var l=c;this.nodes.push(l)}}return this},c.prepend=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t=t.reverse(),o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var s;if(o){if(i>=r.length)break;s=r[i++]}else{if((i=r.next()).done)break;s=i.value}var a=s,u=this.normalize(a,this.first,\"prepend\").reverse(),c=u,l=Array.isArray(c),d=0;for(c=l?c:c[Symbol.iterator]();;){var h;if(l){if(d>=c.length)break;h=c[d++]}else{if((d=c.next()).done)break;h=d.value}var p=h;this.nodes.unshift(p)}for(var f in this.indexes)this.indexes[f]=this.indexes[f]+u.length}return this},c.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes){var n=this.nodes,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}i.cleanRaws(t)}}},c.insertBefore=function(e,t){var n,r=0===(e=this.index(e))&&\"prepend\",o=this.normalize(t,this.nodes[e],r).reverse(),i=o,s=Array.isArray(i),a=0;for(i=s?i:i[Symbol.iterator]();;){var u;if(s){if(a>=i.length)break;u=i[a++]}else{if((a=i.next()).done)break;u=a.value}var c=u;this.nodes.splice(e,0,c)}for(var l in this.indexes)e<=(n=this.indexes[l])&&(this.indexes[l]=n+o.length);return this},c.insertAfter=function(e,t){e=this.index(e);var n,r=this.normalize(t,this.nodes[e]).reverse(),o=r,i=Array.isArray(o),s=0;for(o=i?o:o[Symbol.iterator]();;){var a;if(i){if(s>=o.length)break;a=o[s++]}else{if((s=o.next()).done)break;a=s.value}var u=a;this.nodes.splice(e+1,0,u)}for(var c in this.indexes)e<(n=this.indexes[c])&&(this.indexes[c]=n+r.length);return this},c.removeChild=function(e){var t;for(var n in e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},c.removeAll=function(){var e=this.nodes,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}r.parent=void 0}return this.nodes=[],this},c.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls((function(r){t.props&&-1===t.props.indexOf(r.prop)||t.fast&&-1===r.value.indexOf(t.fast)||(r.value=r.value.replace(e,n))})),this},c.every=function(e){return this.nodes.every(e)},c.some=function(e){return this.nodes.some(e)},c.index=function(e){return\"number\"==typeof e?e:this.nodes.indexOf(e)},c.normalize=function(e,t){var i=this;if(\"string\"==typeof e)e=function e(t){return t.map((function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t}))}(n(5)(e).nodes);else if(Array.isArray(e)){var s=e=e.slice(0),a=Array.isArray(s),u=0;for(s=a?s:s[Symbol.iterator]();;){var c;if(a){if(u>=s.length)break;c=s[u++]}else{if((u=s.next()).done)break;c=u.value}var l=c;l.parent&&l.parent.removeChild(l,\"ignore\")}}else if(\"root\"===e.type){var d=e=e.nodes.slice(0),h=Array.isArray(d),p=0;for(d=h?d:d[Symbol.iterator]();;){var f;if(h){if(p>=d.length)break;f=d[p++]}else{if((p=d.next()).done)break;f=p.value}var g=f;g.parent&&g.parent.removeChild(g,\"ignore\")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error(\"Value field is missed in node creation\");\"string\"!=typeof e.value&&(e.value=String(e.value)),e=[new r.default(e)]}else if(e.selector)e=[new(n(9))(e)];else if(e.name)e=[new(n(7))(e)];else{if(!e.text)throw new Error(\"Unknown node type in node creation\");e=[new o.default(e)]}return e.map((function(e){return e.parent&&e.parent.removeChild(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/[^\\s]/g,\"\")),e.parent=i,e}))},(u=[{key:\"first\",get:function(){if(this.nodes)return this.nodes[0]}},{key:\"last\",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}])&&s(a.prototype,u),a}(i(n(2)).default);t.default=a,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=i(n(8)),o=i(n(19));function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(e){var t,n,r;function i(t){var n;return(n=e.call(this,t)||this).type=\"rule\",n.nodes||(n.nodes=[]),n}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,(r=[{key:\"selectors\",get:function(){return o.default.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\\s*/):null,n=t?t[0]:\",\"+this.raw(\"between\",\"beforeOpen\");this.selector=e.join(n)}}])&&s(i.prototype,r),i}(r.default);t.default=a,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=s(n(22)),o=s(n(23)),i=s(n(24));function s(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=\"function\"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf(\"[native code]\")))return e;var n;if(\"function\"!=typeof e)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)})(e)}function u(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,n){return(c=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&l(o,n.prototype),o}).apply(null,arguments)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){var t,n;function s(t,n,r,o,i,a){var u;return(u=e.call(this,t)||this).name=\"CssSyntaxError\",u.reason=t,i&&(u.file=i),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==r&&(u.line=n,u.column=r),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(u),s),u}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=s.prototype;return a.setMessage=function(){this.message=this.plugin?this.plugin+\": \":\"\",this.message+=this.file?this.file:\"<css input>\",void 0!==this.line&&(this.message+=\":\"+this.line+\":\"+this.column),this.message+=\": \"+this.reason},a.showSourceCode=function(e){var t=this;if(!this.source)return\"\";var n=this.source;i.default&&(void 0===e&&(e=r.default.stdout),e&&(n=(0,i.default)(n)));var s=n.split(/\\r?\\n/),a=Math.max(this.line-3,0),u=Math.min(this.line+2,s.length),c=String(u).length;function l(t){return e&&o.default.red?o.default.red.bold(t):t}function d(t){return e&&o.default.gray?o.default.gray(t):t}return s.slice(a,u).map((function(e,n){var r=a+1+n,o=\" \"+(\" \"+r).slice(-c)+\" | \";if(r===t.line){var i=d(o.replace(/\\d/g,\" \"))+e.slice(0,t.column-1).replace(/[^\\t]/g,\" \");return l(\">\")+d(o)+e+\"\\n \"+i+l(\"^\")}return\" \"+d(o)+e})).join(\"\\n\")},a.toString=function(){var e=this.showSourceCode();return e&&(e=\"\\n\\n\"+e+\"\\n\"),this.name+\": \"+this.message+e},s}(a(Error));t.default=h,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r={colon:\": \",indent:\" \",beforeDecl:\"\\n\",beforeRule:\"\\n\",beforeOpen:\" \",beforeClose:\"\\n\",beforeComment:\"\\n\",after:\"\\n\",emptyBody:\"\",commentLeft:\" \",commentRight:\" \",semicolon:!1},o=function(){function e(e){this.builder=e}var t=e.prototype;return t.stringify=function(e,t){this[e.type](e,t)},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.comment=function(e){var t=this.raw(e,\"left\",\"commentLeft\"),n=this.raw(e,\"right\",\"commentRight\");this.builder(\"/*\"+t+e.text+n+\"*/\",e)},t.decl=function(e,t){var n=this.raw(e,\"between\",\"colon\"),r=e.prop+n+this.rawValue(e,\"value\");e.important&&(r+=e.raws.important||\" !important\"),t&&(r+=\";\"),this.builder(r,e)},t.rule=function(e){this.block(e,this.rawValue(e,\"selector\")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,\"end\")},t.atrule=function(e,t){var n=\"@\"+e.name,r=e.params?this.rawValue(e,\"params\"):\"\";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=\" \"),e.nodes)this.block(e,n+r);else{var o=(e.raws.between||\"\")+(t?\";\":\"\");this.builder(n+r+o,e)}},t.body=function(e){for(var t=e.nodes.length-1;t>0&&\"comment\"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,\"semicolon\"),r=0;r<e.nodes.length;r++){var o=e.nodes[r],i=this.raw(o,\"before\");i&&this.builder(i),this.stringify(o,t!==r||n)}},t.block=function(e,t){var n,r=this.raw(e,\"between\",\"beforeOpen\");this.builder(t+r+\"{\",e,\"start\"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,\"after\")):n=this.raw(e,\"after\",\"emptyBody\"),n&&this.builder(n),this.builder(\"}\",e,\"end\")},t.raw=function(e,t,n){var o;if(n||(n=t),t&&void 0!==(o=e.raws[t]))return o;var i=e.parent;if(\"before\"===n&&(!i||\"root\"===i.type&&i.first===e))return\"\";if(!i)return r[n];var s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[n])return s.rawCache[n];if(\"before\"===n||\"after\"===n)return this.beforeAfter(e,n);var a,u=\"raw\"+((a=n)[0].toUpperCase()+a.slice(1));return this[u]?o=this[u](s,e):s.walk((function(e){if(void 0!==(o=e.raws[t]))return!1})),void 0===o&&(o=r[n]),s.rawCache[n]=o,o},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&\"decl\"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){var o=n.raws.before.split(\"\\n\");return t=(t=o[o.length-1]).replace(/[^\\s]/g,\"\"),!1}})),t);var t},t.rawBeforeComment=function(e,t){var n;return e.walkComments((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf(\"\\n\")&&(n=n.replace(/[^\\n]+$/,\"\")),!1})),void 0===n?n=this.raw(t,null,\"beforeDecl\"):n&&(n=n.replace(/[^\\s]/g,\"\")),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf(\"\\n\")&&(n=n.replace(/[^\\n]+$/,\"\")),!1})),void 0===n?n=this.raw(t,null,\"beforeRule\"):n&&(n=n.replace(/[^\\s]/g,\"\")),n},t.rawBeforeRule=function(e){var t;return e.walk((function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return-1!==(t=n.raws.before).indexOf(\"\\n\")&&(t=t.replace(/[^\\n]+$/,\"\")),!1})),t&&(t=t.replace(/[^\\s]/g,\"\")),t},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return-1!==(t=e.raws.after).indexOf(\"\\n\")&&(t=t.replace(/[^\\n]+$/,\"\")),!1})),t&&(t=t.replace(/[^\\s]/g,\"\")),t},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if(\"decl\"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\\s:]/g,\"\"),!1})),t},t.beforeAfter=function(e,t){var n;n=\"decl\"===e.type?this.raw(e,null,\"beforeDecl\"):\"comment\"===e.type?this.raw(e,null,\"beforeComment\"):\"before\"===t?this.raw(e,null,\"beforeRule\"):this.raw(e,null,\"beforeClose\");for(var r=e.parent,o=0;r&&\"root\"!==r.type;)o+=1,r=r.parent;if(-1!==n.indexOf(\"\\n\")){var i=this.raw(e,null,\"indent\");if(i.length)for(var s=0;s<o;s++)n+=i}return n},t.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},e}();t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(13))&&r.__esModule?r:{default:r},i=function(){function e(e){void 0===e&&(e=[]),this.version=\"7.0.32\",this.plugins=this.normalize(e)}var t=e.prototype;return t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t.process=function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){return void 0===t&&(t={}),0===this.plugins.length&&(t.parser,t.stringifier),new o.default(this,e,t)})),t.normalize=function(e){var t=[],n=e,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var s=i;if(s.postcss&&(s=s.postcss),\"object\"==typeof s&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if(\"function\"==typeof s)t.push(s);else if(\"object\"!=typeof s||!s.parse&&!s.stringify)throw new Error(s+\" is not a PostCSS plugin\")}return t},e}();t.default=i,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=a(n(25)),o=a(n(3)),i=(a(n(37)),a(n(38))),s=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e){return\"object\"==typeof e&&\"function\"==typeof e.then}var l=function(){function e(t,n,r){var o;if(this.stringified=!1,this.processed=!1,\"object\"==typeof n&&null!==n&&\"root\"===n.type)o=n;else if(n instanceof e||n instanceof i.default)o=n.root,n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var a=s.default;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(n,r)}catch(e){this.error=e}}this.result=new i.default(t,o,r)}var t,n=e.prototype;return n.warnings=function(){return this.sync().warnings()},n.toString=function(){return this.css},n.then=function(e,t){return this.async().then(e,t)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.handleError=function(e,t){try{this.error=e,\"CssSyntaxError\"!==e.name||e.plugin?t.postcssVersion:(e.plugin=t.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}},n.asyncTick=function(e,t){var n=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,e();try{var r=this.processor.plugins[this.plugin],o=this.run(r);this.plugin+=1,c(o)?o.then((function(){n.asyncTick(e,t)})).catch((function(e){n.handleError(e,r),n.processed=!0,t(e)})):this.asyncTick(e,t)}catch(e){this.processed=!0,t(e)}},n.async=function(){var e=this;return this.processed?new Promise((function(t,n){e.error?n(e.error):t(e.stringify())})):(this.processing||(this.processing=new Promise((function(t,n){if(e.error)return n(e.error);e.plugin=0,e.asyncTick(t,n)})).then((function(){return e.processed=!0,e.stringify()}))),this.processing)},n.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error(\"Use process(css).then(cb) to work with async plugins\");if(this.error)throw this.error;var e=this.result.processor.plugins,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var o=r;if(c(this.run(o)))throw new Error(\"Use process(css).then(cb) to work with async plugins\")}return this.result},n.run=function(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){throw this.handleError(t,e),t}},n.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=o.default;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new r.default(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},(t=[{key:\"processor\",get:function(){return this.result.processor}},{key:\"opts\",get:function(){return this.result.opts}},{key:\"css\",get:function(){return this.stringify().css}},{key:\"content\",get:function(){return this.stringify().content}},{key:\"map\",get:function(){return this.stringify().map}},{key:\"root\",get:function(){return this.sync().root}},{key:\"messages\",get:function(){return this.sync().messages}}])&&u(e.prototype,t),e}();t.default=l,e.exports=t.default},function(e,t,n){(function(e){var r=n(27),o=n(28),i=n(29);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError(\"Invalid typed array length\");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if(\"number\"==typeof e){if(\"string\"==typeof t)throw new Error(\"If encoding is specified then the first argument must be a string\");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if(\"number\"==typeof t)throw new TypeError('\"value\" argument must not be a number');return\"undefined\"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError(\"'offset' is out of bounds\");if(t.byteLength<n+(r||0))throw new RangeError(\"'length' is out of bounds\");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t),e}(e,t,n,r):\"string\"==typeof t?function(e,t,n){if(\"string\"==typeof n&&\"\"!==n||(n=\"utf8\"),!u.isEncoding(n))throw new TypeError('\"encoding\" must be a valid string encoding');var r=0|f(t,n),o=(e=a(e,r)).write(t,n);return o!==r&&(e=e.slice(0,o)),e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|p(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if(\"undefined\"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||\"length\"in t)return\"number\"!=typeof t.length||(r=t.length)!=r?a(e,0):h(e,t);if(\"Buffer\"===t.type&&i(t.data))return h(e,t.data)}var r;throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")}(e,t)}function l(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be a number');if(e<0)throw new RangeError('\"size\" argument must not be negative')}function d(e,t){if(l(t),e=a(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=s())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+s().toString(16)+\" bytes\");return 0|e}function f(e,t){if(u.isBuffer(e))return e.length;if(\"undefined\"!=typeof ArrayBuffer&&\"function\"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;\"string\"!=typeof e&&(e=\"\"+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":case void 0:return U(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*n;case\"hex\":return n>>>1;case\"base64\":return z(e).length;default:if(r)return U(e).length;t=(\"\"+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return\"\";if((n>>>=0)<=(t>>>=0))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return N(this,t,n);case\"utf8\":case\"utf-8\":return E(this,t,n);case\"ascii\":return x(this,t,n);case\"latin1\":case\"binary\":return T(this,t,n);case\"base64\":return k(this,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return O(this,t,n);default:if(r)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if(\"string\"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if(\"string\"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if(\"number\"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&\"function\"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError(\"val must be string, number or Buffer\")}function y(e,t,n,r,o){var i,s=1,a=e.length,u=t.length;if(void 0!==r&&(\"ucs2\"===(r=String(r).toLowerCase())||\"ucs-2\"===r||\"utf16le\"===r||\"utf-16le\"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=n;i<a;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(n+u>a&&(n=a-u),i=n;i>=0;i--){for(var d=!0,h=0;h<u;h++)if(c(e,i+h)!==c(t,h)){d=!1;break}if(d)return i}return-1}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError(\"Invalid hex string\");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function _(e,t,n,r){return H(U(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function I(e,t,n,r){return w(e,t,n,r)}function S(e,t,n,r){return H(z(t),e,n,r)}function C(e,t,n,r){return H(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,u,c=e[o],l=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n=\"\",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function x(e,t,n){var r=\"\";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function T(e,t,n){var r=\"\";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o=\"\",i=t;i<n;++i)o+=F(e[i]);return o}function O(e,t,n){for(var r=e.slice(t,n),o=\"\",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function A(e,t,n){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(e+t>n)throw new RangeError(\"Trying to access beyond buffer length\")}function M(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('\"value\" argument is out of bounds');if(n+r>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function D(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"Index out of range\")}function R(e,t,n,r,i){return i||D(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return i||D(e,0,n,8),o.write(e,t,n,r,52,8),n+8}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&\"function\"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,\"undefined\"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?a(e,t):void 0!==n?\"string\"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError(\"Arguments must be Buffers\");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var s=e[n];if(!u.isBuffer(s))throw new TypeError('\"list\" argument must be an Array of Buffers');s.copy(r,o),o+=s.length}return r},u.byteLength=f,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?\"\":0===arguments.length?E(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e=\"\",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString(\"hex\",0,n).match(/.{2}/g).join(\" \"),this.length>n&&(e+=\" ... \")),\"<Buffer \"+e+\">\"},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError(\"out of range index\");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(r,o),l=e.slice(t,n),d=0;d<a;++d)if(c[d]!==l[d]){i=c[d],s=l[d];break}return i<s?-1:s<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r=\"utf8\",n=this.length,t=0;else if(void 0===n&&\"string\"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t|=0,isFinite(n)?(n|=0,void 0===r&&(r=\"utf8\")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");r||(r=\"utf8\");for(var i=!1;;)switch(r){case\"hex\":return b(this,e,t,n);case\"utf8\":case\"utf-8\":return _(this,e,t,n);case\"ascii\":return w(this,e,t,n);case\"latin1\":case\"binary\":return I(this,e,t,n);case\"base64\":return S(this,e,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return C(this,e,t,n);default:if(i)throw new TypeError(\"Unknown encoding: \"+r);r=(\"\"+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(n<0||n>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(r<0)throw new RangeError(\"sourceEnd out of bounds\");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},u.prototype.fill=function(e,t,n,r){if(\"string\"==typeof e){if(\"string\"==typeof t?(r=t,t=0,n=this.length):\"string\"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&\"string\"!=typeof r)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof r&&!u.isEncoding(r))throw new TypeError(\"Unknown encoding: \"+r)}else\"number\"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError(\"Out of range index\");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),\"number\"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=u.isBuffer(e)?e:U(new u(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var j=/[^+\\/0-9A-Za-z-_]/g;function F(e){return e<16?\"0\"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\\s+|\\s+$/g,\"\")}(e).replace(j,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function H(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(26))},function(e,t,n){t.SourceMapGenerator=n(16).SourceMapGenerator,t.SourceMapConsumer=n(32).SourceMapConsumer,t.SourceNode=n(35).SourceNode},function(e,t,n){var r=n(17),o=n(0),i=n(18).ArraySet,s=n(31).MappingList;function a(e){e||(e={}),this._file=o.getArg(e,\"file\",null),this._sourceRoot=o.getArg(e,\"sourceRoot\",null),this._skipValidation=o.getArg(e,\"skipValidation\",!1),this._sources=new i,this._names=new i,this._mappings=new s,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,n=new a({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=o.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){var i=r;null!==t&&(i=o.relative(t,r)),n._sources.has(i)||n._sources.add(i);var s=e.sourceContentFor(r);null!=s&&n.setSourceContent(r,s)})),n},a.prototype.addMapping=function(e){var t=o.getArg(e,\"generated\"),n=o.getArg(e,\"original\",null),r=o.getArg(e,\"source\",null),i=o.getArg(e,\"name\",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},a.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\\'s \"file\" property. Both were omitted.');r=e.file}var s=this._sourceRoot;null!=s&&(r=o.relative(s,r));var a=new i,u=new i;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=n&&(t.source=o.join(n,t.source)),null!=s&&(t.source=o.relative(s,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var c=t.source;null==c||a.has(c)||a.add(c);var l=t.name;null==l||u.has(l)||u.add(l)}),this),this._sources=a,this._names=u,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),null!=s&&(t=o.relative(s,t)),this.setSourceContent(t,r))}),this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&\"number\"!=typeof t.line&&\"number\"!=typeof t.column)throw new Error(\"original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.\");if((!(e&&\"line\"in e&&\"column\"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&\"line\"in e&&\"column\"in e&&t&&\"line\"in t&&\"column\"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error(\"Invalid mapping: \"+JSON.stringify({generated:e,source:n,original:t,name:r}))},a.prototype._serializeMappings=function(){for(var e,t,n,i,s=0,a=1,u=0,c=0,l=0,d=0,h=\"\",p=this._mappings.toArray(),f=0,g=p.length;f<g;f++){if(e=\"\",(t=p[f]).generatedLine!==a)for(s=0;t.generatedLine!==a;)e+=\";\",a++;else if(f>0){if(!o.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=\",\"}e+=r.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=r.encode(i-d),d=i,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-l),l=n)),h+=e}return h},a.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=a},function(e,t,n){var r=n(30);t.encode=function(e){var t,n=\"\",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&o,(o>>>=5)>0&&(t|=32),n+=r.encode(t)}while(o>0);return n},t.decode=function(e,t,n){var o,i,s,a,u=e.length,c=0,l=0;do{if(t>=u)throw new Error(\"Expected more digits in base 64 VLQ value.\");if(-1===(i=r.decode(e.charCodeAt(t++))))throw new Error(\"Invalid base64 digit: \"+e.charAt(t-1));o=!!(32&i),c+=(i&=31)<<l,l+=5}while(o);n.value=(a=(s=c)>>1,1==(1&s)?-a:a),n.rest=t}},function(e,t,n){var r=n(0),o=Object.prototype.hasOwnProperty,i=\"undefined\"!=typeof Map;function s(){this._array=[],this._set=i?new Map:Object.create(null)}s.fromArray=function(e,t){for(var n=new s,r=0,o=e.length;r<o;r++)n.add(e[r],t);return n},s.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},s.prototype.add=function(e,t){var n=i?e:r.toSetString(e),s=i?this.has(e):o.call(this._set,n),a=this._array.length;s&&!t||this._array.push(e),s||(i?this._set.set(e,a):this._set[n]=a)},s.prototype.has=function(e){if(i)return this._set.has(e);var t=r.toSetString(e);return o.call(this._set,t)},s.prototype.indexOf=function(e){if(i){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(o.call(this._set,n))return this._set[n]}throw new Error('\"'+e+'\" is not in the set.')},s.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error(\"No element indexed by \"+e)},s.prototype.toArray=function(){return this._array.slice()},t.ArraySet=s},function(e,t,n){t.__esModule=!0,t.default=void 0;var r={split:function(e,t,n){for(var r=[],o=\"\",i=!1,s=0,a=!1,u=!1,c=0;c<e.length;c++){var l=e[c];a?u?u=!1:\"\\\\\"===l?u=!0:l===a&&(a=!1):'\"'===l||\"'\"===l?a=l:\"(\"===l?s+=1:\")\"===l?s>0&&(s-=1):0===s&&-1!==t.indexOf(l)&&(i=!0),i?(\"\"!==o&&r.push(o.trim()),o=\"\",i=!1):o+=l}return(n||\"\"!==o)&&r.push(o.trim()),r},space:function(e){return r.split(e,[\" \",\"\\n\",\"\\t\"])},comma:function(e){return r.split(e,[\",\"],!0)}},o=r;t.default=o,e.exports=t.default},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,r;function o(t){var n;return(n=e.call(this,t)||this).type=\"root\",n.nodes||(n.nodes=[]),n}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=o.prototype;return i.removeChild=function(t,n){var r=this.index(t);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},i.normalize=function(t,n,r){var o=e.prototype.normalize.call(this,t);if(n)if(\"prepend\"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n){var i=o,s=Array.isArray(i),a=0;for(i=s?i:i[Symbol.iterator]();;){var u;if(s){if(a>=i.length)break;u=i[a++]}else{if((a=i.next()).done)break;u=a.value}u.raws.before=n.raws.before}}return o},i.toResult=function(e){return void 0===e&&(e={}),new(n(13))(new(n(12)),this,e).stringify()},o}(((r=n(8))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=p(n(1)),o=p(n(12)),i=p(n(3)),s=p(n(6)),a=p(n(7)),u=p(n(45)),c=p(n(5)),l=p(n(19)),d=p(n(9)),h=p(n(20));function p(e){return e&&e.__esModule?e:{default:e}}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new o.default(t)}f.plugin=function(e,t){function n(){var n=t.apply(void 0,arguments);return n.postcssPlugin=e,n.postcssVersion=(new o.default).version,n}var r;return Object.defineProperty(n,\"postcss\",{get:function(){return r||(r=n()),r}}),n.process=function(e,t,r){return f([n(r)]).process(e,t)},n},f.stringify=i.default,f.parse=c.default,f.vendor=u.default,f.list=l.default,f.comment=function(e){return new s.default(e)},f.atRule=function(e){return new a.default(e)},f.decl=function(e){return new r.default(e)},f.rule=function(e){return new d.default(e)},f.root=function(e){return new h.default(e)};var g=f;t.default=g,e.exports=t.default},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){(function(r){t.__esModule=!0,t.default=void 0;var o=s(n(15)),i=s(n(4));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(e,t,n){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n}var t=e.prototype;return t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.previous=function(){var e=this;return this.previousMaps||(this.previousMaps=[],this.root.walk((function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;-1===e.previousMaps.indexOf(n)&&e.previousMaps.push(n)}}))),this.previousMaps},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)for(var e,t=this.root.nodes.length-1;t>=0;t--)\"comment\"===(e=this.root.nodes[t]).type&&0===e.text.indexOf(\"# sourceMappingURL=\")&&this.root.removeChild(t)},t.setSourcesContent=function(){var e=this,t={};this.root.walk((function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var o=e.relative(r);e.map.setSourceContent(o,n.source.input.css)}}}))},t.applyPrevMaps=function(){var e=this.previous(),t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var s=r,a=this.relative(s.file),u=s.root||i.default.dirname(s.file),c=void 0;!1===this.mapOpts.sourcesContent?(c=new o.default.SourceMapConsumer(s.text)).sourcesContent&&(c.sourcesContent=c.sourcesContent.map((function(){return null}))):c=s.consumer(),this.map.applySourceMap(c,a,this.relative(u))}},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},t.toBase64=function(e){return r?r.from(e).toString(\"base64\"):window.btoa(unescape(encodeURIComponent(e)))},t.addAnnotation=function(){var e;e=this.isInline()?\"data:application/json;base64,\"+this.toBase64(this.map.toString()):\"string\"==typeof this.mapOpts.annotation?this.mapOpts.annotation:this.outputFile()+\".map\";var t=\"\\n\";-1!==this.css.indexOf(\"\\r\\n\")&&(t=\"\\r\\n\"),this.css+=t+\"/*# sourceMappingURL=\"+e+\" */\"},t.outputFile=function(){return this.opts.to?this.relative(this.opts.to):this.opts.from?this.relative(this.opts.from):\"to.css\"},t.generateMap=function(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.relative=function(e){if(0===e.indexOf(\"<\"))return e;if(/^\\w+:\\/\\//.test(e))return e;var t=this.opts.to?i.default.dirname(this.opts.to):\".\";return\"string\"==typeof this.mapOpts.annotation&&(t=i.default.dirname(i.default.resolve(t,this.mapOpts.annotation))),e=i.default.relative(t,e),\"\\\\\"===i.default.sep?e.replace(/\\\\/g,\"/\"):e},t.sourcePath=function(e){return this.mapOpts.from?this.mapOpts.from:this.relative(e.source.input.from)},t.generateString=function(){var e=this;this.css=\"\",this.map=new o.default.SourceMapGenerator({file:this.outputFile()});var t,n,r=1,i=1;this.stringify(this.root,(function(o,s,a){if(e.css+=o,s&&\"end\"!==a&&(s.source&&s.source.start?e.map.addMapping({source:e.sourcePath(s),generated:{line:r,column:i-1},original:{line:s.source.start.line,column:s.source.start.column-1}}):e.map.addMapping({source:\"<no source>\",original:{line:1,column:0},generated:{line:r,column:i-1}})),(t=o.match(/\\n/g))?(r+=t.length,n=o.lastIndexOf(\"\\n\"),i=o.length-n):i+=o.length,s&&\"start\"!==a){var u=s.parent||{raws:{}};(\"decl\"!==s.type||s!==u.last||u.raws.semicolon)&&(s.source&&s.source.end?e.map.addMapping({source:e.sourcePath(s),generated:{line:r,column:i-2},original:{line:s.source.end.line,column:s.source.end.column-1}}):e.map.addMapping({source:\"<no source>\",original:{line:1,column:0},generated:{line:r,column:i-1}}))}}))},t.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var e=\"\";return this.stringify(this.root,(function(t){e+=t})),[e]},e}();t.default=a,e.exports=t.default}).call(this,n(14).Buffer)},function(e,t){var n;n=function(){return this}();try{n=n||new Function(\"return this\")()}catch(e){\"object\"==typeof window&&(n=window)}e.exports=n},function(e,t,n){t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=c(e),r=n[0],s=n[1],a=new i(function(e,t,n){return 3*(t+n)/4-n}(0,r,s)),u=0,l=s>0?r-4:r,d=0;d<l;d+=4)t=o[e.charCodeAt(d)]<<18|o[e.charCodeAt(d+1)]<<12|o[e.charCodeAt(d+2)]<<6|o[e.charCodeAt(d+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=255&t;return 2===s&&(t=o[e.charCodeAt(d)]<<2|o[e.charCodeAt(d+1)]>>4,a[u++]=255&t),1===s&&(t=o[e.charCodeAt(d)]<<10|o[e.charCodeAt(d+1)]<<4|o[e.charCodeAt(d+2)]>>2,a[u++]=t>>8&255,a[u++]=255&t),a},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=0,a=n-o;s<a;s+=16383)i.push(l(e,s,s+16383>a?a:s+16383));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+\"==\")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+\"=\")),i.join(\"\")};for(var r=[],o=[],i=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,s=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",a=0,u=s.length;a<u;++a)r[a]=s[a],o[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var n=e.indexOf(\"=\");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,s=[],a=t;a<n;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join(\"\")}o[\"-\".charCodeAt(0)]=62,o[\"_\".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,s,a=8*o-r-1,u=(1<<a)-1,c=u>>1,l=-7,d=n?o-1:0,h=n?-1:1,p=e[t+d];for(d+=h,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+d],d+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+e[t+d],d+=h,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=c}return(p?-1:1)*s*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,d=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(s++,u/=2),s+d>=l?(a=0,s=l):s+d>=1?(a=(t*u-1)*Math.pow(2,o),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,o),s=0));o>=8;e[n+p]=255&a,p+=f,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;e[n+p]=255&s,p+=f,s/=256,c-=8);e[n+p-f]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return\"[object Array]\"==n.call(e)}},function(e,t){var n=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".split(\"\");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError(\"Must be between 0 and 63: \"+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},function(e,t,n){var r=n(0);function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){var t,n,o,i,s,a;n=e,o=(t=this._last).generatedLine,i=n.generatedLine,s=t.generatedColumn,a=n.generatedColumn,i>o||i==o&&a>=s||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=o},function(e,t,n){var r=n(0),o=n(33),i=n(18).ArraySet,s=n(17),a=n(34).quickSort;function u(e,t){var n=e;return\"string\"==typeof e&&(n=r.parseSourceMapInput(e)),null!=n.sections?new d(n,t):new c(n,t)}function c(e,t){var n=e;\"string\"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,\"version\"),s=r.getArg(n,\"sources\"),a=r.getArg(n,\"names\",[]),u=r.getArg(n,\"sourceRoot\",null),c=r.getArg(n,\"sourcesContent\",null),l=r.getArg(n,\"mappings\"),d=r.getArg(n,\"file\",null);if(o!=this._version)throw new Error(\"Unsupported version: \"+o);u&&(u=r.normalize(u)),s=s.map(String).map(r.normalize).map((function(e){return u&&r.isAbsolute(u)&&r.isAbsolute(e)?r.relative(u,e):e})),this._names=i.fromArray(a.map(String),!0),this._sources=i.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map((function(e){return r.computeSourceURL(u,e,t)})),this.sourceRoot=u,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=t,this.file=d}function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var n=e;\"string\"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,\"version\"),s=r.getArg(n,\"sections\");if(o!=this._version)throw new Error(\"Unsupported version: \"+o);this._sources=new i,this._names=new i;var a={line:-1,column:0};this._sections=s.map((function(e){if(e.url)throw new Error(\"Support for url field in sections not implemented.\");var n=r.getArg(e,\"offset\"),o=r.getArg(n,\"line\"),i=r.getArg(n,\"column\");if(o<a.line||o===a.line&&i<a.column)throw new Error(\"Section offsets must be ordered and non-overlapping.\");return a=n,{generatedOffset:{generatedLine:o+1,generatedColumn:i+1},consumer:new u(r.getArg(e,\"map\"),t)}}))}u.fromSourceMap=function(e,t){return c.fromSourceMap(e,t)},u.prototype._version=3,u.prototype.__generatedMappings=null,Object.defineProperty(u.prototype,\"_generatedMappings\",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),u.prototype.__originalMappings=null,Object.defineProperty(u.prototype,\"_originalMappings\",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),u.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return\";\"===n||\",\"===n},u.prototype._parseMappings=function(e,t){throw new Error(\"Subclasses must implement _parseMappings\")},u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,u.prototype.eachMapping=function(e,t,n){var o,i=t||null;switch(n||u.GENERATED_ORDER){case u.GENERATED_ORDER:o=this._generatedMappings;break;case u.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error(\"Unknown order of iteration.\")}var s=this.sourceRoot;o.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=r.computeSourceURL(s,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},u.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,\"line\"),n={source:r.getArg(e,\"source\"),originalLine:t,originalColumn:r.getArg(e,\"column\",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,\"originalLine\",\"originalColumn\",r.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(void 0===e.column)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:r.getArg(a,\"generatedLine\",null),column:r.getArg(a,\"generatedColumn\",null),lastColumn:r.getArg(a,\"lastGeneratedColumn\",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==c;)i.push({line:r.getArg(a,\"generatedLine\",null),column:r.getArg(a,\"generatedColumn\",null),lastColumn:r.getArg(a,\"lastGeneratedColumn\",null)}),a=this._originalMappings[++s]}return i},t.SourceMapConsumer=u,c.prototype=Object.create(u.prototype),c.prototype.consumer=u,c.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},c.fromSourceMap=function(e,t){var n=Object.create(c.prototype),o=n._names=i.fromArray(e._names.toArray(),!0),s=n._sources=i.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map((function(e){return r.computeSourceURL(n.sourceRoot,e,t)}));for(var u=e._mappings.toArray().slice(),d=n.__generatedMappings=[],h=n.__originalMappings=[],p=0,f=u.length;p<f;p++){var g=u[p],v=new l;v.generatedLine=g.generatedLine,v.generatedColumn=g.generatedColumn,g.source&&(v.source=s.indexOf(g.source),v.originalLine=g.originalLine,v.originalColumn=g.originalColumn,g.name&&(v.name=o.indexOf(g.name)),h.push(v)),d.push(v)}return a(n.__originalMappings,r.compareByOriginalPositions),n},c.prototype._version=3,Object.defineProperty(c.prototype,\"sources\",{get:function(){return this._absoluteSources.slice()}}),c.prototype._parseMappings=function(e,t){for(var n,o,i,u,c,d=1,h=0,p=0,f=0,g=0,v=0,m=e.length,y=0,b={},_={},w=[],I=[];y<m;)if(\";\"===e.charAt(y))d++,y++,h=0;else if(\",\"===e.charAt(y))y++;else{for((n=new l).generatedLine=d,u=y;u<m&&!this._charIsMappingSeparator(e,u);u++);if(i=b[o=e.slice(y,u)])y+=o.length;else{for(i=[];y<u;)s.decode(e,y,_),c=_.value,y=_.rest,i.push(c);if(2===i.length)throw new Error(\"Found a source, but no line and column\");if(3===i.length)throw new Error(\"Found a source and line, but no column\");b[o]=i}n.generatedColumn=h+i[0],h=n.generatedColumn,i.length>1&&(n.source=g+i[1],g+=i[1],n.originalLine=p+i[2],p=n.originalLine,n.originalLine+=1,n.originalColumn=f+i[3],f=n.originalColumn,i.length>4&&(n.name=v+i[4],v+=i[4])),I.push(n),\"number\"==typeof n.originalLine&&w.push(n)}a(I,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=I,a(w,r.compareByOriginalPositions),this.__originalMappings=w},c.prototype._findMapping=function(e,t,n,r,i,s){if(e[n]<=0)throw new TypeError(\"Line must be greater than or equal to 1, got \"+e[n]);if(e[r]<0)throw new TypeError(\"Column must be greater than or equal to 0, got \"+e[r]);return o.search(e,t,i,s)},c.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,\"line\"),generatedColumn:r.getArg(e,\"column\")},n=this._findMapping(t,this._generatedMappings,\"generatedLine\",\"generatedColumn\",r.compareByGeneratedPositionsDeflated,r.getArg(e,\"bias\",u.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var i=r.getArg(o,\"source\",null);null!==i&&(i=this._sources.at(i),i=r.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var s=r.getArg(o,\"name\",null);return null!==s&&(s=this._names.at(s)),{source:i,line:r.getArg(o,\"originalLine\",null),column:r.getArg(o,\"originalColumn\",null),name:s}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var o,i=e;if(null!=this.sourceRoot&&(i=r.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(o=r.urlParse(this.sourceRoot))){var s=i.replace(/^file:\\/\\//,\"\");if(\"file\"==o.scheme&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!o.path||\"/\"==o.path)&&this._sources.has(\"/\"+i))return this.sourcesContent[this._sources.indexOf(\"/\"+i)]}if(t)return null;throw new Error('\"'+i+'\" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=r.getArg(e,\"source\");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:r.getArg(e,\"line\"),originalColumn:r.getArg(e,\"column\")},o=this._findMapping(n,this._originalMappings,\"originalLine\",\"originalColumn\",r.compareByOriginalPositions,r.getArg(e,\"bias\",u.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:r.getArg(i,\"generatedLine\",null),column:r.getArg(i,\"generatedColumn\",null),lastColumn:r.getArg(i,\"lastGeneratedColumn\",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=c,d.prototype=Object.create(u.prototype),d.prototype.constructor=u,d.prototype._version=3,Object.defineProperty(d.prototype,\"sources\",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),d.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,\"line\"),generatedColumn:r.getArg(e,\"column\")},n=o.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),i=this._sections[n];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},d.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('\"'+e+'\" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(r.getArg(e,\"source\"))){var o=n.consumer.generatedPositionFor(e);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],i=o.consumer._generatedMappings,s=0;s<i.length;s++){var u=i[s],c=o.consumer._sources.at(u.source);c=r.computeSourceURL(o.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=o.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var d={source:c,generatedLine:u.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(o.generatedOffset.generatedLine===u.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(d),\"number\"==typeof d.originalLine&&this.__originalMappings.push(d)}a(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),a(this.__originalMappings,r.compareByOriginalPositions)},t.IndexedSourceMapConsumer=d},function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,r,o){if(0===n.length)return-1;var i=function e(n,r,o,i,s,a){var u=Math.floor((r-n)/2)+n,c=s(o,i[u],!0);return 0===c?u:c>0?r-u>1?e(u,r,o,i,s,a):a==t.LEAST_UPPER_BOUND?r<i.length?r:-1:u:u-n>1?e(n,u,o,i,s,a):a==t.LEAST_UPPER_BOUND?u:n<0?-1:n}(-1,n.length,e,n,r,o||t.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===r(n[i],n[i-1],!0);)--i;return i}},function(e,t){function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,o,i){if(o<i){var s=o-1;n(e,(l=o,d=i,Math.round(l+Math.random()*(d-l))),i);for(var a=e[i],u=o;u<i;u++)t(e[u],a)<=0&&n(e,s+=1,u);n(e,s+1,u);var c=s+1;r(e,t,o,c-1),r(e,t,c+1,i)}var l,d}t.quickSort=function(e,t){r(e,t,0,e.length-1)}},function(e,t,n){var r=n(16).SourceMapGenerator,o=n(0),i=/(\\r?\\n)/,s=\"$$$isSourceNode$$$\";function a(e,t,n,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==o?null:o,this[s]=!0,null!=r&&this.add(r)}a.fromStringWithSourceMap=function(e,t,n){var r=new a,s=e.split(i),u=0,c=function(){return e()+(e()||\"\");function e(){return u<s.length?s[u++]:void 0}},l=1,d=0,h=null;return t.eachMapping((function(e){if(null!==h){if(!(l<e.generatedLine)){var t=(n=s[u]||\"\").substr(0,e.generatedColumn-d);return s[u]=n.substr(e.generatedColumn-d),d=e.generatedColumn,p(h,t),void(h=e)}p(h,c()),l++,d=0}for(;l<e.generatedLine;)r.add(c()),l++;if(d<e.generatedColumn){var n=s[u]||\"\";r.add(n.substr(0,e.generatedColumn)),s[u]=n.substr(e.generatedColumn),d=e.generatedColumn}h=e}),this),u<s.length&&(h&&p(h,c()),r.add(s.splice(u).join(\"\"))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=n&&(e=o.join(n,e)),r.setSourceContent(e,i))})),r;function p(e,t){if(null===e||void 0===e.source)r.add(t);else{var i=n?o.join(n,e.source):e.source;r.add(new a(e.originalLine,e.originalColumn,i,t,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[s]&&\"string\"!=typeof e)throw new TypeError(\"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \"+e);e&&this.children.push(e)}return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[s]&&\"string\"!=typeof e)throw new TypeError(\"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \"+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[s]?t.walk(e):\"\"!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[s]?n.replaceRight(e,t):\"string\"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push(\"\".replace(e,t)),this},a.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},a.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][s]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(o.fromSetString(r[t]),this.sourceContents[r[t]])},a.prototype.toString=function(){var e=\"\";return this.walk((function(t){e+=t})),e},a.prototype.toStringWithSourceMap=function(e){var t={code:\"\",line:1,column:0},n=new r(e),o=!1,i=null,s=null,a=null,u=null;return this.walk((function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(i===r.source&&s===r.line&&a===r.column&&u===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),i=r.source,s=r.line,a=r.column,u=r.name,o=!0):o&&(n.addMapping({generated:{line:t.line,column:t.column}}),i=null,o=!1);for(var c=0,l=e.length;c<l;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===l?(i=null,o=!1):o&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}},t.SourceNode=a},function(e,t){var n,r,o=e.exports={};function i(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n=\"function\"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,c=[],l=!1,d=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=a(h);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||l||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},function(e,t,n){t.__esModule=!0,t.default=function(e){r[e]||(r[e]=!0,\"undefined\"!=typeof console&&console.warn&&console.warn(e))};var r={};e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(39))&&r.__esModule?r:{default:r};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}var t,n=e.prototype;return n.toString=function(){return this.css},n.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new o.default(e,t);return this.messages.push(n),n},n.warnings=function(){return this.messages.filter((function(e){return\"warning\"===e.type}))},(t=[{key:\"content\",get:function(){return this.css}}])&&i(e.prototype,t),e}();t.default=s,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=function(){function e(e,t){if(void 0===t&&(t={}),this.type=\"warning\",this.text=e,t.node&&t.node.source){var n=t.node.positionBy(t);this.line=n.line,this.column=n.column}for(var r in t)this[r]=t[r]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+\": \"+this.text:this.text},e}();t.default=r,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=c(n(1)),o=c(n(41)),i=c(n(6)),s=c(n(7)),a=c(n(20)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e){this.input=e,this.root=new a.default,this.current=this.root,this.spaces=\"\",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{line:1,column:1}}}var t=e.prototype;return t.createTokenizer=function(){this.tokenizer=(0,o.default)(this.input)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case\"space\":this.spaces+=e[1];break;case\";\":this.freeSemicolon(e);break;case\"}\":this.end(e);break;case\"comment\":this.comment(e);break;case\"at-word\":this.atrule(e);break;case\"{\":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.comment=function(e){var t=new i.default;this.init(t,e[2],e[3]),t.source.end={line:e[4],column:e[5]};var n=e[1].slice(2,-2);if(/^\\s*$/.test(n))t.text=\"\",t.raws.left=n,t.raws.right=\"\";else{var r=n.match(/^(\\s*)([^]*[^\\s])(\\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.emptyRule=function(e){var t=new u.default;this.init(t,e[2],e[3]),t.selector=\"\",t.raws.between=\"\",this.current=t},t.other=function(e){for(var t=!1,n=null,r=!1,o=null,i=[],s=[],a=e;a;){if(n=a[0],s.push(a),\"(\"===n||\"[\"===n)o||(o=a),i.push(\"(\"===n?\")\":\"]\");else if(0===i.length){if(\";\"===n){if(r)return void this.decl(s);break}if(\"{\"===n)return void this.rule(s);if(\"}\"===n){this.tokenizer.back(s.pop()),t=!0;break}\":\"===n&&(r=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&r){for(;s.length&&(\"space\"===(a=s[s.length-1][0])||\"comment\"===a);)this.tokenizer.back(s.pop());this.decl(s)}else this.unknownWord(s)},t.rule=function(e){e.pop();var t=new u.default;this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,\"selector\",e),this.current=t},t.decl=function(e){var t=new r.default;this.init(t);var n,o=e[e.length-1];for(\";\"===o[0]&&(this.semicolon=!0,e.pop()),o[4]?t.source.end={line:o[4],column:o[5]}:t.source.end={line:o[2],column:o[3]};\"word\"!==e[0][0];)1===e.length&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start={line:e[0][2],column:e[0][3]},t.prop=\"\";e.length;){var i=e[0][0];if(\":\"===i||\"space\"===i||\"comment\"===i)break;t.prop+=e.shift()[1]}for(t.raws.between=\"\";e.length;){if(\":\"===(n=e.shift())[0]){t.raws.between+=n[1];break}\"word\"===n[0]&&/\\w/.test(n[1])&&this.unknownWord([n]),t.raws.between+=n[1]}\"_\"!==t.prop[0]&&\"*\"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(var s=e.length-1;s>0;s--){if(\"!important\"===(n=e[s])[1].toLowerCase()){t.important=!0;var a=this.stringFrom(e,s);\" !important\"!==(a=this.spacesFromEnd(e)+a)&&(t.raws.important=a);break}if(\"important\"===n[1].toLowerCase()){for(var u=e.slice(0),c=\"\",l=s;l>0;l--){var d=u[l][0];if(0===c.trim().indexOf(\"!\")&&\"space\"!==d)break;c=u.pop()[1]+c}0===c.trim().indexOf(\"!\")&&(t.important=!0,t.raws.important=c,e=u)}if(\"space\"!==n[0]&&\"comment\"!==n[0])break}this.raw(t,\"value\",e),-1!==t.value.indexOf(\":\")&&this.checkMissedSemicolon(e)},t.atrule=function(e){var t,n,r=new s.default;r.name=e[1].slice(1),\"\"===r.name&&this.unnamedAtrule(r,e),this.init(r,e[2],e[3]);for(var o=!1,i=!1,a=[];!this.tokenizer.endOfFile();){if(\";\"===(e=this.tokenizer.nextToken())[0]){r.source.end={line:e[2],column:e[3]},this.semicolon=!0;break}if(\"{\"===e[0]){i=!0;break}if(\"}\"===e[0]){if(a.length>0){for(t=a[n=a.length-1];t&&\"space\"===t[0];)t=a[--n];t&&(r.source.end={line:t[4],column:t[5]})}this.end(e);break}if(a.push(e),this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(r.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(r,\"params\",a),o&&(e=a[a.length-1],r.source.end={line:e[4],column:e[5]},this.spaces=r.raws.between,r.raws.between=\"\")):(r.raws.afterName=\"\",r.params=\"\"),i&&(r.nodes=[],this.current=r)},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||\"\")+this.spaces,this.spaces=\"\",this.current.parent?(this.current.source.end={line:e[2],column:e[3]},this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||\"\")+this.spaces},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&\"rule\"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=\"\")}},t.init=function(e,t,n){this.current.push(e),e.source={start:{line:t,column:n},input:this.input},e.raws.before=this.spaces,this.spaces=\"\",\"comment\"!==e.type&&(this.semicolon=!1)},t.raw=function(e,t,n){for(var r,o,i,s,a=n.length,u=\"\",c=!0,l=/^([.|#])?([\\w])+/i,d=0;d<a;d+=1)\"comment\"!==(o=(r=n[d])[0])||\"rule\"!==e.type?\"comment\"===o||\"space\"===o&&d===a-1?c=!1:u+=r[1]:(s=n[d-1],i=n[d+1],\"space\"!==s[0]&&\"space\"!==i[0]&&l.test(s[1])&&l.test(i[1])?u+=r[1]:c=!1);if(!c){var h=n.reduce((function(e,t){return e+t[1]}),\"\");e.raws[t]={value:u,raw:h}}e[t]=u},t.spacesAndCommentsFromEnd=function(e){for(var t,n=\"\";e.length&&(\"space\"===(t=e[e.length-1][0])||\"comment\"===t);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n=\"\";e.length&&(\"space\"===(t=e[0][0])||\"comment\"===t);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t=\"\";e.length&&\"space\"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var n=\"\",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},t.colon=function(e){for(var t,n,r,o=0,i=0;i<e.length;i++){if(\"(\"===(n=(t=e[i])[0])&&(o+=1),\")\"===n&&(o-=1),0===o&&\":\"===n){if(r){if(\"word\"===r[0]&&\"progid\"===r[1])continue;return i}this.doubleColon(t)}r=t}return!1},t.unclosedBracket=function(e){throw this.input.error(\"Unclosed bracket\",e[2],e[3])},t.unknownWord=function(e){throw this.input.error(\"Unknown word\",e[0][2],e[0][3])},t.unexpectedClose=function(e){throw this.input.error(\"Unexpected }\",e[2],e[3])},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error(\"Unclosed block\",e.line,e.column)},t.doubleColon=function(e){throw this.input.error(\"Double colon\",e[2],e[3])},t.unnamedAtrule=function(e,t){throw this.input.error(\"At-rule without name\",t[2],t[3])},t.precheckMissedSemicolon=function(){},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,o=t-1;o>=0&&(\"space\"===(n=e[o])[0]||2!==(r+=1));o--);throw this.input.error(\"Missed semicolon\",n[2],n[3])}},e}();t.default=l,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=function(e,t){void 0===t&&(t={});var n,E,x,T,N,O,A,M,P,L,D,R,B,j,F=e.css.valueOf(),U=t.ignoreErrors,z=F.length,H=-1,q=1,G=0,W=[],Z=[];function Y(t){throw e.error(\"Unclosed \"+t,q,G-H)}return{back:function(e){Z.push(e)},nextToken:function(e){if(Z.length)return Z.pop();if(!(G>=z)){var t=!!e&&e.ignoreUnclosed;switch(((n=F.charCodeAt(G))===a||n===c||n===d&&F.charCodeAt(G+1)!==a)&&(H=G,q+=1),n){case a:case u:case l:case d:case c:E=G;do{E+=1,(n=F.charCodeAt(E))===a&&(H=E,q+=1)}while(n===u||n===a||n===l||n===d||n===c);j=[\"space\",F.slice(G,E)],G=E-1;break;case h:case p:case v:case m:case _:case y:case g:var V=String.fromCharCode(n);j=[V,V,q,G-H];break;case f:if(R=W.length?W.pop()[1]:\"\",B=F.charCodeAt(G+1),\"url\"===R&&B!==r&&B!==o&&B!==u&&B!==a&&B!==l&&B!==c&&B!==d){E=G;do{if(L=!1,-1===(E=F.indexOf(\")\",E+1))){if(U||t){E=G;break}Y(\"bracket\")}for(D=E;F.charCodeAt(D-1)===i;)D-=1,L=!L}while(L);j=[\"brackets\",F.slice(G,E+1),q,G-H,q,E-H],G=E}else E=F.indexOf(\")\",G+1),O=F.slice(G,E+1),-1===E||C.test(O)?j=[\"(\",\"(\",q,G-H]:(j=[\"brackets\",O,q,G-H,q,E-H],G=E);break;case r:case o:x=n===r?\"'\":'\"',E=G;do{if(L=!1,-1===(E=F.indexOf(x,E+1))){if(U||t){E=G+1;break}Y(\"string\")}for(D=E;F.charCodeAt(D-1)===i;)D-=1,L=!L}while(L);O=F.slice(G,E+1),T=O.split(\"\\n\"),(N=T.length-1)>0?(M=q+N,P=E-T[N].length):(M=q,P=H),j=[\"string\",F.slice(G,E+1),q,G-H,M,E-P],H=P,q=M,G=E;break;case w:I.lastIndex=G+1,I.test(F),E=0===I.lastIndex?F.length-1:I.lastIndex-2,j=[\"at-word\",F.slice(G,E+1),q,G-H,q,E-H],G=E;break;case i:for(E=G,A=!0;F.charCodeAt(E+1)===i;)E+=1,A=!A;if(n=F.charCodeAt(E+1),A&&n!==s&&n!==u&&n!==a&&n!==l&&n!==d&&n!==c&&(E+=1,k.test(F.charAt(E)))){for(;k.test(F.charAt(E+1));)E+=1;F.charCodeAt(E+1)===u&&(E+=1)}j=[\"word\",F.slice(G,E+1),q,G-H,q,E-H],G=E;break;default:n===s&&F.charCodeAt(G+1)===b?(0===(E=F.indexOf(\"*/\",G+2)+1)&&(U||t?E=F.length:Y(\"comment\")),O=F.slice(G,E+1),T=O.split(\"\\n\"),(N=T.length-1)>0?(M=q+N,P=E-T[N].length):(M=q,P=H),j=[\"comment\",O,q,G-H,M,E-P],H=P,q=M,G=E):(S.lastIndex=G+1,S.test(F),E=0===S.lastIndex?F.length-1:S.lastIndex-2,j=[\"word\",F.slice(G,E+1),q,G-H,q,E-H],W.push(j),G=E)}return G++,j}},endOfFile:function(){return 0===Z.length&&G>=z},position:function(){return G}}};var r=\"'\".charCodeAt(0),o='\"'.charCodeAt(0),i=\"\\\\\".charCodeAt(0),s=\"/\".charCodeAt(0),a=\"\\n\".charCodeAt(0),u=\" \".charCodeAt(0),c=\"\\f\".charCodeAt(0),l=\"\\t\".charCodeAt(0),d=\"\\r\".charCodeAt(0),h=\"[\".charCodeAt(0),p=\"]\".charCodeAt(0),f=\"(\".charCodeAt(0),g=\")\".charCodeAt(0),v=\"{\".charCodeAt(0),m=\"}\".charCodeAt(0),y=\";\".charCodeAt(0),b=\"*\".charCodeAt(0),_=\":\".charCodeAt(0),w=\"@\".charCodeAt(0),I=/[ \\n\\t\\r\\f{}()'\"\\\\;/[\\]#]/g,S=/[ \\n\\t\\r\\f(){}:;@!'\"\\\\\\][#]|\\/(?=\\*)/g,C=/.[\\\\/(\"'\\n]/,k=/[a-f0-9]/i;e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=s(n(4)),o=s(n(10)),i=s(n(43));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=0,c=function(){function e(e,t){if(void 0===t&&(t={}),null==e||\"object\"==typeof e&&!e.toString)throw new Error(\"PostCSS received \"+e+\" instead of CSS string\");this.css=e.toString(),\"\\ufeff\"===this.css[0]||\"\"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(/^\\w+:\\/\\//.test(t.from)||r.default.isAbsolute(t.from)?this.file=t.from:this.file=r.default.resolve(t.from));var n=new i.default(this.css,t);if(n.text){this.map=n;var o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}this.file||(u+=1,this.id=\"<input css \"+u+\">\"),this.map&&(this.map.file=this.from)}var t,n=e.prototype;return n.error=function(e,t,n,r){var i;void 0===r&&(r={});var s=this.origin(t,n);return(i=s?new o.default(e,s.line,s.column,s.source,s.file,r.plugin):new o.default(e,t,n,this.css,this.file,r.plugin)).input={line:t,column:n,source:this.css},this.file&&(i.input.file=this.file),i},n.origin=function(e,t){if(!this.map)return!1;var n=this.map.consumer(),r=n.originalPositionFor({line:e,column:t});if(!r.source)return!1;var o={file:this.mapResolve(r.source),line:r.line,column:r.column},i=n.sourceContentFor(r.source);return i&&(o.source=i),o},n.mapResolve=function(e){return/^\\w+:\\/\\//.test(e)?e:r.default.resolve(this.map.consumer().sourceRoot||\".\",e)},(t=[{key:\"from\",get:function(){return this.file||this.id}}])&&a(e.prototype,t),e}();t.default=c,e.exports=t.default},function(e,t,n){(function(r){t.__esModule=!0,t.default=void 0;var o=a(n(15)),i=a(n(4)),s=a(n(44));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,\"data:\");var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);r&&(this.text=r)}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new o.default.SourceMapConsumer(this.text)),this.consumerCache},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.getAnnotationURL=function(e){return e.match(/\\/\\*\\s*# sourceMappingURL=(.*)\\s*\\*\\//)[1].trim()},t.loadAnnotation=function(e){var t=e.match(/\\/\\*\\s*# sourceMappingURL=(.*)\\s*\\*\\//gm);if(t&&t.length>0){var n=t[t.length-1];n&&(this.annotation=this.getAnnotationURL(n))}},t.decodeInline=function(e){var t,n=\"data:application/json,\";if(this.startWith(e,n))return decodeURIComponent(e.substr(n.length));if(/^data:application\\/json;charset=utf-?8;base64,/.test(e)||/^data:application\\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),r?r.from(t,\"base64\").toString():window.atob(t);var o=e.match(/data:application\\/json;([^,]+),/)[1];throw new Error(\"Unsupported source map encoding \"+o)},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if(\"string\"==typeof t)return t;if(\"function\"==typeof t){var n=t(e);if(n&&s.default.existsSync&&s.default.existsSync(n))return s.default.readFileSync(n,\"utf-8\").toString().trim();throw new Error(\"Unable to load previous source map: \"+n.toString())}if(t instanceof o.default.SourceMapConsumer)return o.default.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof o.default.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error(\"Unsupported previous source map format: \"+t.toString())}if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var r=this.annotation;return e&&(r=i.default.join(i.default.dirname(e),r)),this.root=i.default.dirname(r),!(!s.default.existsSync||!s.default.existsSync(r))&&s.default.readFileSync(r,\"utf-8\").toString().trim()}},t.isMap=function(e){return\"object\"==typeof e&&(\"string\"==typeof e.mappings||\"string\"==typeof e._mappings)},e}();t.default=u,e.exports=t.default}).call(this,n(14).Buffer)},function(e,t){},function(e,t,n){t.__esModule=!0,t.default=void 0;var r={prefix:function(e){var t=e.match(/^(-\\w+-)/);return t?t[0]:\"\"},unprefixed:function(e){return e.replace(/^-\\w+-/,\"\")}};t.default=r,e.exports=t.default}])})),Kt=Jt($t);$t.postcss;var en=Qt((function(e,t){function n(e){for(var t=e.toLowerCase(),n=\"\",r=!1,o=0;o<6&&void 0!==t[o];o++){var i=t.charCodeAt(o);if(r=32===i,!(i>=97&&i<=102||i>=48&&i<=57))break;n+=t[o]}if(0!==n.length){var s=parseInt(n,16);return s>=55296&&s<=57343||0===s||s>1114111?[\"�\",n.length+(r?1:0)]:[String.fromCodePoint(s),n.length+(r?1:0)]}}t.__esModule=!0,t.default=function(e){if(!r.test(e))return e;for(var t=\"\",o=0;o<e.length;o++)if(\"\\\\\"!==e[o])t+=e[o];else{var i=n(e.slice(o+1,o+7));if(void 0!==i){t+=i[0],o+=i[1];continue}if(\"\\\\\"===e[o+1]){t+=\"\\\\\",o++;continue}e.length===o+1&&(t+=e[o])}return t};var r=/\\\\/;e.exports=t.default}));Jt(en);var tn=Qt((function(e,t){t.__esModule=!0,t.default=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var o=n.shift();if(!e[o])return;e=e[o]}return e},e.exports=t.default}));Jt(tn);var nn=Qt((function(e,t){t.__esModule=!0,t.default=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var o=n.shift();e[o]||(e[o]={}),e=e[o]}},e.exports=t.default}));Jt(nn);var rn=Qt((function(e,t){t.__esModule=!0,t.default=function(e){var t=\"\",n=e.indexOf(\"/*\"),r=0;for(;n>=0;){t+=e.slice(r,n);var o=e.indexOf(\"*/\",n+2);if(o<0)return t;r=o+2,n=e.indexOf(\"/*\",r)}return t+=e.slice(r)},e.exports=t.default}));Jt(rn);var on=Qt((function(e,t){t.__esModule=!0,t.stripComments=t.ensureObject=t.getProp=t.unesc=void 0;var n=s(en);t.unesc=n.default;var r=s(tn);t.getProp=r.default;var o=s(nn);t.ensureObject=o.default;var i=s(rn);function s(e){return e&&e.__esModule?e:{default:e}}t.stripComments=i.default}));Jt(on),on.stripComments,on.ensureObject,on.getProp,on.unesc;var sn=Qt((function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}t.__esModule=!0,t.default=void 0;var r=function e(t,n){if(\"object\"!=typeof t||null===t)return t;var r=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];\"parent\"===o&&\"object\"===typeof i?n&&(r[o]=n):r[o]=i instanceof Array?i.map((function(t){return e(t,r)})):e(i,r)}return r},o=function(){function e(e){void 0===e&&(e={}),Object.assign(this,e),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||\"\",this.spaces.after=this.spaces.after||\"\"}var t,o,i,s=e.prototype;return s.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},s.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},s.next=function(){return this.parent.at(this.parent.index(this)+1)},s.prev=function(){return this.parent.at(this.parent.index(this)-1)},s.clone=function(e){void 0===e&&(e={});var t=r(this);for(var n in e)t[n]=e[n];return t},s.appendToPropertyAndEscape=function(e,t,n){this.raws||(this.raws={});var r=this[e],o=this.raws[e];this[e]=r+t,o||n!==t?this.raws[e]=(o||r)+n:delete this.raws[e]},s.setPropertyAndEscape=function(e,t,n){this.raws||(this.raws={}),this[e]=t,this.raws[e]=n},s.setPropertyWithoutEscape=function(e,t){this[e]=t,this.raws&&delete this.raws[e]},s.isAtPosition=function(e,t){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>e)&&(!(this.source.end.line<e)&&(!(this.source.start.line===e&&this.source.start.column>t)&&!(this.source.end.line===e&&this.source.end.column<t)))},s.stringifyProperty=function(e){return this.raws&&this.raws[e]||this[e]},s.valueToString=function(){return String(this.stringifyProperty(\"value\"))},s.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join(\"\")},t=e,(o=[{key:\"rawSpaceBefore\",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.before;return void 0===e&&(e=this.spaces&&this.spaces.before),e||\"\"},set:function(e){(0,on.ensureObject)(this,\"raws\",\"spaces\"),this.raws.spaces.before=e}},{key:\"rawSpaceAfter\",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.after;return void 0===e&&(e=this.spaces.after),e||\"\"},set:function(e){(0,on.ensureObject)(this,\"raws\",\"spaces\"),this.raws.spaces.after=e}}])&&n(t.prototype,o),i&&n(t,i),e}();t.default=o,e.exports=t.default}));Jt(sn);var an=Qt((function(e,t){t.__esModule=!0,t.UNIVERSAL=t.ATTRIBUTE=t.CLASS=t.COMBINATOR=t.COMMENT=t.ID=t.NESTING=t.PSEUDO=t.ROOT=t.SELECTOR=t.STRING=t.TAG=void 0;t.TAG=\"tag\";t.STRING=\"string\";t.SELECTOR=\"selector\";t.ROOT=\"root\";t.PSEUDO=\"pseudo\";t.NESTING=\"nesting\";t.ID=\"id\";t.COMMENT=\"comment\";t.COMBINATOR=\"combinator\";t.CLASS=\"class\";t.ATTRIBUTE=\"attribute\";t.UNIVERSAL=\"universal\"}));Jt(an),an.UNIVERSAL,an.ATTRIBUTE,an.CLASS,an.COMBINATOR,an.COMMENT,an.ID,an.NESTING,an.PSEUDO,an.ROOT,an.SELECTOR,an.STRING,an.TAG;var un=Qt((function(e,t){t.__esModule=!0,t.default=void 0;var n,r=(n=sn)&&n.__esModule?n:{default:n},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(an);function i(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function s(e,t){var n;if(\"undefined\"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if(\"string\"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}return(n=e[Symbol.iterator]()).next.bind(n)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}var l=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).nodes||(n.nodes=[]),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var i,a,l,d=r.prototype;return d.append=function(e){return e.parent=this,this.nodes.push(e),this},d.prepend=function(e){return e.parent=this,this.nodes.unshift(e),this},d.at=function(e){return this.nodes[e]},d.index=function(e){return\"number\"==typeof e?e:this.nodes.indexOf(e)},d.removeChild=function(e){var t;for(var n in e=this.index(e),this.at(e).parent=void 0,this.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},d.removeAll=function(){for(var e,t=s(this.nodes);!(e=t()).done;){e.value.parent=void 0}return this.nodes=[],this},d.empty=function(){return this.removeAll()},d.insertAfter=function(e,t){t.parent=this;var n,r=this.index(e);for(var o in this.nodes.splice(r+1,0,t),t.parent=this,this.indexes)r<=(n=this.indexes[o])&&(this.indexes[o]=n+1);return this},d.insertBefore=function(e,t){t.parent=this;var n,r=this.index(e);for(var o in this.nodes.splice(r,0,t),t.parent=this,this.indexes)(n=this.indexes[o])<=r&&(this.indexes[o]=n+1);return this},d._findChildAtPosition=function(e,t){var n=void 0;return this.each((function(r){if(r.atPosition){var o=r.atPosition(e,t);if(o)return n=o,!1}else if(r.isAtPosition(e,t))return n=r,!1})),n},d.atPosition=function(e,t){return this.isAtPosition(e,t)?this._findChildAtPosition(e,t)||this:void 0},d._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},d.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var n,r;this.indexes[t]<this.length&&(n=this.indexes[t],!1!==(r=e(this.at(n),n)));)this.indexes[t]+=1;return delete this.indexes[t],!1!==r&&void 0}},d.walk=function(e){return this.each((function(t,n){var r=e(t,n);if(!1!==r&&t.length&&(r=t.walk(e)),!1===r)return!1}))},d.walkAttributes=function(e){var t=this;return this.walk((function(n){if(n.type===o.ATTRIBUTE)return e.call(t,n)}))},d.walkClasses=function(e){var t=this;return this.walk((function(n){if(n.type===o.CLASS)return e.call(t,n)}))},d.walkCombinators=function(e){var t=this;return this.walk((function(n){if(n.type===o.COMBINATOR)return e.call(t,n)}))},d.walkComments=function(e){var t=this;return this.walk((function(n){if(n.type===o.COMMENT)return e.call(t,n)}))},d.walkIds=function(e){var t=this;return this.walk((function(n){if(n.type===o.ID)return e.call(t,n)}))},d.walkNesting=function(e){var t=this;return this.walk((function(n){if(n.type===o.NESTING)return e.call(t,n)}))},d.walkPseudos=function(e){var t=this;return this.walk((function(n){if(n.type===o.PSEUDO)return e.call(t,n)}))},d.walkTags=function(e){var t=this;return this.walk((function(n){if(n.type===o.TAG)return e.call(t,n)}))},d.walkUniversals=function(e){var t=this;return this.walk((function(n){if(n.type===o.UNIVERSAL)return e.call(t,n)}))},d.split=function(e){var t=this,n=[];return this.reduce((function(r,o,i){var s=e.call(t,o);return n.push(o),s?(r.push(n),n=[]):i===t.length-1&&r.push(n),r}),[])},d.map=function(e){return this.nodes.map(e)},d.reduce=function(e,t){return this.nodes.reduce(e,t)},d.every=function(e){return this.nodes.every(e)},d.some=function(e){return this.nodes.some(e)},d.filter=function(e){return this.nodes.filter(e)},d.sort=function(e){return this.nodes.sort(e)},d.toString=function(){return this.map(String).join(\"\")},i=r,(a=[{key:\"first\",get:function(){return this.at(0)}},{key:\"last\",get:function(){return this.at(this.length-1)}},{key:\"length\",get:function(){return this.nodes.length}}])&&u(i.prototype,a),l&&u(i,l),r}(r.default);t.default=l,e.exports=t.default}));Jt(un);var cn=Qt((function(e,t){var n;function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}t.__esModule=!0,t.default=void 0;var i=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).type=an.ROOT,n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var s,a,u,c=i.prototype;return c.toString=function(){var e=this.reduce((function(e,t){return e.push(String(t)),e}),[]).join(\",\");return this.trailingComma?e+\",\":e},c.error=function(e,t){return this._error?this._error(e,t):new Error(e)},s=i,(a=[{key:\"errorGenerator\",set:function(e){this._error=e}}])&&r(s.prototype,a),u&&r(s,u),i}(((n=un)&&n.__esModule?n:{default:n}).default);t.default=i,e.exports=t.default}));Jt(cn);var ln=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.SELECTOR,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=un)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(ln);var dn={}.hasOwnProperty,hn=/[ -,\\.\\/:-@\\[-\\^`\\{-~]/,pn=/[ -,\\.\\/:-@\\[\\]\\^`\\{-~]/,fn=/(^|\\\\+)?(\\\\[A-F0-9]{1,6})\\x20(?![a-fA-F0-9\\x20])/g,gn=function e(t,n){\"single\"!=(n=function(e,t){if(!e)return t;var n={};for(var r in t)n[r]=dn.call(e,r)?e[r]:t[r];return n}(n,e.options)).quotes&&\"double\"!=n.quotes&&(n.quotes=\"single\");for(var r=\"double\"==n.quotes?'\"':\"'\",o=n.isIdentifier,i=t.charAt(0),s=\"\",a=0,u=t.length;a<u;){var c=t.charAt(a++),l=c.charCodeAt(),d=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&a<u){var h=t.charCodeAt(a++);56320==(64512&h)?l=((1023&l)<<10)+(1023&h)+65536:a--}d=\"\\\\\"+l.toString(16).toUpperCase()+\" \"}else d=n.escapeEverything?hn.test(c)?\"\\\\\"+c:\"\\\\\"+l.toString(16).toUpperCase()+\" \":/[\\t\\n\\f\\r\\x0B]/.test(c)?\"\\\\\"+l.toString(16).toUpperCase()+\" \":\"\\\\\"==c||!o&&('\"'==c&&r==c||\"'\"==c&&r==c)||o&&pn.test(c)?\"\\\\\"+c:c;s+=d}return o&&(/^-[-\\d]/.test(s)?s=\"\\\\-\"+s.slice(1):/\\d/.test(i)&&(s=\"\\\\3\"+i+\" \"+s.slice(1))),s=s.replace(fn,(function(e,t,n){return t&&t.length%2?e:(t||\"\")+n})),!o&&n.wrap?r+s+r:s};gn.options={escapeEverything:!1,isIdentifier:!1,quotes:\"single\",wrap:!1},gn.version=\"3.0.0\";var vn=gn,mn=Qt((function(e,t){t.__esModule=!0,t.default=void 0;var n=r(vn);function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}var s=function(e){var t,r,s,a,u;function c(t){var n;return(n=e.call(this,t)||this).type=an.CLASS,n._constructed=!0,n}return r=e,(t=c).prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r),c.prototype.valueToString=function(){return\".\"+e.prototype.valueToString.call(this)},s=c,(a=[{key:\"value\",get:function(){return this._value},set:function(e){if(this._constructed){var t=(0,n.default)(e,{isIdentifier:!0});t!==e?((0,on.ensureObject)(this,\"raws\"),this.raws.value=t):this.raws&&delete this.raws.value}this._value=e}}])&&o(s.prototype,a),u&&o(s,u),c}(r(sn).default);t.default=s,e.exports=t.default}));Jt(mn);var yn=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.COMMENT,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=sn)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(yn);var bn=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.ID,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o.prototype.valueToString=function(){return\"#\"+e.prototype.valueToString.call(this)},o}(((n=sn)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(bn);var _n=Qt((function(e,t){t.__esModule=!0,t.default=void 0;var n=r(vn);function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}var s=function(e){var t,r;function s(){return e.apply(this,arguments)||this}r=e,(t=s).prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r);var a,u,c,l=s.prototype;return l.qualifiedName=function(e){return this.namespace?this.namespaceString+\"|\"+e:e},l.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},a=s,u=[{key:\"namespace\",get:function(){return this._namespace},set:function(e){if(!0===e||\"*\"===e||\"&\"===e)return this._namespace=e,void(this.raws&&delete this.raws.namespace);var t=(0,n.default)(e,{isIdentifier:!0});this._namespace=e,t!==e?((0,on.ensureObject)(this,\"raws\"),this.raws.namespace=t):this.raws&&delete this.raws.namespace}},{key:\"ns\",get:function(){return this._namespace},set:function(e){this.namespace=e}},{key:\"namespaceString\",get:function(){if(this.namespace){var e=this.stringifyProperty(\"namespace\");return!0===e?\"\":e}return\"\"}}],u&&o(a.prototype,u),c&&o(a,c),s}(r(sn).default);t.default=s,e.exports=t.default}));Jt(_n);var wn=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.TAG,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=_n)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(wn);var In=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.STRING,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=sn)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(In);var Sn=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.PSEUDO,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o.prototype.toString=function(){var e=this.length?\"(\"+this.map(String).join(\",\")+\")\":\"\";return[this.rawSpaceBefore,this.stringifyProperty(\"value\"),e,this.rawSpaceAfter].join(\"\")},o}(((n=un)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(Sn);var Cn=function(e,t){if(kn(\"noDeprecation\"))return e;var n=!1;return function(){if(!n){if(kn(\"throwDeprecation\"))throw new Error(t);kn(\"traceDeprecation\")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function kn(e){try{if(!global.localStorage)return!1}catch(e){return!1}var t=global.localStorage[e];return null!=t&&\"true\"===String(t).toLowerCase()}var En=Qt((function(e,t){t.__esModule=!0,t.unescapeValue=p,t.default=void 0;var n,r=s(vn),o=s(en),i=s(_n);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}var c=/^('|\")(.*)\\1$/,l=Cn((function(){}),\"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead.\"),d=Cn((function(){}),\"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.\"),h=Cn((function(){}),\"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.\");function p(e){var t=!1,n=null,r=e,i=r.match(c);return i&&(n=i[1],r=i[2]),(r=(0,o.default)(r))!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}var f=function(e){var t,n;function o(t){var n;return void 0===t&&(t={}),n=e.call(this,function(e){if(void 0!==e.quoteMark)return e;if(void 0===e.value)return e;h();var t=p(e.value),n=t.quoteMark,r=t.unescaped;return e.raws||(e.raws={}),void 0===e.raws.value&&(e.raws.value=e.value),e.value=r,e.quoteMark=n,e}(t))||this,n.type=an.ATTRIBUTE,n.raws=n.raws||{},Object.defineProperty(n.raws,\"unquoted\",{get:Cn((function(){return n.value}),\"attr.raws.unquoted is deprecated. Call attr.value instead.\"),set:Cn((function(){return n.value}),\"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.\")}),n._constructed=!0,n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var i,s,c,f=o.prototype;return f.getQuotedValue=function(e){void 0===e&&(e={});var t=this._determineQuoteMark(e),n=g[t];return(0,r.default)(this._value,n)},f._determineQuoteMark=function(e){return e.smart?this.smartQuoteMark(e):this.preferredQuoteMark(e)},f.setValue=function(e,t){void 0===t&&(t={}),this._value=e,this._quoteMark=this._determineQuoteMark(t),this._syncRawValue()},f.smartQuoteMark=function(e){var t=this.value,n=t.replace(/[^']/g,\"\").length,i=t.replace(/[^\"]/g,\"\").length;if(n+i===0){var s=(0,r.default)(t,{isIdentifier:!0});if(s===t)return o.NO_QUOTE;var a=this.preferredQuoteMark(e);if(a===o.NO_QUOTE){var u=this.quoteMark||e.quoteMark||o.DOUBLE_QUOTE,c=g[u];if((0,r.default)(t,c).length<s.length)return u}return a}return i===n?this.preferredQuoteMark(e):i<n?o.DOUBLE_QUOTE:o.SINGLE_QUOTE},f.preferredQuoteMark=function(e){var t=e.preferCurrentQuoteMark?this.quoteMark:e.quoteMark;return void 0===t&&(t=e.preferCurrentQuoteMark?e.quoteMark:this.quoteMark),void 0===t&&(t=o.DOUBLE_QUOTE),t},f._syncRawValue=function(){var e=(0,r.default)(this._value,g[this.quoteMark]);e===this._value?this.raws&&delete this.raws.value:this.raws.value=e},f._handleEscapes=function(e,t){if(this._constructed){var n=(0,r.default)(t,{isIdentifier:!0});n!==t?this.raws[e]=n:delete this.raws[e]}},f._spacesFor=function(e){var t=this.spaces[e]||{},n=this.raws.spaces&&this.raws.spaces[e]||{};return Object.assign({before:\"\",after:\"\"},t,n)},f._stringFor=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=v);var r=this._spacesFor(t);return n(this.stringifyProperty(e),r)},f.offsetOf=function(e){var t=1,n=this._spacesFor(\"attribute\");if(t+=n.before.length,\"namespace\"===e||\"ns\"===e)return this.namespace?t:-1;if(\"attributeNS\"===e)return t;if(t+=this.namespaceString.length,this.namespace&&(t+=1),\"attribute\"===e)return t;t+=this.stringifyProperty(\"attribute\").length,t+=n.after.length;var r=this._spacesFor(\"operator\");t+=r.before.length;var o=this.stringifyProperty(\"operator\");if(\"operator\"===e)return o?t:-1;t+=o.length,t+=r.after.length;var i=this._spacesFor(\"value\");t+=i.before.length;var s=this.stringifyProperty(\"value\");return\"value\"===e?s?t:-1:(t+=s.length,t+=i.after.length,t+=this._spacesFor(\"insensitive\").before.length,\"insensitive\"===e&&this.insensitive?t:-1)},f.toString=function(){var e=this,t=[this.rawSpaceBefore,\"[\"];return t.push(this._stringFor(\"qualifiedAttribute\",\"attribute\")),this.operator&&(this.value||\"\"===this.value)&&(t.push(this._stringFor(\"operator\")),t.push(this._stringFor(\"value\")),t.push(this._stringFor(\"insensitiveFlag\",\"insensitive\",(function(t,n){return!(t.length>0)||e.quoted||0!==n.before.length||e.spaces.value&&e.spaces.value.after||(n.before=\" \"),v(t,n)})))),t.push(\"]\"),t.push(this.rawSpaceAfter),t.join(\"\")},i=o,(s=[{key:\"quoted\",get:function(){var e=this.quoteMark;return\"'\"===e||'\"'===e},set:function(e){d()}},{key:\"quoteMark\",get:function(){return this._quoteMark},set:function(e){this._constructed?this._quoteMark!==e&&(this._quoteMark=e,this._syncRawValue()):this._quoteMark=e}},{key:\"qualifiedAttribute\",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:\"insensitiveFlag\",get:function(){return this.insensitive?\"i\":\"\"}},{key:\"value\",get:function(){return this._value},set:function(e){if(this._constructed){var t=p(e),n=t.deprecatedUsage,r=t.unescaped,o=t.quoteMark;if(n&&l(),r===this._value&&o===this._quoteMark)return;this._value=r,this._quoteMark=o,this._syncRawValue()}else this._value=e}},{key:\"attribute\",get:function(){return this._attribute},set:function(e){this._handleEscapes(\"attribute\",e),this._attribute=e}}])&&a(i.prototype,s),c&&a(i,c),o}(i.default);t.default=f,f.NO_QUOTE=null,f.SINGLE_QUOTE=\"'\",f.DOUBLE_QUOTE='\"';var g=((n={\"'\":{quotes:\"single\",wrap:!0},'\"':{quotes:\"double\",wrap:!0}}).null={isIdentifier:!0},n);function v(e,t){return\"\"+t.before+e+t.after}}));Jt(En),En.unescapeValue;var xn=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.UNIVERSAL,n.value=\"*\",n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=_n)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(xn);var Tn=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.COMBINATOR,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=sn)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(Tn);var Nn=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.NESTING,n.value=\"&\",n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=sn)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(Nn);var On=Qt((function(e,t){t.__esModule=!0,t.default=function(e){return e.sort((function(e,t){return e-t}))},e.exports=t.default}));Jt(On);var An=Qt((function(e,t){t.__esModule=!0,t.combinator=t.word=t.comment=t.str=t.tab=t.newline=t.feed=t.cr=t.backslash=t.bang=t.slash=t.doubleQuote=t.singleQuote=t.space=t.greaterThan=t.pipe=t.equals=t.plus=t.caret=t.tilde=t.dollar=t.closeSquare=t.openSquare=t.closeParenthesis=t.openParenthesis=t.semicolon=t.colon=t.comma=t.at=t.asterisk=t.ampersand=void 0;t.ampersand=38;t.asterisk=42;t.at=64;t.comma=44;t.colon=58;t.semicolon=59;t.openParenthesis=40;t.closeParenthesis=41;t.openSquare=91;t.closeSquare=93;t.dollar=36;t.tilde=126;t.caret=94;t.plus=43;t.equals=61;t.pipe=124;t.greaterThan=62;t.space=32;t.singleQuote=39;t.doubleQuote=34;t.slash=47;t.bang=33;t.backslash=92;t.cr=13;t.feed=12;t.newline=10;t.tab=9;t.str=39;t.comment=-1;t.word=-2;t.combinator=-3}));Jt(An),An.combinator,An.word,An.comment,An.str,An.tab,An.newline,An.feed,An.cr,An.backslash,An.bang,An.slash,An.doubleQuote,An.singleQuote,An.space,An.greaterThan,An.pipe,An.equals,An.plus,An.caret,An.tilde,An.dollar,An.closeSquare,An.openSquare,An.closeParenthesis,An.openParenthesis,An.semicolon,An.colon,An.comma,An.at,An.asterisk,An.ampersand;var Mn=Qt((function(e,t){t.__esModule=!0,t.default=function(e){var t,n,r,i,s,a,u,c,l,h,p,f,g=[],v=e.css.valueOf(),m=v,y=m.length,b=-1,_=1,w=0,I=0;function S(t,n){if(!e.safe)throw e.error(\"Unclosed \"+t,_,w-b,w);c=(v+=n).length-1}for(;w<y;){switch((t=v.charCodeAt(w))===o.newline&&(b=w,_+=1),t){case o.space:case o.tab:case o.newline:case o.cr:case o.feed:c=w;do{c+=1,(t=v.charCodeAt(c))===o.newline&&(b=c,_+=1)}while(t===o.space||t===o.newline||t===o.tab||t===o.cr||t===o.feed);f=o.space,r=_,n=c-b-1,I=c;break;case o.plus:case o.greaterThan:case o.tilde:case o.pipe:c=w;do{c+=1,t=v.charCodeAt(c)}while(t===o.plus||t===o.greaterThan||t===o.tilde||t===o.pipe);f=o.combinator,r=_,n=w-b,I=c;break;case o.asterisk:case o.ampersand:case o.bang:case o.comma:case o.equals:case o.dollar:case o.caret:case o.openSquare:case o.closeSquare:case o.colon:case o.semicolon:case o.openParenthesis:case o.closeParenthesis:f=t,r=_,n=w-b,I=(c=w)+1;break;case o.singleQuote:case o.doubleQuote:p=t===o.singleQuote?\"'\":'\"',c=w;do{for(i=!1,-1===(c=v.indexOf(p,c+1))&&S(\"quote\",p),s=c;v.charCodeAt(s-1)===o.backslash;)s-=1,i=!i}while(i);f=o.str,r=_,n=w-b,I=c+1;break;default:t===o.slash&&v.charCodeAt(w+1)===o.asterisk?(0===(c=v.indexOf(\"*/\",w+2)+1)&&S(\"comment\",\"*/\"),(a=(u=v.slice(w,c+1).split(\"\\n\")).length-1)>0?(l=_+a,h=c-u[a].length):(l=_,h=b),f=o.comment,_=l,r=l,n=c-h):t===o.slash?(f=t,r=_,n=w-b,I=(c=w)+1):(c=d(v,w),f=o.word,r=_,n=c-b),I=c+1}g.push([f,_,w-b,r,n,w,I]),h&&(b=h,h=null),w=I}return g},t.FIELDS=void 0;var n,r,o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(An);function i(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}for(var s=((n={})[o.tab]=!0,n[o.newline]=!0,n[o.cr]=!0,n[o.feed]=!0,n),a=((r={})[o.space]=!0,r[o.tab]=!0,r[o.newline]=!0,r[o.cr]=!0,r[o.feed]=!0,r[o.ampersand]=!0,r[o.asterisk]=!0,r[o.bang]=!0,r[o.comma]=!0,r[o.colon]=!0,r[o.semicolon]=!0,r[o.openParenthesis]=!0,r[o.closeParenthesis]=!0,r[o.openSquare]=!0,r[o.closeSquare]=!0,r[o.singleQuote]=!0,r[o.doubleQuote]=!0,r[o.plus]=!0,r[o.pipe]=!0,r[o.tilde]=!0,r[o.greaterThan]=!0,r[o.equals]=!0,r[o.dollar]=!0,r[o.caret]=!0,r[o.slash]=!0,r),u={},c=\"0123456789abcdefABCDEF\",l=0;l<22;l++)u[c.charCodeAt(l)]=!0;function d(e,t){var n,r=t;do{if(n=e.charCodeAt(r),a[n])return r-1;n===o.backslash?r=h(e,r)+1:r++}while(r<e.length);return r-1}function h(e,t){var n=t,r=e.charCodeAt(n+1);if(s[r]);else if(u[r]){var i=0;do{n++,i++,r=e.charCodeAt(n+1)}while(u[r]&&i<6);i<6&&r===o.space&&n++}else n++;return n}t.FIELDS={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6}}));Jt(Mn),Mn.FIELDS;var Pn=Qt((function(e,t){t.__esModule=!0,t.default=void 0;var n,r,o=I(cn),i=I(ln),s=I(mn),a=I(yn),u=I(bn),c=I(wn),l=I(In),d=I(Sn),h=w(En),p=I(xn),f=I(Tn),g=I(Nn),v=I(On),m=w(Mn),y=w(An),b=w(an);function _(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return _=function(){return e},e}function w(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=_();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function I(e){return e&&e.__esModule?e:{default:e}}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var C=((n={})[y.space]=!0,n[y.cr]=!0,n[y.feed]=!0,n[y.newline]=!0,n[y.tab]=!0,n),k=Object.assign({},C,((r={})[y.comment]=!0,r));function E(e){return{line:e[m.FIELDS.START_LINE],column:e[m.FIELDS.START_COL]}}function x(e){return{line:e[m.FIELDS.END_LINE],column:e[m.FIELDS.END_COL]}}function T(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function N(e){return T(e[m.FIELDS.START_LINE],e[m.FIELDS.START_COL],e[m.FIELDS.END_LINE],e[m.FIELDS.END_COL])}function O(e,t){if(e)return T(e[m.FIELDS.START_LINE],e[m.FIELDS.START_COL],t[m.FIELDS.END_LINE],t[m.FIELDS.END_COL])}function A(e,t){var n=e[t];if(\"string\"==typeof n)return-1!==n.indexOf(\"\\\\\")&&((0,on.ensureObject)(e,\"raws\"),e[t]=(0,on.unesc)(n),void 0===e.raws[t]&&(e.raws[t]=n)),e}function M(e,t){for(var n=-1,r=[];-1!==(n=e.indexOf(t,n+1));)r.push(n);return r}var P=function(){function e(e,t){void 0===t&&(t={}),this.rule=e,this.options=Object.assign({lossy:!1,safe:!1},t),this.position=0,this.css=\"string\"==typeof this.rule?this.rule:this.rule.selector,this.tokens=(0,m.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var n=O(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new o.default({source:n}),this.root.errorGenerator=this._errorGenerator();var r=new i.default({source:{start:{line:1,column:1}}});this.root.append(r),this.current=r,this.loop()}var t,n,r,_=e.prototype;return _._errorGenerator=function(){var e=this;return function(t,n){return\"string\"==typeof e.rule?new Error(t):e.rule.error(t,n)}},_.attribute=function(){var e=[],t=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[m.FIELDS.TYPE]!==y.closeSquare;)e.push(this.currToken),this.position++;if(this.currToken[m.FIELDS.TYPE]!==y.closeSquare)return this.expected(\"closing square bracket\",this.currToken[m.FIELDS.START_POS]);var n=e.length,r={source:T(t[1],t[2],this.currToken[3],this.currToken[4]),sourceIndex:t[m.FIELDS.START_POS]};if(1===n&&!~[y.word].indexOf(e[0][m.FIELDS.TYPE]))return this.expected(\"attribute\",e[0][m.FIELDS.START_POS]);for(var o=0,i=\"\",s=\"\",a=null,u=!1;o<n;){var c=e[o],l=this.content(c),d=e[o+1];switch(c[m.FIELDS.TYPE]){case y.space:if(u=!0,this.options.lossy)break;if(a){(0,on.ensureObject)(r,\"spaces\",a);var p=r.spaces[a].after||\"\";r.spaces[a].after=p+l;var f=(0,on.getProp)(r,\"raws\",\"spaces\",a,\"after\")||null;f&&(r.raws.spaces[a].after=f+l)}else i+=l,s+=l;break;case y.asterisk:if(d[m.FIELDS.TYPE]===y.equals)r.operator=l,a=\"operator\";else if((!r.namespace||\"namespace\"===a&&!u)&&d){i&&((0,on.ensureObject)(r,\"spaces\",\"attribute\"),r.spaces.attribute.before=i,i=\"\"),s&&((0,on.ensureObject)(r,\"raws\",\"spaces\",\"attribute\"),r.raws.spaces.attribute.before=i,s=\"\"),r.namespace=(r.namespace||\"\")+l,((0,on.getProp)(r,\"raws\",\"namespace\")||null)&&(r.raws.namespace+=l),a=\"namespace\"}u=!1;break;case y.dollar:if(\"value\"===a){var g=(0,on.getProp)(r,\"raws\",\"value\");r.value+=\"$\",g&&(r.raws.value=g+\"$\");break}case y.caret:d[m.FIELDS.TYPE]===y.equals&&(r.operator=l,a=\"operator\"),u=!1;break;case y.combinator:if(\"~\"===l&&d[m.FIELDS.TYPE]===y.equals&&(r.operator=l,a=\"operator\"),\"|\"!==l){u=!1;break}d[m.FIELDS.TYPE]===y.equals?(r.operator=l,a=\"operator\"):r.namespace||r.attribute||(r.namespace=!0),u=!1;break;case y.word:if(d&&\"|\"===this.content(d)&&e[o+2]&&e[o+2][m.FIELDS.TYPE]!==y.equals&&!r.operator&&!r.namespace)r.namespace=l,a=\"namespace\";else if(!r.attribute||\"attribute\"===a&&!u){i&&((0,on.ensureObject)(r,\"spaces\",\"attribute\"),r.spaces.attribute.before=i,i=\"\"),s&&((0,on.ensureObject)(r,\"raws\",\"spaces\",\"attribute\"),r.raws.spaces.attribute.before=s,s=\"\"),r.attribute=(r.attribute||\"\")+l,((0,on.getProp)(r,\"raws\",\"attribute\")||null)&&(r.raws.attribute+=l),a=\"attribute\"}else if(!r.value&&\"\"!==r.value||\"value\"===a&&!u){var v=(0,on.unesc)(l),b=(0,on.getProp)(r,\"raws\",\"value\")||\"\",_=r.value||\"\";r.value=_+v,r.quoteMark=null,(v!==l||b)&&((0,on.ensureObject)(r,\"raws\"),r.raws.value=(b||_)+l),a=\"value\"}else{var w=\"i\"===l||\"I\"===l;!r.value&&\"\"!==r.value||!r.quoteMark&&!u?(r.value||\"\"===r.value)&&(a=\"value\",r.value+=l,r.raws.value&&(r.raws.value+=l)):(r.insensitive=w,w&&\"I\"!==l||((0,on.ensureObject)(r,\"raws\"),r.raws.insensitiveFlag=l),a=\"insensitive\",i&&((0,on.ensureObject)(r,\"spaces\",\"insensitive\"),r.spaces.insensitive.before=i,i=\"\"),s&&((0,on.ensureObject)(r,\"raws\",\"spaces\",\"insensitive\"),r.raws.spaces.insensitive.before=s,s=\"\"))}u=!1;break;case y.str:if(!r.attribute||!r.operator)return this.error(\"Expected an attribute followed by an operator preceding the string.\",{index:c[m.FIELDS.START_POS]});var I=(0,h.unescapeValue)(l),S=I.unescaped,C=I.quoteMark;r.value=S,r.quoteMark=C,a=\"value\",(0,on.ensureObject)(r,\"raws\"),r.raws.value=l,u=!1;break;case y.equals:if(!r.attribute)return this.expected(\"attribute\",c[m.FIELDS.START_POS],l);if(r.value)return this.error('Unexpected \"=\" found; an operator was already defined.',{index:c[m.FIELDS.START_POS]});r.operator=r.operator?r.operator+l:l,a=\"operator\",u=!1;break;case y.comment:if(a)if(u||d&&d[m.FIELDS.TYPE]===y.space||\"insensitive\"===a){var k=(0,on.getProp)(r,\"spaces\",a,\"after\")||\"\",E=(0,on.getProp)(r,\"raws\",\"spaces\",a,\"after\")||k;(0,on.ensureObject)(r,\"raws\",\"spaces\",a),r.raws.spaces[a].after=E+l}else{var x=r[a]||\"\",N=(0,on.getProp)(r,\"raws\",a)||x;(0,on.ensureObject)(r,\"raws\"),r.raws[a]=N+l}else s+=l;break;default:return this.error('Unexpected \"'+l+'\" found.',{index:c[m.FIELDS.START_POS]})}o++}A(r,\"attribute\"),A(r,\"namespace\"),this.newNode(new h.default(r)),this.position++},_.parseWhitespaceEquivalentTokens=function(e){e<0&&(e=this.tokens.length);var t=this.position,n=[],r=\"\",o=void 0;do{if(C[this.currToken[m.FIELDS.TYPE]])this.options.lossy||(r+=this.content());else if(this.currToken[m.FIELDS.TYPE]===y.comment){var i={};r&&(i.before=r,r=\"\"),o=new a.default({value:this.content(),source:N(this.currToken),sourceIndex:this.currToken[m.FIELDS.START_POS],spaces:i}),n.push(o)}}while(++this.position<e);if(r)if(o)o.spaces.after=r;else if(!this.options.lossy){var s=this.tokens[t],u=this.tokens[this.position-1];n.push(new l.default({value:\"\",source:T(s[m.FIELDS.START_LINE],s[m.FIELDS.START_COL],u[m.FIELDS.END_LINE],u[m.FIELDS.END_COL]),sourceIndex:s[m.FIELDS.START_POS],spaces:{before:r,after:\"\"}}))}return n},_.convertWhitespaceNodesToSpace=function(e,t){var n=this;void 0===t&&(t=!1);var r=\"\",o=\"\";return e.forEach((function(e){var i=n.lossySpace(e.spaces.before,t),s=n.lossySpace(e.rawSpaceBefore,t);r+=i+n.lossySpace(e.spaces.after,t&&0===i.length),o+=i+e.value+n.lossySpace(e.rawSpaceAfter,t&&0===s.length)})),o===r&&(o=void 0),{space:r,rawSpace:o}},_.isNamedCombinator=function(e){return void 0===e&&(e=this.position),this.tokens[e+0]&&this.tokens[e+0][m.FIELDS.TYPE]===y.slash&&this.tokens[e+1]&&this.tokens[e+1][m.FIELDS.TYPE]===y.word&&this.tokens[e+2]&&this.tokens[e+2][m.FIELDS.TYPE]===y.slash},_.namedCombinator=function(){if(this.isNamedCombinator()){var e=this.content(this.tokens[this.position+1]),t=(0,on.unesc)(e).toLowerCase(),n={};t!==e&&(n.value=\"/\"+e+\"/\");var r=new f.default({value:\"/\"+t+\"/\",source:T(this.currToken[m.FIELDS.START_LINE],this.currToken[m.FIELDS.START_COL],this.tokens[this.position+2][m.FIELDS.END_LINE],this.tokens[this.position+2][m.FIELDS.END_COL]),sourceIndex:this.currToken[m.FIELDS.START_POS],raws:n});return this.position=this.position+3,r}this.unexpected()},_.combinator=function(){var e=this;if(\"|\"===this.content())return this.namespace();var t=this.locateNextMeaningfulToken(this.position);if(!(t<0||this.tokens[t][m.FIELDS.TYPE]===y.comma)){var n,r=this.currToken,o=void 0;if(t>this.position&&(o=this.parseWhitespaceEquivalentTokens(t)),this.isNamedCombinator()?n=this.namedCombinator():this.currToken[m.FIELDS.TYPE]===y.combinator?(n=new f.default({value:this.content(),source:N(this.currToken),sourceIndex:this.currToken[m.FIELDS.START_POS]}),this.position++):C[this.currToken[m.FIELDS.TYPE]]||o||this.unexpected(),n){if(o){var i=this.convertWhitespaceNodesToSpace(o),s=i.space,a=i.rawSpace;n.spaces.before=s,n.rawSpaceBefore=a}}else{var u=this.convertWhitespaceNodesToSpace(o,!0),c=u.space,l=u.rawSpace;l||(l=c);var d={},h={spaces:{}};c.endsWith(\" \")&&l.endsWith(\" \")?(d.before=c.slice(0,c.length-1),h.spaces.before=l.slice(0,l.length-1)):c.startsWith(\" \")&&l.startsWith(\" \")?(d.after=c.slice(1),h.spaces.after=l.slice(1)):h.value=l,n=new f.default({value:\" \",source:O(r,this.tokens[this.position-1]),sourceIndex:r[m.FIELDS.START_POS],spaces:d,raws:h})}return this.currToken&&this.currToken[m.FIELDS.TYPE]===y.space&&(n.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(n)}var p=this.parseWhitespaceEquivalentTokens(t);if(p.length>0){var g=this.current.last;if(g){var v=this.convertWhitespaceNodesToSpace(p),b=v.space,_=v.rawSpace;void 0!==_&&(g.rawSpaceAfter+=_),g.spaces.after+=b}else p.forEach((function(t){return e.newNode(t)}))}},_.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;this.current._inferEndPosition();var e=new i.default({source:{start:E(this.tokens[this.position+1])}});this.current.parent.append(e),this.current=e,this.position++},_.comment=function(){var e=this.currToken;this.newNode(new a.default({value:this.content(),source:N(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},_.error=function(e,t){throw this.root.error(e,t)},_.missingBackslash=function(){return this.error(\"Expected a backslash preceding the semicolon.\",{index:this.currToken[m.FIELDS.START_POS]})},_.missingParenthesis=function(){return this.expected(\"opening parenthesis\",this.currToken[m.FIELDS.START_POS])},_.missingSquareBracket=function(){return this.expected(\"opening square bracket\",this.currToken[m.FIELDS.START_POS])},_.unexpected=function(){return this.error(\"Unexpected '\"+this.content()+\"'. Escaping special characters with \\\\ may help.\",this.currToken[m.FIELDS.START_POS])},_.namespace=function(){var e=this.prevToken&&this.content(this.prevToken)||!0;return this.nextToken[m.FIELDS.TYPE]===y.word?(this.position++,this.word(e)):this.nextToken[m.FIELDS.TYPE]===y.asterisk?(this.position++,this.universal(e)):void 0},_.nesting=function(){if(this.nextToken&&\"|\"===this.content(this.nextToken))return void this.position++;var e=this.currToken;this.newNode(new g.default({value:this.content(),source:N(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},_.parentheses=function(){var e=this.current.last,t=1;if(this.position++,e&&e.type===b.PSEUDO){var n=new i.default({source:{start:E(this.tokens[this.position-1])}}),r=this.current;for(e.append(n),this.current=n;this.position<this.tokens.length&&t;)this.currToken[m.FIELDS.TYPE]===y.openParenthesis&&t++,this.currToken[m.FIELDS.TYPE]===y.closeParenthesis&&t--,t?this.parse():(this.current.source.end=x(this.currToken),this.current.parent.source.end=x(this.currToken),this.position++);this.current=r}else{for(var o,s=this.currToken,a=\"(\";this.position<this.tokens.length&&t;)this.currToken[m.FIELDS.TYPE]===y.openParenthesis&&t++,this.currToken[m.FIELDS.TYPE]===y.closeParenthesis&&t--,o=this.currToken,a+=this.parseParenthesisToken(this.currToken),this.position++;e?e.appendToPropertyAndEscape(\"value\",a,a):this.newNode(new l.default({value:a,source:T(s[m.FIELDS.START_LINE],s[m.FIELDS.START_COL],o[m.FIELDS.END_LINE],o[m.FIELDS.END_COL]),sourceIndex:s[m.FIELDS.START_POS]}))}if(t)return this.expected(\"closing parenthesis\",this.currToken[m.FIELDS.START_POS])},_.pseudo=function(){for(var e=this,t=\"\",n=this.currToken;this.currToken&&this.currToken[m.FIELDS.TYPE]===y.colon;)t+=this.content(),this.position++;return this.currToken?this.currToken[m.FIELDS.TYPE]!==y.word?this.expected([\"pseudo-class\",\"pseudo-element\"],this.currToken[m.FIELDS.START_POS]):void this.splitWord(!1,(function(r,o){t+=r,e.newNode(new d.default({value:t,source:O(n,e.currToken),sourceIndex:n[m.FIELDS.START_POS]})),o>1&&e.nextToken&&e.nextToken[m.FIELDS.TYPE]===y.openParenthesis&&e.error(\"Misplaced parenthesis.\",{index:e.nextToken[m.FIELDS.START_POS]})})):this.expected([\"pseudo-class\",\"pseudo-element\"],this.position-1)},_.space=function(){var e=this.content();0===this.position||this.prevToken[m.FIELDS.TYPE]===y.comma||this.prevToken[m.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every((function(e){return\"comment\"===e.type}))?(this.spaces=this.optionalSpace(e),this.position++):this.position===this.tokens.length-1||this.nextToken[m.FIELDS.TYPE]===y.comma||this.nextToken[m.FIELDS.TYPE]===y.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(e),this.position++):this.combinator()},_.string=function(){var e=this.currToken;this.newNode(new l.default({value:this.content(),source:N(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},_.universal=function(e){var t=this.nextToken;if(t&&\"|\"===this.content(t))return this.position++,this.namespace();var n=this.currToken;this.newNode(new p.default({value:this.content(),source:N(n),sourceIndex:n[m.FIELDS.START_POS]}),e),this.position++},_.splitWord=function(e,t){for(var n=this,r=this.nextToken,o=this.content();r&&~[y.dollar,y.caret,y.equals,y.word].indexOf(r[m.FIELDS.TYPE]);){this.position++;var i=this.content();if(o+=i,i.lastIndexOf(\"\\\\\")===i.length-1){var a=this.nextToken;a&&a[m.FIELDS.TYPE]===y.space&&(o+=this.requiredSpace(this.content(a)),this.position++)}r=this.nextToken}var l=M(o,\".\").filter((function(e){return\"\\\\\"!==o[e-1]})),d=M(o,\"#\").filter((function(e){return\"\\\\\"!==o[e-1]})),h=M(o,\"#{\");h.length&&(d=d.filter((function(e){return!~h.indexOf(e)})));var p=(0,v.default)(function(){var e=Array.prototype.concat.apply([],arguments);return e.filter((function(t,n){return n===e.indexOf(t)}))}([0].concat(l,d)));p.forEach((function(r,i){var a,h=p[i+1]||o.length,f=o.slice(r,h);if(0===i&&t)return t.call(n,f,p.length);var g=n.currToken,v=g[m.FIELDS.START_POS]+p[i],y=T(g[1],g[2]+r,g[3],g[2]+(h-1));if(~l.indexOf(r)){var b={value:f.slice(1),source:y,sourceIndex:v};a=new s.default(A(b,\"value\"))}else if(~d.indexOf(r)){var _={value:f.slice(1),source:y,sourceIndex:v};a=new u.default(A(_,\"value\"))}else{var w={value:f,source:y,sourceIndex:v};A(w,\"value\"),a=new c.default(w)}n.newNode(a,e),e=null})),this.position++},_.word=function(e){var t=this.nextToken;return t&&\"|\"===this.content(t)?(this.position++,this.namespace()):this.splitWord(e)},_.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},_.parse=function(e){switch(this.currToken[m.FIELDS.TYPE]){case y.space:this.space();break;case y.comment:this.comment();break;case y.openParenthesis:this.parentheses();break;case y.closeParenthesis:e&&this.missingParenthesis();break;case y.openSquare:this.attribute();break;case y.dollar:case y.caret:case y.equals:case y.word:this.word();break;case y.colon:this.pseudo();break;case y.comma:this.comma();break;case y.asterisk:this.universal();break;case y.ampersand:this.nesting();break;case y.slash:case y.combinator:this.combinator();break;case y.str:this.string();break;case y.closeSquare:this.missingSquareBracket();case y.semicolon:this.missingBackslash();default:this.unexpected()}},_.expected=function(e,t,n){if(Array.isArray(e)){var r=e.pop();e=e.join(\", \")+\" or \"+r}var o=/^[aeiou]/.test(e[0])?\"an\":\"a\";return n?this.error(\"Expected \"+o+\" \"+e+', found \"'+n+'\" instead.',{index:t}):this.error(\"Expected \"+o+\" \"+e+\".\",{index:t})},_.requiredSpace=function(e){return this.options.lossy?\" \":e},_.optionalSpace=function(e){return this.options.lossy?\"\":e},_.lossySpace=function(e,t){return this.options.lossy?t?\" \":\"\":e},_.parseParenthesisToken=function(e){var t=this.content(e);return e[m.FIELDS.TYPE]===y.space?this.requiredSpace(t):t},_.newNode=function(e,t){return t&&(/^ +$/.test(t)&&(this.options.lossy||(this.spaces=(this.spaces||\"\")+t),t=!0),e.namespace=t,A(e,\"namespace\")),this.spaces&&(e.spaces.before=this.spaces,this.spaces=\"\"),this.current.append(e)},_.content=function(e){return void 0===e&&(e=this.currToken),this.css.slice(e[m.FIELDS.START_POS],e[m.FIELDS.END_POS])},_.locateNextMeaningfulToken=function(e){void 0===e&&(e=this.position+1);for(var t=e;t<this.tokens.length;){if(!k[this.tokens[t][m.FIELDS.TYPE]])return t;t++}return-1},t=e,(n=[{key:\"currToken\",get:function(){return this.tokens[this.position]}},{key:\"nextToken\",get:function(){return this.tokens[this.position+1]}},{key:\"prevToken\",get:function(){return this.tokens[this.position-1]}}])&&S(t.prototype,n),r&&S(t,r),e}();t.default=P,e.exports=t.default}));Jt(Pn);var Ln=Qt((function(e,t){t.__esModule=!0,t.default=void 0;var n,r=(n=Pn)&&n.__esModule?n:{default:n};var o=function(){function e(e,t){this.func=e||function(){},this.funcRes=null,this.options=t}var t=e.prototype;return t._shouldUpdateSelector=function(e,t){return void 0===t&&(t={}),!1!==Object.assign({},this.options,t).updateSelector&&\"string\"!=typeof e},t._isLossy=function(e){return void 0===e&&(e={}),!1===Object.assign({},this.options,e).lossless},t._root=function(e,t){return void 0===t&&(t={}),new r.default(e,this._parseOptions(t)).root},t._parseOptions=function(e){return{lossy:this._isLossy(e)}},t._run=function(e,t){var n=this;return void 0===t&&(t={}),new Promise((function(r,o){try{var i=n._root(e,t);Promise.resolve(n.func(i)).then((function(r){var o=void 0;return n._shouldUpdateSelector(e,t)&&(o=i.toString(),e.selector=o),{transform:r,root:i,string:o}})).then(r,o)}catch(e){return void o(e)}}))},t._runSync=function(e,t){void 0===t&&(t={});var n=this._root(e,t),r=this.func(n);if(r&&\"function\"==typeof r.then)throw new Error(\"Selector processor returned a promise to a synchronous call.\");var o=void 0;return t.updateSelector&&\"string\"!=typeof e&&(o=n.toString(),e.selector=o),{transform:r,root:n,string:o}},t.ast=function(e,t){return this._run(e,t).then((function(e){return e.root}))},t.astSync=function(e,t){return this._runSync(e,t).root},t.transform=function(e,t){return this._run(e,t).then((function(e){return e.transform}))},t.transformSync=function(e,t){return this._runSync(e,t).transform},t.process=function(e,t){return this._run(e,t).then((function(e){return e.string||e.root.toString()}))},t.processSync=function(e,t){var n=this._runSync(e,t);return n.string||n.root.toString()},e}();t.default=o,e.exports=t.default}));Jt(Ln);var Dn=Qt((function(e,t){t.__esModule=!0,t.universal=t.tag=t.string=t.selector=t.root=t.pseudo=t.nesting=t.id=t.comment=t.combinator=t.className=t.attribute=void 0;var n=f(En),r=f(mn),o=f(Tn),i=f(yn),s=f(bn),a=f(Nn),u=f(Sn),c=f(cn),l=f(ln),d=f(In),h=f(wn),p=f(xn);function f(e){return e&&e.__esModule?e:{default:e}}t.attribute=function(e){return new n.default(e)};t.className=function(e){return new r.default(e)};t.combinator=function(e){return new o.default(e)};t.comment=function(e){return new i.default(e)};t.id=function(e){return new s.default(e)};t.nesting=function(e){return new a.default(e)};t.pseudo=function(e){return new u.default(e)};t.root=function(e){return new c.default(e)};t.selector=function(e){return new l.default(e)};t.string=function(e){return new d.default(e)};t.tag=function(e){return new h.default(e)};t.universal=function(e){return new p.default(e)}}));Jt(Dn),Dn.universal,Dn.tag,Dn.string,Dn.selector,Dn.root,Dn.pseudo,Dn.nesting,Dn.id,Dn.comment,Dn.combinator,Dn.className,Dn.attribute;var Rn=Qt((function(e,t){var n;t.__esModule=!0,t.isNode=o,t.isPseudoElement=y,t.isPseudoClass=function(e){return h(e)&&!y(e)},t.isContainer=function(e){return!(!o(e)||!e.walk)},t.isNamespace=function(e){return s(e)||v(e)},t.isUniversal=t.isTag=t.isString=t.isSelector=t.isRoot=t.isPseudo=t.isNesting=t.isIdentifier=t.isComment=t.isCombinator=t.isClassName=t.isAttribute=void 0;var r=((n={})[an.ATTRIBUTE]=!0,n[an.CLASS]=!0,n[an.COMBINATOR]=!0,n[an.COMMENT]=!0,n[an.ID]=!0,n[an.NESTING]=!0,n[an.PSEUDO]=!0,n[an.ROOT]=!0,n[an.SELECTOR]=!0,n[an.STRING]=!0,n[an.TAG]=!0,n[an.UNIVERSAL]=!0,n);function o(e){return\"object\"==typeof e&&r[e.type]}function i(e,t){return o(t)&&t.type===e}var s=i.bind(null,an.ATTRIBUTE);t.isAttribute=s;var a=i.bind(null,an.CLASS);t.isClassName=a;var u=i.bind(null,an.COMBINATOR);t.isCombinator=u;var c=i.bind(null,an.COMMENT);t.isComment=c;var l=i.bind(null,an.ID);t.isIdentifier=l;var d=i.bind(null,an.NESTING);t.isNesting=d;var h=i.bind(null,an.PSEUDO);t.isPseudo=h;var p=i.bind(null,an.ROOT);t.isRoot=p;var f=i.bind(null,an.SELECTOR);t.isSelector=f;var g=i.bind(null,an.STRING);t.isString=g;var v=i.bind(null,an.TAG);t.isTag=v;var m=i.bind(null,an.UNIVERSAL);function y(e){return h(e)&&e.value&&(e.value.startsWith(\"::\")||\":before\"===e.value.toLowerCase()||\":after\"===e.value.toLowerCase())}t.isUniversal=m}));Jt(Rn),Rn.isNode,Rn.isPseudoElement,Rn.isPseudoClass,Rn.isContainer,Rn.isNamespace,Rn.isUniversal,Rn.isTag,Rn.isString,Rn.isSelector,Rn.isRoot,Rn.isPseudo,Rn.isNesting,Rn.isIdentifier,Rn.isComment,Rn.isCombinator,Rn.isClassName,Rn.isAttribute;var Bn=Qt((function(e,t){t.__esModule=!0,Object.keys(an).forEach((function(e){\"default\"!==e&&\"__esModule\"!==e&&(e in t&&t[e]===an[e]||(t[e]=an[e]))})),Object.keys(Dn).forEach((function(e){\"default\"!==e&&\"__esModule\"!==e&&(e in t&&t[e]===Dn[e]||(t[e]=Dn[e]))})),Object.keys(Rn).forEach((function(e){\"default\"!==e&&\"__esModule\"!==e&&(e in t&&t[e]===Rn[e]||(t[e]=Rn[e]))}))}));Jt(Bn);var jn,Fn=Qt((function(e,t){t.__esModule=!0,t.default=void 0;var n,r=(n=Ln)&&n.__esModule?n:{default:n},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(Bn);function i(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var s=function(e){return new r.default(e)};Object.assign(s,o),delete s.__esModule;var a=s;t.default=a,e.exports=t.default})),Un=Jt(Fn);function zn(e,t){var n=e.matches||e.webkitMatchesSelector;if(n)try{return n.call(e,t)}catch(e){}return!1}function Hn(e){return Ne([],e,!0).sort((function(e,t){return qn(e)-qn(t)}))}function qn(e){return 1===e.matchingSelectors.length?Wn(e.rule.selectorList.selectors[0].text):er(e.matchingSelectors.map((function(t){return e.rule.selectorList.selectors[t].text})))}!function(e){e[e.ClassA=65536]=\"ClassA\",e[e.ClassB=256]=\"ClassB\",e[e.ClassC=1]=\"ClassC\"}(jn||(jn={}));var Gn={};function Wn(e){if(\"string\"==typeof e&&Gn[e])return Gn[e];var t,n=0;return\"string\"==typeof e&&Un((function(e){e.nodes&&e.nodes.length&&(t=e.nodes[0])})).process(e),t.nodes&&t.nodes.length&&t.nodes.forEach((function(e){n=Kn(n,function(e){switch(e.type){case\"id\":return jn.ClassA;case\"pseudo\":switch((e.value.match(/^:+(\\w+)/)||[])[1]){case\"is\":case\"match\":case\"not\":return er(e.nodes);case\"where\":return 0;case\"nth-child\":case\"nth-last-child\":return Kn(jn.ClassB,e.nodes?er(e.nodes):0);case\"before\":case\"after\":return jn.ClassC}return jn.ClassB;case\"class\":case\"attribute\":return jn.ClassB;case\"tag\":return jn.ClassC}return 0}(e))})),\"string\"==typeof e&&(Gn[e]=n),n}var Zn,Yn=16711680,Vn=65280,Xn=255;function Jn(e){return e&Yn}function Qn(e){return e&Vn}function $n(e){return e&Xn}function Kn(e,t){var n=e,r=Jn(t);!function(e){return e&~Yn}(Jn(n)+r)?n+=r:n=function(e){return e|Yn}(n);var o=Qn(t);!function(e){return e&~Vn}(Qn(n)+o)?n+=o:n=function(e){return e|Vn}(n);var i=$n(t);return!function(e){return e&~Xn}($n(n)+i)?n+=i:n=function(e){return e|Xn}(n),n}function er(e){return Math.max.apply(Math,e.map((function(e){return Wn(e)})))}function tr(e,t){var n;if(\"decl\"===e.type)n={disabled:!1,important:Boolean(e.important),name:e.prop,value:nr(e)};else if(\"comment\"===e.type){var r=void 0;try{var o=Kt.parse(e.text);o.first&&\"decl\"===o.first.type&&(r=o.first)}catch(e){}if(!r)return;n={disabled:!0,name:r.prop,value:nr(r)}}return n&&t&&(n.range={endColumn:e.source.end.column,endLine:e.source.end.line-1,startColumn:e.source.start.column-1,startLine:e.source.start.line-1},n.text=e.toString()),n}function nr(e){return e.important?\"\".concat(e.value).concat(e.raws.important||\" !important\"):e.value}function rr(e,t){var n=e.nodes,r=void 0===n?[]:n,o=e.first,i=e.last,s=r[0],a=0;s&&s.raws.before&&(a=s.raws.before.split(\"\\n\").length-1);var u=[];r.forEach((function(e){var n=tr(e,t);n&&u.push(n)}));var c={cssProperties:u,shorthandEntries:[]};return t&&(c.styleSheetId=t,c.cssText=Kt.root({nodes:r,raws:{semicolon:e.raws.semicolon}}).toString(),c.range={endColumn:i?i.source.end.column:0,endLine:i?i.source.end.line-1:0,startColumn:a?0:o?o.source.start.column-1:0,startLine:o?o.source.start.line-1-a:0}),c}function or(e,t){var n;try{n=Kt.parse(e)}catch(e){return void console.warn(e)}var r=[];(n.nodes||[]).forEach((function(e){var n=tr(e,t);n&&r.push(n)}));var o={cssProperties:r,shorthandEntries:[]};return t&&(o.styleSheetId=t,o.cssText=e,o.range={endColumn:e.length,endLine:0,startColumn:0,startLine:0}),o}function ir(e,t,n,r){var o=[];return e.selectors.length>1?e.selectors.forEach((function(e,n){(r?r.test(e)&&zn(t,e.replace(r,\"\")):zn(t,e))&&o.push(n)})):o.push(0),{matchingSelectors:o,rule:{origin:\"regular\",selectorList:{selectors:e.selectors.map((function(t){return{range:n?{endColumn:e.source.start.column+e.selector.length-1,endLine:e.source.start.line-1,startColumn:e.source.start.column-1,startLine:e.source.start.line-1}:void 0,text:t}})),text:e.selector},style:rr(e,n),styleSheetId:n}}}var sr,ar=new Map,ur=new Map,cr=/::?before\\b/,lr=/::?after\\b/;function dr(e){for(var t=new Map,n=function(){for(var e=[],t=0,n=Array.from(document.styleSheets);t<n.length;t++){var r=n[t];if(!r.href&&r.ownerNode){var o=r.ownerNode.hasAttribute(\"data-page-path\"),i=r.ownerNode.hasAttribute(\"data-exter-class\");if(o||i){var s=tt(r.ownerNode.textContent);e.push({hash:\"\".concat(o,\"-\").concat(s.slice(0,8)),node:r})}}}return{usedStylesSheets:e}}().usedStylesSheets,r=0;r<n.length;r++){var o=n[r];try{var i=o.node,s=o.hash;if(!ar.has(s)||e){var a=i.ownerNode.textContent,u=Kt.parse(a),c=i.ownerNode.getAttribute(\"data-stylesheet-id\");c||(c=\"1000.\".concat(ar.size)),ar.set(s,{ownerNode:i.ownerNode,postCSSRoot:u,styleSheetId:c,hash:s}),i.ownerNode.setAttribute(\"data-stylesheet-id\",c),ur.set(c,s)}t.set(s,ar.get(s))}catch(e){console.warn(e)}}return t}function hr(e){var t=ur.get(e);if(t)return ar.get(t)}function pr(e){var t=hr(e);if(t&&t.ownerNode){var n=t.ownerNode,r=t.hash;try{ar.set(e,{ownerNode:n,postCSSRoot:Kt.parse(n.textContent),styleSheetId:e,hash:r})}catch(t){ar.set(e,{ownerNode:n,postCSSRoot:Kt.parse(\"\"),styleSheetId:e,hash:r}),console.warn(t)}}}function fr(e){var t=e.postCSSRoot,n=e.ownerNode,r=e.styleSheetId;return{disabled:!1,endColumn:t.last?t.last.source.end.column-1:0,endLine:t.last?t.last.source.end.line-1:0,frameId:\"MOCK_FRAME_ID\",isInline:!0,length:n.textContent.length,origin:\"regular\",sourceURL:\"\",startColumn:t.first?t.first.source.start.column-1:0,startLine:t.first?t.first.source.start.line-1:0,styleSheetId:r,title:\"\"}}function gr(e){dr().forEach((function(t){var n=t.postCSSRoot,r=t.styleSheetId;(n.nodes||[]).forEach((function(t){\"rule\"===t.type&&e(t,r)}))}))}function vr(e){return or(e.getInlineStyle()||\"\",e.inlineStyleSheetId)}function mr(e){sr||(sr=document.createElement(\"div\"));var t={};try{sr.innerHTML=\"<div \".concat(e,\"></div>\");for(var n=sr.firstChild.attributes,r=0,o=Array.from(n);r<o.length;r++){var i=o[r];t[i.name]=i.value}}catch(e){console.warn(e)}return t}function yr(e,t,n){var r,o,i,s,a,u=hr(e);if(u){var c;try{c=Kt.parse(n)}catch(e){return void console.warn(\"setStyleTexts4StyleSheet parse text error\",e)}var l=t.startLine,d=t.startColumn,h=((null===(o=null===(r=c.first)||void 0===r?void 0:r.raws)||void 0===o?void 0:o.before)||\"\").split(\"\\n\").length-1;h&&(l+=h,d=(null===(a=null===(s=null===(i=c.first)||void 0===i?void 0:i.source)||void 0===s?void 0:s.start)||void 0===a?void 0:a.column)||1);var p,f=u.postCSSRoot,g=u.ownerNode;return(f.nodes||[]).some((function(t,n){var r;if(\"rule\"!==t.type)return!1;var o=null===(r=t.first)||void 0===r?void 0:r.source;if(o&&o.start.line===l&&o.start.column===d){try{t.nodes=c.nodes,t.raws.semicolon=c.raws.semicolon,br(g,f.toString()),pr(e);var i=(hr(e)||{}).postCSSRoot;p=rr(i.nodes[n],e)}catch(e){console.warn(e)}return!0}})),p}}function br(e,t){return Object.getOwnPropertyDescriptor(Node.prototype,\"textContent\").set.call(e,t)}function _r(e){var t={matchedCSSRules:[],pseudoElements:[]},n=[],r=[],o=function(e){var t=e.node.getAttribute(\"style\");if(t)return or(t)}(e);o&&(t.inlineStyle=o);var i=e.node,s=function(e,o){var s=e.selector;zn(i,s)?t.matchedCSSRules.push(ir(e,i,o)):(cr.test(s)&&zn(i,s.replace(cr,\"\"))&&n.push(ir(e,i,o,cr)),lr.test(s)&&zn(i,s.replace(lr,\"\"))&&r.push(ir(e,i,o,lr)))};Zn&&(Zn.postCSSRoot.nodes||[]).forEach((function(e){\"rule\"===e.type&&s(e,void 0)})),gr((function(e,t){s(e,t)}));try{t.matchedCSSRules=Hn(t.matchedCSSRules),n.length&&t.pseudoElements.push({matches:Hn(n),pseudoType:\"before\"}),r.length&&t.pseudoElements.push({matches:Hn(r),pseudoType:\"after\"})}catch(e){}return t}var wr=Object.freeze({__proto__:null,enable:function(e,t,n){n(null,{})},getMatchedStylesForNode:function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r),i=e.nodeId2DOMNode.get(r),s=e.nodeId2PseudoElement.get(r),a={matchedCSSRules:[]};o&&o.nodeType===we.Element?a=function(e){var t={matchedCSSRules:[],pseudoElements:[]},n=[],r=[],o=vr(e);if(o&&(t.inlineStyle=o),e.dom){var i=e.dom.node;gr((function(e,o){var s=e.selector;zn(i,s)?t.matchedCSSRules.push(ir(e,i,o)):(cr.test(s)&&zn(i,s.replace(cr,\"\"))&&n.push(ir(e,i,o,cr)),lr.test(s)&&zn(i,s.replace(lr,\"\"))&&r.push(ir(e,i,o,lr)))}))}try{t.matchedCSSRules=Hn(t.matchedCSSRules),n.length&&t.pseudoElements.push({matches:Hn(n),pseudoType:\"before\"}),r.length&&t.pseudoElements.push({matches:Hn(r),pseudoType:\"after\"})}catch(e){}return t}(o):i&&1===i.nodeType?a=_r(i):s&&(a=function(e,t){var n={matchedCSSRules:[]},r=new RegExp(\"::?\".concat(t,\"\\\\b\"));gr((function(t,o){r.test(t.selector)&&zn(e,t.selector.replace(r,\"\"))&&n.matchedCSSRules.push(ir(t,e,o,r))}));try{n.matchedCSSRules=Hn(n.matchedCSSRules)}catch(e){}return n}(s.root,s.pseudoType)),n(null,a)},setStyleTexts:function(e,t,n){var r=[];t.edits.forEach((function(t){var n=t.styleSheetId,o=\"2000.\";if(0===n.indexOf(o)){var i=Number(n.replace(o,\"\")),s=e.nodeId2ZNode.get(i);if(s&&s.nodeType===we.Element){s.updateInlineStyle(t.text);var a=vr(s);a&&r.push(a),e.getZRuntimeHelper().X(s.node,s.getLinkedContext(),s.getClassName()||\"\",!1,s.getInlineStyle(),!0,s.getProperties(),{},2),e.flushUpdatedQueue()}}else{t.range.startLine+=1,t.range.startColumn+=1;var u=yr(n,t.range,t.text);u&&r.push(u)}})),n(null,{styles:r})},getComputedStyleForNode:function(e,t,n){var r,o=t.nodeId,i=e.nodeId2ZNode.get(o),s=e.nodeId2DOMNode.get(o),a=e.nodeId2PseudoElement.get(o),u=[];if(i&&i.nodeType===we.Element){var c=i.getPlatformRootDOM();c.nodeType===Node.ELEMENT_NODE&&(r=getComputedStyle(c))}else s&&1===s.nodeType?r=getComputedStyle(s.node):a&&(r=getComputedStyle(a.root,a.pseudoType));r&&(u=Array.from(r).map((function(e){return{name:e,value:r[e]}}))),n(null,{computedStyle:u})},getInlineStylesForNode:function(e,t,n){var r,o=t.nodeId,i=e.nodeId2ZNode.get(o);i&&i.nodeType===we.Element&&(r=vr(i)),r?n(null,{inlineStyle:r}):n(-32e3)},getStyleSheetText:function(e,t,n){var r=\"\",o=hr(t.styleSheetId);o&&(r=o.ownerNode.textContent),n(null,{text:r})}}),Ir=function(e,t,n){n(null,{nodeIds:t.backendNodeIds})},Sr=function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r),i=e.shadowRootNodeId2ZNode.get(r),s=e.nodeId2DOMNode.get(r);if(o){var a=o.serialize(1);a.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:a.children,parentId:t.nodeId})}else if(i)if(i.nodeType===we.Element){var u=i.getShadowRootDebugNode().serialize(0);u&&e.sendMessage(\"DOM.setChildNodes\",{nodes:[u],parentId:r})}else e.sendMessage(\"DOM.setChildNodes\",{nodes:[],parentId:r});else if(s){var c=s.serialize(1);c.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:c.children,parentId:r})}n(null,{})};var Cr=Object.freeze({__proto__:null,pushNodesByBackendIdsToFrontend:Ir,requestChildNodes:Sr,enable:function(e,t,n){n(null,{})},getDocument:function(e,t,n){!function(e,t,n){e.resetZNodeActivatedState(),n(null,{root:e.getDocumentNode()})}(e,0,n),dr().forEach((function(t){e.sendMessageWithPriority(\"CSS.styleSheetRemoved\",{styleSheetId:t.styleSheetId}),e.sendMessageWithPriority(\"CSS.styleSheetAdded\",{header:fr(t)});var n=t.ownerNode;Object.getOwnPropertyDescriptor(n,\"textContent\")||Object.defineProperty(n,\"textContent\",{get:function(){return function(e){return Object.getOwnPropertyDescriptor(Node.prototype,\"textContent\").get.call(e)}(n)},set:function(r){var o=br(n,r),i=t.styleSheetId;return e.sendMessage(\"CSS.styleSheetRemoved\",{styleSheetId:i}),pr(i),e.sendMessage(\"CSS.styleSheetAdded\",{header:fr(t)}),o},configurable:!0})}))},markUndoableState:function(e,t,n){n(null,{})},setNodeName:function(e,t,n){n(-32e3)},setAttributesAsText:function(e,t,n){var r,o=t.nodeId,i=t.text,s=t.name,a=e.nodeId2ZNode.get(o);if(a&&a.nodeType===we.Element){var u=a,c=mr(i),l=u.getClassName(),d=!1,h=u.getInlineStyle(),p=!1;if(\"class\"===s&&c.class!==l&&(l=c.class,d=!0,u.updateClassName(l)),\"style\"===s&&c.style!==h&&(h=c.style,p=!0,u.updateInlineStyle(h)),d||p)return e.getZRuntimeHelper().X(u.node,u.getLinkedContext(),l||\"\",d,h||\"\",p,u.getProperties(),{},3),void e.flushUpdatedQueue();var f=\"data-\";if(0===s.indexOf(f)){var g=s.replace(f,\"\"),v=u.getDataset().get(g),m=c[s];switch(typeof v){case\"number\":isNaN(Number(m))||(m=Number(m));break;case\"boolean\":\"true\"===m?m=!0:\"false\"===m&&(m=!1)}if(m!==v){var y=((r={})[g]=m,r);a.node.updateDatasetPartial(y),u.updateDataset(y)}}u.invalidate()}n(null,{})},setNodeValue:function(e,t,n){var r=t.nodeId,o=t.value,i=e.nodeId2ZNode.get(r);if(i&&i.nodeType===we.Text)return i.dom.node.textContent=o,n(null,{}),void e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:r});n(-32e3,{})},getOuterHTML:function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r);o?n(null,{outerHTML:o.getOuterAXML()}):n(-32e3,{message:\"node with nodeId(\".concat(r,\") not found\")})}});var kr=Object.freeze({__proto__:null,enable:function(e,t,n){n(null,{})},hideHighlight:function(e,t,n){e.getOverlayManager().hidehighlight(),n(null,{})},highlightNode:function(e,t,n){var r=t.nodeId,o=t.highlightConfig,i=t.selector,s=e.nodeId2ZNode.get(r),a=e.nodeId2DOMNode.get(r);if(i)n(null,{});else{if(s){if(s.nodeType===we.Element)(u=s.getPlatformRootDOM()).nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(s.getPlatformRootDOM(),o);else if(s.nodeType===we.Component){var u,c=s.getChildNodes();if(1===c.length&&c[0].nodeType===we.Element)(u=c[0].getPlatformRootDOM()).nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(u,o)}}else a?1===a.nodeType&&e.getOverlayManager().highlightNode(a.node,o):e.getOverlayManager().hidehighlight();n(null,{})}},setInspectMode:function(e,t,n){var r=t.mode,o=t.highlightConfig;\"none\"===r?e.getOverlayManager().leaveInspectMode():e.getOverlayManager().enterInspectMode(o),n(null,{})}}),Er=function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r);if(o&&o.nodeType===we.Component)return e.activatedCustomComponentId=o.nodeId,void n(void 0,{data:Pt(o.getData()).data,props:Pt(o.getProps()).data,targetId:o.targetId});e.activatedCustomComponentId=void 0,n(void 0,{})},xr=Object.freeze({__proto__:null,getComponentData:Er}),Tr=Object.freeze({__proto__:null,Elements:xr}),Nr=Object.freeze({__proto__:null,CSS:wr,DOM:Cr,Overlay:kr,Tiny:Tr});function Or(e,t){if(\"rgb\"===t){var n=e[0],r=e[1],o=e[2],i=e[3];return\"rgb(\".concat((255*n).toFixed(),\" \").concat((255*r).toFixed(),\" \").concat((255*o).toFixed()).concat(1===i?\"\":\" / \"+Math.round(100*i)/100,\")\")}if(\"hsl\"===t){var s=function(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=Math.max(t,n,r),s=Math.min(t,n,r),a=i-s,u=i+s,c=.5*u;return[s===i?0:t===i?(1/6*(n-r)/a+1)%1:n===i?1/6*(r-t)/a+1/3:1/6*(t-n)/a+2/3,0===c||1===c?0:c<=.5?a/u:a/(2-u),c,o]}(e),a=s[0],u=s[1],c=s[2];i=s[3];return\"hsl(\".concat(Math.round(360*a),\"deg \").concat(Math.round(100*u),\" \").concat(Math.round(100*c)).concat(1===i?\"\":\" / \"+Math.round(100*i)/100,\")\")}throw new Error(\"NOT_REACHED\")}function Ar(e,t,n){return e<t?e=t:e>n&&(e=n),e}function Mr(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}function Pr(e,t){var n,r,o,i,s,a=function(){s&&(s.innerHTML=\"\")};function u(e,t){var n=Dr(\"div\",\"element-info\"),r=Hr(n,\"div\",\"element-info-header\"),o=function(e){if(e.layoutObjectName&&e.layoutObjectName.endsWith(\"Grid\"))return\"grid\";if(e.layoutObjectName&&\"LayoutNGFlexibleBox\"===e.layoutObjectName)return\"flex\";return null}(e);o&&Hr(r,\"div\",\"element-layout-type \".concat(o));var i=Hr(r,\"div\",\"element-description monospace\");Hr(i,\"span\",\"material-tag-name\").textContent=e.tagName;var s=Hr(i,\"span\",\"material-node-id\");s.textContent=e.idValue?\"#\"+qr(e.idValue,80):\"\",s.classList.toggle(\"hidden\",!e.idValue);var a=Hr(i,\"span\",\"material-class-name\");s.textContent.length<80&&(a.textContent=qr(e.className||\"\",80-s.textContent.length)),a.classList.toggle(\"hidden\",!e.className);var u=Hr(r,\"div\",\"dimensions\");Hr(u,\"span\",\"material-node-width\").textContent=String(Math.round(100*e.nodeWidth)/100),Gr(u,\"×\"),Hr(u,\"span\",\"material-node-height\").textContent=String(Math.round(100*e.nodeHeight)/100);var c,l=e.style||{},d=l.color;d&&\"#00000000\"!==d&&b(\"Color\",d,t);var h=l[\"font-family\"],p=l[\"font-size\"];h&&\"0px\"!==p&&y(\"Font\",\"\".concat(p,\" \").concat(h));var f=l[\"background-color\"];f&&\"#00000000\"!==f&&b(\"Background\",f,t);var g=l.margin;g&&\"0px\"!==g&&y(\"Margin\",g);var v=l.padding;function m(e,t,r){c||(c=Hr(n,\"div\",\"element-info-body\"));var o=Hr(c,\"div\",\"element-info-row\");return t&&o.classList.add(t),Hr(o,\"div\",\"element-info-name\").textContent=e,Hr(o,\"div\",\"element-info-gap\"),Hr(o,\"div\",r||\"\")}function y(e,t){Gr(m(e,\"\",\"element-info-value-text\"),t)}function b(e,t,n){var r=m(e,\"\",\"element-info-value-color\"),o=Hr(r,\"div\",\"color-swatch\");Hr(o,\"div\",\"color-swatch-inner\").style.backgroundColor=t,Gr(r,function(e,t){if(\"rgb\"===t||\"hsl\"===t)return Or(function(e){return(e.match(/#(\\w\\w)(\\w\\w)(\\w\\w)(\\w\\w)/)||[]).slice(1).map((function(e){return parseInt(e,16)/255}))}(e),t);if(e.endsWith(\"FF\"))return e.substr(0,7);return e}(t,n))}return v&&\"0px\"!==v&&y(\"Padding\",v),n}var c=function(e){var t,n,r,o;if(a(),!e.elementInfo||0!==Object.keys(e.elementInfo).length){e.platform&&s.classList.add(\"platform-\".concat(e.platform));var i=null!==(t=e.elementInfo.nodeLeft)&&void 0!==t?t:Number.MAX_VALUE,c=null!==(n=e.elementInfo.nodeTop)&&void 0!==n?n:Number.MAX_VALUE,l=null!==(r=e.elementInfo.nodeLeft+e.elementInfo.nodeWidth)&&void 0!==r?r:-Number.MAX_VALUE,d=null!==(o=e.elementInfo.nodeTop+e.elementInfo.nodeHeight)&&void 0!==o?o:-Number.MAX_VALUE,h=Hr(s,\"div\"),p=Hr(h,\"div\",\"tooltip-content\"),f=u(e.elementInfo,e.colorFormat);p.appendChild(f);var g,v=Mr(document.documentElement.clientWidth,4),m=Mr(document.documentElement.clientHeight,4),y=p.offsetWidth,b=p.offsetHeight,_=10,w=v-2-_-16;if(l-i<36)g=.5*(i+l)-8;else{var I=i+_;g=I>12&&I<w?I:Ar(12,I,l-_-16)}var S=g<12||g>w,C=g-_;C=Ar(C,2,v-y-2);var k=function(){var e=0,t=0,n=getComputedStyle(s),r=n.getPropertyValue(\"--sat\");if(r){var o=Number(r.slice(0,-2));isNaN(o)||(e=o)}var i=n.getPropertyValue(\"--sab\");i&&(o=Number(i.slice(0,-2)),isNaN(o)||(t=o));return{safeAreaTop:e,safeAreaBottom:t}}(),E=k.safeAreaTop,x=k.safeAreaBottom,T=c-8-b,N=!0;T<E?(T=Math.min(m-b,d+8),N=!1):c>m&&(T=m-8-b-x);var O=C>=i&&C+y<=l&&T>=c&&T+b<=d;!(C<l&&C+y>i&&T<d&&T+b>c)||O?(p.style.top=T+\"px\",p.style.left=C+\"px\",p.style.setProperty(\"--arrow-visibility\",S||O?\"hidden\":\"visible\"),S||(p.style.setProperty(\"--arrow\",N?\"var(--arrow-down)\":\"var(--arrow-up)\"),p.style.setProperty(\"--shadow-direction\",N?\"var(--shadow-up)\":\"var(--shadow-down)\"),p.style.setProperty(\"--arrow-top\",(N?b-2:-8)+\"px\"),p.style.setProperty(\"--arrow-left\",g-C+\"px\"))):p.style.display=\"none\"}};return{c:function(){n=Dr(\"div\"),r=Dr(\"div\"),o=Dr(\"div\"),i=Dr(\"div\"),(s=Dr(\"div\")).id=\"tinybugme-tooltip-container\",this.h()},h:function(){Rr(i,\"background-color\",t.content.color),Rr(i,\"box-sizing\",\"border-box\"),Rr(i,\"height\",\"100%\"),Rr(i,\"width\",\"100%\"),Rr(o,\"border-color\",t.padding.color),Rr(o,\"border-bottom-width\",t.padding.bottom),Rr(o,\"border-left-width\",t.padding.left),Rr(o,\"border-right-width\",t.padding.right),Rr(o,\"border-top-width\",t.padding.top),Rr(o,\"border-style\",\"solid\"),Rr(o,\"box-sizing\",\"border-box\"),Rr(o,\"height\",\"100%\"),Rr(o,\"width\",\"100%\"),Rr(r,\"border-color\",t.border.color),Rr(r,\"border-bottom-width\",t.border.bottom),Rr(r,\"border-left-width\",t.border.left),Rr(r,\"border-right-width\",t.border.right),Rr(r,\"border-top-width\",t.border.top),Rr(r,\"border-style\",\"solid\"),Rr(r,\"box-sizing\",\"border-box\"),Rr(r,\"height\",t.rect.height),Rr(r,\"width\",t.rect.width),Rr(n,\"border-color\",t.margin.color),Rr(n,\"border-bottom-width\",t.margin.bottom),Rr(n,\"border-left-width\",t.margin.left),Rr(n,\"border-right-width\",t.margin.right),Rr(n,\"border-top-width\",t.margin.top),Rr(n,\"border-style\",\"solid\"),Rr(n,\"box-sizing\",\"border-box\"),Rr(n,\"left\",t.rect.left),Rr(n,\"position\",\"fixed\"),Rr(n,\"top\",t.rect.top),Rr(n,\"z-index\",\"999999\"),Rr(n,\"display\",t.show?\"block\":\"none\"),Rr(n,\"pointer-events\",\"none\"),c(t)},m:function(e,t){Br(n,e,t),jr(r,n),jr(o,r),jr(i,o),Br(s,e,t)},p:function(e,t){e.content&&Rr(i,\"background-color\",t.content.color),e.padding&&(Rr(o,\"border-color\",t.padding.color),Rr(o,\"border-bottom-width\",t.padding.bottom),Rr(o,\"border-left-width\",t.padding.left),Rr(o,\"border-right-width\",t.padding.right),Rr(o,\"border-top-width\",t.padding.top)),e.border&&(Rr(r,\"border-color\",t.border.color),Rr(r,\"border-bottom-width\",t.border.bottom),Rr(r,\"border-left-width\",t.border.left),Rr(r,\"border-right-width\",t.border.right),Rr(r,\"border-top-width\",t.border.top)),e.rect&&(Rr(r,\"height\",t.rect.height),Rr(r,\"width\",t.rect.width)),e.margin&&(Rr(n,\"border-color\",t.margin.color),Rr(n,\"border-bottom-width\",t.margin.bottom),Rr(n,\"border-left-width\",t.margin.left),Rr(n,\"border-right-width\",t.margin.right),Rr(n,\"border-top-width\",t.margin.top)),e.rect&&(Rr(n,\"left\",t.rect.left),Rr(n,\"top\",t.rect.top)),e.elementInfo&&c(t),e.show&&(Rr(n,\"display\",t.show?\"block\":\"none\"),t.show||a())},u:function(){!function(e){e.parentNode.removeChild(e)}(n)},d:Fr}}var Lr=function(){function e(e){this.options=e,this._handlers=Object.create(null),this._bind=e._bind,this.options=e,this.root=e.root||this,this.store=this.root.store||e.store,this._state=Ur({},e.data),this._fragment=Pr(0,this._state),e.target&&(this._fragment.c(),this._mount(e.target,e.anchor));for(var t=0,n=['\\nbody {\\n --arrow-width: 15px;\\n --arrow-height: 8px;\\n --shadow-up: 5px;\\n --shadow-down: -5px;\\n --shadow-direction: var(--shadow-up);\\n --arrow-down: polygon(0 0, 100% 0, 50% 100%);\\n --arrow-up: polygon(50% 0, 0 100%, 100% 100%);\\n}\\n#tinybugme-tooltip-container {\\n margin: 0px;\\n padding: 0px;\\n font-size: 13px;\\n inset: 0px;\\n z-index: 100000000000;\\n pointer-events: none;\\n position: fixed;\\n top: 0;\\n right: 0;\\n bottom: 0;\\n left: 0;\\n}\\n#tinybugme-tooltip-container.platform-android {\\n font-family: Roboto, Ubuntu, Arial, sans-serif;\\n}\\n#tinybugme-tooltip-container.platform-ios {\\n color: rgb(48 57 66);\\n font-family: \"-apple-system-font\", \"Helvetica Neue\", \"Lucida Grande\", sans-serif;\\n --sat: var(--safe-area-inset-top);\\n --sar: var(--safe-area-inset-right);\\n --sab: var(--safe-area-inset-bottom);\\n --sal: var(--safe-area-inset-left);\\n}\\n#tinybugme-tooltip-container.platform-ide {\\n font-family: \"Helvetica Neue\", \"Lucida Grande\", \"Segoe UI\", Tahoma, sans-serif;\\n --sat: var(--safe-area-inset-top);\\n --sar: var(--safe-area-inset-right);\\n --sab: var(--safe-area-inset-bottom);\\n --sal: var(--safe-area-inset-left);\\n}\\n#tinybugme-tooltip-container .px {\\n color: rgb(128 128 128);\\n}\\n#tinybugme-tooltip-container #element-title {\\n position: absolute;\\n z-index: 100000000001;\\n}\\n#tinybugme-tooltip-container .tooltip-content {\\n position: absolute;\\n user-select: none;\\n background-color: #fff;\\n padding: 5px 8px;\\n border: 1px solid #fff;\\n border-radius: 3px;\\n box-sizing: border-box;\\n min-width: 100px;\\n max-width: min(300px, 100% - 4px);\\n z-index: 100000000002;\\n background-clip: padding-box;\\n will-change: transform;\\n text-rendering: optimizeLegibility;\\n pointer-events: none;\\n filter: drop-shadow(0 2px 4px rgb(0 0 0 / 35%));\\n}\\n#tinybugme-tooltip-container.platform-android .tooltip-content {\\n max-width: 100%;\\n}\\n#tinybugme-tooltip-container .tooltip-content::after {\\n content: \"\";\\n background: #fff;\\n width: var(--arrow-width);\\n height: var(--arrow-height);\\n clip-path: var(--arrow);\\n position: absolute;\\n top: var(--arrow-top);\\n left: var(--arrow-left);\\n visibility: var(--arrow-visibility);\\n}\\n#tinybugme-tooltip-container .element-info-section {\\n margin-top: 12px;\\n margin-bottom: 6px;\\n}\\n#tinybugme-tooltip-container .section-name {\\n color: #333;\\n font-weight: 500;\\n font-size: 10px;\\n text-transform: uppercase;\\n letter-spacing: 0.05em;\\n line-height: 12px;\\n}\\n#tinybugme-tooltip-container .element-info {\\n display: flex;\\n flex-direction: column;\\n}\\n#tinybugme-tooltip-container .element-info-header {\\n display: flex;\\n align-items: center;\\n}\\n#tinybugme-tooltip-container .element-info-body {\\n display: flex;\\n flex-direction: column;\\n padding-top: 2px;\\n margin-top: 2px;\\n}\\n#tinybugme-tooltip-container .element-info-row {\\n display: flex;\\n line-height: 19px;\\n}\\n#tinybugme-tooltip-container .separator-container {\\n display: flex;\\n align-items: center;\\n flex: auto;\\n margin-left: 7px;\\n}\\n#tinybugme-tooltip-container .separator {\\n border-top: 1px solid #ddd;\\n width: 100%;\\n}\\n#tinybugme-tooltip-container .element-info-name {\\n flex-shrink: 0;\\n color: #666;\\n}\\n#tinybugme-tooltip-container .element-info-gap {\\n flex: auto;\\n}\\n#tinybugme-tooltip-container .element-info-value-color {\\n display: flex;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n align-items: baseline;\\n}\\n#tinybugme-tooltip-container .a11y-icon {\\n width: 16px;\\n height: 16px;\\n background-repeat: no-repeat;\\n display: inline-block;\\n}\\n#tinybugme-tooltip-container .element-info-value-contrast {\\n display: flex;\\n align-items: center;\\n text-align: right;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n}\\n#tinybugme-tooltip-container .element-info-value-contrast .a11y-icon {\\n margin-left: 8px;\\n}\\n#tinybugme-tooltip-container .element-info-value-icon {\\n display: flex;\\n align-items: center;\\n}\\n#tinybugme-tooltip-container .element-info-value-text {\\n text-align: right;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n align-items: baseline;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n white-space: nowrap;\\n}\\n#tinybugme-tooltip-container .color-swatch {\\n display: flex;\\n margin-right: 2px;\\n width: 10px;\\n height: 10px;\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==\");\\n line-height: 10px;\\n}\\n#tinybugme-tooltip-container .color-swatch-inner {\\n flex: auto;\\n border: 1px solid rgb(128 128 128 / 60%);\\n}\\n#tinybugme-tooltip-container .element-layout-type {\\n margin-right: 10px;\\n width: 16px;\\n height: 16px;\\n}\\n#tinybugme-tooltip-container .element-layout-type.grid {\\n background-image: url(\\'data:image/svg+xml,<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect x=\"2.5\" y=\"2.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"9.5\" y=\"2.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"9.5\" y=\"9.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"2.5\" y=\"9.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .element-layout-type.flex {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M1 3.5h8v3H1v-3zm-1 0a1 1 0 011-1h8a1 1 0 011 1v3a1 1 0 01-1 1H1a1 1 0 01-1-1v-3zm12 0h3v3h-3v-3zm-1 0a1 1 0 011-1h3a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1v-3zm-7 6H1v3h3v-3zm-3-1a1 1 0 00-1 1v3a1 1 0 001 1h3a1 1 0 001-1v-3a1 1 0 00-1-1H1zm6 4v-3h8v3H7zm-1-3a1 1 0 011-1h8a1 1 0 011 1v3a1 1 0 01-1 1H7a1 1 0 01-1-1v-3z\" fill=\"%231A73E8\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .element-description {\\n flex: 1 1;\\n font-weight: bold;\\n word-wrap: break-word;\\n word-break: break-all;\\n}\\n#tinybugme-tooltip-container .dimensions {\\n color: hsl(0deg 0% 45%);\\n text-align: right;\\n margin-left: 10px;\\n}\\n#tinybugme-tooltip-container .material-node-width {\\n margin-right: 2px;\\n}\\n#tinybugme-tooltip-container .material-node-height {\\n margin-left: 2px;\\n}\\n#tinybugme-tooltip-container .material-tag-name {\\n /* Keep this in sync with inspectorSyntaxHighlight.css (--override-dom-tag-name-color) */\\n color: rgb(136 18 128);\\n}\\n#tinybugme-tooltip-container .material-class-name,\\n.material-node-id {\\n /* Keep this in sync with inspectorSyntaxHighlight.css (.webkit-html-attribute-value) */\\n color: rgb(26 26 166);\\n}\\n#tinybugme-tooltip-container .contrast-text {\\n width: 16px;\\n height: 16px;\\n text-align: center;\\n line-height: 16px;\\n margin-right: 8px;\\n border: 1px solid rgb(0 0 0 / 10%);\\n padding: 0 1px;\\n}\\n#tinybugme-tooltip-container .a11y-icon-not-ok {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m9 1.5c-4.14 0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5 7.5-3.36 7.5-7.5-3.36-7.5-7.5-7.5zm0 13.5c-3.315 0-6-2.685-6-6 0-1.3875.4725-2.6625 1.2675-3.675l8.4075 8.4075c-1.0125.795-2.2875 1.2675-3.675 1.2675zm4.7325-2.325-8.4075-8.4075c1.0125-.795 2.2875-1.2675 3.675-1.2675 3.315 0 6 2.685 6 6 0 1.3875-.4725 2.6625-1.2675 3.675z\" fill=\"%239e9e9e\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .a11y-icon-warning {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m8.25 11.25h1.5v1.5h-1.5zm0-6h1.5v4.5h-1.5zm.7425-3.75c-4.14 0-7.4925 3.36-7.4925 7.5s3.3525 7.5 7.4925 7.5c4.1475 0 7.5075-3.36 7.5075-7.5s-3.36-7.5-7.5075-7.5zm.0075 13.5c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6z\" fill=\"%23e37400\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .a11y-icon-ok {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m9 1.5c-4.14 0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5 7.5-3.36 7.5-7.5-3.36-7.5-7.5-7.5zm0 13.5c-3.3075 0-6-2.6925-6-6s2.6925-6 6-6 6 2.6925 6 6-2.6925 6-6 6zm-1.5-4.35-1.95-1.95-1.05 1.05 3 3 6-6-1.05-1.05z\" fill=\"%230ca40c\"/></svg>\\');\\n}\\n'];t<n.length;t++){r=n[t],o=void 0,(o=document.createElement(\"style\")).innerHTML=r,document.head.appendChild(o)}var r,o}return e.prototype._recompute=function(e,t){},e.prototype._differs=function(e,t){return e!=e?t==t:e!==t||e&&\"object\"==typeof e||\"function\"==typeof e},e.prototype._unmount=function(){this._fragment&&this._fragment.u()},e.prototype.destroy=function(e){this.destroy=Fr,this.fire(\"destroy\"),this.set=this.get=Fr,!1!==e&&this._fragment.u(),this._fragment.d(),this._fragment=this._state=null},e.prototype.get=function(e){return e?this._state[e]:this._state},e.prototype.fire=function(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(n)for(var r=0;r<n.length;r+=1){var o=n[r];o.__calling||(o.__calling=!0,o.call(this,t),o.__calling=!1)}},e.prototype.observe=function(e,t,n){var r=t.bind(this);return n&&!1===n.init||r(this.get()[e],void 0),this.on(n&&n.defer?\"update\":\"state\",(function(t){t.changed[e]&&r(t.current[e],t.previous&&t.previous[e])}))},e.prototype.on=function(e,t){if(\"teardown\"===e)return this.on(\"destroy\",t);var n=this._handlers[e]||(this._handlers[e]=[]);return n.push(t),{cancel:function(){var e=n.indexOf(t);~e&&n.splice(e,1)}}},e.prototype.set=function(e){this._set(Ur({},e)),this.root._lock||(this.root._lock=!0,zr(this.root._beforecreate),zr(this.root._oncreate),zr(this.root._aftercreate),this.root._lock=!1)},e.prototype._set=function(e){var t=this._state,n={},r=!1;for(var o in e)this._differs(e[o],t[o])&&(n[o]=r=!0);r&&(this._state=Ur(Ur({},t),e),this._recompute(n,this._state),this._bind&&this._bind(n,this._state),this._fragment&&(this.fire(\"state\",{changed:n,current:this._state,previous:t}),this._fragment.p(n,this._state),this.fire(\"update\",{changed:n,current:this._state,previous:t})))},e.prototype._mount=function(e,t){this._fragment[this._fragment.i?\"i\":\"m\"](e,t||null)},e}();function Dr(e,t){var n=document.createElement(e);return t&&(n.className=t),n}function Rr(e,t,n){e.style.setProperty(t,n)}function Br(e,t,n){t.insertBefore(e,n)}function jr(e,t){t.appendChild(e)}function Fr(){}function Ur(e,t){for(var n in t)e[n]=t[n];return e}function zr(e){for(;e&&e.length;)e.shift()()}function Hr(e,t,n){var r=Dr(t,n);return r.addEventListener(\"click\",(function(e){e.stopPropagation()}),!1),e.appendChild(r),r}function qr(e,t){return e.length<=t?String(e):e.substr(0,t-1)+\"…\"}function Gr(e,t){var n=document.createTextNode(t);return e.appendChild(n),n}function Wr(e){if(e&&e.nodeType===Node.ELEMENT_NODE){var t=function(e){if(e)return e.__zInstance__||e.__zComposite__}(e);if(t)return t}}function Zr(e){for(var t=0;e&&t<5;){var n=Wr(e);if(n)return n;e=e.parentNode,t++}}var Yr={borderColor:{r:255,g:229,b:153,a:.66},contentColor:{r:111,g:168,b:220,a:.66},marginColor:{r:246,g:178,b:107,a:.66},paddingColor:{r:147,g:196,b:125,a:.55}},Vr=!1;function Xr(e){Vr&&e.stopImmediatePropagation()}var Jr=function(){function e(){var e=this;this.inspectModeHighlightConfig=Yr,this.onWindowScroll=function(){e.currentFocusNode&&e.doHighlightNode(e.currentFocusNode,e.highlightConfig)},this.hidehighlight=this.hidehighlight.bind(this),this.handleInspectMouseOver=Me(this.handleInspectMouseOver.bind(this),150,setTimeout,clearTimeout),this.handleInspectClick=this.handleInspectClick.bind(this),window.addEventListener(\"scroll\",Me(this.onWindowScroll,16,setTimeout,clearTimeout),!0)}return e.initGlobalEventListener=function(){window.addEventListener(\"mouseup\",Xr,!0),window.addEventListener(\"mousedown\",Xr,!0),window.addEventListener(\"touchstart\",Xr,!0),window.addEventListener(\"touchend\",Xr,!0)},e.prototype.bindBridge=function(e){this.bridge=e},e.prototype.highlightNode=function(e,t){void 0===t&&(t={}),this.highlightConfig=t,this.currentFocusNode=e;var n=e.getBoundingClientRect();n.height||n.width?this.doHighlightNode(e,t):this.hidehighlight()},e.prototype.hidehighlight=function(){this.highlightConfig=void 0,this.currentFocusNode=void 0,this.overlayComponent&&this.overlayComponent.set({rect:{height:\"0px\",left:\"0px\",top:\"0px\",width:\"0px\"},show:!1})},e.prototype.enterInspectMode=function(e){e&&(this.inspectModeHighlightConfig=e),document.addEventListener(\"mouseover\",this.handleInspectMouseOver,!0),document.addEventListener(\"mouseout\",this.hidehighlight,!0),document.addEventListener(\"click\",this.handleInspectClick,!0),Vr=!0},e.prototype.leaveInspectMode=function(){document.removeEventListener(\"mouseover\",this.handleInspectMouseOver,!0),document.removeEventListener(\"mouseout\",this.hidehighlight,!0),document.removeEventListener(\"click\",this.handleInspectClick,!0),Vr=!1,this.inspectModeHighlightConfig=Yr},e.prototype.handleInspectMouseOver=function(e){},e.prototype.handleInspectClick=function(e){},e.prototype.doHighlightNode=function(e,t){void 0===t&&(t={});var n=e.getBoundingClientRect(),r={},o=Zr(e),i=\"unknown\";try{var s=this.bridge.getClientProxy().getClientInfo();i=s.isIDE?\"ide\":s.isIOS?\"ios\":\"android\"}catch(e){}if(t.showInfo&&o){var a=o._debug;if(a){if(r.tagName=a.nodeName.toLowerCase(),a.attrClass){var u=a.attrClass.split(\" \").map((function(e){return e.trim()})).filter(Boolean).join(\".\");u.length>0&&(r.className=\".\".concat(u))}r.idValue=a.attributes.get(\"id\")}r.nodeHeight=Mr(n.height,4),r.nodeWidth=Mr(n.width,4),r.nodeLeft=Mr(n.left,4),r.nodeTop=Mr(n.top,4);var c=window.getComputedStyle(e);r.style=c}var l=function(e){var t=window.getComputedStyle(e),n=function(e){return Number(e.slice(0,-2))<0?\"0px\":e};return{border:{bottom:t.borderBottomWidth,left:t.borderLeftWidth,right:t.borderRightWidth,top:t.borderTopWidth},boxSizing:t.boxSizing,margin:{bottom:n(t.marginBottom),left:n(t.marginLeft),right:n(t.marginRight),top:n(t.marginTop)},padding:{bottom:t.paddingBottom,left:t.paddingLeft,right:t.paddingRight,top:t.paddingTop}}}(e),d=function(e){return e?\"rgba(\".concat(e.r,\", \").concat(e.g,\", \").concat(e.b,\", \").concat(e.a,\")\"):\"transparent\"},h={border:Ee(Ee({},l.border),{color:d(t.borderColor)}),content:{color:d(t.contentColor)},elementInfo:r,margin:Ee(Ee({},l.margin),{color:d(t.marginColor)}),padding:Ee(Ee({},l.padding),{color:d(t.paddingColor)}),platform:i,rect:{height:\"\".concat(n.height,\"px\"),left:\"\".concat(n.left-Number(l.margin.left.slice(0,-2)),\"px\"),top:\"\".concat(n.top-Number(l.margin.top.slice(0,-2)),\"px\"),width:\"\".concat(n.width,\"px\")},show:!0};this.overlayComponent?this.overlayComponent.set(h):this.overlayComponent=new Lr({data:h,target:document.body})},e}();var Qr,$r=function(e){function t(){var n=e.call(this)||this;return t.initGlobalEventListener(),n}return ke(t,e),t.prototype.highlightNode=function(t,n){if(t.nodeType===Node.ELEMENT_NODE){var r=Zr(t);r&&this.bridge.getZNodeDebugInfo(r),e.prototype.highlightNode.call(this,t,n)}else e.prototype.highlightNode.call(this,t,n)},t.prototype.handleInspectMouseOver=function(e){var t=this,n=e.target;if(n.nodeType===Node.ELEMENT_NODE){this.highlightNode(n,this.inspectModeHighlightConfig);var r=Zr(n);if(r){var o=this.bridge.getZNodeDebugInfo(r);if(!o.activated){for(var i=[],s=o.getParentNode();s&&!s.activated;)i.unshift(s),s=s.getParentNode();s&&i.unshift(s),i.forEach((function(e){var n=e.serialize(1);n&&n.children&&t.bridge.sendMessage(\"DOM.setChildNodes\",{nodes:n.children,parentId:n.nodeId})}))}o.nodeId&&this.bridge.sendMessage(\"Overlay.nodeHighlightRequested\",{nodeId:o.nodeId})}}},t.prototype.handleInspectClick=function(e){e.stopPropagation(),this.hidehighlight(),this.leaveInspectMode();var t=e.target;if(t.nodeType===Node.ELEMENT_NODE){var n=Zr(t);if(n){var r=this.bridge.getZNodeDebugInfo(n);this.bridge.sendMessage(\"Overlay.inspectNodeRequested\",{backendNodeId:r.nodeId})}}},t}(Jr),Kr=function(e){function t(t){var n=e.call(this,t)||this;return n.option.connection.onMessage((function(e,t,r){var o=e.split(\".\"),i=n.getMessageHandler(o);i&&i(n,t,r)})),n}return ke(t,e),t.prototype.getClientProxy=function(){return this.option.clientProxy},t.prototype.getOverlayManager=function(){return this.overlayManager||(this.overlayManager=new $r,this.overlayManager.bindBridge(this)),this.overlayManager},t.prototype.enableShadowRootElements=function(){!function(){if(!Zn){for(var e=document.head.querySelectorAll(\"link\"),t=\"\",n=0,r=Array.from(e);n<r.length;n++){var o=r[n];if(/af-appx\\.min\\.css$/.test(o.href)){t=o.href;break}}if(t){var i=new XMLHttpRequest;i.open(\"GET\",t),i.onload=function(){if(i.responseText)try{var e=Kt.parse(i.responseText);Zn={ownerNode:null,postCSSRoot:e,styleSheetId:void 0,hash:\"\"}}catch(e){console.warn(e)}else console.warn(\"failed to request \".concat(t))},i.send()}else console.warn(\"failed to find af-appx.min.css link\")}}(),e.prototype.enableShadowRootElements.call(this)},t.prototype.getMessageHandler=function(e){for(var t=Nr,n=0,r=e;n<r.length;n++){if(!(t=t[r[n]]))break}return t},t}(Wt);function eo(e,t,n){var r=new Kr({clientProxy:e,connection:n,debugProxy:t,dependencyFactory:{createDOMElement:function(e,t,n,r,o){return new Xt(e,t,n,r,o)},createZNodeElement:function(e,t,n,r,o,i){return new Vt(e,t,n,r,o,i)}}});return function(e){var t=e.getZRuntimeHelper();function n(t,n,r,o,i,s){var a=e.getZNodeDebugInfo(t);e.pageInstance||(e.pageInstance=n.root),a.nodeType===we.Element&&(a.setLinkedContext(n),r&&a.updateClassName(r),o&&a.updateInlineStyle(t.cachedNormalizedStyleString||o),a.updateProperties(i))}function r(t,n){var r=e.getZNodeDebugInfo(t);r.nodeType===we.Element&&(r.updateDataset(n),r.invalidate())}function o(t){var n=t._debug;if(n){if(n.activated&&e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:n.nodeId,parentNodeId:n.getParentNodeId()}),e.nodeId2ZNode.delete(n.nodeId),e.nodeId2DOMNode.delete(n.nodeId),n.nodeType===we.Element){e.shadowRootNodeId2ZNode.delete(n.shadowRootNodeId);var r=n.pseudoNodeType2Id;r&&Object.keys(r).forEach((function(t){e.nodeId2PseudoElement.delete(r[t])}))}delete t._debug}}function i(t,n,r){var o=e.getZNodeDebugInfo(n),i=o.getParentNode();if(1===i.getParentNodeId())e.sendMessage(\"DOM.setChildNodes\",{nodes:i.getChildNodes().map((function(e){return e.serialize(0)})),parentId:i.nodeId}),e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:i.getChildNodeCount(),nodeId:i.nodeId});else if(i.activated)if(i.childrenActivated){var s=0,a=o.getPreviousElementOrTextSibling();a&&(s=a.nodeId),e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:o.nodeId,parentNodeId:i.nodeId}),e.sendMessage(\"DOM.childNodeInserted\",{node:o.serialize(0),parentNodeId:i.nodeId,previousNodeId:s})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:i.getChildNodeCount(),nodeId:i.nodeId})}if(At(t,\"x\",(function(e,t){n.apply(void 0,t)})),At(t,\"xp\",(function(e,t){n.apply(void 0,t)})),At(t,\"xa\",(function(e,t){n.apply(void 0,t)})),At(t,\"xi\",(function(e,t){n.apply(void 0,t)})),At(t,\"xai\",(function(e,t){n.apply(void 0,t)})),At(t,\"W\",(function(e,t){n.apply(void 0,t)})),At(t,\"X\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=n[3],s=n[4],a=n[5],u=n[6],c=e.getZNodeDebugInfo(r);c.nodeType===we.Element&&(i&&c.updateClassName(o),a&&c.updateInlineStyle(r.cachedNormalizedStyleString||s),c.updateProperties(u),c.invalidate())})),At(t,\"y\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=n[3],s=n[4],a=e.getZNodeDebugInfo(r);a.nodeType===we.Element&&(i&&a.updateClassName(o),a.updateProperties(s),a.invalidate())})),At(t,\"Y\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=n[3],s=n[4],a=e.getZNodeDebugInfo(r);a.nodeType===we.Element&&(i&&a.updateInlineStyle(r.cachedNormalizedStyleString||o),a.updateProperties(s),a.invalidate())})),At(t,\"w\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=e.getZNodeDebugInfo(r);i.nodeType===we.Element&&(i.updateProperties(o),i.invalidate())})),At(t,\"ea\",(function(t,n){var r=n[0],o=n[1],i=n[2],s=e.getZNodeDebugInfo(r);s.nodeType===we.Element&&(s.updateAttribute(o,i),s.invalidate())})),At(t,\"g\",(function(e,t){r.apply(void 0,t)})),At(t,\"Q\",(function(e,t){r.apply(void 0,t)})),At(t,\"G\",(function(e,t){r.apply(void 0,t)})),At(t,\"n\",(function(t,n){var r=n[0],o=n[1];if(r.firstChild){var i=r.firstChild._debug;i&&i.activated&&e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:i.nodeId})}else{var s={destroy:function(){},eType:2,formattedText:null,nextSibling:null,parent:r,previousSibling:null,get root(){var e=this.parent.root;return function(e){return e&&\"childNodes\"in e}(e)?e.childNodes[0]:null},text:o};s.root&&(r.firstChild=r.lastChild=s)}})),At(t,\"N\",(function(t,n){var r=n[0],o=n[1],i=r._debug;i&&i.activated&&e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:i.nodeId})})),Mt(t,\"r\",(function(e){o(e[0])})),Mt(t,\"R\",(function(e){o(e[0])})),At(t,\"i\",(function(e,t){t[0];var n=t[1];t[2],i(0,n)})),At(t,\"a\",(function(e,t){t[0],i(0,t[1])})),At(t,\"I\",(function(e,t){t[0];var n=t[1];t[2],i(0,n)})),At(t,\"A\",(function(e,t){t[0],i(0,t[1])})),At(t,\"t\",(function(t,n){var r=n[0];e.getZNodeDebugInfo(t).setLinkedContext(r)})),At(t,\"p\",(function(t,n){var r=n[0],o=n[1],i=n[2],s=r.getTargetId();if(e.componentTargetId2ZNode.has(s)){var a=e.componentTargetId2ZNode.get(s);a.activated&&(a.updateProperties(o,i),a.invalidate())}})),Mt(t,\"m\",(function(t){var n=t[0],r=t[1],o=t[2];e.componentTargetId2LinkedInstance.set(n.targetId,n);var i=n.root.document.createComment(Lt(n.getTargetId()));n._anchor4Head=i,r.insertBefore(i,o)})),At(t,\"m\",(function(t,n){var r=n[0],o=n[1],i=n[2],s=r.root.document.createComment(Dt(r.getTargetId()));r._anchor4Tail=s,o.insertBefore(s,i);var a=e.getZNodeComponentDebugInfo(r.getTargetId()),u=a.getParentNode();if(u&&u.activated)if(u.childrenActivated){var c=a.getPreviousElementOrTextSibling();e.sendMessage(\"DOM.childNodeInserted\",{node:a.serialize(0),parentNodeId:u.nodeId,previousNodeId:c?c.nodeId:0})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:u.getChildNodeCount(),nodeId:u.nodeId})})),Mt(t,\"q\",(function(e){var t=e[0],n=e[1],r=Tt(t,n),o=r.root.textContent;\"b\"===o[0]&&(r.root.textContent=\"e\"+o.slice(1)),It(t,Ct(t,r)),n._anchor4Head=r})),At(t,\"q\",(function(t,n){var r=n[0],o=n[1],i=o.getTargetId();St(r);var s=o._anchor4Head,a=o._anchor4Tail=Tt(r,o,s);s.root.textContent=Lt(i),a.root.textContent=Dt(i),e.componentTargetId2LinkedInstance.set(i,o),e.componentTargetId2ZNode.delete(o.targetId)})),At(t,\"o\",(function(t,n){var r=n[0],o=r._anchor4Head;o&&(o.parent.removeChild(o),r._anchor4Head=null);var i=r._anchor4Tail;i&&(i.parent.removeChild(i),r._anchor4Tail=null);var s=e.componentTargetId2ZNode.get(r.targetId);s&&s.activated&&e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:s.nodeId,parentNodeId:s.getParentNodeId()}),e.componentTargetId2ZNode.delete(r.targetId),e.componentTargetId2LinkedInstance.delete(r.targetId)})),\"object\"==typeof $AppxHMRProxy&&\"function\"==typeof $AppxHMRProxy.applyUpdates){var s=$AppxHMRProxy.applyUpdates;$AppxHMRProxy.applyUpdates=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=s.apply($AppxHMRProxy,t);return setTimeout((function(){e.sendMessage(\"DOM.documentUpdated\",null)}),0),r}}}(r),function(e,t){var n=t.h,r=window.$ZElementLocationResolver=new Zt(e,t);t.L||(t.L=function(){}),Mt(t,\"L\",r.overwriteLocation),At(n,\"e\",r.bindZElement),Mt(n,\"c\",r.bindZComponent)}(r,t.getZRuntime()),r}!function(e){e[e.Element=1]=\"Element\",e[e.Text=2]=\"Text\",e[e.Component=3]=\"Component\"}(Qr||(Qr={}));var to,no,ro=Function.prototype.apply.call.bind(Function.prototype.apply);function oo(e,t,n){return ro(e,t,n)}function io(e,t,n,r,o){var i,s,a=null,u=0;o||(o={});var c=function(){u=!1===o.leading?0:Date.now(),a=null,s=oo(e,null,i),i=null};return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h=Date.now();u||!1!==o.leading||(u=h);var p=t-(h-u);return i=l,p<=0||p>t?(r(a),a=null,u=h,s=oo(e,null,i),i=null):a||!1===o.trailing||(a=n(c,p)),s}}function so(){var e=Object.prototype.hasOwnProperty,t=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,value:n,writable:!0}):e[t]=n};function n(e){return Object(e)===e}function r(){if(void 0===this)throw new TypeError(\"Constructor WeakMap requires 'new'\");if(t(this,\"_id\",\"_WeakMap\"+\"_\"+i()+\".\"+i()),arguments.length>0)throw new TypeError(\"WeakMap iterable is not supported\")}function o(t,r){if(!n(t)||!e.call(t,\"_id\"))throw new TypeError(r+\" method called on incompatible receiver \"+typeof t)}function i(){return Math.random().toString().substring(2)}return t(r.prototype,\"delete\",(function(e){if(o(this,\"delete\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),t(r.prototype,\"get\",(function(e){if(o(this,\"get\"),n(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),t(r.prototype,\"has\",(function(e){if(o(this,\"has\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),t(r.prototype,\"set\",(function(e,r){if(o(this,\"set\"),!n(e))throw new TypeError(\"Invalid value used as weak map key\");var i=e[this._id];return i&&i[0]===e?(i[1]=r,this):(t(e,this._id,[e,r]),this)})),t(r,\"_polyfill\",!0),r}function ao(){var e=\"undefined\"!=typeof Map;to=e?Map:function(){var e=function(){function e(){this.keyList=[],this.valueList=[]}return e.prototype.set=function(e,t){var n=this.keyList,r=n.indexOf(e);if(-1===r){var o=n.push(e)-1;this.valueList[o]=t}else this.valueList[r]=t;return this},e.prototype.get=function(e){var t=this.keyList.indexOf(e);return-1===t?void 0:this.valueList[t]},e.prototype.forEach=function(e){for(var t=this.keyList.slice(),n=this.valueList.slice(),r=t.length,o=0;o<r;o++){var i=t[o];e(n[o],i,this)}},Object.defineProperty(e.prototype,\"size\",{get:function(){return this.keyList.length},enumerable:!1,configurable:!0}),e.prototype.has=function(e){return-1!==this.keyList.indexOf(e)},e.prototype.delete=function(e){var t=this.keyList.indexOf(e);return-1!==t&&(this.keyList.splice(t,1),this.valueList.splice(t,1),!0)},e.prototype.clear=function(){this.keyList=[],this.valueList=[]},e}();return e}()}function uo(){var e;return no||(e=\"undefined\"!=typeof WeakMap,no=e?WeakMap:so()),new no}uo();var co=function(){function e(e){this.provider=e,this.index=0}return e.prototype[Symbol.iterator]=function(){return this},e.prototype.next=function(e){return this.provider.item(this.index++)},e.prototype.throw=function(e){throw new Error(\"throw unimplemented\")},e.prototype.return=function(e){throw new Error(\"return unimplemented\")},e}(),lo=function(){function e(e){this.generator=e,this.done=!1,this.results=[]}return e.prototype.ref=function(){return new co(this)},e.prototype.item=function(e){for(;e>this.results.length-1;){var t=this.generator.next();if(!1!==t.done){this.done=!0;break}this.results.push(t.value)}return this.done?{done:!0,value:null}:{done:!1,value:this.results[e]}},e}();function ho(e){if(e&&e.node)for(var t=e.node&&e.node.nextSibling;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}!function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=uo(),t}t(n,e),n.prototype.iterateTargetAXML=function(t,n){return this.createIterator(e.prototype.iterateTargetAXML,[t,n])},n.prototype.iterateChildTargetByOwnerId=function(t,n,r){return this.createIterator(e.prototype.iterateChildTargetByOwnerId,[t,n,r])},n.prototype.iterateDeepSlotBlockByOwnerId=function(t,n){return this.createIterator(e.prototype.iterateDeepSlotBlockByOwnerId,[t,n])},n.prototype.iterateTargetDeep=function(t,n){return this.createIterator(e.prototype.iterateTargetDeep,[t,n])},n.prototype.iterateDeepXML=function(t){return this.createIterator(e.prototype.iterateDeepXML,[t])},n.prototype.createIterator=function(e,t){var n=this.cache.get(e);n||(to||ao(),n=new to,this.cache.set(e,n));var r=t.map((function(e){return\"\".concat(\"object\"==typeof e&&e?e.targetId:e)})).join(\"_\"),o=n.get(r);return o||(o=new lo(e.apply(this,t))),o.ref()}}(function(){function e(){}return e.prototype.iterateTargetAXML=function(e,t){var n,r,o,i;return s(this,(function(s){switch(s.label){case 0:if(n=function(e){for(var t=e.node&&e.node.firstChild;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}(e),!n)return[2,null];r=n.node,s.label=1;case 1:return r?(o=r).component&&2===o.component.type?[4,i=o.component]:[3,4]:[3,5];case 2:return s.sent(),[5,a(this.iterateChildTargetByOwnerId(i,t))];case 3:s.sent(),s.label=4;case 4:return r=r.nextSibling,[3,1];case 5:return[2,null]}}))},e.prototype.iterateChildTargetByOwnerId=function(e,t,n){var r,o,i,u,c,l,d,h,p,f,g,v,m;return s(this,(function(s){switch(s.label){case 0:if(!e.slotProviders)return[2,null];r=e.slotProviders,s.label=1;case 1:s.trys.push([1,13,14,15]),o=a(r),i=o.next(),s.label=2;case 2:if(i.done)return[3,12];u=i.value,c=this.iterateDeepSlotBlockByOwnerId(e,t),s.label=3;case 3:if(!1!==(l=c.next()).done)return[3,9];if(!(d=l.value).node)return[3,8];if(d.provider!==u)return[3,8];h=d.node.firstChild,s.label=4;case 4:return h?(p=h).component?2!==p.component.type?[3,7]:[4,f=p.component]:[3,7]:[3,8];case 5:return s.sent(),n?[3,7]:[5,a(this.iterateChildTargetByOwnerId(f,t))];case 6:s.sent(),s.label=7;case 7:return h=h.nextSibling,[3,4];case 8:return[3,10];case 9:return[3,11];case 10:return[3,3];case 11:return i=o.next(),[3,2];case 12:return[3,15];case 13:return g=s.sent(),v={error:g},[3,15];case 14:try{i&&!i.done&&(m=o.return)&&m.call(o)}finally{if(v)throw v.error}return[7];case 15:return[2,null]}}))},e.prototype.iterateDeepSlotBlockByOwnerId=function(e,t){var n,r,o,i;return s(this,(function(s){switch(s.label){case 0:if(!e.node)return[2,null];n=e.node.firstChild,s.label=1;case 1:return n?(r=n).component&&1===r.component.type?(o=r.component,u=o.provider,((c=u.slotProviderParentContextInstance).type<2?c.option.parentTarget:c).targetId!==t?[3,3]:[4,o]):[3,6]:[3,9];case 2:return s.sent(),[3,5];case 3:return[5,a(this.iterateDeepSlotBlockByOwnerId(o,t))];case 4:s.sent(),s.label=5;case 5:return[3,8];case 6:return r.component&&2===r.component.type&&(i=r.component).slotProviders?[5,a(this.iterateDeepSlotBlockByOwnerId(i,t))]:[3,8];case 7:s.sent(),s.label=8;case 8:return n=n.nextSibling,[3,1];case 9:return[2,null]}var u,c}))},e.prototype.iterateTargetDeep=function(e,t){var n,r;return s(this,(function(o){switch(o.label){case 0:return[5,a(this.iterateDeepXML(e))];case 1:o.sent(),n=this.iterateChildTargetByOwnerId(e,t),o.label=2;case 2:return!1!==(r=n.next()).done?[3,5]:[4,r.value];case 3:return o.sent(),[5,a(this.iterateDeepXML(r.value))];case 4:return o.sent(),[3,6];case 5:return[3,7];case 6:return[3,2];case 7:return[2,null]}}))},e.prototype.iterateDeepXML=function(e){var t,n,r;return s(this,(function(o){switch(o.label){case 0:if(!e.slotProviders||!e.node)return[2,null];t=e.node.firstChild,o.label=1;case 1:return t?(n=t.component)&&2===n.type?[4,n]:[3,8]:[3,10];case 2:return o.sent(),[5,a(this.iterateTargetDeep(n,e.targetId))];case 3:o.sent(),r=ho(n),o.label=4;case 4:return r?[4,r]:[3,7];case 5:return o.sent(),[5,a(this.iterateDeepXML(r))];case 6:return o.sent(),r=ho(r),[3,4];case 7:return[3,10];case 8:t=t.nextSibling,o.label=9;case 9:return[3,1];case 10:return[2,null]}}))},e}());var po,fo,go,vo,mo,yo;\"undefined\"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,\"undefined\"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT,\"undefined\"!=typeof SECURITY_FUNCTION_CALL&&(SECURITY_FUNCTION_CALL=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return\"function\"==typeof e?(ro||(ro=Function.prototype.apply.call.bind(Function.prototype.apply)),ro(e,t,n)):e.call.apply(e,u([t],n,!1))}),\"undefined\"!=typeof SECURITY_FUNCTION_APPLY&&(SECURITY_FUNCTION_APPLY=function(e,t,n){return\"function\"==typeof e?(ro||(ro=Function.prototype.apply.call.bind(Function.prototype.apply)),ro(e,t,n)):e.apply(t,n)}),function(e){e.CanvasContext=\"CanvasContext\"}(po||(po={})),function(e){e[e.PLUGIN=1]=\"PLUGIN\",e[e.SUB_PACKAGE=2]=\"SUB_PACKAGE\"}(fo||(fo={})),function(e){e.PLUGIN=\"plugin\",e.SUB_PACKAGE=\"subpackage\"}(go||(go={})),function(e){e[e.Info=0]=\"Info\",e[e.Warn=1]=\"Warn\",e[e.Error=2]=\"Error\"}(vo||(vo={})),function(e){e.AppxLifecycle=\"AppxLifecycle\"}(mo||(mo={})),\"undefined\"!=typeof HAS_INSIDE_FEATURE&&HAS_INSIDE_FEATURE,function(e){e.version_added=\"v\",e.const=\"c\",e.android=\"a\",e.ios=\"i\",e.default=\"d\"}(yo||(yo={})),uo();var bo=function(){function e(e,t,n,r,o){this.bindLinkNode=o,this.updatingDiff=null,this.scopedBlocks=[],this.unscopedBlocks=[],this.disposing=!1,this.detaching=!1,this.factory=e,this.currentData=t,this.slotProviderParentContextInstance=n,this.scopeId=r}return e.prototype.createBlockWithScope=function(e,t){var n,r,o=this.scopeId;return e&&o?(n=_o(e,this.currentData,o),(r=this.createBlock(this.slotProviderParentContextInstance,t,n,!0)).__scopeContext__=e):(n=this.currentData,r=this.createBlock(this.slotProviderParentContextInstance,t,n,!1)),r.bType=1,r},e.prototype.createBlockWithoutScope=function(e){var t=this.createBlock(this.slotProviderParentContextInstance,e,this.currentData,!1);return t.bType=1,t},e.prototype.updateBlockWithDynamicNameScopeAndFallback=function(e,t,n,r,o,i){if(t._name===e){var s=this.scopeId;if(n&&s){var a=_o(n,this.currentData,s),u=Object.create(this.updatingDiff);u[s]=!0,t.updateScopeContext(n),t.updateScopeAndFallbackContext(u,a,r,o)}else t.updateFallbackContext(r,o)}else{var c=void 0;c=n?this.createBlockWithScope(n,i):this.createBlockWithoutScope(i),t.updateDynamicNameAndFallbackContext(e,c,r,o)}return null},e.prototype.updateBlockWithScopeAndFallback=function(e,t,n,r){var o=this.scopeId;if(t&&o){var i=_o(t,this.currentData,o),s=Object.create(this.updatingDiff);s[o]=!0,e.updateScopeContext(t),e.updateScopeAndFallbackContext(s,i,n,r)}else e.updateFallbackContext(n,r)},e.prototype.updateBlockWithScope=function(e,t){var n=this.scopeId;if(t&&n){var r=_o(t,this.currentData,n),o=Object.create(this.updatingDiff);o[n]=!0,e.__scopeContext__=t,e.u(o,r)}},e.prototype.enterProviderDetaching=function(){this.detaching=!0},e.prototype.exitProviderDetaching=function(){this.detaching=!1;var e=this.detachedBlocks;if(e){this.detachedBlocks=null;for(var t=0,n=e;t<n.length;t++){var r=n[t],o=1===r.__slotType__?this.scopedBlocks:this.unscopedBlocks;r.__slotIndex__=o.push(r)-1,r.d(!0)}}},e.prototype.createBlock=function(e,t,n,r){var o,i,s;if(r?(i=1,o=this.scopedBlocks.length,s=this.scopedBlocks):(i=0,o=this.unscopedBlocks.length,s=this.unscopedBlocks),this.detaching){var a=this.detachedBlocks;if(a){var u=a.shift();if(u)return s.push(u),u.__slotIndex__=o,u.__slotType__=i,u}}var c=this.factory(e,n);return this.bindLinkNode&&(c=this.bindLinkNode(c,this)),c.d=this.destroyBlock.bind(this,c,c.d),s.push(c),c.__slotIndex__=o,c.__slotType__=i,c},e.prototype.destroyBlock=function(e,t,n){var r=e.__slotIndex__;if(r>=0){if(!this.disposing){var o=1===e.__slotType__?this.scopedBlocks:this.unscopedBlocks,i=o.length-1,s=o[i];s.__slotIndex__=r,o[r]=s,o.length=i}if(this.detaching){var a=this.detachedBlocks;a||(a=this.detachedBlocks=[]),a.push(e)}else t.call(e,n);e.__slotIndex__=-1}},e}();function _o(e,t,n){var r=Object.create(t);return r[n]=e[0],e.length>1&&(r[n+\"d\"]=e[1],r[n+\"n\"]=e[2]),r}function wo(){}function Io(e,t,n){if(e)return e(t,n)}function So(e){if(e){var t=e.parent;t&&t.removeChild(e)}}function Co(e,t,n){return t?e.document.cloneComment(t):e.document.createComment(n)}function ko(e,t){var n=t.nextSibling,r=t.previousSibling;n?(n.previousSibling=r,t.nextSibling=null):e.lastChild=r,r?(r.nextSibling=n,t.previousSibling=null):e.firstChild=n,t.parent=null}function Eo(e,t){var n=t.parent;n&&ko(n,t),t.parent=e;var r=e.lastChild;r?(t.previousSibling=r,r.nextSibling=t):e.firstChild=t,e.lastChild=t}function xo(e,t,n){e.insertBefore(t,n||null),t.parent||(t.parent=e)}!function(e){function n(){return null!==e&&e.apply(this,arguments)||this}t(n,e),n.prototype.exitProviderUpdating=function(){},n.prototype.enterProviderUpdating=function(e,t){this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).u(e,t)}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u,c=_o((u=a[s]).__scopeContext__,t,n);u.u(i,c)}}},n.prototype.destroyBlocks=function(e){if(this.disposing=!0,this.scopeId){for(var t=0,n=this.scopedBlocks;t<n.length;t++){n[t].d(e)}this.scopedBlocks=[]}for(var r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].d(e)}this.unscopedBlocks=[]}}(bo),function(e){function n(){return null!==e&&e.apply(this,arguments)||this}t(n,e),n.prototype.enterProviderUpdating=function(e,t){this.updatingDiff=e,this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].__slotUpdating__=!0}if(n&&this.scopedBlocks.length)for(var i=0,s=this.scopedBlocks;i<s.length;i++){s[i].__slotUpdating__=!0}},n.prototype.destroyBlocks=function(e){this.disposing=!0,this.scopeId&&(this.scopedBlocks=[]),this.unscopedBlocks=[]},n.prototype.exitProviderUpdating=function(){for(var e=this.updatingDiff,t=this.currentData,n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).__slotUpdating__&&(u.__slotUpdating__=!1,u.u(e,t))}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u;if((u=a[s]).__slotUpdating__){u.__slotUpdating__=!1;var c=_o(u.__scopeContext__,t,n);u.u(i,c)}}}this.updatingDiff=null}}(bo),function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.detaching=!1,t}t(n,e),n.prototype.detach=function(){this.detaching=!0},n.prototype.attach=function(){this.detaching=!1},n.prototype.c=function(){if(this.detaching){var t=this._bc[5];return this._currentBlock&&(t&=this._currentBlock.c()),t}return e.prototype.c.call(this)},n.prototype.m=function(t,n){if(!this.detaching)return e.prototype.m.call(this,t,n);this._currentBlock&&this._currentBlock.m(this._currentTarget,this._currentAnchor)},n.prototype.resetCurrentBranch=function(e,t){this._component=e;var n=this._bc[3],r=this._bc[4],o=this._bc[0];this._selectedBlockIndex=n?n(this._component,t):1,this._selectedBlockType=r?r(this._selectedBlockIndex):o(this._component,t),this._currentBlock=Io(this._selectedBlockType,this._component,t)},n.prototype.d=function(t){if(!this.detaching)return e.prototype.d.call(this,t);this._currentBlock&&(this._currentBlock.d(t),this._currentBlock=null)}}(function(){function e(e,t,n){this._bc=e,this._component=t;var r=e[3],o=e[4],i=e[0];this._selectedBlockIndex=r?r(t,n):1,this._selectedBlockType=o?o(this._selectedBlockIndex):i(t,n),this._currentBlock=Io(this._selectedBlockType,t,n)}return e.prototype.a=function(){return this._currentAnchorHead},e.prototype.c=function(){var e=this._bc[5];return this._currentAnchorHead=Co(this._component),this._currentAnchor4Index=Co(this._component,null,Po(this._selectedBlockIndex)),this._currentBlock&&(e&=this._currentBlock.c()),this._currentAnchor=Co(this._component,this._currentAnchorHead),e},e.prototype.l=function(e){var t=this._bc[5];this._currentAnchorHead=Mo(e,this._component),function(e,t){e.stopReverseIndex=t,e.stopReverseIndexStack.push(t)}(e,To(e,this._currentAnchorHead));var n,r=Ao(e,this._component,\"c\",Po(this._selectedBlockIndex));return this._currentAnchor4Index=r[0],e.treatErrorAsWarning+=r[1],this._currentBlock&&(t&=this._currentBlock.l(e)),e.treatErrorAsWarning-=r[1],(n=e).stopReverseIndexStack.pop(),n.stopReverseIndex=n.stopReverseIndexStack[n.stopReverseIndexStack.length-1]||0,this._currentAnchor=Mo(e,this._component,this._currentAnchorHead),this._currentTarget=e.target,t},e.prototype.m=function(e,t){this._currentTarget=e,xo(e,this._currentAnchorHead,t),xo(e,this._currentAnchor4Index,t),this._currentBlock&&this._currentBlock.m(e,t),xo(e,this._currentAnchor,t)},e.prototype.u=function(e,t){var n=this._bc[5],r=this._bc[3],o=this._bc[4],i=this._bc[0],s=r?r(this._component,t):1,a=o?o(s):i(this._component,t);if(this._selectedBlockType!==a){this._selectedBlockIndex=s,this._selectedBlockType=a;var u=this._currentAnchor4Index.root;u&&(u.textContent=Po(this._selectedBlockIndex)),this._currentBlock&&this._currentBlock.d(!0),this._currentBlock=Io(this._selectedBlockType,this._component,t),this._currentBlock&&(n&=this._currentBlock.c(),this._currentBlock.m(this._currentTarget,this._currentAnchor))}else this._currentBlock&&(n&=this._currentBlock.u(e,t));return n},e.prototype.d=function(e){this._currentBlock&&(this._currentBlock.d(e),this._currentBlock=null),e&&(So(this._currentAnchorHead),So(this._currentAnchor4Index),So(this._currentAnchor),this._currentAnchorHead=null,this._currentAnchor4Index=null,this._currentAnchor=null)},e}());var To=function(e,t){var n,r=t.root.textContent,o=e.index,i=e.nodes.length;for(;o<i&&(n=e.nodes.item(o))&&(8!==n.nodeType||n.textContent!==r);)o++;return i-o};var No=0;var Oo=function(){return\"z:\".concat(++No)},Ao=function(e,t,n,r){var o,i=e.target,s=e.nodes.item(e.index),a=0,u=0;if(s&&8===s.nodeType&&s.textContent[0]===n)s.textContent===r?o={destroy:wo,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s}:(s.textContent=r,o={destroy:wo,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s},a=1,u=1);else{if(o={destroy:wo,eType:0,nextSibling:null,parent:i,previousSibling:null,root:t.document.document.createComment(r)},s){var c={destroy:wo,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s};i.insertBefore(o,c)}else i.appendChild(o);a=1}if(e.index++,a)for(var l=e.index,d={destroy:wo,eType:0,nextSibling:null,parent:i,previousSibling:null,root:null};(s=e.nodes.item(l))&&e.stopReverseIndex!==e.nodes.length-l;)d.root=s,i.removeChild(d);return[o,u]};var Mo=function(e,t,n){var r,o=e.target,i={destroy:wo,eType:0,nextSibling:null,parent:null,previousSibling:null,root:null};if(n){for(var s=n.root.textContent,a=e.index,u=void 0;;){if(!(u=e.nodes.item(a))){var c=t.document.document.createComment(s);i.root=c,o.appendChild(i);break}if(i.root=u,8===u.nodeType&&u.textContent===s){Eo(o,i);break}if(e.stopReverseIndex===e.nodes.length-a){var l={destroy:wo,eType:0,nextSibling:null,parent:null,previousSibling:null,root:u};c=t.document.document.createComment(s);i.root=c,Eo(o,l),o.insertBefore(i,l),ko(o,l);break}o.removeChild(i)}return e.index++,i}u=e.nodes.item(e.index++);i.root=u,u&&8===u.nodeType?Eo(o,i):(r={destroy:wo,eType:0,nextSibling:null,parent:null,previousSibling:null,root:t.document.document.createComment(Oo())},u?(Eo(o,i),o.insertBefore(r,i),e.stopReverseIndex===e.nodes.length-e.index?ko(o,i):o.removeChild(i)):o.appendChild(r));return r||i};function Po(e){return\"\".concat(\"c\",\":\").concat(e||\"\")}function Lo(e,t,n){for(var r=[],o=e,i=null;o&&!t(o);){switch(o.eType){case 1:case 2:null===i&&r.push(n.getZNodeDebugInfo(o));break;case 0:var s=o.root.textContent;null===i&&\"b\"===s[0]?i=parseInt(s.slice(2),10):null!==i&&s===Bo(i)&&(r.push(n.getZNodeComponentDebugInfo(i)),i=null)}o=o.nextSibling}return r}function Do(e,t){if(\"className\"===e)return[\"class\",String(t).trim()];if(\"function\"==typeof t){if(t.handleName)return[e,t.handleName]}else{if(null===t)return[e,\"null\"];if(void 0!==t){var n=\"unknown\";try{n=\"object\"==typeof t?Object.prototype.toString.call(t):t.toString()}catch(n){console.warn(\"failed to stringify node props value\",e,t)}return[e,n]}}return[]}function Ro(e){var t=\"\";try{JSON.stringify(e).length>1e6&&(t=\"data is too large to display\")}catch(e){t=e.message||\"stringify error\"}return t?{data:{error:t}}:{data:e}}function Bo(e){return\"\".concat(\"e\",\":\").concat(e)}function jo(e){if(!e.treeTargetIds){for(var t=e,n=[];t;){t=t.previousSibling?t.previousSibling:t.parent;for(var r=0;t;){if(0===t.eType){if(\"e\"===t.root.textContent[0])r++;else if(\"b\"===t.root.textContent[0]){if(0===r){n.push({begin:t.root,targetId:parseInt(t.root.textContent.slice(2),10)});break}r--}}else{if(1===t.eType&&0===r){n.push.apply(n,jo(t)),t=null;break}if(2===t.eType&&0===r){n.push.apply(n,jo(t)),t=null;break}}t=t.previousSibling?t.previousSibling:t.parent}}n.length||n.push({begin:null,targetId:0}),e.treeTargetIds=n}return e.treeTargetIds}var Fo,Uo=function(){function e(e,t){this.devtool=e,this.node=t}return e.prototype.setParentNodeId=function(e){this.parentNodeId=e},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.node.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.getParentNode=function(){if(this.node.parent){var e=this.devtool.getZNodeDebugInfo(this.node.parent),t=jo(this.node);return jo(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.setLinkedContext=function(e){this.linkedContext=e},e.prototype.getLinkedContext=function(){return this.linkedContext},e}();function zo(e){var t=[];t.push(\"<\".concat(e.localName));var n=function(e){if(e&&0!==e.length){for(var t=[],n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];r&&o&&t.push(\"\".concat(r,'=\"').concat(o,'\"'))}return t.join(\" \")}}(e.getAllAttributes());n&&t.push(\" \".concat(n)),t.push(\">\");var r=function(e){if(e&&0!==e.length){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];t.push(o.getOuterAXML())}return t.join(\"\")}}(e.getChildNodes());return r&&t.push(r),t.push(\"</\".concat(e.localName,\">\")),t.join(\"\")}function Ho(e,t){for(var n=e.child;n&&(n.tag===Fo.HostComponent||n.tag===Fo.HostPortal||n.tag===Fo.HostRoot);)n=n.child;if(n){var r=function(e){var t=[],n=e;for(;n;)t.push(n),n=n.sibling;return t}(n);r.forEach((function(e){Zo(e)?t(e):Ho(e,t)}))}}function qo(e){var t=Go(e);return/AppX\\(\\S+\\)/.test(t)||\"PageComponent\"===t}function Go(e){var t,n=e.type,r=\"\";return\"string\"==typeof n?r=n:n&&\"string\"==typeof n.displayName?(r=n.displayName,Wo(e)&&(r=(null===(t=e.memoizedProps)||void 0===t?void 0:t.__tag)||r)):n&&\"string\"==typeof n.name&&(r=n.name),r||\"Anonymous\"}function Wo(e){var t=e.tag,n=e.type;return(t===Fo.ClassComponent||t===Fo.FunctionComponent)&&!(!n||!n.isCustomComponent)}function Zo(e){return e.tag===Fo.HostText||(!!qo(e)||!!Wo(e))}function Yo(e){var t=e.tag;return t===Fo.HostComponent||t===Fo.HostText?e:e.child?Yo(e.child):void 0}function Vo(e){var t=Yo(e);if(t)return t.stateNode}function Xo(e){for(var t=e.return;t;){if(Zo(t))return t;t=t.return}}function Jo(e){var t;return Boolean(e.__debug_serialized||(null===(t=e.alternate)||void 0===t?void 0:t.__debug_serialized))}function Qo(e){var t=r({},e);return delete t.$isCustomComponent,delete t.__tag,delete t.className,delete t.children,t.__owner&&t.__owner.pluginId&&delete t.__owner,t}function $o(e){var t=[];if(e.memoizedProps){e.memoizedProps.className&&t.push.apply(t,Do(\"className\",e.memoizedProps.className));var n=Qo(e.memoizedProps);Object.keys(n).forEach((function(e){t.push.apply(t,Do(e,n[e]))}))}return t}function Ko(e,t){t.__debug_serialized=!0,t.alternate&&(t.alternate.__debug_serialized=!0);var n=e.getFiberId(e.getPrimaryFiber(t)),r=0;return t.return&&(r=e.getFiberId(e.getPrimaryFiber(t.return))),{backendNodeId:n,childNodeCount:0,localName:\"\",nodeId:n,nodeName:\"#text\",nodeType:3,nodeValue:t.stateNode.textContent,parentId:r}}function ei(e,t,n){var r,o,i;void 0===n&&(n=0),t.__debug_serialized=!0,t.alternate&&(t.alternate.__debug_serialized=!0);var s=e.getFiberId(e.getPrimaryFiber(t)),a=Go(t);a=a.replace(/^AppX\\((\\S+)\\)$/,\"$1\");var u,c,l,d=0;if(Ho(t,(function(t){if(c||(c=t),n>0){u||(u=[]);var r=ti(e,t,n-1);r&&u.push(r)}d+=1})),!u&&1===d&&c&&c.tag===Fo.HostText){u||(u=[]);var h=ti(e,c,n-1);h&&u.push(h)}if(!d&&t.memoizedProps&&\"string\"==typeof t.memoizedProps.children){u||(u=[]);for(var p=t.child;p&&p.child;)p=p.child;if((null===(i=null===(o=null===(r=null==p?void 0:p.stateNode)||void 0===r?void 0:r.childNodes)||void 0===o?void 0:o[0])||void 0===i?void 0:i.nodeType)===Node.TEXT_NODE){var f=p.stateNode.childNodes[0],g={alternate:null,child:null,effectTag:0,key:null,memoizedProps:l=t.memoizedProps.children,memoizedState:null,pendingProps:l,return:null,sibling:null,stateNode:f,tag:Fo.HostText,type:null};e.recordMount(g),u.push(Ko(e,g))}else console.warn(\"bugme failed to create a fiber-like text node, the parent is\",t)}u&&u.length&&(t.__debug_children_serialized=!0,t.alternate&&(t.alternate.__debug_children_serialized=!0));var v=0;return t.return&&(v=e.getFiberId(e.getPrimaryFiber(t.return))),{attributes:$o(t),backendNodeId:s,childNodeCount:d,children:u,localName:a,nodeId:s,nodeName:a,nodeType:1,nodeValue:\"\",parentId:v,shadowRoots:void 0}}function ti(e,t,n){var r;switch(void 0===n&&(n=0),t.tag){case Fo.FunctionComponent:case Fo.ClassComponent:case Fo.HostComponent:r=ei(e,t,n);break;case Fo.HostText:r=Ko(e,t);break;default:console.debug(\"unhandled node type\",t.tag,t)}return r}!function(e){function n(t,n,r,o,i,s){var a=e.call(this,t,r)||this;return a.devtool=t,a.nodeName=n,a.node=r,a.nodeId=o,a.shadowRootNodeId=i,a.shadowSlotNodeId=s,a.nodeType=Qr.Element,a.activated=!1,a.childrenActivated=!1,a.pendingAttributes=[],a.dataset=new Map,a.properties=new Map,a.attributes=new Map,a.inlineStyleSheetId=\"2000.\".concat(o),a.updateClassName(r.classNameExp),a.updateInlineStyle(r.inlineStyleExp),a.updateDataset(r.getDataset()),a}t(n,e),Object.defineProperty(n.prototype,\"dom\",{get:function(){return this.devtool.getDOMNodeDebugInfo(this.node.root,this,this.shadowRootNodeId)},enumerable:!1,configurable:!0}),n.prototype.getPlatformRootDOM=function(){return this.node.root},n.prototype.getShadowRootDebugNode=function(){var e=this.node.root;return this.devtool.getDOMNodeDebugInfo(e,this,this.shadowRootNodeId)},n.prototype.getClassName=function(){return this.attrClass},n.prototype.getInlineStyle=function(){return this.attrStyle},n.prototype.getDataset=function(){return this.dataset},n.prototype.updateClassName=function(e){var t=e||\"\";this.attrClass!==t&&(this.attrClass=t,this.activated&&this.pendingAttributes.push([\"class\",\"\".concat(t)]))},n.prototype.updateInlineStyle=function(e){this.attrStyle!==e&&(this.attrStyle=e,this.activated&&this.pendingAttributes.push([\"style\",\"\".concat(e)]))},n.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n]),\"style\"===n&&e.node.setStyleInline(t[n])})),this.pendingAttributes=[],t={},this.devtool.enableShadowRootElements&&(this.devtool.flushUpdatedQueue(),this.dom&&this.dom.invalidate())}},n.prototype.getProperties=function(){var e={};return this.properties.forEach((function(t,n){e[n]=t})),e},n.prototype.updateProperties=function(e){if(e)for(var t=this.properties,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([o,\"\".concat(e[o])]))}},n.prototype.updateDataset=function(e){if(e)for(var t=this.dataset,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([\"data-\".concat(o),\"\".concat(e[o])]))}},n.prototype.updateAttribute=function(e,t){t!==this.attributes.get(e)&&(this.attributes.set(e,t),this.activated&&this.pendingAttributes.push([e,\"\".concat(t)]))},n.prototype.getChildNodes=function(){return Lo(this.node.firstChild,(function(){return!1}),this.devtool)},n.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&r&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==Qr.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.localName,nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId(),pseudoElements:this.getPseudoElements(),shadowRoots:this.devtool.shadowRootElementsEnabled?[{childNodeCount:1,localName:\"\",nodeId:this.shadowRootNodeId,nodeName:\"#document-fragment\",nodeType:11,nodeValue:\"\",shadowRootType:\"dom\"}]:void 0}},Object.defineProperty(n.prototype,\"localName\",{get:function(){return this.nodeName.toLowerCase()},enumerable:!1,configurable:!0}),n.prototype.getOuterAXML=function(){return zo(this)},n.prototype.getAllAttributes=function(){var e=[];return this.attrClass&&e.push(\"class\",\"\".concat(this.attrClass)),this.attrStyle&&e.push(\"style\",\"\".concat(this.attrStyle)),this.properties.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.attributes.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.dataset.forEach((function(t,n){e.push(\"data-\".concat(n),\"\".concat(t))})),e},n.prototype.getChildNodeCount=function(){return this.getChildNodes().length},n.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})},n.prototype.getPseudoElements=function(){return[]}}(Uo),function(e){function n(t,n,r,o){var i=e.call(this,t,n)||this;return i.devtool=t,i.node=n,i.nodeId=r,i.shadowSlotNodeId=o,i.nodeType=Qr.Text,i.activated=!1,i.nodeName=\"#text\",i.dom=t.getDOMNodeDebugInfo(n.root,i),i}t(n,e),n.prototype.getPlatformRootDOM=function(){return this.node.root},n.prototype.serialize=function(e){return this.activated=!0,{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:this.nodeName,nodeType:3,nodeValue:this.node.root.textContent,parentId:this.getParentNodeId()}},n.prototype.getOuterAXML=function(){return this.node.root.textContent}}(Uo),function(){function e(e,t,n){var r=this;this.devtool=e,this.targetId=t,this.nodeId=n,this.nodeType=Qr.Component,this.nodeName=\"component\",this.activated=!1,this.childrenActivated=!1,this.pendingAttributes=[],this.componentInstance=e.componentTargetId2LinkedInstance.get(t),this.beginAnchor=this.componentInstance._anchor4Head,this.parentNodeId=this.getParentNodeId();var o=io(e.sendMessage.bind(e),500,setTimeout,clearTimeout),i=this.componentInstance._fragment.u;this.componentInstance._fragment.u=function(){for(var t=[],s=0;s<arguments.length;s++)t[s]=arguments[s];var a=i.apply(r.componentInstance._fragment,t);return e.activatedCustomComponentId===n&&o(\"Tiny.Elements.componentDataChanged\",{data:Ro(r.getData()).data,nodeId:n,targetId:r.targetId}),a};var s=io(e.sendMessage.bind(e),500,setTimeout,clearTimeout),a=this.componentInstance.receiveProps;this.componentInstance.receiveProps=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];a.apply(r.componentInstance,t),e.activatedCustomComponentId===n&&s(\"Tiny.Elements.componentDataChanged\",{nodeId:n,props:Ro(r.getProps()).data,targetId:r.targetId})},this.invalidate=io(this.invalidate.bind(this),500,setTimeout,clearTimeout)}e.prototype.getChildNodes=function(){var e=this;return Lo(this.beginAnchor.nextSibling,(function(t){if(0===t.eType&&t.root.textContent===Bo(e.targetId))return!0}),this.devtool)},e.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==Qr.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),placeholderComponentInfo:this.getPlaceholderComponentInfo(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.localName,nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId()}},Object.defineProperty(e.prototype,\"localName\",{get:function(){return this.nodeName.toLowerCase()},enumerable:!1,configurable:!0}),e.prototype.getOuterAXML=function(){return zo(this)},e.prototype.getAllAttributes=function(){var e=this,t=this.componentInstance.fixedReceivedPropKeys,n=this.componentInstance.componentIs;\"string\"==typeof n&&\"/\"===n[0]&&(n=n.substring(1));var r=[\"is\",n];return this.componentInstance.externalClasses&&r.push(\"externalClasses\",this.componentInstance.externalClasses.join(\" \")),t&&t.forEach((function(t){r.push.apply(r,Do(t,e.componentInstance._state[t]))})),r},e.prototype.getComponentIs=function(){return this.componentInstance.componentIs},e.prototype.getPlaceholderComponentInfo=function(){if(this.componentInstance.getPlaceholderComponentInfo)return this.componentInstance.getPlaceholderComponentInfo()},e.prototype.getComponentInstance=function(){return this.componentInstance},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getParentNode=function(){if(this.beginAnchor.parent){var e=this.devtool.getZNodeDebugInfo(this.beginAnchor.parent),t=jo(this.beginAnchor);return jo(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.getData=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys,r=void 0===n?[]:n;return Object.keys(this.componentInstance._state).forEach((function(n){\"$id\"!==n&&-1===r.indexOf(n)&&(t[n]=e.componentInstance._state[n])})),t},e.prototype.getProps=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys;return(void 0===n?[]:n).forEach((function(n){t[n]=e.componentInstance._state[n]})),t},e.prototype.getChildNodeCount=function(){return this.getChildNodes().length},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.beginAnchor.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.updateProperties=function(e,t){var n=this;Object.keys(t).forEach((function(r){t[r]&&n.pendingAttributes.push([r,\"\".concat(e[r])])}))},e.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n])})),this.pendingAttributes=[],t={}}},e.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})}}(),function(e){e[e.FunctionComponent=0]=\"FunctionComponent\",e[e.ClassComponent=1]=\"ClassComponent\",e[e.IndeterminateComponent=2]=\"IndeterminateComponent\",e[e.HostRoot=3]=\"HostRoot\",e[e.HostPortal=4]=\"HostPortal\",e[e.HostComponent=5]=\"HostComponent\",e[e.HostText=6]=\"HostText\",e[e.Fragment=7]=\"Fragment\",e[e.Mode=8]=\"Mode\",e[e.ContextConsumer=9]=\"ContextConsumer\",e[e.ContextProvider=10]=\"ContextProvider\",e[e.ForwardRef=11]=\"ForwardRef\",e[e.Profiler=12]=\"Profiler\",e[e.SuspenseComponent=13]=\"SuspenseComponent\",e[e.MemoComponent=14]=\"MemoComponent\",e[e.SimpleMemoComponent=15]=\"SimpleMemoComponent\",e[e.LazyComponent=16]=\"LazyComponent\",e[e.IncompleteClassComponent=17]=\"IncompleteClassComponent\"}(Fo||(Fo={}));var ni=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},getDocument:function(e,t,n){e.resetFiberSerializedState();var r=e.getPageComponent();if(r){var o=ti(e,r,1);o.localName=o.nodeName=\"page\",o.attributes=[],n(void 0,{root:{backendNodeId:1,childNodeCount:1,children:[o],localName:\"\",nodeId:1,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}})}else{var i=\"page-not-found\";n(void 0,{root:{backendNodeId:1,childNodeCount:1,children:[{attributes:[],backendNodeId:2,childNodeCount:0,localName:i,nodeId:2,nodeName:i,nodeType:1,nodeValue:\"\",parentId:1}],localName:\"\",nodeId:1,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}})}dr().forEach((function(t){e.sendMessageWithPriority(\"CSS.styleSheetRemoved\",{styleSheetId:t.styleSheetId}),e.sendMessageWithPriority(\"CSS.styleSheetAdded\",{header:fr(t)})}))},markUndoableState:function(e,t,n){n(void 0,{})},pushNodesByBackendIdsToFrontend:function(e,t,n){n(void 0,{nodeIds:t.backendNodeIds})},requestChildNodes:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r);if(o){var i=ti(e,o,1);i&&i.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:i.children,parentId:r})}else console.warn(\"requestChildNodes node not exists\",r);n(void 0,{})},setAttributesAsText:function(e,t,n){var r=t.nodeId,o=t.text,i=t.name,s=e.getFiberNodeById(r);if(s&&s.memoizedProps){var a=mr(o);if(\"class\"===i){if((h=Yo(s))&&h.stateNode&&h.stateNode.classList){var u=h.stateNode,c=h.memoizedProps.className||\"\";u.className=c;var l=s.memoizedProps.className||\"\";if(l)try{l.split(/\\s/).filter(Boolean).forEach((function(e){u.classList.remove(e)}))}catch(e){console.warn(\"setAttributesAsText remove class error, className=\".concat(l))}var d=a.class||\"\";d&&d.split(/\\s/).filter(Boolean).forEach((function(e){u.classList.add(e)})),e.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:r,value:d})}}else if(\"style\"===i){var h;if((h=Yo(s))&&h.stateNode&&h.stateNode.nodeType===Node.ELEMENT_NODE)h.stateNode.setAttribute(i,a.style),e.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:r,value:a.style})}}n(void 0,{})},setNodeName:function(e,t,n){n(-32e3)},setNodeValue:function(e,t,n){var r=t.nodeId,o=t.value,i=e.getFiberNodeById(r);if(i&&i.tag===Fo.HostText)return i.stateNode.textContent=o,n(void 0,{}),void e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:r});n(-32e3,{})}});function ri(e,t){if(e&&qo(e)){var n=Vo(e);if(n&&n.nodeType===Node.ELEMENT_NODE)return vr({getInlineStyle:function(){return n.getAttribute(\"style\")||\"\"},inlineStyleSheetId:\"2000.\".concat(t)})}}var oi=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},getComputedStyleForNode:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r),i=[];if(o&&qo(o)){var s=Vo(o);if(s&&s.nodeType===Node.ELEMENT_NODE){var a=getComputedStyle(s);i=Array.from(a).map((function(e){return{name:e,value:a[e]}}))}}n(void 0,{computedStyle:i})},getInlineStylesForNode:function(e,t,n){var r,o=t.nodeId,i=e.getFiberNodeById(o);if(i&&qo(i)){var s=Vo(i);if(s&&s.nodeType===Node.ELEMENT_NODE){r={cssProperties:[],cssText:\"\",range:{endColumn:0,endLine:0,startColumn:0,startLine:0},shorthandEntries:[],styleSheetId:\"2000.\".concat(o)};var a=ri(i,o);a&&(r=a)}}r?n(void 0,{inlineStyle:r}):n(-32e3)},getMatchedStylesForNode:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r),i={matchedCSSRules:[]};if(o&&qo(o)){var s=Vo(o);if(s&&s.nodeType===Node.ELEMENT_NODE){gr((function(e,t){zn(s,e.selector)&&i.matchedCSSRules.push(ir(e,s,t))}));var a=ri(o,r);a&&(i.inlineStyle=a)}}if(i.matchedCSSRules.length)try{i.matchedCSSRules=Hn(i.matchedCSSRules)}catch(e){}n(void 0,i)},getStyleSheetText:function(e,t,n){var r=\"\",o=hr(t.styleSheetId);o&&(r=o.ownerNode.textContent||\"\"),n(void 0,{text:r})},setStyleTexts:function(e,t,n){var r=[],o=\"2000.\";t.edits.forEach((function(t){var n=t.styleSheetId;if(0===n.indexOf(o)){var i=Number(n.replace(o,\"\")),s=e.getFiberNodeById(i);if(s){var a=Vo(s);if(a&&a.nodeType===Node.ELEMENT_NODE){a.setAttribute(\"style\",t.text);var u=ri(s,i);u&&r.push(u)}}}else{t.range.startLine+=1,t.range.startColumn+=1;var c=yr(n,t.range,t.text);c&&r.push(c)}})),n(void 0,{styles:r})}});var ii=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},hideHighlight:function(e,t,n){e.getOverlayManager().hidehighlight(),n(void 0,{})},highlightNode:function(e,t,n){var r=t.nodeId,o=t.highlightConfig;if(t.selector)n(void 0,{});else{var i=e.getFiberNodeById(r);if(i){var s=Vo(i);s&&s.nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(s,o)}n(void 0,{})}},setInspectMode:function(e,t,n){var r=t.mode,o=t.highlightConfig;\"none\"===r?e.getOverlayManager().leaveInspectMode():e.getOverlayManager().enterInspectMode(o),n(void 0,{})}});var si=Object.freeze({__proto__:null,getComponentData:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r);o&&Wo(o)?(e.activatedCustomComponentId=r,n(void 0,{data:Ro(o.memoizedState&&o.memoizedState.data||{}).data,props:Ro(Qo(o.memoizedProps||{})).data})):(e.activatedCustomComponentId=void 0,n(void 0,{}))}}),ai=Object.freeze({__proto__:null,Elements:si}),ui=Object.freeze({__proto__:null,CSS:oi,DOM:ni,Overlay:ii,Tiny:ai});function ci(e,t,n,r,o){var i,s,a=null,u=0;o||(o={});var c=function(){u=!1===o.leading?0:Date.now(),a=null,s=e.apply(null,i),i=null};return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h=Date.now();u||!1!==o.leading||(u=h);var p=t-(h-u);return i=l,p<=0||p>t?(r(a),a=null,u=h,s=e.apply(null,i),i=null):a||!1===o.trailing||(a=n(c,p)),s}}var li=1,di=4;function hi(e,t){var n=t.current,r=n.alternate;if(r){var o=null!=r.memoizedState&&null!=r.memoizedState.element,i=null!=n.memoizedState&&null!=n.memoizedState.element;!o&&i?vi(e,n):o&&i&&mi(e,n,r)}else vi(e,n);!function(e){fi.forEach((function(t){var n=t.nodeId,r=t.parentNodeId;e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:n,parentNodeId:r})})),fi.clear(),gi.forEach((function(t){var n=Xo(t);if(n&&Jo(n)){var r=e.getFiberId(n),o=0;if(Ho(n,(function(){o+=1})),function(e){var t;return Boolean(e.__debug_children_serialized||(null===(t=e.alternate)||void 0===t?void 0:t.__debug_children_serialized))}(n)){var i=function(e){var t=Xo(e);if(!t)return null;var n=null,r=null;return Ho(t,(function(t){t===e&&(r=n),n=t})),r}(t);e.sendMessage(\"DOM.childNodeInserted\",{node:ti(e,t),parentNodeId:r,previousNodeId:i?e.getFiberId(i):0})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:o,nodeId:r})}})),gi.clear()}(e)}var pi,fi=new Set,gi=new Set;function vi(e,t){Zo(t)&&e.recordMount(t);for(var n=t.child;n;)vi(e,n),n=n.sibling}function mi(e,t,n){if(Zo(t)){var r=n?e.getFiberId(n):0,o=e.getFiberId(t);if(n&&r&&!o){if(e.recordMount(t),Jo(n)&&((t.effectTag&di)===di||(t.effectTag&li)===li)){var i=e.activatedCustomComponentId===r;t.memoizedProps&&n.memoizedProps&&t.memoizedProps!==n.memoizedProps&&\"object\"==typeof t.memoizedProps&&Object.keys(t.memoizedProps).forEach((function(o){if(\"children\"!==o&&t.memoizedProps[o]!==n.memoizedProps[o]){var s=Do(o,t.memoizedProps[o]);2===s.length&&e.sendMessage(\"DOM.attributeModified\",{name:s[0],nodeId:r,value:s[1]}),i&&(pi||(pi=ci(e.sendMessage.bind(e),500,setTimeout,clearTimeout)),pi(\"Tiny.Elements.componentDataChanged\",{nodeId:r,targetId:-1,props:Ro(Qo(t.memoizedProps||{})).data}))}})),i&&t.memoizedState&&n.memoizedState&&t.memoizedState.data!==n.memoizedState.data&&(pi||(pi=ci(e.sendMessage.bind(e),500,setTimeout,clearTimeout)),pi(\"Tiny.Elements.componentDataChanged\",{nodeId:r,data:Ro(t.memoizedState.data||{}).data,targetId:-1}))}}else r||o||(vi(e,t),gi.add(t))}for(var s=t.child;s;)mi(e,s,s.alternate),s=s.sibling}function yi(e){var t;window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&console.warn(\"bugme ReactDevtoolHook has been injected\");var n={},r={supportsFiber:!0,inject:function(e){if(t)throw new Error(\"FiberRender has been already injected\");return t=e,r.uniqueFiberRenderer=e,1},onCommitFiberRoot:function(t,n){var o=n.current,i=e.getFiberRoot()===n,s=null==o.memoizedState||null==o.memoizedState.element;i||s?i&&s&&e.setFiberRoot():e.setFiberRoot(n),r.wasCommited||(r.wasCommited=!0,r.emit(\"first-commit\"));try{hi(e,n)}catch(e){console.warn(e)}},onCommitFiberUnmount:function(t,n){try{!function(e,t){if(Zo(t)){var n=Array.from(fi).some((function(e){if(function(e,t){for(var n=t.return;n;){if(n===e)return!0;n=n.return}return!1}(e.node,t))return!0}));n||fi.add({node:t,nodeId:e.getFiberId(t),parentNodeId:e.getFiberId(Xo(t))})}}(e,n)}catch(e){console.warn(e)}},wasCommited:!1,on:function(e,t){n[e]||(n[e]=[]),n[e].push(t)},off:function(e,t){var r=n[e];if(r){var o=r.indexOf(t);-1!==o&&r.splice(o,1),r.length||delete n[e]}},emit:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=n[e];o&&o.forEach((function(e){e.apply(void 0,t)}))}};window.__REACT_DEVTOOLS_GLOBAL_HOOK__=r}var bi=function(e){function n(){var t,n=this;return(n=e.call(this)||this).fiberRenderer=null===(t=window.__REACT_DEVTOOLS_GLOBAL_HOOK__)||void 0===t?void 0:t.uniqueFiberRenderer,n}return t(n,e),n.prototype.bindBridge=function(e){this.bridge=e},n.prototype.handleInspectMouseOver=function(e){var t=this,n=e.target;if(this.fiberRenderer&&n.nodeType===Node.ELEMENT_NODE){var r=this.fiberRenderer.findFiberByHostInstance(n);if(r){var o=Xo(r);if(o){if(!this.bridge.getFiberId(o)&&this.bridge.getFiberId(o.alternate)&&(o=o.alternate),this.highlightNode(n,this.inspectModeHighlightConfig),!Jo(o)){for(var i=[],s=Xo(o);s&&!Jo(s);)i.unshift(s),s=Xo(s);s&&i.unshift(s),i.forEach((function(e){var n=ti(t.bridge,e,1);n&&n.children&&t.bridge.sendMessage(\"DOM.setChildNodes\",{nodes:n.children,parentId:n.nodeId})}))}var a=this.bridge.getFiberId(this.bridge.getPrimaryFiber(o));a&&this.bridge.sendMessage(\"Overlay.nodeHighlightRequested\",{nodeId:a})}}}},n.prototype.handleInspectClick=function(e){e.stopPropagation(),this.hidehighlight(),this.leaveInspectMode();var t=e.target;if(this.fiberRenderer&&t.nodeType===Node.ELEMENT_NODE){var n=this.fiberRenderer.findFiberByHostInstance(t);if(n){var r=Xo(n);if(r){var o=this.bridge.getFiberId(this.bridge.getPrimaryFiber(r));o&&this.bridge.sendMessage(\"Overlay.inspectNodeRequested\",{backendNodeId:o})}}}},n}(Jr),_i=2;var wi,Ii,Si,Ci,ki,Ei=function(){function e(e){var t=this;this.connection=e,this.fiberToIdMap=new Map,this.idToFiberMap=new Map,this.connection.onMessage((function(e,n,r){for(var o=e.split(\".\"),i=ui,s=0,a=o;s<a.length;s++){if(!(i=i[a[s]]))break}i?i(t,n,r):console.warn(\"unhandled protocol\",e)})),yi(this)}return e.prototype.getClientProxy=function(){throw new Error(\"Method not implemented.\")},e.prototype.getZRuntimeHelper=function(){throw new Error(\"Method not implemented.\")},e.prototype.getZNodeDebugInfo=function(e){throw new Error(\"Method not implemented.\")},e.prototype.getZNodeComponentDebugInfo=function(e){throw new Error(\"Method not implemented.\")},e.prototype.getDOMNodeDebugInfo=function(e,t,n){throw new Error(\"Method not implemented.\")},e.prototype.getDocumentNode=function(){throw new Error(\"Method not implemented.\")},e.prototype.flushUpdatedQueue=function(){throw new Error(\"Method not implemented.\")},e.prototype.resetZNodeActivatedState=function(){throw new Error(\"Method not implemented.\")},e.prototype.enableShadowRootElements=function(){throw new Error(\"Method not implemented.\")},e.prototype.getNextNodeId=function(){throw new Error(\"Method not implemented.\")},e.prototype.setFiberRoot=function(e){this.uniqueFiberRoot=e},e.prototype.getFiberRoot=function(){return this.uniqueFiberRoot},e.prototype.sendMessage=function(e,t){this.connection.send(JSON.stringify({method:e,params:t}))},e.prototype.sendMessageWithPriority=function(e,t){this.connection.send(JSON.stringify({method:e,params:t}),!0)},e.prototype.getPageComponent=function(){if(!this.uniqueFiberRoot)return null;for(var e=this.uniqueFiberRoot.current;e&&(!e.type||\"PageComponent\"!==e.type.displayName);)e=e.child;return e},e.prototype.recordMount=function(e){if(!this.getFiberId(e)){var t=e.alternate;if(t&&this.fiberToIdMap.has(t)){var n=this.fiberToIdMap.get(t);return this.fiberToIdMap.delete(t),this.fiberToIdMap.set(e,n),void this.idToFiberMap.set(n,e)}var r=_i++;this.fiberToIdMap.set(e,r),this.idToFiberMap.set(r,e)}},e.prototype.recordUnMount=function(e){},e.prototype.getFiberId=function(e){return this.fiberToIdMap.get(e)||0},e.prototype.getPrimaryFiber=function(e){if(this.fiberToIdMap.has(e))return e;var t=e.alternate;return t&&this.fiberToIdMap.has(t)?t:e},e.prototype.getFiberNodeById=function(e){return this.idToFiberMap.get(e)},e.prototype.resetFiberSerializedState=function(){this.idToFiberMap.forEach((function(e){e.__debug_serialized=!1,e.__debug_children_serialized&&(e.__debug_children_serialized=!1),e.alternate&&(e.alternate.__debug_serialized=!1,e.alternate.__debug_children_serialized&&(e.alternate.__debug_children_serialized=!1))}))},e.prototype.getOverlayManager=function(){return this.overlayManager||(this.overlayManager=new bi,this.overlayManager.bindBridge(this)),this.overlayManager},e}();function xi(){Si=new Se,ki=new Ei(Si),function(){i(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return[4,E()];case 1:return t.sent(),M(window.AlipayJSBridge.startupParams||{})?[2]:(Ii=String(window.APVIEWID),wi=T(),(e=N(wi,Ii))?(Si.setUrl(e),S({onDebugPanelClick:function(){Si.close()},onDebugMaskButtonClick:function(){Ci.tryResume()}}),(Ci=new Ie(Si,wi,Ii)).setup(),Ci.resetAxmlVisitedState=function(){ki&&ki.resetFiberSerializedState()},[2]):[2])}}))}))}(),bi.initGlobalEventListener()}var Ti,Ni,Oi,Ai,Mi,Pi,Li=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.setupWithClientProxy=function(t){this.clientProxy=t,e.prototype.setup.call(this)},n.prototype.startDebugSession=function(){var t=this;if(e.prototype.startDebugSession.call(this),this.clientProxy.platform.renderMountCommited)this.checkHostBeforeAgentConnect();else{var n=this.clientProxy.platform.afterRenderMountCommit;this.clientProxy.platform.afterRenderMountCommit=function(){n.call(t.clientProxy.platform),t.checkHostBeforeAgentConnect()}}},n}(f),Di=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeHandler=[],t.isActive=!0,t.onCloseHandlerSet=new Set,t}return t(n,e),Object.defineProperty(n.prototype,\"isActivated\",{get:function(){return this.isActive},enumerable:!1,configurable:!0}),n.prototype.sendMessage=function(e,t,n){this.send(JSON.stringify({method:e,params:t}),n)},n.prototype.onMessage=function(e){var t=this;this.devtoolHandler=e,this.messageBeforeHandler.length&&(this.messageBeforeHandler.forEach((function(e){t.handleMessage(e)})),this.messageBeforeHandler=[])},n.prototype.send=function(t,n){(this.isActive||n)&&e.prototype.send.call(this,t)},n.prototype.activate=function(){this.isActive=!0},n.prototype.inActivate=function(){this.isActive=!1},n.prototype.addOnCloseHandler=function(e){this.onCloseHandlerSet.add(e)},n.prototype.onSocketMessage=function(e){\"HOST:LEAVE\"!==e||A()?this.devtoolHandler?this.handleMessage(e):this.messageBeforeHandler.push(e):k()},n.prototype.onSocketClose=function(){e.prototype.onSocketClose.call(this),this.onCloseHandlerSet.forEach((function(e){try{e()}catch(e){console.warn(e)}}))},n.prototype.handleMessage=function(e){var t,n=this;try{t=JSON.parse(e)}catch(t){return void console.warn(\"invalid json message: \",e)}t.sessionId||(t.method?this.devtoolHandler(t.method,t.params,(function(e,r){e?n.send(JSON.stringify({id:t.id,error:{code:e,message:\"\".concat(e)}}),!0):n.send(JSON.stringify({id:t.id,result:r}),!0)})):console.warn(\"invalid message: \",e))},n}(U);function Ri(){Oi=new Di,window.__APPXNG_DEVTOOL_HOOK__={init:Bi,connection:Oi},S({onDebugPanelClick:function(){Oi.close()},onDebugMaskButtonClick:function(){Ai.tryResume()}})}function Bi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Mi=e[0],Pi=eo.apply(null,e),function(){var e;i(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,E()];case 1:return n.sent(),Ni=String(window.APVIEWID),Ti=T(),(t=N(Ti,Ni))?(Oi.setUrl(t),(Ai=new Li(Oi,Ti,Ni)).setupWithClientProxy(Mi),Ai.resetAxmlVisitedState=function(){Pi&&Pi.resetZNodeActivatedState()},Pi&&window.AlipayJSBridge&&l(null===(e=window.AlipayJSBridge.startupParams)||void 0===e?void 0:e.devtoolShadowRootEnabled)&&Pi.enableShadowRootElements(),[2]):[2]}}))}))}(),Pi}try{window.__BUGME_ON__||(window.__BUGME_ON__=!0,function(){var e=w(),t=\"undefined\"!=typeof __appxStartupParams&&__appxStartupParams.appId?__appxStartupParams:\"undefined\"!=typeof AlipayJSBridge&&AlipayJSBridge.startupParams?AlipayJSBridge.startupParams:void 0;if(t){var n=M(t);n?Ri():xi(),e.debug(\"[IDE] uniweb - isNg: \".concat(n))}else Ri(),xi(),e.debug(\"[DEBUG] uniweb - concurrent\")}())}catch(fe){console.error(fe)}}();","bugmeRPreview":"","bugmeWRemote":"(function(){\"use strict\";function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}var weakset,hasRequiredWeakset;function requireWeakset(){if(hasRequiredWeakset)return weakset;hasRequiredWeakset=1;var e=Date.now()%1e9;function t(t){this.name=\"__st\"+(1e9*Math.random()>>>0)+e+++\"__\",t&&t.forEach&&t.forEach(this.add,this)}var n=t.prototype;return n.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},n.delete=function(e){return!!e[this.name]&&(e[this.name]=void 0,!0)},n.has=function(e){return!!e[this.name]},weakset=t}var workerGlobal=\"object\"==typeof self&&self||\"object\"==typeof window&&window||\"object\"==typeof global&&global||Function(\"return this\")(),globalImportScripts=workerGlobal.importScripts,globalAlipayJSBridge=workerGlobal.AlipayJSBridge,globalAlipayJSBridgeCall=globalAlipayJSBridge&&globalAlipayJSBridge.call,evalFunc=\"function\"==typeof __eval?__eval:\"function\"==typeof eval?eval:function(){},EPanelStatus,Debugger,DebuggerEvent,Runtime,RuntimeEvent,Page,Target,TargetEvent,EDevtoolProtocolErrorCode,EDevtoolProtocolTypePausedReason;!function(e){e.Connecting=\"connecting\",e.Connected=\"connected\",e.Disconnected=\"disconnected\"}(EPanelStatus||(EPanelStatus={})),function(e){e.enable=\"Debugger.enable\",e.disable=\"Debugger.disable\",e.evaluateOnCallFrame=\"Debugger.evaluateOnCallFrame\",e.getPossibleBreakpoints=\"Debugger.getPossibleBreakpoints\",e.pause=\"Debugger.pause\",e.removeBreakpoint=\"Debugger.removeBreakpoint\",e.resume=\"Debugger.resume\",e.setBreakpointByUrl=\"Debugger.setBreakpointByUrl\",e.setBreakpointsActive=\"Debugger.setBreakpointsActive\",e.stepInto=\"Debugger.stepInto\",e.stepOver=\"Debugger.stepOver\",e.stepOut=\"Debugger.stepOut\",e.getScriptSource=\"Debugger.getScriptSource\",e.setPauseOnExceptions=\"Debugger.setPauseOnExceptions\",e.setSkipAllPauses=\"Debugger.setSkipAllPauses\"}(Debugger||(Debugger={})),function(e){e.paused=\"Debugger.paused\",e.resumed=\"Debugger.resumed\",e.scriptParsed=\"Debugger.scriptParsed\"}(DebuggerEvent||(DebuggerEvent={})),function(e){e.enable=\"Runtime.enable\",e.disable=\"Runtime.disable\",e.evaluate=\"Runtime.evaluate\",e.compileScript=\"Runtime.compileScript\",e.getProperties=\"Runtime.getProperties\",e.callFunctionOn=\"Runtime.callFunctionOn\",e.releaseObjectGroup=\"Runtime.releaseObjectGroup\",e.globalLexicalScopeNames=\"Runtime.globalLexicalScopeNames\",e.runIfWaitingForDebugger=\"Runtime.runIfWaitingForDebugger\"}(Runtime||(Runtime={})),function(e){e.executionContextCreated=\"Runtime.executionContextCreated\",e.consoleAPICalled=\"Runtime.consoleAPICalled\",e.exceptionThrown=\"Runtime.exceptionThrown\"}(RuntimeEvent||(RuntimeEvent={})),function(e){e.enable=\"Page.enable\",e.getResourceTree=\"Page.getResourceTree\"}(Page||(Page={})),function(e){e.setAutoAttach=\"Target.setAutoAttach\"}(Target||(Target={})),function(e){e.targetCreated=\"Target.targetCreated\",e.targetDestroyed=\"Target.targetDestroyed\",e.targetInfoChanged=\"Target.targetInfoChanged\",e.attachedToTarget=\"Target.attachedToTarget\"}(TargetEvent||(TargetEvent={})),function(e){e[e.NormalError=-32e3]=\"NormalError\"}(EDevtoolProtocolErrorCode||(EDevtoolProtocolErrorCode={})),function(e){e.Other=\"other\",e.Exception=\"exception\"}(EDevtoolProtocolTypePausedReason||(EDevtoolProtocolTypePausedReason={}));var defineProperty=Object.defineProperty.bind(Object),defineProperties=Object.defineProperties.bind(Object),getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor.bind(Object),freeze=Object.freeze.bind(Object),objectKeys=Object.keys.bind(Object),__hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwnProperty(e,t){return __hasOwnProperty.call(e,t)}function __assign$1(e){for(var t=1;t<arguments.length;++t){var n=arguments[t];for(var r in n)hasOwnProperty(n,r)&&(e[r]=n[r])}return e}var assignObject=Object.assign.bind(Object)||__assign$1,getOwnPropertyNames=Object.getOwnPropertyNames.bind(Object),createObject=Object.create.bind(Object),__setPrototypeOf=Object.setPrototypeOf&&Object.setPrototypeOf.bind(Object);function setPrototypeOf(e,t){__setPrototypeOf?__setPrototypeOf(e,t):e.__proto__=t}var __getPrototypeOf=Object.getPrototypeOf&&Object.getPrototypeOf.bind(Object);function getPrototypeOf(e){return __getPrototypeOf?__getPrototypeOf(e):e.__proto__}var hasConsoleObject=\"object\"==typeof console,log=hasConsoleObject&&console.log?console.log.bind(console):function(){},warn=hasConsoleObject&&console.warn?console.warn.bind(console):function(){},error$1=hasConsoleObject&&console.error?console.error.bind(console):function(){},isFunctionNameConfigurable=getOwnPropertyDescriptor(hasOwnProperty,\"name\").configurable,HostAPI=Object.freeze({__proto__:null,assignObject:assignObject,createObject:createObject,defineProperties:defineProperties,defineProperty:defineProperty,error:error$1,freeze:freeze,getOwnPropertyDescriptor:getOwnPropertyDescriptor,getOwnPropertyNames:getOwnPropertyNames,getPrototypeOf:getPrototypeOf,hasOwnProperty:hasOwnProperty,isFunctionNameConfigurable:isFunctionNameConfigurable,log:log,objectKeys:objectKeys,setPrototypeOf:setPrototypeOf,warn:warn});function noop(){}var DEBUG_TAG=\"[boatman]\";function error(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];error$1.apply(HostAPI,[DEBUG_TAG].concat(e))}var debug=noop,isAppXImportHooked$1=!1,appxLoadedCallbacks$1=[];function runAfterAppx(e){if(void 0!==workerGlobal.AFAppX)e();else if(appxLoadedCallbacks$1.push(e),!isAppXImportHooked$1){isAppXImportHooked$1=!0;var t=globalImportScripts||workerGlobal.importScripts;t?workerGlobal.importScripts=function(e){t(e),/af-appx\\.worker\\.min\\.js$/.test(e)&&(appxLoadedCallbacks$1.forEach((function(e){return e()})),appxLoadedCallbacks$1=[],workerGlobal.importScripts=t)}:setTimeout((function(){appxLoadedCallbacks$1.forEach((function(e){return e()})),appxLoadedCallbacks$1=[]}),1200)}}function runAfterAppXBridgeReady(e){if(\"undefined\"==typeof AFAppX&&workerGlobal.AFAppX&&(AFAppX=workerGlobal.AFAppX),\"undefined\"==typeof $AppxFramework)e();else if(AFAppX.Plugin){var t=AFAppX.Plugin;AFAppX.Plugin=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n[0];if(\"object\"==typeof o&&o.run){var a=o.run;o.run=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),a.apply(o,t)}}return t.apply(AFAppX,n)}}else if($AppxFramework.bootstrapInAppContextByProtocol){var n=$AppxFramework.bootstrapInAppContextByProtocol;$AppxFramework.bootstrapInAppContextByProtocol=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=t[0];if(\"object\"==typeof o){var a=o.callback;if(a&&(o.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),a.apply(this,t)}),o.pageInfo){var i=o.pageInfo.init;i&&(o.pageInfo.init=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),i.apply(this,t)})}}return n.apply($AppxFramework,t)}}}function guardSingleMsgSize(e){var t=\"string\"==typeof e?e:JSON.stringify(e);return t.length>2e7?void debug(\"abort send websocket message due to size:\",t.length,t.slice(0,1e3)):t}function createWeakSet$1(){return\"undefined\"==typeof WeakSet?new(requireWeakset()):new WeakSet}var getCircularReplacer$1=function(){var e=createWeakSet$1();return function(t,n){if(\"object\"==typeof n&&null!==n)try{if(e.has(n))return;e.add(n)}catch(e){console.error(e)}return n}};function circularJSONStringify$1(e){return JSON.stringify(e,getCircularReplacer$1())}var extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},extendStatics(e,t)};function __extends(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign.apply(this,arguments)};function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function __awaiter(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))}function __generator(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},\"function\"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError(\"Generator is already executing.\");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function __spreadArray(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}\"function\"==typeof SuppressedError&&SuppressedError;var FunctionApply=Function.prototype.apply.call.bind(Function.prototype.apply);function functionApply(e,t,n){return FunctionApply(e,t,n)}function throttle$1(e,t,n,r,o){var a,i,s=null,c=0;o||(o={});var p=function(){c=!1===o.leading?0:Date.now(),s=null,i=functionApply(e,null,a),a=null};return function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var g=Date.now();c||!1!==o.leading||(c=g);var f=t-(g-c);return a=l,f<=0||f>t?(r(s),s=null,c=g,i=functionApply(e,null,a),a=null):s||!1===o.trailing||(s=n(p,f)),i}}var weakElementKey=\"__weak_set_key__yek_tes_kaew__\",weakSetKey=1,WeakMapKlass,WeakSetKlass;function getWeakSetPolyfillConstructor(){return function(){function e(){this.elementKey=weakElementKey+weakSetKey++}return e.prototype.has=function(e){return 1===e[this.elementKey]},e.prototype.add=function(e){return e[this.elementKey]=1,this},e.prototype.delete=function(e){e[this.elementKey]=null},e}()}function getWeakMapPolyfillConstructor(){var e=Object.prototype.hasOwnProperty,t=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,value:n,writable:!0}):e[t]=n};function n(e){return Object(e)===e}function r(){if(void 0===this)throw new TypeError(\"Constructor WeakMap requires 'new'\");if(t(this,\"_id\",\"_WeakMap\"+\"_\"+a()+\".\"+a()),arguments.length>0)throw new TypeError(\"WeakMap iterable is not supported\")}function o(t,r){if(!n(t)||!e.call(t,\"_id\"))throw new TypeError(r+\" method called on incompatible receiver \"+typeof t)}function a(){return Math.random().toString().substring(2)}return t(r.prototype,\"delete\",(function(e){if(o(this,\"delete\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),t(r.prototype,\"get\",(function(e){if(o(this,\"get\"),n(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),t(r.prototype,\"has\",(function(e){if(o(this,\"has\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),t(r.prototype,\"set\",(function(e,r){if(o(this,\"set\"),!n(e))throw new TypeError(\"Invalid value used as weak map key\");var a=e[this._id];return a&&a[0]===e?(a[1]=r,this):(t(e,this._id,[e,r]),this)})),t(r,\"_polyfill\",!0),r}function getWeakMapConstructorMayBePolyfill$1(){var e=\"undefined\"!=typeof WeakMap;WeakMapKlass=e?WeakMap:getWeakMapPolyfillConstructor()}function createWeakMap(){return WeakMapKlass||getWeakMapConstructorMayBePolyfill$1(),new WeakMapKlass}function getWeakMapConstructorMayBePolyfill(){var e=\"undefined\"!=typeof WeakSet;WeakSetKlass=e?WeakSet:getWeakSetPolyfillConstructor()}function createWeakSet(){return WeakSetKlass||getWeakMapConstructorMayBePolyfill(),new WeakSetKlass}createWeakMap();var InterceptContext=function(){function e(e,t){var n=this;this.interceptors=e,this.callback=t,this.nextRequestId=1e5,this.notifyDataChange=throttle$1((function(){n.callback({ext:{origin:\"data\"},method:\"Tiny.Data.dataChanged\"})}),300,setTimeout,clearTimeout)}return e.prototype.getNextRequestId=function(){return++this.nextRequestId},e}(),getCircularReplacer=function(){var e=createWeakSet();return function(t,n){if(\"object\"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return n}};function circularJSONStringify(e){return JSON.stringify(e,getCircularReplacer())}var precisionTimestampBasis=0;function resetPrecisionTimestampBasis(){precisionTimestampBasis=1e3*Date.now()-getPrecisionTimestamp()}var getPrecisionTimestamp=\"object\"==typeof performance&&performance&&\"function\"==typeof performance.now?function(){return 1e3*performance.now()+precisionTimestampBasis}:function(){return 1e3*Date.now()};function interceptLifecycle(e){e.interceptors.appLifecycleManagerInterceptor.before(\"performLifeHook\",(function(t,n){var r={aTime:getPrecisionTimestamp()/1e3,args:n,context:circularJSONStringify(normalizeAppLifecycleManagerThisContext(t))};onAppLifecycle(e,r)})),e.interceptors.pageLifecycleManagerInterceptor.before(\"performLifeHook\",(function(t,n){var r={aTime:getPrecisionTimestamp()/1e3,args:n,context:circularJSONStringify(normalizePageLifecycleManagerThisContext(t))};onPageLifecycle(e,r)}))}function onAppLifecycle(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.\"+t.args[0],params:t};e.callback(n)}catch(e){}}function normalizeAppLifecycleManagerThisContext(e){var t=e.app;return{app:{appInstanceId:t.appInstanceId,initTime:t.initTime,launchOptions:t.getLaunchOptions(),launchTime:t.launchTime},state:e.state}}function onPageLifecycle(e,t){try{var n=getLifecycleName$1(t.args[0]);if(!n)return;var r={ext:{origin:\"applog\"},method:\"MiniAppLog.\"+n,params:t};e.callback(r),\"onPageShow\"===n&&e.notifyDataChange()}catch(e){}}function getLifecycleName$1(e){var t;switch(e){case 0:t=\"onPageLoad\";break;case 2:t=\"onPageReady\";break;case 1:t=\"onPageShow\";break;case 3:t=\"onPageHide\";break;case 4:t=\"onPageUnload\"}return t}function normalizePageLifecycleManagerThisContext(e){var t=e.page;return{page:{initTime:t.initTime,loadTime:t.loadTime,pageId:t.pageId,pagePath:t.pagePath,plugin:t.plugin},state:e.state}}function interceptJSAPI(e){e.interceptors.bridgeSyncCallContextMethodInterceptor.all(\"invoke\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return onApiSyncCall(e,{context:t,args:n,reqId:r,aTime:o}),[[r,o],n]}),(function(t,n,r,o){var a=n[0],i=a[0],s=a[1],c=n[1],p=getPrecisionTimestamp()/1e3;onApiSyncCallback(e,{context:t,args:c,reqId:i,result:r,bTime:p,aTime:s})})),e.interceptors.bridgeAsyncCallContextMethodInterceptor.before(\"invoke\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return t.__reqId=r,onApiCall(e,{context:t,args:n,reqId:r,aTime:o}),\"rpc\"===t.apiName&&(t.option.getResponse||(t.$$rpcGetResponseToTrue=!0,t.option=__assign(__assign({},t.option),{getResponse:!0}))),n})),e.interceptors.bridgeAsyncCallContextMethodInterceptor.before(\"dispatchResultCallback\",(function(t,n){var r=t.__reqId,o=getPrecisionTimestamp()/1e3;return onApiCallback(e,{context:t,args:n,reqId:r,bTime:o}),\"rpc\"===t.apiName&&t.$$rpcGetResponseToTrue&&void 0!==n[0].resData?[n[0].resData]:n}))}function onApiSyncCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiSyncCallback\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function onApiSyncCall(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiSyncCall\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function onApiCall(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiCall\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function onApiCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiCallback\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function minimizeApiHookInfo$1(e){if(e.context){var t=e.context,n=t.apiName,r=t.extraInfo,o=t.isMiniExtension,a=t.option,i=t.startTime,s=t.taskId,c=t.__reqId;return __assign(__assign({},e),{context:{__reqId:c,apiName:n,extraInfo:r,isMiniExtension:o,option:a,startTime:i,taskId:s}})}return e}var originalError=console.error;function interceptError(e){e.interceptors.appBaseInstanceInterceptor.after(\"reportError\",(function(e,t){t[0],onError({code:t[1],formatted:t[2]})}))}function onError(e){var t=new Error(e.formatted.message);t.stack=e.formatted.stack,setTimeout(originalError.bind(console,t),0)}function interceptSetData(e){e.interceptors.pageFlexibleLogicInstanceMethodInterceptor.all(\"setData\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3,a={aTime:o,args:n,context:circularJSONStringify(normalizePageLogicInstanceThisContext(t)),reqId:r};return onSetData(e,a),[[r,o],n]}),(function(t,n,r,o){var a=n[0],i=a[0],s=a[1],c=n[1],p=getPrecisionTimestamp()/1e3;onSetDataCallback(e,{aTime:s,args:c,bTime:p,context:circularJSONStringify(normalizePageLogicInstanceThisContext(t)),reqId:i})})),e.interceptors.componentFlexibleLogicInstanceMethodInterceptor.all(\"setData\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return onSetData(e,{aTime:o,args:n,context:circularJSONStringify(normalizeComponentLogicInstanceThisContext(t)),reqId:r}),[[r,o],n]}),(function(t,n,r,o){var a=n[0],i=a[0],s=a[1],c=n[1],p=getPrecisionTimestamp()/1e3;onSetDataCallback(e,{aTime:s,args:c,bTime:p,context:circularJSONStringify(normalizeComponentLogicInstanceThisContext(t)),reqId:i})}))}function onSetData(e,t){try{e.notifyDataChange();var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onSetData\",params:minimizeSetDataInfo$1(t)};e.callback(n)}catch(e){}}function onSetDataCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onSetDataCallback\",params:t};e.callback(n)}catch(e){}}function minimizeSetDataInfo$1(e){return e.context?e:{componentIs:e.component?e.component.is:void 0,isPage:e.isPage,option:e.options,pagePath:e.isPage?e.page.route:e.component.$page.route}}function normalizePageLogicInstanceThisContext(e){var t=e.page;return{page:{appInstanceId:t.appInstanceId,initTime:t.initTime,loadTime:t.loadTime},pageId:e.pageId,pagePath:e.pagePath}}function normalizeComponentLogicInstanceThisContext(e){var t=e.page;return{componentPath:e.componentPath,page:{appInstanceId:t.appInstanceId,initTime:t.initTime,loadTime:t.loadTime},pageId:t.pageId,pagePath:t.pagePath}}function setup(e,t,n){resetPrecisionTimestampBasis();var r=new InterceptContext(t,n);interceptSetData(r),interceptLifecycle(r),interceptJSAPI(r),interceptError(r)}function extractBridgeCallback(e,t,n,r){if(void 0===r&&(r=!1),e||t||n)return handleCallbackUnion.bind(null,e,t,n,r)}function handleCallbackUnion(e,t,n,r,o){var a=!1;r?a=!!(o=normalizeErrorCode(o)).error:\"object\"==typeof o&&(a=\"error\"in o||\"errorMessage\"in o),a&&\"function\"==typeof t&&t(o),a||\"function\"!=typeof e||e(o),\"function\"==typeof n&&n(o)}function normalizeErrorCode(e){return\"string\"==typeof e.error&&(e.error=parseInt(e.error,10)),0===e.error&&(delete e.error,delete e.errorMessage),e}var sharedRequestSyncIdBase=3e3,alipayBridge;function normalizeRemoteBridgeCallSyncPayload(e,t,n){var r=\"_sw_jsonp_\".concat(++sharedRequestSyncIdBase);workerGlobal[r]=function(e){workerGlobal[r]=null,n(e)};var o={action:e,callback:r,data:t};return JSON.stringify(o)}function normalizeRemoteBridgeCallUrl(e){var t=encodeURIComponent(e);return\"https://alipay.kylinbridge/?data=\".concat(t)}function safeParseJSON(e){try{return JSON.parse(e)}catch(e){}}function invokeHostBridgeCallSync4KylinBridge(e,t){var n,r=normalizeRemoteBridgeCallUrl(normalizeRemoteBridgeCallSyncPayload(e,t,(function(e){n=e})));try{globalImportScripts(r)}catch(e){}return\"string\"==typeof n?safeParseJSON(n):n}\"object\"==typeof globalAlipayJSBridge&&(alipayBridge={call:function(e,t,n){globalAlipayJSBridgeCall(e,t,n)},callSync:function(e,t){return globalAlipayJSBridge.callSync?globalAlipayJSBridge.callSync(e,t):invokeHostBridgeCallSync4KylinBridge(e,t)}});var isAppXImportHooked=!1,appxLoadedCallbacks=[],appxBridge,appxBridgeReadyResolve;function callAfterAFAppX(e){if(\"undefined\"!=typeof AFAppX)e();else if(appxLoadedCallbacks.push(e),!isAppXImportHooked){isAppXImportHooked=!0;var t=globalImportScripts||workerGlobal.importScripts;t?workerGlobal.importScripts=function(e){t(e),/af-appx\\.worker\\.min\\.js$/.test(e)&&(appxLoadedCallbacks.forEach((function(e){return e()})),appxLoadedCallbacks=[],workerGlobal.importScripts=t)}:setTimeout((function(){appxLoadedCallbacks.forEach((function(e){return e()})),appxLoadedCallbacks=[]}),1200)}}var appxBridgeReadyPromise=new Promise((function(e){appxBridgeReadyResolve=e}));\"object\"==typeof my?(appxBridge=my,appxBridgeReadyResolve()):\"object\"==typeof AFAppX&&\"object\"==typeof AFAppX.bridge?(appxBridge=AFAppX.bridge,appxBridgeReadyResolve()):callAfterAFAppX((function(){appxBridge=AFAppX.bridge,appxBridgeReadyResolve()}));var bootstraped=!1;function ensureAppxBootstrap(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return bootstraped?[3,2]:[4,appxBridgeReadyPromise];case 1:return e.sent(),[2,new Promise((function(e){var t=function(){appxBridge.call(\"getStartupParams\"),bootstraped=!0,e()};try{t()}catch(e){setTimeout(t,600)}}))];case 2:return[2]}}))}))}function call(e,t){if(alipayBridge){var n=t.success,r=t.fail,o=t.complete,a=__rest(t,[\"success\",\"fail\",\"complete\"]),i=extractBridgeCallback(n,r,o,!0);alipayBridge.call(e,a,(function(e){i&&i(e)}))}else appxBridge?appxBridge.call(e,t):console.warn(\"[ERROR] error when call \".concat(e,\": AlipayJSBridge not found\"))}function isInPluginContext(){return\"undefined\"==typeof AlipayJSBridge&&\"undefined\"!=typeof my&&\"undefined\"==typeof getApp}function isInBizContext(){return\"undefined\"==typeof AlipayJSBridge&&\"undefined\"!=typeof my&&\"undefined\"!=typeof getApp}var reiOS=/iPhone|iPad|iOS/i,finalPlatformType;function getUserAgent(){return\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\"}function getPlatformType(){if(finalPlatformType)return finalPlatformType;if(\"undefined\"!=typeof navigator){var e=getUserAgent();finalPlatformType=e.indexOf(\"Android\")>-1?2:e.match(reiOS)?1:0}else finalPlatformType=\"undefined\"!=typeof WXEnvironment?\"iOS\"===WXEnvironment.platform?1:2:1;return finalPlatformType}function isIOS(){return 1===getPlatformType()}function isLyra(){return/LyraVM/i.test(getUserAgent())}var Event=function(){function e(e,t,n){this.type=String(e),this.engineType=n,this.data=t,this._preventDefault=!1}return e.prototype.preventDefault=function(){this._preventDefault=!0},e.prototype.isDefaultPrevented=function(){return!!this._preventDefault},e}();function createEvent4WebEngine(e,t){var n,r,o=t.param,a=t.viewId+\"\";o&&\"object\"==typeof o&&2===getPlatformType()?(n=o.data,o.type,r=__rest(o,[\"data\",\"type\"])):n=o,n?n.instanceId=a:n={instanceId:a};var i=new Event(e,n,1);if(r)try{Object.assign(i,r)}catch(e){}return i}var EventListener=function(){function e(e,t){this.name=e,this.target=t,this.callbackHandlers=new Map,this.callbackBeforeDispatchInterceptor=new Map,this._callbackGlobalMap=new Map,t&&(t.addEventListener&&(this.baseAddEventListener=t.addEventListener.bind(t)),t.removeEventListener&&(this.baseRemoveEventListener=t.removeEventListener.bind(t)))}return e.prototype.tryInitEventListenerOnWindow=function(e){var t,n,r=this;if(!(this.callbackHandlers.has(e)&&(null===(t=this.callbackHandlers.get(e))||void 0===t?void 0:t.length)>0&&this._callbackGlobalMap.has(e))){this.callbackHandlers.set(e,[]);var o=function(e){r.dispatchEvent(e)};this._callbackGlobalMap.set(e,o),null===(n=this.baseAddEventListener)||void 0===n||n.call(this,e,o)}},e.prototype.tryRemoveEventListenerInTarget=function(e){var t,n;if(!this.callbackHandlers.has(e)||0===(null===(t=this.callbackHandlers.get(e))||void 0===t?void 0:t.length)){var r=this._callbackGlobalMap.get(e);r&&(null===(n=this.baseRemoveEventListener)||void 0===n||n.call(this,e,r),this._callbackGlobalMap.delete(e))}},e.prototype.addEventListener=function(e,t){this.callbackHandlers.has(e)||this.tryInitEventListenerOnWindow(e);var n=this.callbackHandlers.get(e);null==n||n.push({fn:t})},e.prototype.removeEventListener=function(e,t){var n=this.callbackHandlers.get(e);n.forEach((function(e,r){e.fn===t&&n.splice(r,1)})),this.tryRemoveEventListenerInTarget(e)},e.prototype.dispatchEvent=function(e){var t,n=null!==(t=e.type)&&void 0!==t?t:e.name;if(this.callbackHandlers&&this.callbackHandlers.has(n)){var r=this.callbackHandlers.get(n),o=this.callbackBeforeDispatchInterceptor.get(n);if(o&&o.length>0)for(var a=0;a<o.length;a++){if(!(0,o[a])(e))return}for(var i=0,s=r;i<s.length;i++){if(s[i].fn.call(null,e),e.defaultPrevented)break}}},e.prototype.addInterceptor=function(e,t){this.callbackBeforeDispatchInterceptor.has(e)||this.callbackBeforeDispatchInterceptor.set(e,[]);var n=this.callbackBeforeDispatchInterceptor.get(e);null==n||n.push(t)},e.prototype.patch=function(){var e=this;this.disposePatch&&this.disposePatch();var t=this.target;t&&(t.addEventListener&&(t.addEventListener=this.addEventListener.bind(this)),t.removeEventListener&&(t.removeEventListener=this.removeEventListener.bind(this))),(this.baseAddEventListener||this.baseRemoveEventListener)&&(this.disposePatch=function(){e.disposePatch=void 0,t&&(e.baseAddEventListener&&(t.addEventListener=e.baseAddEventListener),e.baseRemoveEventListener&&(t.removeEventListener=e.baseRemoveEventListener))})},e}(),EventManger=function(){function e(){var e=this;this.eventMap={},this.queue=[],this.enableQueue=!1,(isInPluginContext()||isInBizContext())&&error$1(\"EventManger is not work in\",\"isInBizContext\"),this.globalEventListener=new EventListener(\"workerGlobal\",workerGlobal),this.documentEventListeners=new EventListener(\"document\",workerGlobal&&workerGlobal.document),this.globalEventListener.addEventListener(\"message\",(function(t){e.enMessageQueue(t)}));this.pushEventListener.addEventListener(\"push\",(function(t){var n=t.data;if(n&&(n.func||n.beforeunload)){var r=n.func||\"beforeunload\",o=createEvent4WebEngine(r,n),a=e.eventMap[r];a&&a.forEach((function(e){e(o)}))}e.enPushQueue(t)}))}return Object.defineProperty(e.prototype,\"pushEventListener\",{get:function(){return workerGlobal&&workerGlobal.document?this.documentEventListeners:this.globalEventListener},enumerable:!1,configurable:!0}),e.prototype.patch=function(){this.globalEventListener.patch(),this.documentEventListeners.patch()},e.prototype.enPushQueue=function(e){this.enableQueue&&(log(\"queued push event\",e),this.queue.push({type:\"push\",e:e}))},e.prototype.enMessageQueue=function(e){this.enableQueue&&(log(\"queued message event\",e),this.queue.push({type:\"message\",e:e}))},e.prototype.startQueueEvent=function(){log(\"startQueueEvent\"),this.enableQueue=!0},e.prototype.replayQueueEvent=function(){for(log(\"replayQueueEvent\",this.queue.length),this.enableQueue=!1;this.queue.length;){var e=this.queue.shift();\"push\"===e.type?this.pushEventListener.dispatchEvent(e.e):this.globalEventListener.dispatchEvent(e.e)}},e.prototype.on=function(e,t){var n=this;if(!isInPluginContext()&&!isInBizContext())return this.eventMap[e]||(this.eventMap[e]=[]),this.eventMap[e].push(t),function(){n.off(e,t)};appxBridge.on(e,t)},e.prototype.off=function(e,t){isInPluginContext()||isInBizContext()?appxBridge.off(e,t):this.eventMap[e]&&(this.eventMap[e]=this.eventMap[e].filter((function(e){return e!==t})))},e.prototype.dispose=function(){var e;null===(e=this.eventDispose)||void 0===e||e.dispose()},e}(),eventManager$1=new EventManger;function getEventManager(){return eventManager$1}var eventManager=getEventManager(),BridgeWebSocketTask=function(){function e(t){this.map={},this.id=\"\".concat(t,\"_\").concat(Math.random().toString(36).substring(2,8),\"_\").concat(String(e.taskId++))}return e.prototype._listen=function(e,t){var n=this;eventManager.on(\"onSocketTask\"+e,(function(e){e.data&&e.data.socketTaskID===n.id&&t(e)}))},e.prototype.getParam=function(e){return __assign({socketTaskID:this.id},e)},e.prototype._doAction=function(e,t){call(e,this.getParam(t))},e.prototype.send=function(e){this._doAction(\"sendSocketMessage\",e)},e.prototype.close=function(e){this._doAction(\"closeSocket\",e)},e.prototype.onOpen=function(e){this._listen(\"Open\",e)},e.prototype.onMessage=function(e){this._listen(\"Message\",(function(t){e(t)}))},e.prototype.onError=function(e){this._listen(\"Error\",(function(t){e(t)}))},e.prototype.onClose=function(e){this._listen(\"Close\",e)},e.taskId=1,e}(),EWorkerAppEvent$1;function connectSocket(e){var t;if(isInPluginContext()||isInBizContext())return appxBridge.connectSocket(e);var n=null!==(t=e.__taskIdPrefix)&&void 0!==t?t:\"remote_debug\";delete e.__taskIdPrefix;var r=new BridgeWebSocketTask(n);return call(\"connectSocket\",r.getParam(e)),r}!function(e){e.DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",e.DebugMaskButtonClick=\"tinyRemoteDebugMaskButtonClick\"}(EWorkerAppEvent$1||(EWorkerAppEvent$1={}));var abridge={callSync:function(e,t){return alipayBridge?alipayBridge.callSync(e,t):appxBridge?appxBridge.callSync(e,t):void 0},showRemoteDebugMask:function(e){return alipayBridge?alipayBridge.call(\"showRemoteDebugMask\",e,(function(){})):appxBridge?appxBridge.call(\"showRemoteDebugMask\",e):void 0},getStartupParams:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,ensureAppxBootstrap()];case 1:return e.sent(),[2,new Promise((function(e){appxBridge.call(\"getStartupParams\",{success:function(t){e(t)}})}))]}}))}))},getStartupParamsSync:function(){return alipayBridge&&alipayBridge.callSync?alipayBridge.callSync(\"getStartupParams\"):appxBridge&&appxBridge.callSync?appxBridge.callSync(\"getStartupParams\"):{}},connectSocket:function(e){return connectSocket(e)},alert:function(e){alert(e)}};function getStartupParamsFromGlobal(){return\"undefined\"!=typeof __appxStartupParams&&__appxStartupParams.appId?__appxStartupParams:\"undefined\"!=typeof AlipayJSBridge&&AlipayJSBridge.startupParams?AlipayJSBridge.startupParams:void 0}function getStartupParamsSync(){var e=getStartupParamsFromGlobal();if(e)return e;try{return abridge.getStartupParamsSync()}catch(e){return{}}}var AgentContext=function(){this.channelConfigKey=\"0\",this.userAgent=getUserAgent(),this.isIOS=isIOS(),this.isLyra=isLyra(),this.startupParams=getStartupParamsSync(),this.channelId=this.startupParams.channelId||\"\",this.channel=this.startupParams.channel||\"\",this.startupParams.remoteCh&&(this.channelConfigKey=String(this.startupParams.remoteCh))},NetworkCollection=function(){function e(){this.records=new Map}return e.prototype.setRequest=function(e,t){this.records.set(e,__assign(__assign({},this.records.get(e)||{}),t))},e.prototype.getRequest=function(e){return this.records.get(e)},e.prototype.removeRequest=function(e){this.records.has(e)&&this.records.delete(e)},e}();function createProtocol4RequestWillBeSent(e){var t=(e.method||\"GET\").toUpperCase(),n=mapValueToString(e.headers),r=getTimestamp();return{method:\"Network.requestWillBeSent\",params:{documentURL:\"\",loaderId:\"\",requestId:e.requestId,request:{method:t,url:e.url,headers:n,postData:e.postBody,hasPostData:!!e.postBody||void 0,mixedContentType:\"none\",initialPriority:\"High\",isLinkPreload:!1,referrerPolicy:\"origin\"},wallTime:r,initiator:{type:\"script\"},timestamp:r,type:\"XHR\"}}}function createProtocol4ResponseReceived(e,t){var n=e.profile,r=e.headers,o=n&&n.totalTime,a=getTimestamp(),i=a-(o?n.totalTime-n.Waiting-n.domainLookup-n.connect-n.SSLconnection:0)/1e3;return{method:\"Network.responseReceived\",params:{requestId:e.requestId,loaderId:\"\",type:\"XHR\",timestamp:i,response:{url:t.url||\"\",status:Number(e.status),headers:mapValueToString(r),requestHeaders:t.requestHeaders,connectionReused:!1,connectionId:1e3,encodedDataLength:0,securityState:\"unknown\",statusText:\"\",protocol:\"\",mimeType:r[\"Content-Type\"]||r[\"content-type\"],timing:o?createResourceTiming(n,a-n.totalTime/1e3):void 0}}}}function createProtocol4LoadingFinished(e){return{method:\"Network.loadingFinished\",params:{requestId:e.requestId,timestamp:getTimestamp(),encodedDataLength:0}}}function createProtocol4LoadingFailed(e){return{method:\"Network.loadingFailed\",params:{canceled:!1,errorText:e.errorMsg||\"\",requestId:e.requestId,timestamp:getTimestamp(),type:\"XHR\"}}}function mapValueToString(e){if(!e||\"object\"!=typeof e)return{};var t={};return Object.keys(e).forEach((function(n){t[n]=\"\"+e[n]})),t}function getTimestamp(){return Date.now()/1e3}function createResourceTiming(e,t){var n=e.domainLookup,r=e.connect,o=e.SSLconnection,a=n+r+o;return{requestTime:t,dnsStart:n?1e-4:-1,dnsEnd:n?n:-1,connectStart:n||-1,connectEnd:a||-1,sslStart:a-o||-1,sslEnd:a||-1,sendStart:a?-1:1e-4,sendEnd:a?-1:1e-4,receiveHeadersEnd:a+e.Waiting,proxyStart:-1,proxyEnd:-1,workerStart:-1,workerReady:-1,workerFetchStart:-1,workerRespondWithSettled:-1,pushStart:0,pushEnd:0}}var MAX_QUEUE_SIZE=1e8,MessageQueue=function(){function e(e){void 0===e&&(e=[]),this._messageQueue=e,this._queueSize=0}return e.prototype.push=function(e){this._queueSize;var t=guardSingleMsgSize(e);null!=t&&(this._messageQueue.push(t),this._queueSize+=t.length)},e.prototype.sendQueuedMessages=function(){if(0!==this._messageQueue.length){var e=getInjector().getWorkerSocket();e&&(this._messageQueue.forEach((function(t){return e.send(t)})),this._messageQueue=[],this._queueSize=0)}},e}(),globalInjector,Injector=function(){function e(){this.isApplogEnabled=!1}return e.prototype.getAgentContext=function(){return this.agentContext||(this.agentContext=new AgentContext),this.agentContext},e.prototype.setWorkerSocket=function(e){this.workerSocket=e},e.prototype.getWorkerSocket=function(){return this.workerSocket},e.prototype.getNetworkRecorder=function(){return this.networkRecorder||(this.networkRecorder=new NetworkCollection),this.networkRecorder},e.prototype.getMessageQueue=function(){return null==this.messageQueue&&(this.messageQueue=new MessageQueue),this.messageQueue},e.prototype.setRuntime=function(e){this.runtime=e},e.prototype.getRuntime=function(){return this.runtime},e.prototype.setApplogEnabled=function(e){this.isApplogEnabled=e},e}(),EWorkerAppEvent,EBugmePanelId;function getInjector(){return globalInjector||(globalInjector=new Injector),globalInjector}function sendOrQueueApplogMsg$1(e){try{var t=getInjector(),n=t.getWorkerSocket(),r=t.getMessageQueue();n&&t.isApplogEnabled?n.send(circularJSONStringify$1(e)):r.push(circularJSONStringify$1(e))}catch(e){}}function getHookFn(e){if(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&\"function\"==typeof workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e])return workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]}function throttle(e,t,n,r,o){var a,i,s=null,c=0;o||(o={});var p=function(){c=!1===o.leading?0:Date.now(),s=null,i=e.apply(null,a),a=null};return function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var g=Date.now();c||!1!==o.leading||(c=g);var f=t-(g-c);return a=l,f<=0||f>t?(r(s),s=null,c=g,i=e.apply(null,a),a=null):s||!1===o.trailing||(s=n(p,f)),i}}function debounce(e,t,n,r){var o;return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];r(o),o=n((function(){e.apply(null,a)}),t)}}!function(e){e.PageResume=\"pageResume\",e.PagePause=\"pagePause\",e.DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",e.DebugMaskButtonClick=\"tinyRemoteDebugMaskButtonClick\",e.DebugConsole=\"onTinyDebugConsole\",e.DebugNetworkRequest=\"tinyAppRemoteDebug_network_request\",e.DebugNetworkResponse=\"tinyAppRemoteDebug_network_response\",e.DebugNetworkError=\"tinyAppRemoteDebug_network_error\",e.DebugStorageChanged=\"tinyAppRemoteDebug_storage\",e.MessageFromVConsole=\"onMessageFromVConsole\"}(EWorkerAppEvent||(EWorkerAppEvent={})),function(e){e.Data=\"data\",e.Storage=\"storage\",e.AppLog=\"applog\"}(EBugmePanelId||(EBugmePanelId={}));var throttledEmitDataChangedEvent=throttle((function(){var e=getInjector().getWorkerSocket();e&&e.send({method:\"Tiny.Data.dataChanged\",ext:{origin:EBugmePanelId.Data}})}),300,setTimeout,clearTimeout,{leading:!1}),EUnserializableValue;function getFn(e){if(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]&&\"function\"==typeof workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e])return workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]}function onErrorHook(e){var t=new Error(e.formatted.message);t.stack=e.formatted.stack,setTimeout(console.error.bind(console,t))}function registerLegacyAppxHook(){null==workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__={});var e={onSetData:getFn(\"onSetData\"),onSetDataCallback:getFn(\"onSetDataCallback\"),onApiSyncCall:getFn(\"onApiSyncCall\"),onApiSyncCallback:getFn(\"onApiSyncCallback\"),onApiCall:getFn(\"onApiCall\"),onApiCallback:getFn(\"onApiCallback\"),onError:getFn(\"onError\")};workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onSetData=function(t){try{if(e.onSetData)try{e.onSetData.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}throttledEmitDataChangedEvent(),sendOrQueueApplogMsg({method:\"MiniAppLog.onSetData\",params:minimizeSetDataInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onSetDataCallback=function(t){try{if(e.onSetDataCallback)try{e.onSetDataCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onSetDataCallback\",params:t,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiSyncCall=function(t){try{if(e.onApiSyncCall)try{e.onApiSyncCall.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiSyncCall\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiSyncCallback=function(t){try{if(e.onApiSyncCallback)try{e.onApiSyncCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiSyncCallback\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiCall=function(t){try{if(e.onApiCall)try{e.onApiCall.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiCall\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiCallback=function(t){try{if(e.onApiCallback)try{e.onApiCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiCallback\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onError=function(t){try{if(e.onError)try{e.onError.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){}onErrorHook(t)}catch(e){}},registerV1PageLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV2PageLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV1AppLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV2AppLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}function getLifecycleName(e){var t;switch(e){case 0:t=\"onPageLoad\";break;case 2:t=\"onPageReady\";break;case 1:t=\"onPageShow\";break;case 3:t=\"onPageHide\";break;case 4:t=\"onPageUnload\"}return t}function registerV1PageLifecycleHooks(e,t){for(var n=[\"onPageLoad\",\"onPageShow\",\"onPageHide\",\"onPageReady\",\"onPageUnload\"],r=0,o=n;r<o.length;r++){t[c=o[r]]=getFn(c)}for(var a=function(n){e[n]=function(e){try{if(t[n])try{t[n].call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}var r=e.context?e:__assign({route:e.page.route},e);sendOrQueueApplogMsg({method:\"MiniAppLog.\".concat(n),params:minimizePageLifecycleInfo1(r),ext:{origin:EBugmePanelId.AppLog}}),\"onPageShow\"===n&&throttledEmitDataChangedEvent()}catch(e){}}},i=0,s=n;i<s.length;i++){var c;a(c=s[i])}}function registerV2PageLifecycleHooks(e,t){t.onPageLifecycle=getFn(\"onPageLifecycle\"),e.onPageLifecycle=function(e){try{if(t.onPageLifecycle)try{t.onPageLifecycle.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}var n=getLifecycleName(e.args[0]);if(!n)return;sendOrQueueApplogMsg({method:\"MiniAppLog.\".concat(n),params:e,ext:{origin:EBugmePanelId.AppLog}}),\"onPageShow\"===n&&throttledEmitDataChangedEvent()}catch(e){}}}function registerV1AppLifecycleHooks(e,t){for(var n=[\"onAppLaunch\",\"onAppShow\",\"onAppHide\",\"onAppError\",\"onAppUnhandledRejection\"],r=0,o=n;r<o.length;r++){t[c=o[r]]=getFn(c)}for(var a=function(n){e[n]=function(e){try{if(t[n])try{t[n].call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.\".concat(n),params:e,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}}},i=0,s=n;i<s.length;i++){var c;a(c=s[i])}}function registerV2AppLifecycleHooks(e,t){t.onAppLifecycle=getFn(\"onAppLifecycle\"),e.onAppLifecycle=function(e){try{if(t.onAppLifecycle)try{t.onAppLifecycle.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.\".concat(e.args[0]),params:e,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}}}function sendOrQueueApplogMsg(e){try{var t=getInjector(),n=t.getWorkerSocket(),r=t.getMessageQueue();n&&t.isApplogEnabled?n.send(circularJSONStringify$1(e)):r.push(circularJSONStringify$1(e))}catch(e){}}function minimizeApiHookInfo(e){if(e.context){var t=e.context;return __assign(__assign({},e),{context:pick(t,[\"apiName\",\"extraInfo\",\"isMiniExtension\",\"option\",\"startTime\",\"taskId\",\"__reqId\"])})}return e}function minimizeSetDataInfo(e){return e.context?e:{pagePath:e.isPage?e.page.route:e.component.$page.route,isPage:e.isPage,option:e.options,componentIs:e.component?e.component.is:void 0}}function minimizePageLifecycleInfo1(e){return __assign(__assign({},e),{page:pick(e.page,[\"$id\",\"$page\",\"$viewId\",\"data\"])})}function pick(e,t){var n={};return t.forEach((function(t){n[t]=e[t]})),n}function registerAppxHook(){null==workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__={}),registerLegacyAppxHook();var e=getHookFn(\"setup\");workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.setup=function(t,n){if(e&&\"function\"==typeof e)try{e(t,n)}catch(e){}getInjector().setRuntime(t),setup(t,n,(function(e){if(\"string\"==typeof e.method&&e.method.includes(\"MiniAppLog\"))sendOrQueueApplogMsg$1(e);else{var t=getInjector().getWorkerSocket();t&&t.send(e)}}))}}function getObjectOwnPropertyDescriptors(e){return Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors(e):Object.getOwnPropertyNames(e).reduce((function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t}),Object.create(null))}function isError(e){return\"[object Error]\"===Object.prototype.toString.call(e)||e instanceof Error}function isDate(e){return\"[object Date]\"===Object.prototype.toString.call(e)||e instanceof Date}function isRegExp(e){return\"[object RegExp]\"===Object.prototype.toString.call(e)||e instanceof RegExp}function isPromise(e){return\"[object Promise]\"===Object.prototype.toString.call(e)||e instanceof Promise}function isArrayBuffer(e){return\"[object ArrayBuffer]\"===Object.prototype.toString.call(e)}function isArrayBufferInstance(e){return e instanceof ArrayBuffer}function isNegativeZero(e){return 0===e&&1/e==-1/0}!function(e){e[1/0]=\"Infinity\",e[-1/0]=\"-Infinity\",e.NaN=\"NaN\",e[\"-0\"]=\"-0\"}(EUnserializableValue||(EUnserializableValue={}));var ObjectMapper=function(){function e(e){this.objectStore=e}return e.prototype.mapFrom=function(e,t){var n=this;return Array.from(e).map((function(e){return n.mapFromOne(e,t)}))},e.prototype.mapFromOne=function(e,t){switch(typeof e){case\"string\":return this.mapString(e);case\"number\":return this.mapNumber(e);case\"object\":return Array.isArray(e)?this.mapArray(e,\"table\"===t):null===e?this.mapNull():isArrayBufferInstance(e)?this.mapArrayBuffer(e,\"table\"===t):this.mapObject(e,\"table\"===t);case\"function\":return this.mapFunction(e);case\"undefined\":return this.mapUndef();case\"boolean\":return this.mapBoolean(e);default:return{type:typeof e,value:e}}},e.prototype.mapArrayBuffer=function(e,t){var n=this,r={byteLength:e.byteLength},o=Object.keys(r),a=e.byteLength,i=this.objectStore.save(e),s=e.constructor?e.constructor.name:\"Object\",c=o.length>5&&!t,p=\"arraybuffer\",l=\"\".concat(s,\"(\").concat(a,\")\"),u={type:\"object\",className:s,description:l,objectId:i,preview:{type:\"object\",description:l,overflow:c,properties:(c?o.slice(0,5):o).map((function(e){return n.getPropertyPreview4AnyValue(e,r[e],t)})).filter(Boolean)}};return u.subtype=p,u.preview&&(u.preview.subtype=p),l&&(u.description=l,u.preview&&(u.preview.description=l)),u},e.prototype.mapString=function(e){return{type:\"string\",value:e}},e.prototype.mapNumber=function(e){var t,n;isNaN(e)?n=EUnserializableValue.NaN:e===1/0?n=EUnserializableValue.Infinity:e===-1/0?n=EUnserializableValue[-1/0]:isNegativeZero(e)?n=EUnserializableValue[\"-0\"]:t=e;var r={type:\"number\",value:t,description:String(e)};return n&&(r.unserializableValue=n),r},e.prototype.mapBoolean=function(e){return{type:\"boolean\",value:e}},e.prototype.mapFunction=function(e){var t=this.objectStore.save(e);return{type:\"function\",className:\"Function\",description:e.toString(),objectId:t}},e.prototype.mapUndef=function(){return{type:\"undefined\"}},e.prototype.mapNull=function(){return{type:\"object\",subtype:\"null\",value:null}},e.prototype.mapObject=function(e,t){var n,r,o=this,a=getObjectOwnPropertyDescriptors(e),i=Object.keys(a),s=this.objectStore.save(e),c=e.constructor?e.constructor.name:\"Object\",p=i.length>5&&!t,l={type:\"object\",className:c,description:c,objectId:s,preview:{type:\"object\",description:c,overflow:p,properties:(p?i.slice(0,5):i).map((function(e){return o.getPropertyPreview4ObjectProperty(e,a[e],t)})).filter(Boolean)}};return isError(e)?(n=\"error\",-1===(r=e.stack||\"\").indexOf(e.name)&&(r=e.toString()+\"\\n\"+r)):isDate(e)?(n=\"date\",r=e.toString()):isRegExp(e)?(n=\"regexp\",r=e.toString()):isPromise(e)&&(n=\"promise\",r=\"Promise\"),n&&(l.subtype=n,l.preview&&(l.preview.subtype=n)),r&&(l.description=r,l.preview&&(l.preview.description=r)),l},e.prototype.mapArray=function(e,t){var n=this,r=e.length>100&&!t,o=\"Array(\".concat(e.length,\")\");return{type:\"object\",subtype:\"array\",className:\"Array\",description:o,objectId:this.objectStore.save(e),preview:{type:\"object\",subtype:\"array\",description:o,overflow:r,properties:(r?e.slice(0,100):e).map((function(e,r){return n.getPropertyPreview4ArrayProperty(r,e,t)}))}}},e.prototype.getPropertyPreview4ArrayProperty=function(e,t,n){return this.getPropertyPreview4AnyValue(String(e),t,n)},e.prototype.getPropertyPreview4ObjectProperty=function(e,t,n){return t.get?{name:e,type:\"accessor\"}:t.set?void 0:this.getPropertyPreview4AnyValue(e,t.value,n)},e.prototype.getPropertyPreview4AnyValue=function(e,t,n){switch(void 0===n&&(n=!1),typeof t){case\"object\":if(Array.isArray(t)){var r={name:e,type:\"object\",subtype:\"array\",value:\"Array(\".concat(t.length,\")\")};return n&&(r.valuePreview=this.getValuePreview4TableArray(t)),r}if(null===t)return{name:e,type:\"object\",subtype:\"null\",value:\"null\"};r={name:e,type:\"object\",value:t.constructor?t.constructor.name:\"Object\"};return n&&(r.valuePreview=this.getValuePreview4TableObject(t)),r;case\"function\":return{type:\"function\",value:\"\",name:e};default:return{name:e,type:typeof t,value:String(t)}}},e.prototype.getValuePreview4TableArray=function(e){var t=this;return{type:\"object\",subtype:\"array\",description:\"Array(\".concat(e.length,\")\"),overflow:!1,properties:e.map((function(e,n){return t.getPropertyPreview4AnyValue(String(n),e)}))}},e.prototype.getValuePreview4TableObject=function(e){var t=this;return{type:\"object\",description:\"Object\",overflow:!1,properties:Object.keys(e).map((function(n){return t.getPropertyPreview4AnyValue(n,e[n])}))}},e}(),ExtractStackLine=function(){function e(){this.e1=/\\s*at\\s(\\S+)\\s(\\S+)\\:(\\d+)\\:(\\d+)\\)/,this.e2=/\\s*at\\s(\\S+)\\:(\\d+)\\:(\\d+)/}return e.prototype.testType1=function(e){return this.e1.test(e)},e.prototype.testType2=function(e){return this.e2.test(e)},e.prototype.extractType1=function(e){var t=e.match(this.e1);return null==t?null:{functionName:t[1],url:t[2].slice(1),lineNumber:Number(t[3]),columnNumber:Number(t[4])}},e.prototype.extractType2=function(e){var t=e.match(this.e2);return null==t?null:{functionName:\"\",url:t[1].slice(1),lineNumber:Number(t[2]),columnNumber:Number(t[3])}},e}(),CallFramesMapper=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.mapFrom=function(e){var t=this;return e.split(\"\\n\").slice(2).map((function(e,n){return t.testType1(e)?t.extractType1(e):t.testType2(e)?t.extractType2(e):void 0})).filter((function(e){return null!=e}))},t}(ExtractStackLine),executionContextId=1,injectedScriptId=1,ObjectStore=function(){function e(){this.id=0,this.id2Object=new Map,this.object2Id=new Map}return e.prototype.save=function(e){if(this.object2Id.has(e))return this.object2Id.get(e);var t=this.getNextObjectId();return this.id2Object.set(t,e),this.object2Id.set(e,t),t},e.prototype.query=function(e){return this.id2Object.get(e)},e.prototype.clear=function(e){var t=this.id2Object.get(e);t&&(this.id2Object.delete(e),this.object2Id.delete(t))},e.prototype.clearAll=function(){this.id2Object.clear(),this.object2Id.clear()},e.prototype.getNextObjectId=function(){return this.id++,'{\"injectedScriptId\":'.concat(injectedScriptId,',\"id\":').concat(this.id,\"}\")},e}(),GetPropertiesHandler=function(){function e(e,t){this.objectStore=e,this.objectMapper=t}return e.prototype.handle=function(e){var t=this.objectStore.query(e.objectId);if(t){var n=Boolean(e.ownProperties),r={result:this.mapObject(t,n,Boolean(e.accessorPropertiesOnly))};return n&&this.hasInternalProperties(t)&&(r.internalProperties=this.getInternalProperties(t)),r}return{result:[]}},e.prototype.getInternalProperties=function(e){return isArrayBufferInstance(e)?[this.mapInternalProperties(\"[[ArrayBufferByteLength]]\",e.byteLength)]:[]},e.prototype.hasInternalProperties=function(e){return isArrayBuffer(e)},e.prototype.shouldSkipProto=function(e){return isArrayBuffer(e)},e.prototype.mapObject=function(e,t,n){var r=this;if(t){var o=getObjectOwnPropertyDescriptors(e),a=Object.keys(o).filter((function(e){return!(n&&!o[e].get&&!o[e].set)})).map((function(e){return r.mapResultOne(e,o[e],!0)}));return this.shouldSkipProto(e)||e.__proto__&&a.push(this.mapResultOne(\"__proto__\",{configurable:!0,enumerable:!1,writable:!0,value:e.__proto__},!0)),a}for(var i=[],s={},c=e,p=!1,l=!0,u=function(){var e=getObjectOwnPropertyDescriptors(c);if(Object.keys(e).forEach((function(t){if(!s[t]){s[t]=!0;var o=e[t];(!n||o.get||o.set)&&i.push(r.mapResultOne(t,o,l))}})),!p){var t=Object.getOwnPropertyDescriptor(c,\"__proto__\");t&&(p=!0,i.push(g.mapResultOne(\"__proto__\",t,l)))}c=c.__proto__,l=!1},g=this;c;)u();return i},e.prototype.mapInternalProperties=function(e,t){return{name:String(e),value:this.objectMapper.mapFromOne(t)}},e.prototype.mapResultOne=function(e,t,n){var r={writable:t.writable,configurable:Boolean(t.configurable),enumerable:Boolean(t.enumerable),isOwn:n,name:String(e)};return\"value\"in t&&(r.value=this.objectMapper.mapFromOne(t.value)),t.get&&(r.get=this.objectMapper.mapFromOne(t.get)),t.set&&(r.set=this.objectMapper.mapFromOne(t.set)),r},e}(),RemoteObjectParser=function(){function e(){this.objectStore=new ObjectStore,this.objectMapper=new ObjectMapper(this.objectStore),this.callFramesMapper=new CallFramesMapper,this.getPropertiesHandler=new GetPropertiesHandler(this.objectStore,this.objectMapper)}return e.prototype.parseObject=function(e,t){return this.objectMapper.mapFromOne(e,t)},e.prototype.getProperties=function(e){return this.getPropertiesHandler.handle(e)},e.prototype.getObjectById=function(e){return this.objectStore.query(e)},e.prototype.consoleAPICalled=function(e,t,n){var r=e;return\"warn\"===e&&(r=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:r,args:this.objectMapper.mapFrom(n,e),executionContextId:executionContextId,timestamp:Date.now(),stackTrace:{callFrames:this.callFramesMapper.mapFrom(t)}}}},e}(),globalConsoleOverrides;function initConsoleOverrides(){\"boolean\"==typeof __BUGME_CONSOLE_ENABLE__&&__BUGME_CONSOLE_ENABLE__&&(globalConsoleOverrides=new ConsoleOverrides).overrideConsole()}function getConsoleOverrides(){return globalConsoleOverrides}var ConsoleOverrides=function(){function e(){this.executionContextId=1,this.messageBeforeAgentInit=[],this.webSocketCheckingLoop=!1,this.parser=new RemoteObjectParser,this.createExecutionContext()}return e.prototype.createExecutionContext=function(){this.sendMessage({method:\"Runtime.executionContextsCleared\",params:{}}),this.sendMessage({method:\"Runtime.executionContextCreated\",params:{context:{id:this.executionContextId,origin:\"app://\",name:\"app\"}}})},e.prototype.overrideConsole=function(){var e=this;Object.defineProperties(console,[\"debug\",\"log\",\"info\",\"warn\",\"error\",\"table\"].reduce((function(t,n){var r=console[n].bind(console);return t[n]={value:function(){var t=arguments;if(t.length){try{if(\"string\"==typeof t[0]&&/^(\\[framework\\]|dispatchEvent|onMessage push|unsupported protocol)/.test(t[0]))return r.apply(null,t);var o=new Error;o.stack&&e.sendMessage(e.parser.consoleAPICalled(n,o.stack,t))}catch(e){}return r.apply(null,t)}}},t}),{}))},e.prototype.sendMessage=function(e){var t=getInjector().getWorkerSocket();t?(this.flushPendingMessages(),t.sendAfterReceivingMessage(e)):(this.messageBeforeAgentInit.push(e),this.checkWebSocketReady())},e.prototype.flushPendingMessages=function(){if(this.messageBeforeAgentInit.length){var e=getInjector().getWorkerSocket();e&&(this.messageBeforeAgentInit.forEach((function(t){e.sendAfterReceivingMessage(t)})),this.messageBeforeAgentInit=[])}},e.prototype.checkWebSocketReady=function(){var e=this;if(!this.webSocketCheckingLoop){this.webSocketCheckingLoop=!0;var t=setInterval((function(){getInjector().getWorkerSocket()&&(clearInterval(t),e.flushPendingMessages())}),1e3)}},e}(),requirePluginName=\"requirePlugin\";function hookRequirePlugin(){var e=Object.getOwnPropertyDescriptor(workerGlobal,requirePluginName);if(!e||e.configurable){var t;e&&(t=workerGlobal.requirePlugin);var n,r={get:function(e,t,n){return\"async\"===t?function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e[t];if(\"function\"==typeof o){var a=Date.now();return sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiCall\",params:{aTime:a,context:{apiName:requirePluginName+\".async\",option:{arguments:n}}},ext:{origin:EBugmePanelId.AppLog}}),o.apply(void 0,n).then((function(e){return sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiCallback\",params:{args:e?void 0:[{error:1,errorMessage:\"未找到对应插件\"}],bTime:Date.now()===a?a+.01:Date.now(),context:{apiName:requirePluginName+\".async\"}},ext:{origin:EBugmePanelId.AppLog}}),e})).catch((function(e){throw sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiCallback\",params:{args:[{error:2,errorMessage:e.message}],bTime:Date.now()===a?a+.01:Date.now(),context:{apiName:requirePluginName+\".async\"}},ext:{origin:EBugmePanelId.AppLog}}),e}))}return o}:e[t]},apply:function(e,t,n){var r=Date.now();sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCall\",params:{aTime:r,context:{apiName:requirePluginName,option:{arguments:n}}},ext:{origin:EBugmePanelId.AppLog}});try{var o=e.apply(void 0,n);return sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCallback\",params:{args:o?void 0:[{error:1,errorMessage:\"未找到对应插件\"}],bTime:Date.now()===r?r+.01:Date.now(),context:{apiName:requirePluginName}},ext:{origin:EBugmePanelId.AppLog}}),o}catch(e){throw sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCallback\",params:{args:[{error:2,errorMessage:e.message}],bTime:Date.now()===r?r+.01:Date.now(),context:{apiName:requirePluginName}},ext:{origin:EBugmePanelId.AppLog}}),e}}};try{t&&(n=new Proxy(t,r))}catch(e){}Object.defineProperty(workerGlobal,requirePluginName,{get:function(){return n||t},set:function(e){n=(t=e)?new Proxy(t,r):void 0},enumerable:!0,configurable:!0})}}var channelDomainConfig={0:{openchannel:\"openchannel.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},1:{openchannel:\"miniprogram.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},2:{openchannel:\"openchannel-pre.alipay.com\",hpmweb:\"hpmweb-pre.alipay.com\"}},EventEmitter=function(){function e(){this._listeners=new Map}return e.prototype.on=function(e,t){var n=this;return this._listeners.has(e)||this._listeners.set(e,[]),this._listeners.get(e).push(t),function(){return n.off(e,t)}},e.prototype.off=function(e,t){if(this._listeners.has(e)){var n=this._listeners.get(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}},e.prototype.once=function(e,t){var n=this,r=this.on(e,(function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];r(),t.apply(n,e)}));return r},e.prototype.emit=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this._listeners.has(e)&&__spreadArray([],this._listeners.get(e),!0).forEach((function(e){return e.apply(t,n)}))},e.prototype.dispose=function(){this._listeners.clear()},e}(),WebSocketBaseImpl=function(){function e(e,t){this.url=\"\",this.taskIdPrefix=\"\",this.header={},this.opened=!1,this.maxBodyLength=10485760,this.eventEmitter=new EventEmitter,e&&(this.url=e),(null==t?void 0:t.header)&&(this.header=t.header),(null==t?void 0:t.taskIdPrefix)&&(this.taskIdPrefix=t.taskIdPrefix),this.onSocketError=this.onSocketError.bind(this),this.onSocketClose=this.onSocketClose.bind(this),this.onSocketMessage=this.onSocketMessage.bind(this),this.onSocketOpen=this.onSocketOpen.bind(this)}return Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){return this.opened},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(e){this.url=e},e.prototype.onSocketOpen=function(){this.eventEmitter.emit(\"open\")},e.prototype.onSocketClose=function(){this.eventEmitter.emit(\"close\")},e.prototype.onSocketError=function(e){this.eventEmitter.emit(\"error\",e)},e.prototype.onSocketMessage=function(e){this.eventEmitter.emit(\"message\",e)},e.prototype.on=function(e,t){this.eventEmitter.on(e,t)},e}(),internalWebSocket;\"undefined\"!=typeof WebSocket&&WebSocket.OPEN&&(internalWebSocket=WebSocket);var WebSocketBrowserImpl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t}return __extends(t,e),t.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"WebSocket url required\");this.socket=new internalWebSocket(this.url),this.socket.onopen=this.onSocketOpen,this.socket.onmessage=function(t){\"string\"==typeof t.data?e.onSocketMessage(t.data):console.warn(\"[DEBUG] invalid message\",t.data)},this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError},t.prototype.close=function(){this.opened&&this.socket.close()},t.prototype.send=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>2e7||(this.opened?this.socket.send(t):this.messageBeforeSocketOpen.push(t))},t.prototype.onSocketOpen=function(){var t=this;e.prototype.onSocketOpen.call(this),this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(e){t.send(e)})),this.messageBeforeSocketOpen=[])},t.prototype.onSocketClose=function(){this.opened=!1,console.log(\"[DEBUG] connection closed\"),e.prototype.onSocketClose.call(this)},t.prototype.onSocketError=function(t){e.prototype.onSocketError.call(this,t),console.error(\"[DEBUG] connection onerror\",t)},t}(WebSocketBaseImpl),WebSocketNativeImpl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t.useFromRemoteDebugFlag=!0,t._openInvoked=!1,t}return __extends(t,e),t.prototype.open=function(){var e=this;this._openInvoked||(this._openInvoked=!0,this.socketTask=abridge.connectSocket({__taskIdPrefix:this.taskIdPrefix,fromRemoteDebug:this.useFromRemoteDebugFlag,url:this.url,header:this.header,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(){e.opened=!1,e.onSocketClose()})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)})))},t.prototype.send=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>this.maxBodyLength||(this.opened?this.socketTask.send({fromRemoteDebug:this.useFromRemoteDebugFlag,data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t))},t.prototype.close=function(){this.opened&&this.socketTask.close({fromRemoteDebug:this.useFromRemoteDebugFlag})},t.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.send(t)})),this.messageBeforeSocketOpen=[]),this.onSocketOpen())},t}(WebSocketBaseImpl),isWebPlatform=!1;if(\"undefined\"!=typeof WebSocket&&WebSocket.OPEN){isWebPlatform=!0;try{delete workerGlobal.WebSocket}catch(e){}}var SocketTaskImpl=isWebPlatform?WebSocketBrowserImpl:WebSocketNativeImpl;function enable$3(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}function getResponseBody(e){var t=e.params.requestId,n=getInjector(),r=n.getNetworkRecorder(),o=r.getRequest(t);o?n.getWorkerSocket().send({id:e.id,result:{base64Encoded:o.isBase64Body,body:o.responseBody}}):n.getWorkerSocket().send({id:e.id,result:{}}),r.removeRequest(t)}var network=Object.freeze({__proto__:null,enable:enable$3,getResponseBody:getResponseBody});function enable$2(e){getInjector().getWorkerSocket().send({id:e.id,result:{}});var t=getConsoleOverrides();t&&t.createExecutionContext()}function getProperties(e){var t=getConsoleOverrides();t&&getInjector().getWorkerSocket().send({id:e.id,result:t.parser.getProperties(e.params)})}function compileScript(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}function evaluate(payload){var consoleOverrides=getConsoleOverrides();if(consoleOverrides){var parser=consoleOverrides.parser;\"function\"!=typeof eval&&(workerGlobal.eval=evalFunc);try{var returnValue=function(){return eval(payload.params.expression)}();getInjector().getWorkerSocket().send({id:payload.id,result:{result:parser.parseObject(returnValue)}})}catch(e){e.stack=\"\".concat(e.name,\": \").concat(e.message),getInjector().getWorkerSocket().send({id:payload.id,result:{exceptionDetails:{columnNumber:20,exception:parser.parseObject(e),exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:parser.parseObject(e)}})}}}var runtime=Object.freeze({__proto__:null,compileScript:compileScript,enable:enable$2,evaluate:evaluate,getProperties:getProperties}),stringify$1={exports:{}};!function(e,t){function n(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?\"[Circular ~]\":\"[Circular ~.\"+r.slice(0,n.indexOf(t)).join(\".\")+\"]\"}),function(o,a){if(n.length>0){var i=n.indexOf(this);~i?n.splice(i+1):n.push(this),~i?r.splice(i,1/0,o):r.push(o),~n.indexOf(a)&&(a=t.call(this,o,a))}else n.push(a);return null==e?a:e.call(this,o,a)}}(e.exports=function(e,t,r,o){return JSON.stringify(e,n(t,o),r)}).getSerialize=n}(stringify$1,stringify$1.exports);var stringifyExports=stringify$1.exports,stringify=getDefaultExportFromCjs(stringifyExports),sharedGetCurrentPages;function callGetCurrentPages(){return sharedGetCurrentPages?sharedGetCurrentPages():workerGlobal.getCurrentPages?(sharedGetCurrentPages=workerGlobal.getCurrentPages)():workerGlobal.AFAppX&&AFAppX.getCurrentPages?(sharedGetCurrentPages=AFAppX.getCurrentPages)():[]}function getPagesData(e){var t;var n=getInjector().getRuntime();t=null==n?callGetCurrentPages().filter(Boolean).map((function(e){return{viewId:e.$viewId,data:stringify(e.data),route:e.route}})):n.getNav().currentStack.map((function(e){var t=e.getPageLogicInstance().publicInstance;return{viewId:t.$viewId,data:stringify(t.data),route:t.route}})),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{data:t}})}function setPageData(e){var t,n=e.params||{},r=n.viewId,o=n.data;var a=getInjector().getRuntime();t=null==a?callGetCurrentPages().filter((function(e){return e&&\"\".concat(e.$viewId)===r}))[0]:a.getNav().currentStack.map((function(e){return e.getPageLogicInstance().publicInstance})).filter((function(e){return e&&\"\".concat(e.$viewId)===r}))[0],t&&o&&t.setData(o)}function setComponentData(e){var t=e.params||{},n=t.targetId,r=t.data;if(-1!==n){var o=getInjector().getRuntime().getNav().getTopInstance().getComponentLogicInstance(n,!0);o&&o.publicInstance.setData(r)}}var data=Object.freeze({__proto__:null,getPagesData:getPagesData,setComponentData:setComponentData,setPageData:setPageData});function getStorageItem(e){return new Promise((function(t){AFAppX.bridge.getStorage({key:e,success:function(n){var r=n.data;t({key:e,value:r,type:typeof r})},fail:function(){t()}})}))}function getStorageInfo(e){AFAppX.bridge.getStorageInfo({success:function(t){Promise.all(t.keys.map((function(e){return getStorageItem(e)}))).then((function(n){var r=n.filter((function(e){return e}));getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{currentSize:t.currentSize,limitSize:t.limitSize,data:r}})}))}})}function clearStorage(e){AFAppX.bridge.clearStorage()}function removeStorage(e){var t=e.params;t&&t.key&&AFAppX.bridge.removeStorage({key:t.key})}function setStorage(e){var t=e.params;t&&t.key&&AFAppX.bridge.setStorage({key:t.key,data:t.value})}var storage=Object.freeze({__proto__:null,clearStorage:clearStorage,getStorageInfo:getStorageInfo,removeStorage:removeStorage,setStorage:setStorage});function enable$1(){var e=getInjector();e.setApplogEnabled(!0),e.getMessageQueue().sendQueuedMessages()}var applog=Object.freeze({__proto__:null,enable:enable$1});function getLoadManager(){var e=getInjector().getRuntime();if(\"object\"==typeof e){var t=\"function\"==typeof e.getControllableLoadManager&&e.getControllableLoadManager();if(t.addLoadHook)return t}}function enable(e){getLoadManager()?getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{}}):getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,error:\"not supported\"})}function startInterception(e){var t;null===(t=getLoadManager())||void 0===t||t.start(),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{}})}function stopInterception(e){var t;null===(t=getLoadManager())||void 0===t||t.stop(),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{}})}function getAllSubPackages(e){var t;getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{roots:(null===(t=getLoadManager())||void 0===t?void 0:t.getAllSubPackages())||[]}})}function continueLoadSubPackage(e){var t;null===(t=getLoadManager())||void 0===t||t.continueLoadSubPackage(e.params.root),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{}})}function failLoadSubPackage(e){var t;null===(t=getLoadManager())||void 0===t||t.simulationSubPackageLoadFailed(e.params.root),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{}})}var loadManager=Object.freeze({__proto__:null,continueLoadSubPackage:continueLoadSubPackage,enable:enable,failLoadSubPackage:failLoadSubPackage,getAllSubPackages:getAllSubPackages,startInterception:startInterception,stopInterception:stopInterception});function ping(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}function getSystemInfo(e){AFAppX.bridge.getSystemInfo({success:function(t){var n={userAgent:getInjector().getAgentContext().userAgent,sdkVersion:AFAppX.bridge.SDKVersion,alipayVersion:t.version,model:t.model,system:t.system};getInjector().getWorkerSocket().send({id:e.id,result:n})}})}function getStartupParams(e){var t=getStartupParamsSync();getInjector().getWorkerSocket().send({id:e.id,result:t})}var index=Object.freeze({__proto__:null,Applog:applog,Data:data,LoadManager:loadManager,Storage:storage,getStartupParams:getStartupParams,getSystemInfo:getSystemInfo,ping:ping});function getResourceTree(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}var page=Object.freeze({__proto__:null,getResourceTree:getResourceTree}),protoHandler=Object.freeze({__proto__:null,Network:network,Page:page,Runtime:runtime,Tiny:index}),WorkerSocket=function(){function e(e,t){var n=this;this.isMessageReceived=!1,this.messageBeforeReceived=[],this.socket=t||new SocketTaskImpl(e,{taskIdPrefix:\"remote_debug_tbwr\"}),this.socket.on(\"open\",(function(){n.socket.send({method:\"MiniAppLog.enable\",params:{},ext:{origin:EBugmePanelId.AppLog}}),throttledEmitDataChangedEvent()})),this.socket.on(\"message\",(function(e){var t;n.isMessageReceived||(n.isMessageReceived=!0,n.messageBeforeReceived.forEach((function(e){n.socket.send(e)})),n.messageBeforeReceived=[]);try{t=JSON.parse(e)}catch(t){return void(\"CLIENT:LEAVE\"===e&&n.close())}var r=getProtocolHandler(t.method);r?r(t):n.socket.send({id:t.id,error:{code:-32e3,message:\"unsupported\"}})}))}return e.prototype.sendAfterReceivingMessage=function(e){this.isMessageReceived?this.socket.send(e):this.messageBeforeReceived.push(\"string\"==typeof e?e:JSON.stringify(e))},e.prototype.open=function(){this.socket.open()},e.prototype.close=function(){this.socket.close()},e.prototype.send=function(e){this.socket.send(e)},e}();function getProtocolHandler(e){if(e){for(var t=e.split(\".\"),n=protoHandler,r=0,o=t;r<o.length;r++){if(!(n=n[o[r]]))break}return n}}var ignoreDomain=/\\/(tyro\\/agent|bugme\\/channel\\/paused|bugme\\/channel\\/resume)$/,DebugEventListener=function(){function e(){this.isIOS=getInjector().getAgentContext().isIOS,this.isLyra=getInjector().getAgentContext().isLyra}return e.prototype.setup=function(){this.isLyra||this.isIOS?this.listenDebugEvent4IOS():this.listenDebugEvent()},e.prototype.onNetworkRequest=function(e){if(!ignoreDomain.test(e.url)){var t=createProtocol4RequestWillBeSent(e),n=getInjector();n.getWorkerSocket().send(t),n.getNetworkRecorder().setRequest(e.requestId,{method:t.params.request.method,requestHeaders:t.params.request.headers,url:e.url})}},e.prototype.onNetworkResponse=function(e){if(!ignoreDomain.test(e.url)){var t=getInjector(),n=t.getNetworkRecorder().getRequest(e.requestId)||{};t.getWorkerSocket().send(createProtocol4ResponseReceived(e,n)),t.getWorkerSocket().send(createProtocol4LoadingFinished(e)),t.getNetworkRecorder().setRequest(e.requestId,{responseBody:e.body,isBase64Body:!1})}},e.prototype.onNetworkError=function(e){ignoreDomain.test(e.url)||getInjector().getWorkerSocket().send(createProtocol4LoadingFailed(e))},e.prototype.onStorageChanged=function(e){var t={};e.data&&Object.keys(e.data).forEach((function(n){try{t[n]=JSON.parse(e.data[n]).APDataStorage}catch(e){}})),getInjector().getWorkerSocket().send({method:\"Tiny.Storage.storageChanged\",params:{data:t},ext:{origin:EBugmePanelId.Storage}})},e.prototype.onSubpackageLoaded=function(e){\"success\"===e.status?getInjector().getWorkerSocket().send({method:\"Tiny.LoadManager.subPackageLoaded\",params:{root:e.rootName}}):\"loading\"===e.status?getInjector().getWorkerSocket().send({method:\"Tiny.LoadManager.subPackageRequested\",params:{root:e.rootName}}):\"fail\"===e.status&&getInjector().getWorkerSocket().send({method:\"Tiny.LoadManager.subPackageFailed\",params:{root:e.rootName}})},e.prototype.listenDebugEvent4IOS=function(){var e,t=this,n=AFAppX.bridge;n.on(EWorkerAppEvent.DebugNetworkRequest,(function(e){t.onNetworkRequest(e.data)})),n.on(EWorkerAppEvent.DebugNetworkResponse,(function(e){t.onNetworkResponse(e.data)})),n.on(EWorkerAppEvent.DebugNetworkError,(function(e){t.onNetworkError(e.data)})),n.on(EWorkerAppEvent.DebugStorageChanged,(function(e){t.onStorageChanged(e.data)})),null===(e=getLoadManager())||void 0===e||e.addLoadHook((function(e){t.onSubpackageLoaded(e)}))},e.prototype.listenDebugEvent=function(){var e,t=this;AFAppX.bridge.on(EWorkerAppEvent.DebugConsole,(function(e){var n,r=e.data,o=r.type,a=r.content;try{n=JSON.parse(a)}catch(e){return}switch(o){case EWorkerAppEvent.DebugNetworkRequest:t.onNetworkRequest(n);break;case EWorkerAppEvent.DebugNetworkResponse:t.onNetworkResponse(n);break;case EWorkerAppEvent.DebugNetworkError:t.onNetworkError(n);break;case EWorkerAppEvent.DebugStorageChanged:t.onStorageChanged(n)}})),null===(e=getLoadManager())||void 0===e||e.addLoadHook((function(e){t.onSubpackageLoaded(e)}))},e}(),WorkerListener=function(){function e(){this.inited=!1}return e.prototype.setup=function(){if(this.inited)return!1;var e=AFAppX.bridge;if(/^1\\./.test(e.SDKVersion)){var t=debounce(this.onPageResumeOrPause.bind(this),300,setTimeout,clearTimeout);e.on(EWorkerAppEvent.PageResume,t),e.on(EWorkerAppEvent.PagePause,t)}e.on(EWorkerAppEvent.DebugPanelClick,this.onDebugPanelClick),e.on(EWorkerAppEvent.DebugMaskButtonClick,this.onDebugMaskButtonClick),this.debugEventListener=new DebugEventListener,this.debugEventListener.setup(),this.inited=!0},e.prototype.onPageResumeOrPause=function(){throttledEmitDataChangedEvent()},e.prototype.onDebugPanelClick=function(){var e=getInjector().getWorkerSocket();e&&e.close()},e.prototype.onDebugMaskButtonClick=function(){},e}(),globalListener;function getGlobalWorkerEventListener(){return globalListener||(globalListener=new WorkerListener),globalListener}function getChannelUrl(){if(\"string\"==typeof __BUGME_EXTERNAL_WORKER_URL__&&__BUGME_EXTERNAL_WORKER_URL__)return __BUGME_EXTERNAL_WORKER_URL__;var e,t=getInjector().getAgentContext(),n=t.channel,r=t.channelId,o=t.channelConfigKey;\"\"!==n?e=n:e=\"wss://\"+(channelDomainConfig[o]||channelDomainConfig[0]).hpmweb;return\"\".concat(e,\"/bugme/client_w/\").concat(r)}var DebugAgent=function(){function e(){}return e.prototype.init=function(e){getGlobalWorkerEventListener().setup(),this.makeConnection(e)},e.prototype.makeConnection=function(e){var t=getInjector(),n=getChannelUrl(),r=new WorkerSocket(n,null==e?void 0:e.socketTaskImpl);t.setWorkerSocket(r),t.getAgentContext().isIOS?r.open():setTimeout((function(){r.open()}),1200)},e}(),globalAgent;function getAgent(){return globalAgent||(globalAgent=new DebugAgent),globalAgent}var LOG_STYLE=\"color: #3D80F3; font-weight: bold;\";function getStaticPlugins(){var e=getStartupParamsSync().__appxPluginsExtra||{},t=Object.keys(e).map((function(t){return{plugin_id:t,deploy_version:e[t].version}}));try{var n=getInjector().getRuntime().getMeta().getAppMeta().plugins||{};Object.entries(n).forEach((function(n){var r=n[0],o=n[1];o.lazy&&!e[r]&&t.push({plugin_id:\"\".concat(o.provider,\"(lazy)\"),deploy_version:\"Not Load\"})}))}catch(e){}return t}function printStaticPlugins(){var e=getStaticPlugins();e.length&&(console.log(\"%c--- Static Plugin List ---\",LOG_STYLE),console.table(e))}var loadPluginName=\"loadPlugin\";function hookLoadPlugin(){var e,t=Object.getOwnPropertyDescriptor(workerGlobal.my,loadPluginName);t&&!t.configurable||(t&&(e=workerGlobal.my.loadPlugin),Object.defineProperty(workerGlobal.my,loadPluginName,{get:function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(\"object\"==typeof t[0]){var r=t[0].success;t[0].success=function(){printDynamicPlugin(t[0].plugin),void 0!==r&&r.apply(this,arguments)}}return e.apply(void 0,t)}},set:function(t){e=t},enumerable:!0,configurable:!0}))}function getExtensionVersions(){var e=getInjector().getRuntime().getMiniExtensionManager();if(e.extensionVersions)return e.extensionVersions;if(e.getInitedMiniExtensionInfo){var t=e.getInitedMiniExtensionInfo(),n=new Map;return t.forEach((function(e){n.set(e.id,e.version||\"-\")})),n}return new Map}function printDynamicPlugin(e){var t=e.split(\"@\")[0],n=getExtensionVersions();setTimeout((function(){console.log(\"%c--- Loaded Dynamic Plugin ---\",LOG_STYLE),console.table([{plugin_id:t,deploy_version:n.get(t)}])}),100)}function setupPluginInfo(){console.log(\"%cTip: you can type `printPlugins()` anytime to print loaded plugins info\",\"color: #3D80F3;\"),hookLoadPlugin(),printStaticPlugins(),workerGlobal.printPlugins=printPlugins}function isUsePlugin(){var e=getInjector().getRuntime();if(void 0===e)return!1;var t=e.getMeta();if(t){var n=void 0;if(\"function\"==typeof t.getAppMeta?n=t.getAppMeta():void 0!==t.meta&&(n=t.meta),n)return\"object\"==typeof n.plugins&&0!==Object.keys(n.plugins).length||n.useDynamicPlugins}return!1}function printPlugins(){var e;printStaticPlugins();var t=(null===(e=getStartupParamsSync())||void 0===e?void 0:e.__appxPluginsExtra)||{},n=getInjector().getRuntime().getMiniExtensionManager(),r=[];if(n.extensionVersions)n.extensionVersions.forEach((function(e,n){void 0===t[n]&&r.push({plugin_id:n,deploy_version:e})}));else if(n.getInitedMiniExtensionInfo){n.getInitedMiniExtensionInfo().forEach((function(e){if(void 0===t[e.id]){var n={plugin_id:e.id,deploy_version:e.version||\"-\"};r.push(n)}}))}console.log(\"%c--- Loaded Dynamic Plugin List ---\",LOG_STYLE),console.table(r)}function main(e){if(!(\"object\"==typeof AFAppX&&AFAppX.Plugin||workerGlobal.__BUGME_ON__)){workerGlobal.__BUGME_ON__=!0;try{registerAppxHook(),initConsoleOverrides(),hookRequirePlugin()}catch(e){error(\"sync task error\",e)}runAfterAppx((function(){runAfterAppXBridgeReady((function(){try{getAgent().init(),isUsePlugin()&&setupPluginInfo()}catch(e){error(\"init agent error\",e)}}))}))}}try{main()}catch(e){error(\"init error\",e)}})();","bugmeWPreview":"!function(){\"use strict\";var e=\"object\"==typeof self&&self||\"object\"==typeof window&&window||\"object\"==typeof global&&global||Function(\"return this\")(),n=e.importScripts,t=e.AlipayJSBridge,r=t&&t.call;\"function\"==typeof __eval?__eval:\"function\"==typeof eval&&eval;var o=\"~\",c=\"\\\\x\"+(\"0\"+o.charCodeAt(0).toString(16)).slice(-2),a=\"\\\\\"+c,i=new RegExp(c,\"g\"),u=new RegExp(a,\"g\"),p=new RegExp(\"(?:^|([^\\\\\\\\]))\"+a),f=[].indexOf||function(e){for(var n=this.length;n--&&this[n]!==e;);return n},s=String;function l(e,n,t){return n instanceof Array?function(e,n,t){for(var r=0,o=n.length;r<o;r++)n[r]=l(e,n[r],t);return n}(e,n,t):n instanceof s?n.length?t.hasOwnProperty(n)?t[n]:t[n]=function(e,n){for(var t=0,r=n.length;t<r;e=e[n[t++].replace(u,o)]);return e}(e,n.split(o)):e:n instanceof Object?function(e,n,t){for(var r in n)n.hasOwnProperty(r)&&(n[r]=l(e,n[r],t));return n}(e,n,t):n}var g={stringify:function(e,n,t,r){return g.parser.stringify(e,function(e,n,t){var r,u,p=!1,s=!!n,l=[],g=[e],d=[e],y=[t?o:\"[Circular]\"],v=e,h=1;return s&&(u=\"object\"==typeof n?function(e,t){return\"\"!==e&&n.indexOf(e)<0?void 0:t}:n),function(e,n){return s&&(n=u.call(this,e,n)),p?(v!==this&&(r=h-f.call(g,this)-1,h-=r,g.splice(h,g.length),l.splice(h-1,l.length),v=this),\"object\"==typeof n&&n?(f.call(g,n)<0&&g.push(v=n),h=g.length,(r=f.call(d,n))<0?(r=d.push(n)-1,t?(l.push((\"\"+e).replace(i,c)),y[r]=o+l.join(o)):y[r]=y[0]):n=y[r]):\"string\"==typeof n&&t&&(n=n.replace(c,a).replace(o,c))):p=!0,n}}(e,n,!r),t)},parse:function(e,n){return g.parser.parse(e,function(e){return function(n,t){var r=\"string\"==typeof t;return r&&t.charAt(0)===o?new s(t.slice(1)):(\"\"===n&&(t=l(t,t,{})),r&&(t=t.replace(p,\"$1\"+o).replace(a,c)),e?e.call(this,n,t):t)}}(n))},parser:JSON},d=g,y=function(){return y=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},y.apply(this,arguments)};function v(e,n,t,r){if(void 0===r&&(r=!1),e||n||t)return h.bind(null,e,n,t,r)}function h(e,n,t,r,o){var c=!1;r?c=!!(o=function(e){\"string\"==typeof e.error&&(e.error=parseInt(e.error,10));0===e.error&&(delete e.error,delete e.errorMessage);return e}(o)).error:\"object\"==typeof o&&(c=\"error\"in o||\"errorMessage\"in o),c&&\"function\"==typeof n&&n(o),c||\"function\"!=typeof e||e(o),\"function\"==typeof t&&t(o)}\"function\"==typeof SuppressedError&&SuppressedError;var b,m=3e3;function I(t,r){var o,c=function(n,t,r){var o=\"_sw_jsonp_\".concat(++m);e[o]=function(n){e[o]=null,r(n)};var c={action:n,callback:o,data:t};return JSON.stringify(c)}(t,r,(function(e){o=e})),a=function(e){var n=encodeURIComponent(e);return\"https://alipay.kylinbridge/?data=\".concat(n)}(c);try{n(a)}catch(e){}return\"string\"==typeof o?function(e){try{return JSON.parse(e)}catch(e){}}(o):o}\"object\"==typeof t&&(b={call:function(e,n,t){r(e,n,t)},callSync:function(e,n){return t.callSync?t.callSync(e,n):I(e,n)}});var _,A,O=!1,S=[];function C(e,n){for(var t=[],r=0,o=e.split(n);r<o.length;r++){var c=o[r];t.push(parseInt(c,10))}return t}function w(){return\"undefined\"==typeof AlipayJSBridge&&\"undefined\"!=typeof my&&\"undefined\"!=typeof getApp&&(my.SDKVersion&&-1===function(e,n){if(e&&n){for(var t=C(e,\".\"),r=C(n,\".\"),o=0,c=0,a=void 0,i=void 0;c<t.length;c++){if((a=r[c]||0)>(i=t[c]||0)){o=-1;break}if(a<i){o=1;break}}return o}return 0}(my.SDKVersion,\"2.0.0\"))}function P(e,n,t){var r=t.fetch,o=t.AlipayJSBridge&&t.AlipayJSBridge.call;if(r){var c=encodeURIComponent(JSON.stringify({action:\"internalAPI\",data:{method:e,param:n}}));r(\"https://alipay.kylinBridge/?data=\".concat(c),{mode:\"no-cors\"}).then((function(){})).catch((function(){}))}else o&&(w()?o(e,n):o(\"internalAPI\",{method:e,param:n}))}function j(e,n){return void 0===n?\"©undefined\":null===n?\"©null\":n===-1/0?\"©-Infinity\":n===1/0?\"©Infinity\":\"number\"==typeof n&&isNaN(n)?\"©NaN\":\"function\"==typeof n?\"©Function\":n}function B(n){n.document&&n.document.addEventListener&&n.document.addEventListener(\"push\",(function(t){var r=t.data;if(r&&\"onMessageFromVConsole\"===r.func){var o;try{var c=r.param.content||r.param.data.content;if(!c)return;o=JSON.parse(c)}catch(e){return}if(o.fromVConsoleToWorker&&\"exec\"===o.method)try{!function(n,t){var r=\"var res = \".concat(n.script,\";console.log(res);\");(function(e){return'sendBack((typeof getCurrentPages !== \"undefined\" ? getCurrentPages() : AFAppX.getCurrentPages()).filter(Boolean).pop().data);return;'===e})(n.script)&&(r=\"var res = \".concat(F,\";console.log(res);\"));var o=t.Function,c=t.__eval;\"function\"==typeof c?c(E.replace(/\\$requestId\\$/g,n.requestId).replace(\"$code$\",r)):new o(\"requestId\",\"sendBack\",r)(n.requestId,(function(t){return e.responseToVConsole(n.requestId,t)}))}(o,n)}catch(e){console.warn(\"bugme execute script error\",e)}}}))}new Promise((function(e){A=e})),\"object\"==typeof my?(_=my,A()):\"object\"==typeof AFAppX&&\"object\"==typeof AFAppX.bridge?(_=AFAppX.bridge,A()):function(t){if(\"undefined\"!=typeof AFAppX)t();else if(S.push(t),!O){O=!0;var r=n||e.importScripts;r?e.importScripts=function(n){r(n),/af-appx\\.worker\\.min\\.js$/.test(n)&&(S.forEach((function(e){return e()})),S=[],e.importScripts=r)}:setTimeout((function(){S.forEach((function(e){return e()})),S=[]}),1200)}}((function(){_=AFAppX.bridge,A()}));var E=\"(function(requestId, sendBack){$code$})($requestId$, function(returnValue){responseToVConsole($requestId$, returnValue)})\",F='\\nsendBack((function(){\\n var pageLogicInstance = typeof getBugMeContext().getTopPageInstance !== \"undefined\" ? getBugMeContext().getTopPageInstance() : undefined;\\n var pagePublicInstance = pageLogicInstance && pageLogicInstance.getPageLogicInstance().publicInstance || (typeof getCurrentPages !== \"undefined\" ? getCurrentPages() : AFAppX.getCurrentPages()).filter(Boolean).pop()\\n var pageData = pagePublicInstance && pagePublicInstance.data;\\n if (getBugMeContext().Widget === true && pageLogicInstance) {\\n var components = pageLogicInstance.logics.slice(1);\\n return components.reduce(function(prev, c){\\n if (!c.parentComponentId) {\\n prev.push({\\n props: c.publicInstance.props,\\n data: c.publicInstance.data\\n });\\n }\\n return prev;\\n }, []);\\n }\\n return pageData;\\n})());return;\\n';var x,T,N={AlipayJSBridge:{call:function(e,n){if(b){var t=n.success,r=n.fail,o=n.complete,c=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}(n,[\"success\",\"fail\",\"complete\"]),a=v(t,r,o,!0);b.call(e,c,(function(e){a&&a(e)}))}else _?_.call(e,n):console.warn(\"[ERROR] error when call \".concat(e,\": AlipayJSBridge not found\"))}},document:e.document,Function:e.Function,fetch:e.fetch},k=function(){return N};e.getBugMeContext=k,T=function(){var n=k();!function(n){x=n,e.responseToVConsole=function(e,n){P(\"tinyDebugConsole\",{type:\"msgFromWorkerToVConsole\",content:d.stringify({requestId:e,returnValue:n},j)},x)}}(n),B(n),function(e){Object.defineProperties(console,[\"log\",\"info\",\"error\",\"debug\",\"warn\"].reduce((function(n,t){var r=console[t];return n[t]={value:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];r.apply(console,n);try{P(\"tinyDebugConsole\",{content:d.stringify(n.map((function(e){return e instanceof Error?\"\".concat(e.name,\": \").concat(e.message):e})),j),type:\"console_\".concat(t)},e)}catch(e){r(\"bugme console error\",e)}},configurable:!0,writable:!0,enumerable:!0},n}),{}))}(n)},e.__BUGME_ON__||(e.__BUGME_ON__=!0,e.AFAppX&&!0===e.AFAppX.__WAIT_UNTIL_BUGME_CONTEXT_READY__?function(n){e.__SET_BUGME_CONTEXT__=function(e){var t;t=e,N=y(y({},N),t),n()}}(T):T())}();","tyroAgent":"!function(){\"use strict\";function getObjectOwnPropertyDescriptors(e){return Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors(e):Object.getOwnPropertyNames(e).reduce((function(t,r){return t[r]=Object.getOwnPropertyDescriptor(e,r),t}),Object.create(null))}function isError(e){return\"[object Error]\"===Object.prototype.toString.call(e)||e instanceof Error}function isDate(e){return\"[object Date]\"===Object.prototype.toString.call(e)||e instanceof Date}function isRegExp(e){return\"[object RegExp]\"===Object.prototype.toString.call(e)||e instanceof RegExp}function isPromise(e){return\"[object Promise]\"===Object.prototype.toString.call(e)||e instanceof Promise}var ObjectMapper=function(){function e(e){this.objectStore=e}return e.prototype.mapFrom=function(e,t){var r=this;return Array.from(e).map((function(e){return r.mapFromOne(e,t)}))},e.prototype.mapFromOne=function(e,t){switch(typeof e){case\"string\":return this.mapString(e);case\"number\":return this.mapNumber(e);case\"object\":return Array.isArray(e)?this.mapArray(e,\"table\"===t):null===e?this.mapNull():this.mapObject(e,\"table\"===t);case\"function\":return this.mapFunction(e);case\"undefined\":return this.mapUndef();case\"boolean\":return this.mapBoolean(e);default:return{type:typeof e,value:e}}},e.prototype.mapString=function(e){return{type:\"string\",value:e}},e.prototype.mapNumber=function(e){return{type:\"number\",value:e,description:String(e)}},e.prototype.mapBoolean=function(e){return{type:\"boolean\",value:e}},e.prototype.mapFunction=function(e){var t=this.objectStore.save(e);return{type:\"function\",className:\"Function\",description:e.toString(),objectId:t}},e.prototype.mapUndef=function(){return{type:\"undefined\"}},e.prototype.mapNull=function(){return{type:\"object\",subtype:\"null\",value:null}},e.prototype.mapObject=function(e,t){var r,n,s=this,i=getObjectOwnPropertyDescriptors(e),o=Object.keys(i),a=this.objectStore.save(e),c=e.constructor?e.constructor.name:\"Object\",p=o.length>5&&!t,u={type:\"object\",className:c,description:c,objectId:a,preview:{type:\"object\",description:c,overflow:p,properties:(p?o.slice(0,5):o).map((function(e){return s.getPropertyPreview4ObjectProperty(e,i[e],t)})).filter(Boolean)}};return isError(e)?(r=\"error\",-1===(n=e.stack||\"\").indexOf(e.name)&&(n=e.toString()+\"\\n\"+n)):isDate(e)?(r=\"date\",n=e.toString()):isRegExp(e)?(r=\"regexp\",n=e.toString()):isPromise(e)&&(r=\"promise\",n=\"Promise\"),r&&(u.subtype=r,u.preview&&(u.preview.subtype=r)),n&&(u.description=n,u.preview&&(u.preview.description=n)),u},e.prototype.mapArray=function(e,t){var r=this,n=e.length>100&&!t,s=\"Array(\"+e.length+\")\";return{type:\"object\",subtype:\"array\",className:\"Array\",description:s,objectId:this.objectStore.save(e),preview:{type:\"object\",subtype:\"array\",description:s,overflow:n,properties:(n?e.slice(0,100):e).map((function(e,n){return r.getPropertyPreview4ArrayProperty(n,e,t)}))}}},e.prototype.getPropertyPreview4ArrayProperty=function(e,t,r){return this.getPropertyPreview4AnyValue(String(e),t,r)},e.prototype.getPropertyPreview4ObjectProperty=function(e,t,r){return t.get?{name:e,type:\"accessor\"}:t.set?void 0:this.getPropertyPreview4AnyValue(e,t.value,r)},e.prototype.getPropertyPreview4AnyValue=function(e,t,r){switch(void 0===r&&(r=!1),typeof t){case\"object\":if(Array.isArray(t)){var n={name:e,type:\"object\",subtype:\"array\",value:\"Array(\"+t.length+\")\"};return r&&(n.valuePreview=this.getValuePreview4TableArray(t)),n}if(null===t)return{name:e,type:\"object\",subtype:\"null\",value:\"null\"};n={name:e,type:\"object\",value:t.constructor?t.constructor.name:\"Object\"};return r&&(n.valuePreview=this.getValuePreview4TableObject(t)),n;case\"function\":return{type:\"function\",value:\"\",name:e};default:return{name:e,type:typeof t,value:String(t)}}},e.prototype.getValuePreview4TableArray=function(e){var t=this;return{type:\"object\",subtype:\"array\",description:\"Array(\"+e.length+\")\",overflow:!1,properties:e.map((function(e,r){return t.getPropertyPreview4AnyValue(String(r),e)}))}},e.prototype.getValuePreview4TableObject=function(e){var t=this;return{type:\"object\",description:\"Object\",overflow:!1,properties:Object.keys(e).map((function(r){return t.getPropertyPreview4AnyValue(r,e[r])}))}},e}(),extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function __extends(e,t){function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ExtractStackLine=function(){function e(){this.e1=/\\s*at\\s(\\S+)\\s(\\S+)\\:(\\d+)\\:(\\d+)\\)/,this.e2=/\\s*at\\s(\\S+)\\:(\\d+)\\:(\\d+)/}return e.prototype.testType1=function(e){return this.e1.test(e)},e.prototype.testType2=function(e){return this.e2.test(e)},e.prototype.extractType1=function(e){var t=e.match(this.e1);return null==t?null:{functionName:t[1],url:t[2].slice(1),lineNumber:Number(t[3]),columnNumber:Number(t[4])}},e.prototype.extractType2=function(e){var t=e.match(this.e2);return null==t?null:{functionName:\"\",url:t[1].slice(1),lineNumber:Number(t[2]),columnNumber:Number(t[3])}},e}(),CallFramesMapper=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.mapFrom=function(e){var t=this;return e.split(\"\\n\").slice(2).map((function(e,r){return t.testType1(e)?t.extractType1(e):t.testType2(e)?t.extractType2(e):void 0})).filter((function(e){return null!=e}))},t}(ExtractStackLine),executionContextId=1,injectedScriptId=1,ObjectStore=function(){function e(){this.id=0,this.id2Object=new Map,this.object2Id=new Map}return e.prototype.save=function(e){if(this.object2Id.has(e))return this.object2Id.get(e);var t=this.getNextObjectId();return this.id2Object.set(t,e),this.object2Id.set(e,t),t},e.prototype.query=function(e){return this.id2Object.get(e)},e.prototype.clear=function(e){var t=this.id2Object.get(e);t&&(this.id2Object.delete(e),this.object2Id.delete(t))},e.prototype.clearAll=function(){this.id2Object.clear(),this.object2Id.clear()},e.prototype.getNextObjectId=function(){return this.id++,'{\"injectedScriptId\":'+injectedScriptId+',\"id\":'+this.id+\"}\"},e}(),GetPropertiesHandler=function(){function e(e,t){this.objectStore=e,this.objectMapper=t}return e.prototype.handle=function(e){var t=this.objectStore.query(e.objectId);return t?{result:this.mapObject(t,Boolean(e.ownProperties),Boolean(e.accessorPropertiesOnly))}:{result:[]}},e.prototype.mapObject=function(e,t,r){var n=this;if(t){var s=getObjectOwnPropertyDescriptors(e),i=Object.keys(s).filter((function(e){return!(r&&!s[e].get&&!s[e].set)})).map((function(e){return n.mapResultOne(e,s[e],!0)}));return e.__proto__&&i.push(this.mapResultOne(\"__proto__\",{configurable:!0,enumerable:!1,writable:!0,value:e.__proto__},!0)),i}for(var o=[],a={},c=e,p=!1,u=!0,l=function(){var e=getObjectOwnPropertyDescriptors(c);if(Object.keys(e).forEach((function(t){if(!a[t]){a[t]=!0;var s=e[t];(!r||s.get||s.set)&&o.push(n.mapResultOne(t,s,u))}})),!p){var t=Object.getOwnPropertyDescriptor(c,\"__proto__\");t&&(p=!0,o.push(y.mapResultOne(\"__proto__\",t,u)))}c=c.__proto__,u=!1},y=this;c;)l();return o},e.prototype.mapResultOne=function(e,t,r){var n={writable:t.writable,configurable:Boolean(t.configurable),enumerable:Boolean(t.enumerable),isOwn:r,name:String(e)};return\"value\"in t&&(n.value=this.objectMapper.mapFromOne(t.value)),t.get&&(n.get=this.objectMapper.mapFromOne(t.get)),t.set&&(n.set=this.objectMapper.mapFromOne(t.set)),n},e}(),RemoteObjectParser=function(){function e(){this.objectStore=new ObjectStore,this.objectMapper=new ObjectMapper(this.objectStore),this.callFramesMapper=new CallFramesMapper,this.getPropertiesHandler=new GetPropertiesHandler(this.objectStore,this.objectMapper)}return e.prototype.parseObject=function(e,t){return this.objectMapper.mapFromOne(e,t)},e.prototype.getProperties=function(e){return this.getPropertiesHandler.handle(e)},e.prototype.getObjectById=function(e){return this.objectStore.query(e)},e.prototype.consoleAPICalled=function(e,t,r){var n=e;return\"warn\"===e&&(n=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:n,args:this.objectMapper.mapFrom(r,e),executionContextId:executionContextId,timestamp:Date.now(),stackTrace:{callFrames:this.callFramesMapper.mapFrom(t)}}}},e}(),ResponseEvent,RequestMethod,BreakStepType,FingerType;function getStartupParams(){if(\"undefined\"!=typeof __appxStartupParams&&__appxStartupParams&&__appxStartupParams.appId)return __appxStartupParams;if(\"undefined\"!=typeof my)try{return my.callSync(\"getStartupParams\")||{}}catch(e){}return{}}!function(e){e.ById=\"Tyro.byId\",e.Sticky=\"Tyro.sticky\",e.StickyNotSendPaused=\"Tyro.stickyNotSendPaused\",e.StickyAsync=\"Tyro.stickyAsync\",e.ScriptSource=\"Tyro.scriptSource\",e.Resumed=\"Debugger.resumed\",e.ConsoleAPICalled=\"Runtime.consoleAPICalled\"}(ResponseEvent||(ResponseEvent={})),function(e){e.DiscardConsoleEntries=\"Tyro.discardConsoleEntries\",e.Evaluate=\"Tyro.evaluate\",e.EvaluateOnCallFrame=\"Tyro.evaluateOnCallFrame\",e.CallFunctionOn=\"Tyro.callFunctionOn\",e.CompileScript=\"Tyro.compileScript\",e.SetBreakpointsActive=\"Tyro.setBreakpointsActive\",e.SetSkipAllPauses=\"Tyro.setSkipAllPauses\",e.Resume=\"Tyro.resume\",e.StepInto=\"Tyro.stepInto\",e.StepOver=\"Tyro.stepOver\",e.StepOut=\"Tyro.stepOut\",e.Pause=\"Tyro.pause\",e.GetPossibleBreakpoints=\"Tyro.getPossibleBreakpoints\",e.SetBreakpointByUrl=\"Tyro.setBreakpointByUrl\",e.SetBreakpoint=\"Tyro.setBreakpoint\",e.RemoveBreakpoint=\"Tyro.removeBreakpoint\",e.REPL=\"Tyro.repl\",e.GetVariableValue=\"Tyro.getVariableValue\",e.SetPauseOnExceptions=\"Tyro.setPauseOnExceptions\",e.SetAsyncCallStackDepth=\"Tyro.setAsyncCallStackDepth\",e.GetProperties=\"Tyro.getProperties\"}(RequestMethod||(RequestMethod={})),function(e){e[e.Non=0]=\"Non\",e[e.NextSticky=1]=\"NextSticky\",e[e.StepOver=2]=\"StepOver\",e[e.StepOut=3]=\"StepOut\"}(BreakStepType||(BreakStepType={})),function(e){e[e.Entry=0]=\"Entry\",e[e.Exit=1]=\"Exit\"}(FingerType||(FingerType={}));var serverConfig={default:{domain:\"hpmweb.alipay.com\"},1:{domain:\"hpmweb.alipay.com\"}};function getServerConfig(){var e=getStartupParams().remoteCh;return e&&serverConfig[e]?serverConfig[e]:serverConfig.default}var appxStackLine=/https:\\/\\/appx\\/af-appx\\.worker\\.min\\.js:\\d+:\\d+/,nativeScriptLine=/https:\\/\\/www\\.alipay\\.com\\/?:\\d+:\\d+|\\[native code\\]/,pluginWorkerStackLine=/https:\\/\\/\\d+\\.hybrid\\.\\S+\\.com\\/__plugins__\\/(\\d+)\\/index\\.worker\\.js:\\d+:\\d+/,appWorkerStackLine=/https:\\/\\/\\d+\\.hybrid\\.\\S+\\.com\\/index\\.worker\\.js:\\d+:\\d+/;function transformSourceUrl(e){try{return pluginWorkerStackLine.test(e)?e.replace(pluginWorkerStackLine,\"Plugin-$1\"):e.replace(appWorkerStackLine,\"App\")}catch(t){return e}}function formatErrorStack(e){var t=e.split(\"\\n\"),r=t[0],n=t.slice(1).filter((function(e){return!appxStackLine.test(e)&&!nativeScriptLine.test(e)})).map(transformSourceUrl);return n.unshift(r),n.join(\"\\n\")}function formatErrorRemoteObject(e){return e.description&&(e.description=formatErrorStack(e.description)),e.preview&&e.preview.description&&(e.preview.description=e.description),e}var TYRO_EXECUTION_CONTEXT_ID=0,TyroUtil=function(){function e(){}return e.throwsMessage=function(e){return\"[Throws: \"+(e?e.message:\"?\")+\"]\"},e.safeGetValueFromPropertyOnObject=function(t,r){if(Object.prototype.hasOwnProperty.call(t,r))try{return t[r]}catch(t){return e.throwsMessage(t)}return t[r]},e.ensureProperties=function(t){var r=[];return function t(n){if(null===n||\"object\"!=typeof n)return n;if(-1!==r.indexOf(n))return\"[Circular]\";if(r.push(n),\"function\"==typeof n.toJSON)try{var s=t(n.toJSON());return r.pop(),s}catch(t){return e.throwsMessage(t)}if(Array.isArray(n)){var i=n.map(t);return r.pop(),i}var o=Object.keys(n).reduce((function(r,s){return r[s]=t(e.safeGetValueFromPropertyOnObject(n,s)),r}),{});return r.pop(),o}(t)},e.safeJSONStringify=function(t,r,n){return JSON.stringify(e.ensureProperties(t),r,n)},e.isWebIDE=function(){return!(\"undefined\"==typeof navigator||!navigator)&&(navigator.swuserAgent||navigator.userAgent||\"\").indexOf(\"AlipayIDE\")>-1},e}(),StickyFinger=function(){function StickyFinger(e,t,r,n){var s=this;this.isWebIDE=!1,this.asyncRequestMethod=\"tyroRequest\",this.host=t,this.contextMap={},this.contextUrlMap={},this.breakpointMap={},this.breakpointIdMap={},this.debuggerMap={},this.originConsoleAPI={},this.requestTaskId=0,this.stickyMsgQueue=[],this.wsMsgQueue=[],this.wsIsOpen=!1,this.instrumentId=r,this.stickyFlag=n.stickyFlag,this.fingerFlag=n.fingerFlag,this.remoteObjectParser=new RemoteObjectParser,this.hookConsole(),this.stickyFlag&&(setTimeout((function(){s.socketTask=my.connectSocket({url:\"wss://\"+getServerConfig().domain+\"/tyro/agent/\"+s.instrumentId,multiple:!0});var e=function(){if(!s.wsIsOpen){s.originConsoleAPI.log(\"[tyro-agent] WebSocket 连接成功\"),s.wsIsOpen=!0;for(var e=0,t=s.wsMsgQueue;e<t.length;e++){var r=t[e];s.socketTask.send({data:r})}s.wsMsgQueue=[]}};s.socketTask.onOpen((function(){e()})),s.socketTask.onClose((function(){s.originConsoleAPI.log(\"[tyro-agent] WebSocket 连接已关闭\")})),s.socketTask.onMessage((function(t){s.wsIsOpen||e(),s.handleStickyAsync(JSON.parse(t.data.data))}))}),2e3),this.breakpointsActive=!0,this.skipAllPauses=!1,this.breakStepType=BreakStepType.Non,this.stackDepth=0,this.pauseOnExceptions=\"none\",this.asyncCallStackDepth=0,this.lastStickyAsyncError=0,this.globalExecutionContext=e,this.evaluateOnCallFrameExpression=\"\",this.stickyNotSendPaused=!1,this.sendStickyParams=!1),this.fingerFlag&&(this.fingerId=0,this.fingerCache=[],this.fingerSendInterval=1e3,this.jsapiCallId=0,setInterval((function(){0!==s.fingerCache.length&&(s.sendPerf(\"Perf.trace\",s.fingerCache),s.fingerCache=[])}),this.fingerSendInterval)),this.isWebIDE=TyroUtil.isWebIDE(),this.isWebIDE&&(this.asyncRequestMethod=\"tyroRequestAsync\")}return StickyFinger.rewritePath=function(e){var t=e;return\".\"===t[0]&&(t=t.replace(\".\",\"\")),t=\"app://\"+(t=t.replace(\"tmp/data/build/\",\"\"))},StickyFinger.processRawContext=function(e){var t={path:this.rewritePath(e.path),contextId:String(e.contextId),scope:{0:[]},function:{},debuggerLine:e.debuggerLine,stickyLine:e.stickyLine};return e.scope&&Object.keys(e.scope).map((function(r){var n=e.scope[r],s=n.shift(),i=t.scope[s];t.scope[r]=i?i.concat(n.filter((function(e){return i.indexOf(e)<0}))):n})),e.function&&Object.keys(e.function).map((function(r){var n=e.function[r];t.function[r]={name:n[0],line:n[1]}})),t},StickyFinger.prototype.register=function(e,t){var r=String(e.contextId),n=StickyFinger.rewritePath(e.path);this.originConsoleAPI.log(\"[tyro-agent] register contextId \"+r+\" path \"+n),this.contextMap[r]||this.breakpointMap[r]?this.originConsoleAPI.warn(\"[tyro-agent] duplicate context register \"+r+\" \"+n):(this.contextMap[r]=StickyFinger.processRawContext(e),this.contextUrlMap[n]=r,this.breakpointMap[r]={},this.debuggerMap[r]=this.contextMap[r].debuggerLine.reduce((function(e,t){return e[t-1]=!0,e}),{}),this.stickyFlag&&this.xhrSend(ResponseEvent.ScriptSource,{scriptSource:t,scriptId:String(r),executionContextId:TYRO_EXECUTION_CONTEXT_ID,url:n}))},StickyFinger.prototype.sticky=function(e,t,r){if(!this.skipAllPauses&&this.breakpointsActive&&((this.debuggerMap[e]||{})[t]||(this.breakpointMap[e]||{})[t]||this.breakStepType===BreakStepType.NextSticky||this.breakStepType===BreakStepType.StepOver&&(new Error).stack.split(\"\\n\").length<=this.stackDepth||this.breakStepType===BreakStepType.StepOut&&(new Error).stack.split(\"\\n\").length<this.stackDepth||!0===this.sendStickyParams)){this.originConsoleAPI.log(\"[tyro-agent] sticky \"+e+\" \"+t),this.breakStepType=BreakStepType.Non;var n={};if(this.stickyNotSendPaused)this.originConsoleAPI.log(\"[tyro-agent] stickyNotSendPaused\");else{if(!this.sendStickyParams){this.originConsoleAPI.log(\"[tyro-agent] sticky sendStickyParams step 1\"),n={callFrames:null,reason:\"other\",hitBreakpoints:[]};var s=this.breakpointMap[e][t];s&&n.hitBreakpoints.push(s);var i=(new Error).stack.split(\"\\n\");return this.stackDepth=i.length,Agent.isPhone?n.callFrames=this.processCallFramesPhone(String(e),t,r,i):n.callFrames=this.processCallFrames(String(e),t,r,i),this.stickyParams=n,this.sendStickyParams=!0,\"(function(){\\n var localObject = {};\\n Agent.getScopeVariables().forEach(function (key) {\\n localObject[key] = (function(){try{return eval(key)}catch(e){return undefined}})();\\n });\\n Agent.inflateStickyParamsObject(localObject);\\n return true;\\n })()\"}this.originConsoleAPI.log(\"[tyro-agent] sticky sendStickyParams step 2\"),n=this.stickyParams,this.sendStickyParams=!1}this.originConsoleAPI.log(\"[tyro-agent] sticky params \"+TyroUtil.safeJSONStringify(n));var o=JSON.parse(this.xhrSend(ResponseEvent.Sticky,n));return this.handleSticky(o)}},StickyFinger.prototype.fingerEntry=function(e,t){var r=this.contextMap[e].path,n=this.contextMap[e].function[t],s=this.generateFingerId(),i={time:Date.now(),file:r,line:n.line,name:n.name,id:s,type:FingerType.Entry};return this.fingerCache.push(i),s},StickyFinger.prototype.fingerExit=function(e,t,r){var n=this.contextMap[e].path,s=this.contextMap[e].function[t],i={time:Date.now(),file:n,line:s.line,name:s.name,id:r,type:FingerType.Exit};this.fingerCache.push(i)},StickyFinger.prototype.sendPerf=function(e,t){self.bugmeAPI?self.bugmeAPI.send({method:e,params:t}):self.document?self.document.addEventListener(\"bugmeInjected\",(function(){self.bugmeAPI.send({method:e,params:t})})):self.addEventListener&&self.addEventListener(\"bugmeInjected\",(function(){self.bugmeAPI.send({method:e,params:t})}))},StickyFinger.prototype.consoleAPICalled=function(e,t){var r=this,n=e;return\"warn\"===e&&(n=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:n,args:Array.from(t).map((function(t){return r.remoteObjectParser.parseObject(t,e)})),executionContextId:TYRO_EXECUTION_CONTEXT_ID,timestamp:Date.now()}}},StickyFinger.prototype.hookConsole=function(){var e=this,t=this;Object.defineProperties(console,[\"debug\",\"log\",\"info\",\"warn\",\"error\",\"table\"].reduce((function(r,n){var s=console[n].bind(console);return e.originConsoleAPI[n]=s,r[n]={value:function(){var e=arguments;if(e.length){try{var r=/^(\\[framework\\]|dispatchEvent|onMessage push|unsupported protocol)/;if(\"string\"==typeof e[0]&&r.test(e[0]))return s.apply(null,e);var i=t.consoleAPICalled(n,e).params;i.args.forEach((function(e){\"error\"===e.subtype&&formatErrorRemoteObject(e)})),t.xhrSend(ResponseEvent.ConsoleAPICalled,i,null,!1)}catch(e){}return s.apply(null,e)}}},r}),{}))},StickyFinger.prototype.inflateStickyParamsObject=function(e){if(0!==this.stickyParams.callFrames.length){var t=this.remoteObjectParser.parseObject(e).objectId;this.stickyParams.callFrames[0].scopeChain.push({type:\"local\",name:this.stickyParams.callFrames[0].functionName,object:{className:\"Object\",description:\"Object\",objectId:t,type:\"object\"}})}},StickyFinger.prototype.processCallFrames=function(e,t,r,n){var s=this,i=[],o=n.slice(3,n.length).map((function(e){return e.substr(0,e.lastIndexOf(\":\")).replace(\" at \",\"\").replace(\" (\",\":\")})),a=0,c=!0;return o.map((function(t){var n=t.split(\":\"),o=n[0],p=s.contextMap[e].path,u=Number(n[n.length-1]),l=s.contextUrlMap[p]||\"none\",y=a+\":\"+u+\":\"+p;c&&(s.scopeVariables=void 0!==s.contextMap[e]?s.contextMap[e].scope[r]:[],c=!1);var h={callFrameId:y,functionName:o,location:{scriptId:l,lineNumber:u,columnNumber:0},url:p,scopeChain:[],this:{}};i.push(h),a+=1})),i},StickyFinger.prototype.processCallFramesPhone=function(e,t,r,n){var s=this,i=[],o=n.slice(2,n.length).map((function(e){return e.substr(0,e.lastIndexOf(\":\")).replace(\" at \",\"\").replace(\" (\",\":\").replace(\"@\",\":\")})),a=0,c=!0;return o.map((function(n){var o=n.split(\":\"),p=o[0],u=s.contextMap[e].path,l=Number(o[o.length-1]),y=s.contextUrlMap[u]||\"none\",h=a+\":\"+l+\":\"+u;c&&(s.scopeVariables=void 0!==s.contextMap[e]?s.contextMap[e].scope[r]:[],s.originConsoleAPI.log(\"scopeVariables \"+TyroUtil.safeJSONStringify(s.scopeVariables)),s.originConsoleAPI.log(\"scopeVariables \"+TyroUtil.safeJSONStringify(s.contextMap[e])+\" \"+s.contextMap[e].scope+\" \"+r),c=!1);var d={callFrameId:h,functionName:p,location:{scriptId:y,lineNumber:t,columnNumber:0},url:u,scopeChain:[],this:{}};i.push(d),a+=1})),i},StickyFinger.prototype.stickyAsyncLoop=function(){this.xhrSend(ResponseEvent.StickyAsync,{})},StickyFinger.prototype.xhrSendJSAPI=function(e,t,r,n){var s,i=this;if(e===ResponseEvent.Sticky){var o;this.stickyMsgQueue.length>0?(this.stickyMsgQueue.push({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t}),o=TyroUtil.safeJSONStringify(this.stickyMsgQueue),this.stickyMsgQueue=[]):o=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t}),my.call(\"showRemoteDebugMask\",{text:\" \",buttonTitle:\"断点命中\",hide:!1}),this.stickyNotSendPaused=!1;var a=Date.now(),c=my.callSync(\"tyroRequest\",{url:this.host+\"/tyro/agent\",method:\"POST\",headers:{\"Content-Type\":\"application/json;charset=UTF-8\",\"instrument-id\":this.instrumentId},data:o,timeout:6e5,blockTimeout:6e5,dataType:\"json\",requestTaskId:this.requestTaskId++});return my.call(\"showRemoteDebugMask\",{hide:!0}),c.error||null===c?(null===c?this.originConsoleAPI.error(\"[tyro-agent] xhrSend error result is \"+c):this.originConsoleAPI.error(\"[tyro-agent] xhrSend error \"+c.error+\" \"+c.errorMessage),Date.now()-a>=5e3?this.xhrSendJSAPI(e,t,r,n):TyroUtil.safeJSONStringify({method:\"default\"})):200!==c.status?(this.originConsoleAPI.error(\"[tyro-agent] xhrSend status fail \"+e+\" \"+c.status),TyroUtil.safeJSONStringify({method:\"default\"})):c.data}if(e===ResponseEvent.StickyAsync){var p=TyroUtil.safeJSONStringify({method:ResponseEvent.StickyAsync,params:t});this.originConsoleAPI.info(\"[tyro-agent] xhrSend async send \"+p),my.call(this.asyncRequestMethod,{url:this.host+\"/tyro/agent\",method:\"POST\",headers:{\"Content-Type\":\"application/json;charset=UTF-8\",\"instrument-id\":this.instrumentId},data:p,timeout:6e5,dataType:\"json\",requestTaskId:this.requestTaskId++,success:function(e){i.lastStickyAsyncError=0,i.stickyAsyncLoop(),200===e.status?(i.originConsoleAPI.info(\"[tyro-agent] xhrSend async success \"+e.status+\" \"+e.data),i.handleStickyAsync(JSON.parse(e.data))):i.originConsoleAPI.error(\"[tyro-agent] xhrSend async fail \"+e.status+\" \"+e.data)},fail:function(e){i.lastStickyAsyncError>=3?setTimeout((function(){i.stickyAsyncLoop()}),3e3):(i.lastStickyAsyncError+=1,i.stickyAsyncLoop()),i.originConsoleAPI.error(\"[tyro-agent] xhrSend async error \"+TyroUtil.safeJSONStringify(e))}})}switch(e){case ResponseEvent.ById:s={id:r,result:t};break;case ResponseEvent.ScriptSource:s={method:ResponseEvent.ScriptSource,params:t};break;case ResponseEvent.Resumed:s={method:ResponseEvent.Resumed,params:t};break;case ResponseEvent.ConsoleAPICalled:s={method:ResponseEvent.ConsoleAPICalled,params:t};break;default:return}n?this.stickyMsgQueue.push(s):this.wsIsOpen?this.socketTask.send({data:TyroUtil.safeJSONStringify(s)}):this.wsMsgQueue.push(TyroUtil.safeJSONStringify(s))},StickyFinger.prototype.xhrSend=function(e,t,r,n){var s=this;if(Agent.isPhone)return this.xhrSendJSAPI(e,t,r,n);var i,o=new XMLHttpRequest;if(e===ResponseEvent.Sticky){var a;if(o.open(\"POST\",this.host+\"/tyro/agent\",!1),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),this.stickyMsgQueue.length>0){this.stickyMsgQueue.push({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t});try{a=TyroUtil.safeJSONStringify(this.stickyMsgQueue)}catch(e){this.originConsoleAPI.error(e),a=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t})}finally{this.stickyMsgQueue=[]}}else a=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t});if(this.stickyNotSendPaused=!1,o.send(a),200===o.status)return o.responseText;throw new Error(\"[sticky-finger] xhrSend error \"+e+\" \"+o.status)}if(e===ResponseEvent.StickyAsync)return o.open(\"POST\",this.host+\"/tyro/agent\",!0),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),o.onload=function(){if(s.lastStickyAsyncError=0,s.stickyAsyncLoop(),4!==o.readyState||200!==o.status)throw new Error(\"[tyro-agent] xhrSend async fail \"+e+\" \"+o.readyState+\" \"+o.status);s.handleStickyAsync(JSON.parse(o.responseText))},o.onerror=function(){throw s.lastStickyAsyncError>=3?setTimeout((function(){s.stickyAsyncLoop()}),3e3):(s.lastStickyAsyncError+=1,s.stickyAsyncLoop()),new Error(\"[tyro-agent] xhrSend async error \"+e+\" \"+o.readyState+\" \"+o.status)},void o.send(TyroUtil.safeJSONStringify({method:ResponseEvent.StickyAsync,params:t}));switch(o.open(\"POST\",this.host+\"/tyro/agent\",!0),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),o.onload=function(){if(4!==o.readyState||200!==o.status)throw new Error(\"[tyro-agent] xhrSend async fail \"+e+\" \"+o.readyState+\" \"+o.status)},o.onerror=function(){throw new Error(\"[tyro-agent] xhrSend async error \"+e+\" \"+o.readyState+\" \"+o.status)},e){case ResponseEvent.ById:i={id:r,result:t};break;case ResponseEvent.ScriptSource:i={method:ResponseEvent.ScriptSource,params:t};break;case ResponseEvent.Resumed:i={method:ResponseEvent.Resumed,params:t};break;case ResponseEvent.ConsoleAPICalled:i={method:ResponseEvent.ConsoleAPICalled,params:t};break;default:return}n?this.stickyMsgQueue.push(i):o.send(TyroUtil.safeJSONStringify(i))},StickyFinger.prototype.handleSticky=function(e){var t=e.id,r=e.method,n=e.params;switch(r){case RequestMethod.DiscardConsoleEntries:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] DiscardConsoleEntries success\"),\"true\";case RequestMethod.CallFunctionOn:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] CallFunctionOn TODO sticky\"),\"true\";case RequestMethod.CompileScript:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] CompileScript success, \"+TyroUtil.safeJSONStringify(n)),\"true\";case RequestMethod.SetBreakpointsActive:return this.stickyNotSendPaused=!0,this.breakpointsActive=n.active,this.originConsoleAPI.log(\"[tyro-agent] SetBreakpointsActive success, breakpointsActive \"+this.breakpointsActive),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetSkipAllPauses:return this.stickyNotSendPaused=!0,this.skipAllPauses=n.skip,this.originConsoleAPI.log(\"[tyro-agent] SetSkipAllPauses success, skipAllPauses \"+this.skipAllPauses),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.Resume:return this.xhrSend(ResponseEvent.Resumed,{}),this.originConsoleAPI.log(\"[tyro-agent] Resume success\"),\"false\";case RequestMethod.StepInto:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.NextSticky,this.originConsoleAPI.log(\"[tyro-agent] StepInto success\"),\"false\";case RequestMethod.StepOver:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.StepOver,this.originConsoleAPI.log(\"[tyro-agent] StepOver success\"),\"false\";case RequestMethod.StepOut:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.StepOut,this.originConsoleAPI.log(\"[tyro-agent] StepOut success\"),\"false\";case RequestMethod.GetPossibleBreakpoints:return this.stickyNotSendPaused=!0,this.getPossibleBreakpoints(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetBreakpointByUrl:return this.stickyNotSendPaused=!0,this.setBreakpointByUrl(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetBreakpoint:return this.stickyNotSendPaused=!0,this.setBreakpoint(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.RemoveBreakpoint:return this.stickyNotSendPaused=!0,this.removeBreakpoint(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.REPL:return this.stickyNotSendPaused=!0,this.breakStepType=BreakStepType.NextSticky,\"(function(){(function(){\"+n.statement+\"})();return true})()\";case RequestMethod.GetVariableValue:this.stickyNotSendPaused=!0;var s=e.params;return this.breakStepType=BreakStepType.NextSticky,\"(function(){(function(){\\n Agent.variableValue({\"+s.map((function(e){return e+\": (function(){try{return \"+e+\"}catch(e){return undefined}})()\"})).join(\",\")+\"})\\n })();return true})()\";case RequestMethod.SetPauseOnExceptions:return this.stickyNotSendPaused=!0,this.setPauseOnExceptions(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetAsyncCallStackDepth:return this.stickyNotSendPaused=!0,this.setAsyncCallStackDepth(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.EvaluateOnCallFrame:return this.stickyNotSendPaused=!0,this.evaluateOnCallFrameExpression=n.expression,this.breakStepType=BreakStepType.NextSticky,\"(function(){\\n var tyroRet,tyroErr;\\n try{tyroRet=eval(Agent.getEvaluateOnCallFrameExpression())}\\n catch(e){tyroErr=e}\\n Agent.evaluateOnCallFrame(\"+t+\",tyroRet,tyroErr,\"+n.generatePreview+\");\\n return true;\\n })()\";case RequestMethod.GetProperties:return this.stickyNotSendPaused=!0,this.getProperties(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";default:return this.breakStepType=BreakStepType.NextSticky,\"true\"}},StickyFinger.prototype.handleStickyAsync=function(e){var t=e.id,r=e.method,n=e.params;switch(this.originConsoleAPI.log(\"[tyro-agent] handleStickyAsync \"+t+\", \"+r+\", \"+n),r){case RequestMethod.DiscardConsoleEntries:this.originConsoleAPI.log(\"[tyro-agent] DiscardConsoleEntries success\");break;case RequestMethod.Evaluate:this.originConsoleAPI.log(\"[tyro-agent] Evaluate start, expression \"+n.expression);var s=this.evaluate(this.globalExecutionContext,t,n);this.originConsoleAPI.log(\"[tyro-agent] Evaluate success, expression \"+n.expression+\", result \"+TyroUtil.safeJSONStringify(s));break;case RequestMethod.CallFunctionOn:this.originConsoleAPI.log(\"[tyro-agent] CallFunctionOn TODO stickyAsync\");break;case RequestMethod.CompileScript:this.originConsoleAPI.log(\"[tyro-agent] CompileScript success, params \"+TyroUtil.safeJSONStringify(n));break;case RequestMethod.SetBreakpointsActive:this.breakpointsActive=n.active,this.originConsoleAPI.log(\"[tyro-agent] SetBreakpointsActive success, breakpointsActive \"+this.breakpointsActive);break;case RequestMethod.SetSkipAllPauses:this.skipAllPauses=n.skip,this.originConsoleAPI.log(\"[tyro-agent] SetSkipAllPauses success, skipAllPauses \"+this.skipAllPauses);break;case RequestMethod.Pause:this.breakStepType=BreakStepType.NextSticky,this.originConsoleAPI.log(\"[tyro-agent] Pause success\");break;case RequestMethod.GetPossibleBreakpoints:this.getPossibleBreakpoints(t,n);break;case RequestMethod.SetBreakpointByUrl:this.setBreakpointByUrl(t,n);break;case RequestMethod.SetBreakpoint:this.setBreakpoint(t,n);break;case RequestMethod.RemoveBreakpoint:this.removeBreakpoint(t,n);break;case RequestMethod.SetPauseOnExceptions:this.setPauseOnExceptions(t,n);break;case RequestMethod.SetAsyncCallStackDepth:this.setAsyncCallStackDepth(t,n);break;case RequestMethod.GetProperties:this.getProperties(t,n)}},StickyFinger.prototype.evaluateOnCallFrame=function(e,t,r,n){var s;if(r){var i=this.remoteObjectParser.parseObject(r);formatErrorRemoteObject(i),s={exceptionDetails:{columnNumber:20,exception:i,exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:i}}else s={result:this.remoteObjectParser.parseObject(t)};return this.xhrSend(ResponseEvent.ById,s,e,!0),s},StickyFinger.prototype.evaluate=function(executionContext,id,params){var returnValue,error,result;try{returnValue=function(expression){return\"function\"==typeof eval?eval(expression):Agent.evalReference(expression)}.call(executionContext,params.expression)}catch(e){error=e}if(error){var errorRemoteObject=this.remoteObjectParser.parseObject(error);formatErrorRemoteObject(errorRemoteObject),result={exceptionDetails:{columnNumber:20,exception:errorRemoteObject,exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:errorRemoteObject}}else result={result:this.remoteObjectParser.parseObject(returnValue)};return this.xhrSend(ResponseEvent.ById,result,id),result},StickyFinger.prototype.getPossibleBreakpoints=function(e,t,r){var n=t.scriptId,s=t.startLine,i=t.endLine===t.startLine?t.endLine+1:t.endLine,o={locations:[]};if(this.contextMap[n])for(var a=this.contextMap[n].stickyLine,c=s;c<i;c++)a.includes(c)&&o.locations.push({scriptId:n,lineNumber:c,columnNumber:0});else this.originConsoleAPI.warn(\"[tyro-agent] getPossibleBreakpoints no scriptId \"+n+\" in contextMap\");this.originConsoleAPI.log(\"[tyro-agent] getPossibleBreakpoints success, result: \"+TyroUtil.safeJSONStringify(o)),this.xhrSend(ResponseEvent.ById,o,e,r)},StickyFinger.prototype.setBreakpointByUrl=function(e,t,r){var n=t.scriptId,s=t.url,i=t.lineNumber;if(this.contextMap[n])if(this.contextMap[n].stickyLine.includes(i)){var o=n+\":\"+i+\":0:\"+s,a={breakpointId:o,locations:[{scriptId:n,lineNumber:i,columnNumber:0}]};this.breakpointMap[n][i]=o,this.breakpointIdMap[o]={contextId:n,line:i},this.originConsoleAPI.log(\"[tyro-agent] setBreakpointByUrl success, scriptId: \"+n+\", url: \"+s+\", lineNumber: \"+i),this.xhrSend(ResponseEvent.ById,a,e,r)}else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpointByUrl not sticky line, scriptId: \"+n+\", url: \"+s+\", lineNumber: \"+i);else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpointByUrl no contextMap, scriptId: \"+n)},StickyFinger.prototype.setBreakpoint=function(e,t,r){var n=t.scriptId,s=t.lineNumber;if(this.contextMap[n])if(this.contextMap[n].stickyLine.includes(s)){var i=n+\":\"+s+\":0\",o={breakpointId:i,actualLocation:{scriptId:n,lineNumber:s,columnNumber:0}};this.breakpointMap[n][s]=i,this.breakpointIdMap[i]={contextId:n,line:s},this.originConsoleAPI.log(\"[tyro-agent] setBreakpoint success, scriptId: \"+n+\", lineNumber: \"+s),this.xhrSend(ResponseEvent.ById,o,e,r)}else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpoint not sticky line, scriptId: \"+n+\", lineNumber: \"+s);else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpoint no contextMap, scriptId: \"+n)},StickyFinger.prototype.removeBreakpoint=function(e,t){var r=t.breakpointId,n=this.breakpointIdMap[r];n||this.originConsoleAPI.warn(\"[tyro-agent] removeBreakpoint no breakpointId \"+r);var s=n.contextId,i=n.line;delete this.breakpointMap[s][i],this.originConsoleAPI.log(\"[tyro-agent] removeBreakpoint success, breakpointId: \"+r+\", scriptId: \"+s+\", line: \"+i)},StickyFinger.prototype.setPauseOnExceptions=function(e,t){t&&[\"none\",\"uncaught\",\"all\"].includes(t.state)?(this.pauseOnExceptions=t.state,this.originConsoleAPI.log(\"[tyro-agent] setPauseOnExceptions success, pauseOnExceptions state \"+this.pauseOnExceptions)):this.originConsoleAPI.warn(\"[tyro-agent] setPauseOnExceptions state invalid: \"+TyroUtil.safeJSONStringify(t))},StickyFinger.prototype.setAsyncCallStackDepth=function(e,t){!t||\"number\"!=typeof t.maxDepth||t.maxDepth<0?this.originConsoleAPI.warn(\"[tyro-agent] setAsyncCallStackDepth maxDepth invalid: \"+TyroUtil.safeJSONStringify(t)):(this.asyncCallStackDepth=t.maxDepth,this.originConsoleAPI.log(\"[tyro-agent] setAsyncCallStackDepth success, maxDepth \"+this.asyncCallStackDepth))},StickyFinger.prototype.getProperties=function(e,t,r){this.xhrSend(ResponseEvent.ById,this.remoteObjectParser.getProperties(t),e,r)},StickyFinger.prototype.generateFingerId=function(){return this.fingerId+=1,this.fingerId},StickyFinger}(),Agent=function(){function e(t,r){if(e.singleton)return e.singleton;this.host=\"https://\"+getServerConfig().domain,this.stickyFinger=new StickyFinger(\"undefined\"!=typeof window?window:self,this.host,t,r)}return e.getShadowMethod=function(){this.globalReference=self,\"function\"==typeof eval?this.evalReference=eval:\"function\"==typeof __eval&&(this.evalReference=__eval)},e.setShadowMethod=function(){this.globalReference.eval=this.evalReference},e.setInstrumentId=function(e){this.instrumentId=e},e.register=function(t,r){if(!e.singleton){if(!this.instrumentId&&\"undefined\"!=typeof my)try{this.instrumentId=getStartupParams().tyroId}catch(e){}e.instance(this.instrumentId,t)}e.singleton.stickyFinger.register(t,r)},e.sticky=function(t,r,n){return e.singleton.stickyFinger.sticky(t,r,n)},e.getEvaluateOnCallFrameExpression=function(){return e.singleton.stickyFinger.evaluateOnCallFrameExpression},e.evaluateOnCallFrame=function(t,r,n,s){return e.singleton.stickyFinger.evaluateOnCallFrame(t,r,n,s)},e.getScopeVariables=function(){return e.singleton.stickyFinger.scopeVariables},e.inflateStickyParamsObject=function(t){return e.singleton.stickyFinger.inflateStickyParamsObject(t)},e.entry=function(t,r){return e.singleton.stickyFinger.fingerEntry(t,r)},e.exit=function(t,r,n){e.singleton.stickyFinger.fingerExit(t,r,n)},e.instance=function(t,r){e.singleton=new e(t,r)},e.isPhone=!0,e.instrumentId=null,e}();Agent.getShadowMethod();var globalReference=\"undefined\"!=typeof window?window:self;globalReference.Agent||(globalReference.StickyFinger=StickyFinger,globalReference.Agent=Agent)}();"}
|
|
1
|
+
{"bugmeRRemote":"!function(){\"use strict\";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if(\"function\"!=typeof n&&null!==n)throw new TypeError(\"Class extends value \"+String(n)+\" is not a constructor or null\");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n,r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(n)throw new TypeError(\"Generator is already executing.\");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function s(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}!function(e){e.pageResume=\"pageResume\",e.pagePause=\"pagePause\",e.resume=\"resume\",e.hashchange=\"hashchange\"}(n||(n={}));var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)};function u(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)};function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(n)throw new TypeError(\"Generator is already executing.\");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}var h=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!(\"get\"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function p(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function f(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function g(e){return this instanceof g?(this.v=e,this):new g(e)}var v,m=Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t},y=Object.freeze({__proto__:null,get __assign(){return c},__asyncDelegator:function(e){var t,n;return t={},r(\"next\"),r(\"throw\",(function(e){throw e})),r(\"return\"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:g(e[r](t)),done:!1}:o?o(t):t}:o}},__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var r,o=n.apply(e,t||[]),i=[];return r={},s(\"next\"),s(\"throw\"),s(\"return\"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof g?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function u(e){a(\"next\",e)}function c(e){a(\"throw\",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r(\"next\"),r(\"throw\"),r(\"return\"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}},__await:g,__awaiter:l,__classPrivateFieldGet:function(e,t,n,r){if(\"a\"===n&&!r)throw new TypeError(\"Private accessor was defined without a getter\");if(\"function\"==typeof t?e!==t||!r:!t.has(e))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return\"m\"===n?r:\"a\"===n?r.call(e):r?r.value:t.get(e)},__classPrivateFieldIn:function(e,t){if(null===t||\"object\"!=typeof t&&\"function\"!=typeof t)throw new TypeError(\"Cannot use 'in' operator on non-object\");return\"function\"==typeof e?t===e:e.has(t)},__classPrivateFieldSet:function(e,t,n,r,o){if(\"m\"===r)throw new TypeError(\"Private method is not writable\");if(\"a\"===r&&!o)throw new TypeError(\"Private accessor was defined without a setter\");if(\"function\"==typeof t?e!==t||!o:!t.has(e))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return\"a\"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},__createBinding:h,__decorate:function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},__esDecorate:function(e,t,n,r,o,i){function s(e){if(void 0!==e&&\"function\"!=typeof e)throw new TypeError(\"Function expected\");return e}for(var a,u=r.kind,c=\"getter\"===u?\"get\":\"setter\"===u?\"set\":\"value\",l=!t&&e?r.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),h=!1,p=n.length-1;p>=0;p--){var f={};for(var g in r)f[g]=\"access\"===g?{}:r[g];for(var g in r.access)f.access[g]=r.access[g];f.addInitializer=function(e){if(h)throw new TypeError(\"Cannot add initializers after decoration has completed\");i.push(s(e||null))};var v=(0,n[p])(\"accessor\"===u?{get:d.get,set:d.set}:d[c],f);if(\"accessor\"===u){if(void 0===v)continue;if(null===v||\"object\"!=typeof v)throw new TypeError(\"Object expected\");(a=s(v.get))&&(d.get=a),(a=s(v.set))&&(d.set=a),(a=s(v.init))&&o.push(a)}else(a=s(v))&&(\"field\"===u?o.push(a):d[c]=a)}l&&Object.defineProperty(l,r.name,d),h=!0},__exportStar:function(e,t){for(var n in e)\"default\"===n||Object.prototype.hasOwnProperty.call(t,n)||h(t,e,n)},__extends:u,__generator:d,__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&h(t,e,n);return m(t,e),t},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,\"raw\",{value:t}):e.raw=t,e},__metadata:function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__param:function(e,t){return function(n,r){t(n,r,e)}},__propKey:function(e){return\"symbol\"==typeof e?e:\"\".concat(e)},__read:f,__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},__runInitializers:function(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0},__setFunctionName:function(e,t,n){return\"symbol\"==typeof t&&(t=t.description?\"[\".concat(t.description,\"]\"):\"\"),Object.defineProperty(e,\"name\",{configurable:!0,value:n?\"\".concat(n,\" \",t):t})},__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e},__spreadArray:function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r},__values:p}),b={0:{openchannel:\"openchannel.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},1:{openchannel:\"miniprogram.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},2:{openchannel:\"openchannel-pre.alipay.com\",hpmweb:\"hpmweb-pre.alipay.com\"}},_=function(){function e(e){this.url=\"\",this.opened=!1,e&&(this.url=e),this.onSocketError=this.onSocketError.bind(this),this.onSocketClose=this.onSocketClose.bind(this),this.onSocketMessage=this.onSocketMessage.bind(this),this.onSocketOpen=this.onSocketOpen.bind(this)}return Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){return this.opened},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(e){this.url=e},e}();\"undefined\"!=typeof WebSocket&&WebSocket.OPEN&&(v=WebSocket),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t}u(t,e),t.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"WebSocket url required\");this.socket=new v(this.url),this.socket.onopen=this.onSocketOpen,this.socket.onmessage=function(t){\"string\"==typeof t.data?e.onSocketMessage(t.data):console.warn(\"[DEBUG] invalid message\",t.data)},this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError},t.prototype.close=function(){this.opened&&this.socket.close()},t.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>2e7||(this.opened?this.socket.send(t):this.messageBeforeSocketOpen.push(t))},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){var e=this;this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[])},t.prototype.onSocketClose=function(){this.opened=!1,console.log(\"[DEBUG] connection closed\")},t.prototype.onSocketError=function(e){console.error(\"[DEBUG] connection onerror\",e)}}(_),function(e){function t(t){var n=e.call(this,t)||this;return n.messageBeforeSocketOpen=[],n.useFromRemoteDebugFlag=!0,n}u(t,e),t.prototype.open=function(){var e=this;this.socketTask=AFAppX.bridge.connectSocket({__taskIdPrefix:\"remote_debug_tbr\",fromRemoteDebug:this.useFromRemoteDebugFlag,url:this.url,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(){e.opened=!1,e.onSocketClose()})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)}))},t.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>2e7||(this.opened?this.socketTask.send({fromRemoteDebug:this.useFromRemoteDebugFlag,data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t))},t.prototype.close=function(){this.opened&&this.socketTask.close({fromRemoteDebug:this.useFromRemoteDebugFlag})},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){},t.prototype.onSocketError=function(e){},t.prototype.onSocketClose=function(){},t.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[]),this.onSocketOpen())}}(_);var w={\"调试结束\":\"调试结束\",\"callExitApp_退出\":\"退出\",\"callExitApp_取消\":\"取消\"},S={\"调试结束\":\"Debugging Ended\",\"callExitApp_退出\":\"Exit\",\"callExitApp_取消\":\"Cancel\"},I=function(){function e(e){var t={zhCN:w,enUS:S};this.i18nMessages=t[function(e){switch(e){case\"zhCN\":case\"zh-SG\":case\"zh-HK\":case\"zh-TW\":case\"zh-Hans\":case\"zh-CN\":return\"zhCN\";default:return\"enUS\"}}(e)]}return e.prototype.format=function(e,t){var n=this.i18nMessages[e];return\"string\"==typeof n?n:\"function\"==typeof n?n(t):e},e}(),k=function(){function e(e,t,n){var r=this;this.connection=e,this.uuid=t,this.agentId=n,e.addOnCloseHandler((function(){return l(r,void 0,void 0,(function(){return d(this,(function(e){switch(e.label){case 0:return[4,X()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))})),this.startDebugSession=this.startDebugSession.bind(this)}return e.prototype.setup=function(){window.location.hash?this.startDebugSession():window.addEventListener(n.hashchange,this.startDebugSession)},e.prototype.checkHostBeforeAgentConnect=function(){var e=this;if(this.connection.isActivated){if(\"string\"==typeof __BUGME_EXTERNAL_URL__&&__BUGME_EXTERNAL_URL__)return this.connection.open(),void this.emitDocumentUpdated();var t=new XMLHttpRequest;t.onloadend=function(){return l(e,void 0,void 0,(function(){return d(this,(function(e){switch(e.label){case 0:try{if(console.log(\"bugme check host response\",t.responseText),JSON.parse(t.responseText||\"{}\").status)return this.connection.open(),this.emitDocumentUpdated(),[2]}catch(e){console.error(\"bugme check host error\",e)}return[4,X()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))},t.timeout=5e3;var n,r,o=$();o.startsWith(\"wss\")?(n=\"https\",r=o.split(\"wss://\")[1]):o.startsWith(\"ws\")&&(n=\"http\",r=o.split(\"ws://\")[1]),t.open(\"GET\",\"\".concat(n,\"://\").concat(r,\"/bugme/channel/checkHost?id=\").concat(this.uuid)),t.send()}},e.prototype.emitDocumentUpdated=function(){this.connection.sendSocketMessage(JSON.stringify({method:\"DOM.documentUpdated\",params:{bugmeAgentId:this.agentId}}))},e.prototype.resetAxmlVisitedState=function(){},e.prototype.startDebugSession=function(){var e,t=this;window.removeEventListener(n.hashchange,this.startDebugSession),document.addEventListener(n.pageResume,(function(){t.connection.activate(),e=setTimeout((function(){t.connection.isSocketOpened&&t.emitDocumentUpdated()}),500)})),document.addEventListener(n.pagePause,(function(){t.connection.inActivate(),t.resetAxmlVisitedState(),clearTimeout(e)})),document.addEventListener(n.resume,(function(){t.connection.activate(),t.connection.isSocketOpened||t.checkHostBeforeAgentConnect()}))},e}();var C={};Object.defineProperty(C,\"__esModule\",{value:!0}),C.compareVersion=C.getAriverVersion=C.isXRiver=O=C.getLanguageFromUA=C.isAndroid=C.getPlatformType=C.getUserAgent=void 0;var E,T=/iPhone|iPad/i;function x(){return\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\"}function N(){if(E)return E;if(\"undefined\"!=typeof navigator){var e=x();E=e.indexOf(\"Android\")>-1?2:e.match(T)?1:0}else E=\"undefined\"!=typeof WXEnvironment?\"iOS\"===WXEnvironment.platform?1:2:1;return E}C.getUserAgent=x,C.getPlatformType=N,C.isAndroid=function(){return 2===N()};var O=C.getLanguageFromUA=function(){var e=x();if(!e)return\"\";var t=e.match(/Language\\/([\\w-]+)/);return t?t[1]:\"\"};function A(e,t){for(var n=[],r=0,o=e.split(t);r<o.length;r++){var i=o[r];n.push(parseInt(i,10))}return n}C.isXRiver=function(){return x().indexOf(\"XRiver\")>-1},C.getAriverVersion=function(e){var t=e.match(/Ariver\\/(\\d+\\.\\d+\\.\\d+)/);if(t)return t[1]},C.compareVersion=function(e,t){if(e&&t){for(var n=A(e,\".\"),r=A(t,\".\"),o=0,i=0,s=void 0,a=void 0;i<n.length;i++){if((s=r[i]||0)>(a=n[i]||0)){o=-1;break}if(s<a){o=1;break}}return o}return 0};var M=!1;function P(){if(!M){var e=new I(O());M=!0,window.AlipayJSBridge.call(\"alert\",{title:e.format(\"调试结束\"),button:e.format(\"callExitApp_退出\")},(function(){window.AlipayJSBridge.call(\"exitApp\"),M=!1}))}}var L={};Object.defineProperty(L,\"__esModule\",{value:!0});var D=L.EventListener=void 0,R=function(){function e(e,t){this.name=e,this.target=t,this.callbackHandlers=new Map,this.callbackBeforeDispatchInterceptor=new Map,this._callbackGlobalMap=new Map,t&&(t.addEventListener&&(this.baseAddEventListener=t.addEventListener.bind(t)),t.removeEventListener&&(this.baseRemoveEventListener=t.removeEventListener.bind(t)))}return e.prototype.tryInitEventListenerOnWindow=function(e){var t,n,r=this;if(!(this.callbackHandlers.has(e)&&(null===(t=this.callbackHandlers.get(e))||void 0===t?void 0:t.length)>0&&this._callbackGlobalMap.has(e))){this.callbackHandlers.set(e,[]);var o=function(e){r.dispatchEvent(e)};this._callbackGlobalMap.set(e,o),null===(n=this.baseAddEventListener)||void 0===n||n.call(this,e,o)}},e.prototype.tryRemoveEventListenerInTarget=function(e){var t,n;if(!this.callbackHandlers.has(e)||0===(null===(t=this.callbackHandlers.get(e))||void 0===t?void 0:t.length)){var r=this._callbackGlobalMap.get(e);r&&(null===(n=this.baseRemoveEventListener)||void 0===n||n.call(this,e,r),this._callbackGlobalMap.delete(e))}},e.prototype.addEventListener=function(e,t){this.callbackHandlers.has(e)||this.tryInitEventListenerOnWindow(e);var n=this.callbackHandlers.get(e);null==n||n.push({fn:t})},e.prototype.removeEventListener=function(e,t){var n=this.callbackHandlers.get(e);n.forEach((function(e,r){e.fn===t&&n.splice(r,1)})),this.tryRemoveEventListenerInTarget(e)},e.prototype.dispatchEvent=function(e){var t,n=null!==(t=e.type)&&void 0!==t?t:e.name;if(this.callbackHandlers&&this.callbackHandlers.has(n)){var r=this.callbackHandlers.get(n),o=this.callbackBeforeDispatchInterceptor.get(n);if(o&&o.length>0)for(var i=0;i<o.length;i++)if(!(0,o[i])(e))return;for(var s=0,a=r;s<a.length&&(a[s].fn.call(null,e),!e.defaultPrevented);s++);}},e.prototype.addInterceptor=function(e,t){this.callbackBeforeDispatchInterceptor.has(e)||this.callbackBeforeDispatchInterceptor.set(e,[]);var n=this.callbackBeforeDispatchInterceptor.get(e);null==n||n.push(t)},e.prototype.patch=function(){var e=this;this.disposePatch&&this.disposePatch();var t=this.target;t&&(t.addEventListener&&(t.addEventListener=this.addEventListener.bind(this)),t.removeEventListener&&(t.removeEventListener=this.removeEventListener.bind(this))),(this.baseAddEventListener||this.baseRemoveEventListener)&&(this.disposePatch=function(){e.disposePatch=void 0,t&&(e.baseAddEventListener&&(t.addEventListener=e.baseAddEventListener),e.baseRemoveEventListener&&(t.removeEventListener=e.baseRemoveEventListener))})},e}();D=L.EventListener=R;var B={},j=function(e){if(e.__esModule)return e;var t=e.default;if(\"function\"==typeof t){var n=function e(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,\"__esModule\",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}(y);Object.defineProperty(B,\"__esModule\",{value:!0});var F=B.createEvent4WebEngine=B.Event=void 0,U=j,z=C,H=function(){function e(e,t,n){this.type=String(e),this.engineType=n,this.data=t,this._preventDefault=!1}return e.prototype.preventDefault=function(){this._preventDefault=!0},e.prototype.isDefaultPrevented=function(){return!!this._preventDefault},e}();B.Event=H,F=B.createEvent4WebEngine=function(e,t){var n,r,o=t.param,i=t.viewId+\"\";o&&\"object\"==typeof o&&2===(0,z.getPlatformType)()?(n=o.data,o.type,r=U.__rest(o,[\"data\",\"type\"])):n=o,n?n.instanceId=i:n={instanceId:i};var s=new H(e,n,1);if(r)try{Object.assign(s,r)}catch(e){}return s};var G,W,q={};G=q,Object.defineProperty(G,\"__esModule\",{value:!0}),G.EWorkerAppEvent=void 0,(W=G.EWorkerAppEvent||(G.EWorkerAppEvent={})).DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",W.DebugMaskButtonClick=\"tinyRemoteDebugMaskButtonClick\";var Z=new(function(){function e(){var e=this;this.eventMap={},this.documentEventListeners=new D(\"document\",document),this.documentEventListeners.addEventListener(\"push\",(function(t){var n=t.data;if(n&&(n.func||n.beforeunload)){var r=n.func||\"beforeunload\",o=F(r,n),i=e.eventMap[r];i&&i.forEach((function(e){e(o)}))}}))}return e.prototype.on=function(e,t){var n=this;return this.eventMap[e]||(this.eventMap[e]=[]),this.eventMap[e].push(t),function(){n.off(e,t)}},e.prototype.off=function(e,t){this.eventMap[e]&&(this.eventMap[e]=this.eventMap[e].filter((function(e){return e!==t})))},e}());function Y(e){Z.on(q.EWorkerAppEvent.DebugPanelClick,(function(){P(),(null==e?void 0:e.onDebugPanelClick)&&e.onDebugPanelClick()})),Z.on(q.EWorkerAppEvent.DebugMaskButtonClick,(function(){}))}function V(){return l(this,void 0,void 0,(function(){return d(this,(function(e){return window.AlipayJSBridge?[2]:[2,new Promise((function(e){document.addEventListener(\"AlipayJSBridgeReady\",e)}))]}))}))}function X(e){return void 0===e&&(e=1e3),new Promise((function(t){setTimeout((function(){t()}),e)}))}function J(){var e,t;return\"string\"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__?__BUGME_EXTERNAL_CHANNEL__:null===(t=null===(e=window.AlipayJSBridge)||void 0===e?void 0:e.startupParams)||void 0===t?void 0:t.channelId}function Q(e,t){return\"string\"==typeof __BUGME_EXTERNAL_URL__&&/^wss?:\\/\\//.test(__BUGME_EXTERNAL_URL__)?__BUGME_EXTERNAL_URL__:(console.log(\"bugme uuid=\".concat(e,\", agentId=\").concat(t)),e&&t?\"\".concat($(),\"/bugme/agent/\").concat(e,\"?agentId=\").concat(t):\"\")}function $(){var e,t,n,r,o=null===(t=null===(e=window.AlipayJSBridge)||void 0===e?void 0:e.startupParams)||void 0===t?void 0:t.remoteCh,i=null===(r=null===(n=window.AlipayJSBridge)||void 0===n?void 0:n.startupParams)||void 0===r?void 0:r.channel;return null!=i?i:\"wss://\"+(b[o]||b[0]).hpmweb}function K(e){return!0===e||\"yes\"===e||\"YES\"===e}function ee(){return/LyraVM/i.test(navigator.userAgent)||\"string\"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__}function te(e){return K(e.appxRouteFramework)}function ne(e,t,n,r,o){var i,s,a=null,u=0;o||(o={});var c=function(){u=!1===o.leading?0:Date.now(),a=null,s=e.apply(null,i),i=null};return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h=Date.now();u||!1!==o.leading||(u=h);var p=t-(h-u);return i=l,p<=0||p>t?(r(a),a=null,u=h,s=e.apply(null,i),i=null):a||!1===o.trailing||(a=n(c,p)),s}}var re,oe=function(){function e(e){this.url=\"\",this.opened=!1,e&&(this.url=e),this.onSocketError=this.onSocketError.bind(this),this.onSocketClose=this.onSocketClose.bind(this),this.onSocketMessage=this.onSocketMessage.bind(this),this.onSocketOpen=this.onSocketOpen.bind(this)}return Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){return this.opened},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(e){this.url=e},e}();\"undefined\"!=typeof WebSocket&&WebSocket.OPEN&&(re=WebSocket);var ie=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t}return t(n,e),n.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"WebSocket url required\");this.socket=new re(this.url),this.socket.onopen=this.onSocketOpen,this.socket.onmessage=function(t){\"string\"==typeof t.data?e.onSocketMessage(t.data):console.warn(\"[DEBUG] invalid message\",t.data)},this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError},n.prototype.close=function(){this.opened&&this.socket.close()},n.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>2e7||(this.opened?this.socket.send(t):this.messageBeforeSocketOpen.push(t))},n.prototype.onSocketMessage=function(e){},n.prototype.onSocketOpen=function(){var e=this;this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[])},n.prototype.onSocketClose=function(){this.opened=!1,console.log(\"[DEBUG] connection closed\")},n.prototype.onSocketError=function(e){console.error(\"[DEBUG] connection onerror\",e)},n}(oe);!function(e){function n(t){var n=e.call(this,t)||this;return n.messageBeforeSocketOpen=[],n.useFromRemoteDebugFlag=!0,n}t(n,e),n.prototype.open=function(){var e=this;this.socketTask=AFAppX.bridge.connectSocket({__taskIdPrefix:\"remote_debug_tbr\",fromRemoteDebug:this.useFromRemoteDebugFlag,url:this.url,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(){e.opened=!1,e.onSocketClose()})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)}))},n.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>2e7||(this.opened?this.socketTask.send({fromRemoteDebug:this.useFromRemoteDebugFlag,data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t))},n.prototype.close=function(){this.opened&&this.socketTask.close({fromRemoteDebug:this.useFromRemoteDebugFlag})},n.prototype.onSocketMessage=function(e){},n.prototype.onSocketOpen=function(){},n.prototype.onSocketError=function(e){},n.prototype.onSocketClose=function(){},n.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[]),this.onSocketOpen())}}(oe);var se,ae=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.startDebugSession=function(){var t=this;e.prototype.startDebugSession.call(this);var n=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!n)throw new Error(\"bugme no react hook\");n.wasCommited?this.checkHostBeforeAgentConnect():n.on(\"first-commit\",(function(){t.checkHostBeforeAgentConnect()}))},n}(k),ue=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.onCloseHandlerSet=new Set,t.isActive=!0,t.messageBeforeHandler=[],t}return t(n,e),Object.defineProperty(n.prototype,\"isActivated\",{get:function(){return this.isActive},enumerable:!1,configurable:!0}),n.prototype.activate=function(){this.isActive=!0},n.prototype.inActivate=function(){this.isActive=!1},n.prototype.sendMessage=function(e,t){this.sendSocketMessage(JSON.stringify({method:e,params:t}))},n.prototype.sendSocketMessage=function(t,n){(this.isActive||n)&&e.prototype.sendSocketMessage.call(this,t)},n.prototype.onMessage=function(e){if(this.devtoolHandler)throw new Error(\"conflict handler\");this.devtoolHandler=e,this.messageBeforeHandler.forEach(this.handleMessage),this.messageBeforeHandler=[]},n.prototype.addOnCloseHandler=function(e){this.onCloseHandlerSet.add(e)},n.prototype.onSocketMessage=function(e){\"HOST:LEAVE\"!==e||ee()?this.devtoolHandler?this.handleMessage(e):this.messageBeforeHandler.push(e):P()},n.prototype.onSocketClose=function(){e.prototype.onSocketClose.call(this),this.onCloseHandlerSet.forEach((function(e){try{e()}catch(e){console.warn(e)}}))},n.prototype.handleMessage=function(e){var t,n=this;try{t=JSON.parse(e)}catch(t){return void console.warn(\"invalid json message: \",e)}t.sessionId||(t.method?this.devtoolHandler&&this.devtoolHandler(t.method,t.params,(function(e,r){e?n.sendSocketMessage(JSON.stringify({id:t.id,error:{code:e,message:\"\".concat(e)}}),!0):n.sendSocketMessage(JSON.stringify({id:t.id,result:r}),!0)})):console.warn(\"invalid json message: \",e))},n}(ie);!function(e){e[e.Element=1]=\"Element\",e[e.Text=2]=\"Text\",e[e.Component=3]=\"Component\"}(se||(se={}));var ce=function(e,t){return ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ce(e,t)};function le(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}ce(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var de=function(){return de=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},de.apply(this,arguments)};function he(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError(\"Generator is already executing.\");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function pe(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function fe(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var ge=Function.prototype.apply.call.bind(Function.prototype.apply);function ve(e,t,n){return ge(e,t,n)}function me(e,t,n,r,o){var i,s,a=null,u=0;o||(o={});var c=function(){u=!1===o.leading?0:Date.now(),a=null,s=ve(e,null,i),i=null};return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h=Date.now();u||!1!==o.leading||(u=h);var p=t-(h-u);return i=l,p<=0||p>t?(r(a),a=null,u=h,s=ve(e,null,i),i=null):a||!1===o.trailing||(a=n(c,p)),s}}var ye,be,_e,we=\"__weak_set_key__yek_tes_kaew__\",Se=1;function Ie(){var e=Object.prototype.hasOwnProperty,t=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,value:n,writable:!0}):e[t]=n};function n(e){return Object(e)===e}function r(){if(void 0===this)throw new TypeError(\"Constructor WeakMap requires 'new'\");if(t(this,\"_id\",\"_WeakMap\"+\"_\"+i()+\".\"+i()),arguments.length>0)throw new TypeError(\"WeakMap iterable is not supported\")}function o(t,r){if(!n(t)||!e.call(t,\"_id\"))throw new TypeError(r+\" method called on incompatible receiver \"+typeof t)}function i(){return Math.random().toString().substring(2)}return t(r.prototype,\"delete\",(function(e){if(o(this,\"delete\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),t(r.prototype,\"get\",(function(e){if(o(this,\"get\"),n(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),t(r.prototype,\"has\",(function(e){if(o(this,\"has\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),t(r.prototype,\"set\",(function(e,r){if(o(this,\"set\"),!n(e))throw new TypeError(\"Invalid value used as weak map key\");var i=e[this._id];return i&&i[0]===e?(i[1]=r,this):(t(e,this._id,[e,r]),this)})),t(r,\"_polyfill\",!0),r}function ke(){var e=\"undefined\"!=typeof Map;ye=e?Map:function(){var e=function(){function e(){this.keyList=[],this.valueList=[]}return e.prototype.set=function(e,t){var n=this.keyList,r=n.indexOf(e);if(-1===r){var o=n.push(e)-1;this.valueList[o]=t}else this.valueList[r]=t;return this},e.prototype.get=function(e){var t=this.keyList.indexOf(e);return-1===t?void 0:this.valueList[t]},e.prototype.forEach=function(e){for(var t=this.keyList.slice(),n=this.valueList.slice(),r=t.length,o=0;o<r;o++){var i=t[o];e(n[o],i,this)}},Object.defineProperty(e.prototype,\"size\",{get:function(){return this.keyList.length},enumerable:!1,configurable:!0}),e.prototype.has=function(e){return-1!==this.keyList.indexOf(e)},e.prototype.delete=function(e){var t=this.keyList.indexOf(e);return-1!==t&&(this.keyList.splice(t,1),this.valueList.splice(t,1),!0)},e.prototype.clear=function(){this.keyList=[],this.valueList=[]},e}();return e}()}function Ce(){var e;return be||(e=\"undefined\"!=typeof WeakMap,be=e?WeakMap:Ie()),new be}function Ee(){var e=\"undefined\"!=typeof WeakSet;_e=e?WeakSet:function(){function e(){this.elementKey=we+Se++}return e.prototype.has=function(e){return 1===e[this.elementKey]},e.prototype.add=function(e){return e[this.elementKey]=1,this},e.prototype.delete=function(e){e[this.elementKey]=null},e}()}function Te(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function xe(e,t,n,r,o,i){return Te((s=Te(Te(t,e),Te(r,i)))<<(a=o)|s>>>32-a,n);var s,a}function Ne(e,t,n,r,o,i,s){return xe(t&n|~t&r,e,t,o,i,s)}function Oe(e,t,n,r,o,i,s){return xe(t&r|n&~r,e,t,o,i,s)}function Ae(e,t,n,r,o,i,s){return xe(t^n^r,e,t,o,i,s)}function Me(e,t,n,r,o,i,s){return xe(n^(t|~r),e,t,o,i,s)}function Pe(e,t){var n,r,o,i,s;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var a=1732584193,u=-271733879,c=-1732584194,l=271733878;for(n=0;n<e.length;n+=16)r=a,o=u,i=c,s=l,a=Ne(a,u,c,l,e[n],7,-680876936),l=Ne(l,a,u,c,e[n+1],12,-389564586),c=Ne(c,l,a,u,e[n+2],17,606105819),u=Ne(u,c,l,a,e[n+3],22,-1044525330),a=Ne(a,u,c,l,e[n+4],7,-176418897),l=Ne(l,a,u,c,e[n+5],12,1200080426),c=Ne(c,l,a,u,e[n+6],17,-1473231341),u=Ne(u,c,l,a,e[n+7],22,-45705983),a=Ne(a,u,c,l,e[n+8],7,1770035416),l=Ne(l,a,u,c,e[n+9],12,-1958414417),c=Ne(c,l,a,u,e[n+10],17,-42063),u=Ne(u,c,l,a,e[n+11],22,-1990404162),a=Ne(a,u,c,l,e[n+12],7,1804603682),l=Ne(l,a,u,c,e[n+13],12,-40341101),c=Ne(c,l,a,u,e[n+14],17,-1502002290),a=Oe(a,u=Ne(u,c,l,a,e[n+15],22,1236535329),c,l,e[n+1],5,-165796510),l=Oe(l,a,u,c,e[n+6],9,-1069501632),c=Oe(c,l,a,u,e[n+11],14,643717713),u=Oe(u,c,l,a,e[n],20,-373897302),a=Oe(a,u,c,l,e[n+5],5,-701558691),l=Oe(l,a,u,c,e[n+10],9,38016083),c=Oe(c,l,a,u,e[n+15],14,-660478335),u=Oe(u,c,l,a,e[n+4],20,-405537848),a=Oe(a,u,c,l,e[n+9],5,568446438),l=Oe(l,a,u,c,e[n+14],9,-1019803690),c=Oe(c,l,a,u,e[n+3],14,-187363961),u=Oe(u,c,l,a,e[n+8],20,1163531501),a=Oe(a,u,c,l,e[n+13],5,-1444681467),l=Oe(l,a,u,c,e[n+2],9,-51403784),c=Oe(c,l,a,u,e[n+7],14,1735328473),a=Ae(a,u=Oe(u,c,l,a,e[n+12],20,-1926607734),c,l,e[n+5],4,-378558),l=Ae(l,a,u,c,e[n+8],11,-2022574463),c=Ae(c,l,a,u,e[n+11],16,1839030562),u=Ae(u,c,l,a,e[n+14],23,-35309556),a=Ae(a,u,c,l,e[n+1],4,-1530992060),l=Ae(l,a,u,c,e[n+4],11,1272893353),c=Ae(c,l,a,u,e[n+7],16,-155497632),u=Ae(u,c,l,a,e[n+10],23,-1094730640),a=Ae(a,u,c,l,e[n+13],4,681279174),l=Ae(l,a,u,c,e[n],11,-358537222),c=Ae(c,l,a,u,e[n+3],16,-722521979),u=Ae(u,c,l,a,e[n+6],23,76029189),a=Ae(a,u,c,l,e[n+9],4,-640364487),l=Ae(l,a,u,c,e[n+12],11,-421815835),c=Ae(c,l,a,u,e[n+15],16,530742520),a=Me(a,u=Ae(u,c,l,a,e[n+2],23,-995338651),c,l,e[n],6,-198630844),l=Me(l,a,u,c,e[n+7],10,1126891415),c=Me(c,l,a,u,e[n+14],15,-1416354905),u=Me(u,c,l,a,e[n+5],21,-57434055),a=Me(a,u,c,l,e[n+12],6,1700485571),l=Me(l,a,u,c,e[n+3],10,-1894986606),c=Me(c,l,a,u,e[n+10],15,-1051523),u=Me(u,c,l,a,e[n+1],21,-2054922799),a=Me(a,u,c,l,e[n+8],6,1873313359),l=Me(l,a,u,c,e[n+15],10,-30611744),c=Me(c,l,a,u,e[n+6],15,-1560198380),u=Me(u,c,l,a,e[n+13],21,1309151649),a=Me(a,u,c,l,e[n+4],6,-145523070),l=Me(l,a,u,c,e[n+11],10,-1120210379),c=Me(c,l,a,u,e[n+2],15,718787259),u=Me(u,c,l,a,e[n+9],21,-343485551),a=Te(a,r),u=Te(u,o),c=Te(c,i),l=Te(l,s);return[a,u,c,l]}function Le(e){var t,n=\"\",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function De(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function Re(e){var t,n,r=\"0123456789abcdef\",o=\"\";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),o+=r.charAt(t>>>4&15)+r.charAt(15&t);return o}function Be(e){return unescape(encodeURIComponent(e))}function je(e){return function(e){return Le(Pe(De(e),8*e.length))}(Be(e))}function Fe(e,t){return function(e,t){var n,r,o=De(e),i=[],s=[];for(i[15]=s[15]=void 0,o.length>16&&(o=Pe(o,8*e.length)),n=0;n<16;n+=1)i[n]=909522486^o[n],s[n]=1549556828^o[n];return r=Pe(i.concat(De(t)),512+8*t.length),Le(Pe(s.concat(r),640))}(Be(e),Be(t))}function Ue(e,t,n){return t?n?Fe(t,e):function(e,t){return Re(Fe(e,t))}(t,e):n?je(e):function(e){return Re(je(e))}(e)}Ce();var ze=function(){function e(e){this.provider=e,this.index=0}return e.prototype[Symbol.iterator]=function(){return this},e.prototype.next=function(e){return this.provider.item(this.index++)},e.prototype.throw=function(e){throw new Error(\"throw unimplemented\")},e.prototype.return=function(e){throw new Error(\"return unimplemented\")},e}(),He=function(){function e(e){this.generator=e,this.done=!1,this.results=[]}return e.prototype.ref=function(){return new ze(this)},e.prototype.item=function(e){for(;e>this.results.length-1;){var t=this.generator.next();if(!1!==t.done){this.done=!0;break}this.results.push(t.value)}return this.done?{done:!0,value:null}:{done:!1,value:this.results[e]}},e}();function Ge(e){if(e&&e.node)for(var t=e.node&&e.node.nextSibling;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}var We=function(){function e(){}return e.prototype.iterateTargetAXML=function(e,t){var n,r,o,i;return he(this,(function(s){switch(s.label){case 0:if(n=function(e){for(var t=e.node&&e.node.firstChild;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}(e),!n)return[2,null];r=n.node,s.label=1;case 1:return r?(o=r).component&&2===o.component.type?[4,i=o.component]:[3,4]:[3,5];case 2:return s.sent(),[5,pe(this.iterateChildTargetByOwnerId(i,t))];case 3:s.sent(),s.label=4;case 4:return r=r.nextSibling,[3,1];case 5:return[2,null]}}))},e.prototype.iterateChildTargetByOwnerId=function(e,t,n){var r,o,i,s,a,u,c,l,d,h,p,f,g;return he(this,(function(v){switch(v.label){case 0:if(!e.slotProviders)return[2,null];r=e.slotProviders,v.label=1;case 1:v.trys.push([1,13,14,15]),o=pe(r),i=o.next(),v.label=2;case 2:if(i.done)return[3,12];s=i.value,a=this.iterateDeepSlotBlockByOwnerId(e,t),v.label=3;case 3:if(!1!==(u=a.next()).done)return[3,9];if(!(c=u.value).node)return[3,8];if(c.provider!==s)return[3,8];l=c.node.firstChild,v.label=4;case 4:return l?(d=l).component?2!==d.component.type?[3,7]:[4,h=d.component]:[3,7]:[3,8];case 5:return v.sent(),n?[3,7]:[5,pe(this.iterateChildTargetByOwnerId(h,t))];case 6:v.sent(),v.label=7;case 7:return l=l.nextSibling,[3,4];case 8:return[3,10];case 9:return[3,11];case 10:return[3,3];case 11:return i=o.next(),[3,2];case 12:return[3,15];case 13:return p=v.sent(),f={error:p},[3,15];case 14:try{i&&!i.done&&(g=o.return)&&g.call(o)}finally{if(f)throw f.error}return[7];case 15:return[2,null]}}))},e.prototype.iterateDeepSlotBlockByOwnerId=function(e,t){var n,r,o,i;return he(this,(function(s){switch(s.label){case 0:if(!e.node)return[2,null];n=e.node.firstChild,s.label=1;case 1:return n?(r=n).component&&1===r.component.type?(o=r.component,a=o.provider,((u=a.slotProviderParentContextInstance).type<2?u.option.parentTarget:u).targetId!==t?[3,3]:[4,o]):[3,6]:[3,9];case 2:return s.sent(),[3,5];case 3:return[5,pe(this.iterateDeepSlotBlockByOwnerId(o,t))];case 4:s.sent(),s.label=5;case 5:return[3,8];case 6:return r.component&&2===r.component.type&&(i=r.component).slotProviders?[5,pe(this.iterateDeepSlotBlockByOwnerId(i,t))]:[3,8];case 7:s.sent(),s.label=8;case 8:return n=n.nextSibling,[3,1];case 9:return[2,null]}var a,u}))},e.prototype.iterateTargetDeep=function(e,t){var n,r;return he(this,(function(o){switch(o.label){case 0:return[5,pe(this.iterateDeepXML(e))];case 1:o.sent(),n=this.iterateChildTargetByOwnerId(e,t),o.label=2;case 2:return!1!==(r=n.next()).done?[3,5]:[4,r.value];case 3:return o.sent(),[5,pe(this.iterateDeepXML(r.value))];case 4:return o.sent(),[3,6];case 5:return[3,7];case 6:return[3,2];case 7:return[2,null]}}))},e.prototype.iterateDeepXML=function(e){var t,n,r;return he(this,(function(o){switch(o.label){case 0:if(!e.slotProviders||!e.node)return[2,null];t=e.node.firstChild,o.label=1;case 1:return t?(n=t.component)&&2===n.type?[4,n]:[3,8]:[3,10];case 2:return o.sent(),[5,pe(this.iterateTargetDeep(n,e.targetId))];case 3:o.sent(),r=Ge(n),o.label=4;case 4:return r?[4,r]:[3,7];case 5:return o.sent(),[5,pe(this.iterateDeepXML(r))];case 6:return o.sent(),r=Ge(r),[3,4];case 7:return[3,10];case 8:t=t.nextSibling,o.label=9;case 9:return[3,1];case 10:return[2,null]}}))},e}();!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=Ce(),t}le(t,e),t.prototype.iterateTargetAXML=function(t,n){return this.createIterator(e.prototype.iterateTargetAXML,[t,n])},t.prototype.iterateChildTargetByOwnerId=function(t,n,r){return this.createIterator(e.prototype.iterateChildTargetByOwnerId,[t,n,r])},t.prototype.iterateDeepSlotBlockByOwnerId=function(t,n){return this.createIterator(e.prototype.iterateDeepSlotBlockByOwnerId,[t,n])},t.prototype.iterateTargetDeep=function(t,n){return this.createIterator(e.prototype.iterateTargetDeep,[t,n])},t.prototype.iterateDeepXML=function(t){return this.createIterator(e.prototype.iterateDeepXML,[t])},t.prototype.createIterator=function(e,t){var n=this.cache.get(e);n||(ye||ke(),n=new ye,this.cache.set(e,n));var r=t.map((function(e){return\"\".concat(\"object\"==typeof e&&e?e.targetId:e)})).join(\"_\"),o=n.get(r);return o||(o=new He(e.apply(this,t))),o.ref()}}(We);var qe,Ze,Ye,Ve,Xe,Je;\"undefined\"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,\"undefined\"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT,\"undefined\"!=typeof SECURITY_FUNCTION_CALL&&(SECURITY_FUNCTION_CALL=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return\"function\"==typeof e?(ge||(ge=Function.prototype.apply.call.bind(Function.prototype.apply)),ge(e,t,n)):e.call.apply(e,fe([t],n,!1))}),\"undefined\"!=typeof SECURITY_FUNCTION_APPLY&&(SECURITY_FUNCTION_APPLY=function(e,t,n){return\"function\"==typeof e?(ge||(ge=Function.prototype.apply.call.bind(Function.prototype.apply)),ge(e,t,n)):e.apply(t,n)}),function(e){e.CanvasContext=\"CanvasContext\"}(qe||(qe={})),function(e){e[e.PLUGIN=1]=\"PLUGIN\",e[e.SUB_PACKAGE=2]=\"SUB_PACKAGE\"}(Ze||(Ze={})),function(e){e.PLUGIN=\"plugin\",e.SUB_PACKAGE=\"subpackage\"}(Ye||(Ye={})),function(e){e[e.Info=0]=\"Info\",e[e.Warn=1]=\"Warn\",e[e.Error=2]=\"Error\"}(Ve||(Ve={})),function(e){e.AppxLifecycle=\"AppxLifecycle\"}(Xe||(Xe={})),\"undefined\"!=typeof HAS_INSIDE_FEATURE&&HAS_INSIDE_FEATURE,function(e){e.version_added=\"v\",e.const=\"c\",e.android=\"a\",e.ios=\"i\",e.default=\"d\"}(Je||(Je={}));var Qe=function(){function e(e,t,n,r,o){this.bindLinkNode=o,this.updatingDiff=null,this.scopedBlocks=[],this.unscopedBlocks=[],this.disposing=!1,this.detaching=!1,this.factory=e,this.currentData=t,this.slotProviderParentContextInstance=n,this.scopeId=r}return e.prototype.createBlockWithScope=function(e,t){var n,r,o=this.scopeId;return e&&o?(n=$e(e,this.currentData,o),(r=this.createBlock(this.slotProviderParentContextInstance,t,n,!0)).__scopeContext__=e):(n=this.currentData,r=this.createBlock(this.slotProviderParentContextInstance,t,n,!1)),r.bType=1,r},e.prototype.createBlockWithoutScope=function(e){var t=this.createBlock(this.slotProviderParentContextInstance,e,this.currentData,!1);return t.bType=1,t},e.prototype.updateBlockWithDynamicNameScopeAndFallback=function(e,t,n,r,o,i){if(t._name===e){var s=this.scopeId;if(n&&s){var a=$e(n,this.currentData,s),u=Object.create(this.updatingDiff);u[s]=!0,t.updateScopeContext(n),t.updateScopeAndFallbackContext(u,a,r,o)}else t.updateFallbackContext(r,o)}else{var c=void 0;c=n?this.createBlockWithScope(n,i):this.createBlockWithoutScope(i),t.updateDynamicNameAndFallbackContext(e,c,r,o)}return null},e.prototype.updateBlockWithScopeAndFallback=function(e,t,n,r){var o=this.scopeId;if(t&&o){var i=$e(t,this.currentData,o),s=Object.create(this.updatingDiff);s[o]=!0,e.updateScopeContext(t),e.updateScopeAndFallbackContext(s,i,n,r)}else e.updateFallbackContext(n,r)},e.prototype.updateBlockWithScope=function(e,t){var n=this.scopeId;if(t&&n){var r=$e(t,this.currentData,n),o=Object.create(this.updatingDiff);o[n]=!0,e.__scopeContext__=t,e.u(o,r)}},e.prototype.enterProviderDetaching=function(){this.detaching=!0},e.prototype.exitProviderDetaching=function(){this.detaching=!1;var e=this.detachedBlocks;if(e){this.detachedBlocks=null;for(var t=0,n=e;t<n.length;t++){var r=n[t],o=1===r.__slotType__?this.scopedBlocks:this.unscopedBlocks;r.__slotIndex__=o.push(r)-1,r.d(!0)}}},e.prototype.createBlock=function(e,t,n,r){var o,i,s;if(r?(i=1,o=this.scopedBlocks.length,s=this.scopedBlocks):(i=0,o=this.unscopedBlocks.length,s=this.unscopedBlocks),this.detaching){var a=this.detachedBlocks;if(a){var u=a.shift();if(u)return s.push(u),u.__slotIndex__=o,u.__slotType__=i,u}}var c=this.factory(e,n);return this.bindLinkNode&&(c=this.bindLinkNode(c,this)),c.d=this.destroyBlock.bind(this,c,c.d),s.push(c),c.__slotIndex__=o,c.__slotType__=i,c},e.prototype.destroyBlock=function(e,t,n){var r=e.__slotIndex__;if(r>=0){if(!this.disposing){var o=1===e.__slotType__?this.scopedBlocks:this.unscopedBlocks,i=o.length-1,s=o[i];s.__slotIndex__=r,o[r]=s,o.length=i}if(this.detaching){var a=this.detachedBlocks;a||(a=this.detachedBlocks=[]),a.push(e)}else t.call(e,n);e.__slotIndex__=-1}},e}();function $e(e,t,n){var r=Object.create(t);return r[n]=e[0],e.length>1&&(r[n+\"d\"]=e[1],r[n+\"n\"]=e[2]),r}!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}le(t,e),t.prototype.exitProviderUpdating=function(){},t.prototype.enterProviderUpdating=function(e,t){this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).u(e,t)}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u,c=$e((u=a[s]).__scopeContext__,t,n);u.u(i,c)}}},t.prototype.destroyBlocks=function(e){if(this.disposing=!0,this.scopeId){for(var t=0,n=this.scopedBlocks;t<n.length;t++){n[t].d(e)}this.scopedBlocks=[]}for(var r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].d(e)}this.unscopedBlocks=[]}}(Qe),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}le(t,e),t.prototype.enterProviderUpdating=function(e,t){this.updatingDiff=e,this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].__slotUpdating__=!0}if(n&&this.scopedBlocks.length)for(var i=0,s=this.scopedBlocks;i<s.length;i++){s[i].__slotUpdating__=!0}},t.prototype.destroyBlocks=function(e){this.disposing=!0,this.scopeId&&(this.scopedBlocks=[]),this.unscopedBlocks=[]},t.prototype.exitProviderUpdating=function(){for(var e=this.updatingDiff,t=this.currentData,n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).__slotUpdating__&&(u.__slotUpdating__=!1,u.u(e,t))}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u;if((u=a[s]).__slotUpdating__){u.__slotUpdating__=!1;var c=$e(u.__scopeContext__,t,n);u.u(i,c)}}}this.updatingDiff=null}}(Qe);var Ke=function(){function e(e,t,n){this._bc=e,this._component=t;var r=e[3],o=e[4],i=e[0];this._selectedBlockIndex=r?r(t,n):1,this._selectedBlockType=o?o(this._selectedBlockIndex):i(t,n),this._currentBlock=tt(this._selectedBlockType,t,n)}return e.prototype.a=function(){return this._currentAnchorHead},e.prototype.c=function(){var e=this._bc[5];return this._currentAnchorHead=rt(this._component),this._currentAnchor4Index=rt(this._component,null,yt(this._selectedBlockIndex)),this._currentBlock&&(e&=this._currentBlock.c()),this._currentAnchor=rt(this._component,this._currentAnchorHead),e},e.prototype.l=function(e){var t=this._bc[5];this._currentAnchorHead=mt(e,this._component),at(e,ct(e,this._currentAnchorHead));var n=vt(e,this._component,\"c\",yt(this._selectedBlockIndex));return this._currentAnchor4Index=n[0],e.treatErrorAsWarning+=n[1],this._currentBlock&&(t&=this._currentBlock.l(e)),e.treatErrorAsWarning-=n[1],ut(e),this._currentAnchor=mt(e,this._component,this._currentAnchorHead),this._currentTarget=e.target,t},e.prototype.m=function(e,t){this._currentTarget=e,st(e,this._currentAnchorHead,t),st(e,this._currentAnchor4Index,t),this._currentBlock&&this._currentBlock.m(e,t),st(e,this._currentAnchor,t)},e.prototype.u=function(e,t){var n=this._bc[5],r=this._bc[3],o=this._bc[4],i=this._bc[0],s=r?r(this._component,t):1,a=o?o(s):i(this._component,t);if(this._selectedBlockType!==a){this._selectedBlockIndex=s,this._selectedBlockType=a;var u=this._currentAnchor4Index.root;u&&(u.textContent=yt(this._selectedBlockIndex)),this._currentBlock&&this._currentBlock.d(!0),this._currentBlock=tt(this._selectedBlockType,this._component,t),this._currentBlock&&(n&=this._currentBlock.c(),this._currentBlock.m(this._currentTarget,this._currentAnchor))}else this._currentBlock&&(n&=this._currentBlock.u(e,t));return n},e.prototype.d=function(e){this._currentBlock&&(this._currentBlock.d(e),this._currentBlock=null),e&&(nt(this._currentAnchorHead),nt(this._currentAnchor4Index),nt(this._currentAnchor),this._currentAnchorHead=null,this._currentAnchor4Index=null,this._currentAnchor=null)},e}();function et(){}function tt(e,t,n){if(e)return e(t,n)}function nt(e){if(e){var t=e.parent;t&&t.removeChild(e)}}function rt(e,t,n){return t?e.document.cloneComment(t):e.document.createComment(n)}function ot(e,t){var n=t.nextSibling,r=t.previousSibling;n?(n.previousSibling=r,t.nextSibling=null):e.lastChild=r,r?(r.nextSibling=n,t.previousSibling=null):e.firstChild=n,t.parent=null}function it(e,t){var n=t.parent;n&&ot(n,t),t.parent=e;var r=e.lastChild;r?(t.previousSibling=r,r.nextSibling=t):e.firstChild=t,e.lastChild=t}function st(e,t,n){e.insertBefore(t,n||null),t.parent||(t.parent=e)}function at(e,t){e.stopReverseIndex=t,e.stopReverseIndexStack.push(t)}function ut(e){e.stopReverseIndexStack.pop(),e.stopReverseIndex=e.stopReverseIndexStack[e.stopReverseIndexStack.length-1]||0}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.detaching=!1,t}le(t,e),t.prototype.detach=function(){this.detaching=!0},t.prototype.attach=function(){this.detaching=!1},t.prototype.c=function(){if(this.detaching){var t=this._bc[5];return this._currentBlock&&(t&=this._currentBlock.c()),t}return e.prototype.c.call(this)},t.prototype.m=function(t,n){if(!this.detaching)return e.prototype.m.call(this,t,n);this._currentBlock&&this._currentBlock.m(this._currentTarget,this._currentAnchor)},t.prototype.resetCurrentBranch=function(e,t){this._component=e;var n=this._bc[3],r=this._bc[4],o=this._bc[0];this._selectedBlockIndex=n?n(this._component,t):1,this._selectedBlockType=r?r(this._selectedBlockIndex):o(this._component,t),this._currentBlock=tt(this._selectedBlockType,this._component,t)},t.prototype.d=function(t){if(!this.detaching)return e.prototype.d.call(this,t);this._currentBlock&&(this._currentBlock.d(t),this._currentBlock=null)}}(Ke);var ct=function(e,t){var n,r=t.root.textContent,o=e.index,i=e.nodes.length;for(;o<i&&(n=e.nodes.item(o))&&(8!==n.nodeType||n.textContent!==r);)o++;return i-o};var lt=0;var dt,ht,pt=function(){return\"z:\".concat(++lt)};function ft(e){return e&&e.parentNode?Array.prototype.indexOf.call(e.parentNode.childNodes,e):-1}function gt(e,t,n,r){dt&&ht||(dt=dt||[],ht=ht||[]),(t.treatErrorAsWarning?ht:dt).push(\"\".concat(function(e){switch(e){case 1:return\"RedundantNode\";case 2:return\"AnchorMatchRemoveAndNext\";case 3:return\"AnchorMatchStop\";case 4:return\"AnchorMatchNotFound\";case 5:return\"AnchorCreateRemove\";case 6:return\"AnchorCreateStop\";case 7:return\"AnchorCreateNotFound\";case 8:return\"ElementClaimRemoveReplace\";case 9:return\"ElementClaimStopCreate\";case 10:return\"ElementClaimNotFoundCreate\";default:return\"\"}}(e),\": previous:\").concat(n?\"\".concat(n.nodeName).concat(n.className?\".\".concat(n.className):\"\",\"@\").concat(ft(n),\":\").concat(n.textContent||\"\"):\"null\",\", next:\").concat(r?\"\".concat(r.nodeName).concat(r.className?\".\".concat(r.className):\"\",\"@\").concat(ft(r),\":\").concat(r.textContent||\"\"):\"null\"))}var vt=function(e,t,n,r){var o,i=e.target,s=e.nodes.item(e.index),a=0,u=0,c=0;if(s&&8===s.nodeType&&s.textContent[0]===n)s.textContent===r?o={destroy:et,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s}:(s.textContent=r,o={destroy:et,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s},a=1,c=1);else{if(o={destroy:et,eType:0,nextSibling:null,parent:i,previousSibling:null,root:t.document.document.createComment(r)},s){var l={destroy:et,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s};i.insertBefore(o,l)}else i.appendChild(o);a=1,u=1}if(e.index++,a)for(var d=e.index,h={destroy:et,eType:0,nextSibling:null,parent:i,previousSibling:null,root:null};(s=e.nodes.item(d))&&e.stopReverseIndex!==e.nodes.length-d;)h.root=s,i.removeChild(h),u&>(2,e,s,null);return[o,c]};var mt=function(e,t,n){var r,o=e.target,i={destroy:et,eType:0,nextSibling:null,parent:null,previousSibling:null,root:null};if(n){for(var s=n.root.textContent,a=e.index,u=void 0;;){if(!(u=e.nodes.item(a))){var c=t.document.document.createComment(s);i.root=c,o.appendChild(i),gt(4,e,null,c);break}if(i.root=u,8===u.nodeType&&u.textContent===s){it(o,i);break}if(e.stopReverseIndex===e.nodes.length-a){var l={destroy:et,eType:0,nextSibling:null,parent:null,previousSibling:null,root:u};c=t.document.document.createComment(s);i.root=c,it(o,l),o.insertBefore(i,l),ot(o,l),gt(3,e,u,c);break}o.removeChild(i),gt(2,e,u,null)}return e.index++,i}u=e.nodes.item(e.index++);if(i.root=u,u&&8===u.nodeType)it(o,i);else{var d=t.document.document.createComment(pt());r={destroy:et,eType:0,nextSibling:null,parent:null,previousSibling:null,root:d},u?(it(o,i),o.insertBefore(r,i),e.stopReverseIndex===e.nodes.length-e.index?(ot(o,i),gt(6,e,u,d)):(o.removeChild(i),gt(5,e,u,d))):(o.appendChild(r),gt(7,e,null,d))}return r||i};function yt(e){return\"\".concat(\"c\",\":\").concat(e||\"\")}function bt(e,t,n){for(var r=[],o=e,i=null;o&&!t(o);){switch(o.eType){case 1:case 2:null===i&&r.push(n.getZNodeDebugInfo(o));break;case 0:var s=o.root.textContent;null===i&&\"b\"===s[0]?i=parseInt(s.slice(2),10):null!==i&&s===kt(i)&&(r.push(n.getZNodeComponentDebugInfo(i)),i=null)}o=o.nextSibling}return r}function _t(e,t,n){var r=e[t];e[t]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=r.apply(void 0,e);try{n(o,e)}catch(e){console.error(e)}return o}}function wt(e,t,n){var r=e[t];e[t]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{n(e)}catch(e){console.error(e)}return r.apply(void 0,e)}}function St(e){var t=\"\";try{JSON.stringify(e).length>1e6&&(t=\"data is too large to display\")}catch(e){t=e.message||\"stringify error\"}return t?{data:{error:t}}:{data:e}}function It(e){return\"\".concat(\"b\",\":\").concat(e)}function kt(e){return\"\".concat(\"e\",\":\").concat(e)}function Ct(e){if(!e.treeTargetIds){for(var t=e,n=[];t;){t=t.previousSibling?t.previousSibling:t.parent;for(var r=0;t;){if(0===t.eType){if(\"e\"===t.root.textContent[0])r++;else if(\"b\"===t.root.textContent[0]){if(0===r){n.push({begin:t.root,targetId:parseInt(t.root.textContent.slice(2),10)});break}r--}}else{if(1===t.eType&&0===r){n.push.apply(n,Ct(t)),t=null;break}if(2===t.eType&&0===r){n.push.apply(n,Ct(t)),t=null;break}}t=t.previousSibling?t.previousSibling:t.parent}}n.length||n.push({begin:null,targetId:0}),e.treeTargetIds=n}return e.treeTargetIds}var Et=function(){function e(e,t){this.devtool=e,this.node=t}return e.prototype.setParentNodeId=function(e){this.parentNodeId=e},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.node.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.getParentNode=function(){if(this.node.parent){var e=this.devtool.getZNodeDebugInfo(this.node.parent),t=Ct(this.node);return Ct(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.setLinkedContext=function(e){this.linkedContext=e},e.prototype.getLinkedContext=function(){return this.linkedContext},e}();function Tt(e){var t=[];t.push(\"<\".concat(e.localName));var n=function(e){if(e&&0!==e.length){for(var t=[],n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];r&&o&&t.push(\"\".concat(r,'=\"').concat(o,'\"'))}return t.join(\" \")}}(e.getAllAttributes());n&&t.push(\" \".concat(n)),t.push(\">\");var r=function(e){if(e&&0!==e.length){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];t.push(o.getOuterAXML())}return t.join(\"\")}}(e.getChildNodes());return r&&t.push(r),t.push(\"</\".concat(e.localName,\">\")),t.join(\"\")}var xt=function(e){function t(t,n,r,o,i,s){var a=e.call(this,t,r)||this;return a.devtool=t,a.nodeName=n,a.node=r,a.nodeId=o,a.shadowRootNodeId=i,a.shadowSlotNodeId=s,a.nodeType=se.Element,a.activated=!1,a.childrenActivated=!1,a.pendingAttributes=[],a.dataset=new Map,a.properties=new Map,a.attributes=new Map,a.inlineStyleSheetId=\"2000.\".concat(o),a.updateClassName(r.classNameExp),a.updateInlineStyle(r.inlineStyleExp),a.updateDataset(r.getDataset()),a}return le(t,e),Object.defineProperty(t.prototype,\"dom\",{get:function(){return this.devtool.getDOMNodeDebugInfo(this.node.root,this,this.shadowRootNodeId)},enumerable:!1,configurable:!0}),t.prototype.getPlatformRootDOM=function(){return this.node.root},t.prototype.getShadowRootDebugNode=function(){var e=this.node.root;return this.devtool.getDOMNodeDebugInfo(e,this,this.shadowRootNodeId)},t.prototype.getClassName=function(){return this.attrClass},t.prototype.getInlineStyle=function(){return this.attrStyle},t.prototype.getDataset=function(){return this.dataset},t.prototype.updateClassName=function(e){var t=e||\"\";this.attrClass!==t&&(this.attrClass=t,this.activated&&this.pendingAttributes.push([\"class\",\"\".concat(t)]))},t.prototype.updateInlineStyle=function(e){this.attrStyle!==e&&(this.attrStyle=e,this.activated&&this.pendingAttributes.push([\"style\",\"\".concat(e)]))},t.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n]),\"style\"===n&&e.node.setStyleInline(t[n])})),this.pendingAttributes=[],t={},this.devtool.enableShadowRootElements&&(this.devtool.flushUpdatedQueue(),this.dom&&this.dom.invalidate())}},t.prototype.getProperties=function(){var e={};return this.properties.forEach((function(t,n){e[n]=t})),e},t.prototype.updateProperties=function(e){if(e)for(var t=this.properties,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([o,\"\".concat(e[o])]))}},t.prototype.updateDataset=function(e){if(e)for(var t=this.dataset,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([\"data-\".concat(o),\"\".concat(e[o])]))}},t.prototype.updateAttribute=function(e,t){t!==this.attributes.get(e)&&(this.attributes.set(e,t),this.activated&&this.pendingAttributes.push([e,\"\".concat(t)]))},t.prototype.getChildNodes=function(){return bt(this.node.firstChild,(function(){return!1}),this.devtool)},t.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&r&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==se.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.localName,nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId(),pseudoElements:this.getPseudoElements(),shadowRoots:this.devtool.shadowRootElementsEnabled?[{childNodeCount:1,localName:\"\",nodeId:this.shadowRootNodeId,nodeName:\"#document-fragment\",nodeType:11,nodeValue:\"\",shadowRootType:\"dom\"}]:void 0}},Object.defineProperty(t.prototype,\"localName\",{get:function(){return this.nodeName.toLowerCase()},enumerable:!1,configurable:!0}),t.prototype.getOuterAXML=function(){return Tt(this)},t.prototype.getAllAttributes=function(){var e=[];return this.attrClass&&e.push(\"class\",\"\".concat(this.attrClass)),this.attrStyle&&e.push(\"style\",\"\".concat(this.attrStyle)),this.properties.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.attributes.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.dataset.forEach((function(t,n){e.push(\"data-\".concat(n),\"\".concat(t))})),e},t.prototype.getChildNodeCount=function(){return this.getChildNodes().length},t.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})},t.prototype.getPseudoElements=function(){return[]},t}(Et),Nt=function(e){function t(t,n,r,o){var i=e.call(this,t,n)||this;return i.devtool=t,i.node=n,i.nodeId=r,i.shadowSlotNodeId=o,i.nodeType=se.Text,i.activated=!1,i.nodeName=\"#text\",i.dom=t.getDOMNodeDebugInfo(n.root,i),i}return le(t,e),t.prototype.getPlatformRootDOM=function(){return this.node.root},t.prototype.serialize=function(e){return this.activated=!0,{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:this.nodeName,nodeType:3,nodeValue:this.node.root.textContent,parentId:this.getParentNodeId()}},t.prototype.getOuterAXML=function(){return this.node.root.textContent},t}(Et),Ot=function(){function e(e,t,n){var r=this;this.devtool=e,this.targetId=t,this.nodeId=n,this.nodeType=se.Component,this.nodeName=\"component\",this.activated=!1,this.childrenActivated=!1,this.pendingAttributes=[],this.componentInstance=e.componentTargetId2LinkedInstance.get(t),this.beginAnchor=this.componentInstance._anchor4Head,this.parentNodeId=this.getParentNodeId();var o=me(e.sendMessage.bind(e),500,setTimeout,clearTimeout),i=this.componentInstance._fragment.u;this.componentInstance._fragment.u=function(){for(var t=[],s=0;s<arguments.length;s++)t[s]=arguments[s];var a=i.apply(r.componentInstance._fragment,t);return e.activatedCustomComponentId===n&&o(\"Tiny.Elements.componentDataChanged\",{data:St(r.getData()).data,nodeId:n}),a};var s=me(e.sendMessage.bind(e),500,setTimeout,clearTimeout),a=this.componentInstance.receiveProps;this.componentInstance.receiveProps=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];a.apply(r.componentInstance,t),e.activatedCustomComponentId===n&&s(\"Tiny.Elements.componentDataChanged\",{nodeId:n,props:St(r.getProps()).data})},this.invalidate=me(this.invalidate.bind(this),500,setTimeout,clearTimeout)}return e.prototype.getChildNodes=function(){var e=this;return bt(this.beginAnchor.nextSibling,(function(t){if(0===t.eType&&t.root.textContent===kt(e.targetId))return!0}),this.devtool)},e.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==se.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.localName,nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId()}},Object.defineProperty(e.prototype,\"localName\",{get:function(){return this.nodeName.toLowerCase()},enumerable:!1,configurable:!0}),e.prototype.getOuterAXML=function(){return Tt(this)},e.prototype.getAllAttributes=function(){var e=this,t=this.componentInstance.fixedReceivedPropKeys,n=this.componentInstance.componentIs;\"string\"==typeof n&&\"/\"===n[0]&&(n=n.substring(1));var r=[\"is\",n];return this.componentInstance.externalClasses&&r.push(\"externalClasses\",this.componentInstance.externalClasses.join(\" \")),t&&t.forEach((function(t){r.push.apply(r,function(e,t){if(\"className\"===e)return[\"class\",String(t).trim()];if(\"function\"==typeof t){if(t.handleName)return[e,t.handleName]}else{if(null===t)return[e,\"null\"];if(void 0!==t){var n=\"unknown\";try{n=\"object\"==typeof t?Object.prototype.toString.call(t):t.toString()}catch(n){console.warn(\"failed to stringify node props value\",e,t)}return[e,n]}}return[]}(t,e.componentInstance._state[t]))})),r},e.prototype.getComponentIs=function(){return this.componentInstance.componentIs},e.prototype.getComponentInstance=function(){return this.componentInstance},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getParentNode=function(){if(this.beginAnchor.parent){var e=this.devtool.getZNodeDebugInfo(this.beginAnchor.parent),t=Ct(this.beginAnchor);return Ct(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.getData=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys,r=void 0===n?[]:n;return Object.keys(this.componentInstance._state).forEach((function(n){\"$id\"!==n&&-1===r.indexOf(n)&&(t[n]=e.componentInstance._state[n])})),t},e.prototype.getProps=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys;return(void 0===n?[]:n).forEach((function(n){t[n]=e.componentInstance._state[n]})),t},e.prototype.getChildNodeCount=function(){return this.getChildNodes().length},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.beginAnchor.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.updateProperties=function(e,t){var n=this;Object.keys(t).forEach((function(r){t[r]&&n.pendingAttributes.push([r,\"\".concat(e[r])])}))},e.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n])})),this.pendingAttributes=[],t={}}},e.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})},e}(),At=function(){function e(e,t,n,r,o){this.devtool=e,this.node=t,this.nodeId=n,this.parentNodeId=r,this.znode=o,this.nodeType=1,this.activated=!1}return e.prototype.invalidate=function(){if(this.lastSerializedJSON){var e=this.serialize(this.lastSerializedJSON.children?1:0,!1);this.checkAttributesModified(this.lastSerializedJSON.attributes||[],e.attributes||[]),this.lastSerializedJSON.children&&this.checkChildNodesUpdated(this.lastSerializedJSON.children,e.children||[]),this.lastSerializedJSON=e}},e.prototype.serialize=function(e,t){void 0===t&&(t=!0),this.activated=!0;for(var n,r,o=this.node,i=0,s=0,a=o.childNodes;s<a.length;s++){var u=a[s];if(1===u.nodeType||3===u.nodeType){var c=this.devtool.getDOMNodeDebugInfo(u,null,this.nodeId);if(c.znode){if(!r){var l=c.znode.shadowSlotNodeId;r={backendNodeId:l,childNodeCount:0,children:[],distributedNodes:[],localName:\"slot\",nodeId:l,nodeName:\"SLOT\",nodeType:1,nodeValue:\"\",parentId:this.nodeId}}var d=r.distributedNodes;d||(d=r.distributedNodes=[]),d.push({backendNodeId:c.znode.nodeId,nodeName:c.znode.nodeName,nodeType:u.nodeType});continue}r&&(e>0&&(n||(n=[]),n.push(r)),i++),r=null,e>0&&(n||(n=[]),n.push(c.serialize(e-1,t))),i++}}r&&(e>0&&(n||(n=[]),n.push(r)),i++);for(var h=[],p=0,f=o.attributes;p<f.length;p++){var g=f[p];h.push(g.name,g.value)}var v={attributes:h,backendNodeId:this.nodeId,childNodeCount:i,children:n,localName:o.nodeName.toLowerCase(),nodeId:this.nodeId,nodeName:o.nodeName,nodeType:1,nodeValue:\"\",parentId:this.parentNodeId,pseudoElements:this.getPseudoElements()};return t&&(this.lastSerializedJSON=v),v},e.prototype.checkAttributesModified=function(e,t){for(var n=this,r=new Map,o=0;o<e.length-1;o+=2)r.set(e[o],e[o+1]);for(o=0;o<t.length-1;o+=2){var i=t[o],s=t[o+1];if(r.has(i)){var a=r.get(i);r.delete(i),a!==s&&this.devtool.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:this.nodeId,value:s})}else this.devtool.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:this.nodeId,value:s})}r.forEach((function(e,t){n.devtool.sendMessage(\"DOM.attributeRemoved\",{name:t,nodeId:n.nodeId})}))},e.prototype.checkChildNodesUpdated=function(e,t){var n=this;Mt(e,t,(function(e,t){return e.nodeId===t.nodeId}),(function(e){var r=t[t.indexOf(e)-1];n.devtool.sendMessage(\"DOM.childNodeInserted\",{node:e,parentNodeId:e.parentId,previousNodeId:r?r.nodeId:0})}),(function(e){n.devtool.sendMessage(\"DOM.childNodeRemoved\",{nodeId:e.nodeId,parentNodeId:e.parentId})}),(function(e,t){if(\"SLOT\"===e.nodeName){var r=function(){n.devtool.sendMessage(\"DOM.distributedNodesUpdated\",{distributedNodes:t.distributedNodes||[],insertionPointId:t.nodeId})};Mt(e.distributedNodes||[],t.distributedNodes||[],(function(e,t){return e.backendNodeId===t.backendNodeId}),r,r)}else{var o=n.devtool.nodeId2DOMNode.get(e.nodeId);o&&1===o.nodeType&&o.invalidate()}}))},e.prototype.getPseudoElements=function(){return[]},e}();function Mt(e,t,n,r,o,i){var s=t.slice();e.forEach((function(e){var t=-1;s.some((function(r,o){if(n(e,r))return t=o,!0})),t>-1?(i&&i(e,s[t]),s.splice(t,1)):o(e)})),s.forEach(r)}var Pt=function(){function e(e,t,n,r){this.devtool=e,this.node=t,this.nodeId=n,this.znode=r,this.nodeType=3,this.activated=!1}return e.prototype.serialize=function(){var e=this.node;return{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:\"#text\",nodeType:3,nodeValue:e.textContent,parentId:this.devtool.getDOMNodeDebugInfo(this.node.parentNode,this.znode).nodeId}},e}(),Lt=function(){function e(e){this.option=e,this.nodeId2ZNode=new Map,this.shadowRootNodeId2ZNode=new Map,this.nodeId2DOMNode=new Map,this.nodeId2PseudoElement=new Map,this.componentTargetId2ZNode=new Map,this.componentTargetId2LinkedInstance=new Map,this.shadowRootElementsEnabled=!1,this.rootNodeId=1,this.nextNodeId=this.rootNodeId+1,this.dependecyFactory=e.dependencyFactory}return e.prototype.sendMessage=function(e,t){this.option.connection.sendMessage(e,t)},e.prototype.sendMessageWithPriority=function(e,t){this.option.connection.sendMessage(e,t,!0)},e.prototype.getZRuntimeHelper=function(){return this.option.debugProxy.getZRuntime().h},e.prototype.getZNodeDebugInfo=function(e){if(!e._debug)if(1===e.eType){var t=this.option.debugProxy.getTagNameByPlatformElement(e)||\"unknown\";0===t.indexOf(\"unknown\")&&(t=e.tagName||e.externalElementName||t);var n=this.dependecyFactory.createZNodeElement(this,t.toUpperCase(),e,this.nextNodeId++,this.nextNodeId++,this.nextNodeId++);this.nodeId2ZNode.set(n.nodeId,n),this.shadowRootNodeId2ZNode.set(n.shadowRootNodeId,n),e._debug=n}else if(2===e.eType){var r=new Nt(this,e,this.nextNodeId++,this.nextNodeId++);this.nodeId2ZNode.set(r.nodeId,r),e._debug=r}return e._debug},e.prototype.getZNodeComponentDebugInfo=function(e){if(!this.componentTargetId2ZNode.has(e)){var t=new Ot(this,e,this.nextNodeId++);this.nodeId2ZNode.set(t.nodeId,t),this.componentTargetId2ZNode.set(e,t)}return this.componentTargetId2ZNode.get(e)},e.prototype.getDOMNodeDebugInfo=function(e,t,n){if(!e._debug)if(1===e.nodeType){var r=this.dependecyFactory.createDOMElement(this,e,this.nextNodeId++,n,t);this.nodeId2DOMNode.set(r.nodeId,r),e._debug=r}else if(3===e.nodeType){var o=new Pt(this,e,this.nextNodeId++,t);this.nodeId2DOMNode.set(o.nodeId,o),e._debug=o}return e._debug},e.prototype.getDocumentNode=function(){var e=this.rootNodeId;try{var t=[],n=this.getZNodeDebugInfo(this.option.clientProxy.renderer.documentInstance);n.setParentNodeId(e),t.push(n.serialize(1));var r=this.option.clientProxy.renderer.tabBarInstance;if(r){var o=this.getZNodeDebugInfo(r);if(o.setParentNodeId(e),o&&o.serialize(1).children){var i=o.serialize(1).children[0];i&&(i.nodeName=\"tab-bar\",i.attributes=[],t.push(i))}}return{backendNodeId:e,childNodeCount:1,children:t,localName:\"\",nodeId:e,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}}catch(t){console.warn(\"getDocumentRoot error\",t);var s=\"page-not-found\";return{backendNodeId:e,childNodeCount:1,children:[{attributes:[],backendNodeId:e+1,childNodeCount:0,localName:s,nodeId:2,nodeName:s,nodeType:1,nodeValue:\"\",parentId:e}],localName:\"\",nodeId:e,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}}},e.prototype.flushUpdatedQueue=function(){this.pageInstance&&this.pageInstance.flushUpdatedQueue()},e.prototype.resetZNodeActivatedState=function(){this.nodeId2ZNode.forEach((function(e){e.activated=!1,e.nodeType===se.Element&&e.childrenActivated&&(e.childrenActivated=!1)}))},e.prototype.enableShadowRootElements=function(){this.shadowRootElementsEnabled=!0},e.prototype.getNextNodeId=function(){return this.nextNodeId++},e}(),Dt=function(){function e(e,t){this.devtool=e,this.zruntime=t,this.rootZInstanceToLocation=Ce(),this.rootZTargetToLocation=Ce(),this.zInstanceToLocation=Ce(),this.zTargetToLocation=Ce(),this.zInstanceLocationStack=[],this.locationVisited=(_e||Ee(),new _e),this.bindZElement=this.bindZElement.bind(this),this.bindZComponent=this.bindZComponent.bind(this),this.overwriteLocation=this.overwriteLocation.bind(this)}return e.prototype.bindZElement=function(e){var t=this.zInstanceLocationStack[this.zInstanceLocationStack.length-1];t&&(this.locationVisited.has(t)||(this.rootZInstanceToLocation.set(e,t),this.locationVisited.add(t)),this.zInstanceToLocation.set(e,t))},e.prototype.bindZComponent=function(e){var t=e[0],n=this.zInstanceLocationStack[this.zInstanceLocationStack.length-1];n&&(this.locationVisited.has(n)||(this.rootZTargetToLocation.set(t,n),this.locationVisited.add(n)),this.zTargetToLocation.set(t,n))},e.prototype.overwriteLocation=function(e){if(e.length>=3){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],s={path:\"string\"==typeof i?i:this.getComponentInstancePathInfo(t),line:n,column:r};4&o&&(s.blockType=\"each\"),this.zInstanceLocationStack.push(s)}else e.length<=1&&this.zInstanceLocationStack.pop()},e.prototype.getZElementCompositedPathInfo=function(e){for(var t=[],n=this.devtool.getZNodeDebugInfo(e);n&&n.nodeType!==se.Text;){if(n.nodeType===se.Element){var r=n.node;if(r.document)break;var o=this.getZNodeOffsetInfo(n,n.node.ownerTargetId,this.zInstanceToLocation.get(n.node));t.push({pathInfo:o,element:r,type:\"Element\"})}else if(n.nodeType===se.Component){o=this.getZNodeOffsetInfo(n,n.getComponentInstance().option.parentTarget.targetId,this.zTargetToLocation.get(n.getComponentInstance()));t.push({pathInfo:o,componentIs:n.getComponentIs(),type:\"Component\"})}n=n.getParentNode()}return t},e.prototype.getComponentInstancePathInfo=function(e){var t,n;return 2===(t=e.type<2?e.option.parentTarget:e).type?n=t.componentIs:3===t.type&&(n=t.option.runtime.proxy.pagePath),n},e.prototype.getZElementDescription=function(e){var t=this.devtool.getZNodeDebugInfo(e),n=\"\";if(t.nodeType===se.Element){var r=t.getClassName();\"string\"==typeof r&&(n=r.split(/\\s+/).map((function(e){return\".\".concat(e)})).join(\"\"))}return\"\".concat(t.nodeName.toLowerCase()).concat(n)},e.prototype.getZNodeOffsetInfo=function(e,t,n){for(var r=e,o=[];r&&r.nodeType!==se.Text;){var i=void 0;if(r.nodeType===se.Element){var s=r.node;s.ownerTargetId===t&&(i={index:-1,description:this.getZElementDescription(s),element:s})}else if(r.nodeType===se.Component){if(r===e)i={index:-1,componentIs:r.getComponentInstance().componentIs}}if(i){for(var a=r,u=void 0;a;){var c=void 0;if(a.nodeType===se.Element?(c=this.zInstanceToLocation.get(a.node),u=this.rootZInstanceToLocation.get(a.node)):a.nodeType===se.Component&&(c=this.zTargetToLocation.get(a.getComponentInstance()),u=this.rootZTargetToLocation.get(a.getComponentInstance())),c===n&&(i.index+=1,u))break;a=a.getPreviousElementOrTextSibling()}if(o.unshift(i),u)return{location:u,offsets:o}}r=r.getParentNode()}return{location:void 0,offsets:o}},e}();var Rt=function(e,t,n){this.nodeId=e,this.pseudoType=t,this.root=n},Bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return le(t,e),t.prototype.getPseudoElements=function(){var e=this,t=[],n=this.getPlatformRootDOM();return n.nodeType===Node.ELEMENT_NODE&&[\"before\",\"after\"].forEach((function(r){var o=\"::\".concat(r),i=getComputedStyle(n,o).getPropertyValue(\"content\");if(i&&\"none\"!==i){e.pseudoNodeType2Id||(e.pseudoNodeType2Id={});var s=e.pseudoNodeType2Id[r];s||(s=e.pseudoNodeType2Id[r]=e.devtool.getNextNodeId()),e.devtool.nodeId2PseudoElement.set(s,new Rt(s,r,e.getPlatformRootDOM())),t.push({attributes:[],backendNodeId:s,childNodeCount:0,localName:o,nodeId:s,nodeName:o,nodeType:1,nodeValue:\"\",parentId:e.nodeId,pseudoType:r})}})),t},t}(xt),jt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return le(t,e),t.prototype.getPseudoElements=function(){var e=this,t=[],n=this.node;return 1===n.nodeType&&[\"before\",\"after\"].forEach((function(r){var o=\"::\".concat(r);if(\"none\"!==getComputedStyle(n,o).getPropertyValue(\"content\")){e.pseudoNodeType2Id||(e.pseudoNodeType2Id={});var i=e.pseudoNodeType2Id[r];i||(i=e.pseudoNodeType2Id[r]=e.devtool.getNextNodeId()),e.devtool.nodeId2PseudoElement.set(i,new Rt(i,r,e.node)),t.push({attributes:[],backendNodeId:i,childNodeCount:0,localName:o,nodeId:i,nodeName:o,nodeType:1,nodeValue:\"\",parentId:e.nodeId,pseudoType:r})}})),t},t}(At);function Ft(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}function Ut(e,t){return e(t={exports:{}},t.exports),t.exports}var zt=Ut((function(e,t){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"\",n(n.s=21)}([function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('\"'+t+'\" is a required argument.')};var n=/^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.-]*)(?::(\\d+))?(.*)$/,r=/^data:.+\\,.+$/;function o(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t=\"\";return e.scheme&&(t+=e.scheme+\":\"),t+=\"//\",e.auth&&(t+=e.auth+\"@\"),e.host&&(t+=e.host),e.port&&(t+=\":\"+e.port),e.path&&(t+=e.path),t}function s(e){var n=e,r=o(e);if(r){if(!r.path)return e;n=r.path}for(var s,a=t.isAbsolute(n),u=n.split(/\\/+/),c=0,l=u.length-1;l>=0;l--)\".\"===(s=u[l])?u.splice(l,1):\"..\"===s?c++:c>0&&(\"\"===s?(u.splice(l+1,c),c=0):(u.splice(l,2),c--));return\"\"===(n=u.join(\"/\"))&&(n=a?\"/\":\".\"),r?(r.path=n,i(r)):n}function a(e,t){\"\"===e&&(e=\".\"),\"\"===t&&(t=\".\");var n=o(t),a=o(e);if(a&&(e=a.path||\"/\"),n&&!n.scheme)return a&&(n.scheme=a.scheme),i(n);if(n||t.match(r))return t;if(a&&!a.host&&!a.path)return a.host=t,i(a);var u=\"/\"===t.charAt(0)?t:s(e.replace(/\\/+$/,\"\")+\"/\"+t);return a?(a.path=u,i(a)):u}t.urlParse=o,t.urlGenerate=i,t.normalize=s,t.join=a,t.isAbsolute=function(e){return\"/\"===e.charAt(0)||n.test(e)},t.relative=function(e,t){\"\"===e&&(e=\".\"),e=e.replace(/\\/$/,\"\");for(var n=0;0!==t.indexOf(e+\"/\");){var r=e.lastIndexOf(\"/\");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\\/]+:\\/)?\\/*$/))return t;++n}return Array(n+1).join(\"../\")+t.substr(e.length+1)};var u=!(\"__proto__\"in Object.create(null));function c(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=u?c:function(e){return l(e)?\"$\"+e:e},t.fromSetString=u?c:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=d(e.source,t.source);return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\\)]}'[^\\n]*\\n/,\"\"))},t.computeSourceURL=function(e,t,n){if(t=t||\"\",e&&(\"/\"!==e[e.length-1]&&\"/\"!==t[0]&&(e+=\"/\"),t=e+t),n){var r=o(n);if(!r)throw new Error(\"sourceMapURL could not be parsed\");if(r.path){var u=r.path.lastIndexOf(\"/\");u>=0&&(r.path=r.path.substring(0,u+1))}t=a(i(r),t)}return s(t)}},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type=\"decl\",n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(((r=n(2))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=s(n(10)),o=s(n(11)),i=s(n(3));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},e)this[t]=e[t]}var t=e.prototype;return t.error=function(e,t){if(void 0===t&&(t={}),this.source){var n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new r.default(e)},t.warn=function(e,t,n){var r={node:this};for(var o in n)r[o]=n[o];return e.warn(t,r)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.toString=function(e){void 0===e&&(e=i.default),e.stringify&&(e=e.stringify);var t=\"\";return e(this,(function(e){t+=e})),t},t.clone=function(e){void 0===e&&(e={});var t=function e(t,n){var r=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var i=t[o],s=typeof i;\"parent\"===o&&\"object\"===s?n&&(r[o]=n):\"source\"===o?r[o]=i:i instanceof Array?r[o]=i.map((function(t){return e(t,r)})):(\"object\"===s&&null!==i&&(i=e(i)),r[o]=i)}return r}(this);for(var n in e)t[n]=e[n];return t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.replaceWith=function(){if(this.parent){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];this.parent.insertBefore(this,i)}this.remove()}return this},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.before=function(e){return this.parent.insertBefore(this,e),this},t.after=function(e){return this.parent.insertAfter(this,e),this},t.toJSON=function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&\"parent\"!==t){var n=this[t];n instanceof Array?e[t]=n.map((function(e){return\"object\"==typeof e&&e.toJSON?e.toJSON():e})):\"object\"==typeof n&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e},t.raw=function(e,t){return(new o.default).raw(this,e,t)},t.root=function(){for(var e=this;e.parent;)e=e.parent;return e},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.positionInside=function(e){for(var t=this.toString(),n=this.source.start.column,r=this.source.start.line,o=0;o<e;o++)\"\\n\"===t[o]?(n=1,r+=1):n+=1;return{line:r,column:n}},t.positionBy=function(e){var t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){var n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t},e}();t.default=a,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(11))&&r.__esModule?r:{default:r},i=function(e,t){new o.default(t).stringify(e)};t.default=i,e.exports=t.default},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];\".\"===o?e.splice(r,1):\"..\"===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift(\"..\");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t=\"\",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s=i>=0?arguments[i]:e.cwd();if(\"string\"!=typeof s)throw new TypeError(\"Arguments to path.resolve must be strings\");s&&(t=s+\"/\"+t,o=\"/\"===s.charAt(0))}return(o?\"/\":\"\")+(t=n(r(t.split(\"/\"),(function(e){return!!e})),!o).join(\"/\"))||\".\"},t.normalize=function(e){var i=t.isAbsolute(e),s=\"/\"===o(e,-1);return(e=n(r(e.split(\"/\"),(function(e){return!!e})),!i).join(\"/\"))||i||(e=\".\"),e&&s&&(e+=\"/\"),(i?\"/\":\"\")+e},t.isAbsolute=function(e){return\"/\"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e})).join(\"/\"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var n=e.length-1;n>=0&&\"\"===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split(\"/\")),i=r(n.split(\"/\")),s=Math.min(o.length,i.length),a=s,u=0;u<s;u++)if(o[u]!==i[u]){a=u;break}var c=[];for(u=a;u<o.length;u++)c.push(\"..\");return(c=c.concat(i.slice(a))).join(\"/\")},t.sep=\"/\",t.delimiter=\":\",t.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?\"/\":\".\":n&&1===r?\"/\":e.slice(0,r)},t.basename=function(e,t){var n=function(e){\"string\"!=typeof e&&(e+=\"\");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?\"\":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,n=0,r=-1,o=!0,i=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(o=!1,r=s+1),46===a?-1===t?t=s:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=s+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?\"\":e.slice(t,r)};var o=\"b\"===\"ab\".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(36))},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=i(n(40)),o=i(n(42));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t){var n=new o.default(e,t),i=new r.default(n);try{i.parse()}catch(e){throw e}return i.root};t.default=s,e.exports=t.default},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type=\"comment\",n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(((r=n(2))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type=\"atrule\",n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.append=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.append).call.apply(t,[this].concat(r))},o.prepend=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.prepend).call.apply(t,[this].concat(r))},r}(((r=n(8))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=i(n(1)),o=i(n(6));function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(e){var t,i;function a(){return e.apply(this,arguments)||this}i=e,(t=a).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i;var u,c=a.prototype;return c.push=function(e){return e.parent=this,this.nodes.push(e),this},c.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;if(this.indexes[t]=0,this.nodes){for(var n,r;this.indexes[t]<this.nodes.length&&(n=this.indexes[t],!1!==(r=e(this.nodes[n],n)));)this.indexes[t]+=1;return delete this.indexes[t],r}},c.walk=function(e){return this.each((function(t,n){var r;try{r=e(t,n)}catch(e){if(e.postcssNode=t,e.stack&&t.source&&/\\n\\s{4}at /.test(e.stack)){var o=t.source;e.stack=e.stack.replace(/\\n\\s{4}at /,\"$&\"+o.input.from+\":\"+o.start.line+\":\"+o.start.column+\"$&\")}throw e}return!1!==r&&t.walk&&(r=t.walk(e)),r}))},c.walkDecls=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if(\"decl\"===n.type&&e.test(n.prop))return t(n,r)})):this.walk((function(n,r){if(\"decl\"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk((function(e,n){if(\"decl\"===e.type)return t(e,n)})))},c.walkRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if(\"rule\"===n.type&&e.test(n.selector))return t(n,r)})):this.walk((function(n,r){if(\"rule\"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk((function(e,n){if(\"rule\"===e.type)return t(e,n)})))},c.walkAtRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if(\"atrule\"===n.type&&e.test(n.name))return t(n,r)})):this.walk((function(n,r){if(\"atrule\"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk((function(e,n){if(\"atrule\"===e.type)return t(e,n)})))},c.walkComments=function(e){return this.walk((function(t,n){if(\"comment\"===t.type)return e(t,n)}))},c.append=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r],s=this.normalize(i,this.last),a=Array.isArray(s),u=0;for(s=a?s:s[Symbol.iterator]();;){var c;if(a){if(u>=s.length)break;c=s[u++]}else{if((u=s.next()).done)break;c=u.value}var l=c;this.nodes.push(l)}}return this},c.prepend=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t=t.reverse(),o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var s;if(o){if(i>=r.length)break;s=r[i++]}else{if((i=r.next()).done)break;s=i.value}var a=s,u=this.normalize(a,this.first,\"prepend\").reverse(),c=u,l=Array.isArray(c),d=0;for(c=l?c:c[Symbol.iterator]();;){var h;if(l){if(d>=c.length)break;h=c[d++]}else{if((d=c.next()).done)break;h=d.value}var p=h;this.nodes.unshift(p)}for(var f in this.indexes)this.indexes[f]=this.indexes[f]+u.length}return this},c.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes){var n=this.nodes,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}i.cleanRaws(t)}}},c.insertBefore=function(e,t){var n,r=0===(e=this.index(e))&&\"prepend\",o=this.normalize(t,this.nodes[e],r).reverse(),i=o,s=Array.isArray(i),a=0;for(i=s?i:i[Symbol.iterator]();;){var u;if(s){if(a>=i.length)break;u=i[a++]}else{if((a=i.next()).done)break;u=a.value}var c=u;this.nodes.splice(e,0,c)}for(var l in this.indexes)e<=(n=this.indexes[l])&&(this.indexes[l]=n+o.length);return this},c.insertAfter=function(e,t){e=this.index(e);var n,r=this.normalize(t,this.nodes[e]).reverse(),o=r,i=Array.isArray(o),s=0;for(o=i?o:o[Symbol.iterator]();;){var a;if(i){if(s>=o.length)break;a=o[s++]}else{if((s=o.next()).done)break;a=s.value}var u=a;this.nodes.splice(e+1,0,u)}for(var c in this.indexes)e<(n=this.indexes[c])&&(this.indexes[c]=n+r.length);return this},c.removeChild=function(e){var t;for(var n in e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},c.removeAll=function(){var e=this.nodes,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}r.parent=void 0}return this.nodes=[],this},c.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls((function(r){t.props&&-1===t.props.indexOf(r.prop)||t.fast&&-1===r.value.indexOf(t.fast)||(r.value=r.value.replace(e,n))})),this},c.every=function(e){return this.nodes.every(e)},c.some=function(e){return this.nodes.some(e)},c.index=function(e){return\"number\"==typeof e?e:this.nodes.indexOf(e)},c.normalize=function(e,t){var i=this;if(\"string\"==typeof e)e=function e(t){return t.map((function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t}))}(n(5)(e).nodes);else if(Array.isArray(e)){var s=e=e.slice(0),a=Array.isArray(s),u=0;for(s=a?s:s[Symbol.iterator]();;){var c;if(a){if(u>=s.length)break;c=s[u++]}else{if((u=s.next()).done)break;c=u.value}var l=c;l.parent&&l.parent.removeChild(l,\"ignore\")}}else if(\"root\"===e.type){var d=e=e.nodes.slice(0),h=Array.isArray(d),p=0;for(d=h?d:d[Symbol.iterator]();;){var f;if(h){if(p>=d.length)break;f=d[p++]}else{if((p=d.next()).done)break;f=p.value}var g=f;g.parent&&g.parent.removeChild(g,\"ignore\")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error(\"Value field is missed in node creation\");\"string\"!=typeof e.value&&(e.value=String(e.value)),e=[new r.default(e)]}else if(e.selector)e=[new(n(9))(e)];else if(e.name)e=[new(n(7))(e)];else{if(!e.text)throw new Error(\"Unknown node type in node creation\");e=[new o.default(e)]}return e.map((function(e){return e.parent&&e.parent.removeChild(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/[^\\s]/g,\"\")),e.parent=i,e}))},(u=[{key:\"first\",get:function(){if(this.nodes)return this.nodes[0]}},{key:\"last\",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}])&&s(a.prototype,u),a}(i(n(2)).default);t.default=a,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=i(n(8)),o=i(n(19));function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(e){var t,n,r;function i(t){var n;return(n=e.call(this,t)||this).type=\"rule\",n.nodes||(n.nodes=[]),n}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,(r=[{key:\"selectors\",get:function(){return o.default.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\\s*/):null,n=t?t[0]:\",\"+this.raw(\"between\",\"beforeOpen\");this.selector=e.join(n)}}])&&s(i.prototype,r),i}(r.default);t.default=a,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=s(n(22)),o=s(n(23)),i=s(n(24));function s(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=\"function\"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf(\"[native code]\")))return e;var n;if(\"function\"!=typeof e)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)})(e)}function u(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,n){return(c=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&l(o,n.prototype),o}).apply(null,arguments)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){var t,n;function s(t,n,r,o,i,a){var u;return(u=e.call(this,t)||this).name=\"CssSyntaxError\",u.reason=t,i&&(u.file=i),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==r&&(u.line=n,u.column=r),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(u),s),u}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=s.prototype;return a.setMessage=function(){this.message=this.plugin?this.plugin+\": \":\"\",this.message+=this.file?this.file:\"<css input>\",void 0!==this.line&&(this.message+=\":\"+this.line+\":\"+this.column),this.message+=\": \"+this.reason},a.showSourceCode=function(e){var t=this;if(!this.source)return\"\";var n=this.source;i.default&&(void 0===e&&(e=r.default.stdout),e&&(n=(0,i.default)(n)));var s=n.split(/\\r?\\n/),a=Math.max(this.line-3,0),u=Math.min(this.line+2,s.length),c=String(u).length;function l(t){return e&&o.default.red?o.default.red.bold(t):t}function d(t){return e&&o.default.gray?o.default.gray(t):t}return s.slice(a,u).map((function(e,n){var r=a+1+n,o=\" \"+(\" \"+r).slice(-c)+\" | \";if(r===t.line){var i=d(o.replace(/\\d/g,\" \"))+e.slice(0,t.column-1).replace(/[^\\t]/g,\" \");return l(\">\")+d(o)+e+\"\\n \"+i+l(\"^\")}return\" \"+d(o)+e})).join(\"\\n\")},a.toString=function(){var e=this.showSourceCode();return e&&(e=\"\\n\\n\"+e+\"\\n\"),this.name+\": \"+this.message+e},s}(a(Error));t.default=h,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r={colon:\": \",indent:\" \",beforeDecl:\"\\n\",beforeRule:\"\\n\",beforeOpen:\" \",beforeClose:\"\\n\",beforeComment:\"\\n\",after:\"\\n\",emptyBody:\"\",commentLeft:\" \",commentRight:\" \",semicolon:!1},o=function(){function e(e){this.builder=e}var t=e.prototype;return t.stringify=function(e,t){this[e.type](e,t)},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.comment=function(e){var t=this.raw(e,\"left\",\"commentLeft\"),n=this.raw(e,\"right\",\"commentRight\");this.builder(\"/*\"+t+e.text+n+\"*/\",e)},t.decl=function(e,t){var n=this.raw(e,\"between\",\"colon\"),r=e.prop+n+this.rawValue(e,\"value\");e.important&&(r+=e.raws.important||\" !important\"),t&&(r+=\";\"),this.builder(r,e)},t.rule=function(e){this.block(e,this.rawValue(e,\"selector\")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,\"end\")},t.atrule=function(e,t){var n=\"@\"+e.name,r=e.params?this.rawValue(e,\"params\"):\"\";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=\" \"),e.nodes)this.block(e,n+r);else{var o=(e.raws.between||\"\")+(t?\";\":\"\");this.builder(n+r+o,e)}},t.body=function(e){for(var t=e.nodes.length-1;t>0&&\"comment\"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,\"semicolon\"),r=0;r<e.nodes.length;r++){var o=e.nodes[r],i=this.raw(o,\"before\");i&&this.builder(i),this.stringify(o,t!==r||n)}},t.block=function(e,t){var n,r=this.raw(e,\"between\",\"beforeOpen\");this.builder(t+r+\"{\",e,\"start\"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,\"after\")):n=this.raw(e,\"after\",\"emptyBody\"),n&&this.builder(n),this.builder(\"}\",e,\"end\")},t.raw=function(e,t,n){var o;if(n||(n=t),t&&void 0!==(o=e.raws[t]))return o;var i=e.parent;if(\"before\"===n&&(!i||\"root\"===i.type&&i.first===e))return\"\";if(!i)return r[n];var s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[n])return s.rawCache[n];if(\"before\"===n||\"after\"===n)return this.beforeAfter(e,n);var a,u=\"raw\"+((a=n)[0].toUpperCase()+a.slice(1));return this[u]?o=this[u](s,e):s.walk((function(e){if(void 0!==(o=e.raws[t]))return!1})),void 0===o&&(o=r[n]),s.rawCache[n]=o,o},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&\"decl\"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){var o=n.raws.before.split(\"\\n\");return t=(t=o[o.length-1]).replace(/[^\\s]/g,\"\"),!1}})),t);var t},t.rawBeforeComment=function(e,t){var n;return e.walkComments((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf(\"\\n\")&&(n=n.replace(/[^\\n]+$/,\"\")),!1})),void 0===n?n=this.raw(t,null,\"beforeDecl\"):n&&(n=n.replace(/[^\\s]/g,\"\")),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf(\"\\n\")&&(n=n.replace(/[^\\n]+$/,\"\")),!1})),void 0===n?n=this.raw(t,null,\"beforeRule\"):n&&(n=n.replace(/[^\\s]/g,\"\")),n},t.rawBeforeRule=function(e){var t;return e.walk((function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return-1!==(t=n.raws.before).indexOf(\"\\n\")&&(t=t.replace(/[^\\n]+$/,\"\")),!1})),t&&(t=t.replace(/[^\\s]/g,\"\")),t},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return-1!==(t=e.raws.after).indexOf(\"\\n\")&&(t=t.replace(/[^\\n]+$/,\"\")),!1})),t&&(t=t.replace(/[^\\s]/g,\"\")),t},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if(\"decl\"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\\s:]/g,\"\"),!1})),t},t.beforeAfter=function(e,t){var n;n=\"decl\"===e.type?this.raw(e,null,\"beforeDecl\"):\"comment\"===e.type?this.raw(e,null,\"beforeComment\"):\"before\"===t?this.raw(e,null,\"beforeRule\"):this.raw(e,null,\"beforeClose\");for(var r=e.parent,o=0;r&&\"root\"!==r.type;)o+=1,r=r.parent;if(-1!==n.indexOf(\"\\n\")){var i=this.raw(e,null,\"indent\");if(i.length)for(var s=0;s<o;s++)n+=i}return n},t.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},e}();t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(13))&&r.__esModule?r:{default:r},i=function(){function e(e){void 0===e&&(e=[]),this.version=\"7.0.32\",this.plugins=this.normalize(e)}var t=e.prototype;return t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t.process=function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){return void 0===t&&(t={}),0===this.plugins.length&&(t.parser,t.stringifier),new o.default(this,e,t)})),t.normalize=function(e){var t=[],n=e,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var s=i;if(s.postcss&&(s=s.postcss),\"object\"==typeof s&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if(\"function\"==typeof s)t.push(s);else if(\"object\"!=typeof s||!s.parse&&!s.stringify)throw new Error(s+\" is not a PostCSS plugin\")}return t},e}();t.default=i,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=a(n(25)),o=a(n(3)),i=(a(n(37)),a(n(38))),s=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e){return\"object\"==typeof e&&\"function\"==typeof e.then}var l=function(){function e(t,n,r){var o;if(this.stringified=!1,this.processed=!1,\"object\"==typeof n&&null!==n&&\"root\"===n.type)o=n;else if(n instanceof e||n instanceof i.default)o=n.root,n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var a=s.default;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(n,r)}catch(e){this.error=e}}this.result=new i.default(t,o,r)}var t,n=e.prototype;return n.warnings=function(){return this.sync().warnings()},n.toString=function(){return this.css},n.then=function(e,t){return this.async().then(e,t)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.handleError=function(e,t){try{this.error=e,\"CssSyntaxError\"!==e.name||e.plugin?t.postcssVersion:(e.plugin=t.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}},n.asyncTick=function(e,t){var n=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,e();try{var r=this.processor.plugins[this.plugin],o=this.run(r);this.plugin+=1,c(o)?o.then((function(){n.asyncTick(e,t)})).catch((function(e){n.handleError(e,r),n.processed=!0,t(e)})):this.asyncTick(e,t)}catch(e){this.processed=!0,t(e)}},n.async=function(){var e=this;return this.processed?new Promise((function(t,n){e.error?n(e.error):t(e.stringify())})):(this.processing||(this.processing=new Promise((function(t,n){if(e.error)return n(e.error);e.plugin=0,e.asyncTick(t,n)})).then((function(){return e.processed=!0,e.stringify()}))),this.processing)},n.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error(\"Use process(css).then(cb) to work with async plugins\");if(this.error)throw this.error;var e=this.result.processor.plugins,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var o=r;if(c(this.run(o)))throw new Error(\"Use process(css).then(cb) to work with async plugins\")}return this.result},n.run=function(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){throw this.handleError(t,e),t}},n.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=o.default;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new r.default(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},(t=[{key:\"processor\",get:function(){return this.result.processor}},{key:\"opts\",get:function(){return this.result.opts}},{key:\"css\",get:function(){return this.stringify().css}},{key:\"content\",get:function(){return this.stringify().content}},{key:\"map\",get:function(){return this.stringify().map}},{key:\"root\",get:function(){return this.sync().root}},{key:\"messages\",get:function(){return this.sync().messages}}])&&u(e.prototype,t),e}();t.default=l,e.exports=t.default},function(e,t,n){(function(e){var r=n(27),o=n(28),i=n(29);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError(\"Invalid typed array length\");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if(\"number\"==typeof e){if(\"string\"==typeof t)throw new Error(\"If encoding is specified then the first argument must be a string\");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if(\"number\"==typeof t)throw new TypeError('\"value\" argument must not be a number');return\"undefined\"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError(\"'offset' is out of bounds\");if(t.byteLength<n+(r||0))throw new RangeError(\"'length' is out of bounds\");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t),e}(e,t,n,r):\"string\"==typeof t?function(e,t,n){if(\"string\"==typeof n&&\"\"!==n||(n=\"utf8\"),!u.isEncoding(n))throw new TypeError('\"encoding\" must be a valid string encoding');var r=0|f(t,n),o=(e=a(e,r)).write(t,n);return o!==r&&(e=e.slice(0,o)),e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|p(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if(\"undefined\"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||\"length\"in t)return\"number\"!=typeof t.length||(r=t.length)!=r?a(e,0):h(e,t);if(\"Buffer\"===t.type&&i(t.data))return h(e,t.data)}var r;throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")}(e,t)}function l(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be a number');if(e<0)throw new RangeError('\"size\" argument must not be negative')}function d(e,t){if(l(t),e=a(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=s())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+s().toString(16)+\" bytes\");return 0|e}function f(e,t){if(u.isBuffer(e))return e.length;if(\"undefined\"!=typeof ArrayBuffer&&\"function\"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;\"string\"!=typeof e&&(e=\"\"+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":case void 0:return U(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*n;case\"hex\":return n>>>1;case\"base64\":return z(e).length;default:if(r)return U(e).length;t=(\"\"+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return\"\";if((n>>>=0)<=(t>>>=0))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return N(this,t,n);case\"utf8\":case\"utf-8\":return E(this,t,n);case\"ascii\":return T(this,t,n);case\"latin1\":case\"binary\":return x(this,t,n);case\"base64\":return C(this,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return O(this,t,n);default:if(r)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if(\"string\"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if(\"string\"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if(\"number\"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&\"function\"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError(\"val must be string, number or Buffer\")}function y(e,t,n,r,o){var i,s=1,a=e.length,u=t.length;if(void 0!==r&&(\"ucs2\"===(r=String(r).toLowerCase())||\"ucs-2\"===r||\"utf16le\"===r||\"utf-16le\"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=n;i<a;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(n+u>a&&(n=a-u),i=n;i>=0;i--){for(var d=!0,h=0;h<u;h++)if(c(e,i+h)!==c(t,h)){d=!1;break}if(d)return i}return-1}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError(\"Invalid hex string\");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function _(e,t,n,r){return H(U(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return w(e,t,n,r)}function I(e,t,n,r){return H(z(t),e,n,r)}function k(e,t,n,r){return H(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,u,c=e[o],l=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n=\"\",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function T(e,t,n){var r=\"\";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function x(e,t,n){var r=\"\";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o=\"\",i=t;i<n;++i)o+=F(e[i]);return o}function O(e,t,n){for(var r=e.slice(t,n),o=\"\",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function A(e,t,n){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(e+t>n)throw new RangeError(\"Trying to access beyond buffer length\")}function M(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('\"value\" argument is out of bounds');if(n+r>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function D(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"Index out of range\")}function R(e,t,n,r,i){return i||D(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return i||D(e,0,n,8),o.write(e,t,n,r,52,8),n+8}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&\"function\"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,\"undefined\"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?a(e,t):void 0!==n?\"string\"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError(\"Arguments must be Buffers\");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var s=e[n];if(!u.isBuffer(s))throw new TypeError('\"list\" argument must be an Array of Buffers');s.copy(r,o),o+=s.length}return r},u.byteLength=f,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?\"\":0===arguments.length?E(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e=\"\",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString(\"hex\",0,n).match(/.{2}/g).join(\" \"),this.length>n&&(e+=\" ... \")),\"<Buffer \"+e+\">\"},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError(\"out of range index\");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(r,o),l=e.slice(t,n),d=0;d<a;++d)if(c[d]!==l[d]){i=c[d],s=l[d];break}return i<s?-1:s<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r=\"utf8\",n=this.length,t=0;else if(void 0===n&&\"string\"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t|=0,isFinite(n)?(n|=0,void 0===r&&(r=\"utf8\")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");r||(r=\"utf8\");for(var i=!1;;)switch(r){case\"hex\":return b(this,e,t,n);case\"utf8\":case\"utf-8\":return _(this,e,t,n);case\"ascii\":return w(this,e,t,n);case\"latin1\":case\"binary\":return S(this,e,t,n);case\"base64\":return I(this,e,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return k(this,e,t,n);default:if(i)throw new TypeError(\"Unknown encoding: \"+r);r=(\"\"+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(n<0||n>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(r<0)throw new RangeError(\"sourceEnd out of bounds\");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},u.prototype.fill=function(e,t,n,r){if(\"string\"==typeof e){if(\"string\"==typeof t?(r=t,t=0,n=this.length):\"string\"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&\"string\"!=typeof r)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof r&&!u.isEncoding(r))throw new TypeError(\"Unknown encoding: \"+r)}else\"number\"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError(\"Out of range index\");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),\"number\"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=u.isBuffer(e)?e:U(new u(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var j=/[^+\\/0-9A-Za-z-_]/g;function F(e){return e<16?\"0\"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\\s+|\\s+$/g,\"\")}(e).replace(j,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function H(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(26))},function(e,t,n){t.SourceMapGenerator=n(16).SourceMapGenerator,t.SourceMapConsumer=n(32).SourceMapConsumer,t.SourceNode=n(35).SourceNode},function(e,t,n){var r=n(17),o=n(0),i=n(18).ArraySet,s=n(31).MappingList;function a(e){e||(e={}),this._file=o.getArg(e,\"file\",null),this._sourceRoot=o.getArg(e,\"sourceRoot\",null),this._skipValidation=o.getArg(e,\"skipValidation\",!1),this._sources=new i,this._names=new i,this._mappings=new s,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,n=new a({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=o.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){var i=r;null!==t&&(i=o.relative(t,r)),n._sources.has(i)||n._sources.add(i);var s=e.sourceContentFor(r);null!=s&&n.setSourceContent(r,s)})),n},a.prototype.addMapping=function(e){var t=o.getArg(e,\"generated\"),n=o.getArg(e,\"original\",null),r=o.getArg(e,\"source\",null),i=o.getArg(e,\"name\",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},a.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\\'s \"file\" property. Both were omitted.');r=e.file}var s=this._sourceRoot;null!=s&&(r=o.relative(s,r));var a=new i,u=new i;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=n&&(t.source=o.join(n,t.source)),null!=s&&(t.source=o.relative(s,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var c=t.source;null==c||a.has(c)||a.add(c);var l=t.name;null==l||u.has(l)||u.add(l)}),this),this._sources=a,this._names=u,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),null!=s&&(t=o.relative(s,t)),this.setSourceContent(t,r))}),this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&\"number\"!=typeof t.line&&\"number\"!=typeof t.column)throw new Error(\"original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.\");if((!(e&&\"line\"in e&&\"column\"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&\"line\"in e&&\"column\"in e&&t&&\"line\"in t&&\"column\"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error(\"Invalid mapping: \"+JSON.stringify({generated:e,source:n,original:t,name:r}))},a.prototype._serializeMappings=function(){for(var e,t,n,i,s=0,a=1,u=0,c=0,l=0,d=0,h=\"\",p=this._mappings.toArray(),f=0,g=p.length;f<g;f++){if(e=\"\",(t=p[f]).generatedLine!==a)for(s=0;t.generatedLine!==a;)e+=\";\",a++;else if(f>0){if(!o.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=\",\"}e+=r.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=r.encode(i-d),d=i,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-l),l=n)),h+=e}return h},a.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=a},function(e,t,n){var r=n(30);t.encode=function(e){var t,n=\"\",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&o,(o>>>=5)>0&&(t|=32),n+=r.encode(t)}while(o>0);return n},t.decode=function(e,t,n){var o,i,s,a,u=e.length,c=0,l=0;do{if(t>=u)throw new Error(\"Expected more digits in base 64 VLQ value.\");if(-1===(i=r.decode(e.charCodeAt(t++))))throw new Error(\"Invalid base64 digit: \"+e.charAt(t-1));o=!!(32&i),c+=(i&=31)<<l,l+=5}while(o);n.value=(a=(s=c)>>1,1==(1&s)?-a:a),n.rest=t}},function(e,t,n){var r=n(0),o=Object.prototype.hasOwnProperty,i=\"undefined\"!=typeof Map;function s(){this._array=[],this._set=i?new Map:Object.create(null)}s.fromArray=function(e,t){for(var n=new s,r=0,o=e.length;r<o;r++)n.add(e[r],t);return n},s.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},s.prototype.add=function(e,t){var n=i?e:r.toSetString(e),s=i?this.has(e):o.call(this._set,n),a=this._array.length;s&&!t||this._array.push(e),s||(i?this._set.set(e,a):this._set[n]=a)},s.prototype.has=function(e){if(i)return this._set.has(e);var t=r.toSetString(e);return o.call(this._set,t)},s.prototype.indexOf=function(e){if(i){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(o.call(this._set,n))return this._set[n]}throw new Error('\"'+e+'\" is not in the set.')},s.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error(\"No element indexed by \"+e)},s.prototype.toArray=function(){return this._array.slice()},t.ArraySet=s},function(e,t,n){t.__esModule=!0,t.default=void 0;var r={split:function(e,t,n){for(var r=[],o=\"\",i=!1,s=0,a=!1,u=!1,c=0;c<e.length;c++){var l=e[c];a?u?u=!1:\"\\\\\"===l?u=!0:l===a&&(a=!1):'\"'===l||\"'\"===l?a=l:\"(\"===l?s+=1:\")\"===l?s>0&&(s-=1):0===s&&-1!==t.indexOf(l)&&(i=!0),i?(\"\"!==o&&r.push(o.trim()),o=\"\",i=!1):o+=l}return(n||\"\"!==o)&&r.push(o.trim()),r},space:function(e){return r.split(e,[\" \",\"\\n\",\"\\t\"])},comma:function(e){return r.split(e,[\",\"],!0)}},o=r;t.default=o,e.exports=t.default},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,r;function o(t){var n;return(n=e.call(this,t)||this).type=\"root\",n.nodes||(n.nodes=[]),n}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=o.prototype;return i.removeChild=function(t,n){var r=this.index(t);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},i.normalize=function(t,n,r){var o=e.prototype.normalize.call(this,t);if(n)if(\"prepend\"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n){var i=o,s=Array.isArray(i),a=0;for(i=s?i:i[Symbol.iterator]();;){var u;if(s){if(a>=i.length)break;u=i[a++]}else{if((a=i.next()).done)break;u=a.value}u.raws.before=n.raws.before}}return o},i.toResult=function(e){return void 0===e&&(e={}),new(n(13))(new(n(12)),this,e).stringify()},o}(((r=n(8))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=p(n(1)),o=p(n(12)),i=p(n(3)),s=p(n(6)),a=p(n(7)),u=p(n(45)),c=p(n(5)),l=p(n(19)),d=p(n(9)),h=p(n(20));function p(e){return e&&e.__esModule?e:{default:e}}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new o.default(t)}f.plugin=function(e,t){function n(){var n=t.apply(void 0,arguments);return n.postcssPlugin=e,n.postcssVersion=(new o.default).version,n}var r;return Object.defineProperty(n,\"postcss\",{get:function(){return r||(r=n()),r}}),n.process=function(e,t,r){return f([n(r)]).process(e,t)},n},f.stringify=i.default,f.parse=c.default,f.vendor=u.default,f.list=l.default,f.comment=function(e){return new s.default(e)},f.atRule=function(e){return new a.default(e)},f.decl=function(e){return new r.default(e)},f.rule=function(e){return new d.default(e)},f.root=function(e){return new h.default(e)};var g=f;t.default=g,e.exports=t.default},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){(function(r){t.__esModule=!0,t.default=void 0;var o=s(n(15)),i=s(n(4));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(e,t,n){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n}var t=e.prototype;return t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.previous=function(){var e=this;return this.previousMaps||(this.previousMaps=[],this.root.walk((function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;-1===e.previousMaps.indexOf(n)&&e.previousMaps.push(n)}}))),this.previousMaps},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)for(var e,t=this.root.nodes.length-1;t>=0;t--)\"comment\"===(e=this.root.nodes[t]).type&&0===e.text.indexOf(\"# sourceMappingURL=\")&&this.root.removeChild(t)},t.setSourcesContent=function(){var e=this,t={};this.root.walk((function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var o=e.relative(r);e.map.setSourceContent(o,n.source.input.css)}}}))},t.applyPrevMaps=function(){var e=this.previous(),t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var s=r,a=this.relative(s.file),u=s.root||i.default.dirname(s.file),c=void 0;!1===this.mapOpts.sourcesContent?(c=new o.default.SourceMapConsumer(s.text)).sourcesContent&&(c.sourcesContent=c.sourcesContent.map((function(){return null}))):c=s.consumer(),this.map.applySourceMap(c,a,this.relative(u))}},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},t.toBase64=function(e){return r?r.from(e).toString(\"base64\"):window.btoa(unescape(encodeURIComponent(e)))},t.addAnnotation=function(){var e;e=this.isInline()?\"data:application/json;base64,\"+this.toBase64(this.map.toString()):\"string\"==typeof this.mapOpts.annotation?this.mapOpts.annotation:this.outputFile()+\".map\";var t=\"\\n\";-1!==this.css.indexOf(\"\\r\\n\")&&(t=\"\\r\\n\"),this.css+=t+\"/*# sourceMappingURL=\"+e+\" */\"},t.outputFile=function(){return this.opts.to?this.relative(this.opts.to):this.opts.from?this.relative(this.opts.from):\"to.css\"},t.generateMap=function(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.relative=function(e){if(0===e.indexOf(\"<\"))return e;if(/^\\w+:\\/\\//.test(e))return e;var t=this.opts.to?i.default.dirname(this.opts.to):\".\";return\"string\"==typeof this.mapOpts.annotation&&(t=i.default.dirname(i.default.resolve(t,this.mapOpts.annotation))),e=i.default.relative(t,e),\"\\\\\"===i.default.sep?e.replace(/\\\\/g,\"/\"):e},t.sourcePath=function(e){return this.mapOpts.from?this.mapOpts.from:this.relative(e.source.input.from)},t.generateString=function(){var e=this;this.css=\"\",this.map=new o.default.SourceMapGenerator({file:this.outputFile()});var t,n,r=1,i=1;this.stringify(this.root,(function(o,s,a){if(e.css+=o,s&&\"end\"!==a&&(s.source&&s.source.start?e.map.addMapping({source:e.sourcePath(s),generated:{line:r,column:i-1},original:{line:s.source.start.line,column:s.source.start.column-1}}):e.map.addMapping({source:\"<no source>\",original:{line:1,column:0},generated:{line:r,column:i-1}})),(t=o.match(/\\n/g))?(r+=t.length,n=o.lastIndexOf(\"\\n\"),i=o.length-n):i+=o.length,s&&\"start\"!==a){var u=s.parent||{raws:{}};(\"decl\"!==s.type||s!==u.last||u.raws.semicolon)&&(s.source&&s.source.end?e.map.addMapping({source:e.sourcePath(s),generated:{line:r,column:i-2},original:{line:s.source.end.line,column:s.source.end.column-1}}):e.map.addMapping({source:\"<no source>\",original:{line:1,column:0},generated:{line:r,column:i-1}}))}}))},t.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var e=\"\";return this.stringify(this.root,(function(t){e+=t})),[e]},e}();t.default=a,e.exports=t.default}).call(this,n(14).Buffer)},function(e,t){var n;n=function(){return this}();try{n=n||new Function(\"return this\")()}catch(e){\"object\"==typeof window&&(n=window)}e.exports=n},function(e,t,n){t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=c(e),r=n[0],s=n[1],a=new i(function(e,t,n){return 3*(t+n)/4-n}(0,r,s)),u=0,l=s>0?r-4:r,d=0;d<l;d+=4)t=o[e.charCodeAt(d)]<<18|o[e.charCodeAt(d+1)]<<12|o[e.charCodeAt(d+2)]<<6|o[e.charCodeAt(d+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=255&t;return 2===s&&(t=o[e.charCodeAt(d)]<<2|o[e.charCodeAt(d+1)]>>4,a[u++]=255&t),1===s&&(t=o[e.charCodeAt(d)]<<10|o[e.charCodeAt(d+1)]<<4|o[e.charCodeAt(d+2)]>>2,a[u++]=t>>8&255,a[u++]=255&t),a},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=0,a=n-o;s<a;s+=16383)i.push(l(e,s,s+16383>a?a:s+16383));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+\"==\")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+\"=\")),i.join(\"\")};for(var r=[],o=[],i=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,s=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",a=0,u=s.length;a<u;++a)r[a]=s[a],o[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var n=e.indexOf(\"=\");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,s=[],a=t;a<n;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join(\"\")}o[\"-\".charCodeAt(0)]=62,o[\"_\".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,s,a=8*o-r-1,u=(1<<a)-1,c=u>>1,l=-7,d=n?o-1:0,h=n?-1:1,p=e[t+d];for(d+=h,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+d],d+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+e[t+d],d+=h,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=c}return(p?-1:1)*s*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,d=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(s++,u/=2),s+d>=l?(a=0,s=l):s+d>=1?(a=(t*u-1)*Math.pow(2,o),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,o),s=0));o>=8;e[n+p]=255&a,p+=f,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;e[n+p]=255&s,p+=f,s/=256,c-=8);e[n+p-f]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return\"[object Array]\"==n.call(e)}},function(e,t){var n=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".split(\"\");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError(\"Must be between 0 and 63: \"+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},function(e,t,n){var r=n(0);function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){var t,n,o,i,s,a;n=e,o=(t=this._last).generatedLine,i=n.generatedLine,s=t.generatedColumn,a=n.generatedColumn,i>o||i==o&&a>=s||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=o},function(e,t,n){var r=n(0),o=n(33),i=n(18).ArraySet,s=n(17),a=n(34).quickSort;function u(e,t){var n=e;return\"string\"==typeof e&&(n=r.parseSourceMapInput(e)),null!=n.sections?new d(n,t):new c(n,t)}function c(e,t){var n=e;\"string\"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,\"version\"),s=r.getArg(n,\"sources\"),a=r.getArg(n,\"names\",[]),u=r.getArg(n,\"sourceRoot\",null),c=r.getArg(n,\"sourcesContent\",null),l=r.getArg(n,\"mappings\"),d=r.getArg(n,\"file\",null);if(o!=this._version)throw new Error(\"Unsupported version: \"+o);u&&(u=r.normalize(u)),s=s.map(String).map(r.normalize).map((function(e){return u&&r.isAbsolute(u)&&r.isAbsolute(e)?r.relative(u,e):e})),this._names=i.fromArray(a.map(String),!0),this._sources=i.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map((function(e){return r.computeSourceURL(u,e,t)})),this.sourceRoot=u,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=t,this.file=d}function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var n=e;\"string\"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,\"version\"),s=r.getArg(n,\"sections\");if(o!=this._version)throw new Error(\"Unsupported version: \"+o);this._sources=new i,this._names=new i;var a={line:-1,column:0};this._sections=s.map((function(e){if(e.url)throw new Error(\"Support for url field in sections not implemented.\");var n=r.getArg(e,\"offset\"),o=r.getArg(n,\"line\"),i=r.getArg(n,\"column\");if(o<a.line||o===a.line&&i<a.column)throw new Error(\"Section offsets must be ordered and non-overlapping.\");return a=n,{generatedOffset:{generatedLine:o+1,generatedColumn:i+1},consumer:new u(r.getArg(e,\"map\"),t)}}))}u.fromSourceMap=function(e,t){return c.fromSourceMap(e,t)},u.prototype._version=3,u.prototype.__generatedMappings=null,Object.defineProperty(u.prototype,\"_generatedMappings\",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),u.prototype.__originalMappings=null,Object.defineProperty(u.prototype,\"_originalMappings\",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),u.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return\";\"===n||\",\"===n},u.prototype._parseMappings=function(e,t){throw new Error(\"Subclasses must implement _parseMappings\")},u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,u.prototype.eachMapping=function(e,t,n){var o,i=t||null;switch(n||u.GENERATED_ORDER){case u.GENERATED_ORDER:o=this._generatedMappings;break;case u.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error(\"Unknown order of iteration.\")}var s=this.sourceRoot;o.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=r.computeSourceURL(s,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},u.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,\"line\"),n={source:r.getArg(e,\"source\"),originalLine:t,originalColumn:r.getArg(e,\"column\",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,\"originalLine\",\"originalColumn\",r.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(void 0===e.column)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:r.getArg(a,\"generatedLine\",null),column:r.getArg(a,\"generatedColumn\",null),lastColumn:r.getArg(a,\"lastGeneratedColumn\",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==c;)i.push({line:r.getArg(a,\"generatedLine\",null),column:r.getArg(a,\"generatedColumn\",null),lastColumn:r.getArg(a,\"lastGeneratedColumn\",null)}),a=this._originalMappings[++s]}return i},t.SourceMapConsumer=u,c.prototype=Object.create(u.prototype),c.prototype.consumer=u,c.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},c.fromSourceMap=function(e,t){var n=Object.create(c.prototype),o=n._names=i.fromArray(e._names.toArray(),!0),s=n._sources=i.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map((function(e){return r.computeSourceURL(n.sourceRoot,e,t)}));for(var u=e._mappings.toArray().slice(),d=n.__generatedMappings=[],h=n.__originalMappings=[],p=0,f=u.length;p<f;p++){var g=u[p],v=new l;v.generatedLine=g.generatedLine,v.generatedColumn=g.generatedColumn,g.source&&(v.source=s.indexOf(g.source),v.originalLine=g.originalLine,v.originalColumn=g.originalColumn,g.name&&(v.name=o.indexOf(g.name)),h.push(v)),d.push(v)}return a(n.__originalMappings,r.compareByOriginalPositions),n},c.prototype._version=3,Object.defineProperty(c.prototype,\"sources\",{get:function(){return this._absoluteSources.slice()}}),c.prototype._parseMappings=function(e,t){for(var n,o,i,u,c,d=1,h=0,p=0,f=0,g=0,v=0,m=e.length,y=0,b={},_={},w=[],S=[];y<m;)if(\";\"===e.charAt(y))d++,y++,h=0;else if(\",\"===e.charAt(y))y++;else{for((n=new l).generatedLine=d,u=y;u<m&&!this._charIsMappingSeparator(e,u);u++);if(i=b[o=e.slice(y,u)])y+=o.length;else{for(i=[];y<u;)s.decode(e,y,_),c=_.value,y=_.rest,i.push(c);if(2===i.length)throw new Error(\"Found a source, but no line and column\");if(3===i.length)throw new Error(\"Found a source and line, but no column\");b[o]=i}n.generatedColumn=h+i[0],h=n.generatedColumn,i.length>1&&(n.source=g+i[1],g+=i[1],n.originalLine=p+i[2],p=n.originalLine,n.originalLine+=1,n.originalColumn=f+i[3],f=n.originalColumn,i.length>4&&(n.name=v+i[4],v+=i[4])),S.push(n),\"number\"==typeof n.originalLine&&w.push(n)}a(S,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,a(w,r.compareByOriginalPositions),this.__originalMappings=w},c.prototype._findMapping=function(e,t,n,r,i,s){if(e[n]<=0)throw new TypeError(\"Line must be greater than or equal to 1, got \"+e[n]);if(e[r]<0)throw new TypeError(\"Column must be greater than or equal to 0, got \"+e[r]);return o.search(e,t,i,s)},c.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,\"line\"),generatedColumn:r.getArg(e,\"column\")},n=this._findMapping(t,this._generatedMappings,\"generatedLine\",\"generatedColumn\",r.compareByGeneratedPositionsDeflated,r.getArg(e,\"bias\",u.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var i=r.getArg(o,\"source\",null);null!==i&&(i=this._sources.at(i),i=r.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var s=r.getArg(o,\"name\",null);return null!==s&&(s=this._names.at(s)),{source:i,line:r.getArg(o,\"originalLine\",null),column:r.getArg(o,\"originalColumn\",null),name:s}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var o,i=e;if(null!=this.sourceRoot&&(i=r.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(o=r.urlParse(this.sourceRoot))){var s=i.replace(/^file:\\/\\//,\"\");if(\"file\"==o.scheme&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!o.path||\"/\"==o.path)&&this._sources.has(\"/\"+i))return this.sourcesContent[this._sources.indexOf(\"/\"+i)]}if(t)return null;throw new Error('\"'+i+'\" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=r.getArg(e,\"source\");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:r.getArg(e,\"line\"),originalColumn:r.getArg(e,\"column\")},o=this._findMapping(n,this._originalMappings,\"originalLine\",\"originalColumn\",r.compareByOriginalPositions,r.getArg(e,\"bias\",u.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:r.getArg(i,\"generatedLine\",null),column:r.getArg(i,\"generatedColumn\",null),lastColumn:r.getArg(i,\"lastGeneratedColumn\",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=c,d.prototype=Object.create(u.prototype),d.prototype.constructor=u,d.prototype._version=3,Object.defineProperty(d.prototype,\"sources\",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),d.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,\"line\"),generatedColumn:r.getArg(e,\"column\")},n=o.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),i=this._sections[n];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},d.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('\"'+e+'\" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(r.getArg(e,\"source\"))){var o=n.consumer.generatedPositionFor(e);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],i=o.consumer._generatedMappings,s=0;s<i.length;s++){var u=i[s],c=o.consumer._sources.at(u.source);c=r.computeSourceURL(o.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=o.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var d={source:c,generatedLine:u.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(o.generatedOffset.generatedLine===u.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(d),\"number\"==typeof d.originalLine&&this.__originalMappings.push(d)}a(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),a(this.__originalMappings,r.compareByOriginalPositions)},t.IndexedSourceMapConsumer=d},function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,r,o){if(0===n.length)return-1;var i=function e(n,r,o,i,s,a){var u=Math.floor((r-n)/2)+n,c=s(o,i[u],!0);return 0===c?u:c>0?r-u>1?e(u,r,o,i,s,a):a==t.LEAST_UPPER_BOUND?r<i.length?r:-1:u:u-n>1?e(n,u,o,i,s,a):a==t.LEAST_UPPER_BOUND?u:n<0?-1:n}(-1,n.length,e,n,r,o||t.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===r(n[i],n[i-1],!0);)--i;return i}},function(e,t){function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,o,i){if(o<i){var s=o-1;n(e,(l=o,d=i,Math.round(l+Math.random()*(d-l))),i);for(var a=e[i],u=o;u<i;u++)t(e[u],a)<=0&&n(e,s+=1,u);n(e,s+1,u);var c=s+1;r(e,t,o,c-1),r(e,t,c+1,i)}var l,d}t.quickSort=function(e,t){r(e,t,0,e.length-1)}},function(e,t,n){var r=n(16).SourceMapGenerator,o=n(0),i=/(\\r?\\n)/,s=\"$$$isSourceNode$$$\";function a(e,t,n,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==o?null:o,this[s]=!0,null!=r&&this.add(r)}a.fromStringWithSourceMap=function(e,t,n){var r=new a,s=e.split(i),u=0,c=function(){return e()+(e()||\"\");function e(){return u<s.length?s[u++]:void 0}},l=1,d=0,h=null;return t.eachMapping((function(e){if(null!==h){if(!(l<e.generatedLine)){var t=(n=s[u]||\"\").substr(0,e.generatedColumn-d);return s[u]=n.substr(e.generatedColumn-d),d=e.generatedColumn,p(h,t),void(h=e)}p(h,c()),l++,d=0}for(;l<e.generatedLine;)r.add(c()),l++;if(d<e.generatedColumn){var n=s[u]||\"\";r.add(n.substr(0,e.generatedColumn)),s[u]=n.substr(e.generatedColumn),d=e.generatedColumn}h=e}),this),u<s.length&&(h&&p(h,c()),r.add(s.splice(u).join(\"\"))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=n&&(e=o.join(n,e)),r.setSourceContent(e,i))})),r;function p(e,t){if(null===e||void 0===e.source)r.add(t);else{var i=n?o.join(n,e.source):e.source;r.add(new a(e.originalLine,e.originalColumn,i,t,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[s]&&\"string\"!=typeof e)throw new TypeError(\"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \"+e);e&&this.children.push(e)}return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[s]&&\"string\"!=typeof e)throw new TypeError(\"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \"+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[s]?t.walk(e):\"\"!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[s]?n.replaceRight(e,t):\"string\"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push(\"\".replace(e,t)),this},a.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},a.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][s]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(o.fromSetString(r[t]),this.sourceContents[r[t]])},a.prototype.toString=function(){var e=\"\";return this.walk((function(t){e+=t})),e},a.prototype.toStringWithSourceMap=function(e){var t={code:\"\",line:1,column:0},n=new r(e),o=!1,i=null,s=null,a=null,u=null;return this.walk((function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(i===r.source&&s===r.line&&a===r.column&&u===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),i=r.source,s=r.line,a=r.column,u=r.name,o=!0):o&&(n.addMapping({generated:{line:t.line,column:t.column}}),i=null,o=!1);for(var c=0,l=e.length;c<l;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===l?(i=null,o=!1):o&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}},t.SourceNode=a},function(e,t){var n,r,o=e.exports={};function i(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n=\"function\"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,c=[],l=!1,d=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=a(h);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||l||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},function(e,t,n){t.__esModule=!0,t.default=function(e){r[e]||(r[e]=!0,\"undefined\"!=typeof console&&console.warn&&console.warn(e))};var r={};e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(39))&&r.__esModule?r:{default:r};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}var t,n=e.prototype;return n.toString=function(){return this.css},n.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new o.default(e,t);return this.messages.push(n),n},n.warnings=function(){return this.messages.filter((function(e){return\"warning\"===e.type}))},(t=[{key:\"content\",get:function(){return this.css}}])&&i(e.prototype,t),e}();t.default=s,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=function(){function e(e,t){if(void 0===t&&(t={}),this.type=\"warning\",this.text=e,t.node&&t.node.source){var n=t.node.positionBy(t);this.line=n.line,this.column=n.column}for(var r in t)this[r]=t[r]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+\": \"+this.text:this.text},e}();t.default=r,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=c(n(1)),o=c(n(41)),i=c(n(6)),s=c(n(7)),a=c(n(20)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e){this.input=e,this.root=new a.default,this.current=this.root,this.spaces=\"\",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{line:1,column:1}}}var t=e.prototype;return t.createTokenizer=function(){this.tokenizer=(0,o.default)(this.input)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case\"space\":this.spaces+=e[1];break;case\";\":this.freeSemicolon(e);break;case\"}\":this.end(e);break;case\"comment\":this.comment(e);break;case\"at-word\":this.atrule(e);break;case\"{\":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.comment=function(e){var t=new i.default;this.init(t,e[2],e[3]),t.source.end={line:e[4],column:e[5]};var n=e[1].slice(2,-2);if(/^\\s*$/.test(n))t.text=\"\",t.raws.left=n,t.raws.right=\"\";else{var r=n.match(/^(\\s*)([^]*[^\\s])(\\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.emptyRule=function(e){var t=new u.default;this.init(t,e[2],e[3]),t.selector=\"\",t.raws.between=\"\",this.current=t},t.other=function(e){for(var t=!1,n=null,r=!1,o=null,i=[],s=[],a=e;a;){if(n=a[0],s.push(a),\"(\"===n||\"[\"===n)o||(o=a),i.push(\"(\"===n?\")\":\"]\");else if(0===i.length){if(\";\"===n){if(r)return void this.decl(s);break}if(\"{\"===n)return void this.rule(s);if(\"}\"===n){this.tokenizer.back(s.pop()),t=!0;break}\":\"===n&&(r=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&r){for(;s.length&&(\"space\"===(a=s[s.length-1][0])||\"comment\"===a);)this.tokenizer.back(s.pop());this.decl(s)}else this.unknownWord(s)},t.rule=function(e){e.pop();var t=new u.default;this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,\"selector\",e),this.current=t},t.decl=function(e){var t=new r.default;this.init(t);var n,o=e[e.length-1];for(\";\"===o[0]&&(this.semicolon=!0,e.pop()),o[4]?t.source.end={line:o[4],column:o[5]}:t.source.end={line:o[2],column:o[3]};\"word\"!==e[0][0];)1===e.length&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start={line:e[0][2],column:e[0][3]},t.prop=\"\";e.length;){var i=e[0][0];if(\":\"===i||\"space\"===i||\"comment\"===i)break;t.prop+=e.shift()[1]}for(t.raws.between=\"\";e.length;){if(\":\"===(n=e.shift())[0]){t.raws.between+=n[1];break}\"word\"===n[0]&&/\\w/.test(n[1])&&this.unknownWord([n]),t.raws.between+=n[1]}\"_\"!==t.prop[0]&&\"*\"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(var s=e.length-1;s>0;s--){if(\"!important\"===(n=e[s])[1].toLowerCase()){t.important=!0;var a=this.stringFrom(e,s);\" !important\"!==(a=this.spacesFromEnd(e)+a)&&(t.raws.important=a);break}if(\"important\"===n[1].toLowerCase()){for(var u=e.slice(0),c=\"\",l=s;l>0;l--){var d=u[l][0];if(0===c.trim().indexOf(\"!\")&&\"space\"!==d)break;c=u.pop()[1]+c}0===c.trim().indexOf(\"!\")&&(t.important=!0,t.raws.important=c,e=u)}if(\"space\"!==n[0]&&\"comment\"!==n[0])break}this.raw(t,\"value\",e),-1!==t.value.indexOf(\":\")&&this.checkMissedSemicolon(e)},t.atrule=function(e){var t,n,r=new s.default;r.name=e[1].slice(1),\"\"===r.name&&this.unnamedAtrule(r,e),this.init(r,e[2],e[3]);for(var o=!1,i=!1,a=[];!this.tokenizer.endOfFile();){if(\";\"===(e=this.tokenizer.nextToken())[0]){r.source.end={line:e[2],column:e[3]},this.semicolon=!0;break}if(\"{\"===e[0]){i=!0;break}if(\"}\"===e[0]){if(a.length>0){for(t=a[n=a.length-1];t&&\"space\"===t[0];)t=a[--n];t&&(r.source.end={line:t[4],column:t[5]})}this.end(e);break}if(a.push(e),this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(r.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(r,\"params\",a),o&&(e=a[a.length-1],r.source.end={line:e[4],column:e[5]},this.spaces=r.raws.between,r.raws.between=\"\")):(r.raws.afterName=\"\",r.params=\"\"),i&&(r.nodes=[],this.current=r)},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||\"\")+this.spaces,this.spaces=\"\",this.current.parent?(this.current.source.end={line:e[2],column:e[3]},this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||\"\")+this.spaces},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&\"rule\"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=\"\")}},t.init=function(e,t,n){this.current.push(e),e.source={start:{line:t,column:n},input:this.input},e.raws.before=this.spaces,this.spaces=\"\",\"comment\"!==e.type&&(this.semicolon=!1)},t.raw=function(e,t,n){for(var r,o,i,s,a=n.length,u=\"\",c=!0,l=/^([.|#])?([\\w])+/i,d=0;d<a;d+=1)\"comment\"!==(o=(r=n[d])[0])||\"rule\"!==e.type?\"comment\"===o||\"space\"===o&&d===a-1?c=!1:u+=r[1]:(s=n[d-1],i=n[d+1],\"space\"!==s[0]&&\"space\"!==i[0]&&l.test(s[1])&&l.test(i[1])?u+=r[1]:c=!1);if(!c){var h=n.reduce((function(e,t){return e+t[1]}),\"\");e.raws[t]={value:u,raw:h}}e[t]=u},t.spacesAndCommentsFromEnd=function(e){for(var t,n=\"\";e.length&&(\"space\"===(t=e[e.length-1][0])||\"comment\"===t);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n=\"\";e.length&&(\"space\"===(t=e[0][0])||\"comment\"===t);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t=\"\";e.length&&\"space\"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var n=\"\",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},t.colon=function(e){for(var t,n,r,o=0,i=0;i<e.length;i++){if(\"(\"===(n=(t=e[i])[0])&&(o+=1),\")\"===n&&(o-=1),0===o&&\":\"===n){if(r){if(\"word\"===r[0]&&\"progid\"===r[1])continue;return i}this.doubleColon(t)}r=t}return!1},t.unclosedBracket=function(e){throw this.input.error(\"Unclosed bracket\",e[2],e[3])},t.unknownWord=function(e){throw this.input.error(\"Unknown word\",e[0][2],e[0][3])},t.unexpectedClose=function(e){throw this.input.error(\"Unexpected }\",e[2],e[3])},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error(\"Unclosed block\",e.line,e.column)},t.doubleColon=function(e){throw this.input.error(\"Double colon\",e[2],e[3])},t.unnamedAtrule=function(e,t){throw this.input.error(\"At-rule without name\",t[2],t[3])},t.precheckMissedSemicolon=function(){},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,o=t-1;o>=0&&(\"space\"===(n=e[o])[0]||2!==(r+=1));o--);throw this.input.error(\"Missed semicolon\",n[2],n[3])}},e}();t.default=l,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=function(e,t){void 0===t&&(t={});var n,E,T,x,N,O,A,M,P,L,D,R,B,j,F=e.css.valueOf(),U=t.ignoreErrors,z=F.length,H=-1,G=1,W=0,q=[],Z=[];function Y(t){throw e.error(\"Unclosed \"+t,G,W-H)}return{back:function(e){Z.push(e)},nextToken:function(e){if(Z.length)return Z.pop();if(!(W>=z)){var t=!!e&&e.ignoreUnclosed;switch(((n=F.charCodeAt(W))===a||n===c||n===d&&F.charCodeAt(W+1)!==a)&&(H=W,G+=1),n){case a:case u:case l:case d:case c:E=W;do{E+=1,(n=F.charCodeAt(E))===a&&(H=E,G+=1)}while(n===u||n===a||n===l||n===d||n===c);j=[\"space\",F.slice(W,E)],W=E-1;break;case h:case p:case v:case m:case _:case y:case g:var V=String.fromCharCode(n);j=[V,V,G,W-H];break;case f:if(R=q.length?q.pop()[1]:\"\",B=F.charCodeAt(W+1),\"url\"===R&&B!==r&&B!==o&&B!==u&&B!==a&&B!==l&&B!==c&&B!==d){E=W;do{if(L=!1,-1===(E=F.indexOf(\")\",E+1))){if(U||t){E=W;break}Y(\"bracket\")}for(D=E;F.charCodeAt(D-1)===i;)D-=1,L=!L}while(L);j=[\"brackets\",F.slice(W,E+1),G,W-H,G,E-H],W=E}else E=F.indexOf(\")\",W+1),O=F.slice(W,E+1),-1===E||k.test(O)?j=[\"(\",\"(\",G,W-H]:(j=[\"brackets\",O,G,W-H,G,E-H],W=E);break;case r:case o:T=n===r?\"'\":'\"',E=W;do{if(L=!1,-1===(E=F.indexOf(T,E+1))){if(U||t){E=W+1;break}Y(\"string\")}for(D=E;F.charCodeAt(D-1)===i;)D-=1,L=!L}while(L);O=F.slice(W,E+1),x=O.split(\"\\n\"),(N=x.length-1)>0?(M=G+N,P=E-x[N].length):(M=G,P=H),j=[\"string\",F.slice(W,E+1),G,W-H,M,E-P],H=P,G=M,W=E;break;case w:S.lastIndex=W+1,S.test(F),E=0===S.lastIndex?F.length-1:S.lastIndex-2,j=[\"at-word\",F.slice(W,E+1),G,W-H,G,E-H],W=E;break;case i:for(E=W,A=!0;F.charCodeAt(E+1)===i;)E+=1,A=!A;if(n=F.charCodeAt(E+1),A&&n!==s&&n!==u&&n!==a&&n!==l&&n!==d&&n!==c&&(E+=1,C.test(F.charAt(E)))){for(;C.test(F.charAt(E+1));)E+=1;F.charCodeAt(E+1)===u&&(E+=1)}j=[\"word\",F.slice(W,E+1),G,W-H,G,E-H],W=E;break;default:n===s&&F.charCodeAt(W+1)===b?(0===(E=F.indexOf(\"*/\",W+2)+1)&&(U||t?E=F.length:Y(\"comment\")),O=F.slice(W,E+1),x=O.split(\"\\n\"),(N=x.length-1)>0?(M=G+N,P=E-x[N].length):(M=G,P=H),j=[\"comment\",O,G,W-H,M,E-P],H=P,G=M,W=E):(I.lastIndex=W+1,I.test(F),E=0===I.lastIndex?F.length-1:I.lastIndex-2,j=[\"word\",F.slice(W,E+1),G,W-H,G,E-H],q.push(j),W=E)}return W++,j}},endOfFile:function(){return 0===Z.length&&W>=z},position:function(){return W}}};var r=\"'\".charCodeAt(0),o='\"'.charCodeAt(0),i=\"\\\\\".charCodeAt(0),s=\"/\".charCodeAt(0),a=\"\\n\".charCodeAt(0),u=\" \".charCodeAt(0),c=\"\\f\".charCodeAt(0),l=\"\\t\".charCodeAt(0),d=\"\\r\".charCodeAt(0),h=\"[\".charCodeAt(0),p=\"]\".charCodeAt(0),f=\"(\".charCodeAt(0),g=\")\".charCodeAt(0),v=\"{\".charCodeAt(0),m=\"}\".charCodeAt(0),y=\";\".charCodeAt(0),b=\"*\".charCodeAt(0),_=\":\".charCodeAt(0),w=\"@\".charCodeAt(0),S=/[ \\n\\t\\r\\f{}()'\"\\\\;/[\\]#]/g,I=/[ \\n\\t\\r\\f(){}:;@!'\"\\\\\\][#]|\\/(?=\\*)/g,k=/.[\\\\/(\"'\\n]/,C=/[a-f0-9]/i;e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=s(n(4)),o=s(n(10)),i=s(n(43));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=0,c=function(){function e(e,t){if(void 0===t&&(t={}),null==e||\"object\"==typeof e&&!e.toString)throw new Error(\"PostCSS received \"+e+\" instead of CSS string\");this.css=e.toString(),\"\\ufeff\"===this.css[0]||\"\"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(/^\\w+:\\/\\//.test(t.from)||r.default.isAbsolute(t.from)?this.file=t.from:this.file=r.default.resolve(t.from));var n=new i.default(this.css,t);if(n.text){this.map=n;var o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}this.file||(u+=1,this.id=\"<input css \"+u+\">\"),this.map&&(this.map.file=this.from)}var t,n=e.prototype;return n.error=function(e,t,n,r){var i;void 0===r&&(r={});var s=this.origin(t,n);return(i=s?new o.default(e,s.line,s.column,s.source,s.file,r.plugin):new o.default(e,t,n,this.css,this.file,r.plugin)).input={line:t,column:n,source:this.css},this.file&&(i.input.file=this.file),i},n.origin=function(e,t){if(!this.map)return!1;var n=this.map.consumer(),r=n.originalPositionFor({line:e,column:t});if(!r.source)return!1;var o={file:this.mapResolve(r.source),line:r.line,column:r.column},i=n.sourceContentFor(r.source);return i&&(o.source=i),o},n.mapResolve=function(e){return/^\\w+:\\/\\//.test(e)?e:r.default.resolve(this.map.consumer().sourceRoot||\".\",e)},(t=[{key:\"from\",get:function(){return this.file||this.id}}])&&a(e.prototype,t),e}();t.default=c,e.exports=t.default},function(e,t,n){(function(r){t.__esModule=!0,t.default=void 0;var o=a(n(15)),i=a(n(4)),s=a(n(44));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,\"data:\");var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);r&&(this.text=r)}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new o.default.SourceMapConsumer(this.text)),this.consumerCache},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.getAnnotationURL=function(e){return e.match(/\\/\\*\\s*# sourceMappingURL=(.*)\\s*\\*\\//)[1].trim()},t.loadAnnotation=function(e){var t=e.match(/\\/\\*\\s*# sourceMappingURL=(.*)\\s*\\*\\//gm);if(t&&t.length>0){var n=t[t.length-1];n&&(this.annotation=this.getAnnotationURL(n))}},t.decodeInline=function(e){var t,n=\"data:application/json,\";if(this.startWith(e,n))return decodeURIComponent(e.substr(n.length));if(/^data:application\\/json;charset=utf-?8;base64,/.test(e)||/^data:application\\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),r?r.from(t,\"base64\").toString():window.atob(t);var o=e.match(/data:application\\/json;([^,]+),/)[1];throw new Error(\"Unsupported source map encoding \"+o)},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if(\"string\"==typeof t)return t;if(\"function\"==typeof t){var n=t(e);if(n&&s.default.existsSync&&s.default.existsSync(n))return s.default.readFileSync(n,\"utf-8\").toString().trim();throw new Error(\"Unable to load previous source map: \"+n.toString())}if(t instanceof o.default.SourceMapConsumer)return o.default.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof o.default.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error(\"Unsupported previous source map format: \"+t.toString())}if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var r=this.annotation;return e&&(r=i.default.join(i.default.dirname(e),r)),this.root=i.default.dirname(r),!(!s.default.existsSync||!s.default.existsSync(r))&&s.default.readFileSync(r,\"utf-8\").toString().trim()}},t.isMap=function(e){return\"object\"==typeof e&&(\"string\"==typeof e.mappings||\"string\"==typeof e._mappings)},e}();t.default=u,e.exports=t.default}).call(this,n(14).Buffer)},function(e,t){},function(e,t,n){t.__esModule=!0,t.default=void 0;var r={prefix:function(e){var t=e.match(/^(-\\w+-)/);return t?t[0]:\"\"},unprefixed:function(e){return e.replace(/^-\\w+-/,\"\")}};t.default=r,e.exports=t.default}])})),Ht=Ft(zt);zt.postcss;var Gt=Ut((function(e,t){function n(e){for(var t=e.toLowerCase(),n=\"\",r=!1,o=0;o<6&&void 0!==t[o];o++){var i=t.charCodeAt(o);if(r=32===i,!(i>=97&&i<=102||i>=48&&i<=57))break;n+=t[o]}if(0!==n.length){var s=parseInt(n,16);return s>=55296&&s<=57343||0===s||s>1114111?[\"�\",n.length+(r?1:0)]:[String.fromCodePoint(s),n.length+(r?1:0)]}}t.__esModule=!0,t.default=function(e){if(!r.test(e))return e;for(var t=\"\",o=0;o<e.length;o++)if(\"\\\\\"!==e[o])t+=e[o];else{var i=n(e.slice(o+1,o+7));if(void 0!==i){t+=i[0],o+=i[1];continue}if(\"\\\\\"===e[o+1]){t+=\"\\\\\",o++;continue}e.length===o+1&&(t+=e[o])}return t};var r=/\\\\/;e.exports=t.default}));Ft(Gt);var Wt=Ut((function(e,t){t.__esModule=!0,t.default=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var o=n.shift();if(!e[o])return;e=e[o]}return e},e.exports=t.default}));Ft(Wt);var qt=Ut((function(e,t){t.__esModule=!0,t.default=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var o=n.shift();e[o]||(e[o]={}),e=e[o]}},e.exports=t.default}));Ft(qt);var Zt=Ut((function(e,t){t.__esModule=!0,t.default=function(e){var t=\"\",n=e.indexOf(\"/*\"),r=0;for(;n>=0;){t+=e.slice(r,n);var o=e.indexOf(\"*/\",n+2);if(o<0)return t;r=o+2,n=e.indexOf(\"/*\",r)}return t+=e.slice(r),t},e.exports=t.default}));Ft(Zt);var Yt=Ut((function(e,t){t.__esModule=!0,t.stripComments=t.ensureObject=t.getProp=t.unesc=void 0;var n=s(Gt);t.unesc=n.default;var r=s(Wt);t.getProp=r.default;var o=s(qt);t.ensureObject=o.default;var i=s(Zt);function s(e){return e&&e.__esModule?e:{default:e}}t.stripComments=i.default}));Ft(Yt),Yt.stripComments,Yt.ensureObject,Yt.getProp,Yt.unesc;var Vt=Ut((function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}t.__esModule=!0,t.default=void 0;var r=function e(t,n){if(\"object\"!=typeof t||null===t)return t;var r=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];\"parent\"===o&&\"object\"===typeof i?n&&(r[o]=n):r[o]=i instanceof Array?i.map((function(t){return e(t,r)})):e(i,r)}return r},o=function(){function e(e){void 0===e&&(e={}),Object.assign(this,e),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||\"\",this.spaces.after=this.spaces.after||\"\"}var t,o,i,s=e.prototype;return s.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},s.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},s.next=function(){return this.parent.at(this.parent.index(this)+1)},s.prev=function(){return this.parent.at(this.parent.index(this)-1)},s.clone=function(e){void 0===e&&(e={});var t=r(this);for(var n in e)t[n]=e[n];return t},s.appendToPropertyAndEscape=function(e,t,n){this.raws||(this.raws={});var r=this[e],o=this.raws[e];this[e]=r+t,o||n!==t?this.raws[e]=(o||r)+n:delete this.raws[e]},s.setPropertyAndEscape=function(e,t,n){this.raws||(this.raws={}),this[e]=t,this.raws[e]=n},s.setPropertyWithoutEscape=function(e,t){this[e]=t,this.raws&&delete this.raws[e]},s.isAtPosition=function(e,t){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>e)&&(!(this.source.end.line<e)&&(!(this.source.start.line===e&&this.source.start.column>t)&&!(this.source.end.line===e&&this.source.end.column<t)))},s.stringifyProperty=function(e){return this.raws&&this.raws[e]||this[e]},s.valueToString=function(){return String(this.stringifyProperty(\"value\"))},s.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join(\"\")},t=e,(o=[{key:\"rawSpaceBefore\",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.before;return void 0===e&&(e=this.spaces&&this.spaces.before),e||\"\"},set:function(e){(0,Yt.ensureObject)(this,\"raws\",\"spaces\"),this.raws.spaces.before=e}},{key:\"rawSpaceAfter\",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.after;return void 0===e&&(e=this.spaces.after),e||\"\"},set:function(e){(0,Yt.ensureObject)(this,\"raws\",\"spaces\"),this.raws.spaces.after=e}}])&&n(t.prototype,o),i&&n(t,i),e}();t.default=o,e.exports=t.default}));Ft(Vt);var Xt=Ut((function(e,t){t.__esModule=!0,t.UNIVERSAL=t.ATTRIBUTE=t.CLASS=t.COMBINATOR=t.COMMENT=t.ID=t.NESTING=t.PSEUDO=t.ROOT=t.SELECTOR=t.STRING=t.TAG=void 0;t.TAG=\"tag\";t.STRING=\"string\";t.SELECTOR=\"selector\";t.ROOT=\"root\";t.PSEUDO=\"pseudo\";t.NESTING=\"nesting\";t.ID=\"id\";t.COMMENT=\"comment\";t.COMBINATOR=\"combinator\";t.CLASS=\"class\";t.ATTRIBUTE=\"attribute\";t.UNIVERSAL=\"universal\"}));Ft(Xt),Xt.UNIVERSAL,Xt.ATTRIBUTE,Xt.CLASS,Xt.COMBINATOR,Xt.COMMENT,Xt.ID,Xt.NESTING,Xt.PSEUDO,Xt.ROOT,Xt.SELECTOR,Xt.STRING,Xt.TAG;var Jt=Ut((function(e,t){t.__esModule=!0,t.default=void 0;var n,r=(n=Vt)&&n.__esModule?n:{default:n},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(Xt);function i(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function s(e,t){var n;if(\"undefined\"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if(\"string\"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}return(n=e[Symbol.iterator]()).next.bind(n)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}var l=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).nodes||(n.nodes=[]),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var i,a,l,d=r.prototype;return d.append=function(e){return e.parent=this,this.nodes.push(e),this},d.prepend=function(e){return e.parent=this,this.nodes.unshift(e),this},d.at=function(e){return this.nodes[e]},d.index=function(e){return\"number\"==typeof e?e:this.nodes.indexOf(e)},d.removeChild=function(e){var t;for(var n in e=this.index(e),this.at(e).parent=void 0,this.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},d.removeAll=function(){for(var e,t=s(this.nodes);!(e=t()).done;){e.value.parent=void 0}return this.nodes=[],this},d.empty=function(){return this.removeAll()},d.insertAfter=function(e,t){t.parent=this;var n,r=this.index(e);for(var o in this.nodes.splice(r+1,0,t),t.parent=this,this.indexes)r<=(n=this.indexes[o])&&(this.indexes[o]=n+1);return this},d.insertBefore=function(e,t){t.parent=this;var n,r=this.index(e);for(var o in this.nodes.splice(r,0,t),t.parent=this,this.indexes)(n=this.indexes[o])<=r&&(this.indexes[o]=n+1);return this},d._findChildAtPosition=function(e,t){var n=void 0;return this.each((function(r){if(r.atPosition){var o=r.atPosition(e,t);if(o)return n=o,!1}else if(r.isAtPosition(e,t))return n=r,!1})),n},d.atPosition=function(e,t){return this.isAtPosition(e,t)?this._findChildAtPosition(e,t)||this:void 0},d._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},d.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var n,r;this.indexes[t]<this.length&&(n=this.indexes[t],!1!==(r=e(this.at(n),n)));)this.indexes[t]+=1;return delete this.indexes[t],!1!==r&&void 0}},d.walk=function(e){return this.each((function(t,n){var r=e(t,n);if(!1!==r&&t.length&&(r=t.walk(e)),!1===r)return!1}))},d.walkAttributes=function(e){var t=this;return this.walk((function(n){if(n.type===o.ATTRIBUTE)return e.call(t,n)}))},d.walkClasses=function(e){var t=this;return this.walk((function(n){if(n.type===o.CLASS)return e.call(t,n)}))},d.walkCombinators=function(e){var t=this;return this.walk((function(n){if(n.type===o.COMBINATOR)return e.call(t,n)}))},d.walkComments=function(e){var t=this;return this.walk((function(n){if(n.type===o.COMMENT)return e.call(t,n)}))},d.walkIds=function(e){var t=this;return this.walk((function(n){if(n.type===o.ID)return e.call(t,n)}))},d.walkNesting=function(e){var t=this;return this.walk((function(n){if(n.type===o.NESTING)return e.call(t,n)}))},d.walkPseudos=function(e){var t=this;return this.walk((function(n){if(n.type===o.PSEUDO)return e.call(t,n)}))},d.walkTags=function(e){var t=this;return this.walk((function(n){if(n.type===o.TAG)return e.call(t,n)}))},d.walkUniversals=function(e){var t=this;return this.walk((function(n){if(n.type===o.UNIVERSAL)return e.call(t,n)}))},d.split=function(e){var t=this,n=[];return this.reduce((function(r,o,i){var s=e.call(t,o);return n.push(o),s?(r.push(n),n=[]):i===t.length-1&&r.push(n),r}),[])},d.map=function(e){return this.nodes.map(e)},d.reduce=function(e,t){return this.nodes.reduce(e,t)},d.every=function(e){return this.nodes.every(e)},d.some=function(e){return this.nodes.some(e)},d.filter=function(e){return this.nodes.filter(e)},d.sort=function(e){return this.nodes.sort(e)},d.toString=function(){return this.map(String).join(\"\")},i=r,(a=[{key:\"first\",get:function(){return this.at(0)}},{key:\"last\",get:function(){return this.at(this.length-1)}},{key:\"length\",get:function(){return this.nodes.length}}])&&u(i.prototype,a),l&&u(i,l),r}(r.default);t.default=l,e.exports=t.default}));Ft(Jt);var Qt=Ut((function(e,t){var n;function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}t.__esModule=!0,t.default=void 0;var i=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).type=Xt.ROOT,n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var s,a,u,c=i.prototype;return c.toString=function(){var e=this.reduce((function(e,t){return e.push(String(t)),e}),[]).join(\",\");return this.trailingComma?e+\",\":e},c.error=function(e,t){return this._error?this._error(e,t):new Error(e)},s=i,(a=[{key:\"errorGenerator\",set:function(e){this._error=e}}])&&r(s.prototype,a),u&&r(s,u),i}(((n=Jt)&&n.__esModule?n:{default:n}).default);t.default=i,e.exports=t.default}));Ft(Qt);var $t=Ut((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Xt.SELECTOR,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=Jt)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Ft($t);var Kt={}.hasOwnProperty,en=/[ -,\\.\\/:-@\\[-\\^`\\{-~]/,tn=/[ -,\\.\\/:-@\\[\\]\\^`\\{-~]/,nn=/(^|\\\\+)?(\\\\[A-F0-9]{1,6})\\x20(?![a-fA-F0-9\\x20])/g,rn=function e(t,n){\"single\"!=(n=function(e,t){if(!e)return t;var n={};for(var r in t)n[r]=Kt.call(e,r)?e[r]:t[r];return n}(n,e.options)).quotes&&\"double\"!=n.quotes&&(n.quotes=\"single\");for(var r=\"double\"==n.quotes?'\"':\"'\",o=n.isIdentifier,i=t.charAt(0),s=\"\",a=0,u=t.length;a<u;){var c=t.charAt(a++),l=c.charCodeAt(),d=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&a<u){var h=t.charCodeAt(a++);56320==(64512&h)?l=((1023&l)<<10)+(1023&h)+65536:a--}d=\"\\\\\"+l.toString(16).toUpperCase()+\" \"}else d=n.escapeEverything?en.test(c)?\"\\\\\"+c:\"\\\\\"+l.toString(16).toUpperCase()+\" \":/[\\t\\n\\f\\r\\x0B]/.test(c)?\"\\\\\"+l.toString(16).toUpperCase()+\" \":\"\\\\\"==c||!o&&('\"'==c&&r==c||\"'\"==c&&r==c)||o&&tn.test(c)?\"\\\\\"+c:c;s+=d}return o&&(/^-[-\\d]/.test(s)?s=\"\\\\-\"+s.slice(1):/\\d/.test(i)&&(s=\"\\\\3\"+i+\" \"+s.slice(1))),s=s.replace(nn,(function(e,t,n){return t&&t.length%2?e:(t||\"\")+n})),!o&&n.wrap?r+s+r:s};rn.options={escapeEverything:!1,isIdentifier:!1,quotes:\"single\",wrap:!1},rn.version=\"3.0.0\";var on=rn,sn=Ut((function(e,t){t.__esModule=!0,t.default=void 0;var n=r(on);function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}var s=function(e){var t,r,s,a,u;function c(t){var n;return(n=e.call(this,t)||this).type=Xt.CLASS,n._constructed=!0,n}return r=e,(t=c).prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r),c.prototype.valueToString=function(){return\".\"+e.prototype.valueToString.call(this)},s=c,a=[{key:\"value\",get:function(){return this._value},set:function(e){if(this._constructed){var t=(0,n.default)(e,{isIdentifier:!0});t!==e?((0,Yt.ensureObject)(this,\"raws\"),this.raws.value=t):this.raws&&delete this.raws.value}this._value=e}}],a&&o(s.prototype,a),u&&o(s,u),c}(r(Vt).default);t.default=s,e.exports=t.default}));Ft(sn);var an=Ut((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Xt.COMMENT,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=Vt)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Ft(an);var un=Ut((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Xt.ID,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o.prototype.valueToString=function(){return\"#\"+e.prototype.valueToString.call(this)},o}(((n=Vt)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Ft(un);var cn=Ut((function(e,t){t.__esModule=!0,t.default=void 0;var n=r(on);function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}var s=function(e){var t,r;function s(){return e.apply(this,arguments)||this}r=e,(t=s).prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r);var a,u,c,l=s.prototype;return l.qualifiedName=function(e){return this.namespace?this.namespaceString+\"|\"+e:e},l.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},a=s,u=[{key:\"namespace\",get:function(){return this._namespace},set:function(e){if(!0===e||\"*\"===e||\"&\"===e)return this._namespace=e,void(this.raws&&delete this.raws.namespace);var t=(0,n.default)(e,{isIdentifier:!0});this._namespace=e,t!==e?((0,Yt.ensureObject)(this,\"raws\"),this.raws.namespace=t):this.raws&&delete this.raws.namespace}},{key:\"ns\",get:function(){return this._namespace},set:function(e){this.namespace=e}},{key:\"namespaceString\",get:function(){if(this.namespace){var e=this.stringifyProperty(\"namespace\");return!0===e?\"\":e}return\"\"}}],u&&o(a.prototype,u),c&&o(a,c),s}(r(Vt).default);t.default=s,e.exports=t.default}));Ft(cn);var ln=Ut((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Xt.TAG,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=cn)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Ft(ln);var dn=Ut((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Xt.STRING,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=Vt)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Ft(dn);var hn=Ut((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Xt.PSEUDO,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o.prototype.toString=function(){var e=this.length?\"(\"+this.map(String).join(\",\")+\")\":\"\";return[this.rawSpaceBefore,this.stringifyProperty(\"value\"),e,this.rawSpaceAfter].join(\"\")},o}(((n=Jt)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Ft(hn);var pn=function(e,t){if(fn(\"noDeprecation\"))return e;var n=!1;return function(){if(!n){if(fn(\"throwDeprecation\"))throw new Error(t);fn(\"traceDeprecation\")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function fn(e){try{if(!global.localStorage)return!1}catch(e){return!1}var t=global.localStorage[e];return null!=t&&\"true\"===String(t).toLowerCase()}var gn=Ut((function(e,t){t.__esModule=!0,t.unescapeValue=p,t.default=void 0;var n,r=s(on),o=s(Gt),i=s(cn);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}var c=/^('|\")(.*)\\1$/,l=pn((function(){}),\"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead.\"),d=pn((function(){}),\"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.\"),h=pn((function(){}),\"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.\");function p(e){var t=!1,n=null,r=e,i=r.match(c);return i&&(n=i[1],r=i[2]),(r=(0,o.default)(r))!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}var f=function(e){var t,n;function o(t){var n;return void 0===t&&(t={}),n=e.call(this,function(e){if(void 0!==e.quoteMark)return e;if(void 0===e.value)return e;h();var t=p(e.value),n=t.quoteMark,r=t.unescaped;return e.raws||(e.raws={}),void 0===e.raws.value&&(e.raws.value=e.value),e.value=r,e.quoteMark=n,e}(t))||this,n.type=Xt.ATTRIBUTE,n.raws=n.raws||{},Object.defineProperty(n.raws,\"unquoted\",{get:pn((function(){return n.value}),\"attr.raws.unquoted is deprecated. Call attr.value instead.\"),set:pn((function(){return n.value}),\"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.\")}),n._constructed=!0,n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var i,s,c,f=o.prototype;return f.getQuotedValue=function(e){void 0===e&&(e={});var t=this._determineQuoteMark(e),n=g[t];return(0,r.default)(this._value,n)},f._determineQuoteMark=function(e){return e.smart?this.smartQuoteMark(e):this.preferredQuoteMark(e)},f.setValue=function(e,t){void 0===t&&(t={}),this._value=e,this._quoteMark=this._determineQuoteMark(t),this._syncRawValue()},f.smartQuoteMark=function(e){var t=this.value,n=t.replace(/[^']/g,\"\").length,i=t.replace(/[^\"]/g,\"\").length;if(n+i===0){var s=(0,r.default)(t,{isIdentifier:!0});if(s===t)return o.NO_QUOTE;var a=this.preferredQuoteMark(e);if(a===o.NO_QUOTE){var u=this.quoteMark||e.quoteMark||o.DOUBLE_QUOTE,c=g[u];if((0,r.default)(t,c).length<s.length)return u}return a}return i===n?this.preferredQuoteMark(e):i<n?o.DOUBLE_QUOTE:o.SINGLE_QUOTE},f.preferredQuoteMark=function(e){var t=e.preferCurrentQuoteMark?this.quoteMark:e.quoteMark;return void 0===t&&(t=e.preferCurrentQuoteMark?e.quoteMark:this.quoteMark),void 0===t&&(t=o.DOUBLE_QUOTE),t},f._syncRawValue=function(){var e=(0,r.default)(this._value,g[this.quoteMark]);e===this._value?this.raws&&delete this.raws.value:this.raws.value=e},f._handleEscapes=function(e,t){if(this._constructed){var n=(0,r.default)(t,{isIdentifier:!0});n!==t?this.raws[e]=n:delete this.raws[e]}},f._spacesFor=function(e){var t=this.spaces[e]||{},n=this.raws.spaces&&this.raws.spaces[e]||{};return Object.assign({before:\"\",after:\"\"},t,n)},f._stringFor=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=v);var r=this._spacesFor(t);return n(this.stringifyProperty(e),r)},f.offsetOf=function(e){var t=1,n=this._spacesFor(\"attribute\");if(t+=n.before.length,\"namespace\"===e||\"ns\"===e)return this.namespace?t:-1;if(\"attributeNS\"===e)return t;if(t+=this.namespaceString.length,this.namespace&&(t+=1),\"attribute\"===e)return t;t+=this.stringifyProperty(\"attribute\").length,t+=n.after.length;var r=this._spacesFor(\"operator\");t+=r.before.length;var o=this.stringifyProperty(\"operator\");if(\"operator\"===e)return o?t:-1;t+=o.length,t+=r.after.length;var i=this._spacesFor(\"value\");t+=i.before.length;var s=this.stringifyProperty(\"value\");return\"value\"===e?s?t:-1:(t+=s.length,t+=i.after.length,t+=this._spacesFor(\"insensitive\").before.length,\"insensitive\"===e&&this.insensitive?t:-1)},f.toString=function(){var e=this,t=[this.rawSpaceBefore,\"[\"];return t.push(this._stringFor(\"qualifiedAttribute\",\"attribute\")),this.operator&&(this.value||\"\"===this.value)&&(t.push(this._stringFor(\"operator\")),t.push(this._stringFor(\"value\")),t.push(this._stringFor(\"insensitiveFlag\",\"insensitive\",(function(t,n){return!(t.length>0)||e.quoted||0!==n.before.length||e.spaces.value&&e.spaces.value.after||(n.before=\" \"),v(t,n)})))),t.push(\"]\"),t.push(this.rawSpaceAfter),t.join(\"\")},i=o,s=[{key:\"quoted\",get:function(){var e=this.quoteMark;return\"'\"===e||'\"'===e},set:function(e){d()}},{key:\"quoteMark\",get:function(){return this._quoteMark},set:function(e){this._constructed?this._quoteMark!==e&&(this._quoteMark=e,this._syncRawValue()):this._quoteMark=e}},{key:\"qualifiedAttribute\",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:\"insensitiveFlag\",get:function(){return this.insensitive?\"i\":\"\"}},{key:\"value\",get:function(){return this._value},set:function(e){if(this._constructed){var t=p(e),n=t.deprecatedUsage,r=t.unescaped,o=t.quoteMark;if(n&&l(),r===this._value&&o===this._quoteMark)return;this._value=r,this._quoteMark=o,this._syncRawValue()}else this._value=e}},{key:\"attribute\",get:function(){return this._attribute},set:function(e){this._handleEscapes(\"attribute\",e),this._attribute=e}}],s&&a(i.prototype,s),c&&a(i,c),o}(i.default);t.default=f,f.NO_QUOTE=null,f.SINGLE_QUOTE=\"'\",f.DOUBLE_QUOTE='\"';var g=((n={\"'\":{quotes:\"single\",wrap:!0},'\"':{quotes:\"double\",wrap:!0}}).null={isIdentifier:!0},n);function v(e,t){return\"\"+t.before+e+t.after}}));Ft(gn),gn.unescapeValue;var vn=Ut((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Xt.UNIVERSAL,n.value=\"*\",n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=cn)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Ft(vn);var mn=Ut((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Xt.COMBINATOR,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=Vt)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Ft(mn);var yn=Ut((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=Xt.NESTING,n.value=\"&\",n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=Vt)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Ft(yn);var bn=Ut((function(e,t){t.__esModule=!0,t.default=function(e){return e.sort((function(e,t){return e-t}))},e.exports=t.default}));Ft(bn);var _n=Ut((function(e,t){t.__esModule=!0,t.combinator=t.word=t.comment=t.str=t.tab=t.newline=t.feed=t.cr=t.backslash=t.bang=t.slash=t.doubleQuote=t.singleQuote=t.space=t.greaterThan=t.pipe=t.equals=t.plus=t.caret=t.tilde=t.dollar=t.closeSquare=t.openSquare=t.closeParenthesis=t.openParenthesis=t.semicolon=t.colon=t.comma=t.at=t.asterisk=t.ampersand=void 0;t.ampersand=38;t.asterisk=42;t.at=64;t.comma=44;t.colon=58;t.semicolon=59;t.openParenthesis=40;t.closeParenthesis=41;t.openSquare=91;t.closeSquare=93;t.dollar=36;t.tilde=126;t.caret=94;t.plus=43;t.equals=61;t.pipe=124;t.greaterThan=62;t.space=32;t.singleQuote=39;t.doubleQuote=34;t.slash=47;t.bang=33;t.backslash=92;t.cr=13;t.feed=12;t.newline=10;t.tab=9;t.str=39;t.comment=-1;t.word=-2;t.combinator=-3}));Ft(_n),_n.combinator,_n.word,_n.comment,_n.str,_n.tab,_n.newline,_n.feed,_n.cr,_n.backslash,_n.bang,_n.slash,_n.doubleQuote,_n.singleQuote,_n.space,_n.greaterThan,_n.pipe,_n.equals,_n.plus,_n.caret,_n.tilde,_n.dollar,_n.closeSquare,_n.openSquare,_n.closeParenthesis,_n.openParenthesis,_n.semicolon,_n.colon,_n.comma,_n.at,_n.asterisk,_n.ampersand;var wn=Ut((function(e,t){t.__esModule=!0,t.default=function(e){var t,n,r,i,s,a,u,c,l,h,p,f,g=[],v=e.css.valueOf(),m=v,y=m.length,b=-1,_=1,w=0,S=0;function I(t,n){if(!e.safe)throw e.error(\"Unclosed \"+t,_,w-b,w);c=(v+=n).length-1}for(;w<y;){switch((t=v.charCodeAt(w))===o.newline&&(b=w,_+=1),t){case o.space:case o.tab:case o.newline:case o.cr:case o.feed:c=w;do{c+=1,(t=v.charCodeAt(c))===o.newline&&(b=c,_+=1)}while(t===o.space||t===o.newline||t===o.tab||t===o.cr||t===o.feed);f=o.space,r=_,n=c-b-1,S=c;break;case o.plus:case o.greaterThan:case o.tilde:case o.pipe:c=w;do{c+=1,t=v.charCodeAt(c)}while(t===o.plus||t===o.greaterThan||t===o.tilde||t===o.pipe);f=o.combinator,r=_,n=w-b,S=c;break;case o.asterisk:case o.ampersand:case o.bang:case o.comma:case o.equals:case o.dollar:case o.caret:case o.openSquare:case o.closeSquare:case o.colon:case o.semicolon:case o.openParenthesis:case o.closeParenthesis:f=t,r=_,n=w-b,S=(c=w)+1;break;case o.singleQuote:case o.doubleQuote:p=t===o.singleQuote?\"'\":'\"',c=w;do{for(i=!1,-1===(c=v.indexOf(p,c+1))&&I(\"quote\",p),s=c;v.charCodeAt(s-1)===o.backslash;)s-=1,i=!i}while(i);f=o.str,r=_,n=w-b,S=c+1;break;default:t===o.slash&&v.charCodeAt(w+1)===o.asterisk?(0===(c=v.indexOf(\"*/\",w+2)+1)&&I(\"comment\",\"*/\"),(a=(u=v.slice(w,c+1).split(\"\\n\")).length-1)>0?(l=_+a,h=c-u[a].length):(l=_,h=b),f=o.comment,_=l,r=l,n=c-h):t===o.slash?(f=t,r=_,n=w-b,S=(c=w)+1):(c=d(v,w),f=o.word,r=_,n=c-b),S=c+1}g.push([f,_,w-b,r,n,w,S]),h&&(b=h,h=null),w=S}return g},t.FIELDS=void 0;var n,r,o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(_n);function i(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}for(var s=((n={})[o.tab]=!0,n[o.newline]=!0,n[o.cr]=!0,n[o.feed]=!0,n),a=((r={})[o.space]=!0,r[o.tab]=!0,r[o.newline]=!0,r[o.cr]=!0,r[o.feed]=!0,r[o.ampersand]=!0,r[o.asterisk]=!0,r[o.bang]=!0,r[o.comma]=!0,r[o.colon]=!0,r[o.semicolon]=!0,r[o.openParenthesis]=!0,r[o.closeParenthesis]=!0,r[o.openSquare]=!0,r[o.closeSquare]=!0,r[o.singleQuote]=!0,r[o.doubleQuote]=!0,r[o.plus]=!0,r[o.pipe]=!0,r[o.tilde]=!0,r[o.greaterThan]=!0,r[o.equals]=!0,r[o.dollar]=!0,r[o.caret]=!0,r[o.slash]=!0,r),u={},c=\"0123456789abcdefABCDEF\",l=0;l<22;l++)u[c.charCodeAt(l)]=!0;function d(e,t){var n,r=t;do{if(n=e.charCodeAt(r),a[n])return r-1;n===o.backslash?r=h(e,r)+1:r++}while(r<e.length);return r-1}function h(e,t){var n=t,r=e.charCodeAt(n+1);if(s[r]);else if(u[r]){var i=0;do{n++,i++,r=e.charCodeAt(n+1)}while(u[r]&&i<6);i<6&&r===o.space&&n++}else n++;return n}t.FIELDS={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6}}));Ft(wn),wn.FIELDS;var Sn=Ut((function(e,t){t.__esModule=!0,t.default=void 0;var n,r,o=S(Qt),i=S($t),s=S(sn),a=S(an),u=S(un),c=S(ln),l=S(dn),d=S(hn),h=w(gn),p=S(vn),f=S(mn),g=S(yn),v=S(bn),m=w(wn),y=w(_n),b=w(Xt);function _(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return _=function(){return e},e}function w(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=_();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function S(e){return e&&e.__esModule?e:{default:e}}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var k=((n={})[y.space]=!0,n[y.cr]=!0,n[y.feed]=!0,n[y.newline]=!0,n[y.tab]=!0,n),C=Object.assign({},k,((r={})[y.comment]=!0,r));function E(e){return{line:e[m.FIELDS.START_LINE],column:e[m.FIELDS.START_COL]}}function T(e){return{line:e[m.FIELDS.END_LINE],column:e[m.FIELDS.END_COL]}}function x(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function N(e){return x(e[m.FIELDS.START_LINE],e[m.FIELDS.START_COL],e[m.FIELDS.END_LINE],e[m.FIELDS.END_COL])}function O(e,t){if(e)return x(e[m.FIELDS.START_LINE],e[m.FIELDS.START_COL],t[m.FIELDS.END_LINE],t[m.FIELDS.END_COL])}function A(e,t){var n=e[t];if(\"string\"==typeof n)return-1!==n.indexOf(\"\\\\\")&&((0,Yt.ensureObject)(e,\"raws\"),e[t]=(0,Yt.unesc)(n),void 0===e.raws[t]&&(e.raws[t]=n)),e}function M(e,t){for(var n=-1,r=[];-1!==(n=e.indexOf(t,n+1));)r.push(n);return r}var P=function(){function e(e,t){void 0===t&&(t={}),this.rule=e,this.options=Object.assign({lossy:!1,safe:!1},t),this.position=0,this.css=\"string\"==typeof this.rule?this.rule:this.rule.selector,this.tokens=(0,m.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var n=O(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new o.default({source:n}),this.root.errorGenerator=this._errorGenerator();var r=new i.default({source:{start:{line:1,column:1}}});this.root.append(r),this.current=r,this.loop()}var t,n,r,_=e.prototype;return _._errorGenerator=function(){var e=this;return function(t,n){return\"string\"==typeof e.rule?new Error(t):e.rule.error(t,n)}},_.attribute=function(){var e=[],t=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[m.FIELDS.TYPE]!==y.closeSquare;)e.push(this.currToken),this.position++;if(this.currToken[m.FIELDS.TYPE]!==y.closeSquare)return this.expected(\"closing square bracket\",this.currToken[m.FIELDS.START_POS]);var n=e.length,r={source:x(t[1],t[2],this.currToken[3],this.currToken[4]),sourceIndex:t[m.FIELDS.START_POS]};if(1===n&&!~[y.word].indexOf(e[0][m.FIELDS.TYPE]))return this.expected(\"attribute\",e[0][m.FIELDS.START_POS]);for(var o=0,i=\"\",s=\"\",a=null,u=!1;o<n;){var c=e[o],l=this.content(c),d=e[o+1];switch(c[m.FIELDS.TYPE]){case y.space:if(u=!0,this.options.lossy)break;if(a){(0,Yt.ensureObject)(r,\"spaces\",a);var p=r.spaces[a].after||\"\";r.spaces[a].after=p+l;var f=(0,Yt.getProp)(r,\"raws\",\"spaces\",a,\"after\")||null;f&&(r.raws.spaces[a].after=f+l)}else i+=l,s+=l;break;case y.asterisk:if(d[m.FIELDS.TYPE]===y.equals)r.operator=l,a=\"operator\";else if((!r.namespace||\"namespace\"===a&&!u)&&d){i&&((0,Yt.ensureObject)(r,\"spaces\",\"attribute\"),r.spaces.attribute.before=i,i=\"\"),s&&((0,Yt.ensureObject)(r,\"raws\",\"spaces\",\"attribute\"),r.raws.spaces.attribute.before=i,s=\"\"),r.namespace=(r.namespace||\"\")+l,((0,Yt.getProp)(r,\"raws\",\"namespace\")||null)&&(r.raws.namespace+=l),a=\"namespace\"}u=!1;break;case y.dollar:if(\"value\"===a){var g=(0,Yt.getProp)(r,\"raws\",\"value\");r.value+=\"$\",g&&(r.raws.value=g+\"$\");break}case y.caret:d[m.FIELDS.TYPE]===y.equals&&(r.operator=l,a=\"operator\"),u=!1;break;case y.combinator:if(\"~\"===l&&d[m.FIELDS.TYPE]===y.equals&&(r.operator=l,a=\"operator\"),\"|\"!==l){u=!1;break}d[m.FIELDS.TYPE]===y.equals?(r.operator=l,a=\"operator\"):r.namespace||r.attribute||(r.namespace=!0),u=!1;break;case y.word:if(d&&\"|\"===this.content(d)&&e[o+2]&&e[o+2][m.FIELDS.TYPE]!==y.equals&&!r.operator&&!r.namespace)r.namespace=l,a=\"namespace\";else if(!r.attribute||\"attribute\"===a&&!u){i&&((0,Yt.ensureObject)(r,\"spaces\",\"attribute\"),r.spaces.attribute.before=i,i=\"\"),s&&((0,Yt.ensureObject)(r,\"raws\",\"spaces\",\"attribute\"),r.raws.spaces.attribute.before=s,s=\"\"),r.attribute=(r.attribute||\"\")+l,((0,Yt.getProp)(r,\"raws\",\"attribute\")||null)&&(r.raws.attribute+=l),a=\"attribute\"}else if(!r.value&&\"\"!==r.value||\"value\"===a&&!u){var v=(0,Yt.unesc)(l),b=(0,Yt.getProp)(r,\"raws\",\"value\")||\"\",_=r.value||\"\";r.value=_+v,r.quoteMark=null,(v!==l||b)&&((0,Yt.ensureObject)(r,\"raws\"),r.raws.value=(b||_)+l),a=\"value\"}else{var w=\"i\"===l||\"I\"===l;!r.value&&\"\"!==r.value||!r.quoteMark&&!u?(r.value||\"\"===r.value)&&(a=\"value\",r.value+=l,r.raws.value&&(r.raws.value+=l)):(r.insensitive=w,w&&\"I\"!==l||((0,Yt.ensureObject)(r,\"raws\"),r.raws.insensitiveFlag=l),a=\"insensitive\",i&&((0,Yt.ensureObject)(r,\"spaces\",\"insensitive\"),r.spaces.insensitive.before=i,i=\"\"),s&&((0,Yt.ensureObject)(r,\"raws\",\"spaces\",\"insensitive\"),r.raws.spaces.insensitive.before=s,s=\"\"))}u=!1;break;case y.str:if(!r.attribute||!r.operator)return this.error(\"Expected an attribute followed by an operator preceding the string.\",{index:c[m.FIELDS.START_POS]});var S=(0,h.unescapeValue)(l),I=S.unescaped,k=S.quoteMark;r.value=I,r.quoteMark=k,a=\"value\",(0,Yt.ensureObject)(r,\"raws\"),r.raws.value=l,u=!1;break;case y.equals:if(!r.attribute)return this.expected(\"attribute\",c[m.FIELDS.START_POS],l);if(r.value)return this.error('Unexpected \"=\" found; an operator was already defined.',{index:c[m.FIELDS.START_POS]});r.operator=r.operator?r.operator+l:l,a=\"operator\",u=!1;break;case y.comment:if(a)if(u||d&&d[m.FIELDS.TYPE]===y.space||\"insensitive\"===a){var C=(0,Yt.getProp)(r,\"spaces\",a,\"after\")||\"\",E=(0,Yt.getProp)(r,\"raws\",\"spaces\",a,\"after\")||C;(0,Yt.ensureObject)(r,\"raws\",\"spaces\",a),r.raws.spaces[a].after=E+l}else{var T=r[a]||\"\",N=(0,Yt.getProp)(r,\"raws\",a)||T;(0,Yt.ensureObject)(r,\"raws\"),r.raws[a]=N+l}else s+=l;break;default:return this.error('Unexpected \"'+l+'\" found.',{index:c[m.FIELDS.START_POS]})}o++}A(r,\"attribute\"),A(r,\"namespace\"),this.newNode(new h.default(r)),this.position++},_.parseWhitespaceEquivalentTokens=function(e){e<0&&(e=this.tokens.length);var t=this.position,n=[],r=\"\",o=void 0;do{if(k[this.currToken[m.FIELDS.TYPE]])this.options.lossy||(r+=this.content());else if(this.currToken[m.FIELDS.TYPE]===y.comment){var i={};r&&(i.before=r,r=\"\"),o=new a.default({value:this.content(),source:N(this.currToken),sourceIndex:this.currToken[m.FIELDS.START_POS],spaces:i}),n.push(o)}}while(++this.position<e);if(r)if(o)o.spaces.after=r;else if(!this.options.lossy){var s=this.tokens[t],u=this.tokens[this.position-1];n.push(new l.default({value:\"\",source:x(s[m.FIELDS.START_LINE],s[m.FIELDS.START_COL],u[m.FIELDS.END_LINE],u[m.FIELDS.END_COL]),sourceIndex:s[m.FIELDS.START_POS],spaces:{before:r,after:\"\"}}))}return n},_.convertWhitespaceNodesToSpace=function(e,t){var n=this;void 0===t&&(t=!1);var r=\"\",o=\"\";return e.forEach((function(e){var i=n.lossySpace(e.spaces.before,t),s=n.lossySpace(e.rawSpaceBefore,t);r+=i+n.lossySpace(e.spaces.after,t&&0===i.length),o+=i+e.value+n.lossySpace(e.rawSpaceAfter,t&&0===s.length)})),o===r&&(o=void 0),{space:r,rawSpace:o}},_.isNamedCombinator=function(e){return void 0===e&&(e=this.position),this.tokens[e+0]&&this.tokens[e+0][m.FIELDS.TYPE]===y.slash&&this.tokens[e+1]&&this.tokens[e+1][m.FIELDS.TYPE]===y.word&&this.tokens[e+2]&&this.tokens[e+2][m.FIELDS.TYPE]===y.slash},_.namedCombinator=function(){if(this.isNamedCombinator()){var e=this.content(this.tokens[this.position+1]),t=(0,Yt.unesc)(e).toLowerCase(),n={};t!==e&&(n.value=\"/\"+e+\"/\");var r=new f.default({value:\"/\"+t+\"/\",source:x(this.currToken[m.FIELDS.START_LINE],this.currToken[m.FIELDS.START_COL],this.tokens[this.position+2][m.FIELDS.END_LINE],this.tokens[this.position+2][m.FIELDS.END_COL]),sourceIndex:this.currToken[m.FIELDS.START_POS],raws:n});return this.position=this.position+3,r}this.unexpected()},_.combinator=function(){var e=this;if(\"|\"===this.content())return this.namespace();var t=this.locateNextMeaningfulToken(this.position);if(!(t<0||this.tokens[t][m.FIELDS.TYPE]===y.comma)){var n,r=this.currToken,o=void 0;if(t>this.position&&(o=this.parseWhitespaceEquivalentTokens(t)),this.isNamedCombinator()?n=this.namedCombinator():this.currToken[m.FIELDS.TYPE]===y.combinator?(n=new f.default({value:this.content(),source:N(this.currToken),sourceIndex:this.currToken[m.FIELDS.START_POS]}),this.position++):k[this.currToken[m.FIELDS.TYPE]]||o||this.unexpected(),n){if(o){var i=this.convertWhitespaceNodesToSpace(o),s=i.space,a=i.rawSpace;n.spaces.before=s,n.rawSpaceBefore=a}}else{var u=this.convertWhitespaceNodesToSpace(o,!0),c=u.space,l=u.rawSpace;l||(l=c);var d={},h={spaces:{}};c.endsWith(\" \")&&l.endsWith(\" \")?(d.before=c.slice(0,c.length-1),h.spaces.before=l.slice(0,l.length-1)):c.startsWith(\" \")&&l.startsWith(\" \")?(d.after=c.slice(1),h.spaces.after=l.slice(1)):h.value=l,n=new f.default({value:\" \",source:O(r,this.tokens[this.position-1]),sourceIndex:r[m.FIELDS.START_POS],spaces:d,raws:h})}return this.currToken&&this.currToken[m.FIELDS.TYPE]===y.space&&(n.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(n)}var p=this.parseWhitespaceEquivalentTokens(t);if(p.length>0){var g=this.current.last;if(g){var v=this.convertWhitespaceNodesToSpace(p),b=v.space,_=v.rawSpace;void 0!==_&&(g.rawSpaceAfter+=_),g.spaces.after+=b}else p.forEach((function(t){return e.newNode(t)}))}},_.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;this.current._inferEndPosition();var e=new i.default({source:{start:E(this.tokens[this.position+1])}});this.current.parent.append(e),this.current=e,this.position++},_.comment=function(){var e=this.currToken;this.newNode(new a.default({value:this.content(),source:N(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},_.error=function(e,t){throw this.root.error(e,t)},_.missingBackslash=function(){return this.error(\"Expected a backslash preceding the semicolon.\",{index:this.currToken[m.FIELDS.START_POS]})},_.missingParenthesis=function(){return this.expected(\"opening parenthesis\",this.currToken[m.FIELDS.START_POS])},_.missingSquareBracket=function(){return this.expected(\"opening square bracket\",this.currToken[m.FIELDS.START_POS])},_.unexpected=function(){return this.error(\"Unexpected '\"+this.content()+\"'. Escaping special characters with \\\\ may help.\",this.currToken[m.FIELDS.START_POS])},_.namespace=function(){var e=this.prevToken&&this.content(this.prevToken)||!0;return this.nextToken[m.FIELDS.TYPE]===y.word?(this.position++,this.word(e)):this.nextToken[m.FIELDS.TYPE]===y.asterisk?(this.position++,this.universal(e)):void 0},_.nesting=function(){if(this.nextToken&&\"|\"===this.content(this.nextToken))return void this.position++;var e=this.currToken;this.newNode(new g.default({value:this.content(),source:N(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},_.parentheses=function(){var e=this.current.last,t=1;if(this.position++,e&&e.type===b.PSEUDO){var n=new i.default({source:{start:E(this.tokens[this.position-1])}}),r=this.current;for(e.append(n),this.current=n;this.position<this.tokens.length&&t;)this.currToken[m.FIELDS.TYPE]===y.openParenthesis&&t++,this.currToken[m.FIELDS.TYPE]===y.closeParenthesis&&t--,t?this.parse():(this.current.source.end=T(this.currToken),this.current.parent.source.end=T(this.currToken),this.position++);this.current=r}else{for(var o,s=this.currToken,a=\"(\";this.position<this.tokens.length&&t;)this.currToken[m.FIELDS.TYPE]===y.openParenthesis&&t++,this.currToken[m.FIELDS.TYPE]===y.closeParenthesis&&t--,o=this.currToken,a+=this.parseParenthesisToken(this.currToken),this.position++;e?e.appendToPropertyAndEscape(\"value\",a,a):this.newNode(new l.default({value:a,source:x(s[m.FIELDS.START_LINE],s[m.FIELDS.START_COL],o[m.FIELDS.END_LINE],o[m.FIELDS.END_COL]),sourceIndex:s[m.FIELDS.START_POS]}))}if(t)return this.expected(\"closing parenthesis\",this.currToken[m.FIELDS.START_POS])},_.pseudo=function(){for(var e=this,t=\"\",n=this.currToken;this.currToken&&this.currToken[m.FIELDS.TYPE]===y.colon;)t+=this.content(),this.position++;return this.currToken?this.currToken[m.FIELDS.TYPE]!==y.word?this.expected([\"pseudo-class\",\"pseudo-element\"],this.currToken[m.FIELDS.START_POS]):void this.splitWord(!1,(function(r,o){t+=r,e.newNode(new d.default({value:t,source:O(n,e.currToken),sourceIndex:n[m.FIELDS.START_POS]})),o>1&&e.nextToken&&e.nextToken[m.FIELDS.TYPE]===y.openParenthesis&&e.error(\"Misplaced parenthesis.\",{index:e.nextToken[m.FIELDS.START_POS]})})):this.expected([\"pseudo-class\",\"pseudo-element\"],this.position-1)},_.space=function(){var e=this.content();0===this.position||this.prevToken[m.FIELDS.TYPE]===y.comma||this.prevToken[m.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every((function(e){return\"comment\"===e.type}))?(this.spaces=this.optionalSpace(e),this.position++):this.position===this.tokens.length-1||this.nextToken[m.FIELDS.TYPE]===y.comma||this.nextToken[m.FIELDS.TYPE]===y.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(e),this.position++):this.combinator()},_.string=function(){var e=this.currToken;this.newNode(new l.default({value:this.content(),source:N(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},_.universal=function(e){var t=this.nextToken;if(t&&\"|\"===this.content(t))return this.position++,this.namespace();var n=this.currToken;this.newNode(new p.default({value:this.content(),source:N(n),sourceIndex:n[m.FIELDS.START_POS]}),e),this.position++},_.splitWord=function(e,t){for(var n=this,r=this.nextToken,o=this.content();r&&~[y.dollar,y.caret,y.equals,y.word].indexOf(r[m.FIELDS.TYPE]);){this.position++;var i=this.content();if(o+=i,i.lastIndexOf(\"\\\\\")===i.length-1){var a=this.nextToken;a&&a[m.FIELDS.TYPE]===y.space&&(o+=this.requiredSpace(this.content(a)),this.position++)}r=this.nextToken}var l=M(o,\".\").filter((function(e){return\"\\\\\"!==o[e-1]})),d=M(o,\"#\").filter((function(e){return\"\\\\\"!==o[e-1]})),h=M(o,\"#{\");h.length&&(d=d.filter((function(e){return!~h.indexOf(e)})));var p=(0,v.default)(function(){var e=Array.prototype.concat.apply([],arguments);return e.filter((function(t,n){return n===e.indexOf(t)}))}([0].concat(l,d)));p.forEach((function(r,i){var a,h=p[i+1]||o.length,f=o.slice(r,h);if(0===i&&t)return t.call(n,f,p.length);var g=n.currToken,v=g[m.FIELDS.START_POS]+p[i],y=x(g[1],g[2]+r,g[3],g[2]+(h-1));if(~l.indexOf(r)){var b={value:f.slice(1),source:y,sourceIndex:v};a=new s.default(A(b,\"value\"))}else if(~d.indexOf(r)){var _={value:f.slice(1),source:y,sourceIndex:v};a=new u.default(A(_,\"value\"))}else{var w={value:f,source:y,sourceIndex:v};A(w,\"value\"),a=new c.default(w)}n.newNode(a,e),e=null})),this.position++},_.word=function(e){var t=this.nextToken;return t&&\"|\"===this.content(t)?(this.position++,this.namespace()):this.splitWord(e)},_.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},_.parse=function(e){switch(this.currToken[m.FIELDS.TYPE]){case y.space:this.space();break;case y.comment:this.comment();break;case y.openParenthesis:this.parentheses();break;case y.closeParenthesis:e&&this.missingParenthesis();break;case y.openSquare:this.attribute();break;case y.dollar:case y.caret:case y.equals:case y.word:this.word();break;case y.colon:this.pseudo();break;case y.comma:this.comma();break;case y.asterisk:this.universal();break;case y.ampersand:this.nesting();break;case y.slash:case y.combinator:this.combinator();break;case y.str:this.string();break;case y.closeSquare:this.missingSquareBracket();case y.semicolon:this.missingBackslash();default:this.unexpected()}},_.expected=function(e,t,n){if(Array.isArray(e)){var r=e.pop();e=e.join(\", \")+\" or \"+r}var o=/^[aeiou]/.test(e[0])?\"an\":\"a\";return n?this.error(\"Expected \"+o+\" \"+e+', found \"'+n+'\" instead.',{index:t}):this.error(\"Expected \"+o+\" \"+e+\".\",{index:t})},_.requiredSpace=function(e){return this.options.lossy?\" \":e},_.optionalSpace=function(e){return this.options.lossy?\"\":e},_.lossySpace=function(e,t){return this.options.lossy?t?\" \":\"\":e},_.parseParenthesisToken=function(e){var t=this.content(e);return e[m.FIELDS.TYPE]===y.space?this.requiredSpace(t):t},_.newNode=function(e,t){return t&&(/^ +$/.test(t)&&(this.options.lossy||(this.spaces=(this.spaces||\"\")+t),t=!0),e.namespace=t,A(e,\"namespace\")),this.spaces&&(e.spaces.before=this.spaces,this.spaces=\"\"),this.current.append(e)},_.content=function(e){return void 0===e&&(e=this.currToken),this.css.slice(e[m.FIELDS.START_POS],e[m.FIELDS.END_POS])},_.locateNextMeaningfulToken=function(e){void 0===e&&(e=this.position+1);for(var t=e;t<this.tokens.length;){if(!C[this.tokens[t][m.FIELDS.TYPE]])return t;t++}return-1},t=e,(n=[{key:\"currToken\",get:function(){return this.tokens[this.position]}},{key:\"nextToken\",get:function(){return this.tokens[this.position+1]}},{key:\"prevToken\",get:function(){return this.tokens[this.position-1]}}])&&I(t.prototype,n),r&&I(t,r),e}();t.default=P,e.exports=t.default}));Ft(Sn);var In=Ut((function(e,t){t.__esModule=!0,t.default=void 0;var n,r=(n=Sn)&&n.__esModule?n:{default:n};var o=function(){function e(e,t){this.func=e||function(){},this.funcRes=null,this.options=t}var t=e.prototype;return t._shouldUpdateSelector=function(e,t){return void 0===t&&(t={}),!1!==Object.assign({},this.options,t).updateSelector&&\"string\"!=typeof e},t._isLossy=function(e){return void 0===e&&(e={}),!1===Object.assign({},this.options,e).lossless},t._root=function(e,t){return void 0===t&&(t={}),new r.default(e,this._parseOptions(t)).root},t._parseOptions=function(e){return{lossy:this._isLossy(e)}},t._run=function(e,t){var n=this;return void 0===t&&(t={}),new Promise((function(r,o){try{var i=n._root(e,t);Promise.resolve(n.func(i)).then((function(r){var o=void 0;return n._shouldUpdateSelector(e,t)&&(o=i.toString(),e.selector=o),{transform:r,root:i,string:o}})).then(r,o)}catch(e){return void o(e)}}))},t._runSync=function(e,t){void 0===t&&(t={});var n=this._root(e,t),r=this.func(n);if(r&&\"function\"==typeof r.then)throw new Error(\"Selector processor returned a promise to a synchronous call.\");var o=void 0;return t.updateSelector&&\"string\"!=typeof e&&(o=n.toString(),e.selector=o),{transform:r,root:n,string:o}},t.ast=function(e,t){return this._run(e,t).then((function(e){return e.root}))},t.astSync=function(e,t){return this._runSync(e,t).root},t.transform=function(e,t){return this._run(e,t).then((function(e){return e.transform}))},t.transformSync=function(e,t){return this._runSync(e,t).transform},t.process=function(e,t){return this._run(e,t).then((function(e){return e.string||e.root.toString()}))},t.processSync=function(e,t){var n=this._runSync(e,t);return n.string||n.root.toString()},e}();t.default=o,e.exports=t.default}));Ft(In);var kn=Ut((function(e,t){t.__esModule=!0,t.universal=t.tag=t.string=t.selector=t.root=t.pseudo=t.nesting=t.id=t.comment=t.combinator=t.className=t.attribute=void 0;var n=f(gn),r=f(sn),o=f(mn),i=f(an),s=f(un),a=f(yn),u=f(hn),c=f(Qt),l=f($t),d=f(dn),h=f(ln),p=f(vn);function f(e){return e&&e.__esModule?e:{default:e}}t.attribute=function(e){return new n.default(e)};t.className=function(e){return new r.default(e)};t.combinator=function(e){return new o.default(e)};t.comment=function(e){return new i.default(e)};t.id=function(e){return new s.default(e)};t.nesting=function(e){return new a.default(e)};t.pseudo=function(e){return new u.default(e)};t.root=function(e){return new c.default(e)};t.selector=function(e){return new l.default(e)};t.string=function(e){return new d.default(e)};t.tag=function(e){return new h.default(e)};t.universal=function(e){return new p.default(e)}}));Ft(kn),kn.universal,kn.tag,kn.string,kn.selector,kn.root,kn.pseudo,kn.nesting,kn.id,kn.comment,kn.combinator,kn.className,kn.attribute;var Cn=Ut((function(e,t){var n;t.__esModule=!0,t.isNode=o,t.isPseudoElement=y,t.isPseudoClass=function(e){return h(e)&&!y(e)},t.isContainer=function(e){return!(!o(e)||!e.walk)},t.isNamespace=function(e){return s(e)||v(e)},t.isUniversal=t.isTag=t.isString=t.isSelector=t.isRoot=t.isPseudo=t.isNesting=t.isIdentifier=t.isComment=t.isCombinator=t.isClassName=t.isAttribute=void 0;var r=((n={})[Xt.ATTRIBUTE]=!0,n[Xt.CLASS]=!0,n[Xt.COMBINATOR]=!0,n[Xt.COMMENT]=!0,n[Xt.ID]=!0,n[Xt.NESTING]=!0,n[Xt.PSEUDO]=!0,n[Xt.ROOT]=!0,n[Xt.SELECTOR]=!0,n[Xt.STRING]=!0,n[Xt.TAG]=!0,n[Xt.UNIVERSAL]=!0,n);function o(e){return\"object\"==typeof e&&r[e.type]}function i(e,t){return o(t)&&t.type===e}var s=i.bind(null,Xt.ATTRIBUTE);t.isAttribute=s;var a=i.bind(null,Xt.CLASS);t.isClassName=a;var u=i.bind(null,Xt.COMBINATOR);t.isCombinator=u;var c=i.bind(null,Xt.COMMENT);t.isComment=c;var l=i.bind(null,Xt.ID);t.isIdentifier=l;var d=i.bind(null,Xt.NESTING);t.isNesting=d;var h=i.bind(null,Xt.PSEUDO);t.isPseudo=h;var p=i.bind(null,Xt.ROOT);t.isRoot=p;var f=i.bind(null,Xt.SELECTOR);t.isSelector=f;var g=i.bind(null,Xt.STRING);t.isString=g;var v=i.bind(null,Xt.TAG);t.isTag=v;var m=i.bind(null,Xt.UNIVERSAL);function y(e){return h(e)&&e.value&&(e.value.startsWith(\"::\")||\":before\"===e.value.toLowerCase()||\":after\"===e.value.toLowerCase())}t.isUniversal=m}));Ft(Cn),Cn.isNode,Cn.isPseudoElement,Cn.isPseudoClass,Cn.isContainer,Cn.isNamespace,Cn.isUniversal,Cn.isTag,Cn.isString,Cn.isSelector,Cn.isRoot,Cn.isPseudo,Cn.isNesting,Cn.isIdentifier,Cn.isComment,Cn.isCombinator,Cn.isClassName,Cn.isAttribute;var En=Ut((function(e,t){t.__esModule=!0,Object.keys(Xt).forEach((function(e){\"default\"!==e&&\"__esModule\"!==e&&(e in t&&t[e]===Xt[e]||(t[e]=Xt[e]))})),Object.keys(kn).forEach((function(e){\"default\"!==e&&\"__esModule\"!==e&&(e in t&&t[e]===kn[e]||(t[e]=kn[e]))})),Object.keys(Cn).forEach((function(e){\"default\"!==e&&\"__esModule\"!==e&&(e in t&&t[e]===Cn[e]||(t[e]=Cn[e]))}))}));Ft(En);var Tn,xn=Ut((function(e,t){t.__esModule=!0,t.default=void 0;var n,r=(n=In)&&n.__esModule?n:{default:n},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(En);function i(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var s=function(e){return new r.default(e)};Object.assign(s,o),delete s.__esModule;var a=s;t.default=a,e.exports=t.default})),Nn=Ft(xn);function On(e,t){var n=e.matches||e.webkitMatchesSelector;if(n)try{return n.call(e,t)}catch(e){}return!1}function An(e){return fe([],e,!0).sort((function(e,t){return Mn(e)-Mn(t)}))}function Mn(e){return 1===e.matchingSelectors.length?Ln(e.rule.selectorList.selectors[0].text):Gn(e.matchingSelectors.map((function(t){return e.rule.selectorList.selectors[t].text})))}!function(e){e[e.ClassA=65536]=\"ClassA\",e[e.ClassB=256]=\"ClassB\",e[e.ClassC=1]=\"ClassC\"}(Tn||(Tn={}));var Pn={};function Ln(e){if(\"string\"==typeof e&&Pn[e])return Pn[e];var t,n=0;return\"string\"==typeof e&&Nn((function(e){e.nodes&&e.nodes.length&&(t=e.nodes[0])})).process(e),t.nodes&&t.nodes.length&&t.nodes.forEach((function(e){n=Hn(n,function(e){switch(e.type){case\"id\":return Tn.ClassA;case\"pseudo\":switch((e.value.match(/^:+(\\w+)/)||[])[1]){case\"is\":case\"match\":case\"not\":return Gn(e.nodes);case\"where\":return 0;case\"nth-child\":case\"nth-last-child\":return Hn(Tn.ClassB,e.nodes?Gn(e.nodes):0);case\"before\":case\"after\":return Tn.ClassC}return Tn.ClassB;case\"class\":case\"attribute\":return Tn.ClassB;case\"tag\":return Tn.ClassC}return 0}(e))})),\"string\"==typeof e&&(Pn[e]=n),n}var Dn,Rn=16711680,Bn=65280,jn=255;function Fn(e){return e&Rn}function Un(e){return e&Bn}function zn(e){return e&jn}function Hn(e,t){var n=e,r=Fn(t);!function(e){return e&~Rn}(Fn(n)+r)?n+=r:n=function(e){return e|Rn}(n);var o=Un(t);!function(e){return e&~Bn}(Un(n)+o)?n+=o:n=function(e){return e|Bn}(n);var i=zn(t);return!function(e){return e&~jn}(zn(n)+i)?n+=i:n=function(e){return e|jn}(n),n}function Gn(e){return Math.max.apply(Math,e.map((function(e){return Ln(e)})))}function Wn(e,t){var n;if(\"decl\"===e.type)n={disabled:!1,important:Boolean(e.important),name:e.prop,value:qn(e)};else if(\"comment\"===e.type){var r=void 0;try{var o=Ht.parse(e.text);o.first&&\"decl\"===o.first.type&&(r=o.first)}catch(e){}if(!r)return;n={disabled:!0,name:r.prop,value:qn(r)}}return n&&t&&(n.range={endColumn:e.source.end.column,endLine:e.source.end.line-1,startColumn:e.source.start.column-1,startLine:e.source.start.line-1},n.text=e.toString()),n}function qn(e){return e.important?\"\".concat(e.value).concat(e.raws.important||\" !important\"):e.value}function Zn(e,t){var n=e.nodes,r=void 0===n?[]:n,o=e.first,i=e.last,s=r[0],a=0;s&&s.raws.before&&(a=s.raws.before.split(\"\\n\").length-1);var u=[];r.forEach((function(e){var n=Wn(e,t);n&&u.push(n)}));var c={cssProperties:u,shorthandEntries:[]};return t&&(c.styleSheetId=t,c.cssText=Ht.root({nodes:r,raws:{semicolon:e.raws.semicolon}}).toString(),c.range={endColumn:i?i.source.end.column:0,endLine:i?i.source.end.line-1:0,startColumn:a?0:o?o.source.start.column-1:0,startLine:o?o.source.start.line-1-a:0}),c}function Yn(e,t){var n;try{n=Ht.parse(e)}catch(e){return void console.warn(e)}var r=[];(n.nodes||[]).forEach((function(e){var n=Wn(e,t);n&&r.push(n)}));var o={cssProperties:r,shorthandEntries:[]};return t&&(o.styleSheetId=t,o.cssText=e,o.range={endColumn:e.length,endLine:0,startColumn:0,startLine:0}),o}function Vn(e,t,n,r){var o=[];return e.selectors.length>1?e.selectors.forEach((function(e,n){(r?r.test(e)&&On(t,e.replace(r,\"\")):On(t,e))&&o.push(n)})):o.push(0),{matchingSelectors:o,rule:{origin:\"regular\",selectorList:{selectors:e.selectors.map((function(t){return{range:n?{endColumn:e.source.start.column+e.selector.length-1,endLine:e.source.start.line-1,startColumn:e.source.start.column-1,startLine:e.source.start.line-1}:void 0,text:t}})),text:e.selector},style:Zn(e,n),styleSheetId:n}}}var Xn,Jn=new Map,Qn=new Map,$n=/::?before\\b/,Kn=/::?after\\b/;function er(e){for(var t=new Map,n=function(){for(var e=[],t=0,n=Array.from(document.styleSheets);t<n.length;t++){var r=n[t];if(!r.href&&r.ownerNode){var o=r.ownerNode.hasAttribute(\"data-page-path\"),i=r.ownerNode.hasAttribute(\"data-exter-class\");if(o||i){var s=Ue(r.ownerNode.textContent);e.push({hash:\"\".concat(o,\"-\").concat(s.slice(0,8)),node:r})}}}return{usedStylesSheets:e}}().usedStylesSheets,r=0;r<n.length;r++){var o=n[r];try{var i=o.node,s=o.hash;if(!Jn.has(s)||e){var a=i.ownerNode.textContent,u=Ht.parse(a),c=\"1000.\".concat(Jn.size);Jn.set(s,{ownerNode:i.ownerNode,postCSSRoot:u,styleSheetId:c,hash:s}),Qn.set(c,s)}t.set(s,Jn.get(s))}catch(e){console.warn(e)}}return t}function tr(e){var t=Qn.get(e);if(t)return Jn.get(t)}function nr(e){var t=tr(e);if(t&&t.ownerNode){var n=t.ownerNode,r=t.hash;try{Jn.set(e,{ownerNode:n,postCSSRoot:Ht.parse(n.textContent),styleSheetId:e,hash:r})}catch(t){Jn.set(e,{ownerNode:n,postCSSRoot:Ht.parse(\"\"),styleSheetId:e,hash:r}),console.warn(t)}}}function rr(e){var t=e.postCSSRoot,n=e.ownerNode,r=e.styleSheetId;return{disabled:!1,endColumn:t.last?t.last.source.end.column-1:0,endLine:t.last?t.last.source.end.line-1:0,frameId:\"MOCK_FRAME_ID\",isInline:!0,length:n.textContent.length,origin:\"regular\",sourceURL:\"\",startColumn:t.first?t.first.source.start.column-1:0,startLine:t.first?t.first.source.start.line-1:0,styleSheetId:r,title:\"\"}}function or(e){er().forEach((function(t){var n=t.postCSSRoot,r=t.styleSheetId;(n.nodes||[]).forEach((function(t){\"rule\"===t.type&&e(t,r)}))}))}function ir(e){return Yn(e.getInlineStyle()||\"\",e.inlineStyleSheetId)}function sr(e){Xn||(Xn=document.createElement(\"div\"));var t={};try{Xn.innerHTML=\"<div \".concat(e,\"></div>\");for(var n=Xn.firstChild.attributes,r=0,o=Array.from(n);r<o.length;r++){var i=o[r];t[i.name]=i.value}}catch(e){console.warn(e)}return t}function ar(e,t,n){var r,o,i,s,a,u=tr(e);if(u){var c;try{c=Ht.parse(n)}catch(e){return void console.warn(\"setStyleTexts4StyleSheet parse text error\",e)}var l=t.startLine,d=t.startColumn,h=((null===(o=null===(r=c.first)||void 0===r?void 0:r.raws)||void 0===o?void 0:o.before)||\"\").split(\"\\n\").length-1;h&&(l+=h,d=(null===(a=null===(s=null===(i=c.first)||void 0===i?void 0:i.source)||void 0===s?void 0:s.start)||void 0===a?void 0:a.column)||1);var p,f=u.postCSSRoot,g=u.ownerNode;return(f.nodes||[]).some((function(t,n){var r;if(\"rule\"!==t.type)return!1;var o=null===(r=t.first)||void 0===r?void 0:r.source;if(o&&o.start.line===l&&o.start.column===d){try{t.nodes=c.nodes,t.raws.semicolon=c.raws.semicolon,ur(g,f.toString()),nr(e);var i=(tr(e)||{}).postCSSRoot;p=Zn(i.nodes[n],e)}catch(e){console.warn(e)}return!0}})),p}}function ur(e,t){return Object.getOwnPropertyDescriptor(Node.prototype,\"textContent\").set.call(e,t)}function cr(e){var t={matchedCSSRules:[],pseudoElements:[]},n=[],r=[],o=function(e){var t=e.node.getAttribute(\"style\");if(t)return Yn(t)}(e);o&&(t.inlineStyle=o);var i=e.node,s=function(e,o){var s=e.selector;On(i,s)?t.matchedCSSRules.push(Vn(e,i,o)):($n.test(s)&&On(i,s.replace($n,\"\"))&&n.push(Vn(e,i,o,$n)),Kn.test(s)&&On(i,s.replace(Kn,\"\"))&&r.push(Vn(e,i,o,Kn)))};Dn&&(Dn.postCSSRoot.nodes||[]).forEach((function(e){\"rule\"===e.type&&s(e,void 0)})),or((function(e,t){s(e,t)}));try{t.matchedCSSRules=An(t.matchedCSSRules),n.length&&t.pseudoElements.push({matches:An(n),pseudoType:\"before\"}),r.length&&t.pseudoElements.push({matches:An(r),pseudoType:\"after\"})}catch(e){}return t}var lr=Object.freeze({__proto__:null,enable:function(e,t,n){n(null,{})},getMatchedStylesForNode:function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r),i=e.nodeId2DOMNode.get(r),s=e.nodeId2PseudoElement.get(r),a={matchedCSSRules:[]};o&&o.nodeType===se.Element?a=function(e){var t={matchedCSSRules:[],pseudoElements:[]},n=[],r=[],o=ir(e);if(o&&(t.inlineStyle=o),e.dom){var i=e.dom.node;or((function(e,o){var s=e.selector;On(i,s)?t.matchedCSSRules.push(Vn(e,i,o)):($n.test(s)&&On(i,s.replace($n,\"\"))&&n.push(Vn(e,i,o,$n)),Kn.test(s)&&On(i,s.replace(Kn,\"\"))&&r.push(Vn(e,i,o,Kn)))}))}try{t.matchedCSSRules=An(t.matchedCSSRules),n.length&&t.pseudoElements.push({matches:An(n),pseudoType:\"before\"}),r.length&&t.pseudoElements.push({matches:An(r),pseudoType:\"after\"})}catch(e){}return t}(o):i&&1===i.nodeType?a=cr(i):s&&(a=function(e,t){var n={matchedCSSRules:[]},r=new RegExp(\"::?\".concat(t,\"\\\\b\"));or((function(t,o){r.test(t.selector)&&On(e,t.selector.replace(r,\"\"))&&n.matchedCSSRules.push(Vn(t,e,o,r))}));try{n.matchedCSSRules=An(n.matchedCSSRules)}catch(e){}return n}(s.root,s.pseudoType)),n(null,a)},setStyleTexts:function(e,t,n){var r=[];t.edits.forEach((function(t){var n=t.styleSheetId,o=\"2000.\";if(0===n.indexOf(o)){var i=Number(n.replace(o,\"\")),s=e.nodeId2ZNode.get(i);if(s&&s.nodeType===se.Element){s.updateInlineStyle(t.text);var a=ir(s);a&&r.push(a),e.getZRuntimeHelper().X(s.node,s.getLinkedContext(),s.getClassName()||\"\",!1,s.getInlineStyle(),!0,s.getProperties(),{},2),e.flushUpdatedQueue()}}else{t.range.startLine+=1,t.range.startColumn+=1;var u=ar(n,t.range,t.text);u&&r.push(u)}})),n(null,{styles:r})},getComputedStyleForNode:function(e,t,n){var r,o=t.nodeId,i=e.nodeId2ZNode.get(o),s=e.nodeId2DOMNode.get(o),a=e.nodeId2PseudoElement.get(o),u=[];if(i&&i.nodeType===se.Element){var c=i.getPlatformRootDOM();c.nodeType===Node.ELEMENT_NODE&&(r=getComputedStyle(c))}else s&&1===s.nodeType?r=getComputedStyle(s.node):a&&(r=getComputedStyle(a.root,a.pseudoType));r&&(u=Array.from(r).map((function(e){return{name:e,value:r[e]}}))),n(null,{computedStyle:u})},getInlineStylesForNode:function(e,t,n){var r,o=t.nodeId,i=e.nodeId2ZNode.get(o);i&&i.nodeType===se.Element&&(r=ir(i)),r?n(null,{inlineStyle:r}):n(-32e3)},getStyleSheetText:function(e,t,n){var r=\"\",o=tr(t.styleSheetId);o&&(r=o.ownerNode.textContent),n(null,{text:r})}}),dr=function(e,t,n){n(null,{nodeIds:t.backendNodeIds})},hr=function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r),i=e.shadowRootNodeId2ZNode.get(r),s=e.nodeId2DOMNode.get(r);if(o){var a=o.serialize(1);a.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:a.children,parentId:t.nodeId})}else if(i)if(i.nodeType===se.Element){var u=i.getShadowRootDebugNode().serialize(0);u&&e.sendMessage(\"DOM.setChildNodes\",{nodes:[u],parentId:r})}else e.sendMessage(\"DOM.setChildNodes\",{nodes:[],parentId:r});else if(s){var c=s.serialize(1);c.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:c.children,parentId:r})}n(null,{})};var pr=Object.freeze({__proto__:null,pushNodesByBackendIdsToFrontend:dr,requestChildNodes:hr,enable:function(e,t,n){n(null,{})},getDocument:function(e,t,n){!function(e,t,n){e.resetZNodeActivatedState(),n(null,{root:e.getDocumentNode()})}(e,0,n),er().forEach((function(t){e.sendMessageWithPriority(\"CSS.styleSheetRemoved\",{styleSheetId:t.styleSheetId}),e.sendMessageWithPriority(\"CSS.styleSheetAdded\",{header:rr(t)});var n=t.ownerNode;Object.getOwnPropertyDescriptor(n,\"textContent\")||Object.defineProperty(n,\"textContent\",{get:function(){return function(e){return Object.getOwnPropertyDescriptor(Node.prototype,\"textContent\").get.call(e)}(n)},set:function(r){var o=ur(n,r),i=t.styleSheetId;return e.sendMessage(\"CSS.styleSheetRemoved\",{styleSheetId:i}),nr(i),e.sendMessage(\"CSS.styleSheetAdded\",{header:rr(t)}),o},configurable:!0})}))},markUndoableState:function(e,t,n){n(null,{})},setNodeName:function(e,t,n){n(-32e3)},setAttributesAsText:function(e,t,n){var r,o=t.nodeId,i=t.text,s=t.name,a=e.nodeId2ZNode.get(o);if(a&&a.nodeType===se.Element){var u=a,c=sr(i),l=u.getClassName(),d=!1,h=u.getInlineStyle(),p=!1;if(\"class\"===s&&c.class!==l&&(l=c.class,d=!0,u.updateClassName(l)),\"style\"===s&&c.style!==h&&(h=c.style,p=!0,u.updateInlineStyle(h)),d||p)return e.getZRuntimeHelper().X(u.node,u.getLinkedContext(),l||\"\",d,h||\"\",p,u.getProperties(),{},3),void e.flushUpdatedQueue();var f=\"data-\";if(0===s.indexOf(f)){var g=s.replace(f,\"\"),v=u.getDataset().get(g),m=c[s];switch(typeof v){case\"number\":isNaN(Number(m))||(m=Number(m));break;case\"boolean\":\"true\"===m?m=!0:\"false\"===m&&(m=!1)}if(m!==v){var y=((r={})[g]=m,r);a.node.updateDatasetPartial(y),u.updateDataset(y)}}u.invalidate()}n(null,{})},setNodeValue:function(e,t,n){var r=t.nodeId,o=t.value,i=e.nodeId2ZNode.get(r);if(i&&i.nodeType===se.Text)return i.dom.node.textContent=o,n(null,{}),void e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:r});n(-32e3,{})},getOuterHTML:function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r);o?n(null,{outerHTML:o.getOuterAXML()}):n(-32e3,{message:\"node with nodeId(\".concat(r,\") not found\")})}});var fr=Object.freeze({__proto__:null,enable:function(e,t,n){n(null,{})},hideHighlight:function(e,t,n){e.getOverlayManager().hidehighlight(),n(null,{})},highlightNode:function(e,t,n){var r=t.nodeId,o=t.highlightConfig,i=t.selector,s=e.nodeId2ZNode.get(r),a=e.nodeId2DOMNode.get(r);if(i)n(null,{});else{if(s){if(s.nodeType===se.Element)(u=s.getPlatformRootDOM()).nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(s.getPlatformRootDOM(),o);else if(s.nodeType===se.Component){var u,c=s.getChildNodes();if(1===c.length&&c[0].nodeType===se.Element)(u=c[0].getPlatformRootDOM()).nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(u,o)}}else a?1===a.nodeType&&e.getOverlayManager().highlightNode(a.node,o):e.getOverlayManager().hidehighlight();n(null,{})}},setInspectMode:function(e,t,n){var r=t.mode,o=t.highlightConfig;\"none\"===r?e.getOverlayManager().leaveInspectMode():e.getOverlayManager().enterInspectMode(o),n(null,{})}}),gr=function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r);if(o&&o.nodeType===se.Component)return e.activatedCustomComponentId=o.nodeId,void n(void 0,{data:St(o.getData()).data,props:St(o.getProps()).data});e.activatedCustomComponentId=void 0,n(void 0,{})},vr=Object.freeze({__proto__:null,getComponentData:gr}),mr=Object.freeze({__proto__:null,Elements:vr}),yr=Object.freeze({__proto__:null,CSS:lr,DOM:pr,Overlay:fr,Tiny:mr});function br(e,t){if(\"rgb\"===t){var n=e[0],r=e[1],o=e[2],i=e[3];return\"rgb(\".concat((255*n).toFixed(),\" \").concat((255*r).toFixed(),\" \").concat((255*o).toFixed()).concat(1===i?\"\":\" / \"+Math.round(100*i)/100,\")\")}if(\"hsl\"===t){var s=function(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=Math.max(t,n,r),s=Math.min(t,n,r),a=i-s,u=i+s,c=.5*u;return[s===i?0:t===i?(1/6*(n-r)/a+1)%1:n===i?1/6*(r-t)/a+1/3:1/6*(t-n)/a+2/3,0===c||1===c?0:c<=.5?a/u:a/(2-u),c,o]}(e),a=s[0],u=s[1],c=s[2];i=s[3];return\"hsl(\".concat(Math.round(360*a),\"deg \").concat(Math.round(100*u),\" \").concat(Math.round(100*c)).concat(1===i?\"\":\" / \"+Math.round(100*i)/100,\")\")}throw new Error(\"NOT_REACHED\")}function _r(e,t,n){return e<t?e=t:e>n&&(e=n),e}function wr(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}function Sr(e,t){var n,r,o,i,s,a=function(){s&&(s.innerHTML=\"\")};function u(e,t){var n=kr(\"div\",\"element-info\"),r=Ar(n,\"div\",\"element-info-header\"),o=function(e){if(e.layoutObjectName&&e.layoutObjectName.endsWith(\"Grid\"))return\"grid\";if(e.layoutObjectName&&\"LayoutNGFlexibleBox\"===e.layoutObjectName)return\"flex\";return null}(e);o&&Ar(r,\"div\",\"element-layout-type \".concat(o));var i=Ar(r,\"div\",\"element-description monospace\");Ar(i,\"span\",\"material-tag-name\").textContent=e.tagName;var s=Ar(i,\"span\",\"material-node-id\");s.textContent=e.idValue?\"#\"+Mr(e.idValue,80):\"\",s.classList.toggle(\"hidden\",!e.idValue);var a=Ar(i,\"span\",\"material-class-name\");s.textContent.length<80&&(a.textContent=Mr(e.className||\"\",80-s.textContent.length)),a.classList.toggle(\"hidden\",!e.className);var u=Ar(r,\"div\",\"dimensions\");Ar(u,\"span\",\"material-node-width\").textContent=String(Math.round(100*e.nodeWidth)/100),Pr(u,\"×\"),Ar(u,\"span\",\"material-node-height\").textContent=String(Math.round(100*e.nodeHeight)/100);var c,l=e.style||{},d=l.color;d&&\"#00000000\"!==d&&b(\"Color\",d,t);var h=l[\"font-family\"],p=l[\"font-size\"];h&&\"0px\"!==p&&y(\"Font\",\"\".concat(p,\" \").concat(h));var f=l[\"background-color\"];f&&\"#00000000\"!==f&&b(\"Background\",f,t);var g=l.margin;g&&\"0px\"!==g&&y(\"Margin\",g);var v=l.padding;function m(e,t,r){c||(c=Ar(n,\"div\",\"element-info-body\"));var o=Ar(c,\"div\",\"element-info-row\");return t&&o.classList.add(t),Ar(o,\"div\",\"element-info-name\").textContent=e,Ar(o,\"div\",\"element-info-gap\"),Ar(o,\"div\",r||\"\")}function y(e,t){Pr(m(e,\"\",\"element-info-value-text\"),t)}function b(e,t,n){var r=m(e,\"\",\"element-info-value-color\"),o=Ar(r,\"div\",\"color-swatch\");Ar(o,\"div\",\"color-swatch-inner\").style.backgroundColor=t,Pr(r,function(e,t){if(\"rgb\"===t||\"hsl\"===t)return br(function(e){return(e.match(/#(\\w\\w)(\\w\\w)(\\w\\w)(\\w\\w)/)||[]).slice(1).map((function(e){return parseInt(e,16)/255}))}(e),t);if(e.endsWith(\"FF\"))return e.substr(0,7);return e}(t,n))}return v&&\"0px\"!==v&&y(\"Padding\",v),n}var c=function(e){var t,n,r,o;if(a(),!e.elementInfo||0!==Object.keys(e.elementInfo).length){e.platform&&s.classList.add(\"platform-\".concat(e.platform));var i=null!==(t=e.elementInfo.nodeLeft)&&void 0!==t?t:Number.MAX_VALUE,c=null!==(n=e.elementInfo.nodeTop)&&void 0!==n?n:Number.MAX_VALUE,l=null!==(r=e.elementInfo.nodeLeft+e.elementInfo.nodeWidth)&&void 0!==r?r:-Number.MAX_VALUE,d=null!==(o=e.elementInfo.nodeTop+e.elementInfo.nodeHeight)&&void 0!==o?o:-Number.MAX_VALUE,h=Ar(s,\"div\"),p=Ar(h,\"div\",\"tooltip-content\"),f=u(e.elementInfo,e.colorFormat);p.appendChild(f);var g,v=wr(document.documentElement.clientWidth,4),m=wr(document.documentElement.clientHeight,4),y=p.offsetWidth,b=p.offsetHeight,_=10,w=v-2-_-16;if(l-i<36)g=.5*(i+l)-8;else{var S=i+_;g=S>12&&S<w?S:_r(12,S,l-_-16)}var I=g<12||g>w,k=g-_;k=_r(k,2,v-y-2);var C=function(){var e=0,t=0,n=getComputedStyle(s),r=n.getPropertyValue(\"--sat\");if(r){var o=Number(r.slice(0,-2));isNaN(o)||(e=o)}var i=n.getPropertyValue(\"--sab\");i&&(o=Number(i.slice(0,-2)),isNaN(o)||(t=o));return{safeAreaTop:e,safeAreaBottom:t}}(),E=C.safeAreaTop,T=C.safeAreaBottom,x=c-8-b,N=!0;x<E?(x=Math.min(m-b,d+8),N=!1):c>m&&(x=m-8-b-T);var O=k>=i&&k+y<=l&&x>=c&&x+b<=d;!(k<l&&k+y>i&&x<d&&x+b>c)||O?(p.style.top=x+\"px\",p.style.left=k+\"px\",p.style.setProperty(\"--arrow-visibility\",I||O?\"hidden\":\"visible\"),I||(p.style.setProperty(\"--arrow\",N?\"var(--arrow-down)\":\"var(--arrow-up)\"),p.style.setProperty(\"--shadow-direction\",N?\"var(--shadow-up)\":\"var(--shadow-down)\"),p.style.setProperty(\"--arrow-top\",(N?b-2:-8)+\"px\"),p.style.setProperty(\"--arrow-left\",g-k+\"px\"))):p.style.display=\"none\"}};return{c:function(){n=kr(\"div\"),r=kr(\"div\"),o=kr(\"div\"),i=kr(\"div\"),(s=kr(\"div\")).id=\"tinybugme-tooltip-container\",this.h()},h:function(){Cr(i,\"background-color\",t.content.color),Cr(i,\"box-sizing\",\"border-box\"),Cr(i,\"height\",\"100%\"),Cr(i,\"width\",\"100%\"),Cr(o,\"border-color\",t.padding.color),Cr(o,\"border-bottom-width\",t.padding.bottom),Cr(o,\"border-left-width\",t.padding.left),Cr(o,\"border-right-width\",t.padding.right),Cr(o,\"border-top-width\",t.padding.top),Cr(o,\"border-style\",\"solid\"),Cr(o,\"box-sizing\",\"border-box\"),Cr(o,\"height\",\"100%\"),Cr(o,\"width\",\"100%\"),Cr(r,\"border-color\",t.border.color),Cr(r,\"border-bottom-width\",t.border.bottom),Cr(r,\"border-left-width\",t.border.left),Cr(r,\"border-right-width\",t.border.right),Cr(r,\"border-top-width\",t.border.top),Cr(r,\"border-style\",\"solid\"),Cr(r,\"box-sizing\",\"border-box\"),Cr(r,\"height\",t.rect.height),Cr(r,\"width\",t.rect.width),Cr(n,\"border-color\",t.margin.color),Cr(n,\"border-bottom-width\",t.margin.bottom),Cr(n,\"border-left-width\",t.margin.left),Cr(n,\"border-right-width\",t.margin.right),Cr(n,\"border-top-width\",t.margin.top),Cr(n,\"border-style\",\"solid\"),Cr(n,\"box-sizing\",\"border-box\"),Cr(n,\"left\",t.rect.left),Cr(n,\"position\",\"fixed\"),Cr(n,\"top\",t.rect.top),Cr(n,\"z-index\",\"999999\"),Cr(n,\"display\",t.show?\"block\":\"none\"),Cr(n,\"pointer-events\",\"none\"),c(t)},m:function(e,t){Er(n,e,t),Tr(r,n),Tr(o,r),Tr(i,o),Er(s,e,t)},p:function(e,t){e.content&&Cr(i,\"background-color\",t.content.color),e.padding&&(Cr(o,\"border-color\",t.padding.color),Cr(o,\"border-bottom-width\",t.padding.bottom),Cr(o,\"border-left-width\",t.padding.left),Cr(o,\"border-right-width\",t.padding.right),Cr(o,\"border-top-width\",t.padding.top)),e.border&&(Cr(r,\"border-color\",t.border.color),Cr(r,\"border-bottom-width\",t.border.bottom),Cr(r,\"border-left-width\",t.border.left),Cr(r,\"border-right-width\",t.border.right),Cr(r,\"border-top-width\",t.border.top)),e.rect&&(Cr(r,\"height\",t.rect.height),Cr(r,\"width\",t.rect.width)),e.margin&&(Cr(n,\"border-color\",t.margin.color),Cr(n,\"border-bottom-width\",t.margin.bottom),Cr(n,\"border-left-width\",t.margin.left),Cr(n,\"border-right-width\",t.margin.right),Cr(n,\"border-top-width\",t.margin.top)),e.rect&&(Cr(n,\"left\",t.rect.left),Cr(n,\"top\",t.rect.top)),e.elementInfo&&c(t),e.show&&(Cr(n,\"display\",t.show?\"block\":\"none\"),t.show||a())},u:function(){!function(e){e.parentNode.removeChild(e)}(n)},d:xr}}var Ir=function(){function e(e){this.options=e,this._handlers=Object.create(null),this._bind=e._bind,this.options=e,this.root=e.root||this,this.store=this.root.store||e.store,this._state=Nr({},e.data),this._fragment=Sr(0,this._state),e.target&&(this._fragment.c(),this._mount(e.target,e.anchor));for(var t=0,n=['\\nbody {\\n --arrow-width: 15px;\\n --arrow-height: 8px;\\n --shadow-up: 5px;\\n --shadow-down: -5px;\\n --shadow-direction: var(--shadow-up);\\n --arrow-down: polygon(0 0, 100% 0, 50% 100%);\\n --arrow-up: polygon(50% 0, 0 100%, 100% 100%);\\n}\\n#tinybugme-tooltip-container {\\n margin: 0px;\\n padding: 0px;\\n font-size: 13px;\\n inset: 0px;\\n z-index: 100000000000;\\n pointer-events: none;\\n position: fixed;\\n top: 0;\\n right: 0;\\n bottom: 0;\\n left: 0;\\n}\\n#tinybugme-tooltip-container.platform-android {\\n font-family: Roboto, Ubuntu, Arial, sans-serif;\\n}\\n#tinybugme-tooltip-container.platform-ios {\\n color: rgb(48 57 66);\\n font-family: \"-apple-system-font\", \"Helvetica Neue\", \"Lucida Grande\", sans-serif;\\n --sat: var(--safe-area-inset-top);\\n --sar: var(--safe-area-inset-right);\\n --sab: var(--safe-area-inset-bottom);\\n --sal: var(--safe-area-inset-left);\\n}\\n#tinybugme-tooltip-container.platform-ide {\\n font-family: \"Helvetica Neue\", \"Lucida Grande\", \"Segoe UI\", Tahoma, sans-serif;\\n --sat: var(--safe-area-inset-top);\\n --sar: var(--safe-area-inset-right);\\n --sab: var(--safe-area-inset-bottom);\\n --sal: var(--safe-area-inset-left);\\n}\\n#tinybugme-tooltip-container .px {\\n color: rgb(128 128 128);\\n}\\n#tinybugme-tooltip-container #element-title {\\n position: absolute;\\n z-index: 100000000001;\\n}\\n#tinybugme-tooltip-container .tooltip-content {\\n position: absolute;\\n user-select: none;\\n background-color: #fff;\\n padding: 5px 8px;\\n border: 1px solid #fff;\\n border-radius: 3px;\\n box-sizing: border-box;\\n min-width: 100px;\\n max-width: min(300px, 100% - 4px);\\n z-index: 100000000002;\\n background-clip: padding-box;\\n will-change: transform;\\n text-rendering: optimizeLegibility;\\n pointer-events: none;\\n filter: drop-shadow(0 2px 4px rgb(0 0 0 / 35%));\\n}\\n#tinybugme-tooltip-container.platform-android .tooltip-content {\\n max-width: 100%;\\n}\\n#tinybugme-tooltip-container .tooltip-content::after {\\n content: \"\";\\n background: #fff;\\n width: var(--arrow-width);\\n height: var(--arrow-height);\\n clip-path: var(--arrow);\\n position: absolute;\\n top: var(--arrow-top);\\n left: var(--arrow-left);\\n visibility: var(--arrow-visibility);\\n}\\n#tinybugme-tooltip-container .element-info-section {\\n margin-top: 12px;\\n margin-bottom: 6px;\\n}\\n#tinybugme-tooltip-container .section-name {\\n color: #333;\\n font-weight: 500;\\n font-size: 10px;\\n text-transform: uppercase;\\n letter-spacing: 0.05em;\\n line-height: 12px;\\n}\\n#tinybugme-tooltip-container .element-info {\\n display: flex;\\n flex-direction: column;\\n}\\n#tinybugme-tooltip-container .element-info-header {\\n display: flex;\\n align-items: center;\\n}\\n#tinybugme-tooltip-container .element-info-body {\\n display: flex;\\n flex-direction: column;\\n padding-top: 2px;\\n margin-top: 2px;\\n}\\n#tinybugme-tooltip-container .element-info-row {\\n display: flex;\\n line-height: 19px;\\n}\\n#tinybugme-tooltip-container .separator-container {\\n display: flex;\\n align-items: center;\\n flex: auto;\\n margin-left: 7px;\\n}\\n#tinybugme-tooltip-container .separator {\\n border-top: 1px solid #ddd;\\n width: 100%;\\n}\\n#tinybugme-tooltip-container .element-info-name {\\n flex-shrink: 0;\\n color: #666;\\n}\\n#tinybugme-tooltip-container .element-info-gap {\\n flex: auto;\\n}\\n#tinybugme-tooltip-container .element-info-value-color {\\n display: flex;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n align-items: baseline;\\n}\\n#tinybugme-tooltip-container .a11y-icon {\\n width: 16px;\\n height: 16px;\\n background-repeat: no-repeat;\\n display: inline-block;\\n}\\n#tinybugme-tooltip-container .element-info-value-contrast {\\n display: flex;\\n align-items: center;\\n text-align: right;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n}\\n#tinybugme-tooltip-container .element-info-value-contrast .a11y-icon {\\n margin-left: 8px;\\n}\\n#tinybugme-tooltip-container .element-info-value-icon {\\n display: flex;\\n align-items: center;\\n}\\n#tinybugme-tooltip-container .element-info-value-text {\\n text-align: right;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n align-items: baseline;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n white-space: nowrap;\\n}\\n#tinybugme-tooltip-container .color-swatch {\\n display: flex;\\n margin-right: 2px;\\n width: 10px;\\n height: 10px;\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==\");\\n line-height: 10px;\\n}\\n#tinybugme-tooltip-container .color-swatch-inner {\\n flex: auto;\\n border: 1px solid rgb(128 128 128 / 60%);\\n}\\n#tinybugme-tooltip-container .element-layout-type {\\n margin-right: 10px;\\n width: 16px;\\n height: 16px;\\n}\\n#tinybugme-tooltip-container .element-layout-type.grid {\\n background-image: url(\\'data:image/svg+xml,<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect x=\"2.5\" y=\"2.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"9.5\" y=\"2.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"9.5\" y=\"9.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"2.5\" y=\"9.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .element-layout-type.flex {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M1 3.5h8v3H1v-3zm-1 0a1 1 0 011-1h8a1 1 0 011 1v3a1 1 0 01-1 1H1a1 1 0 01-1-1v-3zm12 0h3v3h-3v-3zm-1 0a1 1 0 011-1h3a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1v-3zm-7 6H1v3h3v-3zm-3-1a1 1 0 00-1 1v3a1 1 0 001 1h3a1 1 0 001-1v-3a1 1 0 00-1-1H1zm6 4v-3h8v3H7zm-1-3a1 1 0 011-1h8a1 1 0 011 1v3a1 1 0 01-1 1H7a1 1 0 01-1-1v-3z\" fill=\"%231A73E8\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .element-description {\\n flex: 1 1;\\n font-weight: bold;\\n word-wrap: break-word;\\n word-break: break-all;\\n}\\n#tinybugme-tooltip-container .dimensions {\\n color: hsl(0deg 0% 45%);\\n text-align: right;\\n margin-left: 10px;\\n}\\n#tinybugme-tooltip-container .material-node-width {\\n margin-right: 2px;\\n}\\n#tinybugme-tooltip-container .material-node-height {\\n margin-left: 2px;\\n}\\n#tinybugme-tooltip-container .material-tag-name {\\n /* Keep this in sync with inspectorSyntaxHighlight.css (--override-dom-tag-name-color) */\\n color: rgb(136 18 128);\\n}\\n#tinybugme-tooltip-container .material-class-name,\\n.material-node-id {\\n /* Keep this in sync with inspectorSyntaxHighlight.css (.webkit-html-attribute-value) */\\n color: rgb(26 26 166);\\n}\\n#tinybugme-tooltip-container .contrast-text {\\n width: 16px;\\n height: 16px;\\n text-align: center;\\n line-height: 16px;\\n margin-right: 8px;\\n border: 1px solid rgb(0 0 0 / 10%);\\n padding: 0 1px;\\n}\\n#tinybugme-tooltip-container .a11y-icon-not-ok {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m9 1.5c-4.14 0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5 7.5-3.36 7.5-7.5-3.36-7.5-7.5-7.5zm0 13.5c-3.315 0-6-2.685-6-6 0-1.3875.4725-2.6625 1.2675-3.675l8.4075 8.4075c-1.0125.795-2.2875 1.2675-3.675 1.2675zm4.7325-2.325-8.4075-8.4075c1.0125-.795 2.2875-1.2675 3.675-1.2675 3.315 0 6 2.685 6 6 0 1.3875-.4725 2.6625-1.2675 3.675z\" fill=\"%239e9e9e\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .a11y-icon-warning {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m8.25 11.25h1.5v1.5h-1.5zm0-6h1.5v4.5h-1.5zm.7425-3.75c-4.14 0-7.4925 3.36-7.4925 7.5s3.3525 7.5 7.4925 7.5c4.1475 0 7.5075-3.36 7.5075-7.5s-3.36-7.5-7.5075-7.5zm.0075 13.5c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6z\" fill=\"%23e37400\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .a11y-icon-ok {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m9 1.5c-4.14 0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5 7.5-3.36 7.5-7.5-3.36-7.5-7.5-7.5zm0 13.5c-3.3075 0-6-2.6925-6-6s2.6925-6 6-6 6 2.6925 6 6-2.6925 6-6 6zm-1.5-4.35-1.95-1.95-1.05 1.05 3 3 6-6-1.05-1.05z\" fill=\"%230ca40c\"/></svg>\\');\\n}\\n'];t<n.length;t++){r=n[t],o=void 0,(o=document.createElement(\"style\")).innerHTML=r,document.head.appendChild(o)}var r,o}return e.prototype._recompute=function(e,t){},e.prototype._differs=function(e,t){return e!=e?t==t:e!==t||e&&\"object\"==typeof e||\"function\"==typeof e},e.prototype._unmount=function(){this._fragment&&this._fragment.u()},e.prototype.destroy=function(e){this.destroy=xr,this.fire(\"destroy\"),this.set=this.get=xr,!1!==e&&this._fragment.u(),this._fragment.d(),this._fragment=this._state=null},e.prototype.get=function(e){return e?this._state[e]:this._state},e.prototype.fire=function(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(n)for(var r=0;r<n.length;r+=1){var o=n[r];o.__calling||(o.__calling=!0,o.call(this,t),o.__calling=!1)}},e.prototype.observe=function(e,t,n){var r=t.bind(this);return n&&!1===n.init||r(this.get()[e],void 0),this.on(n&&n.defer?\"update\":\"state\",(function(t){t.changed[e]&&r(t.current[e],t.previous&&t.previous[e])}))},e.prototype.on=function(e,t){if(\"teardown\"===e)return this.on(\"destroy\",t);var n=this._handlers[e]||(this._handlers[e]=[]);return n.push(t),{cancel:function(){var e=n.indexOf(t);~e&&n.splice(e,1)}}},e.prototype.set=function(e){this._set(Nr({},e)),this.root._lock||(this.root._lock=!0,Or(this.root._beforecreate),Or(this.root._oncreate),Or(this.root._aftercreate),this.root._lock=!1)},e.prototype._set=function(e){var t=this._state,n={},r=!1;for(var o in e)this._differs(e[o],t[o])&&(n[o]=r=!0);r&&(this._state=Nr(Nr({},t),e),this._recompute(n,this._state),this._bind&&this._bind(n,this._state),this._fragment&&(this.fire(\"state\",{changed:n,current:this._state,previous:t}),this._fragment.p(n,this._state),this.fire(\"update\",{changed:n,current:this._state,previous:t})))},e.prototype._mount=function(e,t){this._fragment[this._fragment.i?\"i\":\"m\"](e,t||null)},e}();function kr(e,t){var n=document.createElement(e);return t&&(n.className=t),n}function Cr(e,t,n){e.style.setProperty(t,n)}function Er(e,t,n){t.insertBefore(e,n)}function Tr(e,t){t.appendChild(e)}function xr(){}function Nr(e,t){for(var n in t)e[n]=t[n];return e}function Or(e){for(;e&&e.length;)e.shift()()}function Ar(e,t,n){var r=kr(t,n);return r.addEventListener(\"click\",(function(e){e.stopPropagation()}),!1),e.appendChild(r),r}function Mr(e,t){return e.length<=t?String(e):e.substr(0,t-1)+\"…\"}function Pr(e,t){var n=document.createTextNode(t);return e.appendChild(n),n}function Lr(e){if(e&&e.nodeType===Node.ELEMENT_NODE){var t=function(e){if(e)return e.__zInstance__||e.__zComposite__}(e);if(t)return t}}function Dr(e){for(var t=0;e&&t<5;){var n=Lr(e);if(n)return n;e=e.parentNode,t++}}var Rr={borderColor:{r:255,g:229,b:153,a:.66},contentColor:{r:111,g:168,b:220,a:.66},marginColor:{r:246,g:178,b:107,a:.66},paddingColor:{r:147,g:196,b:125,a:.55}},Br=!1;function jr(e){Br&&e.stopImmediatePropagation()}var Fr=function(){function e(){var e=this;this.inspectModeHighlightConfig=Rr,this.onWindowScroll=function(){e.currentFocusNode&&e.doHighlightNode(e.currentFocusNode,e.highlightConfig)},this.hidehighlight=this.hidehighlight.bind(this),this.handleInspectMouseOver=me(this.handleInspectMouseOver.bind(this),150,setTimeout,clearTimeout),this.handleInspectClick=this.handleInspectClick.bind(this),window.addEventListener(\"scroll\",me(this.onWindowScroll,16,setTimeout,clearTimeout),!0)}return e.initGlobalEventListener=function(){window.addEventListener(\"mouseup\",jr,!0),window.addEventListener(\"mousedown\",jr,!0),window.addEventListener(\"touchstart\",jr,!0),window.addEventListener(\"touchend\",jr,!0)},e.prototype.bindBridge=function(e){this.bridge=e},e.prototype.highlightNode=function(e,t){void 0===t&&(t={}),this.highlightConfig=t,this.currentFocusNode=e;var n=e.getBoundingClientRect();n.height||n.width?this.doHighlightNode(e,t):this.hidehighlight()},e.prototype.hidehighlight=function(){this.highlightConfig=void 0,this.currentFocusNode=void 0,this.overlayComponent&&this.overlayComponent.set({rect:{height:\"0px\",left:\"0px\",top:\"0px\",width:\"0px\"},show:!1})},e.prototype.enterInspectMode=function(e){e&&(this.inspectModeHighlightConfig=e),document.addEventListener(\"mouseover\",this.handleInspectMouseOver,!0),document.addEventListener(\"mouseout\",this.hidehighlight,!0),document.addEventListener(\"click\",this.handleInspectClick,!0),Br=!0},e.prototype.leaveInspectMode=function(){document.removeEventListener(\"mouseover\",this.handleInspectMouseOver,!0),document.removeEventListener(\"mouseout\",this.hidehighlight,!0),document.removeEventListener(\"click\",this.handleInspectClick,!0),Br=!1,this.inspectModeHighlightConfig=Rr},e.prototype.handleInspectMouseOver=function(e){},e.prototype.handleInspectClick=function(e){},e.prototype.doHighlightNode=function(e,t){void 0===t&&(t={});var n=e.getBoundingClientRect(),r={},o=Dr(e),i=\"unknown\";try{var s=this.bridge.getClientProxy().getClientInfo();i=s.isIDE?\"ide\":s.isIOS?\"ios\":\"android\"}catch(e){}if(t.showInfo&&o){var a=o._debug;if(a){if(r.tagName=a.nodeName.toLowerCase(),a.attrClass){var u=a.attrClass.split(\" \").map((function(e){return e.trim()})).filter(Boolean).join(\".\");u.length>0&&(r.className=\".\".concat(u))}r.idValue=a.attributes.get(\"id\")}r.nodeHeight=wr(n.height,4),r.nodeWidth=wr(n.width,4),r.nodeLeft=wr(n.left,4),r.nodeTop=wr(n.top,4);var c=window.getComputedStyle(e);r.style=c}var l=function(e){var t=window.getComputedStyle(e),n=function(e){return Number(e.slice(0,-2))<0?\"0px\":e};return{border:{bottom:t.borderBottomWidth,left:t.borderLeftWidth,right:t.borderRightWidth,top:t.borderTopWidth},boxSizing:t.boxSizing,margin:{bottom:n(t.marginBottom),left:n(t.marginLeft),right:n(t.marginRight),top:n(t.marginTop)},padding:{bottom:t.paddingBottom,left:t.paddingLeft,right:t.paddingRight,top:t.paddingTop}}}(e),d=function(e){return e?\"rgba(\".concat(e.r,\", \").concat(e.g,\", \").concat(e.b,\", \").concat(e.a,\")\"):\"transparent\"},h={border:de(de({},l.border),{color:d(t.borderColor)}),content:{color:d(t.contentColor)},elementInfo:r,margin:de(de({},l.margin),{color:d(t.marginColor)}),padding:de(de({},l.padding),{color:d(t.paddingColor)}),platform:i,rect:{height:\"\".concat(n.height,\"px\"),left:\"\".concat(n.left-Number(l.margin.left.slice(0,-2)),\"px\"),top:\"\".concat(n.top-Number(l.margin.top.slice(0,-2)),\"px\"),width:\"\".concat(n.width,\"px\")},show:!0};this.overlayComponent?this.overlayComponent.set(h):this.overlayComponent=new Ir({data:h,target:document.body})},e}();var Ur,zr=function(e){function t(){var n=e.call(this)||this;return t.initGlobalEventListener(),n}return le(t,e),t.prototype.highlightNode=function(t,n){if(t.nodeType===Node.ELEMENT_NODE){var r=Dr(t);r&&this.bridge.getZNodeDebugInfo(r),e.prototype.highlightNode.call(this,t,n)}else e.prototype.highlightNode.call(this,t,n)},t.prototype.handleInspectMouseOver=function(e){var t=this,n=e.target;if(n.nodeType===Node.ELEMENT_NODE){this.highlightNode(n,this.inspectModeHighlightConfig);var r=Dr(n);if(r){var o=this.bridge.getZNodeDebugInfo(r);if(!o.activated){for(var i=[],s=o.getParentNode();s&&!s.activated;)i.unshift(s),s=s.getParentNode();s&&i.unshift(s),i.forEach((function(e){var n=e.serialize(1);n&&n.children&&t.bridge.sendMessage(\"DOM.setChildNodes\",{nodes:n.children,parentId:n.nodeId})}))}o.nodeId&&this.bridge.sendMessage(\"Overlay.nodeHighlightRequested\",{nodeId:o.nodeId})}}},t.prototype.handleInspectClick=function(e){e.stopPropagation(),this.hidehighlight(),this.leaveInspectMode();var t=e.target;if(t.nodeType===Node.ELEMENT_NODE){var n=Dr(t);if(n){var r=this.bridge.getZNodeDebugInfo(n);this.bridge.sendMessage(\"Overlay.inspectNodeRequested\",{backendNodeId:r.nodeId})}}},t}(Fr),Hr=function(e){function t(t){var n=e.call(this,t)||this;return n.option.connection.onMessage((function(e,t,r){var o=e.split(\".\"),i=n.getMessageHandler(o);i&&i(n,t,r)})),n}return le(t,e),t.prototype.getClientProxy=function(){return this.option.clientProxy},t.prototype.getOverlayManager=function(){return this.overlayManager||(this.overlayManager=new zr,this.overlayManager.bindBridge(this)),this.overlayManager},t.prototype.enableShadowRootElements=function(){!function(){if(!Dn){for(var e=document.head.querySelectorAll(\"link\"),t=\"\",n=0,r=Array.from(e);n<r.length;n++){var o=r[n];if(/af-appx\\.min\\.css$/.test(o.href)){t=o.href;break}}if(t){var i=new XMLHttpRequest;i.open(\"GET\",t),i.onload=function(){if(i.responseText)try{var e=Ht.parse(i.responseText);Dn={ownerNode:null,postCSSRoot:e,styleSheetId:void 0,hash:\"\"}}catch(e){console.warn(e)}else console.warn(\"failed to request \".concat(t))},i.send()}else console.warn(\"failed to find af-appx.min.css link\")}}(),e.prototype.enableShadowRootElements.call(this)},t.prototype.getMessageHandler=function(e){for(var t=yr,n=0,r=e;n<r.length;n++){if(!(t=t[r[n]]))break}return t},t}(Lt);function Gr(e,t,n){var r=new Hr({clientProxy:e,connection:n,debugProxy:t,dependencyFactory:{createDOMElement:function(e,t,n,r,o){return new jt(e,t,n,r,o)},createZNodeElement:function(e,t,n,r,o,i){return new Bt(e,t,n,r,o,i)}}});return function(e){var t=e.getZRuntimeHelper();function n(t,n,r,o,i,s){var a=e.getZNodeDebugInfo(t);e.pageInstance||(e.pageInstance=n.root),a.nodeType===se.Element&&(a.setLinkedContext(n),r&&a.updateClassName(r),o&&a.updateInlineStyle(t.cachedNormalizedStyleString||o),a.updateProperties(i))}function r(t,n){var r=e.getZNodeDebugInfo(t);r.nodeType===se.Element&&(r.updateDataset(n),r.invalidate())}function o(t){var n=t._debug;if(n){if(n.activated&&e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:n.nodeId,parentNodeId:n.getParentNodeId()}),e.nodeId2ZNode.delete(n.nodeId),e.nodeId2DOMNode.delete(n.nodeId),n.nodeType===se.Element){e.shadowRootNodeId2ZNode.delete(n.shadowRootNodeId);var r=n.pseudoNodeType2Id;r&&Object.keys(r).forEach((function(t){e.nodeId2PseudoElement.delete(r[t])}))}delete t._debug}}function i(t,n,r){var o=e.getZNodeDebugInfo(n),i=o.getParentNode();if(1===i.getParentNodeId())e.sendMessage(\"DOM.setChildNodes\",{nodes:i.getChildNodes().map((function(e){return e.serialize(0)})),parentId:i.nodeId}),e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:i.getChildNodeCount(),nodeId:i.nodeId});else if(i.activated)if(i.childrenActivated){var s=0,a=o.getPreviousElementOrTextSibling();a&&(s=a.nodeId),e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:o.nodeId,parentNodeId:i.nodeId}),e.sendMessage(\"DOM.childNodeInserted\",{node:o.serialize(0),parentNodeId:i.nodeId,previousNodeId:s})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:i.getChildNodeCount(),nodeId:i.nodeId})}if(_t(t,\"x\",(function(e,t){n.apply(void 0,t)})),_t(t,\"xp\",(function(e,t){n.apply(void 0,t)})),_t(t,\"xa\",(function(e,t){n.apply(void 0,t)})),_t(t,\"xi\",(function(e,t){n.apply(void 0,t)})),_t(t,\"xai\",(function(e,t){n.apply(void 0,t)})),_t(t,\"W\",(function(e,t){n.apply(void 0,t)})),_t(t,\"X\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=n[3],s=n[4],a=n[5],u=n[6],c=e.getZNodeDebugInfo(r);c.nodeType===se.Element&&(i&&c.updateClassName(o),a&&c.updateInlineStyle(r.cachedNormalizedStyleString||s),c.updateProperties(u),c.invalidate())})),_t(t,\"y\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=n[3],s=n[4],a=e.getZNodeDebugInfo(r);a.nodeType===se.Element&&(i&&a.updateClassName(o),a.updateProperties(s),a.invalidate())})),_t(t,\"Y\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=n[3],s=n[4],a=e.getZNodeDebugInfo(r);a.nodeType===se.Element&&(i&&a.updateInlineStyle(r.cachedNormalizedStyleString||o),a.updateProperties(s),a.invalidate())})),_t(t,\"w\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=e.getZNodeDebugInfo(r);i.nodeType===se.Element&&(i.updateProperties(o),i.invalidate())})),_t(t,\"ea\",(function(t,n){var r=n[0],o=n[1],i=n[2],s=e.getZNodeDebugInfo(r);s.nodeType===se.Element&&(s.updateAttribute(o,i),s.invalidate())})),_t(t,\"g\",(function(e,t){r.apply(void 0,t)})),_t(t,\"Q\",(function(e,t){r.apply(void 0,t)})),_t(t,\"G\",(function(e,t){r.apply(void 0,t)})),_t(t,\"n\",(function(t,n){var r=n[0],o=n[1];if(r.firstChild){var i=r.firstChild._debug;i&&i.activated&&e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:i.nodeId})}else{var s={destroy:function(){},eType:2,formattedText:null,nextSibling:null,parent:r,previousSibling:null,get root(){var e=this.parent.root;return function(e){return e&&\"childNodes\"in e}(e)?e.childNodes[0]:null},text:o};s.root&&(r.firstChild=r.lastChild=s)}})),_t(t,\"N\",(function(t,n){var r=n[0],o=n[1],i=r._debug;i&&i.activated&&e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:i.nodeId})})),wt(t,\"r\",(function(e){o(e[0])})),wt(t,\"R\",(function(e){o(e[0])})),_t(t,\"i\",(function(e,t){t[0];var n=t[1];t[2],i(0,n)})),_t(t,\"a\",(function(e,t){t[0],i(0,t[1])})),_t(t,\"I\",(function(e,t){t[0];var n=t[1];t[2],i(0,n)})),_t(t,\"A\",(function(e,t){t[0],i(0,t[1])})),_t(t,\"t\",(function(t,n){var r=n[0];e.getZNodeDebugInfo(t).setLinkedContext(r)})),_t(t,\"p\",(function(t,n){var r=n[0],o=n[1],i=n[2],s=r.getTargetId();if(e.componentTargetId2ZNode.has(s)){var a=e.componentTargetId2ZNode.get(s);a.activated&&(a.updateProperties(o,i),a.invalidate())}})),wt(t,\"m\",(function(t){var n=t[0],r=t[1],o=t[2];e.componentTargetId2LinkedInstance.set(n.targetId,n);var i=n.root.document.createComment(It(n.getTargetId()));n._anchor4Head=i,r.insertBefore(i,o)})),_t(t,\"m\",(function(t,n){var r=n[0],o=n[1],i=n[2],s=r.root.document.createComment(kt(r.getTargetId()));r._anchor4Tail=s,o.insertBefore(s,i);var a=e.getZNodeComponentDebugInfo(r.getTargetId()),u=a.getParentNode();if(u&&u.activated)if(u.childrenActivated){var c=a.getPreviousElementOrTextSibling();e.sendMessage(\"DOM.childNodeInserted\",{node:a.serialize(0),parentNodeId:u.nodeId,previousNodeId:c?c.nodeId:0})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:u.getChildNodeCount(),nodeId:u.nodeId})})),wt(t,\"q\",(function(e){var t=e[0],n=e[1],r=mt(t,n),o=r.root.textContent;\"b\"===o[0]&&(r.root.textContent=\"e\"+o.slice(1)),at(t,ct(t,r)),n._anchor4Head=r})),_t(t,\"q\",(function(t,n){var r=n[0],o=n[1],i=o.getTargetId();ut(r);var s=o._anchor4Head,a=o._anchor4Tail=mt(r,o,s);s.root.textContent=It(i),a.root.textContent=kt(i),e.componentTargetId2LinkedInstance.set(i,o),e.componentTargetId2ZNode.delete(o.targetId)})),_t(t,\"o\",(function(t,n){var r=n[0],o=r._anchor4Head;o&&(o.parent.removeChild(o),r._anchor4Head=null);var i=r._anchor4Tail;i&&(i.parent.removeChild(i),r._anchor4Tail=null);var s=e.componentTargetId2ZNode.get(r.targetId);s.activated&&e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:s.nodeId,parentNodeId:s.getParentNodeId()}),e.componentTargetId2ZNode.delete(r.targetId),e.componentTargetId2LinkedInstance.delete(r.targetId)})),\"object\"==typeof $AppxHMRProxy&&\"function\"==typeof $AppxHMRProxy.applyUpdates){var s=$AppxHMRProxy.applyUpdates;$AppxHMRProxy.applyUpdates=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=s.apply($AppxHMRProxy,t);return setTimeout((function(){e.sendMessage(\"DOM.documentUpdated\",null)}),0),r}}}(r),function(e,t){var n=t.h,r=window.$ZElementLocationResolver=new Dt(e,t);t.L||(t.L=function(){}),wt(t,\"L\",r.overwriteLocation),_t(n,\"e\",r.bindZElement),wt(n,\"c\",r.bindZComponent)}(r,t.getZRuntime()),r}!function(e){e[e.Element=1]=\"Element\",e[e.Text=2]=\"Text\",e[e.Component=3]=\"Component\"}(Ur||(Ur={}));var Wr,qr,Zr=Function.prototype.apply.call.bind(Function.prototype.apply);function Yr(e,t,n){return Zr(e,t,n)}function Vr(e,t,n,r,o){var i,s,a=null,u=0;o||(o={});var c=function(){u=!1===o.leading?0:Date.now(),a=null,s=Yr(e,null,i),i=null};return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h=Date.now();u||!1!==o.leading||(u=h);var p=t-(h-u);return i=l,p<=0||p>t?(r(a),a=null,u=h,s=Yr(e,null,i),i=null):a||!1===o.trailing||(a=n(c,p)),s}}function Xr(){var e=Object.prototype.hasOwnProperty,t=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,value:n,writable:!0}):e[t]=n};function n(e){return Object(e)===e}function r(){if(void 0===this)throw new TypeError(\"Constructor WeakMap requires 'new'\");if(t(this,\"_id\",\"_WeakMap\"+\"_\"+i()+\".\"+i()),arguments.length>0)throw new TypeError(\"WeakMap iterable is not supported\")}function o(t,r){if(!n(t)||!e.call(t,\"_id\"))throw new TypeError(r+\" method called on incompatible receiver \"+typeof t)}function i(){return Math.random().toString().substring(2)}return t(r.prototype,\"delete\",(function(e){if(o(this,\"delete\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),t(r.prototype,\"get\",(function(e){if(o(this,\"get\"),n(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),t(r.prototype,\"has\",(function(e){if(o(this,\"has\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),t(r.prototype,\"set\",(function(e,r){if(o(this,\"set\"),!n(e))throw new TypeError(\"Invalid value used as weak map key\");var i=e[this._id];return i&&i[0]===e?(i[1]=r,this):(t(e,this._id,[e,r]),this)})),t(r,\"_polyfill\",!0),r}function Jr(){var e=\"undefined\"!=typeof Map;Wr=e?Map:function(){var e=function(){function e(){this.keyList=[],this.valueList=[]}return e.prototype.set=function(e,t){var n=this.keyList,r=n.indexOf(e);if(-1===r){var o=n.push(e)-1;this.valueList[o]=t}else this.valueList[r]=t;return this},e.prototype.get=function(e){var t=this.keyList.indexOf(e);return-1===t?void 0:this.valueList[t]},e.prototype.forEach=function(e){for(var t=this.keyList.slice(),n=this.valueList.slice(),r=t.length,o=0;o<r;o++){var i=t[o];e(n[o],i,this)}},Object.defineProperty(e.prototype,\"size\",{get:function(){return this.keyList.length},enumerable:!1,configurable:!0}),e.prototype.has=function(e){return-1!==this.keyList.indexOf(e)},e.prototype.delete=function(e){var t=this.keyList.indexOf(e);return-1!==t&&(this.keyList.splice(t,1),this.valueList.splice(t,1),!0)},e.prototype.clear=function(){this.keyList=[],this.valueList=[]},e}();return e}()}function Qr(){var e;return qr||(e=\"undefined\"!=typeof WeakMap,qr=e?WeakMap:Xr()),new qr}Qr();var $r,Kr=0,eo=\"undefined\"!=typeof window?window:void 0,to=eo||{},no=to.MutationObserver||to.WebKitMutationObserver,ro=\"undefined\"==typeof self&&\"undefined\"!=typeof process&&\"[object process]\"==={}.toString.call(process),oo=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;var io=new Array(1e3);function so(){for(var e=0;e<Kr;e+=2){(0,io[e])(io[e+1]),io[e]=void 0,io[e+1]=void 0}Kr=0}ro||(no?function(){var e=0,t=new no(so),n=document.createTextNode(\"\");t.observe(n,{characterData:!0})}():oo?(new MessageChannel).port1.onmessage=so:void 0===eo&&\"function\"==typeof require&&function(){try{var e=require(\"vertx\");return $r=e.runOnLoop||e.runOnContext,function(){$r(so)}}catch(e){return function(){setTimeout(so,1)}}}()),Math.random().toString(36).substring(2);var ao=function(){function e(e){this.provider=e,this.index=0}return e.prototype[Symbol.iterator]=function(){return this},e.prototype.next=function(e){return this.provider.item(this.index++)},e.prototype.throw=function(e){throw new Error(\"throw unimplemented\")},e.prototype.return=function(e){throw new Error(\"return unimplemented\")},e}(),uo=function(){function e(e){this.generator=e,this.done=!1,this.results=[]}return e.prototype.ref=function(){return new ao(this)},e.prototype.item=function(e){for(;e>this.results.length-1;){var t=this.generator.next();if(!1!==t.done){this.done=!0;break}this.results.push(t.value)}return this.done?{done:!0,value:null}:{done:!1,value:this.results[e]}},e}();function co(e){if(e&&e.node)for(var t=e.node&&e.node.nextSibling;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}!function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=Qr(),t}t(n,e),n.prototype.iterateTargetAXML=function(t,n){return this.createIterator(e.prototype.iterateTargetAXML,[t,n])},n.prototype.iterateChildTargetByOwnerId=function(t,n,r){return this.createIterator(e.prototype.iterateChildTargetByOwnerId,[t,n,r])},n.prototype.iterateDeepSlotBlockByOwnerId=function(t,n){return this.createIterator(e.prototype.iterateDeepSlotBlockByOwnerId,[t,n])},n.prototype.iterateTargetDeep=function(t,n){return this.createIterator(e.prototype.iterateTargetDeep,[t,n])},n.prototype.iterateDeepXML=function(t){return this.createIterator(e.prototype.iterateDeepXML,[t])},n.prototype.createIterator=function(e,t){var n=this.cache.get(e);n||(Wr||Jr(),n=new Wr,this.cache.set(e,n));var r=t.map((function(e){return\"\".concat(\"object\"==typeof e&&e?e.targetId:e)})).join(\"_\"),o=n.get(r);return o||(o=new uo(e.apply(this,t))),o.ref()}}(function(){function e(){}return e.prototype.iterateTargetAXML=function(e,t){var n,r,o,a;return i(this,(function(i){switch(i.label){case 0:if(n=function(e){for(var t=e.node&&e.node.firstChild;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}(e),!n)return[2,null];r=n.node,i.label=1;case 1:return r?(o=r).component&&2===o.component.type?[4,a=o.component]:[3,4]:[3,5];case 2:return i.sent(),[5,s(this.iterateChildTargetByOwnerId(a,t))];case 3:i.sent(),i.label=4;case 4:return r=r.nextSibling,[3,1];case 5:return[2,null]}}))},e.prototype.iterateChildTargetByOwnerId=function(e,t,n){var r,o,a,u,c,l,d,h,p,f,g,v,m;return i(this,(function(i){switch(i.label){case 0:if(!e.slotProviders)return[2,null];r=e.slotProviders,i.label=1;case 1:i.trys.push([1,13,14,15]),o=s(r),a=o.next(),i.label=2;case 2:if(a.done)return[3,12];u=a.value,c=this.iterateDeepSlotBlockByOwnerId(e,t),i.label=3;case 3:if(!1!==(l=c.next()).done)return[3,9];if(!(d=l.value).node)return[3,8];if(d.provider!==u)return[3,8];h=d.node.firstChild,i.label=4;case 4:return h?(p=h).component?2!==p.component.type?[3,7]:[4,f=p.component]:[3,7]:[3,8];case 5:return i.sent(),n?[3,7]:[5,s(this.iterateChildTargetByOwnerId(f,t))];case 6:i.sent(),i.label=7;case 7:return h=h.nextSibling,[3,4];case 8:return[3,10];case 9:return[3,11];case 10:return[3,3];case 11:return a=o.next(),[3,2];case 12:return[3,15];case 13:return g=i.sent(),v={error:g},[3,15];case 14:try{a&&!a.done&&(m=o.return)&&m.call(o)}finally{if(v)throw v.error}return[7];case 15:return[2,null]}}))},e.prototype.iterateDeepSlotBlockByOwnerId=function(e,t){var n,r,o,a;return i(this,(function(i){switch(i.label){case 0:if(!e.node)return[2,null];n=e.node.firstChild,i.label=1;case 1:return n?(r=n).component&&1===r.component.type?(o=r.component,u=o.provider,((c=u.slotProviderParentContextInstance).type<2?c.option.parentTarget:c).targetId!==t?[3,3]:[4,o]):[3,6]:[3,9];case 2:return i.sent(),[3,5];case 3:return[5,s(this.iterateDeepSlotBlockByOwnerId(o,t))];case 4:i.sent(),i.label=5;case 5:return[3,8];case 6:return r.component&&2===r.component.type&&(a=r.component).slotProviders?[5,s(this.iterateDeepSlotBlockByOwnerId(a,t))]:[3,8];case 7:i.sent(),i.label=8;case 8:return n=n.nextSibling,[3,1];case 9:return[2,null]}var u,c}))},e.prototype.iterateTargetDeep=function(e,t){var n,r;return i(this,(function(o){switch(o.label){case 0:return[5,s(this.iterateDeepXML(e))];case 1:o.sent(),n=this.iterateChildTargetByOwnerId(e,t),o.label=2;case 2:return!1!==(r=n.next()).done?[3,5]:[4,r.value];case 3:return o.sent(),[5,s(this.iterateDeepXML(r.value))];case 4:return o.sent(),[3,6];case 5:return[3,7];case 6:return[3,2];case 7:return[2,null]}}))},e.prototype.iterateDeepXML=function(e){var t,n,r;return i(this,(function(o){switch(o.label){case 0:if(!e.slotProviders||!e.node)return[2,null];t=e.node.firstChild,o.label=1;case 1:return t?(n=t.component)&&2===n.type?[4,n]:[3,8]:[3,10];case 2:return o.sent(),[5,s(this.iterateTargetDeep(n,e.targetId))];case 3:o.sent(),r=co(n),o.label=4;case 4:return r?[4,r]:[3,7];case 5:return o.sent(),[5,s(this.iterateDeepXML(r))];case 6:return o.sent(),r=co(r),[3,4];case 7:return[3,10];case 8:t=t.nextSibling,o.label=9;case 9:return[3,1];case 10:return[2,null]}}))},e}());var lo,ho,po,fo;\"undefined\"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,\"undefined\"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT,\"undefined\"!=typeof SECURITY_FUNCTION_CALL&&(SECURITY_FUNCTION_CALL=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return\"function\"==typeof e?(Zr||(Zr=Function.prototype.apply.call.bind(Function.prototype.apply)),Zr(e,t,n)):e.call.apply(e,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([t],n,!1))}),\"undefined\"!=typeof SECURITY_FUNCTION_APPLY&&(SECURITY_FUNCTION_APPLY=function(e,t,n){return\"function\"==typeof e?(Zr||(Zr=Function.prototype.apply.call.bind(Function.prototype.apply)),Zr(e,t,n)):e.apply(t,n)}),function(e){e.CanvasContext=\"CanvasContext\"}(lo||(lo={})),function(e){e[e.PLUGIN=1]=\"PLUGIN\",e[e.SUB_PACKAGE=2]=\"SUB_PACKAGE\"}(ho||(ho={})),function(e){e.PLUGIN=\"plugin\",e.SUB_PACKAGE=\"subpackage\"}(po||(po={})),\"undefined\"!=typeof HAS_INSIDE_FEATURE&&HAS_INSIDE_FEATURE,function(e){e.version_added=\"v\",e.const=\"c\",e.android=\"a\",e.ios=\"i\",e.default=\"d\"}(fo||(fo={}));var go=function(){function e(e,t,n,r,o){this.bindLinkNode=o,this.updatingDiff=null,this.scopedBlocks=[],this.unscopedBlocks=[],this.disposing=!1,this.detaching=!1,this.factory=e,this.currentData=t,this.slotProviderParentContextInstance=n,this.scopeId=r}return e.prototype.createBlockWithScope=function(e,t){var n,r,o=this.scopeId;return e&&o?(n=vo(e,this.currentData,o),(r=this.createBlock(this.slotProviderParentContextInstance,t,n,!0)).__scopeContext__=e):(n=this.currentData,r=this.createBlock(this.slotProviderParentContextInstance,t,n,!1)),r.bType=1,r},e.prototype.createBlockWithoutScope=function(e){var t=this.createBlock(this.slotProviderParentContextInstance,e,this.currentData,!1);return t.bType=1,t},e.prototype.updateBlockWithDynamicNameScopeAndFallback=function(e,t,n,r,o,i){if(t._name===e){var s=this.scopeId;if(n&&s){var a=vo(n,this.currentData,s),u=Object.create(this.updatingDiff);u[s]=!0,t.updateScopeContext(n),t.updateScopeAndFallbackContext(u,a,r,o)}else t.updateFallbackContext(r,o)}else{var c=void 0;c=n?this.createBlockWithScope(n,i):this.createBlockWithoutScope(i),t.updateDynamicNameAndFallbackContext(e,c,r,o)}return null},e.prototype.updateBlockWithScopeAndFallback=function(e,t,n,r){var o=this.scopeId;if(t&&o){var i=vo(t,this.currentData,o),s=Object.create(this.updatingDiff);s[o]=!0,e.updateScopeContext(t),e.updateScopeAndFallbackContext(s,i,n,r)}else e.updateFallbackContext(n,r)},e.prototype.updateBlockWithScope=function(e,t){var n=this.scopeId;if(t&&n){var r=vo(t,this.currentData,n),o=Object.create(this.updatingDiff);o[n]=!0,e.__scopeContext__=t,e.u(o,r)}},e.prototype.enterProviderDetaching=function(){this.detaching=!0},e.prototype.exitProviderDetaching=function(){this.detaching=!1;var e=this.detachedBlocks;if(e){this.detachedBlocks=null;for(var t=0,n=e;t<n.length;t++){var r=n[t],o=1===r.__slotType__?this.scopedBlocks:this.unscopedBlocks;r.__slotIndex__=o.push(r)-1,r.d(!0)}}},e.prototype.createBlock=function(e,t,n,r){var o,i,s;if(r?(i=1,o=this.scopedBlocks.length,s=this.scopedBlocks):(i=0,o=this.unscopedBlocks.length,s=this.unscopedBlocks),this.detaching){var a=this.detachedBlocks;if(a){var u=a.shift();if(u)return s.push(u),u.__slotIndex__=o,u.__slotType__=i,u}}var c=this.factory(e,n);return this.bindLinkNode&&(c=this.bindLinkNode(c,this)),c.d=this.destroyBlock.bind(this,c,c.d),s.push(c),c.__slotIndex__=o,c.__slotType__=i,c},e.prototype.destroyBlock=function(e,t,n){var r=e.__slotIndex__;if(r>=0){if(!this.disposing){var o=1===e.__slotType__?this.scopedBlocks:this.unscopedBlocks,i=o.length-1,s=o[i];s.__slotIndex__=r,o[r]=s,o.length=i}if(this.detaching){var a=this.detachedBlocks;a||(a=this.detachedBlocks=[]),a.push(e)}else t.call(e,n);e.__slotIndex__=-1}},e}();function vo(e,t,n){var r=Object.create(t);return r[n]=e[0],e.length>1&&(r[n+\"d\"]=e[1],r[n+\"n\"]=e[2]),r}function mo(){}function yo(e,t,n){if(e)return e(t,n)}function bo(e){if(e){var t=e.parent;t&&t.removeChild(e)}}function _o(e,t,n){return t?e.document.cloneComment(t):e.document.createComment(n)}function wo(e,t){var n=t.nextSibling,r=t.previousSibling;n?(n.previousSibling=r,t.nextSibling=null):e.lastChild=r,r?(r.nextSibling=n,t.previousSibling=null):e.firstChild=n,t.parent=null}function So(e,t){var n=t.parent;n&&wo(n,t),t.parent=e;var r=e.lastChild;r?(t.previousSibling=r,r.nextSibling=t):e.firstChild=t,e.lastChild=t}function Io(e,t,n){e.insertBefore(t,n||null),t.parent||(t.parent=e)}!function(e){function n(){return null!==e&&e.apply(this,arguments)||this}t(n,e),n.prototype.exitProviderUpdating=function(){},n.prototype.enterProviderUpdating=function(e,t){this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).u(e,t)}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u,c=vo((u=a[s]).__scopeContext__,t,n);u.u(i,c)}}},n.prototype.destroyBlocks=function(e){if(this.disposing=!0,this.scopeId){for(var t=0,n=this.scopedBlocks;t<n.length;t++){n[t].d(e)}this.scopedBlocks=[]}for(var r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].d(e)}this.unscopedBlocks=[]}}(go),function(e){function n(){return null!==e&&e.apply(this,arguments)||this}t(n,e),n.prototype.enterProviderUpdating=function(e,t){this.updatingDiff=e,this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].__slotUpdating__=!0}if(n&&this.scopedBlocks.length)for(var i=0,s=this.scopedBlocks;i<s.length;i++){s[i].__slotUpdating__=!0}},n.prototype.destroyBlocks=function(e){this.disposing=!0,this.scopeId&&(this.scopedBlocks=[]),this.unscopedBlocks=[]},n.prototype.exitProviderUpdating=function(){for(var e=this.updatingDiff,t=this.currentData,n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).__slotUpdating__&&(u.__slotUpdating__=!1,u.u(e,t))}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u;if((u=a[s]).__slotUpdating__){u.__slotUpdating__=!1;var c=vo(u.__scopeContext__,t,n);u.u(i,c)}}}this.updatingDiff=null}}(go),function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.detaching=!1,t}t(n,e),n.prototype.detach=function(){this.detaching=!0},n.prototype.attach=function(){this.detaching=!1},n.prototype.c=function(){if(this.detaching){var t=this._bc[5];return this._currentBlock&&(t&=this._currentBlock.c()),t}return e.prototype.c.call(this)},n.prototype.m=function(t,n){if(!this.detaching)return e.prototype.m.call(this,t,n);this._currentBlock&&this._currentBlock.m(this._currentTarget,this._currentAnchor)},n.prototype.resetCurrentBranch=function(e,t){this._component=e;var n=this._bc[3],r=this._bc[4],o=this._bc[0];this._selectedBlockIndex=n?n(this._component,t):1,this._selectedBlockType=r?r(this._selectedBlockIndex):o(this._component,t),this._currentBlock=yo(this._selectedBlockType,this._component,t)},n.prototype.d=function(t){if(!this.detaching)return e.prototype.d.call(this,t);this._currentBlock&&(this._currentBlock.d(t),this._currentBlock=null)}}(function(){function e(e,t,n){this._bc=e,this._component=t;var r=e[3],o=e[4],i=e[0];this._selectedBlockIndex=r?r(t,n):1,this._selectedBlockType=o?o(this._selectedBlockIndex):i(t,n),this._currentBlock=yo(this._selectedBlockType,t,n)}return e.prototype.a=function(){return this._currentAnchorHead},e.prototype.c=function(){var e=this._bc[5];return this._currentAnchorHead=_o(this._component),this._currentAnchor4Index=_o(this._component,null,Po(this._selectedBlockIndex)),this._currentBlock&&(e&=this._currentBlock.c()),this._currentAnchor=_o(this._component,this._currentAnchorHead),e},e.prototype.l=function(e){var t=this._bc[5];this._currentAnchorHead=Mo(e,this._component),function(e,t){e.stopReverseIndex=t,e.stopReverseIndexStack.push(t)}(e,ko(e,this._currentAnchorHead));var n,r=Ao(e,this._component,\"c\",Po(this._selectedBlockIndex));return this._currentAnchor4Index=r[0],e.treatErrorAsWarning+=r[1],this._currentBlock&&(t&=this._currentBlock.l(e)),e.treatErrorAsWarning-=r[1],(n=e).stopReverseIndexStack.pop(),n.stopReverseIndex=n.stopReverseIndexStack[n.stopReverseIndexStack.length-1]||0,this._currentAnchor=Mo(e,this._component,this._currentAnchorHead),this._currentTarget=e.target,t},e.prototype.m=function(e,t){this._currentTarget=e,Io(e,this._currentAnchorHead,t),Io(e,this._currentAnchor4Index,t),this._currentBlock&&this._currentBlock.m(e,t),Io(e,this._currentAnchor,t)},e.prototype.u=function(e,t){var n=this._bc[5],r=this._bc[3],o=this._bc[4],i=this._bc[0],s=r?r(this._component,t):1,a=o?o(s):i(this._component,t);if(this._selectedBlockType!==a){this._selectedBlockIndex=s,this._selectedBlockType=a;var u=this._currentAnchor4Index.root;u&&(u.textContent=Po(this._selectedBlockIndex)),this._currentBlock&&this._currentBlock.d(!0),this._currentBlock=yo(this._selectedBlockType,this._component,t),this._currentBlock&&(n&=this._currentBlock.c(),this._currentBlock.m(this._currentTarget,this._currentAnchor))}else this._currentBlock&&(n&=this._currentBlock.u(e,t));return n},e.prototype.d=function(e){this._currentBlock&&(this._currentBlock.d(e),this._currentBlock=null),e&&(bo(this._currentAnchorHead),bo(this._currentAnchor4Index),bo(this._currentAnchor),this._currentAnchorHead=null,this._currentAnchor4Index=null,this._currentAnchor=null)},e}());var ko=function(e,t){var n,r=t.root.textContent,o=e.index,i=e.nodes.length;for(;o<i&&(n=e.nodes.item(o))&&(8!==n.nodeType||n.textContent!==r);)o++;return i-o};var Co=0;var Eo,To,xo=function(){return\"z:\".concat(++Co)};function No(e){return e&&e.parentNode?Array.prototype.indexOf.call(e.parentNode.childNodes,e):-1}function Oo(e,t,n,r){Eo&&To||(Eo=Eo||[],To=To||[]),(t.treatErrorAsWarning?To:Eo).push(\"\".concat(function(e){switch(e){case 1:return\"RedundantNode\";case 2:return\"AnchorMatchRemoveAndNext\";case 3:return\"AnchorMatchStop\";case 4:return\"AnchorMatchNotFound\";case 5:return\"AnchorCreateRemove\";case 6:return\"AnchorCreateStop\";case 7:return\"AnchorCreateNotFound\";case 8:return\"ElementClaimRemoveReplace\";case 9:return\"ElementClaimStopCreate\";case 10:return\"ElementClaimNotFoundCreate\";default:return\"\"}}(e),\": previous:\").concat(n?\"\".concat(n.nodeName).concat(n.className?\".\".concat(n.className):\"\",\"@\").concat(No(n),\":\").concat(n.textContent||\"\"):\"null\",\", next:\").concat(r?\"\".concat(r.nodeName).concat(r.className?\".\".concat(r.className):\"\",\"@\").concat(No(r),\":\").concat(r.textContent||\"\"):\"null\"))}var Ao=function(e,t,n,r){var o,i=e.target,s=e.nodes.item(e.index),a=0,u=0,c=0;if(s&&8===s.nodeType&&s.textContent[0]===n)s.textContent===r?o={destroy:mo,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s}:(s.textContent=r,o={destroy:mo,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s},a=1,c=1);else{if(o={destroy:mo,eType:0,nextSibling:null,parent:i,previousSibling:null,root:t.document.document.createComment(r)},s){var l={destroy:mo,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s};i.insertBefore(o,l)}else i.appendChild(o);a=1,u=1}if(e.index++,a)for(var d=e.index,h={destroy:mo,eType:0,nextSibling:null,parent:i,previousSibling:null,root:null};(s=e.nodes.item(d))&&e.stopReverseIndex!==e.nodes.length-d;)h.root=s,i.removeChild(h),u&&Oo(2,e,s,null);return[o,c]};var Mo=function(e,t,n){var r,o=e.target,i={destroy:mo,eType:0,nextSibling:null,parent:null,previousSibling:null,root:null};if(n){for(var s=n.root.textContent,a=e.index,u=void 0;;){if(!(u=e.nodes.item(a))){var c=t.document.document.createComment(s);i.root=c,o.appendChild(i),Oo(4,e,null,c);break}if(i.root=u,8===u.nodeType&&u.textContent===s){So(o,i);break}if(e.stopReverseIndex===e.nodes.length-a){var l={destroy:mo,eType:0,nextSibling:null,parent:null,previousSibling:null,root:u};c=t.document.document.createComment(s);i.root=c,So(o,l),o.insertBefore(i,l),wo(o,l),Oo(3,e,u,c);break}o.removeChild(i),Oo(2,e,u,null)}return e.index++,i}u=e.nodes.item(e.index++);if(i.root=u,u&&8===u.nodeType)So(o,i);else{var d=t.document.document.createComment(xo());r={destroy:mo,eType:0,nextSibling:null,parent:null,previousSibling:null,root:d},u?(So(o,i),o.insertBefore(r,i),e.stopReverseIndex===e.nodes.length-e.index?(wo(o,i),Oo(6,e,u,d)):(o.removeChild(i),Oo(5,e,u,d))):(o.appendChild(r),Oo(7,e,null,d))}return r||i};function Po(e){return\"\".concat(\"c\",\":\").concat(e||\"\")}function Lo(e,t,n){for(var r=[],o=e,i=null;o&&!t(o);){switch(o.eType){case 1:case 2:null===i&&r.push(n.getZNodeDebugInfo(o));break;case 0:var s=o.root.textContent;null===i&&\"b\"===s[0]?i=parseInt(s.slice(2),10):null!==i&&s===Bo(i)&&(r.push(n.getZNodeComponentDebugInfo(i)),i=null)}o=o.nextSibling}return r}function Do(e,t){if(\"className\"===e)return[\"class\",String(t).trim()];if(\"function\"==typeof t){if(t.handleName)return[e,t.handleName]}else{if(null===t)return[e,\"null\"];if(void 0!==t){var n=\"unknown\";try{n=\"object\"==typeof t?Object.prototype.toString.call(t):t.toString()}catch(n){console.warn(\"failed to stringify node props value\",e,t)}return[e,n]}}return[]}function Ro(e){var t=\"\";try{JSON.stringify(e).length>1e6&&(t=\"data is too large to display\")}catch(e){t=e.message||\"stringify error\"}return t?{data:{error:t}}:{data:e}}function Bo(e){return\"\".concat(\"e\",\":\").concat(e)}function jo(e){if(!e.treeTargetIds){for(var t=e,n=[];t;){t=t.previousSibling?t.previousSibling:t.parent;for(var r=0;t;){if(0===t.eType){if(\"e\"===t.root.textContent[0])r++;else if(\"b\"===t.root.textContent[0]){if(0===r){n.push({begin:t.root,targetId:parseInt(t.root.textContent.slice(2),10)});break}r--}}else{if(1===t.eType&&0===r){n.push.apply(n,jo(t)),t=null;break}if(2===t.eType&&0===r){n.push.apply(n,jo(t)),t=null;break}}t=t.previousSibling?t.previousSibling:t.parent}}n.length||n.push({begin:null,targetId:0}),e.treeTargetIds=n}return e.treeTargetIds}var Fo,Uo=function(){function e(e,t){this.devtool=e,this.node=t}return e.prototype.setParentNodeId=function(e){this.parentNodeId=e},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.node.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.getParentNode=function(){if(this.node.parent){var e=this.devtool.getZNodeDebugInfo(this.node.parent),t=jo(this.node);return jo(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.setLinkedContext=function(e){this.linkedContext=e},e.prototype.getLinkedContext=function(){return this.linkedContext},e}();function zo(e){var t=[];t.push(\"<\".concat(e.localName));var n=function(e){if(e&&0!==e.length){for(var t=[],n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];r&&o&&t.push(\"\".concat(r,'=\"').concat(o,'\"'))}return t.join(\" \")}}(e.getAllAttributes());n&&t.push(\" \".concat(n)),t.push(\">\");var r=function(e){if(e&&0!==e.length){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];t.push(o.getOuterAXML())}return t.join(\"\")}}(e.getChildNodes());return r&&t.push(r),t.push(\"</\".concat(e.localName,\">\")),t.join(\"\")}function Ho(e,t){for(var n=e.child;n&&(n.tag===Fo.HostComponent||n.tag===Fo.HostPortal||n.tag===Fo.HostRoot);)n=n.child;if(n){var r=function(e){var t=[],n=e;for(;n;)t.push(n),n=n.sibling;return t}(n);r.forEach((function(e){Zo(e)?t(e):Ho(e,t)}))}}function Go(e){var t=Wo(e);return/AppX\\(\\S+\\)/.test(t)||\"PageComponent\"===t}function Wo(e){var t,n=e.type,r=\"\";return\"string\"==typeof n?r=n:n&&\"string\"==typeof n.displayName?(r=n.displayName,qo(e)&&(r=(null===(t=e.memoizedProps)||void 0===t?void 0:t.__tag)||r)):n&&\"string\"==typeof n.name&&(r=n.name),r||\"Anonymous\"}function qo(e){var t=e.tag,n=e.type;return(t===Fo.ClassComponent||t===Fo.FunctionComponent)&&!(!n||!n.isCustomComponent)}function Zo(e){return e.tag===Fo.HostText||(!!Go(e)||!!qo(e))}function Yo(e){var t=e.tag;return t===Fo.HostComponent||t===Fo.HostText?e:e.child?Yo(e.child):void 0}function Vo(e){var t=Yo(e);if(t)return t.stateNode}function Xo(e){for(var t=e.return;t;){if(Zo(t))return t;t=t.return}}function Jo(e){var t;return Boolean(e.__debug_serialized||(null===(t=e.alternate)||void 0===t?void 0:t.__debug_serialized))}function Qo(e){var t=r({},e);return delete t.$isCustomComponent,delete t.__tag,delete t.className,delete t.children,t.__owner&&t.__owner.pluginId&&delete t.__owner,t}function $o(e){var t=[];if(e.memoizedProps){e.memoizedProps.className&&t.push.apply(t,Do(\"className\",e.memoizedProps.className));var n=Qo(e.memoizedProps);Object.keys(n).forEach((function(e){t.push.apply(t,Do(e,n[e]))}))}return t}function Ko(e,t){t.__debug_serialized=!0,t.alternate&&(t.alternate.__debug_serialized=!0);var n=e.getFiberId(e.getPrimaryFiber(t)),r=0;return t.return&&(r=e.getFiberId(e.getPrimaryFiber(t.return))),{backendNodeId:n,childNodeCount:0,localName:\"\",nodeId:n,nodeName:\"#text\",nodeType:3,nodeValue:t.stateNode.textContent,parentId:r}}function ei(e,t,n){var r,o,i;void 0===n&&(n=0),t.__debug_serialized=!0,t.alternate&&(t.alternate.__debug_serialized=!0);var s=e.getFiberId(e.getPrimaryFiber(t)),a=Wo(t);a=a.replace(/^AppX\\((\\S+)\\)$/,\"$1\");var u,c,l,d=0;if(Ho(t,(function(t){if(c||(c=t),n>0){u||(u=[]);var r=ti(e,t,n-1);r&&u.push(r)}d+=1})),!u&&1===d&&c&&c.tag===Fo.HostText){u||(u=[]);var h=ti(e,c,n-1);h&&u.push(h)}if(!d&&t.memoizedProps&&\"string\"==typeof t.memoizedProps.children){u||(u=[]);for(var p=t.child;p&&p.child;)p=p.child;if((null===(i=null===(o=null===(r=null==p?void 0:p.stateNode)||void 0===r?void 0:r.childNodes)||void 0===o?void 0:o[0])||void 0===i?void 0:i.nodeType)===Node.TEXT_NODE){var f=p.stateNode.childNodes[0],g={alternate:null,child:null,effectTag:0,key:null,memoizedProps:l=t.memoizedProps.children,memoizedState:null,pendingProps:l,return:null,sibling:null,stateNode:f,tag:Fo.HostText,type:null};e.recordMount(g),u.push(Ko(e,g))}else console.warn(\"bugme failed to create a fiber-like text node, the parent is\",t)}u&&u.length&&(t.__debug_children_serialized=!0,t.alternate&&(t.alternate.__debug_children_serialized=!0));var v=0;return t.return&&(v=e.getFiberId(e.getPrimaryFiber(t.return))),{attributes:$o(t),backendNodeId:s,childNodeCount:d,children:u,localName:a,nodeId:s,nodeName:a,nodeType:1,nodeValue:\"\",parentId:v,shadowRoots:void 0}}function ti(e,t,n){var r;switch(void 0===n&&(n=0),t.tag){case Fo.FunctionComponent:case Fo.ClassComponent:case Fo.HostComponent:r=ei(e,t,n);break;case Fo.HostText:r=Ko(e,t);break;default:console.debug(\"unhandled node type\",t.tag,t)}return r}!function(e){function n(t,n,r,o,i,s){var a=e.call(this,t,r)||this;return a.devtool=t,a.nodeName=n,a.node=r,a.nodeId=o,a.shadowRootNodeId=i,a.shadowSlotNodeId=s,a.nodeType=Ur.Element,a.activated=!1,a.childrenActivated=!1,a.pendingAttributes=[],a.dataset=new Map,a.properties=new Map,a.attributes=new Map,a.inlineStyleSheetId=\"2000.\".concat(o),a.updateClassName(r.classNameExp),a.updateInlineStyle(r.inlineStyleExp),a.updateDataset(r.getDataset()),a}t(n,e),Object.defineProperty(n.prototype,\"dom\",{get:function(){return this.devtool.getDOMNodeDebugInfo(this.node.root,this,this.shadowRootNodeId)},enumerable:!1,configurable:!0}),n.prototype.getPlatformRootDOM=function(){return this.node.root},n.prototype.getShadowRootDebugNode=function(){var e=this.node.root;return this.devtool.getDOMNodeDebugInfo(e,this,this.shadowRootNodeId)},n.prototype.getClassName=function(){return this.attrClass},n.prototype.getInlineStyle=function(){return this.attrStyle},n.prototype.getDataset=function(){return this.dataset},n.prototype.updateClassName=function(e){var t=e||\"\";this.attrClass!==t&&(this.attrClass=t,this.activated&&this.pendingAttributes.push([\"class\",\"\".concat(t)]))},n.prototype.updateInlineStyle=function(e){this.attrStyle!==e&&(this.attrStyle=e,this.activated&&this.pendingAttributes.push([\"style\",\"\".concat(e)]))},n.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n]),\"style\"===n&&e.node.setStyleInline(t[n])})),this.pendingAttributes=[],t={},this.devtool.enableShadowRootElements&&(this.devtool.flushUpdatedQueue(),this.dom&&this.dom.invalidate())}},n.prototype.getProperties=function(){var e={};return this.properties.forEach((function(t,n){e[n]=t})),e},n.prototype.updateProperties=function(e){if(e)for(var t=this.properties,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([o,\"\".concat(e[o])]))}},n.prototype.updateDataset=function(e){if(e)for(var t=this.dataset,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([\"data-\".concat(o),\"\".concat(e[o])]))}},n.prototype.updateAttribute=function(e,t){t!==this.attributes.get(e)&&(this.attributes.set(e,t),this.activated&&this.pendingAttributes.push([e,\"\".concat(t)]))},n.prototype.getChildNodes=function(){return Lo(this.node.firstChild,(function(){return!1}),this.devtool)},n.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&r&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==Ur.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.localName,nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId(),pseudoElements:this.getPseudoElements(),shadowRoots:this.devtool.shadowRootElementsEnabled?[{childNodeCount:1,localName:\"\",nodeId:this.shadowRootNodeId,nodeName:\"#document-fragment\",nodeType:11,nodeValue:\"\",shadowRootType:\"dom\"}]:void 0}},Object.defineProperty(n.prototype,\"localName\",{get:function(){return this.nodeName.toLowerCase()},enumerable:!1,configurable:!0}),n.prototype.getOuterAXML=function(){return zo(this)},n.prototype.getAllAttributes=function(){var e=[];return this.attrClass&&e.push(\"class\",\"\".concat(this.attrClass)),this.attrStyle&&e.push(\"style\",\"\".concat(this.attrStyle)),this.properties.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.attributes.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.dataset.forEach((function(t,n){e.push(\"data-\".concat(n),\"\".concat(t))})),e},n.prototype.getChildNodeCount=function(){return this.getChildNodes().length},n.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})},n.prototype.getPseudoElements=function(){return[]}}(Uo),function(e){function n(t,n,r,o){var i=e.call(this,t,n)||this;return i.devtool=t,i.node=n,i.nodeId=r,i.shadowSlotNodeId=o,i.nodeType=Ur.Text,i.activated=!1,i.nodeName=\"#text\",i.dom=t.getDOMNodeDebugInfo(n.root,i),i}t(n,e),n.prototype.getPlatformRootDOM=function(){return this.node.root},n.prototype.serialize=function(e){return this.activated=!0,{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:this.nodeName,nodeType:3,nodeValue:this.node.root.textContent,parentId:this.getParentNodeId()}},n.prototype.getOuterAXML=function(){return this.node.root.textContent}}(Uo),function(){function e(e,t,n){var r=this;this.devtool=e,this.targetId=t,this.nodeId=n,this.nodeType=Ur.Component,this.nodeName=\"component\",this.activated=!1,this.childrenActivated=!1,this.pendingAttributes=[],this.componentInstance=e.componentTargetId2LinkedInstance.get(t),this.beginAnchor=this.componentInstance._anchor4Head,this.parentNodeId=this.getParentNodeId();var o=Vr(e.sendMessage.bind(e),500,setTimeout,clearTimeout),i=this.componentInstance._fragment.u;this.componentInstance._fragment.u=function(){for(var t=[],s=0;s<arguments.length;s++)t[s]=arguments[s];var a=i.apply(r.componentInstance._fragment,t);return e.activatedCustomComponentId===n&&o(\"Tiny.Elements.componentDataChanged\",{data:Ro(r.getData()).data,nodeId:n}),a};var s=Vr(e.sendMessage.bind(e),500,setTimeout,clearTimeout),a=this.componentInstance.receiveProps;this.componentInstance.receiveProps=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];a.apply(r.componentInstance,t),e.activatedCustomComponentId===n&&s(\"Tiny.Elements.componentDataChanged\",{nodeId:n,props:Ro(r.getProps()).data})},this.invalidate=Vr(this.invalidate.bind(this),500,setTimeout,clearTimeout)}e.prototype.getChildNodes=function(){var e=this;return Lo(this.beginAnchor.nextSibling,(function(t){if(0===t.eType&&t.root.textContent===Bo(e.targetId))return!0}),this.devtool)},e.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==Ur.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.localName,nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId()}},Object.defineProperty(e.prototype,\"localName\",{get:function(){return this.nodeName.toLowerCase()},enumerable:!1,configurable:!0}),e.prototype.getOuterAXML=function(){return zo(this)},e.prototype.getAllAttributes=function(){var e=this,t=this.componentInstance.fixedReceivedPropKeys,n=this.componentInstance.componentIs;\"string\"==typeof n&&\"/\"===n[0]&&(n=n.substring(1));var r=[\"is\",n];return this.componentInstance.externalClasses&&r.push(\"externalClasses\",this.componentInstance.externalClasses.join(\" \")),t&&t.forEach((function(t){r.push.apply(r,Do(t,e.componentInstance._state[t]))})),r},e.prototype.getComponentIs=function(){return this.componentInstance.componentIs},e.prototype.getComponentInstance=function(){return this.componentInstance},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getParentNode=function(){if(this.beginAnchor.parent){var e=this.devtool.getZNodeDebugInfo(this.beginAnchor.parent),t=jo(this.beginAnchor);return jo(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.getData=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys,r=void 0===n?[]:n;return Object.keys(this.componentInstance._state).forEach((function(n){\"$id\"!==n&&-1===r.indexOf(n)&&(t[n]=e.componentInstance._state[n])})),t},e.prototype.getProps=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys;return(void 0===n?[]:n).forEach((function(n){t[n]=e.componentInstance._state[n]})),t},e.prototype.getChildNodeCount=function(){return this.getChildNodes().length},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.beginAnchor.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.updateProperties=function(e,t){var n=this;Object.keys(t).forEach((function(r){t[r]&&n.pendingAttributes.push([r,\"\".concat(e[r])])}))},e.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n])})),this.pendingAttributes=[],t={}}},e.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})}}(),function(e){e[e.FunctionComponent=0]=\"FunctionComponent\",e[e.ClassComponent=1]=\"ClassComponent\",e[e.IndeterminateComponent=2]=\"IndeterminateComponent\",e[e.HostRoot=3]=\"HostRoot\",e[e.HostPortal=4]=\"HostPortal\",e[e.HostComponent=5]=\"HostComponent\",e[e.HostText=6]=\"HostText\",e[e.Fragment=7]=\"Fragment\",e[e.Mode=8]=\"Mode\",e[e.ContextConsumer=9]=\"ContextConsumer\",e[e.ContextProvider=10]=\"ContextProvider\",e[e.ForwardRef=11]=\"ForwardRef\",e[e.Profiler=12]=\"Profiler\",e[e.SuspenseComponent=13]=\"SuspenseComponent\",e[e.MemoComponent=14]=\"MemoComponent\",e[e.SimpleMemoComponent=15]=\"SimpleMemoComponent\",e[e.LazyComponent=16]=\"LazyComponent\",e[e.IncompleteClassComponent=17]=\"IncompleteClassComponent\"}(Fo||(Fo={}));var ni=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},getDocument:function(e,t,n){e.resetFiberSerializedState();var r=e.getPageComponent();if(r){var o=ti(e,r,1);o.localName=o.nodeName=\"page\",o.attributes=[],n(void 0,{root:{backendNodeId:1,childNodeCount:1,children:[o],localName:\"\",nodeId:1,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}})}else{var i=\"page-not-found\";n(void 0,{root:{backendNodeId:1,childNodeCount:1,children:[{attributes:[],backendNodeId:2,childNodeCount:0,localName:i,nodeId:2,nodeName:i,nodeType:1,nodeValue:\"\",parentId:1}],localName:\"\",nodeId:1,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}})}er().forEach((function(t){e.sendMessageWithPriority(\"CSS.styleSheetRemoved\",{styleSheetId:t.styleSheetId}),e.sendMessageWithPriority(\"CSS.styleSheetAdded\",{header:rr(t)})}))},markUndoableState:function(e,t,n){n(void 0,{})},pushNodesByBackendIdsToFrontend:function(e,t,n){n(void 0,{nodeIds:t.backendNodeIds})},requestChildNodes:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r);if(o){var i=ti(e,o,1);i&&i.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:i.children,parentId:r})}else console.warn(\"requestChildNodes node not exists\",r);n(void 0,{})},setAttributesAsText:function(e,t,n){var r=t.nodeId,o=t.text,i=t.name,s=e.getFiberNodeById(r);if(s&&s.memoizedProps){var a=sr(o);if(\"class\"===i){if((h=Yo(s))&&h.stateNode&&h.stateNode.classList){var u=h.stateNode,c=h.memoizedProps.className||\"\";u.className=c;var l=s.memoizedProps.className||\"\";if(l)try{l.split(/\\s/).filter(Boolean).forEach((function(e){u.classList.remove(e)}))}catch(e){console.warn(\"setAttributesAsText remove class error, className=\".concat(l))}var d=a.class||\"\";d&&d.split(/\\s/).filter(Boolean).forEach((function(e){u.classList.add(e)})),e.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:r,value:d})}}else if(\"style\"===i){var h;if((h=Yo(s))&&h.stateNode&&h.stateNode.nodeType===Node.ELEMENT_NODE)h.stateNode.setAttribute(i,a.style),e.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:r,value:a.style})}}n(void 0,{})},setNodeName:function(e,t,n){n(-32e3)},setNodeValue:function(e,t,n){var r=t.nodeId,o=t.value,i=e.getFiberNodeById(r);if(i&&i.tag===Fo.HostText)return i.stateNode.textContent=o,n(void 0,{}),void e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:r});n(-32e3,{})}});function ri(e,t){if(e&&Go(e)){var n=Vo(e);if(n&&n.nodeType===Node.ELEMENT_NODE)return ir({getInlineStyle:function(){return n.getAttribute(\"style\")||\"\"},inlineStyleSheetId:\"2000.\".concat(t)})}}var oi=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},getComputedStyleForNode:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r),i=[];if(o&&Go(o)){var s=Vo(o);if(s&&s.nodeType===Node.ELEMENT_NODE){var a=getComputedStyle(s);i=Array.from(a).map((function(e){return{name:e,value:a[e]}}))}}n(void 0,{computedStyle:i})},getInlineStylesForNode:function(e,t,n){var r,o=t.nodeId,i=e.getFiberNodeById(o);if(i&&Go(i)){var s=Vo(i);if(s&&s.nodeType===Node.ELEMENT_NODE){r={cssProperties:[],cssText:\"\",range:{endColumn:0,endLine:0,startColumn:0,startLine:0},shorthandEntries:[],styleSheetId:\"2000.\".concat(o)};var a=ri(i,o);a&&(r=a)}}r?n(void 0,{inlineStyle:r}):n(-32e3)},getMatchedStylesForNode:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r),i={matchedCSSRules:[]};if(o&&Go(o)){var s=Vo(o);if(s&&s.nodeType===Node.ELEMENT_NODE){or((function(e,t){On(s,e.selector)&&i.matchedCSSRules.push(Vn(e,s,t))}));var a=ri(o,r);a&&(i.inlineStyle=a)}}if(i.matchedCSSRules.length)try{i.matchedCSSRules=An(i.matchedCSSRules)}catch(e){}n(void 0,i)},getStyleSheetText:function(e,t,n){var r=\"\",o=tr(t.styleSheetId);o&&(r=o.ownerNode.textContent||\"\"),n(void 0,{text:r})},setStyleTexts:function(e,t,n){var r=[],o=\"2000.\";t.edits.forEach((function(t){var n=t.styleSheetId;if(0===n.indexOf(o)){var i=Number(n.replace(o,\"\")),s=e.getFiberNodeById(i);if(s){var a=Vo(s);if(a&&a.nodeType===Node.ELEMENT_NODE){a.setAttribute(\"style\",t.text);var u=ri(s,i);u&&r.push(u)}}}else{t.range.startLine+=1,t.range.startColumn+=1;var c=ar(n,t.range,t.text);c&&r.push(c)}})),n(void 0,{styles:r})}});var ii=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},hideHighlight:function(e,t,n){e.getOverlayManager().hidehighlight(),n(void 0,{})},highlightNode:function(e,t,n){var r=t.nodeId,o=t.highlightConfig;if(t.selector)n(void 0,{});else{var i=e.getFiberNodeById(r);if(i){var s=Vo(i);s&&s.nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(s,o),console.debug(\"highlightNode -\",i)}n(void 0,{})}},setInspectMode:function(e,t,n){var r=t.mode,o=t.highlightConfig;\"none\"===r?e.getOverlayManager().leaveInspectMode():e.getOverlayManager().enterInspectMode(o),n(void 0,{})}});var si=Object.freeze({__proto__:null,getComponentData:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r);o&&qo(o)?(e.activatedCustomComponentId=r,n(void 0,{data:Ro(o.memoizedState&&o.memoizedState.data||{}).data,props:Ro(Qo(o.memoizedProps||{})).data})):(e.activatedCustomComponentId=void 0,n(void 0,{}))}}),ai=Object.freeze({__proto__:null,Elements:si}),ui=Object.freeze({__proto__:null,CSS:oi,DOM:ni,Overlay:ii,Tiny:ai}),ci=1,li=4;function di(e,t){var n=t.current,r=n.alternate;if(r){var o=null!=r.memoizedState&&null!=r.memoizedState.element,i=null!=n.memoizedState&&null!=n.memoizedState.element;!o&&i?gi(e,n):o&&i&&vi(e,n,r)}else gi(e,n);!function(e){pi.forEach((function(t){var n=t.nodeId,r=t.parentNodeId;e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:n,parentNodeId:r})})),pi.clear(),fi.forEach((function(t){var n=Xo(t);if(n&&Jo(n)){var r=e.getFiberId(n),o=0;if(Ho(n,(function(){o+=1})),function(e){var t;return Boolean(e.__debug_children_serialized||(null===(t=e.alternate)||void 0===t?void 0:t.__debug_children_serialized))}(n)){var i=function(e){var t=Xo(e);if(!t)return null;var n=null,r=null;return Ho(t,(function(t){t===e&&(r=n),n=t})),r}(t);e.sendMessage(\"DOM.childNodeInserted\",{node:ti(e,t),parentNodeId:r,previousNodeId:i?e.getFiberId(i):0})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:o,nodeId:r})}})),fi.clear()}(e)}var hi,pi=new Set,fi=new Set;function gi(e,t){Zo(t)&&e.recordMount(t);for(var n=t.child;n;)gi(e,n),n=n.sibling}function vi(e,t,n){if(Zo(t)){var r=n?e.getFiberId(n):0,o=e.getFiberId(t);if(n&&r&&!o){if(e.recordMount(t),Jo(n)&&((t.effectTag&li)===li||(t.effectTag&ci)===ci)){var i=e.activatedCustomComponentId===r;t.memoizedProps&&n.memoizedProps&&t.memoizedProps!==n.memoizedProps&&\"object\"==typeof t.memoizedProps&&Object.keys(t.memoizedProps).forEach((function(o){if(\"children\"!==o&&t.memoizedProps[o]!==n.memoizedProps[o]){var s=Do(o,t.memoizedProps[o]);2===s.length&&e.sendMessage(\"DOM.attributeModified\",{name:s[0],nodeId:r,value:s[1]}),i&&(hi||(hi=ne(e.sendMessage.bind(e),500,setTimeout,clearTimeout)),hi(\"Tiny.Elements.componentDataChanged\",{nodeId:r,props:Ro(Qo(t.memoizedProps||{})).data}))}})),i&&t.memoizedState&&n.memoizedState&&t.memoizedState.data!==n.memoizedState.data&&(hi||(hi=ne(e.sendMessage.bind(e),500,setTimeout,clearTimeout)),hi(\"Tiny.Elements.componentDataChanged\",{nodeId:r,data:Ro(t.memoizedState.data||{}).data}))}}else r||o||(gi(e,t),fi.add(t))}for(var s=t.child;s;)vi(e,s,s.alternate),s=s.sibling}function mi(e){var t;window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&console.warn(\"bugme ReactDevtoolHook has been injected\");var n={},r={supportsFiber:!0,inject:function(e){if(t)throw new Error(\"FiberRender has been already injected\");return t=e,r.uniqueFiberRenderer=e,1},onCommitFiberRoot:function(t,n){var o=n.current,i=e.getFiberRoot()===n,s=null==o.memoizedState||null==o.memoizedState.element;i||s?i&&s&&e.setFiberRoot():e.setFiberRoot(n),r.wasCommited||(r.wasCommited=!0,r.emit(\"first-commit\"));try{di(e,n)}catch(e){console.warn(e)}},onCommitFiberUnmount:function(t,n){try{!function(e,t){if(Zo(t)){var n=Array.from(pi).some((function(e){if(function(e,t){for(var n=t.return;n;){if(n===e)return!0;n=n.return}return!1}(e.node,t))return!0}));n||pi.add({node:t,nodeId:e.getFiberId(t),parentNodeId:e.getFiberId(Xo(t))})}}(e,n)}catch(e){console.warn(e)}},wasCommited:!1,on:function(e,t){n[e]||(n[e]=[]),n[e].push(t)},off:function(e,t){var r=n[e];if(r){var o=r.indexOf(t);-1!==o&&r.splice(o,1),r.length||delete n[e]}},emit:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=n[e];o&&o.forEach((function(e){e.apply(void 0,t)}))}};window.__REACT_DEVTOOLS_GLOBAL_HOOK__=r}var yi=function(e){function n(){var t,n=this;return(n=e.call(this)||this).fiberRenderer=null===(t=window.__REACT_DEVTOOLS_GLOBAL_HOOK__)||void 0===t?void 0:t.uniqueFiberRenderer,n}return t(n,e),n.prototype.bindBridge=function(e){this.bridge=e},n.prototype.handleInspectMouseOver=function(e){var t=this,n=e.target;if(this.fiberRenderer&&n.nodeType===Node.ELEMENT_NODE){var r=this.fiberRenderer.findFiberByHostInstance(n);if(r){var o=Xo(r);if(o){if(!this.bridge.getFiberId(o)&&this.bridge.getFiberId(o.alternate)&&(o=o.alternate),this.highlightNode(n,this.inspectModeHighlightConfig),!Jo(o)){for(var i=[],s=Xo(o);s&&!Jo(s);)i.unshift(s),s=Xo(s);s&&i.unshift(s),i.forEach((function(e){var n=ti(t.bridge,e,1);n&&n.children&&t.bridge.sendMessage(\"DOM.setChildNodes\",{nodes:n.children,parentId:n.nodeId})}))}var a=this.bridge.getFiberId(this.bridge.getPrimaryFiber(o));a&&this.bridge.sendMessage(\"Overlay.nodeHighlightRequested\",{nodeId:a})}}}},n.prototype.handleInspectClick=function(e){e.stopPropagation(),this.hidehighlight(),this.leaveInspectMode();var t=e.target;if(this.fiberRenderer&&t.nodeType===Node.ELEMENT_NODE){var n=this.fiberRenderer.findFiberByHostInstance(t);if(n){var r=Xo(n);if(r){var o=this.bridge.getFiberId(this.bridge.getPrimaryFiber(r));o&&this.bridge.sendMessage(\"Overlay.inspectNodeRequested\",{backendNodeId:o})}}}},n}(Fr),bi=2;var _i,wi,Si,Ii,ki,Ci=function(){function e(e){var t=this;this.connection=e,this.fiberToIdMap=new Map,this.idToFiberMap=new Map,this.connection.onMessage((function(e,n,r){for(var o=e.split(\".\"),i=ui,s=0,a=o;s<a.length;s++){if(!(i=i[a[s]]))break}i?i(t,n,r):console.warn(\"unhandled protocol\",e)})),mi(this)}return e.prototype.getClientProxy=function(){throw new Error(\"Method not implemented.\")},e.prototype.getZRuntimeHelper=function(){throw new Error(\"Method not implemented.\")},e.prototype.getZNodeDebugInfo=function(e){throw new Error(\"Method not implemented.\")},e.prototype.getZNodeComponentDebugInfo=function(e){throw new Error(\"Method not implemented.\")},e.prototype.getDOMNodeDebugInfo=function(e,t,n){throw new Error(\"Method not implemented.\")},e.prototype.getDocumentNode=function(){throw new Error(\"Method not implemented.\")},e.prototype.flushUpdatedQueue=function(){throw new Error(\"Method not implemented.\")},e.prototype.resetZNodeActivatedState=function(){throw new Error(\"Method not implemented.\")},e.prototype.enableShadowRootElements=function(){throw new Error(\"Method not implemented.\")},e.prototype.getNextNodeId=function(){throw new Error(\"Method not implemented.\")},e.prototype.setFiberRoot=function(e){this.uniqueFiberRoot=e},e.prototype.getFiberRoot=function(){return this.uniqueFiberRoot},e.prototype.sendMessage=function(e,t){this.connection.sendSocketMessage(JSON.stringify({method:e,params:t}))},e.prototype.sendMessageWithPriority=function(e,t){this.connection.sendSocketMessage(JSON.stringify({method:e,params:t}),!0)},e.prototype.getPageComponent=function(){if(!this.uniqueFiberRoot)return null;for(var e=this.uniqueFiberRoot.current;e&&(!e.type||\"PageComponent\"!==e.type.displayName);)e=e.child;return e},e.prototype.recordMount=function(e){if(!this.getFiberId(e)){var t=e.alternate;if(t&&this.fiberToIdMap.has(t)){var n=this.fiberToIdMap.get(t);return this.fiberToIdMap.delete(t),this.fiberToIdMap.set(e,n),void this.idToFiberMap.set(n,e)}var r=bi++;this.fiberToIdMap.set(e,r),this.idToFiberMap.set(r,e)}},e.prototype.recordUnMount=function(e){},e.prototype.getFiberId=function(e){return this.fiberToIdMap.get(e)||0},e.prototype.getPrimaryFiber=function(e){if(this.fiberToIdMap.has(e))return e;var t=e.alternate;return t&&this.fiberToIdMap.has(t)?t:e},e.prototype.getFiberNodeById=function(e){return this.idToFiberMap.get(e)},e.prototype.resetFiberSerializedState=function(){this.idToFiberMap.forEach((function(e){e.__debug_serialized=!1,e.__debug_children_serialized&&(e.__debug_children_serialized=!1),e.alternate&&(e.alternate.__debug_serialized=!1,e.alternate.__debug_children_serialized&&(e.alternate.__debug_children_serialized=!1))}))},e.prototype.getOverlayManager=function(){return this.overlayManager||(this.overlayManager=new yi,this.overlayManager.bindBridge(this)),this.overlayManager},e}();function Ei(){Si=new ue,ki=new Ci(Si),function(){o(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return[4,V()];case 1:return t.sent(),te(window.AlipayJSBridge.startupParams||{})?[2]:(wi=String(window.APVIEWID),_i=J(),(e=Q(_i,wi))?(Si.setUrl(e),Y({onDebugPanelClick:function(){Si.close()}}),(Ii=new ae(Si,_i,wi)).setup(),Ii.resetAxmlVisitedState=function(){ki&&ki.resetFiberSerializedState()},[2]):[2])}}))}))}(),yi.initGlobalEventListener()}var Ti,xi,Ni,Oi,Ai,Mi,Pi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.setupWithClientProxy=function(t){this.clientProxy=t,e.prototype.setup.call(this)},n.prototype.startDebugSession=function(){var t=this;if(e.prototype.startDebugSession.call(this),this.clientProxy.platform.renderMountCommited)this.checkHostBeforeAgentConnect();else{var n=this.clientProxy.platform.afterRenderMountCommit;this.clientProxy.platform.afterRenderMountCommit=function(){n.call(t.clientProxy.platform),t.checkHostBeforeAgentConnect()}}},n}(k),Li=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeHandler=[],t.isActive=!0,t.onCloseHandlerSet=new Set,t}return t(n,e),Object.defineProperty(n.prototype,\"isActivated\",{get:function(){return this.isActive},enumerable:!1,configurable:!0}),n.prototype.sendMessage=function(e,t,n){this.sendSocketMessage(JSON.stringify({method:e,params:t}),n)},n.prototype.onMessage=function(e){var t=this;this.devtoolHandler=e,this.messageBeforeHandler.length&&(this.messageBeforeHandler.forEach((function(e){t.handleMessage(e)})),this.messageBeforeHandler=[])},n.prototype.sendSocketMessage=function(t,n){(this.isActive||n)&&e.prototype.sendSocketMessage.call(this,t)},n.prototype.activate=function(){this.isActive=!0},n.prototype.inActivate=function(){this.isActive=!1},n.prototype.addOnCloseHandler=function(e){this.onCloseHandlerSet.add(e)},n.prototype.onSocketMessage=function(e){\"HOST:LEAVE\"!==e||ee()?this.devtoolHandler?this.handleMessage(e):this.messageBeforeHandler.push(e):P()},n.prototype.onSocketClose=function(){e.prototype.onSocketClose.call(this),this.onCloseHandlerSet.forEach((function(e){try{e()}catch(e){console.warn(e)}}))},n.prototype.handleMessage=function(e){var t,n=this;try{t=JSON.parse(e)}catch(t){return void console.warn(\"invalid json message: \",e)}t.sessionId||(t.method?this.devtoolHandler(t.method,t.params,(function(e,r){e?n.sendSocketMessage(JSON.stringify({id:t.id,error:{code:e,message:\"\".concat(e)}}),!0):n.sendSocketMessage(JSON.stringify({id:t.id,result:r}),!0)})):console.warn(\"invalid message: \",e))},n}(ie);function Di(){Ni=new Li,window.__APPXNG_DEVTOOL_HOOK__={init:Ri,connection:Ni}}function Ri(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ai=e[0],Mi=Gr.apply(null,e),function(){var e;o(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,V()];case 1:return n.sent(),xi=String(window.APVIEWID),Ti=J(),(t=Q(Ti,xi))?(Ni.setUrl(t),Oi=new Pi(Ni,Ti,xi),Y({onDebugPanelClick:function(){Ni.close()}}),Oi.setupWithClientProxy(Ai),Oi.resetAxmlVisitedState=function(){Mi&&Mi.resetZNodeActivatedState()},Mi&&window.AlipayJSBridge&&K(null===(e=window.AlipayJSBridge.startupParams)||void 0===e?void 0:e.devtoolShadowRootEnabled)&&Mi.enableShadowRootElements(),[2]):[2]}}))}))}(),Mi}try{window.__BUGME_ON__||(window.__BUGME_ON__=!0,\"undefined\"!=typeof AlipayJSBridge&&AlipayJSBridge.startupParams?te(AlipayJSBridge.startupParams)?Di():Ei():(Di(),Ei()))}catch(e){console.error(e)}}();","bugmeRPreview":"","bugmeWRemote":"(function(){\"use strict\";var EWorkerAppEvent,EBugmePanelId,weakset,hasRequiredWeakset;function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}function requireWeakset(){if(hasRequiredWeakset)return weakset;hasRequiredWeakset=1;var e=Date.now()%1e9;function t(t){this.name=\"__st\"+(1e9*Math.random()>>>0)+e+++\"__\",t&&t.forEach&&t.forEach(this.add,this)}var n=t.prototype;return n.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},n.delete=function(e){return!!e[this.name]&&(e[this.name]=void 0,!0)},n.has=function(e){return!!e[this.name]},weakset=t}!function(e){e.PageResume=\"pageResume\",e.PagePause=\"pagePause\",e.DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",e.DebugMaskButtonClick=\"tinyRemoteDebugMaskButtonClick\",e.DebugConsole=\"onTinyDebugConsole\",e.DebugNetworkRequest=\"tinyAppRemoteDebug_network_request\",e.DebugNetworkResponse=\"tinyAppRemoteDebug_network_response\",e.DebugNetworkError=\"tinyAppRemoteDebug_network_error\",e.DebugStorageChanged=\"tinyAppRemoteDebug_storage\",e.MessageFromVConsole=\"onMessageFromVConsole\"}(EWorkerAppEvent||(EWorkerAppEvent={})),function(e){e.Data=\"data\",e.Storage=\"storage\",e.AppLog=\"applog\"}(EBugmePanelId||(EBugmePanelId={}));var workerGlobal=self;function noop(){}var DEBUG_TAG=\"[DEBUG]\";function error(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,[DEBUG_TAG].concat(e))}var debug=noop,originImportScripts=workerGlobal.importScripts,isAppXImportHooked=!1,appxLoadedCallbacks=[];function runAfterAppx(e){void 0!==workerGlobal.AFAppX?e():(appxLoadedCallbacks.push(e),isAppXImportHooked||(isAppXImportHooked=!0,workerGlobal.importScripts=function(e){originImportScripts(e),/af-appx\\.worker\\.min\\.js$/.test(e)&&(appxLoadedCallbacks.forEach((function(e){return e()})),appxLoadedCallbacks=[])}))}function runAfterAppXBridgeReady(e){if(\"undefined\"==typeof AFAppX&&workerGlobal.AFAppX&&(AFAppX=workerGlobal.AFAppX),\"undefined\"==typeof $AppxFramework)e();else if(AFAppX.Plugin){var t=AFAppX.Plugin;AFAppX.Plugin=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n[0];if(\"object\"==typeof o&&o.run){var i=o.run;o.run=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),i.apply(o,t)}}return t.apply(AFAppX,n)}}else if($AppxFramework.bootstrapInAppContextByProtocol){var n=$AppxFramework.bootstrapInAppContextByProtocol;$AppxFramework.bootstrapInAppContextByProtocol=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=t[0];if(\"object\"==typeof o){var i=o.callback;if(i&&(o.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),i.apply(this,t)}),o.pageInfo){var a=o.pageInfo.init;a&&(o.pageInfo.init=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),a.apply(this,t)})}}return n.apply($AppxFramework,t)}}}function getStartupParams$1(){return workerGlobal.__appxStartupParams&&\"appId\"in workerGlobal.__appxStartupParams?workerGlobal.__appxStartupParams:workerGlobal.AFAppX&&workerGlobal.AFAppX.bridge&&workerGlobal.AFAppX.bridge.callSync&&workerGlobal.AFAppX.bridge.callSync(\"getStartupParams\")||{}}function guardSingleMsgSize(e){var t=\"string\"==typeof e?e:JSON.stringify(e);return t.length>2e7?void debug(\"abort send websocket message due to size:\",t.length,t.slice(0,1e3)):t}function createWeakSet$1(){return\"undefined\"==typeof WeakSet?new(requireWeakset()):new WeakSet}var getCircularReplacer$1=function(){var e=createWeakSet$1();return function(t,n){if(\"object\"==typeof n&&null!==n)try{if(e.has(n))return;e.add(n)}catch(e){console.error(e)}return n}};function circularJSONStringify$1(e){return JSON.stringify(e,getCircularReplacer$1())}var extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},extendStatics(e,t)};function __extends(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign.apply(this,arguments)},FunctionApply=Function.prototype.apply.call.bind(Function.prototype.apply);function functionApply(e,t,n){return FunctionApply(e,t,n)}function throttle$1(e,t,n,r,o){var i,a,s=null,c=0;o||(o={});var p=function(){c=!1===o.leading?0:Date.now(),s=null,a=functionApply(e,null,i),i=null};return function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];var g=Date.now();c||!1!==o.leading||(c=g);var f=t-(g-c);return i=u,f<=0||f>t?(r(s),s=null,c=g,a=functionApply(e,null,i),i=null):s||!1===o.trailing||(s=n(p,f)),a}}var weakElementKey=\"__weak_set_key__yek_tes_kaew__\",weakSetKey=1,WeakMapKlass,WeakSetKlass;function getWeakSetPolyfillConstructor(){return function(){function e(){this.elementKey=weakElementKey+weakSetKey++}return e.prototype.has=function(e){return 1===e[this.elementKey]},e.prototype.add=function(e){return e[this.elementKey]=1,this},e.prototype.delete=function(e){e[this.elementKey]=null},e}()}function getWeakMapPolyfillConstructor(){var e=Object.prototype.hasOwnProperty,t=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,value:n,writable:!0}):e[t]=n};function n(e){return Object(e)===e}function r(){if(void 0===this)throw new TypeError(\"Constructor WeakMap requires 'new'\");if(t(this,\"_id\",\"_WeakMap\"+\"_\"+i()+\".\"+i()),arguments.length>0)throw new TypeError(\"WeakMap iterable is not supported\")}function o(t,r){if(!n(t)||!e.call(t,\"_id\"))throw new TypeError(r+\" method called on incompatible receiver \"+typeof t)}function i(){return Math.random().toString().substring(2)}return t(r.prototype,\"delete\",(function(e){if(o(this,\"delete\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),t(r.prototype,\"get\",(function(e){if(o(this,\"get\"),n(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),t(r.prototype,\"has\",(function(e){if(o(this,\"has\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),t(r.prototype,\"set\",(function(e,r){if(o(this,\"set\"),!n(e))throw new TypeError(\"Invalid value used as weak map key\");var i=e[this._id];return i&&i[0]===e?(i[1]=r,this):(t(e,this._id,[e,r]),this)})),t(r,\"_polyfill\",!0),r}function getWeakMapConstructorMayBePolyfill$1(){var e=\"undefined\"!=typeof WeakMap;WeakMapKlass=e?WeakMap:getWeakMapPolyfillConstructor()}function createWeakMap(){return WeakMapKlass||getWeakMapConstructorMayBePolyfill$1(),new WeakMapKlass}function getWeakMapConstructorMayBePolyfill(){var e=\"undefined\"!=typeof WeakSet;WeakSetKlass=e?WeakSet:getWeakSetPolyfillConstructor()}function createWeakSet(){return WeakSetKlass||getWeakMapConstructorMayBePolyfill(),new WeakSetKlass}function commonjsRequire(e){throw new Error('Could not dynamically require \"'+e+'\". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}createWeakMap();var len=0,vertxNext,browserWindow=\"undefined\"!=typeof window?window:void 0,browserGlobal=browserWindow||{},BrowserMutationObserver=browserGlobal.MutationObserver||browserGlobal.WebKitMutationObserver,isNode=\"undefined\"==typeof self&&\"undefined\"!=typeof process&&\"[object process]\"==={}.toString.call(process),isWorker=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function useVertxTimer(){return function(){vertxNext(flush)}}function useMutationObserver(){var e=0,t=new BrowserMutationObserver(flush),n=document.createTextNode(\"\");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function useMessageChannel(){var e=new MessageChannel;return e.port1.onmessage=flush,function(){e.port2.postMessage(0)}}function useSetTimeout(){return function(){setTimeout(flush,1)}}var queue=new Array(1e3);function flush(){for(var e=0;e<len;e+=2){(0,queue[e])(queue[e+1]),queue[e]=void 0,queue[e+1]=void 0}len=0}function attemptVertx(){try{var e=commonjsRequire(\"vertx\");return vertxNext=e.runOnLoop||e.runOnContext,useVertxTimer()}catch(e){return useSetTimeout()}}isNode||(BrowserMutationObserver?useMutationObserver():isWorker?useMessageChannel():void 0===browserWindow&&\"function\"==typeof commonjsRequire&&attemptVertx()),Math.random().toString(36).substring(2);var InterceptContext=function(){function e(e,t){var n=this;this.interceptors=e,this.callback=t,this.nextRequestId=1e5,this.notifyDataChange=throttle$1((function(){n.callback({ext:{origin:\"data\"},method:\"Tiny.Data.dataChanged\"})}),300,setTimeout,clearTimeout)}return e.prototype.getNextRequestId=function(){return++this.nextRequestId},e}(),getCircularReplacer=function(){var e=createWeakSet();return function(t,n){if(\"object\"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return n}};function circularJSONStringify(e){return JSON.stringify(e,getCircularReplacer())}var precisionTimestampBasis=0;function resetPrecisionTimestampBasis(){precisionTimestampBasis=1e3*Date.now()-getPrecisionTimestamp()}var getPrecisionTimestamp=\"object\"==typeof performance&&performance&&\"function\"==typeof performance.now?function(){return 1e3*performance.now()+precisionTimestampBasis}:function(){return 1e3*Date.now()};function interceptLifecycle(e){e.interceptors.appLifecycleManagerInterceptor.before(\"performLifeHook\",(function(t,n){var r={aTime:getPrecisionTimestamp()/1e3,args:n,context:circularJSONStringify(normalizeAppLifecycleManagerThisContext(t))};onAppLifecycle(e,r)})),e.interceptors.pageLifecycleManagerInterceptor.before(\"performLifeHook\",(function(t,n){var r={aTime:getPrecisionTimestamp()/1e3,args:n,context:circularJSONStringify(normalizePageLifecycleManagerThisContext(t))};onPageLifecycle(e,r)}))}function onAppLifecycle(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.\"+t.args[0],params:t};e.callback(n)}catch(e){}}function normalizeAppLifecycleManagerThisContext(e){var t=e.app;return{app:{appInstanceId:t.appInstanceId,initTime:t.initTime,launchOptions:t.getLaunchOptions(),launchTime:t.launchTime},state:e.state}}function onPageLifecycle(e,t){try{var n=getLifecycleName$1(t.args[0]);if(!n)return;var r={ext:{origin:\"applog\"},method:\"MiniAppLog.\"+n,params:t};e.callback(r),\"onPageShow\"===n&&e.notifyDataChange()}catch(e){}}function getLifecycleName$1(e){var t;switch(e){case 0:t=\"onPageLoad\";break;case 2:t=\"onPageReady\";break;case 1:t=\"onPageShow\";break;case 3:t=\"onPageHide\";break;case 4:t=\"onPageUnload\"}return t}function normalizePageLifecycleManagerThisContext(e){var t=e.page;return{page:{initTime:t.initTime,loadTime:t.loadTime,pageId:t.pageId,pagePath:t.pagePath,plugin:t.plugin},state:e.state}}function interceptJSAPI(e){e.interceptors.bridgeSyncCallContextMethodInterceptor.all(\"invoke\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return onApiSyncCall(e,{context:t,args:n,reqId:r,aTime:o}),[[r,o],n]}),(function(t,n,r,o){var i=n[0],a=i[0],s=i[1],c=n[1],p=getPrecisionTimestamp()/1e3;onApiSyncCallback(e,{context:t,args:c,reqId:a,result:r,bTime:p,aTime:s})})),e.interceptors.bridgeAsyncCallContextMethodInterceptor.before(\"invoke\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return t.__reqId=r,onApiCall(e,{context:t,args:n,reqId:r,aTime:o}),\"rpc\"===t.apiName&&(t.option.getResponse||(t.$$rpcGetResponseToTrue=!0,t.option=__assign(__assign({},t.option),{getResponse:!0}))),n})),e.interceptors.bridgeAsyncCallContextMethodInterceptor.before(\"dispatchResultCallback\",(function(t,n){var r=t.__reqId,o=getPrecisionTimestamp()/1e3;return onApiCallback(e,{context:t,args:n,reqId:r,bTime:o}),\"rpc\"===t.apiName&&t.$$rpcGetResponseToTrue&&void 0!==n[0].resData?[n[0].resData]:n}))}function onApiSyncCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiSyncCallback\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function onApiSyncCall(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiSyncCall\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function onApiCall(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiCall\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function onApiCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiCallback\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function minimizeApiHookInfo$1(e){if(e.context){var t=e.context,n=t.apiName,r=t.extraInfo,o=t.isMiniExtension,i=t.option,a=t.startTime,s=t.taskId,c=t.__reqId;return __assign(__assign({},e),{context:{__reqId:c,apiName:n,extraInfo:r,isMiniExtension:o,option:i,startTime:a,taskId:s}})}return e}var originalError=console.error;function interceptError(e){e.interceptors.appBaseInstanceInterceptor.after(\"reportError\",(function(e,t){t[0],onError({code:t[1],formatted:t[2]})}))}function onError(e){var t=new Error(e.formatted.message);t.stack=e.formatted.stack,setTimeout(originalError.bind(console,t),0)}function interceptSetData(e){e.interceptors.pageFlexibleLogicInstanceMethodInterceptor.all(\"setData\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3,i={aTime:o,args:n,context:circularJSONStringify(normalizePageLogicInstanceThisContext(t)),reqId:r};return onSetData(e,i),[[r,o],n]}),(function(t,n,r,o){var i=n[0],a=i[0],s=i[1],c=n[1],p=getPrecisionTimestamp()/1e3;onSetDataCallback(e,{aTime:s,args:c,bTime:p,context:circularJSONStringify(normalizePageLogicInstanceThisContext(t)),reqId:a})})),e.interceptors.componentFlexibleLogicInstanceMethodInterceptor.all(\"setData\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return onSetData(e,{aTime:o,args:n,context:circularJSONStringify(normalizeComponentLogicInstanceThisContext(t)),reqId:r}),[[r,o],n]}),(function(t,n,r,o){var i=n[0],a=i[0],s=i[1],c=n[1],p=getPrecisionTimestamp()/1e3;onSetDataCallback(e,{aTime:s,args:c,bTime:p,context:circularJSONStringify(normalizeComponentLogicInstanceThisContext(t)),reqId:a})}))}function onSetData(e,t){try{e.notifyDataChange();var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onSetData\",params:minimizeSetDataInfo$1(t)};e.callback(n)}catch(e){}}function onSetDataCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onSetDataCallback\",params:t};e.callback(n)}catch(e){}}function minimizeSetDataInfo$1(e){return e.context?e:{componentIs:e.component?e.component.is:void 0,isPage:e.isPage,option:e.options,pagePath:e.isPage?e.page.route:e.component.$page.route}}function normalizePageLogicInstanceThisContext(e){var t=e.page;return{page:{appInstanceId:t.appInstanceId,initTime:t.initTime,loadTime:t.loadTime},pageId:e.pageId,pagePath:e.pagePath}}function normalizeComponentLogicInstanceThisContext(e){var t=e.page;return{componentPath:e.componentPath,page:{appInstanceId:t.appInstanceId,initTime:t.initTime,loadTime:t.loadTime},pageId:t.pageId,pagePath:t.pagePath}}function setup(e,t,n){resetPrecisionTimestampBasis();var r=new InterceptContext(t,n);interceptSetData(r),interceptLifecycle(r),interceptJSAPI(r),interceptError(r)}var AgentContext=function(){this.channelConfigKey=\"0\",this.userAgent=\"undefined\"!=typeof navigator?navigator.swuserAgent||navigator.userAgent:\"\",this.isIOS=/iPhone|iPad|iOS/i.test(this.userAgent),this.isLyra=/LyraVM/i.test(this.userAgent),this.startupParams=getStartupParams$1(),this.channelId=this.startupParams.channelId||\"\",this.channel=this.startupParams.channel||\"\",this.startupParams.remoteCh&&(this.channelConfigKey=String(this.startupParams.remoteCh))},NetworkCollection=function(){function e(){this.records=new Map}return e.prototype.setRequest=function(e,t){this.records.set(e,__assign(__assign({},this.records.get(e)||{}),t))},e.prototype.getRequest=function(e){return this.records.get(e)},e.prototype.removeRequest=function(e){this.records.has(e)&&this.records.delete(e)},e}();function createProtocol4RequestWillBeSent(e){var t=(e.method||\"GET\").toUpperCase(),n=mapValueToString(e.headers),r=getTimestamp();return{method:\"Network.requestWillBeSent\",params:{documentURL:\"\",loaderId:\"\",requestId:e.requestId,request:{method:t,url:e.url,headers:n,postData:e.postBody,hasPostData:!!e.postBody||void 0,mixedContentType:\"none\",initialPriority:\"High\",isLinkPreload:!1,referrerPolicy:\"origin\"},wallTime:r,initiator:{type:\"script\"},timestamp:r,type:\"XHR\"}}}function createProtocol4ResponseReceived(e,t){var n=e.profile,r=e.headers,o=n&&n.totalTime,i=getTimestamp(),a=i-(o?n.totalTime-n.Waiting-n.domainLookup-n.connect-n.SSLconnection:0)/1e3;return{method:\"Network.responseReceived\",params:{requestId:e.requestId,loaderId:\"\",type:\"XHR\",timestamp:a,response:{url:t.url||\"\",status:Number(e.status),headers:mapValueToString(r),requestHeaders:t.requestHeaders,connectionReused:!1,connectionId:1e3,encodedDataLength:0,securityState:\"unknown\",statusText:\"\",protocol:\"\",mimeType:r[\"Content-Type\"]||r[\"content-type\"],timing:o?createResourceTiming(n,i-n.totalTime/1e3):void 0}}}}function createProtocol4LoadingFinished(e){return{method:\"Network.loadingFinished\",params:{requestId:e.requestId,timestamp:getTimestamp(),encodedDataLength:0}}}function createProtocol4LoadingFailed(e){return{method:\"Network.loadingFailed\",params:{canceled:!1,errorText:e.errorMsg||\"\",requestId:e.requestId,timestamp:getTimestamp(),type:\"XHR\"}}}function mapValueToString(e){if(!e||\"object\"!=typeof e)return{};var t={};return Object.keys(e).forEach((function(n){t[n]=\"\"+e[n]})),t}function getTimestamp(){return Date.now()/1e3}function createResourceTiming(e,t){var n=e.domainLookup,r=e.connect,o=e.SSLconnection,i=n+r+o;return{requestTime:t,dnsStart:n?1e-4:-1,dnsEnd:n?n:-1,connectStart:n||-1,connectEnd:i||-1,sslStart:i-o||-1,sslEnd:i||-1,sendStart:i?-1:1e-4,sendEnd:i?-1:1e-4,receiveHeadersEnd:i+e.Waiting,proxyStart:-1,proxyEnd:-1,workerStart:-1,workerReady:-1,workerFetchStart:-1,workerRespondWithSettled:-1,pushStart:0,pushEnd:0}}var MAX_QUEUE_SIZE=1e8,MessageQueue=function(){function e(e){void 0===e&&(e=[]),this._messageQueue=e,this._queueSize=0,this.isApplogEnabled=!1}return e.prototype.push=function(e){this._queueSize;var t=guardSingleMsgSize(e);null!=t&&(this._messageQueue.push(t),this._queueSize+=t.length)},e.prototype.sendQueuedMessages=function(){if(0!==this._messageQueue.length){var e=getInjector().getWorkerSocket();e&&(this._messageQueue.forEach((function(t){return e.send(t)})),this._messageQueue=[],this._queueSize=0)}},e.prototype.setApplogEnabled=function(e){this.isApplogEnabled=e},e}(),channelDomainConfig={0:{openchannel:\"openchannel.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},1:{openchannel:\"miniprogram.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},2:{openchannel:\"openchannel-pre.alipay.com\",hpmweb:\"hpmweb-pre.alipay.com\"}};function throttle(e,t,n,r,o){var i,a,s=null,c=0;o||(o={});var p=function(){c=!1===o.leading?0:Date.now(),s=null,a=e.apply(null,i),i=null};return function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];var g=Date.now();c||!1!==o.leading||(c=g);var f=t-(g-c);return i=u,f<=0||f>t?(r(s),s=null,c=g,a=e.apply(null,i),i=null):s||!1===o.trailing||(s=n(p,f)),a}}function debounce(e,t,n,r){var o;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];r(o),o=n((function(){e.apply(null,i)}),t)}}var WebSocketBaseImpl=function(){function e(e){this.url=\"\",this.opened=!1,e&&(this.url=e),this.onSocketError=this.onSocketError.bind(this),this.onSocketClose=this.onSocketClose.bind(this),this.onSocketMessage=this.onSocketMessage.bind(this),this.onSocketOpen=this.onSocketOpen.bind(this)}return Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){return this.opened},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(e){this.url=e},e}(),internalWebSocket;\"undefined\"!=typeof WebSocket&&WebSocket.OPEN&&(internalWebSocket=WebSocket);var WebSocketBrowserImpl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t}return __extends(t,e),t.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"WebSocket url required\");this.socket=new internalWebSocket(this.url),this.socket.onopen=this.onSocketOpen,this.socket.onmessage=function(t){\"string\"==typeof t.data?e.onSocketMessage(t.data):console.warn(\"[DEBUG] invalid message\",t.data)},this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError},t.prototype.close=function(){this.opened&&this.socket.close()},t.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>2e7||(this.opened?this.socket.send(t):this.messageBeforeSocketOpen.push(t))},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){var e=this;this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[])},t.prototype.onSocketClose=function(){this.opened=!1,console.log(\"[DEBUG] connection closed\")},t.prototype.onSocketError=function(e){console.error(\"[DEBUG] connection onerror\",e)},t}(WebSocketBaseImpl),WebSocketNativeImpl=function(e){function t(t){var n=e.call(this,t)||this;return n.messageBeforeSocketOpen=[],n.useFromRemoteDebugFlag=!0,n}return __extends(t,e),t.prototype.open=function(){var e=this;this.socketTask=AFAppX.bridge.connectSocket({__taskIdPrefix:\"remote_debug_tbr\",fromRemoteDebug:this.useFromRemoteDebugFlag,url:this.url,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(){e.opened=!1,e.onSocketClose()})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)}))},t.prototype.sendSocketMessage=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>2e7||(this.opened?this.socketTask.send({fromRemoteDebug:this.useFromRemoteDebugFlag,data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t))},t.prototype.close=function(){this.opened&&this.socketTask.close({fromRemoteDebug:this.useFromRemoteDebugFlag})},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){},t.prototype.onSocketError=function(e){},t.prototype.onSocketClose=function(){},t.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[]),this.onSocketOpen())},t}(WebSocketBaseImpl),messages$1={\"调试结束\":\"调试结束\",\"callExitApp_退出\":\"退出\",\"callExitApp_取消\":\"取消\"},messages={\"调试结束\":\"Debugging Ended\",\"callExitApp_退出\":\"Exit\",\"callExitApp_取消\":\"Cancel\"};function formatLocaleString(e){switch(e){case\"zhCN\":case\"zh-SG\":case\"zh-HK\":case\"zh-TW\":case\"zh-Hans\":case\"zh-CN\":return\"zhCN\";default:return\"enUS\"}}var I18NFormatter=function(){function e(e){var t={zhCN:messages$1,enUS:messages};this.i18nMessages=t[formatLocaleString(e)]}return e.prototype.format=function(e,t){var n=this.i18nMessages[e];return\"string\"==typeof n?n:\"function\"==typeof n?n(t):e},e}(),globalInjector,Injector=function(){function e(){}return e.prototype.getAgentContext=function(){return this.agentContext||(this.agentContext=new AgentContext),this.agentContext},e.prototype.setWorkerSocket=function(e){this.workerSocket=e},e.prototype.getWorkerSocket=function(){return this.workerSocket},e.prototype.getNetworkRecorder=function(){return this.networkRecorder||(this.networkRecorder=new NetworkCollection),this.networkRecorder},e.prototype.getMessageQueue=function(){return null==this.messageQueue&&(this.messageQueue=new MessageQueue),this.messageQueue},e.prototype.setRuntime=function(e){this.runtime=e},e.prototype.getRuntime=function(){return this.runtime},e.prototype.getI18NFormatter=function(){return this.i18NFormatter||(this.i18NFormatter=new I18NFormatter(this.getLanguage())),this.i18NFormatter},e.prototype.getLanguage=function(){var e,t,n=null===(t=null===(e=this.runtime)||void 0===e?void 0:e.getEnv())||void 0===t?void 0:t.language;return n||this.getLanguageFromUA()},e.prototype.getLanguageFromUA=function(){if(!this.userAgent)return\"\";var e=this.userAgent.match(/Language\\/([\\w-]+)/);return e?e[1]:\"\"},Object.defineProperty(e.prototype,\"userAgent\",{get:function(){return\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\"},enumerable:!1,configurable:!0}),e}();function getInjector(){return globalInjector||(globalInjector=new Injector),globalInjector}function sendOrQueueApplogMsg$1(e){try{var t=getInjector().getWorkerSocket(),n=getInjector().getMessageQueue();t&&n.isApplogEnabled?t.send(circularJSONStringify$1(e)):n.push(circularJSONStringify$1(e))}catch(e){}}function getHookFn(e){if(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&\"function\"==typeof workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e])return workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]}var throttledEmitDataChangedEvent=throttle((function(){var e=getInjector().getWorkerSocket();e&&e.send({method:\"Tiny.Data.dataChanged\",ext:{origin:EBugmePanelId.Data}})}),300,setTimeout,clearTimeout,{leading:!1}),EUnserializableValue;function getFn(e){if(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]&&\"function\"==typeof workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e])return workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]}function onErrorHook(e){var t=new Error(e.formatted.message);t.stack=e.formatted.stack,setTimeout(console.error.bind(console,t))}function registerLegacyAppxHook(){null==workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__={});var e={onSetData:getFn(\"onSetData\"),onSetDataCallback:getFn(\"onSetDataCallback\"),onApiSyncCall:getFn(\"onApiSyncCall\"),onApiSyncCallback:getFn(\"onApiSyncCallback\"),onApiCall:getFn(\"onApiCall\"),onApiCallback:getFn(\"onApiCallback\"),onError:getFn(\"onError\")};workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onSetData=function(t){try{if(e.onSetData)try{e.onSetData.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}throttledEmitDataChangedEvent(),sendOrQueueApplogMsg({method:\"MiniAppLog.onSetData\",params:minimizeSetDataInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onSetDataCallback=function(t){try{if(e.onSetDataCallback)try{e.onSetDataCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onSetDataCallback\",params:t,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiSyncCall=function(t){try{if(e.onApiSyncCall)try{e.onApiSyncCall.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiSyncCall\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiSyncCallback=function(t){try{if(e.onApiSyncCallback)try{e.onApiSyncCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiSyncCallback\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiCall=function(t){try{if(e.onApiCall)try{e.onApiCall.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiCall\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiCallback=function(t){try{if(e.onApiCallback)try{e.onApiCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiCallback\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onError=function(t){try{if(e.onError)try{e.onError.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){}onErrorHook(t)}catch(e){}},registerV1PageLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV2PageLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV1AppLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV2AppLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}function getLifecycleName(e){var t;switch(e){case 0:t=\"onPageLoad\";break;case 2:t=\"onPageReady\";break;case 1:t=\"onPageShow\";break;case 3:t=\"onPageHide\";break;case 4:t=\"onPageUnload\"}return t}function registerV1PageLifecycleHooks(e,t){for(var n=[\"onPageLoad\",\"onPageShow\",\"onPageHide\",\"onPageReady\",\"onPageUnload\"],r=0,o=n;r<o.length;r++){t[c=o[r]]=getFn(c)}for(var i=function(n){e[n]=function(e){try{if(t[n])try{t[n].call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}var r=e.context?e:__assign({route:e.page.route},e);sendOrQueueApplogMsg({method:\"MiniAppLog.\".concat(n),params:minimizePageLifecycleInfo1(r),ext:{origin:EBugmePanelId.AppLog}}),\"onPageShow\"===n&&throttledEmitDataChangedEvent()}catch(e){}}},a=0,s=n;a<s.length;a++){var c;i(c=s[a])}}function registerV2PageLifecycleHooks(e,t){t.onPageLifecycle=getFn(\"onPageLifecycle\"),e.onPageLifecycle=function(e){try{if(t.onPageLifecycle)try{t.onPageLifecycle.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}var n=getLifecycleName(e.args[0]);if(!n)return;sendOrQueueApplogMsg({method:\"MiniAppLog.\".concat(n),params:e,ext:{origin:EBugmePanelId.AppLog}}),\"onPageShow\"===n&&throttledEmitDataChangedEvent()}catch(e){}}}function registerV1AppLifecycleHooks(e,t){for(var n=[\"onAppLaunch\",\"onAppShow\",\"onAppHide\",\"onAppError\",\"onAppUnhandledRejection\"],r=0,o=n;r<o.length;r++){t[c=o[r]]=getFn(c)}for(var i=function(n){e[n]=function(e){try{if(t[n])try{t[n].call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.\".concat(n),params:e,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}}},a=0,s=n;a<s.length;a++){var c;i(c=s[a])}}function registerV2AppLifecycleHooks(e,t){t.onAppLifecycle=getFn(\"onAppLifecycle\"),e.onAppLifecycle=function(e){try{if(t.onAppLifecycle)try{t.onAppLifecycle.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.\".concat(e.args[0]),params:e,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}}}function sendOrQueueApplogMsg(e){try{var t=getInjector().getWorkerSocket(),n=getInjector().getMessageQueue();t&&n.isApplogEnabled?t.send(circularJSONStringify$1(e)):n.push(circularJSONStringify$1(e))}catch(e){}}function minimizeApiHookInfo(e){if(e.context){var t=e.context;return __assign(__assign({},e),{context:pick(t,[\"apiName\",\"extraInfo\",\"isMiniExtension\",\"option\",\"startTime\",\"taskId\",\"__reqId\"])})}return e}function minimizeSetDataInfo(e){return e.context?e:{pagePath:e.isPage?e.page.route:e.component.$page.route,isPage:e.isPage,option:e.options,componentIs:e.component?e.component.is:void 0}}function minimizePageLifecycleInfo1(e){return __assign(__assign({},e),{page:pick(e.page,[\"$id\",\"$page\",\"$viewId\",\"data\"])})}function pick(e,t){var n={};return t.forEach((function(t){n[t]=e[t]})),n}function registerAppxHook(){null==workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__={}),registerLegacyAppxHook();var e=getHookFn(\"setup\");workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.setup=function(t,n){if(e&&\"function\"==typeof e)try{e(t,n)}catch(e){}getInjector().setRuntime(t),setup(t,n,(function(e){if(\"string\"==typeof e.method&&e.method.includes(\"MiniAppLog\"))sendOrQueueApplogMsg$1(e);else{var t=getInjector().getWorkerSocket();t&&t.send(e)}}))}}function getObjectOwnPropertyDescriptors(e){return Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors(e):Object.getOwnPropertyNames(e).reduce((function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t}),Object.create(null))}function isError(e){return\"[object Error]\"===Object.prototype.toString.call(e)||e instanceof Error}function isDate(e){return\"[object Date]\"===Object.prototype.toString.call(e)||e instanceof Date}function isRegExp(e){return\"[object RegExp]\"===Object.prototype.toString.call(e)||e instanceof RegExp}function isPromise(e){return\"[object Promise]\"===Object.prototype.toString.call(e)||e instanceof Promise}function isArrayBuffer(e){return\"[object ArrayBuffer]\"===Object.prototype.toString.call(e)}function isArrayBufferInstance(e){return e instanceof ArrayBuffer}function isNegativeZero(e){return 0===e&&1/e==-1/0}!function(e){e[1/0]=\"Infinity\",e[-1/0]=\"-Infinity\",e.NaN=\"NaN\",e[\"-0\"]=\"-0\"}(EUnserializableValue||(EUnserializableValue={}));var ObjectMapper=function(){function e(e){this.objectStore=e}return e.prototype.mapFrom=function(e,t){var n=this;return Array.from(e).map((function(e){return n.mapFromOne(e,t)}))},e.prototype.mapFromOne=function(e,t){switch(typeof e){case\"string\":return this.mapString(e);case\"number\":return this.mapNumber(e);case\"object\":return Array.isArray(e)?this.mapArray(e,\"table\"===t):null===e?this.mapNull():isArrayBufferInstance(e)?this.mapArrayBuffer(e,\"table\"===t):this.mapObject(e,\"table\"===t);case\"function\":return this.mapFunction(e);case\"undefined\":return this.mapUndef();case\"boolean\":return this.mapBoolean(e);default:return{type:typeof e,value:e}}},e.prototype.mapArrayBuffer=function(e,t){var n=this,r={byteLength:e.byteLength},o=Object.keys(r),i=e.byteLength,a=this.objectStore.save(e),s=e.constructor?e.constructor.name:\"Object\",c=o.length>5&&!t,p=\"arraybuffer\",u=\"\".concat(s,\"(\").concat(i,\")\"),l={type:\"object\",className:s,description:u,objectId:a,preview:{type:\"object\",description:u,overflow:c,properties:(c?o.slice(0,5):o).map((function(e){return n.getPropertyPreview4AnyValue(e,r[e],t)})).filter(Boolean)}};return l.subtype=p,l.preview&&(l.preview.subtype=p),u&&(l.description=u,l.preview&&(l.preview.description=u)),l},e.prototype.mapString=function(e){return{type:\"string\",value:e}},e.prototype.mapNumber=function(e){var t,n;isNaN(e)?n=EUnserializableValue.NaN:e===1/0?n=EUnserializableValue.Infinity:e===-1/0?n=EUnserializableValue[-1/0]:isNegativeZero(e)?n=EUnserializableValue[\"-0\"]:t=e;var r={type:\"number\",value:t,description:String(e)};return n&&(r.unserializableValue=n),r},e.prototype.mapBoolean=function(e){return{type:\"boolean\",value:e}},e.prototype.mapFunction=function(e){var t=this.objectStore.save(e);return{type:\"function\",className:\"Function\",description:e.toString(),objectId:t}},e.prototype.mapUndef=function(){return{type:\"undefined\"}},e.prototype.mapNull=function(){return{type:\"object\",subtype:\"null\",value:null}},e.prototype.mapObject=function(e,t){var n,r,o=this,i=getObjectOwnPropertyDescriptors(e),a=Object.keys(i),s=this.objectStore.save(e),c=e.constructor?e.constructor.name:\"Object\",p=a.length>5&&!t,u={type:\"object\",className:c,description:c,objectId:s,preview:{type:\"object\",description:c,overflow:p,properties:(p?a.slice(0,5):a).map((function(e){return o.getPropertyPreview4ObjectProperty(e,i[e],t)})).filter(Boolean)}};return isError(e)?(n=\"error\",-1===(r=e.stack||\"\").indexOf(e.name)&&(r=e.toString()+\"\\n\"+r)):isDate(e)?(n=\"date\",r=e.toString()):isRegExp(e)?(n=\"regexp\",r=e.toString()):isPromise(e)&&(n=\"promise\",r=\"Promise\"),n&&(u.subtype=n,u.preview&&(u.preview.subtype=n)),r&&(u.description=r,u.preview&&(u.preview.description=r)),u},e.prototype.mapArray=function(e,t){var n=this,r=e.length>100&&!t,o=\"Array(\".concat(e.length,\")\");return{type:\"object\",subtype:\"array\",className:\"Array\",description:o,objectId:this.objectStore.save(e),preview:{type:\"object\",subtype:\"array\",description:o,overflow:r,properties:(r?e.slice(0,100):e).map((function(e,r){return n.getPropertyPreview4ArrayProperty(r,e,t)}))}}},e.prototype.getPropertyPreview4ArrayProperty=function(e,t,n){return this.getPropertyPreview4AnyValue(String(e),t,n)},e.prototype.getPropertyPreview4ObjectProperty=function(e,t,n){return t.get?{name:e,type:\"accessor\"}:t.set?void 0:this.getPropertyPreview4AnyValue(e,t.value,n)},e.prototype.getPropertyPreview4AnyValue=function(e,t,n){switch(void 0===n&&(n=!1),typeof t){case\"object\":if(Array.isArray(t)){var r={name:e,type:\"object\",subtype:\"array\",value:\"Array(\".concat(t.length,\")\")};return n&&(r.valuePreview=this.getValuePreview4TableArray(t)),r}if(null===t)return{name:e,type:\"object\",subtype:\"null\",value:\"null\"};r={name:e,type:\"object\",value:t.constructor?t.constructor.name:\"Object\"};return n&&(r.valuePreview=this.getValuePreview4TableObject(t)),r;case\"function\":return{type:\"function\",value:\"\",name:e};default:return{name:e,type:typeof t,value:String(t)}}},e.prototype.getValuePreview4TableArray=function(e){var t=this;return{type:\"object\",subtype:\"array\",description:\"Array(\".concat(e.length,\")\"),overflow:!1,properties:e.map((function(e,n){return t.getPropertyPreview4AnyValue(String(n),e)}))}},e.prototype.getValuePreview4TableObject=function(e){var t=this;return{type:\"object\",description:\"Object\",overflow:!1,properties:Object.keys(e).map((function(n){return t.getPropertyPreview4AnyValue(n,e[n])}))}},e}(),ExtractStackLine=function(){function e(){this.e1=/\\s*at\\s(\\S+)\\s(\\S+)\\:(\\d+)\\:(\\d+)\\)/,this.e2=/\\s*at\\s(\\S+)\\:(\\d+)\\:(\\d+)/}return e.prototype.testType1=function(e){return this.e1.test(e)},e.prototype.testType2=function(e){return this.e2.test(e)},e.prototype.extractType1=function(e){var t=e.match(this.e1);return null==t?null:{functionName:t[1],url:t[2].slice(1),lineNumber:Number(t[3]),columnNumber:Number(t[4])}},e.prototype.extractType2=function(e){var t=e.match(this.e2);return null==t?null:{functionName:\"\",url:t[1].slice(1),lineNumber:Number(t[2]),columnNumber:Number(t[3])}},e}(),CallFramesMapper=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.mapFrom=function(e){var t=this;return e.split(\"\\n\").slice(2).map((function(e,n){return t.testType1(e)?t.extractType1(e):t.testType2(e)?t.extractType2(e):void 0})).filter((function(e){return null!=e}))},t}(ExtractStackLine),executionContextId=1,injectedScriptId=1,ObjectStore=function(){function e(){this.id=0,this.id2Object=new Map,this.object2Id=new Map}return e.prototype.save=function(e){if(this.object2Id.has(e))return this.object2Id.get(e);var t=this.getNextObjectId();return this.id2Object.set(t,e),this.object2Id.set(e,t),t},e.prototype.query=function(e){return this.id2Object.get(e)},e.prototype.clear=function(e){var t=this.id2Object.get(e);t&&(this.id2Object.delete(e),this.object2Id.delete(t))},e.prototype.clearAll=function(){this.id2Object.clear(),this.object2Id.clear()},e.prototype.getNextObjectId=function(){return this.id++,'{\"injectedScriptId\":'.concat(injectedScriptId,',\"id\":').concat(this.id,\"}\")},e}(),GetPropertiesHandler=function(){function e(e,t){this.objectStore=e,this.objectMapper=t}return e.prototype.handle=function(e){var t=this.objectStore.query(e.objectId);if(t){var n=Boolean(e.ownProperties),r={result:this.mapObject(t,n,Boolean(e.accessorPropertiesOnly))};return n&&this.hasInternalProperties(t)&&(r.internalProperties=this.getInternalProperties(t)),r}return{result:[]}},e.prototype.getInternalProperties=function(e){return isArrayBufferInstance(e)?[this.mapInternalProperties(\"[[ArrayBufferByteLength]]\",e.byteLength)]:[]},e.prototype.hasInternalProperties=function(e){return isArrayBuffer(e)},e.prototype.shouldSkipProto=function(e){return isArrayBuffer(e)},e.prototype.mapObject=function(e,t,n){var r=this;if(t){var o=getObjectOwnPropertyDescriptors(e),i=Object.keys(o).filter((function(e){return!(n&&!o[e].get&&!o[e].set)})).map((function(e){return r.mapResultOne(e,o[e],!0)}));return this.shouldSkipProto(e)||e.__proto__&&i.push(this.mapResultOne(\"__proto__\",{configurable:!0,enumerable:!1,writable:!0,value:e.__proto__},!0)),i}for(var a=[],s={},c=e,p=!1,u=!0,l=function(){var e=getObjectOwnPropertyDescriptors(c);if(Object.keys(e).forEach((function(t){if(!s[t]){s[t]=!0;var o=e[t];(!n||o.get||o.set)&&a.push(r.mapResultOne(t,o,u))}})),!p){var t=Object.getOwnPropertyDescriptor(c,\"__proto__\");t&&(p=!0,a.push(g.mapResultOne(\"__proto__\",t,u)))}c=c.__proto__,u=!1},g=this;c;)l();return a},e.prototype.mapInternalProperties=function(e,t){return{name:String(e),value:this.objectMapper.mapFromOne(t)}},e.prototype.mapResultOne=function(e,t,n){var r={writable:t.writable,configurable:Boolean(t.configurable),enumerable:Boolean(t.enumerable),isOwn:n,name:String(e)};return\"value\"in t&&(r.value=this.objectMapper.mapFromOne(t.value)),t.get&&(r.get=this.objectMapper.mapFromOne(t.get)),t.set&&(r.set=this.objectMapper.mapFromOne(t.set)),r},e}(),RemoteObjectParser=function(){function e(){this.objectStore=new ObjectStore,this.objectMapper=new ObjectMapper(this.objectStore),this.callFramesMapper=new CallFramesMapper,this.getPropertiesHandler=new GetPropertiesHandler(this.objectStore,this.objectMapper)}return e.prototype.parseObject=function(e,t){return this.objectMapper.mapFromOne(e,t)},e.prototype.getProperties=function(e){return this.getPropertiesHandler.handle(e)},e.prototype.getObjectById=function(e){return this.objectStore.query(e)},e.prototype.consoleAPICalled=function(e,t,n){var r=e;return\"warn\"===e&&(r=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:r,args:this.objectMapper.mapFrom(n,e),executionContextId:executionContextId,timestamp:Date.now(),stackTrace:{callFrames:this.callFramesMapper.mapFrom(t)}}}},e}(),globalConsoleOverrides;function initConsoleOverrides(){\"boolean\"==typeof __BUGME_CONSOLE_ENABLE__&&__BUGME_CONSOLE_ENABLE__&&(globalConsoleOverrides=new ConsoleOverrides).overrideConsole()}function getConsoleOverrides(){return globalConsoleOverrides}var ConsoleOverrides=function(){function e(){this.executionContextId=1,this.messageBeforeAgentInit=[],this.webSocketCheckingLoop=!1,this.parser=new RemoteObjectParser,this.createExecutionContext()}return e.prototype.createExecutionContext=function(){this.sendMessage({method:\"Runtime.executionContextsCleared\",params:{}}),this.sendMessage({method:\"Runtime.executionContextCreated\",params:{context:{id:this.executionContextId,origin:\"app://\",name:\"app\"}}})},e.prototype.overrideConsole=function(){var e=this;Object.defineProperties(console,[\"debug\",\"log\",\"info\",\"warn\",\"error\",\"table\"].reduce((function(t,n){var r=console[n].bind(console);return t[n]={value:function(){var t=arguments;if(t.length){try{if(\"string\"==typeof t[0]&&/^(\\[framework\\]|dispatchEvent|onMessage push|unsupported protocol)/.test(t[0]))return r.apply(null,t);var o=new Error;o.stack&&e.sendMessage(e.parser.consoleAPICalled(n,o.stack,t))}catch(e){}return r.apply(null,t)}}},t}),{}))},e.prototype.sendMessage=function(e){var t=getInjector().getWorkerSocket();t?(this.flushPendingMessages(),t.sendAfterReceivingMessage(e)):(this.messageBeforeAgentInit.push(e),this.checkWebSocketReady())},e.prototype.flushPendingMessages=function(){if(this.messageBeforeAgentInit.length){var e=getInjector().getWorkerSocket();e&&(this.messageBeforeAgentInit.forEach((function(t){e.sendAfterReceivingMessage(t)})),this.messageBeforeAgentInit=[])}},e.prototype.checkWebSocketReady=function(){var e=this;if(!this.webSocketCheckingLoop){this.webSocketCheckingLoop=!0;var t=setInterval((function(){getInjector().getWorkerSocket()&&(clearInterval(t),e.flushPendingMessages())}),1e3)}},e}(),requirePluginName=\"requirePlugin\";function hookRequirePlugin(){var e=Object.getOwnPropertyDescriptor(workerGlobal,requirePluginName);if(!e||e.configurable){var t;e&&(t=workerGlobal.requirePlugin);var n,r={get:function(e,t,n){return\"async\"===t?function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e[t];if(\"function\"==typeof o){var i=Date.now();return sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiCall\",params:{aTime:i,context:{apiName:requirePluginName+\".async\",option:{arguments:n}}},ext:{origin:EBugmePanelId.AppLog}}),o.apply(void 0,n).then((function(e){return sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiCallback\",params:{args:e?void 0:[{error:1,errorMessage:\"未找到对应插件\"}],bTime:Date.now()===i?i+.01:Date.now(),context:{apiName:requirePluginName+\".async\"}},ext:{origin:EBugmePanelId.AppLog}}),e})).catch((function(e){throw sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiCallback\",params:{args:[{error:2,errorMessage:e.message}],bTime:Date.now()===i?i+.01:Date.now(),context:{apiName:requirePluginName+\".async\"}},ext:{origin:EBugmePanelId.AppLog}}),e}))}return o}:e[t]},apply:function(e,t,n){var r=Date.now();sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCall\",params:{aTime:r,context:{apiName:requirePluginName,option:{arguments:n}}},ext:{origin:EBugmePanelId.AppLog}});try{var o=e.apply(void 0,n);return sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCallback\",params:{args:o?void 0:[{error:1,errorMessage:\"未找到对应插件\"}],bTime:Date.now()===r?r+.01:Date.now(),context:{apiName:requirePluginName}},ext:{origin:EBugmePanelId.AppLog}}),o}catch(e){throw sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCallback\",params:{args:[{error:2,errorMessage:e.message}],bTime:Date.now()===r?r+.01:Date.now(),context:{apiName:requirePluginName}},ext:{origin:EBugmePanelId.AppLog}}),e}}};try{t&&(n=new Proxy(t,r))}catch(e){}Object.defineProperty(workerGlobal,requirePluginName,{get:function(){return n||t},set:function(e){n=(t=e)?new Proxy(t,r):void 0},enumerable:!0,configurable:!0})}}function enable$2(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}function getResponseBody(e){var t=e.params.requestId,n=getInjector(),r=n.getNetworkRecorder(),o=r.getRequest(t);o?n.getWorkerSocket().send({id:e.id,result:{base64Encoded:o.isBase64Body,body:o.responseBody}}):n.getWorkerSocket().send({id:e.id,result:{}}),r.removeRequest(t)}var network=Object.freeze({__proto__:null,enable:enable$2,getResponseBody:getResponseBody});function enable$1(e){getInjector().getWorkerSocket().send({id:e.id,result:{}});var t=getConsoleOverrides();t&&t.createExecutionContext()}function getProperties(e){var t=getConsoleOverrides();t&&getInjector().getWorkerSocket().send({id:e.id,result:t.parser.getProperties(e.params)})}function compileScript(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}var evalFunc=\"function\"==typeof __eval?__eval:\"function\"==typeof eval?eval:function(){};function evaluate(payload){var consoleOverrides=getConsoleOverrides();if(consoleOverrides){var parser=consoleOverrides.parser;\"function\"!=typeof eval&&(workerGlobal.eval=evalFunc);try{var returnValue=function(){return eval(payload.params.expression)}();getInjector().getWorkerSocket().send({id:payload.id,result:{result:parser.parseObject(returnValue)}})}catch(e){e.stack=\"\".concat(e.name,\": \").concat(e.message),getInjector().getWorkerSocket().send({id:payload.id,result:{exceptionDetails:{columnNumber:20,exception:parser.parseObject(e),exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:parser.parseObject(e)}})}}}var runtime=Object.freeze({__proto__:null,compileScript:compileScript,enable:enable$1,evaluate:evaluate,getProperties:getProperties}),stringify$1={exports:{}};!function(e,t){function n(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?\"[Circular ~]\":\"[Circular ~.\"+r.slice(0,n.indexOf(t)).join(\".\")+\"]\"}),function(o,i){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?r.splice(a,1/0,o):r.push(o),~n.indexOf(i)&&(i=t.call(this,o,i))}else n.push(i);return null==e?i:e.call(this,o,i)}}(e.exports=function(e,t,r,o){return JSON.stringify(e,n(t,o),r)}).getSerialize=n}(stringify$1,stringify$1.exports);var stringifyExports=stringify$1.exports,stringify=getDefaultExportFromCjs(stringifyExports),sharedGetCurrentPages;function callGetCurrentPages(){return sharedGetCurrentPages?sharedGetCurrentPages():workerGlobal.getCurrentPages?(sharedGetCurrentPages=workerGlobal.getCurrentPages)():workerGlobal.AFAppX&&AFAppX.getCurrentPages?(sharedGetCurrentPages=AFAppX.getCurrentPages)():[]}function getPagesData(e){var t;var n=getInjector().getRuntime();t=null==n?callGetCurrentPages().filter(Boolean).map((function(e){return{viewId:e.$viewId,data:stringify(e.data),route:e.route}})):n.getNav().currentStack.map((function(e){var t=e.getPageLogicInstance().publicInstance;return{viewId:t.$viewId,data:stringify(t.data),route:t.route}})),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{data:t}})}function setPageData(e){var t,n=e.params||{},r=n.viewId,o=n.data;var i=getInjector().getRuntime();t=null==i?callGetCurrentPages().filter((function(e){return e&&\"\".concat(e.$viewId)===r}))[0]:i.getNav().currentStack.map((function(e){return e.getPageLogicInstance().publicInstance})).filter((function(e){return e&&\"\".concat(e.$viewId)===r}))[0],t&&o&&t.setData(o)}var data=Object.freeze({__proto__:null,getPagesData:getPagesData,setPageData:setPageData});function getStorageItem(e){return new Promise((function(t){AFAppX.bridge.getStorage({key:e,success:function(n){var r=n.data;t({key:e,value:r,type:typeof r})},fail:function(){t()}})}))}function getStorageInfo(e){AFAppX.bridge.getStorageInfo({success:function(t){Promise.all(t.keys.map((function(e){return getStorageItem(e)}))).then((function(n){var r=n.filter((function(e){return e}));getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{currentSize:t.currentSize,limitSize:t.limitSize,data:r}})}))}})}function clearStorage(e){AFAppX.bridge.clearStorage()}function removeStorage(e){var t=e.params;t&&t.key&&AFAppX.bridge.removeStorage({key:t.key})}function setStorage(e){var t=e.params;t&&t.key&&AFAppX.bridge.setStorage({key:t.key,data:t.value})}var storage=Object.freeze({__proto__:null,clearStorage:clearStorage,getStorageInfo:getStorageInfo,removeStorage:removeStorage,setStorage:setStorage});function enable(){var e=getInjector().getMessageQueue();e.setApplogEnabled(!0),e.sendQueuedMessages()}var applog=Object.freeze({__proto__:null,enable:enable});function ping(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}function getSystemInfo(e){AFAppX.bridge.getSystemInfo({success:function(t){var n={userAgent:getInjector().getAgentContext().userAgent,sdkVersion:AFAppX.bridge.SDKVersion,alipayVersion:t.version,model:t.model,system:t.system};getInjector().getWorkerSocket().send({id:e.id,result:n})}})}function getStartupParams(e){var t=getStartupParams$1();getInjector().getWorkerSocket().send({id:e.id,result:t})}var index=Object.freeze({__proto__:null,Applog:applog,Data:data,Storage:storage,getStartupParams:getStartupParams,getSystemInfo:getSystemInfo,ping:ping});function getResourceTree(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}var page=Object.freeze({__proto__:null,getResourceTree:getResourceTree}),protoHandler=Object.freeze({__proto__:null,Network:network,Page:page,Runtime:runtime,Tiny:index}),isWebPlatform=!1;if(\"undefined\"!=typeof WebSocket&&WebSocket.OPEN){isWebPlatform=!0;try{delete workerGlobal.WebSocket}catch(e){}}var BaseImpl=isWebPlatform?WebSocketBrowserImpl:WebSocketNativeImpl,WorkerSocket=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isMessageReceived=!1,t.messageBeforeReceived=[],t}return __extends(t,e),t.prototype.send=function(e){return this.sendSocketMessage(e)},t.prototype.sendAfterReceivingMessage=function(e){this.isMessageReceived?this.send(e):this.messageBeforeReceived.push(\"string\"==typeof e?e:JSON.stringify(e))},t.prototype.onSocketOpen=function(){e.prototype.onSocketOpen.call(this),this.send({method:\"MiniAppLog.enable\",params:{},ext:{origin:EBugmePanelId.AppLog}}),throttledEmitDataChangedEvent()},t.prototype.onSocketClose=function(){e.prototype.onSocketClose.call(this)},t.prototype.onSocketError=function(e){},t.prototype.onSocketMessage=function(e){var t,n=this;this.isMessageReceived||(this.isMessageReceived=!0,this.messageBeforeReceived.forEach((function(e){n.send(e)})),this.messageBeforeReceived=[]);try{t=JSON.parse(e)}catch(t){return void(\"CLIENT:LEAVE\"===e&&this.close())}var r=getProtocolHandler(t.method);r?r(t):this.send({id:t.id,error:{code:-32e3,message:\"unsupported\"}})},t}(BaseImpl);function getProtocolHandler(e){if(e){for(var t=e.split(\".\"),n=protoHandler,r=0,o=t;r<o.length;r++){if(!(n=n[o[r]]))break}return n}}var ignoreDomain=/\\/(tyro\\/agent|bugme\\/channel\\/paused)$/,DebugEventListener=function(){function e(){this.isIOS=getInjector().getAgentContext().isIOS,this.isLyra=getInjector().getAgentContext().isLyra}return e.prototype.setup=function(){this.isLyra||this.isIOS?this.listenDebugEvent4IOS():this.listenDebugEvent()},e.prototype.onNetworkRequest=function(e){if(!ignoreDomain.test(e.url)){var t=createProtocol4RequestWillBeSent(e),n=getInjector();n.getWorkerSocket().send(t),n.getNetworkRecorder().setRequest(e.requestId,{method:t.params.request.method,requestHeaders:t.params.request.headers,url:e.url})}},e.prototype.onNetworkResponse=function(e){if(!ignoreDomain.test(e.url)){var t=getInjector(),n=t.getNetworkRecorder().getRequest(e.requestId)||{};t.getWorkerSocket().send(createProtocol4ResponseReceived(e,n)),t.getWorkerSocket().send(createProtocol4LoadingFinished(e)),t.getNetworkRecorder().setRequest(e.requestId,{responseBody:e.body,isBase64Body:!1})}},e.prototype.onNetworkError=function(e){ignoreDomain.test(e.url)||getInjector().getWorkerSocket().send(createProtocol4LoadingFailed(e))},e.prototype.onStorageChanged=function(e){var t={};e.data&&Object.keys(e.data).forEach((function(n){try{t[n]=JSON.parse(e.data[n]).APDataStorage}catch(e){}})),getInjector().getWorkerSocket().send({method:\"Tiny.Storage.storageChanged\",params:{data:t},ext:{origin:EBugmePanelId.Storage}})},e.prototype.listenDebugEvent4IOS=function(){var e=this,t=AFAppX.bridge;t.on(EWorkerAppEvent.DebugNetworkRequest,(function(t){e.onNetworkRequest(t.data)})),t.on(EWorkerAppEvent.DebugNetworkResponse,(function(t){e.onNetworkResponse(t.data)})),t.on(EWorkerAppEvent.DebugNetworkError,(function(t){e.onNetworkError(t.data)})),t.on(EWorkerAppEvent.DebugStorageChanged,(function(t){e.onStorageChanged(t.data)}))},e.prototype.listenDebugEvent=function(){var e=this;AFAppX.bridge.on(EWorkerAppEvent.DebugConsole,(function(t){var n,r=t.data,o=r.type,i=r.content;try{n=JSON.parse(i)}catch(e){return}switch(o){case EWorkerAppEvent.DebugNetworkRequest:e.onNetworkRequest(n);break;case EWorkerAppEvent.DebugNetworkResponse:e.onNetworkResponse(n);break;case EWorkerAppEvent.DebugNetworkError:e.onNetworkError(n);break;case EWorkerAppEvent.DebugStorageChanged:e.onStorageChanged(n)}}))},e}(),WorkerListener=function(){function e(){this.inited=!1}return e.prototype.setup=function(){if(this.inited)return!1;var e=AFAppX.bridge;if(/^1\\./.test(e.SDKVersion)){var t=debounce(this.onPageResumeOrPause.bind(this),300,setTimeout,clearTimeout);e.on(EWorkerAppEvent.PageResume,t),e.on(EWorkerAppEvent.PagePause,t)}e.on(EWorkerAppEvent.DebugPanelClick,this.onDebugPanelClick),e.on(EWorkerAppEvent.DebugMaskButtonClick,this.onDebugMaskButtonClick),this.debugEventListener=new DebugEventListener,this.debugEventListener.setup(),this.inited=!0},e.prototype.onPageResumeOrPause=function(){throttledEmitDataChangedEvent()},e.prototype.onDebugPanelClick=function(){var e=getInjector().getWorkerSocket();e&&e.close()},e.prototype.onDebugMaskButtonClick=function(){},e}(),globalListener;function getGlobalWorkerEventListener(){return globalListener||(globalListener=new WorkerListener),globalListener}function getChannelUrl(){if(\"string\"==typeof __BUGME_EXTERNAL_WORKER_URL__&&__BUGME_EXTERNAL_WORKER_URL__)return __BUGME_EXTERNAL_WORKER_URL__;var e,t=getInjector().getAgentContext(),n=t.channel,r=t.channelId,o=t.channelConfigKey;\"\"!==n?e=n:e=\"wss://\"+(channelDomainConfig[o]||channelDomainConfig[0]).hpmweb;return\"\".concat(e,\"/bugme/client_w/\").concat(r)}var DebugAgent=function(){function e(){}return e.prototype.init=function(){getGlobalWorkerEventListener().setup(),this.makeConnection()},e.prototype.makeConnection=function(){var e=getInjector(),t=getChannelUrl(),n=new WorkerSocket(t);e.setWorkerSocket(n),e.getAgentContext().isIOS?n.open():setTimeout((function(){n.open()}),1200)},e}(),globalAgent;function getAgent(){return globalAgent||(globalAgent=new DebugAgent),globalAgent}var LOG_STYLE=\"color: #3D80F3; font-weight: bold;\";function getStaticPlugins(){var e=getStartupParams$1().__appxPluginsExtra||{},t=Object.keys(e).map((function(t){return{plugin_id:t,deploy_version:e[t].version}}));try{var n=getInjector().getRuntime().getMeta().getAppMeta().plugins||{};Object.entries(n).forEach((function(n){var r=n[0],o=n[1];o.lazy&&!e[r]&&t.push({plugin_id:\"\".concat(o.provider,\"(lazy)\"),deploy_version:\"Not Load\"})}))}catch(e){}return t}function printStaticPlugins(){var e=getStaticPlugins();e.length&&(console.log(\"%c--- Static Plugin List ---\",LOG_STYLE),console.table(e))}var loadPluginName=\"loadPlugin\";function hookLoadPlugin(){var e,t=Object.getOwnPropertyDescriptor(workerGlobal.my,loadPluginName);t&&!t.configurable||(t&&(e=workerGlobal.my.loadPlugin),Object.defineProperty(workerGlobal.my,loadPluginName,{get:function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(\"object\"==typeof t[0]){var r=t[0].success;t[0].success=function(){printDynamicPlugin(t[0].plugin),void 0!==r&&r.apply(this,arguments)}}return e.apply(void 0,t)}},set:function(t){e=t},enumerable:!0,configurable:!0}))}function getExtensionVersions(){var e=getInjector().getRuntime().getMiniExtensionManager();if(e.extensionVersions)return e.extensionVersions;if(e.getInitedMiniExtensionInfo){var t=e.getInitedMiniExtensionInfo(),n=new Map;return t.forEach((function(e){n.set(e.id,e.version)})),n}return new Map}function printDynamicPlugin(e){var t=e.split(\"@\")[0],n=getExtensionVersions();setTimeout((function(){console.log(\"%c--- Loaded Dynamic Plugin ---\",LOG_STYLE),console.table([{plugin_id:t,deploy_version:n.get(t)}])}),100)}function setupPluginInfo(){console.log(\"%cTip: you can type `printPlugins()` anytime to print loaded plugins info\",\"color: #3D80F3;\"),hookLoadPlugin(),printStaticPlugins(),workerGlobal.printPlugins=printPlugins}function isUsePlugin(){var e=getInjector().getRuntime();if(void 0===e)return!1;var t=e.getMeta();if(t){var n=void 0;if(\"function\"==typeof t.getAppMeta?n=t.getAppMeta():void 0!==t.meta&&(n=t.meta),n)return\"object\"==typeof n.plugins&&0!==Object.keys(n.plugins).length||n.useDynamicPlugins}return!1}function printPlugins(){var e;printStaticPlugins();var t=(null===(e=getStartupParams$1())||void 0===e?void 0:e.__appxPluginsExtra)||{},n=getInjector().getRuntime().getMiniExtensionManager(),r=[];if(n.extensionVersions)n.extensionVersions.forEach((function(e,n){void 0===t[n]&&r.push({plugin_id:n,deploy_version:e})}));else if(n.getInitedMiniExtensionInfo){n.getInitedMiniExtensionInfo().forEach((function(e){if(void 0===t[e.id]){var n={plugin_id:e.id,deploy_version:e.version};r.push(n)}}))}console.log(\"%c--- Loaded Dynamic Plugin List ---\",LOG_STYLE),console.table(r)}function main(){try{registerAppxHook(),initConsoleOverrides(),hookRequirePlugin()}catch(e){error(\"sync task error\",e)}runAfterAppx((function(){runAfterAppXBridgeReady((function(){try{getAgent().init(),isUsePlugin()&&setupPluginInfo()}catch(e){error(\"init agent error\",e)}}))}))}var inPluginWorker=\"object\"==typeof AFAppX&&AFAppX.Plugin;if(!workerGlobal.__BUGME_ON__&&!inPluginWorker){workerGlobal.__BUGME_ON__=!0;try{main()}catch(e){error(\"init error\",e)}}})();","bugmeWPreview":"!function(){\"use strict\";var e,n;!function(e){e.PageResume=\"pageResume\",e.PagePause=\"pagePause\",e.DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",e.DebugMaskButtonClick=\"tinyRemoteDebugMaskButtonClick\",e.DebugConsole=\"onTinyDebugConsole\",e.DebugNetworkRequest=\"tinyAppRemoteDebug_network_request\",e.DebugNetworkResponse=\"tinyAppRemoteDebug_network_response\",e.DebugNetworkError=\"tinyAppRemoteDebug_network_error\",e.DebugStorageChanged=\"tinyAppRemoteDebug_storage\",e.MessageFromVConsole=\"onMessageFromVConsole\"}(e||(e={})),function(e){e.Data=\"data\",e.Storage=\"storage\",e.AppLog=\"applog\"}(n||(n={}));var t=self,r=\"~\",o=\"\\\\x\"+(\"0\"+r.charCodeAt(0).toString(16)).slice(-2),a=\"\\\\\"+o,c=new RegExp(o,\"g\"),u=new RegExp(a,\"g\"),i=new RegExp(\"(?:^|([^\\\\\\\\]))\"+a),s=[].indexOf||function(e){for(var n=this.length;n--&&this[n]!==e;);return n},p=String;function g(e,n,t){return n instanceof Array?function(e,n,t){for(var r=0,o=n.length;r<o;r++)n[r]=g(e,n[r],t);return n}(e,n,t):n instanceof p?n.length?t.hasOwnProperty(n)?t[n]:t[n]=function(e,n){for(var t=0,o=n.length;t<o;e=e[n[t++].replace(u,r)]);return e}(e,n.split(r)):e:n instanceof Object?function(e,n,t){for(var r in n)n.hasOwnProperty(r)&&(n[r]=g(e,n[r],t));return n}(e,n,t):n}var l={stringify:function(e,n,t,u){return l.parser.stringify(e,function(e,n,t){var u,i,p=!1,g=!!n,l=[],f=[e],d=[e],y=[t?r:\"[Circular]\"],m=e,h=1;return g&&(i=\"object\"==typeof n?function(e,t){return\"\"!==e&&n.indexOf(e)<0?void 0:t}:n),function(e,n){return g&&(n=i.call(this,e,n)),p?(m!==this&&(u=h-s.call(f,this)-1,h-=u,f.splice(h,f.length),l.splice(h-1,l.length),m=this),\"object\"==typeof n&&n?(s.call(f,n)<0&&f.push(m=n),h=f.length,(u=s.call(d,n))<0?(u=d.push(n)-1,t?(l.push((\"\"+e).replace(c,o)),y[u]=r+l.join(r)):y[u]=y[0]):n=y[u]):\"string\"==typeof n&&t&&(n=n.replace(o,a).replace(r,o))):p=!0,n}}(e,n,!u),t)},parse:function(e,n){return l.parser.parse(e,function(e){return function(n,t){var c=\"string\"==typeof t;return c&&t.charAt(0)===r?new p(t.slice(1)):(\"\"===n&&(t=g(t,t,{})),c&&(t=t.replace(i,\"$1\"+r).replace(a,o)),e?e.call(this,n,t):t)}}(n))},parser:JSON},f=l;function d(e,n,t){var r=t.fetch,o=t.AlipayJSBridge&&t.AlipayJSBridge.call;if(r){var a=encodeURIComponent(JSON.stringify({action:\"internalAPI\",data:{method:e,param:n}}));r(\"https://alipay.kylinBridge/?data=\".concat(a),{mode:\"no-cors\"}).then((function(){})).catch((function(){}))}else o&&o(\"internalAPI\",{method:e,param:n})}function y(e,n){return void 0===n?\"©undefined\":null===n?\"©null\":n===-1/0?\"©-Infinity\":n===1/0?\"©Infinity\":\"number\"==typeof n&&isNaN(n)?\"©NaN\":\"function\"==typeof n?\"©Function\":n}function m(e){e.document&&e.document.addEventListener&&e.document.addEventListener(\"push\",(function(n){var r=n.data;if(r&&\"onMessageFromVConsole\"===r.func){var o;try{var a=r.param.content||r.param.data.content;if(!a)return;o=JSON.parse(a)}catch(e){return}if(o.fromVConsoleToWorker&&\"exec\"===o.method)try{!function(e,n){var r=\"var res = \".concat(e.script,\";console.log(res);\");(function(e){return'sendBack((typeof getCurrentPages !== \"undefined\" ? getCurrentPages() : AFAppX.getCurrentPages()).filter(Boolean).pop().data);return;'===e})(e.script)&&(r=\"var res = \".concat(v,\";console.log(res);\"));var o=n.Function,a=n.__eval;\"function\"==typeof a?a(h.replace(/\\$requestId\\$/g,e.requestId).replace(\"$code$\",r)):new o(\"requestId\",\"sendBack\",r)(e.requestId,(function(n){return t.responseToVConsole(e.requestId,n)}))}(o,e)}catch(e){console.warn(\"bugme execute script error\",e)}}}))}var h=\"(function(requestId, sendBack){$code$})($requestId$, function(returnValue){responseToVConsole($requestId$, returnValue)})\",v='\\nsendBack((function(){\\n var pageLogicInstance = typeof getBugMeContext().getTopPageInstance !== \"undefined\" ? getBugMeContext().getTopPageInstance() : undefined;\\n var pagePublicInstance = pageLogicInstance && pageLogicInstance.getPageLogicInstance().publicInstance || (typeof getCurrentPages !== \"undefined\" ? getCurrentPages() : AFAppX.getCurrentPages()).filter(Boolean).pop()\\n var pageData = pagePublicInstance && pagePublicInstance.data;\\n if (getBugMeContext().Widget === true && pageLogicInstance) {\\n var components = pageLogicInstance.logics.slice(1);\\n return components.reduce(function(prev, c){\\n if (!c.parentComponentId) {\\n prev.push({\\n props: c.publicInstance.props,\\n data: c.publicInstance.data\\n });\\n }\\n return prev;\\n }, []);\\n }\\n return pageData;\\n})());return;\\n';var _,b,C={AlipayJSBridge:t.AlipayJSBridge,document:t.document,Function:t.Function,fetch:t.fetch},I=function(){return C};t.getBugMeContext=I,b=function(){var e=I();!function(e){_=e,t.responseToVConsole=function(e,n){d(\"tinyDebugConsole\",{type:\"msgFromWorkerToVConsole\",content:f.stringify({requestId:e,returnValue:n},y)},_)}}(e),m(e),function(e){Object.defineProperties(console,[\"log\",\"info\",\"error\",\"debug\",\"warn\"].reduce((function(n,t){var r=console[t];return n[t]={value:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];r.apply(console,n);try{d(\"tinyDebugConsole\",{content:f.stringify(n.map((function(e){return e instanceof Error?\"\".concat(e.name,\": \").concat(e.message):e})),y),type:\"console_\".concat(t)},e)}catch(e){r(\"bugme console error\",e)}},configurable:!0,writable:!0,enumerable:!0},n}),{}))}(e)},t.__BUGME_ON__||(t.__BUGME_ON__=!0,t.AFAppX&&!0===t.AFAppX.__WAIT_UNTIL_BUGME_CONTEXT_READY__?function(e){t.__SET_BUGME_CONTEXT__=function(n){C=n,e()}}(b):b())}();","tyroAgent":"!function(){\"use strict\";function getObjectOwnPropertyDescriptors(e){return Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors(e):Object.getOwnPropertyNames(e).reduce((function(t,r){return t[r]=Object.getOwnPropertyDescriptor(e,r),t}),Object.create(null))}function isError(e){return\"[object Error]\"===Object.prototype.toString.call(e)||e instanceof Error}function isDate(e){return\"[object Date]\"===Object.prototype.toString.call(e)||e instanceof Date}function isRegExp(e){return\"[object RegExp]\"===Object.prototype.toString.call(e)||e instanceof RegExp}function isPromise(e){return\"[object Promise]\"===Object.prototype.toString.call(e)||e instanceof Promise}var ObjectMapper=function(){function e(e){this.objectStore=e}return e.prototype.mapFrom=function(e,t){var r=this;return Array.from(e).map((function(e){return r.mapFromOne(e,t)}))},e.prototype.mapFromOne=function(e,t){switch(typeof e){case\"string\":return this.mapString(e);case\"number\":return this.mapNumber(e);case\"object\":return Array.isArray(e)?this.mapArray(e,\"table\"===t):null===e?this.mapNull():this.mapObject(e,\"table\"===t);case\"function\":return this.mapFunction(e);case\"undefined\":return this.mapUndef();case\"boolean\":return this.mapBoolean(e);default:return{type:typeof e,value:e}}},e.prototype.mapString=function(e){return{type:\"string\",value:e}},e.prototype.mapNumber=function(e){return{type:\"number\",value:e,description:String(e)}},e.prototype.mapBoolean=function(e){return{type:\"boolean\",value:e}},e.prototype.mapFunction=function(e){var t=this.objectStore.save(e);return{type:\"function\",className:\"Function\",description:e.toString(),objectId:t}},e.prototype.mapUndef=function(){return{type:\"undefined\"}},e.prototype.mapNull=function(){return{type:\"object\",subtype:\"null\",value:null}},e.prototype.mapObject=function(e,t){var r,n,s=this,i=getObjectOwnPropertyDescriptors(e),o=Object.keys(i),a=this.objectStore.save(e),c=e.constructor?e.constructor.name:\"Object\",p=o.length>5&&!t,u={type:\"object\",className:c,description:c,objectId:a,preview:{type:\"object\",description:c,overflow:p,properties:(p?o.slice(0,5):o).map((function(e){return s.getPropertyPreview4ObjectProperty(e,i[e],t)})).filter(Boolean)}};return isError(e)?(r=\"error\",-1===(n=e.stack||\"\").indexOf(e.name)&&(n=e.toString()+\"\\n\"+n)):isDate(e)?(r=\"date\",n=e.toString()):isRegExp(e)?(r=\"regexp\",n=e.toString()):isPromise(e)&&(r=\"promise\",n=\"Promise\"),r&&(u.subtype=r,u.preview&&(u.preview.subtype=r)),n&&(u.description=n,u.preview&&(u.preview.description=n)),u},e.prototype.mapArray=function(e,t){var r=this,n=e.length>100&&!t,s=\"Array(\"+e.length+\")\";return{type:\"object\",subtype:\"array\",className:\"Array\",description:s,objectId:this.objectStore.save(e),preview:{type:\"object\",subtype:\"array\",description:s,overflow:n,properties:(n?e.slice(0,100):e).map((function(e,n){return r.getPropertyPreview4ArrayProperty(n,e,t)}))}}},e.prototype.getPropertyPreview4ArrayProperty=function(e,t,r){return this.getPropertyPreview4AnyValue(String(e),t,r)},e.prototype.getPropertyPreview4ObjectProperty=function(e,t,r){return t.get?{name:e,type:\"accessor\"}:t.set?void 0:this.getPropertyPreview4AnyValue(e,t.value,r)},e.prototype.getPropertyPreview4AnyValue=function(e,t,r){switch(void 0===r&&(r=!1),typeof t){case\"object\":if(Array.isArray(t)){var n={name:e,type:\"object\",subtype:\"array\",value:\"Array(\"+t.length+\")\"};return r&&(n.valuePreview=this.getValuePreview4TableArray(t)),n}if(null===t)return{name:e,type:\"object\",subtype:\"null\",value:\"null\"};n={name:e,type:\"object\",value:t.constructor?t.constructor.name:\"Object\"};return r&&(n.valuePreview=this.getValuePreview4TableObject(t)),n;case\"function\":return{type:\"function\",value:\"\",name:e};default:return{name:e,type:typeof t,value:String(t)}}},e.prototype.getValuePreview4TableArray=function(e){var t=this;return{type:\"object\",subtype:\"array\",description:\"Array(\"+e.length+\")\",overflow:!1,properties:e.map((function(e,r){return t.getPropertyPreview4AnyValue(String(r),e)}))}},e.prototype.getValuePreview4TableObject=function(e){var t=this;return{type:\"object\",description:\"Object\",overflow:!1,properties:Object.keys(e).map((function(r){return t.getPropertyPreview4AnyValue(r,e[r])}))}},e}(),extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function __extends(e,t){function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ExtractStackLine=function(){function e(){this.e1=/\\s*at\\s(\\S+)\\s(\\S+)\\:(\\d+)\\:(\\d+)\\)/,this.e2=/\\s*at\\s(\\S+)\\:(\\d+)\\:(\\d+)/}return e.prototype.testType1=function(e){return this.e1.test(e)},e.prototype.testType2=function(e){return this.e2.test(e)},e.prototype.extractType1=function(e){var t=e.match(this.e1);return null==t?null:{functionName:t[1],url:t[2].slice(1),lineNumber:Number(t[3]),columnNumber:Number(t[4])}},e.prototype.extractType2=function(e){var t=e.match(this.e2);return null==t?null:{functionName:\"\",url:t[1].slice(1),lineNumber:Number(t[2]),columnNumber:Number(t[3])}},e}(),CallFramesMapper=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.mapFrom=function(e){var t=this;return e.split(\"\\n\").slice(2).map((function(e,r){return t.testType1(e)?t.extractType1(e):t.testType2(e)?t.extractType2(e):void 0})).filter((function(e){return null!=e}))},t}(ExtractStackLine),executionContextId=1,injectedScriptId=1,ObjectStore=function(){function e(){this.id=0,this.id2Object=new Map,this.object2Id=new Map}return e.prototype.save=function(e){if(this.object2Id.has(e))return this.object2Id.get(e);var t=this.getNextObjectId();return this.id2Object.set(t,e),this.object2Id.set(e,t),t},e.prototype.query=function(e){return this.id2Object.get(e)},e.prototype.clear=function(e){var t=this.id2Object.get(e);t&&(this.id2Object.delete(e),this.object2Id.delete(t))},e.prototype.clearAll=function(){this.id2Object.clear(),this.object2Id.clear()},e.prototype.getNextObjectId=function(){return this.id++,'{\"injectedScriptId\":'+injectedScriptId+',\"id\":'+this.id+\"}\"},e}(),GetPropertiesHandler=function(){function e(e,t){this.objectStore=e,this.objectMapper=t}return e.prototype.handle=function(e){var t=this.objectStore.query(e.objectId);return t?{result:this.mapObject(t,Boolean(e.ownProperties),Boolean(e.accessorPropertiesOnly))}:{result:[]}},e.prototype.mapObject=function(e,t,r){var n=this;if(t){var s=getObjectOwnPropertyDescriptors(e),i=Object.keys(s).filter((function(e){return!(r&&!s[e].get&&!s[e].set)})).map((function(e){return n.mapResultOne(e,s[e],!0)}));return e.__proto__&&i.push(this.mapResultOne(\"__proto__\",{configurable:!0,enumerable:!1,writable:!0,value:e.__proto__},!0)),i}for(var o=[],a={},c=e,p=!1,u=!0,l=function(){var e=getObjectOwnPropertyDescriptors(c);if(Object.keys(e).forEach((function(t){if(!a[t]){a[t]=!0;var s=e[t];(!r||s.get||s.set)&&o.push(n.mapResultOne(t,s,u))}})),!p){var t=Object.getOwnPropertyDescriptor(c,\"__proto__\");t&&(p=!0,o.push(y.mapResultOne(\"__proto__\",t,u)))}c=c.__proto__,u=!1},y=this;c;)l();return o},e.prototype.mapResultOne=function(e,t,r){var n={writable:t.writable,configurable:Boolean(t.configurable),enumerable:Boolean(t.enumerable),isOwn:r,name:String(e)};return\"value\"in t&&(n.value=this.objectMapper.mapFromOne(t.value)),t.get&&(n.get=this.objectMapper.mapFromOne(t.get)),t.set&&(n.set=this.objectMapper.mapFromOne(t.set)),n},e}(),RemoteObjectParser=function(){function e(){this.objectStore=new ObjectStore,this.objectMapper=new ObjectMapper(this.objectStore),this.callFramesMapper=new CallFramesMapper,this.getPropertiesHandler=new GetPropertiesHandler(this.objectStore,this.objectMapper)}return e.prototype.parseObject=function(e,t){return this.objectMapper.mapFromOne(e,t)},e.prototype.getProperties=function(e){return this.getPropertiesHandler.handle(e)},e.prototype.getObjectById=function(e){return this.objectStore.query(e)},e.prototype.consoleAPICalled=function(e,t,r){var n=e;return\"warn\"===e&&(n=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:n,args:this.objectMapper.mapFrom(r,e),executionContextId:executionContextId,timestamp:Date.now(),stackTrace:{callFrames:this.callFramesMapper.mapFrom(t)}}}},e}(),ResponseEvent,RequestMethod,BreakStepType,FingerType;function getStartupParams(){if(\"undefined\"!=typeof __appxStartupParams&&__appxStartupParams&&__appxStartupParams.appId)return __appxStartupParams;if(\"undefined\"!=typeof my)try{return my.callSync(\"getStartupParams\")||{}}catch(e){}return{}}!function(e){e.ById=\"Tyro.byId\",e.Sticky=\"Tyro.sticky\",e.StickyNotSendPaused=\"Tyro.stickyNotSendPaused\",e.StickyAsync=\"Tyro.stickyAsync\",e.ScriptSource=\"Tyro.scriptSource\",e.Resumed=\"Debugger.resumed\",e.ConsoleAPICalled=\"Runtime.consoleAPICalled\"}(ResponseEvent||(ResponseEvent={})),function(e){e.DiscardConsoleEntries=\"Tyro.discardConsoleEntries\",e.Evaluate=\"Tyro.evaluate\",e.EvaluateOnCallFrame=\"Tyro.evaluateOnCallFrame\",e.CallFunctionOn=\"Tyro.callFunctionOn\",e.CompileScript=\"Tyro.compileScript\",e.SetBreakpointsActive=\"Tyro.setBreakpointsActive\",e.SetSkipAllPauses=\"Tyro.setSkipAllPauses\",e.Resume=\"Tyro.resume\",e.StepInto=\"Tyro.stepInto\",e.StepOver=\"Tyro.stepOver\",e.StepOut=\"Tyro.stepOut\",e.Pause=\"Tyro.pause\",e.GetPossibleBreakpoints=\"Tyro.getPossibleBreakpoints\",e.SetBreakpointByUrl=\"Tyro.setBreakpointByUrl\",e.SetBreakpoint=\"Tyro.setBreakpoint\",e.RemoveBreakpoint=\"Tyro.removeBreakpoint\",e.REPL=\"Tyro.repl\",e.GetVariableValue=\"Tyro.getVariableValue\",e.SetPauseOnExceptions=\"Tyro.setPauseOnExceptions\",e.SetAsyncCallStackDepth=\"Tyro.setAsyncCallStackDepth\",e.GetProperties=\"Tyro.getProperties\"}(RequestMethod||(RequestMethod={})),function(e){e[e.Non=0]=\"Non\",e[e.NextSticky=1]=\"NextSticky\",e[e.StepOver=2]=\"StepOver\",e[e.StepOut=3]=\"StepOut\"}(BreakStepType||(BreakStepType={})),function(e){e[e.Entry=0]=\"Entry\",e[e.Exit=1]=\"Exit\"}(FingerType||(FingerType={}));var serverConfig={default:{domain:\"hpmweb.alipay.com\"},1:{domain:\"hpmweb.alipay.com\"}};function getServerConfig(){var e=getStartupParams().remoteCh;return e&&serverConfig[e]?serverConfig[e]:serverConfig.default}var appxStackLine=/https:\\/\\/appx\\/af-appx\\.worker\\.min\\.js:\\d+:\\d+/,nativeScriptLine=/https:\\/\\/www\\.alipay\\.com\\/?:\\d+:\\d+|\\[native code\\]/,pluginWorkerStackLine=/https:\\/\\/\\d+\\.hybrid\\.\\S+\\.com\\/__plugins__\\/(\\d+)\\/index\\.worker\\.js:\\d+:\\d+/,appWorkerStackLine=/https:\\/\\/\\d+\\.hybrid\\.\\S+\\.com\\/index\\.worker\\.js:\\d+:\\d+/;function transformSourceUrl(e){try{return pluginWorkerStackLine.test(e)?e.replace(pluginWorkerStackLine,\"Plugin-$1\"):e.replace(appWorkerStackLine,\"App\")}catch(t){return e}}function formatErrorStack(e){var t=e.split(\"\\n\"),r=t[0],n=t.slice(1).filter((function(e){return!appxStackLine.test(e)&&!nativeScriptLine.test(e)})).map(transformSourceUrl);return n.unshift(r),n.join(\"\\n\")}function formatErrorRemoteObject(e){return e.description&&(e.description=formatErrorStack(e.description)),e.preview&&e.preview.description&&(e.preview.description=e.description),e}var TYRO_EXECUTION_CONTEXT_ID=0,TyroUtil=function(){function e(){}return e.throwsMessage=function(e){return\"[Throws: \"+(e?e.message:\"?\")+\"]\"},e.safeGetValueFromPropertyOnObject=function(t,r){if(Object.prototype.hasOwnProperty.call(t,r))try{return t[r]}catch(t){return e.throwsMessage(t)}return t[r]},e.ensureProperties=function(t){var r=[];return function t(n){if(null===n||\"object\"!=typeof n)return n;if(-1!==r.indexOf(n))return\"[Circular]\";if(r.push(n),\"function\"==typeof n.toJSON)try{var s=t(n.toJSON());return r.pop(),s}catch(t){return e.throwsMessage(t)}if(Array.isArray(n)){var i=n.map(t);return r.pop(),i}var o=Object.keys(n).reduce((function(r,s){return r[s]=t(e.safeGetValueFromPropertyOnObject(n,s)),r}),{});return r.pop(),o}(t)},e.safeJSONStringify=function(t,r,n){return JSON.stringify(e.ensureProperties(t),r,n)},e.isWebIDE=function(){return!(\"undefined\"==typeof navigator||!navigator)&&(navigator.swuserAgent||navigator.userAgent||\"\").indexOf(\"AlipayIDE\")>-1},e}(),StickyFinger=function(){function StickyFinger(e,t,r,n){var s=this;this.isWebIDE=!1,this.asyncRequestMethod=\"tyroRequest\",this.host=t,this.contextMap={},this.contextUrlMap={},this.breakpointMap={},this.breakpointIdMap={},this.debuggerMap={},this.originConsoleAPI={},this.requestTaskId=0,this.stickyMsgQueue=[],this.wsMsgQueue=[],this.wsIsOpen=!1,this.instrumentId=r,this.stickyFlag=n.stickyFlag,this.fingerFlag=n.fingerFlag,this.remoteObjectParser=new RemoteObjectParser,this.hookConsole(),this.stickyFlag&&(setTimeout((function(){s.socketTask=my.connectSocket({url:\"wss://\"+getServerConfig().domain+\"/tyro/agent/\"+s.instrumentId,multiple:!0});var e=function(){if(!s.wsIsOpen){s.originConsoleAPI.log(\"[tyro-agent] WebSocket 连接成功\"),s.wsIsOpen=!0;for(var e=0,t=s.wsMsgQueue;e<t.length;e++){var r=t[e];s.socketTask.send({data:r})}s.wsMsgQueue=[]}};s.socketTask.onOpen((function(){e()})),s.socketTask.onClose((function(){s.originConsoleAPI.log(\"[tyro-agent] WebSocket 连接已关闭\")})),s.socketTask.onMessage((function(t){s.wsIsOpen||e(),s.handleStickyAsync(JSON.parse(t.data.data))}))}),2e3),this.breakpointsActive=!0,this.skipAllPauses=!1,this.breakStepType=BreakStepType.Non,this.stackDepth=0,this.pauseOnExceptions=\"none\",this.asyncCallStackDepth=0,this.lastStickyAsyncError=0,this.globalExecutionContext=e,this.evaluateOnCallFrameExpression=\"\",this.stickyNotSendPaused=!1,this.sendStickyParams=!1),this.fingerFlag&&(this.fingerId=0,this.fingerCache=[],this.fingerSendInterval=1e3,this.jsapiCallId=0,setInterval((function(){0!==s.fingerCache.length&&(s.sendPerf(\"Perf.trace\",s.fingerCache),s.fingerCache=[])}),this.fingerSendInterval)),this.isWebIDE=TyroUtil.isWebIDE(),this.isWebIDE&&(this.asyncRequestMethod=\"tyroRequestAsync\")}return StickyFinger.rewritePath=function(e){var t=e;return\".\"===t[0]&&(t=t.replace(\".\",\"\")),t=\"app://\"+(t=t.replace(\"tmp/data/build/\",\"\"))},StickyFinger.processRawContext=function(e){var t={path:this.rewritePath(e.path),contextId:String(e.contextId),scope:{0:[]},function:{},debuggerLine:e.debuggerLine,stickyLine:e.stickyLine};return e.scope&&Object.keys(e.scope).map((function(r){var n=e.scope[r],s=n.shift(),i=t.scope[s];t.scope[r]=i?i.concat(n.filter((function(e){return i.indexOf(e)<0}))):n})),e.function&&Object.keys(e.function).map((function(r){var n=e.function[r];t.function[r]={name:n[0],line:n[1]}})),t},StickyFinger.prototype.register=function(e,t){var r=String(e.contextId),n=StickyFinger.rewritePath(e.path);this.originConsoleAPI.log(\"[tyro-agent] register contextId \"+r+\" path \"+n),this.contextMap[r]||this.breakpointMap[r]?this.originConsoleAPI.warn(\"[tyro-agent] duplicate context register \"+r+\" \"+n):(this.contextMap[r]=StickyFinger.processRawContext(e),this.contextUrlMap[n]=r,this.breakpointMap[r]={},this.debuggerMap[r]=this.contextMap[r].debuggerLine.reduce((function(e,t){return e[t-1]=!0,e}),{}),this.stickyFlag&&this.xhrSend(ResponseEvent.ScriptSource,{scriptSource:t,scriptId:String(r),executionContextId:TYRO_EXECUTION_CONTEXT_ID,url:n}))},StickyFinger.prototype.sticky=function(e,t,r){if(!this.skipAllPauses&&this.breakpointsActive&&((this.debuggerMap[e]||{})[t]||(this.breakpointMap[e]||{})[t]||this.breakStepType===BreakStepType.NextSticky||this.breakStepType===BreakStepType.StepOver&&(new Error).stack.split(\"\\n\").length<=this.stackDepth||this.breakStepType===BreakStepType.StepOut&&(new Error).stack.split(\"\\n\").length<this.stackDepth||!0===this.sendStickyParams)){this.originConsoleAPI.log(\"[tyro-agent] sticky \"+e+\" \"+t),this.breakStepType=BreakStepType.Non;var n={};if(this.stickyNotSendPaused)this.originConsoleAPI.log(\"[tyro-agent] stickyNotSendPaused\");else{if(!this.sendStickyParams){this.originConsoleAPI.log(\"[tyro-agent] sticky sendStickyParams step 1\"),n={callFrames:null,reason:\"other\",hitBreakpoints:[]};var s=this.breakpointMap[e][t];s&&n.hitBreakpoints.push(s);var i=(new Error).stack.split(\"\\n\");return this.stackDepth=i.length,Agent.isPhone?n.callFrames=this.processCallFramesPhone(String(e),t,r,i):n.callFrames=this.processCallFrames(String(e),t,r,i),this.stickyParams=n,this.sendStickyParams=!0,\"(function(){\\n var localObject = {};\\n Agent.getScopeVariables().forEach(function (key) {\\n localObject[key] = (function(){try{return eval(key)}catch(e){return undefined}})();\\n });\\n Agent.inflateStickyParamsObject(localObject);\\n return true;\\n })()\"}this.originConsoleAPI.log(\"[tyro-agent] sticky sendStickyParams step 2\"),n=this.stickyParams,this.sendStickyParams=!1}this.originConsoleAPI.log(\"[tyro-agent] sticky params \"+TyroUtil.safeJSONStringify(n));var o=JSON.parse(this.xhrSend(ResponseEvent.Sticky,n));return this.handleSticky(o)}},StickyFinger.prototype.fingerEntry=function(e,t){var r=this.contextMap[e].path,n=this.contextMap[e].function[t],s=this.generateFingerId(),i={time:Date.now(),file:r,line:n.line,name:n.name,id:s,type:FingerType.Entry};return this.fingerCache.push(i),s},StickyFinger.prototype.fingerExit=function(e,t,r){var n=this.contextMap[e].path,s=this.contextMap[e].function[t],i={time:Date.now(),file:n,line:s.line,name:s.name,id:r,type:FingerType.Exit};this.fingerCache.push(i)},StickyFinger.prototype.sendPerf=function(e,t){self.bugmeAPI?self.bugmeAPI.send({method:e,params:t}):self.document?self.document.addEventListener(\"bugmeInjected\",(function(){self.bugmeAPI.send({method:e,params:t})})):self.addEventListener&&self.addEventListener(\"bugmeInjected\",(function(){self.bugmeAPI.send({method:e,params:t})}))},StickyFinger.prototype.consoleAPICalled=function(e,t){var r=this,n=e;return\"warn\"===e&&(n=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:n,args:Array.from(t).map((function(t){return r.remoteObjectParser.parseObject(t,e)})),executionContextId:TYRO_EXECUTION_CONTEXT_ID,timestamp:Date.now()}}},StickyFinger.prototype.hookConsole=function(){var e=this,t=this;Object.defineProperties(console,[\"debug\",\"log\",\"info\",\"warn\",\"error\",\"table\"].reduce((function(r,n){var s=console[n].bind(console);return e.originConsoleAPI[n]=s,r[n]={value:function(){var e=arguments;if(e.length){try{var r=/^(\\[framework\\]|dispatchEvent|onMessage push|unsupported protocol)/;if(\"string\"==typeof e[0]&&r.test(e[0]))return s.apply(null,e);var i=t.consoleAPICalled(n,e).params;i.args.forEach((function(e){\"error\"===e.subtype&&formatErrorRemoteObject(e)})),t.xhrSend(ResponseEvent.ConsoleAPICalled,i,null,!1)}catch(e){}return s.apply(null,e)}}},r}),{}))},StickyFinger.prototype.inflateStickyParamsObject=function(e){if(0!==this.stickyParams.callFrames.length){var t=this.remoteObjectParser.parseObject(e).objectId;this.stickyParams.callFrames[0].scopeChain.push({type:\"local\",name:this.stickyParams.callFrames[0].functionName,object:{className:\"Object\",description:\"Object\",objectId:t,type:\"object\"}})}},StickyFinger.prototype.processCallFrames=function(e,t,r,n){var s=this,i=[],o=n.slice(3,n.length).map((function(e){return e.substr(0,e.lastIndexOf(\":\")).replace(\" at \",\"\").replace(\" (\",\":\")})),a=0,c=!0;return o.map((function(t){var n=t.split(\":\"),o=n[0],p=s.contextMap[e].path,u=Number(n[n.length-1]),l=s.contextUrlMap[p]||\"none\",y=a+\":\"+u+\":\"+p;c&&(s.scopeVariables=void 0!==s.contextMap[e]?s.contextMap[e].scope[r]:[],c=!1);var h={callFrameId:y,functionName:o,location:{scriptId:l,lineNumber:u,columnNumber:0},url:p,scopeChain:[],this:{}};i.push(h),a+=1})),i},StickyFinger.prototype.processCallFramesPhone=function(e,t,r,n){var s=this,i=[],o=n.slice(2,n.length).map((function(e){return e.substr(0,e.lastIndexOf(\":\")).replace(\" at \",\"\").replace(\" (\",\":\").replace(\"@\",\":\")})),a=0,c=!0;return o.map((function(n){var o=n.split(\":\"),p=o[0],u=s.contextMap[e].path,l=Number(o[o.length-1]),y=s.contextUrlMap[u]||\"none\",h=a+\":\"+l+\":\"+u;c&&(s.scopeVariables=void 0!==s.contextMap[e]?s.contextMap[e].scope[r]:[],s.originConsoleAPI.log(\"scopeVariables \"+TyroUtil.safeJSONStringify(s.scopeVariables)),s.originConsoleAPI.log(\"scopeVariables \"+TyroUtil.safeJSONStringify(s.contextMap[e])+\" \"+s.contextMap[e].scope+\" \"+r),c=!1);var d={callFrameId:h,functionName:p,location:{scriptId:y,lineNumber:t,columnNumber:0},url:u,scopeChain:[],this:{}};i.push(d),a+=1})),i},StickyFinger.prototype.stickyAsyncLoop=function(){this.xhrSend(ResponseEvent.StickyAsync,{})},StickyFinger.prototype.xhrSendJSAPI=function(e,t,r,n){var s,i=this;if(e===ResponseEvent.Sticky){var o;this.stickyMsgQueue.length>0?(this.stickyMsgQueue.push({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t}),o=TyroUtil.safeJSONStringify(this.stickyMsgQueue),this.stickyMsgQueue=[]):o=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t}),my.call(\"showRemoteDebugMask\",{text:\" \",buttonTitle:\"断点命中\",hide:!1}),this.stickyNotSendPaused=!1;var a=Date.now(),c=my.callSync(\"tyroRequest\",{url:this.host+\"/tyro/agent\",method:\"POST\",headers:{\"Content-Type\":\"application/json;charset=UTF-8\",\"instrument-id\":this.instrumentId},data:o,timeout:6e5,blockTimeout:6e5,dataType:\"json\",requestTaskId:this.requestTaskId++});return my.call(\"showRemoteDebugMask\",{hide:!0}),c.error||null===c?(null===c?this.originConsoleAPI.error(\"[tyro-agent] xhrSend error result is \"+c):this.originConsoleAPI.error(\"[tyro-agent] xhrSend error \"+c.error+\" \"+c.errorMessage),Date.now()-a>=5e3?this.xhrSendJSAPI(e,t,r,n):TyroUtil.safeJSONStringify({method:\"default\"})):200!==c.status?(this.originConsoleAPI.error(\"[tyro-agent] xhrSend status fail \"+e+\" \"+c.status),TyroUtil.safeJSONStringify({method:\"default\"})):c.data}if(e===ResponseEvent.StickyAsync){var p=TyroUtil.safeJSONStringify({method:ResponseEvent.StickyAsync,params:t});this.originConsoleAPI.info(\"[tyro-agent] xhrSend async send \"+p),my.call(this.asyncRequestMethod,{url:this.host+\"/tyro/agent\",method:\"POST\",headers:{\"Content-Type\":\"application/json;charset=UTF-8\",\"instrument-id\":this.instrumentId},data:p,timeout:6e5,dataType:\"json\",requestTaskId:this.requestTaskId++,success:function(e){i.lastStickyAsyncError=0,i.stickyAsyncLoop(),200===e.status?(i.originConsoleAPI.info(\"[tyro-agent] xhrSend async success \"+e.status+\" \"+e.data),i.handleStickyAsync(JSON.parse(e.data))):i.originConsoleAPI.error(\"[tyro-agent] xhrSend async fail \"+e.status+\" \"+e.data)},fail:function(e){i.lastStickyAsyncError>=3?setTimeout((function(){i.stickyAsyncLoop()}),3e3):(i.lastStickyAsyncError+=1,i.stickyAsyncLoop()),i.originConsoleAPI.error(\"[tyro-agent] xhrSend async error \"+TyroUtil.safeJSONStringify(e))}})}switch(e){case ResponseEvent.ById:s={id:r,result:t};break;case ResponseEvent.ScriptSource:s={method:ResponseEvent.ScriptSource,params:t};break;case ResponseEvent.Resumed:s={method:ResponseEvent.Resumed,params:t};break;case ResponseEvent.ConsoleAPICalled:s={method:ResponseEvent.ConsoleAPICalled,params:t};break;default:return}n?this.stickyMsgQueue.push(s):this.wsIsOpen?this.socketTask.send({data:TyroUtil.safeJSONStringify(s)}):this.wsMsgQueue.push(TyroUtil.safeJSONStringify(s))},StickyFinger.prototype.xhrSend=function(e,t,r,n){var s=this;if(Agent.isPhone)return this.xhrSendJSAPI(e,t,r,n);var i,o=new XMLHttpRequest;if(e===ResponseEvent.Sticky){var a;if(o.open(\"POST\",this.host+\"/tyro/agent\",!1),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),this.stickyMsgQueue.length>0){this.stickyMsgQueue.push({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t});try{a=TyroUtil.safeJSONStringify(this.stickyMsgQueue)}catch(e){this.originConsoleAPI.error(e),a=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t})}finally{this.stickyMsgQueue=[]}}else a=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t});if(this.stickyNotSendPaused=!1,o.send(a),200===o.status)return o.responseText;throw new Error(\"[sticky-finger] xhrSend error \"+e+\" \"+o.status)}if(e===ResponseEvent.StickyAsync)return o.open(\"POST\",this.host+\"/tyro/agent\",!0),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),o.onload=function(){if(s.lastStickyAsyncError=0,s.stickyAsyncLoop(),4!==o.readyState||200!==o.status)throw new Error(\"[tyro-agent] xhrSend async fail \"+e+\" \"+o.readyState+\" \"+o.status);s.handleStickyAsync(JSON.parse(o.responseText))},o.onerror=function(){throw s.lastStickyAsyncError>=3?setTimeout((function(){s.stickyAsyncLoop()}),3e3):(s.lastStickyAsyncError+=1,s.stickyAsyncLoop()),new Error(\"[tyro-agent] xhrSend async error \"+e+\" \"+o.readyState+\" \"+o.status)},void o.send(TyroUtil.safeJSONStringify({method:ResponseEvent.StickyAsync,params:t}));switch(o.open(\"POST\",this.host+\"/tyro/agent\",!0),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),o.onload=function(){if(4!==o.readyState||200!==o.status)throw new Error(\"[tyro-agent] xhrSend async fail \"+e+\" \"+o.readyState+\" \"+o.status)},o.onerror=function(){throw new Error(\"[tyro-agent] xhrSend async error \"+e+\" \"+o.readyState+\" \"+o.status)},e){case ResponseEvent.ById:i={id:r,result:t};break;case ResponseEvent.ScriptSource:i={method:ResponseEvent.ScriptSource,params:t};break;case ResponseEvent.Resumed:i={method:ResponseEvent.Resumed,params:t};break;case ResponseEvent.ConsoleAPICalled:i={method:ResponseEvent.ConsoleAPICalled,params:t};break;default:return}n?this.stickyMsgQueue.push(i):o.send(TyroUtil.safeJSONStringify(i))},StickyFinger.prototype.handleSticky=function(e){var t=e.id,r=e.method,n=e.params;switch(r){case RequestMethod.DiscardConsoleEntries:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] DiscardConsoleEntries success\"),\"true\";case RequestMethod.CallFunctionOn:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] CallFunctionOn TODO sticky\"),\"true\";case RequestMethod.CompileScript:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] CompileScript success, \"+TyroUtil.safeJSONStringify(n)),\"true\";case RequestMethod.SetBreakpointsActive:return this.stickyNotSendPaused=!0,this.breakpointsActive=n.active,this.originConsoleAPI.log(\"[tyro-agent] SetBreakpointsActive success, breakpointsActive \"+this.breakpointsActive),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetSkipAllPauses:return this.stickyNotSendPaused=!0,this.skipAllPauses=n.skip,this.originConsoleAPI.log(\"[tyro-agent] SetSkipAllPauses success, skipAllPauses \"+this.skipAllPauses),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.Resume:return this.xhrSend(ResponseEvent.Resumed,{}),this.originConsoleAPI.log(\"[tyro-agent] Resume success\"),\"false\";case RequestMethod.StepInto:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.NextSticky,this.originConsoleAPI.log(\"[tyro-agent] StepInto success\"),\"false\";case RequestMethod.StepOver:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.StepOver,this.originConsoleAPI.log(\"[tyro-agent] StepOver success\"),\"false\";case RequestMethod.StepOut:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.StepOut,this.originConsoleAPI.log(\"[tyro-agent] StepOut success\"),\"false\";case RequestMethod.GetPossibleBreakpoints:return this.stickyNotSendPaused=!0,this.getPossibleBreakpoints(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetBreakpointByUrl:return this.stickyNotSendPaused=!0,this.setBreakpointByUrl(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetBreakpoint:return this.stickyNotSendPaused=!0,this.setBreakpoint(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.RemoveBreakpoint:return this.stickyNotSendPaused=!0,this.removeBreakpoint(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.REPL:return this.stickyNotSendPaused=!0,this.breakStepType=BreakStepType.NextSticky,\"(function(){(function(){\"+n.statement+\"})();return true})()\";case RequestMethod.GetVariableValue:this.stickyNotSendPaused=!0;var s=e.params;return this.breakStepType=BreakStepType.NextSticky,\"(function(){(function(){\\n Agent.variableValue({\"+s.map((function(e){return e+\": (function(){try{return \"+e+\"}catch(e){return undefined}})()\"})).join(\",\")+\"})\\n })();return true})()\";case RequestMethod.SetPauseOnExceptions:return this.stickyNotSendPaused=!0,this.setPauseOnExceptions(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetAsyncCallStackDepth:return this.stickyNotSendPaused=!0,this.setAsyncCallStackDepth(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.EvaluateOnCallFrame:return this.stickyNotSendPaused=!0,this.evaluateOnCallFrameExpression=n.expression,this.breakStepType=BreakStepType.NextSticky,\"(function(){\\n var tyroRet,tyroErr;\\n try{tyroRet=eval(Agent.getEvaluateOnCallFrameExpression())}\\n catch(e){tyroErr=e}\\n Agent.evaluateOnCallFrame(\"+t+\",tyroRet,tyroErr,\"+n.generatePreview+\");\\n return true;\\n })()\";case RequestMethod.GetProperties:return this.stickyNotSendPaused=!0,this.getProperties(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";default:return this.breakStepType=BreakStepType.NextSticky,\"true\"}},StickyFinger.prototype.handleStickyAsync=function(e){var t=e.id,r=e.method,n=e.params;switch(this.originConsoleAPI.log(\"[tyro-agent] handleStickyAsync \"+t+\", \"+r+\", \"+n),r){case RequestMethod.DiscardConsoleEntries:this.originConsoleAPI.log(\"[tyro-agent] DiscardConsoleEntries success\");break;case RequestMethod.Evaluate:this.originConsoleAPI.log(\"[tyro-agent] Evaluate start, expression \"+n.expression);var s=this.evaluate(this.globalExecutionContext,t,n);this.originConsoleAPI.log(\"[tyro-agent] Evaluate success, expression \"+n.expression+\", result \"+TyroUtil.safeJSONStringify(s));break;case RequestMethod.CallFunctionOn:this.originConsoleAPI.log(\"[tyro-agent] CallFunctionOn TODO stickyAsync\");break;case RequestMethod.CompileScript:this.originConsoleAPI.log(\"[tyro-agent] CompileScript success, params \"+TyroUtil.safeJSONStringify(n));break;case RequestMethod.SetBreakpointsActive:this.breakpointsActive=n.active,this.originConsoleAPI.log(\"[tyro-agent] SetBreakpointsActive success, breakpointsActive \"+this.breakpointsActive);break;case RequestMethod.SetSkipAllPauses:this.skipAllPauses=n.skip,this.originConsoleAPI.log(\"[tyro-agent] SetSkipAllPauses success, skipAllPauses \"+this.skipAllPauses);break;case RequestMethod.Pause:this.breakStepType=BreakStepType.NextSticky,this.originConsoleAPI.log(\"[tyro-agent] Pause success\");break;case RequestMethod.GetPossibleBreakpoints:this.getPossibleBreakpoints(t,n);break;case RequestMethod.SetBreakpointByUrl:this.setBreakpointByUrl(t,n);break;case RequestMethod.SetBreakpoint:this.setBreakpoint(t,n);break;case RequestMethod.RemoveBreakpoint:this.removeBreakpoint(t,n);break;case RequestMethod.SetPauseOnExceptions:this.setPauseOnExceptions(t,n);break;case RequestMethod.SetAsyncCallStackDepth:this.setAsyncCallStackDepth(t,n);break;case RequestMethod.GetProperties:this.getProperties(t,n)}},StickyFinger.prototype.evaluateOnCallFrame=function(e,t,r,n){var s;if(r){var i=this.remoteObjectParser.parseObject(r);formatErrorRemoteObject(i),s={exceptionDetails:{columnNumber:20,exception:i,exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:i}}else s={result:this.remoteObjectParser.parseObject(t)};return this.xhrSend(ResponseEvent.ById,s,e,!0),s},StickyFinger.prototype.evaluate=function(executionContext,id,params){var returnValue,error,result;try{returnValue=function(expression){return\"function\"==typeof eval?eval(expression):Agent.evalReference(expression)}.call(executionContext,params.expression)}catch(e){error=e}if(error){var errorRemoteObject=this.remoteObjectParser.parseObject(error);formatErrorRemoteObject(errorRemoteObject),result={exceptionDetails:{columnNumber:20,exception:errorRemoteObject,exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:errorRemoteObject}}else result={result:this.remoteObjectParser.parseObject(returnValue)};return this.xhrSend(ResponseEvent.ById,result,id),result},StickyFinger.prototype.getPossibleBreakpoints=function(e,t,r){var n=t.scriptId,s=t.startLine,i=t.endLine===t.startLine?t.endLine+1:t.endLine,o={locations:[]};if(this.contextMap[n])for(var a=this.contextMap[n].stickyLine,c=s;c<i;c++)a.includes(c)&&o.locations.push({scriptId:n,lineNumber:c,columnNumber:0});else this.originConsoleAPI.warn(\"[tyro-agent] getPossibleBreakpoints no scriptId \"+n+\" in contextMap\");this.originConsoleAPI.log(\"[tyro-agent] getPossibleBreakpoints success, result: \"+TyroUtil.safeJSONStringify(o)),this.xhrSend(ResponseEvent.ById,o,e,r)},StickyFinger.prototype.setBreakpointByUrl=function(e,t,r){var n=t.scriptId,s=t.url,i=t.lineNumber;if(this.contextMap[n])if(this.contextMap[n].stickyLine.includes(i)){var o=n+\":\"+i+\":0:\"+s,a={breakpointId:o,locations:[{scriptId:n,lineNumber:i,columnNumber:0}]};this.breakpointMap[n][i]=o,this.breakpointIdMap[o]={contextId:n,line:i},this.originConsoleAPI.log(\"[tyro-agent] setBreakpointByUrl success, scriptId: \"+n+\", url: \"+s+\", lineNumber: \"+i),this.xhrSend(ResponseEvent.ById,a,e,r)}else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpointByUrl not sticky line, scriptId: \"+n+\", url: \"+s+\", lineNumber: \"+i);else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpointByUrl no contextMap, scriptId: \"+n)},StickyFinger.prototype.setBreakpoint=function(e,t,r){var n=t.scriptId,s=t.lineNumber;if(this.contextMap[n])if(this.contextMap[n].stickyLine.includes(s)){var i=n+\":\"+s+\":0\",o={breakpointId:i,actualLocation:{scriptId:n,lineNumber:s,columnNumber:0}};this.breakpointMap[n][s]=i,this.breakpointIdMap[i]={contextId:n,line:s},this.originConsoleAPI.log(\"[tyro-agent] setBreakpoint success, scriptId: \"+n+\", lineNumber: \"+s),this.xhrSend(ResponseEvent.ById,o,e,r)}else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpoint not sticky line, scriptId: \"+n+\", lineNumber: \"+s);else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpoint no contextMap, scriptId: \"+n)},StickyFinger.prototype.removeBreakpoint=function(e,t){var r=t.breakpointId,n=this.breakpointIdMap[r];n||this.originConsoleAPI.warn(\"[tyro-agent] removeBreakpoint no breakpointId \"+r);var s=n.contextId,i=n.line;delete this.breakpointMap[s][i],this.originConsoleAPI.log(\"[tyro-agent] removeBreakpoint success, breakpointId: \"+r+\", scriptId: \"+s+\", line: \"+i)},StickyFinger.prototype.setPauseOnExceptions=function(e,t){t&&[\"none\",\"uncaught\",\"all\"].includes(t.state)?(this.pauseOnExceptions=t.state,this.originConsoleAPI.log(\"[tyro-agent] setPauseOnExceptions success, pauseOnExceptions state \"+this.pauseOnExceptions)):this.originConsoleAPI.warn(\"[tyro-agent] setPauseOnExceptions state invalid: \"+TyroUtil.safeJSONStringify(t))},StickyFinger.prototype.setAsyncCallStackDepth=function(e,t){!t||\"number\"!=typeof t.maxDepth||t.maxDepth<0?this.originConsoleAPI.warn(\"[tyro-agent] setAsyncCallStackDepth maxDepth invalid: \"+TyroUtil.safeJSONStringify(t)):(this.asyncCallStackDepth=t.maxDepth,this.originConsoleAPI.log(\"[tyro-agent] setAsyncCallStackDepth success, maxDepth \"+this.asyncCallStackDepth))},StickyFinger.prototype.getProperties=function(e,t,r){this.xhrSend(ResponseEvent.ById,this.remoteObjectParser.getProperties(t),e,r)},StickyFinger.prototype.generateFingerId=function(){return this.fingerId+=1,this.fingerId},StickyFinger}(),Agent=function(){function e(t,r){if(e.singleton)return e.singleton;this.host=\"https://\"+getServerConfig().domain,this.stickyFinger=new StickyFinger(\"undefined\"!=typeof window?window:self,this.host,t,r)}return e.getShadowMethod=function(){this.globalReference=self,\"function\"==typeof eval?this.evalReference=eval:\"function\"==typeof __eval&&(this.evalReference=__eval)},e.setShadowMethod=function(){this.globalReference.eval=this.evalReference},e.setInstrumentId=function(e){this.instrumentId=e},e.register=function(t,r){if(!e.singleton){if(!this.instrumentId&&\"undefined\"!=typeof my)try{this.instrumentId=getStartupParams().tyroId}catch(e){}e.instance(this.instrumentId,t)}e.singleton.stickyFinger.register(t,r)},e.sticky=function(t,r,n){return e.singleton.stickyFinger.sticky(t,r,n)},e.getEvaluateOnCallFrameExpression=function(){return e.singleton.stickyFinger.evaluateOnCallFrameExpression},e.evaluateOnCallFrame=function(t,r,n,s){return e.singleton.stickyFinger.evaluateOnCallFrame(t,r,n,s)},e.getScopeVariables=function(){return e.singleton.stickyFinger.scopeVariables},e.inflateStickyParamsObject=function(t){return e.singleton.stickyFinger.inflateStickyParamsObject(t)},e.entry=function(t,r){return e.singleton.stickyFinger.fingerEntry(t,r)},e.exit=function(t,r,n){e.singleton.stickyFinger.fingerExit(t,r,n)},e.instance=function(t,r){e.singleton=new e(t,r)},e.isPhone=!0,e.instrumentId=null,e}();Agent.getShadowMethod();var globalReference=\"undefined\"!=typeof window?window:self;globalReference.Agent||(globalReference.StickyFinger=StickyFinger,globalReference.Agent=Agent)}();"}
|