PageSourceSearch

https://plan.naolib.fr/build/989.ad4ce75c.js

js naolib.fr collected 2026-10-02 03:22:50 UTC 6,103 bytes, 2 lines download raw bytes

1/*! For license information please see 989.ad4ce75c.js.LICENSE.txt */
2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[989],{90989:(e,n,t)=>{t.r(n),t.d(n,{default:()=>f});t(52675),t(89463),t(2259),t(45700),t(28706),t(23792),t(62062),t(89572),t(94170),t(62010),t(36033),t(2892),t(59904),t(84185),t(40875),t(10287),t(26099),t(3362),t(47764),t(62953);function r(e){return r="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},r(e)}function o(){var e,n,t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",c=t.toStringTag||"@@toStringTag";function a(t,r,o,c){var a=r&&r.prototype instanceof s?r:s,l=Object.create(a.prototype);return i(l,"_invoke",function(t,r,o){var i,c,a,s=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(n,t){return i=n,c=0,a=e,p.n=t,u}};function y(t,r){for(c=t,a=r,n=0;!f&&s&&!o&&n<l.length;n++){var o,i=l[n],y=p.p,d=i[2];t>3?(o=d===r)&&(a=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=t<2&&y<i[1])?(c=0,p.v=r,p.n=i[1]):y<d&&(o=t<3||i[0]>r||r>d)&&(i[4]=t,i[5]=r,p.n=d,c=0))}if(o||t>1)return u;throw f=!0,r}return function(o,l,d){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,d),c=l,a=d;(n=c<2?e:a)||!f;){i||(c?c<3?(c>1&&(p.n=-1),y(c,a)):p.n=a:p.v=a);try{if(s=2,i){if(c||(o="next"),n=i[o]){if(!(n=n.call(i,a)))throw TypeError("iterator result is not an object");if(!n.done)return n;a=n.value,c<2&&(c=0)}else 1===c&&(n=i.return)&&n.call(i),c<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((n=(f=p.n<0)?a:t.call(r,p))!==u)break}catch(n){i=e,c=1,a=n}finally{s=1}}return{value:n,done:f}}}(t,o,c),!0),l}var u={};function s(){}function l(){}function f(){}n=Object.getPrototypeOf;var p=[][r]?n(n([][r]())):(i(n={},r,function(){return this}),n),y=f.prototype=s.prototype=Object.create(p);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,i(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e}return l.prototype=f,i(y,"constructor",f),i(f,"constructor",l),l.displayName="GeneratorFunction",i(f,c,"GeneratorFunction"),i(y),i(y,c,"Generator"),i(y,r,function(){return this}),i(y,"toString",function(){return"[object Generator]"}),(o=function(){return{w:a,m:d}})()}function i(e,n,t,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}i=function(e,n,t,r){function c(n,t){i(e,n,function(e){return this._invoke(n,t,e)})}n?o?o(e,n,{value:t,enumerable:!r,configurable:!r,writable:!r}):e[n]=t:(c("next",0),c("throw",1),c("return",2))},i(e,n,t,r)}function c(e,n,t,r,o,i,c){try{var a=e[i](c),u=a.value}catch(e){return void t(e)}a.done?n(u):Promise.resolve(u).then(r,o)}function a(e){return function(){var n=this,t=arguments;return new Promise(function(r,o){var i=e.apply(n,t);function a(e){c(i,r,o,a,u,"next",e)}function u(e){c(i,r,o,a,u,"throw",e)}a(void 0)})}}function u(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var n=function(e,n){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,n||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==r(n)?n:n+""}var l=window.__NAOLIB_BASE_URL__||window.location.origin;const f=new(function(){return e=function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.currentSelectedLine=null,this.currentDirection="1",this.lineCache=new Map},n=[{key:"loadLineSequence",value:(i=a(o().m(function e(n,t){var r,i,c,a;return o().w(function(e){for(;;)switch(e.p=e.n){case 0:return r="".concat(n,"_").concat(t),e.p=1,e.n=2,fetch("".concat(l,"/api/line/sequence/").concat(n,"/").concat(t));case 2:if((i=e.v).ok){e.n=3;break}throw new Error("Erreur chargement ligne");case 3:return e.n=4,i.json();case 4:return c=e.v,this.lineCache.set(r,c),e.a(2,c);case 5:throw e.p=5,a=e.v,console.error("Erreur ligne:",a),a;case 6:return e.a(2)}},e,this,[[1,5]])})),function(e,n){return i.apply(this,arguments)})},{key:"loadLineGeometry",value:(r=a(o().m(function e(n){var t,r;return o().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetch("/data/lines/".concat(n,".geojson"));case 1:if((t=e.v).ok){e.n=2;break}throw new Error("Erreur géométrie ligne");case 2:return e.n=3,t.json();case 3:return e.a(2,e.v);case 4:throw e.p=4,r=e.v,console.error("Erreur géométrie:",r),r;case 5:return e.a(2)}},e,null,[[0,4]])})),function(e){return r.apply(this,arguments)})},{key:"formatLineSequence",value:function(e){return e.line_sequences.map(function(e){return{idSequence:e.id_sequence,stop:{id:e.stop.id,logicalId:e.logical_stop,externalId:e.stop.external_id||e.stop.externalId,stopId:e.stop.stop_id||e.stop.stopId,name:e.stop.name,lat:e.stop.lat,lng:e.stop.lng,isAccessible:e.stop.is_accessible||e.stop.isAccessible,idSequence:e.id_sequence},isTerminus:e.isTerminus,isNodeIn:e.isNodeIn,isNodeOut:e.isNodeOut,position:e.position}})}},{key:"changeDirection",value:function(){return this.currentDirection="1"===this.currentDirection?"2":"1",this.currentDirection}},{key:"displayLineOnMap",value:function(e,n,t){if(e){var r="line-".concat(n);e.getSource(r)&&(e.getLayer("".concat(r,"-casing"))&&e.removeLayer("".concat(r,"-casing")),e.getLayer(r)&&e.removeLayer(r),e.removeSource(r)),e.addSource(r,{type:"geojson",data:t}),e.addLayer({id:"".concat(r,"-casing"),type:"line",source:r,layout:{"line-join":"round","line-cap":"round"},paint:{"line-width":["interpolate",["exponential",1],["zoom"],10,.75,17,15],"line-color":"#FFFFFF"}}),e.addLayer({id:r,type:"line",source:r,layout:{"line-join":"round","line-cap":"round"},paint:{"line-width":["interpolate",["exponential",1],["zoom"],10,.5,17,10],"line-color":["get","route_color"]}})}}}],n&&u(e.prototype,n),t&&u(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,t,r,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.