PageSourceSearch

https://www.cztn.gov.cn/ghwd/znwd/assets/js/disable-devtool-2ckqiQ9H.js

js cztn.gov.cn collected 2026-10-02 21:43:48 UTC 16,987 bytes, 1 lines download raw bytes

1import{g as e}from"./crypto-js-5zBwxESt.js";var t,n={exports:{}};const i=e((t||(t=1,n.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){t&&n(e.prototype,t),i&&n(e,i),Object.defineProperty(e,"prototype",{writable:!1})}function o(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(t=e))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=u(e);return a(this,t?(n=u(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments))}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function s(e,t){var n,i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return i&&(e=i),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,u=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){u=!0,o=e},f:function(){try{r||null==i.return||i.return()}finally{if(u)throw o}}}}function d(){if(v.url)window.location.href=v.url;else if(v.rewriteHTML)try{document.documentElement.innerHTML=v.rewriteHTML}catch(e){document.documentElement.innerText=v.rewriteHTML}else{try{window.opener=null,window.open("","_self"),window.close(),window.history.back()}catch(e){}setTimeout((function(){window.location.href=v.timeOutUrl||"https://theajack.github.io/disable-devtool/404.html?h=".concat(encodeURIComponent(location.host))}),500)}}var v={md5:"",ondevtoolopen:d,ondevtoolclose:null,url:"",timeOutUrl:"",tkName:"ddtk",interval:500,disableMenu:!0,stopIntervalTime:5e3,clearIntervalWhenDevOpenTrigger:!1,detectors:[0,1,3,4,5,6,7],clearLog:!0,disableSelect:!1,disableCopy:!1,disableCut:!1,disablePaste:!1,ignore:null,disableIframeParents:!0,seo:!0,rewriteHTML:""},h=["detectors","ondevtoolclose","ignore"];function p(t){var n,i=0<arguments.length&&void 0!==t?t:{};for(n in v){var o=n;void 0===i[o]||e(v[o])!==e(i[o])&&-1===h.indexOf(o)||(v[o]=i[o])}"function"==typeof v.ondevtoolclose&&!0===v.clearIntervalWhenDevOpenTrigger&&(v.clearIntervalWhenDevOpenTrigger=!1)}function y(){return(new Date).getTime()}function w(e){var t=y();return e(),y()-t}function b(e,t){function n(n){return function(){e&&e();var i=n.apply(void 0,arguments);return t&&t(),i}}var i=window.alert,o=window.confirm,r=window.prompt;try{window.alert=n(i),window.confirm=n(o),window.prompt=n(r)}catch(u){}}var m={iframe:!1,pc:!1,qqBrowser:!1,firefox:!1,macos:!1,edge:!1,oldEdge:!1,ie:!1,iosChrome:!1,iosEdge:!1,chrome:!1,seoBot:!1,mobile:!1};function g(){function e(e){return-1!==t.indexOf(e)}var t=navigator.userAgent.toLowerCase(),n=function(){var e,t=(e=navigator).platform;if("number"==typeof(e=e.maxTouchPoints))return 1<e;if("string"==typeof t){if(e=t.toLowerCase(),/(mac|win)/i.test(e))return!1;if(/(android|iphone|ipad|ipod|arch)/i.test(e))return!0}return/(iphone|ipad|ipod|ios|android)/i.test(navigator.userAgent.toLowerCase())}(),i=!!window.top&&window!==window.top,o=!n,r=e("qqbrowser"),u=e("firefox"),c=e("macintosh"),a=e("edge"),l=a&&!e("chrome"),f=l||e("trident")||e("msie"),s=e("crios"),d=e("edgios"),v=e("chrome")||s,h=!n&&/(googlebot|baiduspider|bingbot|applebot|petalbot|yandexbot|bytespider|chrome\-lighthouse|moto g power)/i.test(t);Object.assign(m,{iframe:i,pc:o,qqBrowser:r,firefox:u,macos:c,edge:a,oldEdge:l,ie:f,iosChrome:s,iosEdge:d,chrome:v,seoBot:h,mobile:n})}function T(){for(var e=function(){for(var e={},t=0;t<500;t++)e["".concat(t)]="".concat(t);return e}(),t=[],n=0;n<50;n++)t.push(e);return t}var O,S,k,D=window.console||{log:function(){},table:function(){},clear:function(){}};function x(){v.clearLog&&k()}var P="",j=!1;function E(){var e=v.ignore;if(e){if("function"==typeof e)return e();if(0!==e.length){var t=location.href;if(P===t)return j;P=t;var n,i=!1,o=s(e);try{for(o.s();!(n=o.n()).done;){var r=n.value;if("string"==typeof r){if(-1!==t.indexOf(r)){i=!0;break}}else if(r.test(t)){i=!0;break}}}catch(u){o.e(u)}finally{o.f()}return j=i}}}var I=function(){return!1};function C(e){var t,n,i=74,o=73,r=85,u=83,c=123,a=m.macos?function(e,t){return e.metaKey&&e.altKey&&
1(t===o||t===i)}:function(e,t){return e.ctrlKey&&e.shiftKey&&(t===o||t===i)},l=m.macos?function(e,t){return e.metaKey&&e.altKey&&t===r||e.metaKey&&t===u}:function(e,t){return e.ctrlKey&&(t===u||t===r)};e.addEventListener("keydown",(function(t){var n=(t=t||e.event).keyCode||t.which;if(n===c||a(t,n)||l(t,n))return _(e,t)}),!0),t=e,v.disableMenu&&t.addEventListener("contextmenu",(function(e){if("touch"!==e.pointerType)return _(t,e)})),n=e,v.disableSelect&&L(n,"selectstart"),n=e,v.disableCopy&&L(n,"copy"),n=e,v.disableCut&&L(n,"cut"),n=e,v.disablePaste&&L(n,"paste")}function L(e,t){e.addEventListener(t,(function(t){return _(e,t)}))}function _(e,t){if(!E()&&!I())return(t=t||e.event).returnValue=!1,t.preventDefault(),!1}var A,R=!1,H={};function U(e){H[e]=!1}function q(){for(var e in H)if(H[e])return R=!0;return R=!1}(te=A=A||{})[te.Unknown=-1]="Unknown",te[te.RegToString=0]="RegToString",te[te.DefineId=1]="DefineId",te[te.Size=2]="Size",te[te.DateToString=3]="DateToString",te[te.FuncToString=4]="FuncToString",te[te.Debugger=5]="Debugger",te[te.Performance=6]="Performance",te[te.DebugLib=7]="DebugLib";var z=function(){function e(n){var i=n.type;n=void 0===(n=n.enabled)||n,t(this,e),this.type=A.Unknown,this.enabled=!0,this.type=i,this.enabled=n,this.enabled&&(i=this,K.push(i),this.init())}return i(e,[{key:"onDevToolOpen",value:function(){var e;v.clearIntervalWhenDevOpenTrigger&&X(),window.clearTimeout(W),v.ondevtoolopen(this.type,d),e=this.type,H[e]=!0}},{key:"init",value:function(){}}]),e}(),B=function(){r(n,z);var e=l(n);function n(){return t(this,n),e.call(this,{type:A.DebugLib})}return i(n,[{key:"init",value:function(){}},{key:"detect",value:function(){var e;(!0===(null==(e=null==(e=window.eruda)?void 0:e._devTools)?void 0:e._isShow)||window._vcOrigConsole&&window.document.querySelector("#__vconsole.vc-toggle"))&&this.onDevToolOpen()}}],[{key:"isUsing",value:function(){return!!window.eruda||!!window._vcOrigConsole}}]),n}(),M=0,W=0,K=[],F=0;function V(e){function t(){l=!0}function n(){l=!1}var i,o,r,u,c,a,l=!1;function f(){(a[u]===r?o:i)()}b(t,n),i=n,o=t,void 0!==(a=document).hidden?(r="hidden",c="visibilitychange",u="visibilityState"):void 0!==a.mozHidden?(r="mozHidden",c="mozvisibilitychange",u="mozVisibilityState"):void 0!==a.msHidden?(r="msHidden",c="msvisibilitychange",u="msVisibilityState"):void 0!==a.webkitHidden&&(r="webkitHidden",c="webkitvisibilitychange",u="webkitVisibilityState"),a.removeEventListener(c,f,!1),a.addEventListener(c,f,!1),M=window.setInterval((function(){if(!(e.isSuspend||l||E())){var t,n,i=s(K);try{for(i.s();!(t=i.n()).done;){var o=t.value;U(o.type),o.detect(F++)}}catch(r){i.e(r)}finally{i.f()}x(),"function"==typeof v.ondevtoolclose&&(n=R,!q()&&n&&v.ondevtoolclose())}}),v.interval),W=setTimeout((function(){m.pc||B.isUsing()||X()}),v.stopIntervalTime)}function X(){window.clearInterval(M)}var N=8;function $(e){for(var t=function(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,i=-271733879,o=-1732584194,r=271733878,u=0;u<e.length;u+=16){var c=n,a=i,l=o,f=r;n=J(n,i,o,r,e[u+0],7,-680876936),r=J(r,n,i,o,e[u+1],12,-389564586),o=J(o,r,n,i,e[u+2],17,606105819),i=J(i,o,r,n,e[u+3],22,-1044525330),n=J(n,i,o,r,e[u+4],7,-176418897),r=J(r,n,i,o,e[u+5],12,1200080426),o=J(o,r,n,i,e[u+6],17,-1473231341),i=J(i,o,r,n,e[u+7],22,-45705983),n=J(n,i,o,r,e[u+8],7,1770035416),r=J(r,n,i,o,e[u+9],12,-1958414417),o=J(o,r,n,i,e[u+10],17,-42063),i=J(i,o,r,n,e[u+11],22,-1990404162),n=J(n,i,o,r,e[u+12],7,1804603682),r=J(r,n,i,o,e[u+13],12,-40341101),o=J(o,r,n,i,e[u+14],17,-1502002290),n=Q(n,i=J(i,o,r,n,e[u+15],22,1236535329),o,r,e[u+1],5,-165796510),r=Q(r,n,i,o,e[u+6],9,-1069501632),o=Q(o,r,n,i,e[u+11],14,643717713),i=Q(i,o,r,n,e[u+0],20,-373897302),n=Q(n,i,o,r,e[u+5],5,-701558691),r=Q(r,n,i,o,e[u+10],9,38016083),o=Q(o,r,n,i,e[u+15],14,-660478335),i=Q(i,o,r,n,e[u+4],20,-405537848),n=Q(n,i,o,r,e[u+9],5,568446438),r=Q(r,n,i,o,e[u+14],9,-1019803690),o=Q(o,r,n,i,e[u+3],14,-187363961),i=Q(i,o,r,n,e[u+8],20,1163531501),n=Q(n,i,o,r,e[u+13],5,-1444681467),r
1=Q(r,n,i,o,e[u+2],9,-51403784),o=Q(o,r,n,i,e[u+7],14,1735328473),n=Y(n,i=Q(i,o,r,n,e[u+12],20,-1926607734),o,r,e[u+5],4,-378558),r=Y(r,n,i,o,e[u+8],11,-2022574463),o=Y(o,r,n,i,e[u+11],16,1839030562),i=Y(i,o,r,n,e[u+14],23,-35309556),n=Y(n,i,o,r,e[u+1],4,-1530992060),r=Y(r,n,i,o,e[u+4],11,1272893353),o=Y(o,r,n,i,e[u+7],16,-155497632),i=Y(i,o,r,n,e[u+10],23,-1094730640),n=Y(n,i,o,r,e[u+13],4,681279174),r=Y(r,n,i,o,e[u+0],11,-358537222),o=Y(o,r,n,i,e[u+3],16,-722521979),i=Y(i,o,r,n,e[u+6],23,76029189),n=Y(n,i,o,r,e[u+9],4,-640364487),r=Y(r,n,i,o,e[u+12],11,-421815835),o=Y(o,r,n,i,e[u+15],16,530742520),n=Z(n,i=Y(i,o,r,n,e[u+2],23,-995338651),o,r,e[u+0],6,-198630844),r=Z(r,n,i,o,e[u+7],10,1126891415),o=Z(o,r,n,i,e[u+14],15,-1416354905),i=Z(i,o,r,n,e[u+5],21,-57434055),n=Z(n,i,o,r,e[u+12],6,1700485571),r=Z(r,n,i,o,e[u+3],10,-1894986606),o=Z(o,r,n,i,e[u+10],15,-1051523),i=Z(i,o,r,n,e[u+1],21,-2054922799),n=Z(n,i,o,r,e[u+8],6,1873313359),r=Z(r,n,i,o,e[u+15],10,-30611744),o=Z(o,r,n,i,e[u+6],15,-1560198380),i=Z(i,o,r,n,e[u+13],21,1309151649),n=Z(n,i,o,r,e[u+4],6,-145523070),r=Z(r,n,i,o,e[u+11],10,-1120210379),o=Z(o,r,n,i,e[u+2],15,718787259),i=Z(i,o,r,n,e[u+9],21,-343485551),n=ee(n,c),i=ee(i,a),o=ee(o,l),r=ee(r,f)}return Array(n,i,o,r)}(function(e){for(var t=Array(),n=(1<<N)-1,i=0;i<e.length*N;i+=N)t[i>>5]|=(e.charCodeAt(i/N)&n)<<i%32;return t}(e),e.length*N),n="0123456789abcdef",i="",o=0;o<4*t.length;o++)i+=n.charAt(t[o>>2]>>o%4*8+4&15)+n.charAt(t[o>>2]>>o%4*8&15);return i}function G(e,t,n,i,o,r){return ee((t=ee(ee(t,e),ee(i,r)))<<o|t>>>32-o,n)}function J(e,t,n,i,o,r,u){return G(t&n|~t&i,e,t,o,r,u)}function Q(e,t,n,i,o,r,u){return G(t&i|n&~i,e,t,o,r,u)}function Y(e,t,n,i,o,r,u){return G(t^n^i,e,t,o,r,u)}function Z(e,t,n,i,o,r,u){return G(n^(t|~i),e,t,o,r,u)}function ee(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}var te=function(){r(n,z);var e=l(n);function n(){return t(this,n),e.call(this,{type:A.RegToString,enabled:m.qqBrowser||m.firefox})}return i(n,[{key:"init",value:function(){var e=this;this.lastTime=0,this.reg=/./,O(this.reg),this.reg.toString=function(){var t;return m.qqBrowser?(t=(new Date).getTime(),e.lastTime&&t-e.lastTime<100?e.onDevToolOpen():e.lastTime=t):m.firefox&&e.onDevToolOpen(),""}}},{key:"detect",value:function(){O(this.reg)}}]),n}(),ne=function(){r(n,z);var e=l(n);function n(){return t(this,n),e.call(this,{type:A.DefineId})}return i(n,[{key:"init",value:function(){var e=this;this.div=document.createElement("div"),this.div.__defineGetter__("id",(function(){e.onDevToolOpen()})),Object.defineProperty(this.div,"id",{get:function(){e.onDevToolOpen()}})}},{key:"detect",value:function(){O(this.div)}}]),n}(),ie=function(){r(n,z);var e=l(n);function n(){return t(this,n),e.call(this,{type:A.Size,enabled:!m.iframe&&!m.edge})}return i(n,[{key:"init",value:function(){var e=this;this.checkWindowSizeUneven(),window.addEventListener("resize",(function(){setTimeout((function(){e.checkWindowSizeUneven()}),100)}),!0)}},{key:"detect",value:function(){}},{key:"checkWindowSizeUneven",value:function(){if(!1!==(t=function(){if(oe(window.devicePixelRatio))return window.devicePixelRatio;var e=window.screen;return!(oe(e)||!e.deviceXDPI||!e.logicalXDPI)&&e.deviceXDPI/e.logicalXDPI}())){var e=200<window.outerWidth-window.innerWidth*t,t=300<window.outerHeight-window.innerHeight*t;if(e||t)return this.onDevToolOpen(),!1;U(this.type)}return!0}}]),n}();function oe(e){return null!=e}var re,ue=function(){r(n,z);var e=l(n);function n(){return t(this,n),e.call(this,{type:A.DateToString,enabled:!m.iosChrome&&!m.iosEdge})}return i(n,[{key:"init",value:function(){var e=this;this.count=0,this.date=new Date,this.date.toString=function(){return e.count++,""}}},{key:"detect",value:function(){this.count=0,O(this.date),x(),2<=this.count&&this.onDevToolOpen()}}]),n}(),ce=function(){r(n,z);var e=l(n);function n(){return t(this,n),e.call(this,{type:A.FuncToString,enabled:!m.iosChrome&&!m.iosEdge})}return i(n,[{key:"init",value:function(){var e=this;this.count=0,this.func=function(){},this.func.toString=function(){return e.count++,""}}},{key:"detect",value:function(){this.count=0,O(this.func),x(),2<=this.count&&this.onDevToolOpen()}}]),n}(),ae=function(){r(n,z);var e=l(n);function n(){return t(this,n),e.call(this,{type:A.Debugger,enabled:m.iosChrome||m.iosEdge})}return i(n,[{key:"detect",value:function(){var e=y();100<y()-e&&this.onDevToolOpen()}}]),n}(),le=function(){r(n,z);var e=l(n);function n(){return t(this,n),e.call(this,{type:A.Performance,enabled:m.chrome||!m.mobile})}return i(n,[{key:"init",value:function(){this.maxPrintTime=0,this.largeObjectArray=T()}},{key:"detect",value:function(){var e=this,t=w((function(){S(e.largeObjectArray)})),n=w((function(){O(e.largeObjectArray)}));if(this.maxPrintTime=Math.max(this.maxPrintTime,n),x(),0===t||0===this.maxPrintTime)return!1;t>10*this.maxPrintTime&&this.onDevToolOpen()}}]),n}(),fe=(o(re={},A.RegToString,te),o(re,A.DefineId,ne),o(re,A.Size,ie),o(re,A.DateToString,ue),o(re,A.FuncToString,ce),o(re,A.Debugger,ae),o(re,A.Performance,le),o(re,A.DebugLib,B),re),se=Object.assign((function(e){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return{success:!e,reason:e}}if(se.isRunning)return t("already running");if(g(),k=m.ie?(O=function(){return D.log.apply(D,arguments)},S=function(){return D.table.apply(D,arguments)},function(){return D.clear()}):(O=D.log,S=D.table,D.clear),p(e),v.md5&&$((n=v.tkName,i=window.location.search,o=window.location.hash,""!==(i=""===i&&""!==o?"?".concat(o.split("?")[1]):i)&&void 0!==i&&(o=new RegExp("(^|&)"+n+"=([^&]*)(&|$)","i"),null!=(n=i.substr(1).match(o)
1))?unescape(n[2]):""))===v.md5)return t("token passed");var n,i,o;if(v.seo&&m.seoBot)return t("seobot");se.isRunning=!0,V(se);var r=se,u=(I=function(){return r.isSuspend},window.top),c=window.parent;if(C(window),v.disableIframeParents&&u&&c&&u!==window){for(;c!==u;)C(c),c=c.parent;C(u)}return("all"===v.detectors?Object.keys(fe):v.detectors).forEach((function(e){new fe[e]})),t()}),{isRunning:!1,isSuspend:!1,md5:$,version:"0.3.7",DetectorType:A,isDevToolOpened:q});return(te=function(){if("undefined"==typeof window||!window.document)return null;var e=document.querySelector("[disable-devtool-auto]");if(!e)return null;var t=["disable-menu","disable-select","disable-copy","disable-cut","disable-paste","clear-log"],n=["interval"],i={};return["md5","url","tk-name","detectors"].concat(t,n).forEach((function(o){var r=e.getAttribute(o);null!==r&&(-1!==n.indexOf(o)?r=parseInt(r):-1!==t.indexOf(o)?r="false"!==r:"detector"===o&&"all"!==r&&(r=r.split(" ")),i[function(e){if(-1===e.indexOf("-"))return e;var t=!1;return e.split("").map((function(e){return"-"===e?(t=!0,""):t?(t=!1,e.toUpperCase()):e})).join("")}(o)]=r)})),i}())&&se(te),se}()),n.exports));export{i as d};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.