PageSourceSearch

https://mytehran.ir/9.3639098f9fc59e9d8b2a.js

js mytehran.ir collected 2026-10-02 22:06:16 UTC 11,878 bytes, 2 lines download raw bytes

1/*! For license information please see 9.3639098f9fc59e9d8b2a.js.LICENSE.txt */
2(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{"50Ks":function(t,e,n){"use strict";var i;function r(t,e,n){var r=document.getElementById(t);if(!r)return Promise.reject(new Error('Map container "'+t+'" was not found.'));var s=r.querySelector(".neshan-maplibre-container");s&&r.removeChild(s);var o=document.createElement("div");return o.className="neshan-maplibre-container",Object.assign(o.style,{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",zIndex:"0"}),r.style.position=r.style.position||"relative",r.insertBefore(o,r.firstChild),(window.maplibregl?Promise.resolve(window.maplibregl.default||window.maplibregl):i||(i=new Promise((function(t,e){var n=document.createElement("link");n.rel="stylesheet",n.href="https://static.neshan.org/sdk/maplibre/5.24.3/neshan-maplibre-sdk.css",document.head.appendChild(n);var i=document.createElement("script");i.src="https://static.neshan.org/sdk/maplibre/5.24.3/neshan-maplibre-sdk.umd.js",i.onload=function(){return t(window.maplibregl.default||window.maplibregl)},i.onerror=function(){return e(new Error("Neshan MapLibre SDK could not be loaded."))},document.head.appendChild(i)})))).then((function(t){var i=new t.Map({container:o,style:"assets/map/neshan-style.json",center:[e[1],e[0]],zoom:n+-1,minZoom:1,maxZoom:20,trackResize:!0,apiKey:"web.2b30214b13de430b84542b4076be456e",rtl:{lazy:!1},attributionControl:!1});return i.addControl(new t.NavigationControl,"top-left"),function(t){var e=function(){var e=t.getContainer();e.querySelectorAll('.maplibregl-ctrl-attrib a[href*="platform.neshan.org"]').forEach((function(t){return t.remove()})),e.querySelectorAll('.maplibregl-ctrl-attrib a[href*="osm.org"]').forEach((function(t){t.textContent="© سازمان فاوا شهرداری تهران",t.href="https://tmicto.tehran.ir/",t.target="_blank",t.rel="noopener",t.style.fontFamily="IRANSans"})),e.querySelectorAll(".maplibregl-ctrl-attrib").forEach((function(t){t.classList.add("tehran-map-attribution"),t.style.fontFamily="IRANSans"}))};t.on("load",(function(){e(),setTimeout(e,0)})),t.on("styledata",e)}(i),i}))}n.d(e,"a",(function(){return r}))},CSDM:function(t,e,n){"use strict";n.d(e,"f",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"e",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return h}));var i=function(){function t(t,e){this.description=e,this.address=t}return t.prototype.ChageTab=function(t){this.address=!1,this.description=!1,this[t]=!0},t}(),r=function(){return function(t,e,n,i,r,s,o,a,p,h,c){this.error=p,this.name=t,this.path=e,this.utM_X=n,this.utM_Y=i,this.lonG_X=r,this.laT_Y=s,this.namE_PARK=o,this.tedad=a,this.itemId=h,this.active=c}}(),s=function(){function t(t,e,n,i,r,s){this.Items=null==t?[]:t,this.SelectName=e,this.SelectPath=n,this.TemplatePath=i,this.CurrentPath=r,this.CurrentData=s}return t.prototype.GenerateTemplate=function(t){this.SelectPath=t=null==t?this.SelectPath:t,t.endsWith(")")&&-1!=t.indexOf("(")&&(this.TemplateName=t.substr(0,t.indexOf("(")),this.TemplatePath=this.TemplateName+"({i
2d})",this.CurrentId=parseInt(t.substr(t.indexOf("(")+1,t.indexOf(")")-(t.indexOf("(")+1))))},t.prototype.GenerateItems=function(){if(null!=this.CurrentData&&null!=this.TemplatePath){this.Items=[];for(var t=1;t<=parseInt(this.CurrentData.tedad);t++){var e=new r;this.CurrentId==t&&(e.active=!0),e.tedad=this.CurrentData.tedad,e.path=this.TemplatePath.replace("{id}",t.toString()),e.namE_PARK=this.CurrentData.namE_PARK,e.name=this.CurrentData.name,e.itemId=t,e.itemId=t,this.Items.push(e)}}},t.prototype.IsEqule=function(t){return!(!t.endsWith(")")||-1==t.indexOf("("))&&this.TemplateName==t.substr(0,t.indexOf("("))},t.prototype.ActiveItem=function(t){for(var e=0,n=this.Items;e<n.length;e++){var i=n[e];i.active=!1,t.itemId==i.itemId&&(i.active=!0)}},t.prototype.SetCurrent=function(t){this.CurrentData=t,this.CurrentId=t.itemId,this.CurrentPath=t.path,this.ActiveItem(t)},t}(),o=function(){return function(t,e,n){this.geometry=t,this.cateroyName=e,this.data=n}}(),a=function(){return function(t,e,n){this.geometry=t,this.cateroyName=e,this.data=n}}(),p=function(){return function(t,e,n){this.geometry=t,this.cateroyName=e,this.data=n}}(),h=function(){return function(t,e){this.line=t,this.points=e}}()},ETQ4:function(t,e,n){var i;void 0===(i=(function(){return t=function(t,e){return t.substring(0,e.length)===e},e=function(t,e){return t.substring(t.length-e.length)===e},(n=function(t){return t instanceof n?t:this instanceof n?void(this._wrapped=t):new n(t)}).delimiter=" ",n.isArray=function(t){return!(!t||t.constructor!==Array)},n.trim=function(n,i){for(i=i||" ";t(n,i);)n=n.substring(1);for(;e(n,i);)n=n.substring(0,n.length-1);return n},n.Wkt=function(t){this.delimiter=n.delimiter||" ",this.wrapVertices=!0,this.regExes={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,spaces:/\s+|\+/,numeric:/-*\d+(\.*\d+)?/,comma:/\s*,\s*/,parenComma:/\)\s*,\s*\(/,coord:/-*\d+\.*\d+ -*\d+\.*\d+/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,ogcTypes:/^(multi)?(point|line|polygon|box)?(string)?$/i,crudeJson:/^{.*"(type|coordinates|geometries|features)":.*}$/},this._stripWhitespaceAndParens=function(t){return t.trim().replace(/^\(?(.*?)\)?$/,"$1")},this.components=void 0,t&&"string"==typeof t?this.read(t):t&&void 0!==typeof t&&this.fromObject(t)},n.Wkt.prototype.isCollection=function(){switch(this.type.slice(0,5)){case"multi":case"polyg":return!0;default:return!1}},n.Wkt.prototype.sameCoords=function(t,e){return t.x===e.x&&t.y===e.y},n.Wkt.prototype.fromObject=function(t){var e;return e=t.hasOwnProperty("type")&&t.hasOwnProperty("coordinates")?this.fromJson(t):this.deconstruct.call(this,t),this.components=e.components,this.isRectangle=e.isRectangle||!1,this.type=e.type,this},n.Wkt.prototype.toObject=function(t){var e=this.construct[this.type].call(this,t);return"object"!=typeof e||n.isArray(e)||(e.properties=this.properties),e},n.Wkt.prototype.toString=function(t){return this.write()},n.Wkt.prototype.fromJson=function(t){var e,i,r,s,o,a;if(this.type=t.type.toLowerCase(),this.components=[],t.hasOwnProperty("geometry"))return this.fromJson(t.geometry),this.properties=t.properties,this;if(n.isArray((s=t.coordinates)[0])){for(e in s)if(s.hasOwnProperty(e))if(n.isArray(s[e][0])){for(i in a=[],s[e])if(s[e].hasOwnProperty(i))if(n.isArray(s[e][i][0])){for(r in o=[],s[e][i])s[e][i].hasOwnProperty(r)&&o.push({x:s[e][i][r][0],y:s[e][i][r][1]});a.push(o)}else a.push({x:s[e][i][0],y:s[e][i][1]});this.components.push(a)}else this.components.push("multipoint"===this.type?[{x:s[e][0],y:s[e][1]}]:{x:s[e][0],y:s[e][1]})}else this.components.push({x:s[0],y:s[1]});return this},n.Wkt.prototype.toJson=function(){var t,e,i,r,s,o,a;if(t=this.components,e={coordinates:[],type:(function(){var t,e,n;for(t in n=[],e=this.regExes.ogcTypes.exec(this.type).slice(1))e.hasOwnProperty(t)&&void 0!==e[t]&&n.push(e[t].toLowerCase().slice(0,1).toUpperCase()+e[t].toLowerCase().slice(1));return n}).call(this).join("")},"box"===this.type.toLowerCase()){for(i in e.type="Polygon",e.bbox=[],t)t.hasOwnProperty(i)&&(e.bbox=e.bbox.concat([t[i].x,t[i].y]));return e.coordinates=[[[t[0].x,t[0].y],[t[0].x,t[1].y],[t[1].x,t[1].y],[t[1].x,t[0].y],[t[0].x,t[0].y]]],e}for(i in t)if(t.hasOwnProperty(i))if(n.isArray(t[i])){for(r in a=[],t[i])if(t[i].hasOwnProperty(r))if(n.isArray(t[i][r])){for(s in o=[],t[i][r])t[i][r].hasOwnProperty(s)&&o.push([t[i][r][s].x,t[i][r][s].y]);a.push(o)}else t[i].length>1?a.push([t[i][r].x,t[i][r].y]):a=a.concat([t[i][r].x,t[i][r].y]);e.coordinates.push(a)}else t.length>1?e.coordinates.push([t[i].x,t[i].y]):e.coordinates=e.coordinates.concat([t[i].x,t[i].y]);return e},n.Wkt.prototype.merge=function(t){var e=this.type.slice(0,5);
2if(this.type!==t.type&&this.type.slice(5,this.type.length)!==t.type)throw TypeError("The input geometry types must agree or the calling this.Wkt.Wkt instance must be a multigeometry of the other");switch(e){case"point":this.components=[this.components.concat(t.components)];break;case"multi":this.components=this.components.concat("multi"===t.type.slice(0,5)?t.components:[t.components]);break;default:this.components=[this.components,t.components]}return"multi"!==e&&(this.type="multi"+this.type),this},n.Wkt.prototype.read=function(t){var e;if(e=this.regExes.typeStr.exec(t))this.type=e[1].toLowerCase(),this.base=e[2],this.ingest[this.type]&&(this.components=this.ingest[this.type].apply(this,[this.base]));else{if(!this.regExes.crudeJson.test(t))throw console.log("Invalid WKT string provided to read()"),{name:"WKTError",message:"Invalid WKT string provided to read()"};if("object"!=typeof JSON||"function"!=typeof JSON.parse)throw console.log("JSON.parse() is not available; cannot parse GeoJSON strings"),{name:"JSONError",message:"JSON.parse() is not available; cannot parse GeoJSON strings"};this.fromJson(JSON.parse(t))}return this},n.Wkt.prototype.write=function(t){var e,n,i;for(t=t||this.components,(n=[]).push(this.type.toUpperCase()+"("),e=0;e<t.length;e+=1){if(this.isCollection()&&e>0&&n.push(","),!this.extract[this.type])return null;i=this.extract[this.type].apply(this,[t[e]]),this.isCollection()&&"multipoint"!==this.type?n.push("("+i+")"):(n.push(i),e!==t.length-1&&"multipoint"!==this.type&&n.push(","))}return n.push(")"),n.join("")},n.Wkt.prototype.extract={point:function(t){return String(t.x)+this.delimiter+String(t.y)},multipoint:function(t){var e,n,i=[];for(e=0;e<t.length;e+=1)n=this.extract.point.apply(this,[t[e]]),this.wrapVertices&&(n="("+n+")"),i.push(n);return i.join(",")},linestring:function(t){return this.extract.point.apply(this,[t])},multilinestring:function(t){var e,n=[];if(t.length)for(e=0;e<t.length;e+=1)n.push(this.extract.linestring.apply(this,[t[e]]));else n.push(this.extract.point.apply(this,[t]));return n.join(",")},polygon:function(t){return this.extract.multilinestring.apply(this,[t])},multipolygon:function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push("("+this.extract.polygon.apply(this,[t[e]])+")");return n.join(",")},box:function(t){return this.extract.linestring.apply(this,[t])},geometrycollection:function(t){console.log("The geometrycollection WKT type is not yet supported.")}},n.Wkt.prototype.ingest={point:function(t){var e=n.trim(t).split(this.regExes.spaces);return[{x:parseFloat(this.regExes.numeric.exec(e[0])[0]),y:parseFloat(this.regExes.numeric.exec(e[1])[0])}]},multipoint:function(t){var e,i,r;for(i=[],r=n.trim(t).split(this.regExes.comma),e=0;e<r.length;e+=1)i.push(this.ingest.point.apply(this,[r[e]]));return i},linestring:function(t){var e,n,i;for(n=this.ingest.multipoint.apply(this,[t]),i=[],e=0;e<n.length;e+=1)i=i.concat(n[e]);return i},multilinestring:function(t){var e,i,r,s;for(i=[],1===(s=n.trim(t).split(this.regExes.doubleParenComma)).length&&(s=n.trim(t).split(this.regExes.parenComma)),e=0;e<s.length;e+=1)r=this._stripWhitespaceAndParens(s[e]),i.push(this.ingest.linestring.apply(this,[r]));return i},polygon:function(t){var e,i,r,s,o,a;for(a=n.trim(t).split(this.regExes.parenComma),r=[],e=0;e<a.length;e+=1){for(o=this._stripWhitespaceAndParens(a[e]).split(this.regExes.comma),s=[],i=0;i<o.length;i+=1){var p=o[i].split(this.regExes.spaces);if(p.length>2&&(p=p.filter((function(t){return""!=t}))),2===p.length){var h=p[1];s.push({x:parseFloat(p[0]),y:parseFloat(h)})}}r.push(s)}return r},box:function(t){var e,n,i;for(n=this.ingest.multipoint.apply(this,[t]),i=[],e=0;e<n.length;e+=1)i=i.concat(n[e]);return i},multipolygon:function(t){var e,i,r,s;for(i=[],s=n.trim(t).split(this.regExes.doubleParenComma),e=0;e<s.length;e+=1)r=this._stripWhitespaceAndParens(s[e]),i.push(this.ingest.polygon.apply(this,[r]));return i},geometrycollection:function(t){console.log("The geometrycollection WKT type is not yet supported.")}},n;var t,e,n}).call(e,n,e,t))||(t.exports=i)}}]);

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.